(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

},{}],2:[function(require,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
}

// Support decoding URL-safe base64 strings, as Node.js does.
// See: https://en.wikipedia.org/wiki/Base64#URL_applications
revLookup['-'.charCodeAt(0)] = 62
revLookup['_'.charCodeAt(0)] = 63

function getLens (b64) {
  var len = b64.length

  if (len % 4 > 0) {
    throw new Error('Invalid string. Length must be a multiple of 4')
  }

  // Trim off extra bytes after placeholder bytes are found
  // See: https://github.com/beatgammit/base64-js/issues/42
  var validLen = b64.indexOf('=')
  if (validLen === -1) validLen = len

  var placeHoldersLen = validLen === len
    ? 0
    : 4 - (validLen % 4)

  return [validLen, placeHoldersLen]
}

// base64 is 4/3 + up to two characters of the original data
function byteLength (b64) {
  var lens = getLens(b64)
  var validLen = lens[0]
  var placeHoldersLen = lens[1]
  return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
}

function _byteLength (b64, validLen, placeHoldersLen) {
  return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
}

function toByteArray (b64) {
  var tmp
  var lens = getLens(b64)
  var validLen = lens[0]
  var placeHoldersLen = lens[1]

  var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))

  var curByte = 0

  // if there are placeholders, only get up to the last complete 4 chars
  var len = placeHoldersLen > 0
    ? validLen - 4
    : validLen

  var i
  for (i = 0; i < len; i += 4) {
    tmp =
      (revLookup[b64.charCodeAt(i)] << 18) |
      (revLookup[b64.charCodeAt(i + 1)] << 12) |
      (revLookup[b64.charCodeAt(i + 2)] << 6) |
      revLookup[b64.charCodeAt(i + 3)]
    arr[curByte++] = (tmp >> 16) & 0xFF
    arr[curByte++] = (tmp >> 8) & 0xFF
    arr[curByte++] = tmp & 0xFF
  }

  if (placeHoldersLen === 2) {
    tmp =
      (revLookup[b64.charCodeAt(i)] << 2) |
      (revLookup[b64.charCodeAt(i + 1)] >> 4)
    arr[curByte++] = tmp & 0xFF
  }

  if (placeHoldersLen === 1) {
    tmp =
      (revLookup[b64.charCodeAt(i)] << 10) |
      (revLookup[b64.charCodeAt(i + 1)] << 4) |
      (revLookup[b64.charCodeAt(i + 2)] >> 2)
    arr[curByte++] = (tmp >> 8) & 0xFF
    arr[curByte++] = 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) & 0xFF0000) +
      ((uint8[i + 1] << 8) & 0xFF00) +
      (uint8[i + 2] & 0xFF)
    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 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]
    parts.push(
      lookup[tmp >> 2] +
      lookup[(tmp << 4) & 0x3F] +
      '=='
    )
  } else if (extraBytes === 2) {
    tmp = (uint8[len - 2] << 8) + uint8[len - 1]
    parts.push(
      lookup[tmp >> 10] +
      lookup[(tmp >> 4) & 0x3F] +
      lookup[(tmp << 2) & 0x3F] +
      '='
    )
  }

  return parts.join('')
}

},{}],3:[function(require,module,exports){
arguments[4][1][0].apply(exports,arguments)
},{"dup":1}],4:[function(require,module,exports){
(function (Buffer){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
/* eslint-disable no-proto */

'use strict'

var base64 = require('base64-js')
var ieee754 = require('ieee754')
var customInspectSymbol =
  (typeof Symbol === 'function' && typeof Symbol.for === 'function')
    ? Symbol.for('nodejs.util.inspect.custom')
    : null

exports.Buffer = Buffer
exports.SlowBuffer = SlowBuffer
exports.INSPECT_MAX_BYTES = 50

var K_MAX_LENGTH = 0x7fffffff
exports.kMaxLength = K_MAX_LENGTH

/**
 * If `Buffer.TYPED_ARRAY_SUPPORT`:
 *   === true    Use Uint8Array implementation (fastest)
 *   === false   Print warning and recommend using `buffer` v4.x which has an 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+.
 *
 * We report that the browser does not support typed arrays if the are not subclassable
 * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`
 * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support
 * for __proto__ and has a buggy typed array implementation.
 */
Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport()

if (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&
    typeof console.error === 'function') {
  console.error(
    'This browser lacks typed array (Uint8Array) support which is required by ' +
    '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'
  )
}

function typedArraySupport () {
  // Can typed array instances can be augmented?
  try {
    var arr = new Uint8Array(1)
    var proto = { foo: function () { return 42 } }
    Object.setPrototypeOf(proto, Uint8Array.prototype)
    Object.setPrototypeOf(arr, proto)
    return arr.foo() === 42
  } catch (e) {
    return false
  }
}

Object.defineProperty(Buffer.prototype, 'parent', {
  enumerable: true,
  get: function () {
    if (!Buffer.isBuffer(this)) return undefined
    return this.buffer
  }
})

Object.defineProperty(Buffer.prototype, 'offset', {
  enumerable: true,
  get: function () {
    if (!Buffer.isBuffer(this)) return undefined
    return this.byteOffset
  }
})

function createBuffer (length) {
  if (length > K_MAX_LENGTH) {
    throw new RangeError('The value "' + length + '" is invalid for option "size"')
  }
  // Return an augmented `Uint8Array` instance
  var buf = new Uint8Array(length)
  Object.setPrototypeOf(buf, Buffer.prototype)
  return buf
}

/**
 * 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) {
  // Common case.
  if (typeof arg === 'number') {
    if (typeof encodingOrOffset === 'string') {
      throw new TypeError(
        'The "string" argument must be of type string. Received type number'
      )
    }
    return allocUnsafe(arg)
  }
  return from(arg, encodingOrOffset, length)
}

// Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
if (typeof Symbol !== 'undefined' && Symbol.species != null &&
    Buffer[Symbol.species] === Buffer) {
  Object.defineProperty(Buffer, Symbol.species, {
    value: null,
    configurable: true,
    enumerable: false,
    writable: false
  })
}

Buffer.poolSize = 8192 // not used by this implementation

function from (value, encodingOrOffset, length) {
  if (typeof value === 'string') {
    return fromString(value, encodingOrOffset)
  }

  if (ArrayBuffer.isView(value)) {
    return fromArrayLike(value)
  }

  if (value == null) {
    throw new TypeError(
      'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +
      'or Array-like Object. Received type ' + (typeof value)
    )
  }

  if (isInstance(value, ArrayBuffer) ||
      (value && isInstance(value.buffer, ArrayBuffer))) {
    return fromArrayBuffer(value, encodingOrOffset, length)
  }

  if (typeof value === 'number') {
    throw new TypeError(
      'The "value" argument must not be of type number. Received type number'
    )
  }

  var valueOf = value.valueOf && value.valueOf()
  if (valueOf != null && valueOf !== value) {
    return Buffer.from(valueOf, encodingOrOffset, length)
  }

  var b = fromObject(value)
  if (b) return b

  if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&
      typeof value[Symbol.toPrimitive] === 'function') {
    return Buffer.from(
      value[Symbol.toPrimitive]('string'), encodingOrOffset, length
    )
  }

  throw new TypeError(
    'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +
    'or Array-like Object. Received type ' + (typeof 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(value, encodingOrOffset, length)
}

// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:
// https://github.com/feross/buffer/pull/148
Object.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)
Object.setPrototypeOf(Buffer, Uint8Array)

function assertSize (size) {
  if (typeof size !== 'number') {
    throw new TypeError('"size" argument must be of type number')
  } else if (size < 0) {
    throw new RangeError('The value "' + size + '" is invalid for option "size"')
  }
}

function alloc (size, fill, encoding) {
  assertSize(size)
  if (size <= 0) {
    return createBuffer(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(size).fill(fill, encoding)
      : createBuffer(size).fill(fill)
  }
  return createBuffer(size)
}

/**
 * Creates a new filled Buffer instance.
 * alloc(size[, fill[, encoding]])
 **/
Buffer.alloc = function (size, fill, encoding) {
  return alloc(size, fill, encoding)
}

function allocUnsafe (size) {
  assertSize(size)
  return createBuffer(size < 0 ? 0 : checked(size) | 0)
}

/**
 * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
 * */
Buffer.allocUnsafe = function (size) {
  return allocUnsafe(size)
}
/**
 * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
 */
Buffer.allocUnsafeSlow = function (size) {
  return allocUnsafe(size)
}

function fromString (string, encoding) {
  if (typeof encoding !== 'string' || encoding === '') {
    encoding = 'utf8'
  }

  if (!Buffer.isEncoding(encoding)) {
    throw new TypeError('Unknown encoding: ' + encoding)
  }

  var length = byteLength(string, encoding) | 0
  var buf = createBuffer(length)

  var actual = buf.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')
    buf = buf.slice(0, actual)
  }

  return buf
}

function fromArrayLike (array) {
  var length = array.length < 0 ? 0 : checked(array.length) | 0
  var buf = createBuffer(length)
  for (var i = 0; i < length; i += 1) {
    buf[i] = array[i] & 255
  }
  return buf
}

function fromArrayBuffer (array, byteOffset, length) {
  if (byteOffset < 0 || array.byteLength < byteOffset) {
    throw new RangeError('"offset" is outside of buffer bounds')
  }

  if (array.byteLength < byteOffset + (length || 0)) {
    throw new RangeError('"length" is outside of buffer bounds')
  }

  var buf
  if (byteOffset === undefined && length === undefined) {
    buf = new Uint8Array(array)
  } else if (length === undefined) {
    buf = new Uint8Array(array, byteOffset)
  } else {
    buf = new Uint8Array(array, byteOffset, length)
  }

  // Return an augmented `Uint8Array` instance
  Object.setPrototypeOf(buf, Buffer.prototype)

  return buf
}

function fromObject (obj) {
  if (Buffer.isBuffer(obj)) {
    var len = checked(obj.length) | 0
    var buf = createBuffer(len)

    if (buf.length === 0) {
      return buf
    }

    obj.copy(buf, 0, 0, len)
    return buf
  }

  if (obj.length !== undefined) {
    if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {
      return createBuffer(0)
    }
    return fromArrayLike(obj)
  }

  if (obj.type === 'Buffer' && Array.isArray(obj.data)) {
    return fromArrayLike(obj.data)
  }
}

function checked (length) {
  // Note: cannot use `length < K_MAX_LENGTH` here because that fails when
  // length is NaN (which is otherwise coerced to zero.)
  if (length >= K_MAX_LENGTH) {
    throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
                         'size: 0x' + K_MAX_LENGTH.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 === true &&
    b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false
}

Buffer.compare = function compare (a, b) {
  if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)
  if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)
  if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
    throw new TypeError(
      'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
    )
  }

  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 (!Array.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 (isInstance(buf, Uint8Array)) {
      buf = Buffer.from(buf)
    }
    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 (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
    return string.byteLength
  }
  if (typeof string !== 'string') {
    throw new TypeError(
      'The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' +
      'Received type ' + typeof string
    )
  }

  var len = string.length
  var mustMatch = (arguments.length > 2 && arguments[2] === true)
  if (!mustMatch && 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':
        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 mustMatch ? -1 : 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
    }
  }
}

// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)
// to detect a Buffer instance. It's not possible to use `instanceof Buffer`
// reliably in a browserify context because there could be multiple different
// copies of the 'buffer' package in use. This method works even for Buffer
// instances that were created from another copy of the `buffer` package.
// See: https://github.com/feross/buffer/issues/154
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
  if (length === 0) return ''
  if (arguments.length === 0) return utf8Slice(this, 0, length)
  return slowToString.apply(this, arguments)
}

Buffer.prototype.toLocaleString = Buffer.prototype.toString

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
  str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()
  if (this.length > max) str += ' ... '
  return '<Buffer ' + str + '>'
}
if (customInspectSymbol) {
  Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect
}

Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  if (isInstance(target, Uint8Array)) {
    target = Buffer.from(target, target.offset, target.byteLength)
  }
  if (!Buffer.isBuffer(target)) {
    throw new TypeError(
      'The "target" argument must be one of type Buffer or Uint8Array. ' +
      'Received type ' + (typeof target)
    )
  }

  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 (numberIsNaN(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 (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
    }
  }

  var strLen = string.length

  if (length > strLen / 2) {
    length = strLen / 2
  }
  for (var i = 0; i < length; ++i) {
    var parsed = parseInt(string.substr(i * 2, 2), 16)
    if (numberIsNaN(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
    }
  } 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 += hexSliceLookupTable[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 = this.subarray(start, end)
  // Return an augmented `Uint8Array` instance
  Object.setPrototypeOf(newBuf, Buffer.prototype)

  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) {
  offset = offset >>> 0
  if (!noAssert) checkOffset(offset, 1, this.length)
  return this[offset]
}

Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  offset = offset >>> 0
  if (!noAssert) checkOffset(offset, 2, this.length)
  return this[offset] | (this[offset + 1] << 8)
}

Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  offset = offset >>> 0
  if (!noAssert) checkOffset(offset, 2, this.length)
  return (this[offset] << 8) | this[offset + 1]
}

Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  offset = offset >>> 0
  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) {
  offset = offset >>> 0
  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) {
  offset = offset >>> 0
  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) {
  offset = offset >>> 0
  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) {
  offset = offset >>> 0
  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) {
  offset = offset >>> 0
  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) {
  offset = offset >>> 0
  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) {
  offset = offset >>> 0
  if (!noAssert) checkOffset(offset, 4, this.length)
  return ieee754.read(this, offset, true, 23, 4)
}

Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  offset = offset >>> 0
  if (!noAssert) checkOffset(offset, 4, this.length)
  return ieee754.read(this, offset, false, 23, 4)
}

Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  offset = offset >>> 0
  if (!noAssert) checkOffset(offset, 8, this.length)
  return ieee754.read(this, offset, true, 52, 8)
}

Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  offset = offset >>> 0
  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)
  this[offset] = (value & 0xff)
  return offset + 1
}

Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  value = +value
  offset = offset >>> 0
  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  this[offset] = (value & 0xff)
  this[offset + 1] = (value >>> 8)
  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)
  this[offset] = (value >>> 8)
  this[offset + 1] = (value & 0xff)
  return offset + 2
}

Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  value = +value
  offset = offset >>> 0
  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  this[offset + 3] = (value >>> 24)
  this[offset + 2] = (value >>> 16)
  this[offset + 1] = (value >>> 8)
  this[offset] = (value & 0xff)
  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)
  this[offset] = (value >>> 24)
  this[offset + 1] = (value >>> 16)
  this[offset + 2] = (value >>> 8)
  this[offset + 3] = (value & 0xff)
  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 (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)
  this[offset] = (value & 0xff)
  this[offset + 1] = (value >>> 8)
  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)
  this[offset] = (value >>> 8)
  this[offset + 1] = (value & 0xff)
  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)
  this[offset] = (value & 0xff)
  this[offset + 1] = (value >>> 8)
  this[offset + 2] = (value >>> 16)
  this[offset + 3] = (value >>> 24)
  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
  this[offset] = (value >>> 24)
  this[offset + 1] = (value >>> 16)
  this[offset + 2] = (value >>> 8)
  this[offset + 3] = (value & 0xff)
  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) {
  value = +value
  offset = offset >>> 0
  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) {
  value = +value
  offset = offset >>> 0
  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 (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')
  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('Index out of range')
  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

  if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {
    // Use built-in when available, missing from IE11
    this.copyWithin(targetStart, start, end)
  } else if (this === target && start < targetStart && targetStart < end) {
    // descending copy from end
    for (var i = len - 1; i >= 0; --i) {
      target[i + targetStart] = this[i + start]
    }
  } else {
    Uint8Array.prototype.set.call(
      target,
      this.subarray(start, end),
      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 (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)
    }
    if (val.length === 1) {
      var code = val.charCodeAt(0)
      if ((encoding === 'utf8' && code < 128) ||
          encoding === 'latin1') {
        // Fast path: If `val` fits into a single byte, use that numeric value.
        val = code
      }
    }
  } else if (typeof val === 'number') {
    val = val & 255
  } else if (typeof val === 'boolean') {
    val = Number(val)
  }

  // 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
      : Buffer.from(val, encoding)
    var len = bytes.length
    if (len === 0) {
      throw new TypeError('The value "' + val +
        '" is invalid for argument "value"')
    }
    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 takes equal signs as end of the Base64 encoding
  str = str.split('=')[0]
  // Node strips out invalid characters like \n and \t from the string, base64-js does not
  str = str.trim().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 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
}

// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass
// the `instanceof` check but they should be treated as of that type.
// See: https://github.com/feross/buffer/issues/166
function isInstance (obj, type) {
  return obj instanceof type ||
    (obj != null && obj.constructor != null && obj.constructor.name != null &&
      obj.constructor.name === type.name)
}
function numberIsNaN (obj) {
  // For IE11 support
  return obj !== obj // eslint-disable-line no-self-compare
}

// Create lookup table for `toString('hex')`
// See: https://github.com/feross/buffer/issues/219
var hexSliceLookupTable = (function () {
  var alphabet = '0123456789abcdef'
  var table = new Array(256)
  for (var i = 0; i < 16; ++i) {
    var i16 = i * 16
    for (var j = 0; j < 16; ++j) {
      table[i16 + j] = alphabet[i] + alphabet[j]
    }
  }
  return table
})()

}).call(this,require("buffer").Buffer)
},{"base64-js":2,"buffer":4,"ieee754":8}],5:[function(require,module,exports){
module.exports = {
  "100": "Continue",
  "101": "Switching Protocols",
  "102": "Processing",
  "200": "OK",
  "201": "Created",
  "202": "Accepted",
  "203": "Non-Authoritative Information",
  "204": "No Content",
  "205": "Reset Content",
  "206": "Partial Content",
  "207": "Multi-Status",
  "208": "Already Reported",
  "226": "IM Used",
  "300": "Multiple Choices",
  "301": "Moved Permanently",
  "302": "Found",
  "303": "See Other",
  "304": "Not Modified",
  "305": "Use Proxy",
  "307": "Temporary Redirect",
  "308": "Permanent Redirect",
  "400": "Bad Request",
  "401": "Unauthorized",
  "402": "Payment Required",
  "403": "Forbidden",
  "404": "Not Found",
  "405": "Method Not Allowed",
  "406": "Not Acceptable",
  "407": "Proxy Authentication Required",
  "408": "Request Timeout",
  "409": "Conflict",
  "410": "Gone",
  "411": "Length Required",
  "412": "Precondition Failed",
  "413": "Payload Too Large",
  "414": "URI Too Long",
  "415": "Unsupported Media Type",
  "416": "Range Not Satisfiable",
  "417": "Expectation Failed",
  "418": "I'm a teapot",
  "421": "Misdirected Request",
  "422": "Unprocessable Entity",
  "423": "Locked",
  "424": "Failed Dependency",
  "425": "Unordered Collection",
  "426": "Upgrade Required",
  "428": "Precondition Required",
  "429": "Too Many Requests",
  "431": "Request Header Fields Too Large",
  "451": "Unavailable For Legal Reasons",
  "500": "Internal Server Error",
  "501": "Not Implemented",
  "502": "Bad Gateway",
  "503": "Service Unavailable",
  "504": "Gateway Timeout",
  "505": "HTTP Version Not Supported",
  "506": "Variant Also Negotiates",
  "507": "Insufficient Storage",
  "508": "Loop Detected",
  "509": "Bandwidth Limit Exceeded",
  "510": "Not Extended",
  "511": "Network Authentication Required"
}

},{}],6:[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

var objectCreate = Object.create || objectCreatePolyfill
var objectKeys = Object.keys || objectKeysPolyfill
var bind = Function.prototype.bind || functionBindPolyfill

function EventEmitter() {
  if (!this._events || !Object.prototype.hasOwnProperty.call(this, '_events')) {
    this._events = objectCreate(null);
    this._eventsCount = 0;
  }

  this._maxListeners = this._maxListeners || undefined;
}
module.exports = EventEmitter;

// Backwards-compat with node 0.10.x
EventEmitter.EventEmitter = EventEmitter;

EventEmitter.prototype._events = undefined;
EventEmitter.prototype._maxListeners = undefined;

// By default EventEmitters will print a warning if more than 10 listeners are
// added to it. This is a useful default which helps finding memory leaks.
var defaultMaxListeners = 10;

var hasDefineProperty;
try {
  var o = {};
  if (Object.defineProperty) Object.defineProperty(o, 'x', { value: 0 });
  hasDefineProperty = o.x === 0;
} catch (err) { hasDefineProperty = false }
if (hasDefineProperty) {
  Object.defineProperty(EventEmitter, 'defaultMaxListeners', {
    enumerable: true,
    get: function() {
      return defaultMaxListeners;
    },
    set: function(arg) {
      // check whether the input is a positive number (whose value is zero or
      // greater and not a NaN).
      if (typeof arg !== 'number' || arg < 0 || arg !== arg)
        throw new TypeError('"defaultMaxListeners" must be a positive number');
      defaultMaxListeners = arg;
    }
  });
} else {
  EventEmitter.defaultMaxListeners = defaultMaxListeners;
}

// Obviously not all Emitters should be limited to 10. This function allows
// that to be increased. Set to zero for unlimited.
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
  if (typeof n !== 'number' || n < 0 || isNaN(n))
    throw new TypeError('"n" argument must be a positive number');
  this._maxListeners = n;
  return this;
};

function $getMaxListeners(that) {
  if (that._maxListeners === undefined)
    return EventEmitter.defaultMaxListeners;
  return that._maxListeners;
}

EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
  return $getMaxListeners(this);
};

// These standalone emit* functions are used to optimize calling of event
// handlers for fast cases because emit() itself often has a variable number of
// arguments and can be deoptimized because of that. These functions always have
// the same number of arguments and thus do not get deoptimized, so the code
// inside them can execute faster.
function emitNone(handler, isFn, self) {
  if (isFn)
    handler.call(self);
  else {
    var len = handler.length;
    var listeners = arrayClone(handler, len);
    for (var i = 0; i < len; ++i)
      listeners[i].call(self);
  }
}
function emitOne(handler, isFn, self, arg1) {
  if (isFn)
    handler.call(self, arg1);
  else {
    var len = handler.length;
    var listeners = arrayClone(handler, len);
    for (var i = 0; i < len; ++i)
      listeners[i].call(self, arg1);
  }
}
function emitTwo(handler, isFn, self, arg1, arg2) {
  if (isFn)
    handler.call(self, arg1, arg2);
  else {
    var len = handler.length;
    var listeners = arrayClone(handler, len);
    for (var i = 0; i < len; ++i)
      listeners[i].call(self, arg1, arg2);
  }
}
function emitThree(handler, isFn, self, arg1, arg2, arg3) {
  if (isFn)
    handler.call(self, arg1, arg2, arg3);
  else {
    var len = handler.length;
    var listeners = arrayClone(handler, len);
    for (var i = 0; i < len; ++i)
      listeners[i].call(self, arg1, arg2, arg3);
  }
}

function emitMany(handler, isFn, self, args) {
  if (isFn)
    handler.apply(self, args);
  else {
    var len = handler.length;
    var listeners = arrayClone(handler, len);
    for (var i = 0; i < len; ++i)
      listeners[i].apply(self, args);
  }
}

EventEmitter.prototype.emit = function emit(type) {
  var er, handler, len, args, i, events;
  var doError = (type === 'error');

  events = this._events;
  if (events)
    doError = (doError && events.error == null);
  else if (!doError)
    return false;

  // If there is no 'error' event listener then throw.
  if (doError) {
    if (arguments.length > 1)
      er = arguments[1];
    if (er instanceof Error) {
      throw er; // Unhandled 'error' event
    } else {
      // At least give some kind of context to the user
      var err = new Error('Unhandled "error" event. (' + er + ')');
      err.context = er;
      throw err;
    }
    return false;
  }

  handler = events[type];

  if (!handler)
    return false;

  var isFn = typeof handler === 'function';
  len = arguments.length;
  switch (len) {
      // fast cases
    case 1:
      emitNone(handler, isFn, this);
      break;
    case 2:
      emitOne(handler, isFn, this, arguments[1]);
      break;
    case 3:
      emitTwo(handler, isFn, this, arguments[1], arguments[2]);
      break;
    case 4:
      emitThree(handler, isFn, this, arguments[1], arguments[2], arguments[3]);
      break;
      // slower
    default:
      args = new Array(len - 1);
      for (i = 1; i < len; i++)
        args[i - 1] = arguments[i];
      emitMany(handler, isFn, this, args);
  }

  return true;
};

function _addListener(target, type, listener, prepend) {
  var m;
  var events;
  var existing;

  if (typeof listener !== 'function')
    throw new TypeError('"listener" argument must be a function');

  events = target._events;
  if (!events) {
    events = target._events = objectCreate(null);
    target._eventsCount = 0;
  } else {
    // To avoid recursion in the case that type === "newListener"! Before
    // adding it to the listeners, first emit "newListener".
    if (events.newListener) {
      target.emit('newListener', type,
          listener.listener ? listener.listener : listener);

      // Re-assign `events` because a newListener handler could have caused the
      // this._events to be assigned to a new object
      events = target._events;
    }
    existing = events[type];
  }

  if (!existing) {
    // Optimize the case of one listener. Don't need the extra array object.
    existing = events[type] = listener;
    ++target._eventsCount;
  } else {
    if (typeof existing === 'function') {
      // Adding the second element, need to change to array.
      existing = events[type] =
          prepend ? [listener, existing] : [existing, listener];
    } else {
      // If we've already got an array, just append.
      if (prepend) {
        existing.unshift(listener);
      } else {
        existing.push(listener);
      }
    }

    // Check for listener leak
    if (!existing.warned) {
      m = $getMaxListeners(target);
      if (m && m > 0 && existing.length > m) {
        existing.warned = true;
        var w = new Error('Possible EventEmitter memory leak detected. ' +
            existing.length + ' "' + String(type) + '" listeners ' +
            'added. Use emitter.setMaxListeners() to ' +
            'increase limit.');
        w.name = 'MaxListenersExceededWarning';
        w.emitter = target;
        w.type = type;
        w.count = existing.length;
        if (typeof console === 'object' && console.warn) {
          console.warn('%s: %s', w.name, w.message);
        }
      }
    }
  }

  return target;
}

EventEmitter.prototype.addListener = function addListener(type, listener) {
  return _addListener(this, type, listener, false);
};

EventEmitter.prototype.on = EventEmitter.prototype.addListener;

EventEmitter.prototype.prependListener =
    function prependListener(type, listener) {
      return _addListener(this, type, listener, true);
    };

function onceWrapper() {
  if (!this.fired) {
    this.target.removeListener(this.type, this.wrapFn);
    this.fired = true;
    switch (arguments.length) {
      case 0:
        return this.listener.call(this.target);
      case 1:
        return this.listener.call(this.target, arguments[0]);
      case 2:
        return this.listener.call(this.target, arguments[0], arguments[1]);
      case 3:
        return this.listener.call(this.target, arguments[0], arguments[1],
            arguments[2]);
      default:
        var args = new Array(arguments.length);
        for (var i = 0; i < args.length; ++i)
          args[i] = arguments[i];
        this.listener.apply(this.target, args);
    }
  }
}

function _onceWrap(target, type, listener) {
  var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };
  var wrapped = bind.call(onceWrapper, state);
  wrapped.listener = listener;
  state.wrapFn = wrapped;
  return wrapped;
}

EventEmitter.prototype.once = function once(type, listener) {
  if (typeof listener !== 'function')
    throw new TypeError('"listener" argument must be a function');
  this.on(type, _onceWrap(this, type, listener));
  return this;
};

EventEmitter.prototype.prependOnceListener =
    function prependOnceListener(type, listener) {
      if (typeof listener !== 'function')
        throw new TypeError('"listener" argument must be a function');
      this.prependListener(type, _onceWrap(this, type, listener));
      return this;
    };

// Emits a 'removeListener' event if and only if the listener was removed.
EventEmitter.prototype.removeListener =
    function removeListener(type, listener) {
      var list, events, position, i, originalListener;

      if (typeof listener !== 'function')
        throw new TypeError('"listener" argument must be a function');

      events = this._events;
      if (!events)
        return this;

      list = events[type];
      if (!list)
        return this;

      if (list === listener || list.listener === listener) {
        if (--this._eventsCount === 0)
          this._events = objectCreate(null);
        else {
          delete events[type];
          if (events.removeListener)
            this.emit('removeListener', type, list.listener || listener);
        }
      } else if (typeof list !== 'function') {
        position = -1;

        for (i = list.length - 1; i >= 0; i--) {
          if (list[i] === listener || list[i].listener === listener) {
            originalListener = list[i].listener;
            position = i;
            break;
          }
        }

        if (position < 0)
          return this;

        if (position === 0)
          list.shift();
        else
          spliceOne(list, position);

        if (list.length === 1)
          events[type] = list[0];

        if (events.removeListener)
          this.emit('removeListener', type, originalListener || listener);
      }

      return this;
    };

EventEmitter.prototype.removeAllListeners =
    function removeAllListeners(type) {
      var listeners, events, i;

      events = this._events;
      if (!events)
        return this;

      // not listening for removeListener, no need to emit
      if (!events.removeListener) {
        if (arguments.length === 0) {
          this._events = objectCreate(null);
          this._eventsCount = 0;
        } else if (events[type]) {
          if (--this._eventsCount === 0)
            this._events = objectCreate(null);
          else
            delete events[type];
        }
        return this;
      }

      // emit removeListener for all listeners on all events
      if (arguments.length === 0) {
        var keys = objectKeys(events);
        var key;
        for (i = 0; i < keys.length; ++i) {
          key = keys[i];
          if (key === 'removeListener') continue;
          this.removeAllListeners(key);
        }
        this.removeAllListeners('removeListener');
        this._events = objectCreate(null);
        this._eventsCount = 0;
        return this;
      }

      listeners = events[type];

      if (typeof listeners === 'function') {
        this.removeListener(type, listeners);
      } else if (listeners) {
        // LIFO order
        for (i = listeners.length - 1; i >= 0; i--) {
          this.removeListener(type, listeners[i]);
        }
      }

      return this;
    };

function _listeners(target, type, unwrap) {
  var events = target._events;

  if (!events)
    return [];

  var evlistener = events[type];
  if (!evlistener)
    return [];

  if (typeof evlistener === 'function')
    return unwrap ? [evlistener.listener || evlistener] : [evlistener];

  return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
}

EventEmitter.prototype.listeners = function listeners(type) {
  return _listeners(this, type, true);
};

EventEmitter.prototype.rawListeners = function rawListeners(type) {
  return _listeners(this, type, false);
};

EventEmitter.listenerCount = function(emitter, type) {
  if (typeof emitter.listenerCount === 'function') {
    return emitter.listenerCount(type);
  } else {
    return listenerCount.call(emitter, type);
  }
};

EventEmitter.prototype.listenerCount = listenerCount;
function listenerCount(type) {
  var events = this._events;

  if (events) {
    var evlistener = events[type];

    if (typeof evlistener === 'function') {
      return 1;
    } else if (evlistener) {
      return evlistener.length;
    }
  }

  return 0;
}

EventEmitter.prototype.eventNames = function eventNames() {
  return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
};

// About 1.5x faster than the two-arg version of Array#splice().
function spliceOne(list, index) {
  for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1)
    list[i] = list[k];
  list.pop();
}

function arrayClone(arr, n) {
  var copy = new Array(n);
  for (var i = 0; i < n; ++i)
    copy[i] = arr[i];
  return copy;
}

function unwrapListeners(arr) {
  var ret = new Array(arr.length);
  for (var i = 0; i < ret.length; ++i) {
    ret[i] = arr[i].listener || arr[i];
  }
  return ret;
}

function objectCreatePolyfill(proto) {
  var F = function() {};
  F.prototype = proto;
  return new F;
}
function objectKeysPolyfill(obj) {
  var keys = [];
  for (var k in obj) if (Object.prototype.hasOwnProperty.call(obj, k)) {
    keys.push(k);
  }
  return k;
}
function functionBindPolyfill(context) {
  var fn = this;
  return function () {
    return fn.apply(context, arguments);
  };
}

},{}],7:[function(require,module,exports){
var http = require('http')
var url = require('url')

var https = module.exports

for (var key in http) {
  if (http.hasOwnProperty(key)) https[key] = http[key]
}

https.request = function (params, cb) {
  params = validateParams(params)
  return http.request.call(this, params, cb)
}

https.get = function (params, cb) {
  params = validateParams(params)
  return http.get.call(this, params, cb)
}

function validateParams (params) {
  if (typeof params === 'string') {
    params = url.parse(params)
  }
  if (!params.protocol) {
    params.protocol = 'https:'
  }
  if (params.protocol !== 'https:') {
    throw new Error('Protocol "' + params.protocol + '" not supported. Expected "https:"')
  }
  return params
}

},{"http":18,"url":39}],8:[function(require,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
}

},{}],9:[function(require,module,exports){
if (typeof Object.create === 'function') {
  // implementation from standard node.js 'util' module
  module.exports = function inherits(ctor, superCtor) {
    if (superCtor) {
      ctor.super_ = superCtor
      ctor.prototype = Object.create(superCtor.prototype, {
        constructor: {
          value: ctor,
          enumerable: false,
          writable: true,
          configurable: true
        }
      })
    }
  };
} else {
  // old school shim for old browsers
  module.exports = function inherits(ctor, superCtor) {
    if (superCtor) {
      ctor.super_ = superCtor
      var TempCtor = function () {}
      TempCtor.prototype = superCtor.prototype
      ctor.prototype = new TempCtor()
      ctor.prototype.constructor = ctor
    }
  }
}

},{}],10:[function(require,module,exports){
exports.endianness = function () { return 'LE' };

exports.hostname = function () {
    if (typeof location !== 'undefined') {
        return location.hostname
    }
    else return '';
};

exports.loadavg = function () { return [] };

exports.uptime = function () { return 0 };

exports.freemem = function () {
    return Number.MAX_VALUE;
};

exports.totalmem = function () {
    return Number.MAX_VALUE;
};

exports.cpus = function () { return [] };

exports.type = function () { return 'Browser' };

exports.release = function () {
    if (typeof navigator !== 'undefined') {
        return navigator.appVersion;
    }
    return '';
};

exports.networkInterfaces
= exports.getNetworkInterfaces
= function () { return {} };

exports.arch = function () { return 'javascript' };

exports.platform = function () { return 'browser' };

exports.tmpdir = exports.tmpDir = function () {
    return '/tmp';
};

exports.EOL = '\n';

exports.homedir = function () {
	return '/'
};

},{}],11:[function(require,module,exports){
(function (process){
// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
// backported and transplited with Babel, with backwards-compat fixes

// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

// resolves . and .. elements in a path array with directory names there
// must be no slashes, empty elements, or device names (c:\) in the array
// (so also no leading and trailing slashes - it does not distinguish
// relative and absolute paths)
function normalizeArray(parts, allowAboveRoot) {
  // if the path tries to go above the root, `up` ends up > 0
  var up = 0;
  for (var i = parts.length - 1; i >= 0; i--) {
    var last = parts[i];
    if (last === '.') {
      parts.splice(i, 1);
    } else if (last === '..') {
      parts.splice(i, 1);
      up++;
    } else if (up) {
      parts.splice(i, 1);
      up--;
    }
  }

  // if the path is allowed to go above the root, restore leading ..s
  if (allowAboveRoot) {
    for (; up--; up) {
      parts.unshift('..');
    }
  }

  return parts;
}

// path.resolve([from ...], to)
// posix version
exports.resolve = function() {
  var resolvedPath = '',
      resolvedAbsolute = false;

  for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
    var path = (i >= 0) ? arguments[i] : process.cwd();

    // Skip empty and invalid entries
    if (typeof path !== 'string') {
      throw new TypeError('Arguments to path.resolve must be strings');
    } else if (!path) {
      continue;
    }

    resolvedPath = path + '/' + resolvedPath;
    resolvedAbsolute = path.charAt(0) === '/';
  }

  // At this point the path should be resolved to a full absolute path, but
  // handle relative paths to be safe (might happen when process.cwd() fails)

  // Normalize the path
  resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
    return !!p;
  }), !resolvedAbsolute).join('/');

  return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
};

// path.normalize(path)
// posix version
exports.normalize = function(path) {
  var isAbsolute = exports.isAbsolute(path),
      trailingSlash = substr(path, -1) === '/';

  // Normalize the path
  path = normalizeArray(filter(path.split('/'), function(p) {
    return !!p;
  }), !isAbsolute).join('/');

  if (!path && !isAbsolute) {
    path = '.';
  }
  if (path && trailingSlash) {
    path += '/';
  }

  return (isAbsolute ? '/' : '') + path;
};

// posix version
exports.isAbsolute = function(path) {
  return path.charAt(0) === '/';
};

// posix version
exports.join = function() {
  var paths = Array.prototype.slice.call(arguments, 0);
  return exports.normalize(filter(paths, function(p, index) {
    if (typeof p !== 'string') {
      throw new TypeError('Arguments to path.join must be strings');
    }
    return p;
  }).join('/'));
};


// path.relative(from, to)
// posix version
exports.relative = function(from, to) {
  from = exports.resolve(from).substr(1);
  to = exports.resolve(to).substr(1);

  function trim(arr) {
    var start = 0;
    for (; start < arr.length; start++) {
      if (arr[start] !== '') break;
    }

    var end = arr.length - 1;
    for (; end >= 0; end--) {
      if (arr[end] !== '') break;
    }

    if (start > end) return [];
    return arr.slice(start, end - start + 1);
  }

  var fromParts = trim(from.split('/'));
  var toParts = trim(to.split('/'));

  var length = Math.min(fromParts.length, toParts.length);
  var samePartsLength = length;
  for (var i = 0; i < length; i++) {
    if (fromParts[i] !== toParts[i]) {
      samePartsLength = i;
      break;
    }
  }

  var outputParts = [];
  for (var i = samePartsLength; i < fromParts.length; i++) {
    outputParts.push('..');
  }

  outputParts = outputParts.concat(toParts.slice(samePartsLength));

  return outputParts.join('/');
};

exports.sep = '/';
exports.delimiter = ':';

exports.dirname = function (path) {
  if (typeof path !== 'string') path = path + '';
  if (path.length === 0) return '.';
  var code = path.charCodeAt(0);
  var hasRoot = code === 47 /*/*/;
  var end = -1;
  var matchedSlash = true;
  for (var i = path.length - 1; i >= 1; --i) {
    code = path.charCodeAt(i);
    if (code === 47 /*/*/) {
        if (!matchedSlash) {
          end = i;
          break;
        }
      } else {
      // We saw the first non-path separator
      matchedSlash = false;
    }
  }

  if (end === -1) return hasRoot ? '/' : '.';
  if (hasRoot && end === 1) {
    // return '//';
    // Backwards-compat fix:
    return '/';
  }
  return path.slice(0, end);
};

function basename(path) {
  if (typeof path !== 'string') path = path + '';

  var start = 0;
  var end = -1;
  var matchedSlash = true;
  var i;

  for (i = path.length - 1; i >= 0; --i) {
    if (path.charCodeAt(i) === 47 /*/*/) {
        // If we reached a path separator that was not part of a set of path
        // separators at the end of the string, stop now
        if (!matchedSlash) {
          start = i + 1;
          break;
        }
      } else if (end === -1) {
      // We saw the first non-path separator, mark this as the end of our
      // path component
      matchedSlash = false;
      end = i + 1;
    }
  }

  if (end === -1) return '';
  return path.slice(start, end);
}

// Uses a mixed approach for backwards-compatibility, as ext behavior changed
// in new Node.js versions, so only basename() above is backported here
exports.basename = function (path, ext) {
  var f = basename(path);
  if (ext && f.substr(-1 * ext.length) === ext) {
    f = f.substr(0, f.length - ext.length);
  }
  return f;
};

exports.extname = function (path) {
  if (typeof path !== 'string') path = path + '';
  var startDot = -1;
  var startPart = 0;
  var end = -1;
  var matchedSlash = true;
  // Track the state of characters (if any) we see before our first dot and
  // after any path separator we find
  var preDotState = 0;
  for (var i = path.length - 1; i >= 0; --i) {
    var code = path.charCodeAt(i);
    if (code === 47 /*/*/) {
        // If we reached a path separator that was not part of a set of path
        // separators at the end of the string, stop now
        if (!matchedSlash) {
          startPart = i + 1;
          break;
        }
        continue;
      }
    if (end === -1) {
      // We saw the first non-path separator, mark this as the end of our
      // extension
      matchedSlash = false;
      end = i + 1;
    }
    if (code === 46 /*.*/) {
        // If this is our first dot, mark it as the start of our extension
        if (startDot === -1)
          startDot = i;
        else if (preDotState !== 1)
          preDotState = 1;
    } else if (startDot !== -1) {
      // We saw a non-dot and non-path separator before our dot, so we should
      // have a good chance at having a non-empty extension
      preDotState = -1;
    }
  }

  if (startDot === -1 || end === -1 ||
      // We saw a non-dot character immediately before the dot
      preDotState === 0 ||
      // The (right-most) trimmed path component is exactly '..'
      preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
    return '';
  }
  return path.slice(startDot, end);
};

function filter (xs, f) {
    if (xs.filter) return xs.filter(f);
    var res = [];
    for (var i = 0; i < xs.length; i++) {
        if (f(xs[i], i, xs)) res.push(xs[i]);
    }
    return res;
}

// String.prototype.substr - negative index don't work in IE8
var substr = 'ab'.substr(-1) === 'b'
    ? function (str, start, len) { return str.substr(start, len) }
    : function (str, start, len) {
        if (start < 0) start = str.length + start;
        return str.substr(start, len);
    }
;

}).call(this,require('_process'))
},{"_process":12}],12:[function(require,module,exports){
// shim for using process in browser
var process = module.exports = {};

// cached from whatever global is present so that test runners that stub it
// don't break things.  But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals.  It's inside a
// function because try/catches deoptimize in certain engines.

var cachedSetTimeout;
var cachedClearTimeout;

function defaultSetTimout() {
    throw new Error('setTimeout has not been defined');
}
function defaultClearTimeout () {
    throw new Error('clearTimeout has not been defined');
}
(function () {
    try {
        if (typeof setTimeout === 'function') {
            cachedSetTimeout = setTimeout;
        } else {
            cachedSetTimeout = defaultSetTimout;
        }
    } catch (e) {
        cachedSetTimeout = defaultSetTimout;
    }
    try {
        if (typeof clearTimeout === 'function') {
            cachedClearTimeout = clearTimeout;
        } else {
            cachedClearTimeout = defaultClearTimeout;
        }
    } catch (e) {
        cachedClearTimeout = defaultClearTimeout;
    }
} ())
function runTimeout(fun) {
    if (cachedSetTimeout === setTimeout) {
        //normal enviroments in sane situations
        return setTimeout(fun, 0);
    }
    // if setTimeout wasn't available but was latter defined
    if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
        cachedSetTimeout = setTimeout;
        return setTimeout(fun, 0);
    }
    try {
        // when when somebody has screwed with setTimeout but no I.E. maddness
        return cachedSetTimeout(fun, 0);
    } catch(e){
        try {
            // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
            return cachedSetTimeout.call(null, fun, 0);
        } catch(e){
            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
            return cachedSetTimeout.call(this, fun, 0);
        }
    }


}
function runClearTimeout(marker) {
    if (cachedClearTimeout === clearTimeout) {
        //normal enviroments in sane situations
        return clearTimeout(marker);
    }
    // if clearTimeout wasn't available but was latter defined
    if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
        cachedClearTimeout = clearTimeout;
        return clearTimeout(marker);
    }
    try {
        // when when somebody has screwed with setTimeout but no I.E. maddness
        return cachedClearTimeout(marker);
    } catch (e){
        try {
            // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally
            return cachedClearTimeout.call(null, marker);
        } catch (e){
            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
            // Some versions of I.E. have different rules for clearTimeout vs setTimeout
            return cachedClearTimeout.call(this, marker);
        }
    }



}
var queue = [];
var draining = false;
var currentQueue;
var queueIndex = -1;

function cleanUpNextTick() {
    if (!draining || !currentQueue) {
        return;
    }
    draining = false;
    if (currentQueue.length) {
        queue = currentQueue.concat(queue);
    } else {
        queueIndex = -1;
    }
    if (queue.length) {
        drainQueue();
    }
}

function drainQueue() {
    if (draining) {
        return;
    }
    var timeout = runTimeout(cleanUpNextTick);
    draining = true;

    var len = queue.length;
    while(len) {
        currentQueue = queue;
        queue = [];
        while (++queueIndex < len) {
            if (currentQueue) {
                currentQueue[queueIndex].run();
            }
        }
        queueIndex = -1;
        len = queue.length;
    }
    currentQueue = null;
    draining = false;
    runClearTimeout(timeout);
}

process.nextTick = function (fun) {
    var args = new Array(arguments.length - 1);
    if (arguments.length > 1) {
        for (var i = 1; i < arguments.length; i++) {
            args[i - 1] = arguments[i];
        }
    }
    queue.push(new Item(fun, args));
    if (queue.length === 1 && !draining) {
        runTimeout(drainQueue);
    }
};

// v8 likes predictible objects
function Item(fun, array) {
    this.fun = fun;
    this.array = array;
}
Item.prototype.run = function () {
    this.fun.apply(null, this.array);
};
process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};

function noop() {}

process.on = noop;
process.addListener = noop;
process.once = noop;
process.off = noop;
process.removeListener = noop;
process.removeAllListeners = noop;
process.emit = noop;
process.prependListener = noop;
process.prependOnceListener = noop;

process.listeners = function (name) { return [] }

process.binding = function (name) {
    throw new Error('process.binding is not supported');
};

process.cwd = function () { return '/' };
process.chdir = function (dir) {
    throw new Error('process.chdir is not supported');
};
process.umask = function() { return 0; };

},{}],13:[function(require,module,exports){
(function (global){
/*! https://mths.be/punycode v1.4.1 by @mathias */
;(function(root) {

	/** Detect free variables */
	var freeExports = typeof exports == 'object' && exports &&
		!exports.nodeType && exports;
	var freeModule = typeof module == 'object' && module &&
		!module.nodeType && module;
	var freeGlobal = typeof global == 'object' && global;
	if (
		freeGlobal.global === freeGlobal ||
		freeGlobal.window === freeGlobal ||
		freeGlobal.self === freeGlobal
	) {
		root = freeGlobal;
	}

	/**
	 * The `punycode` object.
	 * @name punycode
	 * @type Object
	 */
	var punycode,

	/** Highest positive signed 32-bit float value */
	maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1

	/** Bootstring parameters */
	base = 36,
	tMin = 1,
	tMax = 26,
	skew = 38,
	damp = 700,
	initialBias = 72,
	initialN = 128, // 0x80
	delimiter = '-', // '\x2D'

	/** Regular expressions */
	regexPunycode = /^xn--/,
	regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars
	regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators

	/** Error messages */
	errors = {
		'overflow': 'Overflow: input needs wider integers to process',
		'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
		'invalid-input': 'Invalid input'
	},

	/** Convenience shortcuts */
	baseMinusTMin = base - tMin,
	floor = Math.floor,
	stringFromCharCode = String.fromCharCode,

	/** Temporary variable */
	key;

	/*--------------------------------------------------------------------------*/

	/**
	 * A generic error utility function.
	 * @private
	 * @param {String} type The error type.
	 * @returns {Error} Throws a `RangeError` with the applicable error message.
	 */
	function error(type) {
		throw new RangeError(errors[type]);
	}

	/**
	 * A generic `Array#map` utility function.
	 * @private
	 * @param {Array} array The array to iterate over.
	 * @param {Function} callback The function that gets called for every array
	 * item.
	 * @returns {Array} A new array of values returned by the callback function.
	 */
	function map(array, fn) {
		var length = array.length;
		var result = [];
		while (length--) {
			result[length] = fn(array[length]);
		}
		return result;
	}

	/**
	 * A simple `Array#map`-like wrapper to work with domain name strings or email
	 * addresses.
	 * @private
	 * @param {String} domain The domain name or email address.
	 * @param {Function} callback The function that gets called for every
	 * character.
	 * @returns {Array} A new string of characters returned by the callback
	 * function.
	 */
	function mapDomain(string, fn) {
		var parts = string.split('@');
		var result = '';
		if (parts.length > 1) {
			// In email addresses, only the domain name should be punycoded. Leave
			// the local part (i.e. everything up to `@`) intact.
			result = parts[0] + '@';
			string = parts[1];
		}
		// Avoid `split(regex)` for IE8 compatibility. See #17.
		string = string.replace(regexSeparators, '\x2E');
		var labels = string.split('.');
		var encoded = map(labels, fn).join('.');
		return result + encoded;
	}

	/**
	 * Creates an array containing the numeric code points of each Unicode
	 * character in the string. While JavaScript uses UCS-2 internally,
	 * this function will convert a pair of surrogate halves (each of which
	 * UCS-2 exposes as separate characters) into a single code point,
	 * matching UTF-16.
	 * @see `punycode.ucs2.encode`
	 * @see <https://mathiasbynens.be/notes/javascript-encoding>
	 * @memberOf punycode.ucs2
	 * @name decode
	 * @param {String} string The Unicode input string (UCS-2).
	 * @returns {Array} The new array of code points.
	 */
	function ucs2decode(string) {
		var output = [],
		    counter = 0,
		    length = string.length,
		    value,
		    extra;
		while (counter < length) {
			value = string.charCodeAt(counter++);
			if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
				// high surrogate, and there is a next character
				extra = string.charCodeAt(counter++);
				if ((extra & 0xFC00) == 0xDC00) { // low surrogate
					output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
				} else {
					// unmatched surrogate; only append this code unit, in case the next
					// code unit is the high surrogate of a surrogate pair
					output.push(value);
					counter--;
				}
			} else {
				output.push(value);
			}
		}
		return output;
	}

	/**
	 * Creates a string based on an array of numeric code points.
	 * @see `punycode.ucs2.decode`
	 * @memberOf punycode.ucs2
	 * @name encode
	 * @param {Array} codePoints The array of numeric code points.
	 * @returns {String} The new Unicode string (UCS-2).
	 */
	function ucs2encode(array) {
		return map(array, function(value) {
			var output = '';
			if (value > 0xFFFF) {
				value -= 0x10000;
				output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
				value = 0xDC00 | value & 0x3FF;
			}
			output += stringFromCharCode(value);
			return output;
		}).join('');
	}

	/**
	 * Converts a basic code point into a digit/integer.
	 * @see `digitToBasic()`
	 * @private
	 * @param {Number} codePoint The basic numeric code point value.
	 * @returns {Number} The numeric value of a basic code point (for use in
	 * representing integers) in the range `0` to `base - 1`, or `base` if
	 * the code point does not represent a value.
	 */
	function basicToDigit(codePoint) {
		if (codePoint - 48 < 10) {
			return codePoint - 22;
		}
		if (codePoint - 65 < 26) {
			return codePoint - 65;
		}
		if (codePoint - 97 < 26) {
			return codePoint - 97;
		}
		return base;
	}

	/**
	 * Converts a digit/integer into a basic code point.
	 * @see `basicToDigit()`
	 * @private
	 * @param {Number} digit The numeric value of a basic code point.
	 * @returns {Number} The basic code point whose value (when used for
	 * representing integers) is `digit`, which needs to be in the range
	 * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
	 * used; else, the lowercase form is used. The behavior is undefined
	 * if `flag` is non-zero and `digit` has no uppercase form.
	 */
	function digitToBasic(digit, flag) {
		//  0..25 map to ASCII a..z or A..Z
		// 26..35 map to ASCII 0..9
		return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
	}

	/**
	 * Bias adaptation function as per section 3.4 of RFC 3492.
	 * https://tools.ietf.org/html/rfc3492#section-3.4
	 * @private
	 */
	function adapt(delta, numPoints, firstTime) {
		var k = 0;
		delta = firstTime ? floor(delta / damp) : delta >> 1;
		delta += floor(delta / numPoints);
		for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
			delta = floor(delta / baseMinusTMin);
		}
		return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
	}

	/**
	 * Converts a Punycode string of ASCII-only symbols to a string of Unicode
	 * symbols.
	 * @memberOf punycode
	 * @param {String} input The Punycode string of ASCII-only symbols.
	 * @returns {String} The resulting string of Unicode symbols.
	 */
	function decode(input) {
		// Don't use UCS-2
		var output = [],
		    inputLength = input.length,
		    out,
		    i = 0,
		    n = initialN,
		    bias = initialBias,
		    basic,
		    j,
		    index,
		    oldi,
		    w,
		    k,
		    digit,
		    t,
		    /** Cached calculation results */
		    baseMinusT;

		// Handle the basic code points: let `basic` be the number of input code
		// points before the last delimiter, or `0` if there is none, then copy
		// the first basic code points to the output.

		basic = input.lastIndexOf(delimiter);
		if (basic < 0) {
			basic = 0;
		}

		for (j = 0; j < basic; ++j) {
			// if it's not a basic code point
			if (input.charCodeAt(j) >= 0x80) {
				error('not-basic');
			}
			output.push(input.charCodeAt(j));
		}

		// Main decoding loop: start just after the last delimiter if any basic code
		// points were copied; start at the beginning otherwise.

		for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {

			// `index` is the index of the next character to be consumed.
			// Decode a generalized variable-length integer into `delta`,
			// which gets added to `i`. The overflow checking is easier
			// if we increase `i` as we go, then subtract off its starting
			// value at the end to obtain `delta`.
			for (oldi = i, w = 1, k = base; /* no condition */; k += base) {

				if (index >= inputLength) {
					error('invalid-input');
				}

				digit = basicToDigit(input.charCodeAt(index++));

				if (digit >= base || digit > floor((maxInt - i) / w)) {
					error('overflow');
				}

				i += digit * w;
				t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);

				if (digit < t) {
					break;
				}

				baseMinusT = base - t;
				if (w > floor(maxInt / baseMinusT)) {
					error('overflow');
				}

				w *= baseMinusT;

			}

			out = output.length + 1;
			bias = adapt(i - oldi, out, oldi == 0);

			// `i` was supposed to wrap around from `out` to `0`,
			// incrementing `n` each time, so we'll fix that now:
			if (floor(i / out) > maxInt - n) {
				error('overflow');
			}

			n += floor(i / out);
			i %= out;

			// Insert `n` at position `i` of the output
			output.splice(i++, 0, n);

		}

		return ucs2encode(output);
	}

	/**
	 * Converts a string of Unicode symbols (e.g. a domain name label) to a
	 * Punycode string of ASCII-only symbols.
	 * @memberOf punycode
	 * @param {String} input The string of Unicode symbols.
	 * @returns {String} The resulting Punycode string of ASCII-only symbols.
	 */
	function encode(input) {
		var n,
		    delta,
		    handledCPCount,
		    basicLength,
		    bias,
		    j,
		    m,
		    q,
		    k,
		    t,
		    currentValue,
		    output = [],
		    /** `inputLength` will hold the number of code points in `input`. */
		    inputLength,
		    /** Cached calculation results */
		    handledCPCountPlusOne,
		    baseMinusT,
		    qMinusT;

		// Convert the input in UCS-2 to Unicode
		input = ucs2decode(input);

		// Cache the length
		inputLength = input.length;

		// Initialize the state
		n = initialN;
		delta = 0;
		bias = initialBias;

		// Handle the basic code points
		for (j = 0; j < inputLength; ++j) {
			currentValue = input[j];
			if (currentValue < 0x80) {
				output.push(stringFromCharCode(currentValue));
			}
		}

		handledCPCount = basicLength = output.length;

		// `handledCPCount` is the number of code points that have been handled;
		// `basicLength` is the number of basic code points.

		// Finish the basic string - if it is not empty - with a delimiter
		if (basicLength) {
			output.push(delimiter);
		}

		// Main encoding loop:
		while (handledCPCount < inputLength) {

			// All non-basic code points < n have been handled already. Find the next
			// larger one:
			for (m = maxInt, j = 0; j < inputLength; ++j) {
				currentValue = input[j];
				if (currentValue >= n && currentValue < m) {
					m = currentValue;
				}
			}

			// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
			// but guard against overflow
			handledCPCountPlusOne = handledCPCount + 1;
			if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
				error('overflow');
			}

			delta += (m - n) * handledCPCountPlusOne;
			n = m;

			for (j = 0; j < inputLength; ++j) {
				currentValue = input[j];

				if (currentValue < n && ++delta > maxInt) {
					error('overflow');
				}

				if (currentValue == n) {
					// Represent delta as a generalized variable-length integer
					for (q = delta, k = base; /* no condition */; k += base) {
						t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
						if (q < t) {
							break;
						}
						qMinusT = q - t;
						baseMinusT = base - t;
						output.push(
							stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
						);
						q = floor(qMinusT / baseMinusT);
					}

					output.push(stringFromCharCode(digitToBasic(q, 0)));
					bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
					delta = 0;
					++handledCPCount;
				}
			}

			++delta;
			++n;

		}
		return output.join('');
	}

	/**
	 * Converts a Punycode string representing a domain name or an email address
	 * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
	 * it doesn't matter if you call it on a string that has already been
	 * converted to Unicode.
	 * @memberOf punycode
	 * @param {String} input The Punycoded domain name or email address to
	 * convert to Unicode.
	 * @returns {String} The Unicode representation of the given Punycode
	 * string.
	 */
	function toUnicode(input) {
		return mapDomain(input, function(string) {
			return regexPunycode.test(string)
				? decode(string.slice(4).toLowerCase())
				: string;
		});
	}

	/**
	 * Converts a Unicode string representing a domain name or an email address to
	 * Punycode. Only the non-ASCII parts of the domain name will be converted,
	 * i.e. it doesn't matter if you call it with a domain that's already in
	 * ASCII.
	 * @memberOf punycode
	 * @param {String} input The domain name or email address to convert, as a
	 * Unicode string.
	 * @returns {String} The Punycode representation of the given domain name or
	 * email address.
	 */
	function toASCII(input) {
		return mapDomain(input, function(string) {
			return regexNonASCII.test(string)
				? 'xn--' + encode(string)
				: string;
		});
	}

	/*--------------------------------------------------------------------------*/

	/** Define the public API */
	punycode = {
		/**
		 * A string representing the current Punycode.js version number.
		 * @memberOf punycode
		 * @type String
		 */
		'version': '1.4.1',
		/**
		 * An object of methods to convert from JavaScript's internal character
		 * representation (UCS-2) to Unicode code points, and back.
		 * @see <https://mathiasbynens.be/notes/javascript-encoding>
		 * @memberOf punycode
		 * @type Object
		 */
		'ucs2': {
			'decode': ucs2decode,
			'encode': ucs2encode
		},
		'decode': decode,
		'encode': encode,
		'toASCII': toASCII,
		'toUnicode': toUnicode
	};

	/** Expose `punycode` */
	// Some AMD build optimizers, like r.js, check for specific condition patterns
	// like the following:
	if (
		typeof define == 'function' &&
		typeof define.amd == 'object' &&
		define.amd
	) {
		define('punycode', function() {
			return punycode;
		});
	} else if (freeExports && freeModule) {
		if (module.exports == freeExports) {
			// in Node.js, io.js, or RingoJS v0.8.0+
			freeModule.exports = punycode;
		} else {
			// in Narwhal or RingoJS v0.7.0-
			for (key in punycode) {
				punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);
			}
		}
	} else {
		// in Rhino or a web browser
		root.punycode = punycode;
	}

}(this));

}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],14:[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

'use strict';

// If obj.hasOwnProperty has been overridden, then calling
// obj.hasOwnProperty(prop) will break.
// See: https://github.com/joyent/node/issues/1707
function hasOwnProperty(obj, prop) {
  return Object.prototype.hasOwnProperty.call(obj, prop);
}

module.exports = function(qs, sep, eq, options) {
  sep = sep || '&';
  eq = eq || '=';
  var obj = {};

  if (typeof qs !== 'string' || qs.length === 0) {
    return obj;
  }

  var regexp = /\+/g;
  qs = qs.split(sep);

  var maxKeys = 1000;
  if (options && typeof options.maxKeys === 'number') {
    maxKeys = options.maxKeys;
  }

  var len = qs.length;
  // maxKeys <= 0 means that we should not limit keys count
  if (maxKeys > 0 && len > maxKeys) {
    len = maxKeys;
  }

  for (var i = 0; i < len; ++i) {
    var x = qs[i].replace(regexp, '%20'),
        idx = x.indexOf(eq),
        kstr, vstr, k, v;

    if (idx >= 0) {
      kstr = x.substr(0, idx);
      vstr = x.substr(idx + 1);
    } else {
      kstr = x;
      vstr = '';
    }

    k = decodeURIComponent(kstr);
    v = decodeURIComponent(vstr);

    if (!hasOwnProperty(obj, k)) {
      obj[k] = v;
    } else if (isArray(obj[k])) {
      obj[k].push(v);
    } else {
      obj[k] = [obj[k], v];
    }
  }

  return obj;
};

var isArray = Array.isArray || function (xs) {
  return Object.prototype.toString.call(xs) === '[object Array]';
};

},{}],15:[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

'use strict';

var stringifyPrimitive = function(v) {
  switch (typeof v) {
    case 'string':
      return v;

    case 'boolean':
      return v ? 'true' : 'false';

    case 'number':
      return isFinite(v) ? v : '';

    default:
      return '';
  }
};

module.exports = function(obj, sep, eq, name) {
  sep = sep || '&';
  eq = eq || '=';
  if (obj === null) {
    obj = undefined;
  }

  if (typeof obj === 'object') {
    return map(objectKeys(obj), function(k) {
      var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;
      if (isArray(obj[k])) {
        return map(obj[k], function(v) {
          return ks + encodeURIComponent(stringifyPrimitive(v));
        }).join(sep);
      } else {
        return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
      }
    }).join(sep);

  }

  if (!name) return '';
  return encodeURIComponent(stringifyPrimitive(name)) + eq +
         encodeURIComponent(stringifyPrimitive(obj));
};

var isArray = Array.isArray || function (xs) {
  return Object.prototype.toString.call(xs) === '[object Array]';
};

function map (xs, f) {
  if (xs.map) return xs.map(f);
  var res = [];
  for (var i = 0; i < xs.length; i++) {
    res.push(f(xs[i], i));
  }
  return res;
}

var objectKeys = Object.keys || function (obj) {
  var res = [];
  for (var key in obj) {
    if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);
  }
  return res;
};

},{}],16:[function(require,module,exports){
'use strict';

exports.decode = exports.parse = require('./decode');
exports.encode = exports.stringify = require('./encode');

},{"./decode":14,"./encode":15}],17:[function(require,module,exports){
/* eslint-disable node/no-deprecated-api */
var buffer = require('buffer')
var Buffer = buffer.Buffer

// alternative to using Object.keys for old browsers
function copyProps (src, dst) {
  for (var key in src) {
    dst[key] = src[key]
  }
}
if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
  module.exports = buffer
} else {
  // Copy properties from require('buffer')
  copyProps(buffer, exports)
  exports.Buffer = SafeBuffer
}

function SafeBuffer (arg, encodingOrOffset, length) {
  return Buffer(arg, encodingOrOffset, length)
}

SafeBuffer.prototype = Object.create(Buffer.prototype)

// Copy static methods from Buffer
copyProps(Buffer, SafeBuffer)

SafeBuffer.from = function (arg, encodingOrOffset, length) {
  if (typeof arg === 'number') {
    throw new TypeError('Argument must not be a number')
  }
  return Buffer(arg, encodingOrOffset, length)
}

SafeBuffer.alloc = function (size, fill, encoding) {
  if (typeof size !== 'number') {
    throw new TypeError('Argument must be a number')
  }
  var buf = Buffer(size)
  if (fill !== undefined) {
    if (typeof encoding === 'string') {
      buf.fill(fill, encoding)
    } else {
      buf.fill(fill)
    }
  } else {
    buf.fill(0)
  }
  return buf
}

SafeBuffer.allocUnsafe = function (size) {
  if (typeof size !== 'number') {
    throw new TypeError('Argument must be a number')
  }
  return Buffer(size)
}

SafeBuffer.allocUnsafeSlow = function (size) {
  if (typeof size !== 'number') {
    throw new TypeError('Argument must be a number')
  }
  return buffer.SlowBuffer(size)
}

},{"buffer":4}],18:[function(require,module,exports){
(function (global){
var ClientRequest = require('./lib/request')
var response = require('./lib/response')
var extend = require('xtend')
var statusCodes = require('builtin-status-codes')
var url = require('url')

var http = exports

http.request = function (opts, cb) {
	if (typeof opts === 'string')
		opts = url.parse(opts)
	else
		opts = extend(opts)

	// Normally, the page is loaded from http or https, so not specifying a protocol
	// will result in a (valid) protocol-relative url. However, this won't work if
	// the protocol is something else, like 'file:'
	var defaultProtocol = global.location.protocol.search(/^https?:$/) === -1 ? 'http:' : ''

	var protocol = opts.protocol || defaultProtocol
	var host = opts.hostname || opts.host
	var port = opts.port
	var path = opts.path || '/'

	// Necessary for IPv6 addresses
	if (host && host.indexOf(':') !== -1)
		host = '[' + host + ']'

	// This may be a relative url. The browser should always be able to interpret it correctly.
	opts.url = (host ? (protocol + '//' + host) : '') + (port ? ':' + port : '') + path
	opts.method = (opts.method || 'GET').toUpperCase()
	opts.headers = opts.headers || {}

	// Also valid opts.auth, opts.mode

	var req = new ClientRequest(opts)
	if (cb)
		req.on('response', cb)
	return req
}

http.get = function get (opts, cb) {
	var req = http.request(opts, cb)
	req.end()
	return req
}

http.ClientRequest = ClientRequest
http.IncomingMessage = response.IncomingMessage

http.Agent = function () {}
http.Agent.defaultMaxSockets = 4

http.globalAgent = new http.Agent()

http.STATUS_CODES = statusCodes

http.METHODS = [
	'CHECKOUT',
	'CONNECT',
	'COPY',
	'DELETE',
	'GET',
	'HEAD',
	'LOCK',
	'M-SEARCH',
	'MERGE',
	'MKACTIVITY',
	'MKCOL',
	'MOVE',
	'NOTIFY',
	'OPTIONS',
	'PATCH',
	'POST',
	'PROPFIND',
	'PROPPATCH',
	'PURGE',
	'PUT',
	'REPORT',
	'SEARCH',
	'SUBSCRIBE',
	'TRACE',
	'UNLOCK',
	'UNSUBSCRIBE'
]
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./lib/request":20,"./lib/response":21,"builtin-status-codes":5,"url":39,"xtend":42}],19:[function(require,module,exports){
(function (global){
exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)

exports.writableStream = isFunction(global.WritableStream)

exports.abortController = isFunction(global.AbortController)

// The xhr request to example.com may violate some restrictive CSP configurations,
// so if we're running in a browser that supports `fetch`, avoid calling getXHR()
// and assume support for certain features below.
var xhr
function getXHR () {
	// Cache the xhr value
	if (xhr !== undefined) return xhr

	if (global.XMLHttpRequest) {
		xhr = new global.XMLHttpRequest()
		// If XDomainRequest is available (ie only, where xhr might not work
		// cross domain), use the page location. Otherwise use example.com
		// Note: this doesn't actually make an http request.
		try {
			xhr.open('GET', global.XDomainRequest ? '/' : 'https://example.com')
		} catch(e) {
			xhr = null
		}
	} else {
		// Service workers don't have XHR
		xhr = null
	}
	return xhr
}

function checkTypeSupport (type) {
	var xhr = getXHR()
	if (!xhr) return false
	try {
		xhr.responseType = type
		return xhr.responseType === type
	} catch (e) {}
	return false
}

// If fetch is supported, then arraybuffer will be supported too. Skip calling
// checkTypeSupport(), since that calls getXHR().
exports.arraybuffer = exports.fetch || checkTypeSupport('arraybuffer')

// These next two tests unavoidably show warnings in Chrome. Since fetch will always
// be used if it's available, just return false for these to avoid the warnings.
exports.msstream = !exports.fetch && checkTypeSupport('ms-stream')
exports.mozchunkedarraybuffer = !exports.fetch && checkTypeSupport('moz-chunked-arraybuffer')

// If fetch is supported, then overrideMimeType will be supported too. Skip calling
// getXHR().
exports.overrideMimeType = exports.fetch || (getXHR() ? isFunction(getXHR().overrideMimeType) : false)

function isFunction (value) {
	return typeof value === 'function'
}

xhr = null // Help gc

}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],20:[function(require,module,exports){
(function (process,global,Buffer){
var capability = require('./capability')
var inherits = require('inherits')
var response = require('./response')
var stream = require('readable-stream')

var IncomingMessage = response.IncomingMessage
var rStates = response.readyStates

function decideMode (preferBinary, useFetch) {
	if (capability.fetch && useFetch) {
		return 'fetch'
	} else if (capability.mozchunkedarraybuffer) {
		return 'moz-chunked-arraybuffer'
	} else if (capability.msstream) {
		return 'ms-stream'
	} else if (capability.arraybuffer && preferBinary) {
		return 'arraybuffer'
	} else {
		return 'text'
	}
}

var ClientRequest = module.exports = function (opts) {
	var self = this
	stream.Writable.call(self)

	self._opts = opts
	self._body = []
	self._headers = {}
	if (opts.auth)
		self.setHeader('Authorization', 'Basic ' + Buffer.from(opts.auth).toString('base64'))
	Object.keys(opts.headers).forEach(function (name) {
		self.setHeader(name, opts.headers[name])
	})

	var preferBinary
	var useFetch = true
	if (opts.mode === 'disable-fetch' || ('requestTimeout' in opts && !capability.abortController)) {
		// If the use of XHR should be preferred. Not typically needed.
		useFetch = false
		preferBinary = true
	} else if (opts.mode === 'prefer-streaming') {
		// If streaming is a high priority but binary compatibility and
		// the accuracy of the 'content-type' header aren't
		preferBinary = false
	} else if (opts.mode === 'allow-wrong-content-type') {
		// If streaming is more important than preserving the 'content-type' header
		preferBinary = !capability.overrideMimeType
	} else if (!opts.mode || opts.mode === 'default' || opts.mode === 'prefer-fast') {
		// Use binary if text streaming may corrupt data or the content-type header, or for speed
		preferBinary = true
	} else {
		throw new Error('Invalid value for opts.mode')
	}
	self._mode = decideMode(preferBinary, useFetch)
	self._fetchTimer = null

	self.on('finish', function () {
		self._onFinish()
	})
}

inherits(ClientRequest, stream.Writable)

ClientRequest.prototype.setHeader = function (name, value) {
	var self = this
	var lowerName = name.toLowerCase()
	// This check is not necessary, but it prevents warnings from browsers about setting unsafe
	// headers. To be honest I'm not entirely sure hiding these warnings is a good thing, but
	// http-browserify did it, so I will too.
	if (unsafeHeaders.indexOf(lowerName) !== -1)
		return

	self._headers[lowerName] = {
		name: name,
		value: value
	}
}

ClientRequest.prototype.getHeader = function (name) {
	var header = this._headers[name.toLowerCase()]
	if (header)
		return header.value
	return null
}

ClientRequest.prototype.removeHeader = function (name) {
	var self = this
	delete self._headers[name.toLowerCase()]
}

ClientRequest.prototype._onFinish = function () {
	var self = this

	if (self._destroyed)
		return
	var opts = self._opts

	var headersObj = self._headers
	var body = null
	if (opts.method !== 'GET' && opts.method !== 'HEAD') {
        body = new Blob(self._body, {
            type: (headersObj['content-type'] || {}).value || ''
        });
    }

	// create flattened list of headers
	var headersList = []
	Object.keys(headersObj).forEach(function (keyName) {
		var name = headersObj[keyName].name
		var value = headersObj[keyName].value
		if (Array.isArray(value)) {
			value.forEach(function (v) {
				headersList.push([name, v])
			})
		} else {
			headersList.push([name, value])
		}
	})

	if (self._mode === 'fetch') {
		var signal = null
		var fetchTimer = null
		if (capability.abortController) {
			var controller = new AbortController()
			signal = controller.signal
			self._fetchAbortController = controller

			if ('requestTimeout' in opts && opts.requestTimeout !== 0) {
				self._fetchTimer = global.setTimeout(function () {
					self.emit('requestTimeout')
					if (self._fetchAbortController)
						self._fetchAbortController.abort()
				}, opts.requestTimeout)
			}
		}

		global.fetch(self._opts.url, {
			method: self._opts.method,
			headers: headersList,
			body: body || undefined,
			mode: 'cors',
			credentials: opts.withCredentials ? 'include' : 'same-origin',
			signal: signal
		}).then(function (response) {
			self._fetchResponse = response
			self._connect()
		}, function (reason) {
			global.clearTimeout(self._fetchTimer)
			if (!self._destroyed)
				self.emit('error', reason)
		})
	} else {
		var xhr = self._xhr = new global.XMLHttpRequest()
		try {
			xhr.open(self._opts.method, self._opts.url, true)
		} catch (err) {
			process.nextTick(function () {
				self.emit('error', err)
			})
			return
		}

		// Can't set responseType on really old browsers
		if ('responseType' in xhr)
			xhr.responseType = self._mode

		if ('withCredentials' in xhr)
			xhr.withCredentials = !!opts.withCredentials

		if (self._mode === 'text' && 'overrideMimeType' in xhr)
			xhr.overrideMimeType('text/plain; charset=x-user-defined')

		if ('requestTimeout' in opts) {
			xhr.timeout = opts.requestTimeout
			xhr.ontimeout = function () {
				self.emit('requestTimeout')
			}
		}

		headersList.forEach(function (header) {
			xhr.setRequestHeader(header[0], header[1])
		})

		self._response = null
		xhr.onreadystatechange = function () {
			switch (xhr.readyState) {
				case rStates.LOADING:
				case rStates.DONE:
					self._onXHRProgress()
					break
			}
		}
		// Necessary for streaming in Firefox, since xhr.response is ONLY defined
		// in onprogress, not in onreadystatechange with xhr.readyState = 3
		if (self._mode === 'moz-chunked-arraybuffer') {
			xhr.onprogress = function () {
				self._onXHRProgress()
			}
		}

		xhr.onerror = function () {
			if (self._destroyed)
				return
			self.emit('error', new Error('XHR error'))
		}

		try {
			xhr.send(body)
		} catch (err) {
			process.nextTick(function () {
				self.emit('error', err)
			})
			return
		}
	}
}

/**
 * Checks if xhr.status is readable and non-zero, indicating no error.
 * Even though the spec says it should be available in readyState 3,
 * accessing it throws an exception in IE8
 */
function statusValid (xhr) {
	try {
		var status = xhr.status
		return (status !== null && status !== 0)
	} catch (e) {
		return false
	}
}

ClientRequest.prototype._onXHRProgress = function () {
	var self = this

	if (!statusValid(self._xhr) || self._destroyed)
		return

	if (!self._response)
		self._connect()

	self._response._onXHRProgress()
}

ClientRequest.prototype._connect = function () {
	var self = this

	if (self._destroyed)
		return

	self._response = new IncomingMessage(self._xhr, self._fetchResponse, self._mode, self._fetchTimer)
	self._response.on('error', function(err) {
		self.emit('error', err)
	})

	self.emit('response', self._response)
}

ClientRequest.prototype._write = function (chunk, encoding, cb) {
	var self = this

	self._body.push(chunk)
	cb()
}

ClientRequest.prototype.abort = ClientRequest.prototype.destroy = function () {
	var self = this
	self._destroyed = true
	global.clearTimeout(self._fetchTimer)
	if (self._response)
		self._response._destroyed = true
	if (self._xhr)
		self._xhr.abort()
	else if (self._fetchAbortController)
		self._fetchAbortController.abort()
}

ClientRequest.prototype.end = function (data, encoding, cb) {
	var self = this
	if (typeof data === 'function') {
		cb = data
		data = undefined
	}

	stream.Writable.prototype.end.call(self, data, encoding, cb)
}

ClientRequest.prototype.flushHeaders = function () {}
ClientRequest.prototype.setTimeout = function () {}
ClientRequest.prototype.setNoDelay = function () {}
ClientRequest.prototype.setSocketKeepAlive = function () {}

// Taken from http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader%28%29-method
var unsafeHeaders = [
	'accept-charset',
	'accept-encoding',
	'access-control-request-headers',
	'access-control-request-method',
	'connection',
	'content-length',
	'cookie',
	'cookie2',
	'date',
	'dnt',
	'expect',
	'host',
	'keep-alive',
	'origin',
	'referer',
	'te',
	'trailer',
	'transfer-encoding',
	'upgrade',
	'via'
]

}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
},{"./capability":19,"./response":21,"_process":12,"buffer":4,"inherits":9,"readable-stream":36}],21:[function(require,module,exports){
(function (process,global,Buffer){
var capability = require('./capability')
var inherits = require('inherits')
var stream = require('readable-stream')

var rStates = exports.readyStates = {
	UNSENT: 0,
	OPENED: 1,
	HEADERS_RECEIVED: 2,
	LOADING: 3,
	DONE: 4
}

var IncomingMessage = exports.IncomingMessage = function (xhr, response, mode, fetchTimer) {
	var self = this
	stream.Readable.call(self)

	self._mode = mode
	self.headers = {}
	self.rawHeaders = []
	self.trailers = {}
	self.rawTrailers = []

	// Fake the 'close' event, but only once 'end' fires
	self.on('end', function () {
		// The nextTick is necessary to prevent the 'request' module from causing an infinite loop
		process.nextTick(function () {
			self.emit('close')
		})
	})

	if (mode === 'fetch') {
		self._fetchResponse = response

		self.url = response.url
		self.statusCode = response.status
		self.statusMessage = response.statusText
		
		response.headers.forEach(function (header, key){
			self.headers[key.toLowerCase()] = header
			self.rawHeaders.push(key, header)
		})

		if (capability.writableStream) {
			var writable = new WritableStream({
				write: function (chunk) {
					return new Promise(function (resolve, reject) {
						if (self._destroyed) {
							reject()
						} else if(self.push(Buffer.from(chunk))) {
							resolve()
						} else {
							self._resumeFetch = resolve
						}
					})
				},
				close: function () {
					global.clearTimeout(fetchTimer)
					if (!self._destroyed)
						self.push(null)
				},
				abort: function (err) {
					if (!self._destroyed)
						self.emit('error', err)
				}
			})

			try {
				response.body.pipeTo(writable).catch(function (err) {
					global.clearTimeout(fetchTimer)
					if (!self._destroyed)
						self.emit('error', err)
				})
				return
			} catch (e) {} // pipeTo method isn't defined. Can't find a better way to feature test this
		}
		// fallback for when writableStream or pipeTo aren't available
		var reader = response.body.getReader()
		function read () {
			reader.read().then(function (result) {
				if (self._destroyed)
					return
				if (result.done) {
					global.clearTimeout(fetchTimer)
					self.push(null)
					return
				}
				self.push(Buffer.from(result.value))
				read()
			}).catch(function (err) {
				global.clearTimeout(fetchTimer)
				if (!self._destroyed)
					self.emit('error', err)
			})
		}
		read()
	} else {
		self._xhr = xhr
		self._pos = 0

		self.url = xhr.responseURL
		self.statusCode = xhr.status
		self.statusMessage = xhr.statusText
		var headers = xhr.getAllResponseHeaders().split(/\r?\n/)
		headers.forEach(function (header) {
			var matches = header.match(/^([^:]+):\s*(.*)/)
			if (matches) {
				var key = matches[1].toLowerCase()
				if (key === 'set-cookie') {
					if (self.headers[key] === undefined) {
						self.headers[key] = []
					}
					self.headers[key].push(matches[2])
				} else if (self.headers[key] !== undefined) {
					self.headers[key] += ', ' + matches[2]
				} else {
					self.headers[key] = matches[2]
				}
				self.rawHeaders.push(matches[1], matches[2])
			}
		})

		self._charset = 'x-user-defined'
		if (!capability.overrideMimeType) {
			var mimeType = self.rawHeaders['mime-type']
			if (mimeType) {
				var charsetMatch = mimeType.match(/;\s*charset=([^;])(;|$)/)
				if (charsetMatch) {
					self._charset = charsetMatch[1].toLowerCase()
				}
			}
			if (!self._charset)
				self._charset = 'utf-8' // best guess
		}
	}
}

inherits(IncomingMessage, stream.Readable)

IncomingMessage.prototype._read = function () {
	var self = this

	var resolve = self._resumeFetch
	if (resolve) {
		self._resumeFetch = null
		resolve()
	}
}

IncomingMessage.prototype._onXHRProgress = function () {
	var self = this

	var xhr = self._xhr

	var response = null
	switch (self._mode) {
		case 'text':
			response = xhr.responseText
			if (response.length > self._pos) {
				var newData = response.substr(self._pos)
				if (self._charset === 'x-user-defined') {
					var buffer = Buffer.alloc(newData.length)
					for (var i = 0; i < newData.length; i++)
						buffer[i] = newData.charCodeAt(i) & 0xff

					self.push(buffer)
				} else {
					self.push(newData, self._charset)
				}
				self._pos = response.length
			}
			break
		case 'arraybuffer':
			if (xhr.readyState !== rStates.DONE || !xhr.response)
				break
			response = xhr.response
			self.push(Buffer.from(new Uint8Array(response)))
			break
		case 'moz-chunked-arraybuffer': // take whole
			response = xhr.response
			if (xhr.readyState !== rStates.LOADING || !response)
				break
			self.push(Buffer.from(new Uint8Array(response)))
			break
		case 'ms-stream':
			response = xhr.response
			if (xhr.readyState !== rStates.LOADING)
				break
			var reader = new global.MSStreamReader()
			reader.onprogress = function () {
				if (reader.result.byteLength > self._pos) {
					self.push(Buffer.from(new Uint8Array(reader.result.slice(self._pos))))
					self._pos = reader.result.byteLength
				}
			}
			reader.onload = function () {
				self.push(null)
			}
			// reader.onerror = ??? // TODO: this
			reader.readAsArrayBuffer(response)
			break
	}

	// The ms-stream case handles end separately in reader.onload()
	if (self._xhr.readyState === rStates.DONE && self._mode !== 'ms-stream') {
		self.push(null)
	}
}

}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
},{"./capability":19,"_process":12,"buffer":4,"inherits":9,"readable-stream":36}],22:[function(require,module,exports){
'use strict';

function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }

var codes = {};

function createErrorType(code, message, Base) {
  if (!Base) {
    Base = Error;
  }

  function getMessage(arg1, arg2, arg3) {
    if (typeof message === 'string') {
      return message;
    } else {
      return message(arg1, arg2, arg3);
    }
  }

  var NodeError =
  /*#__PURE__*/
  function (_Base) {
    _inheritsLoose(NodeError, _Base);

    function NodeError(arg1, arg2, arg3) {
      return _Base.call(this, getMessage(arg1, arg2, arg3)) || this;
    }

    return NodeError;
  }(Base);

  NodeError.prototype.name = Base.name;
  NodeError.prototype.code = code;
  codes[code] = NodeError;
} // https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js


function oneOf(expected, thing) {
  if (Array.isArray(expected)) {
    var len = expected.length;
    expected = expected.map(function (i) {
      return String(i);
    });

    if (len > 2) {
      return "one of ".concat(thing, " ").concat(expected.slice(0, len - 1).join(', '), ", or ") + expected[len - 1];
    } else if (len === 2) {
      return "one of ".concat(thing, " ").concat(expected[0], " or ").concat(expected[1]);
    } else {
      return "of ".concat(thing, " ").concat(expected[0]);
    }
  } else {
    return "of ".concat(thing, " ").concat(String(expected));
  }
} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith


function startsWith(str, search, pos) {
  return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;
} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith


function endsWith(str, search, this_len) {
  if (this_len === undefined || this_len > str.length) {
    this_len = str.length;
  }

  return str.substring(this_len - search.length, this_len) === search;
} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes


function includes(str, search, start) {
  if (typeof start !== 'number') {
    start = 0;
  }

  if (start + search.length > str.length) {
    return false;
  } else {
    return str.indexOf(search, start) !== -1;
  }
}

createErrorType('ERR_INVALID_OPT_VALUE', function (name, value) {
  return 'The value "' + value + '" is invalid for option "' + name + '"';
}, TypeError);
createErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) {
  // determiner: 'must be' or 'must not be'
  var determiner;

  if (typeof expected === 'string' && startsWith(expected, 'not ')) {
    determiner = 'must not be';
    expected = expected.replace(/^not /, '');
  } else {
    determiner = 'must be';
  }

  var msg;

  if (endsWith(name, ' argument')) {
    // For cases like 'first argument'
    msg = "The ".concat(name, " ").concat(determiner, " ").concat(oneOf(expected, 'type'));
  } else {
    var type = includes(name, '.') ? 'property' : 'argument';
    msg = "The \"".concat(name, "\" ").concat(type, " ").concat(determiner, " ").concat(oneOf(expected, 'type'));
  }

  msg += ". Received type ".concat(typeof actual);
  return msg;
}, TypeError);
createErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF');
createErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) {
  return 'The ' + name + ' method is not implemented';
});
createErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close');
createErrorType('ERR_STREAM_DESTROYED', function (name) {
  return 'Cannot call ' + name + ' after a stream was destroyed';
});
createErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');
createErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable');
createErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end');
createErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError);
createErrorType('ERR_UNKNOWN_ENCODING', function (arg) {
  return 'Unknown encoding: ' + arg;
}, TypeError);
createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');
module.exports.codes = codes;

},{}],23:[function(require,module,exports){
(function (process){
'use strict'

var experimentalWarnings = new Set();

function emitExperimentalWarning(feature) {
  if (experimentalWarnings.has(feature)) return;
  var msg = feature + ' is an experimental feature. This feature could ' +
       'change at any time';
  experimentalWarnings.add(feature);
  process.emitWarning(msg, 'ExperimentalWarning');
}

function noop() {}

module.exports.emitExperimentalWarning = process.emitWarning
  ? emitExperimentalWarning
  : noop;

}).call(this,require('_process'))
},{"_process":12}],24:[function(require,module,exports){
(function (process){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// a duplex stream is just a stream that is both readable and writable.
// Since JS doesn't have multiple prototypal inheritance, this class
// prototypally inherits from Readable, and then parasitically from
// Writable.
'use strict';
/*<replacement>*/

var objectKeys = Object.keys || function (obj) {
  var keys = [];

  for (var key in obj) {
    keys.push(key);
  }

  return keys;
};
/*</replacement>*/


module.exports = Duplex;

var Readable = require('./_stream_readable');

var Writable = require('./_stream_writable');

require('inherits')(Duplex, Readable);

{
  // Allow the keys array to be GC'ed.
  var keys = objectKeys(Writable.prototype);

  for (var v = 0; v < keys.length; v++) {
    var method = keys[v];
    if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];
  }
}

function Duplex(options) {
  if (!(this instanceof Duplex)) return new Duplex(options);
  Readable.call(this, options);
  Writable.call(this, options);
  this.allowHalfOpen = true;

  if (options) {
    if (options.readable === false) this.readable = false;
    if (options.writable === false) this.writable = false;

    if (options.allowHalfOpen === false) {
      this.allowHalfOpen = false;
      this.once('end', onend);
    }
  }
}

Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function get() {
    return this._writableState.highWaterMark;
  }
});
Object.defineProperty(Duplex.prototype, 'writableBuffer', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function get() {
    return this._writableState && this._writableState.getBuffer();
  }
});
Object.defineProperty(Duplex.prototype, 'writableLength', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function get() {
    return this._writableState.length;
  }
}); // the no-half-open enforcer

function onend() {
  // If the writable side ended, then we're ok.
  if (this._writableState.ended) return; // no more data can be written.
  // But allow more writes to happen in this tick.

  process.nextTick(onEndNT, this);
}

function onEndNT(self) {
  self.end();
}

Object.defineProperty(Duplex.prototype, 'destroyed', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function get() {
    if (this._readableState === undefined || this._writableState === undefined) {
      return false;
    }

    return this._readableState.destroyed && this._writableState.destroyed;
  },
  set: function set(value) {
    // we ignore the value if the stream
    // has not been initialized yet
    if (this._readableState === undefined || this._writableState === undefined) {
      return;
    } // backward compatibility, the user is explicitly
    // managing destroyed


    this._readableState.destroyed = value;
    this._writableState.destroyed = value;
  }
});
}).call(this,require('_process'))
},{"./_stream_readable":26,"./_stream_writable":28,"_process":12,"inherits":9}],25:[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// a passthrough stream.
// basically just the most minimal sort of Transform stream.
// Every written chunk gets output as-is.
'use strict';

module.exports = PassThrough;

var Transform = require('./_stream_transform');

require('inherits')(PassThrough, Transform);

function PassThrough(options) {
  if (!(this instanceof PassThrough)) return new PassThrough(options);
  Transform.call(this, options);
}

PassThrough.prototype._transform = function (chunk, encoding, cb) {
  cb(null, chunk);
};
},{"./_stream_transform":27,"inherits":9}],26:[function(require,module,exports){
(function (process,global){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
'use strict';

module.exports = Readable;
/*<replacement>*/

var Duplex;
/*</replacement>*/

Readable.ReadableState = ReadableState;
/*<replacement>*/

var EE = require('events').EventEmitter;

var EElistenerCount = function EElistenerCount(emitter, type) {
  return emitter.listeners(type).length;
};
/*</replacement>*/

/*<replacement>*/


var Stream = require('./internal/streams/stream');
/*</replacement>*/


var Buffer = require('buffer').Buffer;

var OurUint8Array = global.Uint8Array || function () {};

function _uint8ArrayToBuffer(chunk) {
  return Buffer.from(chunk);
}

function _isUint8Array(obj) {
  return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
}
/*<replacement>*/


var debugUtil = require('util');

var debug;

if (debugUtil && debugUtil.debuglog) {
  debug = debugUtil.debuglog('stream');
} else {
  debug = function debug() {};
}
/*</replacement>*/


var BufferList = require('./internal/streams/buffer_list');

var destroyImpl = require('./internal/streams/destroy');

var _require = require('./internal/streams/state'),
    getHighWaterMark = _require.getHighWaterMark;

var _require$codes = require('../errors').codes,
    ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,
    ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF,
    ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
    ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;

var _require2 = require('../experimentalWarning'),
    emitExperimentalWarning = _require2.emitExperimentalWarning; // Lazy loaded to improve the startup performance.


var StringDecoder;
var createReadableStreamAsyncIterator;

require('inherits')(Readable, Stream);

var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];

function prependListener(emitter, event, fn) {
  // Sadly this is not cacheable as some libraries bundle their own
  // event emitter implementation with them.
  if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any
  // userland ones.  NEVER DO THIS. This is here only because this code needs
  // to continue to work with older versions of Node.js that do not include
  // the prependListener() method. The goal is to eventually remove this hack.

  if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];
}

function ReadableState(options, stream, isDuplex) {
  Duplex = Duplex || require('./_stream_duplex');
  options = options || {}; // Duplex streams are both readable and writable, but share
  // the same options object.
  // However, some cases require setting options to different
  // values for the readable and the writable sides of the duplex stream.
  // These options can be provided separately as readableXXX and writableXXX.

  if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to
  // make all the buffer merging and length checks go away

  this.objectMode = !!options.objectMode;
  if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer
  // Note: 0 is a valid value, means "don't call _read preemptively ever"

  this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); // A linked list is used to store data chunks instead of an array because the
  // linked list can remove elements from the beginning faster than
  // array.shift()

  this.buffer = new BufferList();
  this.length = 0;
  this.pipes = null;
  this.pipesCount = 0;
  this.flowing = null;
  this.ended = false;
  this.endEmitted = false;
  this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted
  // immediately, or on a later tick.  We set this to true at first, because
  // any actions that shouldn't happen until "later" should generally also
  // not happen before the first read call.

  this.sync = true; // whenever we return null, then we set a flag to say
  // that we're awaiting a 'readable' event emission.

  this.needReadable = false;
  this.emittedReadable = false;
  this.readableListening = false;
  this.resumeScheduled = false;
  this.paused = true; // Should close be emitted on destroy. Defaults to true.

  this.emitClose = options.emitClose !== false; // has it been destroyed

  this.destroyed = false; // Crypto is kind of old and crusty.  Historically, its default string
  // encoding is 'binary' so we have to make this configurable.
  // Everything else in the universe uses 'utf8', though.

  this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s

  this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled

  this.readingMore = false;
  this.decoder = null;
  this.encoding = null;

  if (options.encoding) {
    if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;
    this.decoder = new StringDecoder(options.encoding);
    this.encoding = options.encoding;
  }
}

function Readable(options) {
  Duplex = Duplex || require('./_stream_duplex');
  if (!(this instanceof Readable)) return new Readable(options); // Checking for a Stream.Duplex instance is faster here instead of inside
  // the ReadableState constructor, at least with V8 6.5

  var isDuplex = this instanceof Duplex;
  this._readableState = new ReadableState(options, this, isDuplex); // legacy

  this.readable = true;

  if (options) {
    if (typeof options.read === 'function') this._read = options.read;
    if (typeof options.destroy === 'function') this._destroy = options.destroy;
  }

  Stream.call(this);
}

Object.defineProperty(Readable.prototype, 'destroyed', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function get() {
    if (this._readableState === undefined) {
      return false;
    }

    return this._readableState.destroyed;
  },
  set: function set(value) {
    // we ignore the value if the stream
    // has not been initialized yet
    if (!this._readableState) {
      return;
    } // backward compatibility, the user is explicitly
    // managing destroyed


    this._readableState.destroyed = value;
  }
});
Readable.prototype.destroy = destroyImpl.destroy;
Readable.prototype._undestroy = destroyImpl.undestroy;

Readable.prototype._destroy = function (err, cb) {
  cb(err);
}; // Manually shove something into the read() buffer.
// This returns true if the highWaterMark has not been hit yet,
// similar to how Writable.write() returns true if you should
// write() some more.


Readable.prototype.push = function (chunk, encoding) {
  var state = this._readableState;
  var skipChunkCheck;

  if (!state.objectMode) {
    if (typeof chunk === 'string') {
      encoding = encoding || state.defaultEncoding;

      if (encoding !== state.encoding) {
        chunk = Buffer.from(chunk, encoding);
        encoding = '';
      }

      skipChunkCheck = true;
    }
  } else {
    skipChunkCheck = true;
  }

  return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);
}; // Unshift should *always* be something directly out of read()


Readable.prototype.unshift = function (chunk) {
  return readableAddChunk(this, chunk, null, true, false);
};

function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {
  debug('readableAddChunk', chunk);
  var state = stream._readableState;

  if (chunk === null) {
    state.reading = false;
    onEofChunk(stream, state);
  } else {
    var er;
    if (!skipChunkCheck) er = chunkInvalid(state, chunk);

    if (er) {
      stream.emit('error', er);
    } else if (state.objectMode || chunk && chunk.length > 0) {
      if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {
        chunk = _uint8ArrayToBuffer(chunk);
      }

      if (addToFront) {
        if (state.endEmitted) stream.emit('error', new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true);
      } else if (state.ended) {
        stream.emit('error', new ERR_STREAM_PUSH_AFTER_EOF());
      } else if (state.destroyed) {
        return false;
      } else {
        state.reading = false;

        if (state.decoder && !encoding) {
          chunk = state.decoder.write(chunk);
          if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);
        } else {
          addChunk(stream, state, chunk, false);
        }
      }
    } else if (!addToFront) {
      state.reading = false;
      maybeReadMore(stream, state);
    }
  } // We can push more data if we are below the highWaterMark.
  // Also, if we have no data yet, we can stand some more bytes.
  // This is to work around cases where hwm=0, such as the repl.


  return !state.ended && (state.length < state.highWaterMark || state.length === 0);
}

function addChunk(stream, state, chunk, addToFront) {
  if (state.flowing && state.length === 0 && !state.sync) {
    state.awaitDrain = 0;
    stream.emit('data', chunk);
  } else {
    // update the buffer info.
    state.length += state.objectMode ? 1 : chunk.length;
    if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);
    if (state.needReadable) emitReadable(stream);
  }

  maybeReadMore(stream, state);
}

function chunkInvalid(state, chunk) {
  var er;

  if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
    er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk);
  }

  return er;
}

Readable.prototype.isPaused = function () {
  return this._readableState.flowing === false;
}; // backwards compatibility.


Readable.prototype.setEncoding = function (enc) {
  if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;
  this._readableState.decoder = new StringDecoder(enc); // if setEncoding(null), decoder.encoding equals utf8

  this._readableState.encoding = this._readableState.decoder.encoding;
  return this;
}; // Don't raise the hwm > 8MB


var MAX_HWM = 0x800000;

function computeNewHighWaterMark(n) {
  if (n >= MAX_HWM) {
    n = MAX_HWM;
  } else {
    // Get the next highest power of 2 to prevent increasing hwm excessively in
    // tiny amounts
    n--;
    n |= n >>> 1;
    n |= n >>> 2;
    n |= n >>> 4;
    n |= n >>> 8;
    n |= n >>> 16;
    n++;
  }

  return n;
} // This function is designed to be inlinable, so please take care when making
// changes to the function body.


function howMuchToRead(n, state) {
  if (n <= 0 || state.length === 0 && state.ended) return 0;
  if (state.objectMode) return 1;

  if (n !== n) {
    // Only flow one buffer at a time
    if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;
  } // If we're asking for more than the current hwm, then raise the hwm.


  if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
  if (n <= state.length) return n; // Don't have enough

  if (!state.ended) {
    state.needReadable = true;
    return 0;
  }

  return state.length;
} // you can override either this method, or the async _read(n) below.


Readable.prototype.read = function (n) {
  debug('read', n);
  n = parseInt(n, 10);
  var state = this._readableState;
  var nOrig = n;
  if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we
  // already have a bunch of data in the buffer, then just trigger
  // the 'readable' event and move on.

  if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {
    debug('read: emitReadable', state.length, state.ended);
    if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);
    return null;
  }

  n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up.

  if (n === 0 && state.ended) {
    if (state.length === 0) endReadable(this);
    return null;
  } // All the actual chunk generation logic needs to be
  // *below* the call to _read.  The reason is that in certain
  // synthetic stream cases, such as passthrough streams, _read
  // may be a completely synchronous operation which may change
  // the state of the read buffer, providing enough data when
  // before there was *not* enough.
  //
  // So, the steps are:
  // 1. Figure out what the state of things will be after we do
  // a read from the buffer.
  //
  // 2. If that resulting state will trigger a _read, then call _read.
  // Note that this may be asynchronous, or synchronous.  Yes, it is
  // deeply ugly to write APIs this way, but that still doesn't mean
  // that the Readable class should behave improperly, as streams are
  // designed to be sync/async agnostic.
  // Take note if the _read call is sync or async (ie, if the read call
  // has returned yet), so that we know whether or not it's safe to emit
  // 'readable' etc.
  //
  // 3. Actually pull the requested chunks out of the buffer and return.
  // if we need a readable event, then we need to do some reading.


  var doRead = state.needReadable;
  debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some

  if (state.length === 0 || state.length - n < state.highWaterMark) {
    doRead = true;
    debug('length less than watermark', doRead);
  } // however, if we've ended, then there's no point, and if we're already
  // reading, then it's unnecessary.


  if (state.ended || state.reading) {
    doRead = false;
    debug('reading or ended', doRead);
  } else if (doRead) {
    debug('do read');
    state.reading = true;
    state.sync = true; // if the length is currently zero, then we *need* a readable event.

    if (state.length === 0) state.needReadable = true; // call internal read method

    this._read(state.highWaterMark);

    state.sync = false; // If _read pushed data synchronously, then `reading` will be false,
    // and we need to re-evaluate how much data we can return to the user.

    if (!state.reading) n = howMuchToRead(nOrig, state);
  }

  var ret;
  if (n > 0) ret = fromList(n, state);else ret = null;

  if (ret === null) {
    state.needReadable = true;
    n = 0;
  } else {
    state.length -= n;
    state.awaitDrain = 0;
  }

  if (state.length === 0) {
    // If we have nothing in the buffer, then we want to know
    // as soon as we *do* get something into the buffer.
    if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick.

    if (nOrig !== n && state.ended) endReadable(this);
  }

  if (ret !== null) this.emit('data', ret);
  return ret;
};

function onEofChunk(stream, state) {
  if (state.ended) return;

  if (state.decoder) {
    var chunk = state.decoder.end();

    if (chunk && chunk.length) {
      state.buffer.push(chunk);
      state.length += state.objectMode ? 1 : chunk.length;
    }
  }

  state.ended = true;

  if (state.sync) {
    // if we are sync, wait until next tick to emit the data.
    // Otherwise we risk emitting data in the flow()
    // the readable code triggers during a read() call
    emitReadable(stream);
  } else {
    // emit 'readable' now to make sure it gets picked up.
    state.needReadable = false;

    if (!state.emittedReadable) {
      state.emittedReadable = true;
      emitReadable_(stream);
    }
  }
} // Don't emit readable right away in sync mode, because this can trigger
// another read() call => stack overflow.  This way, it might trigger
// a nextTick recursion warning, but that's not so bad.


function emitReadable(stream) {
  var state = stream._readableState;
  state.needReadable = false;

  if (!state.emittedReadable) {
    debug('emitReadable', state.flowing);
    state.emittedReadable = true;
    process.nextTick(emitReadable_, stream);
  }
}

function emitReadable_(stream) {
  var state = stream._readableState;
  debug('emitReadable_', state.destroyed, state.length, state.ended);

  if (!state.destroyed && (state.length || state.ended)) {
    stream.emit('readable');
  } // The stream needs another readable event if
  // 1. It is not flowing, as the flow mechanism will take
  //    care of it.
  // 2. It is not ended.
  // 3. It is below the highWaterMark, so we can schedule
  //    another readable later.


  state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark;
  flow(stream);
} // at this point, the user has presumably seen the 'readable' event,
// and called read() to consume some data.  that may have triggered
// in turn another _read(n) call, in which case reading = true if
// it's in progress.
// However, if we're not ended, or reading, and the length < hwm,
// then go ahead and try to read some more preemptively.


function maybeReadMore(stream, state) {
  if (!state.readingMore) {
    state.readingMore = true;
    process.nextTick(maybeReadMore_, stream, state);
  }
}

function maybeReadMore_(stream, state) {
  // Attempt to read more data if we should.
  //
  // The conditions for reading more data are (one of):
  // - Not enough data buffered (state.length < state.highWaterMark). The loop
  //   is responsible for filling the buffer with enough data if such data
  //   is available. If highWaterMark is 0 and we are not in the flowing mode
  //   we should _not_ attempt to buffer any extra data. We'll get more data
  //   when the stream consumer calls read() instead.
  // - No data in the buffer, and the stream is in flowing mode. In this mode
  //   the loop below is responsible for ensuring read() is called. Failing to
  //   call read here would abort the flow and there's no other mechanism for
  //   continuing the flow if the stream consumer has just subscribed to the
  //   'data' event.
  //
  // In addition to the above conditions to keep reading data, the following
  // conditions prevent the data from being read:
  // - The stream has ended (state.ended).
  // - There is already a pending 'read' operation (state.reading). This is a
  //   case where the the stream has called the implementation defined _read()
  //   method, but they are processing the call asynchronously and have _not_
  //   called push() with new data. In this case we skip performing more
  //   read()s. The execution ends in this method again after the _read() ends
  //   up calling push() with more data.
  while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {
    var len = state.length;
    debug('maybeReadMore read 0');
    stream.read(0);
    if (len === state.length) // didn't get any data, stop spinning.
      break;
  }

  state.readingMore = false;
} // abstract method.  to be overridden in specific implementation classes.
// call cb(er, data) where data is <= n in length.
// for virtual (non-string, non-buffer) streams, "length" is somewhat
// arbitrary, and perhaps not very meaningful.


Readable.prototype._read = function (n) {
  this.emit('error', new ERR_METHOD_NOT_IMPLEMENTED('_read()'));
};

Readable.prototype.pipe = function (dest, pipeOpts) {
  var src = this;
  var state = this._readableState;

  switch (state.pipesCount) {
    case 0:
      state.pipes = dest;
      break;

    case 1:
      state.pipes = [state.pipes, dest];
      break;

    default:
      state.pipes.push(dest);
      break;
  }

  state.pipesCount += 1;
  debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);
  var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;
  var endFn = doEnd ? onend : unpipe;
  if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn);
  dest.on('unpipe', onunpipe);

  function onunpipe(readable, unpipeInfo) {
    debug('onunpipe');

    if (readable === src) {
      if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
        unpipeInfo.hasUnpiped = true;
        cleanup();
      }
    }
  }

  function onend() {
    debug('onend');
    dest.end();
  } // when the dest drains, it reduces the awaitDrain counter
  // on the source.  This would be more elegant with a .once()
  // handler in flow(), but adding and removing repeatedly is
  // too slow.


  var ondrain = pipeOnDrain(src);
  dest.on('drain', ondrain);
  var cleanedUp = false;

  function cleanup() {
    debug('cleanup'); // cleanup event handlers once the pipe is broken

    dest.removeListener('close', onclose);
    dest.removeListener('finish', onfinish);
    dest.removeListener('drain', ondrain);
    dest.removeListener('error', onerror);
    dest.removeListener('unpipe', onunpipe);
    src.removeListener('end', onend);
    src.removeListener('end', unpipe);
    src.removeListener('data', ondata);
    cleanedUp = true; // if the reader is waiting for a drain event from this
    // specific writer, then it would cause it to never start
    // flowing again.
    // So, if this is awaiting a drain, then we just call it now.
    // If we don't know, then assume that we are waiting for one.

    if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();
  }

  src.on('data', ondata);

  function ondata(chunk) {
    debug('ondata');
    var ret = dest.write(chunk);
    debug('dest.write', ret);

    if (ret === false) {
      // If the user unpiped during `dest.write()`, it is possible
      // to get stuck in a permanently paused state if that write
      // also returned false.
      // => Check whether `dest` is still a piping destination.
      if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
        debug('false write response, pause', state.awaitDrain);
        state.awaitDrain++;
      }

      src.pause();
    }
  } // if the dest has an error, then stop piping into it.
  // however, don't suppress the throwing behavior for this.


  function onerror(er) {
    debug('onerror', er);
    unpipe();
    dest.removeListener('error', onerror);
    if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);
  } // Make sure our error handler is attached before userland ones.


  prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once.

  function onclose() {
    dest.removeListener('finish', onfinish);
    unpipe();
  }

  dest.once('close', onclose);

  function onfinish() {
    debug('onfinish');
    dest.removeListener('close', onclose);
    unpipe();
  }

  dest.once('finish', onfinish);

  function unpipe() {
    debug('unpipe');
    src.unpipe(dest);
  } // tell the dest that it's being piped to


  dest.emit('pipe', src); // start the flow if it hasn't been started already.

  if (!state.flowing) {
    debug('pipe resume');
    src.resume();
  }

  return dest;
};

function pipeOnDrain(src) {
  return function pipeOnDrainFunctionResult() {
    var state = src._readableState;
    debug('pipeOnDrain', state.awaitDrain);
    if (state.awaitDrain) state.awaitDrain--;

    if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {
      state.flowing = true;
      flow(src);
    }
  };
}

Readable.prototype.unpipe = function (dest) {
  var state = this._readableState;
  var unpipeInfo = {
    hasUnpiped: false
  }; // if we're not piping anywhere, then do nothing.

  if (state.pipesCount === 0) return this; // just one destination.  most common case.

  if (state.pipesCount === 1) {
    // passed in one, but it's not the right one.
    if (dest && dest !== state.pipes) return this;
    if (!dest) dest = state.pipes; // got a match.

    state.pipes = null;
    state.pipesCount = 0;
    state.flowing = false;
    if (dest) dest.emit('unpipe', this, unpipeInfo);
    return this;
  } // slow case. multiple pipe destinations.


  if (!dest) {
    // remove all.
    var dests = state.pipes;
    var len = state.pipesCount;
    state.pipes = null;
    state.pipesCount = 0;
    state.flowing = false;

    for (var i = 0; i < len; i++) {
      dests[i].emit('unpipe', this, {
        hasUnpiped: false
      });
    }

    return this;
  } // try to find the right one.


  var index = indexOf(state.pipes, dest);
  if (index === -1) return this;
  state.pipes.splice(index, 1);
  state.pipesCount -= 1;
  if (state.pipesCount === 1) state.pipes = state.pipes[0];
  dest.emit('unpipe', this, unpipeInfo);
  return this;
}; // set up data events if they are asked for
// Ensure readable listeners eventually get something


Readable.prototype.on = function (ev, fn) {
  var res = Stream.prototype.on.call(this, ev, fn);
  var state = this._readableState;

  if (ev === 'data') {
    // update readableListening so that resume() may be a no-op
    // a few lines down. This is needed to support once('readable').
    state.readableListening = this.listenerCount('readable') > 0; // Try start flowing on next tick if stream isn't explicitly paused

    if (state.flowing !== false) this.resume();
  } else if (ev === 'readable') {
    if (!state.endEmitted && !state.readableListening) {
      state.readableListening = state.needReadable = true;
      state.flowing = false;
      state.emittedReadable = false;
      debug('on readable', state.length, state.reading);

      if (state.length) {
        emitReadable(this);
      } else if (!state.reading) {
        process.nextTick(nReadingNextTick, this);
      }
    }
  }

  return res;
};

Readable.prototype.addListener = Readable.prototype.on;

Readable.prototype.removeListener = function (ev, fn) {
  var res = Stream.prototype.removeListener.call(this, ev, fn);

  if (ev === 'readable') {
    // We need to check if there is someone still listening to
    // readable and reset the state. However this needs to happen
    // after readable has been emitted but before I/O (nextTick) to
    // support once('readable', fn) cycles. This means that calling
    // resume within the same tick will have no
    // effect.
    process.nextTick(updateReadableListening, this);
  }

  return res;
};

Readable.prototype.removeAllListeners = function (ev) {
  var res = Stream.prototype.removeAllListeners.apply(this, arguments);

  if (ev === 'readable' || ev === undefined) {
    // We need to check if there is someone still listening to
    // readable and reset the state. However this needs to happen
    // after readable has been emitted but before I/O (nextTick) to
    // support once('readable', fn) cycles. This means that calling
    // resume within the same tick will have no
    // effect.
    process.nextTick(updateReadableListening, this);
  }

  return res;
};

function updateReadableListening(self) {
  var state = self._readableState;
  state.readableListening = self.listenerCount('readable') > 0;

  if (state.resumeScheduled && !state.paused) {
    // flowing needs to be set to true now, otherwise
    // the upcoming resume will not flow.
    state.flowing = true; // crude way to check if we should resume
  } else if (self.listenerCount('data') > 0) {
    self.resume();
  }
}

function nReadingNextTick(self) {
  debug('readable nexttick read 0');
  self.read(0);
} // pause() and resume() are remnants of the legacy readable stream API
// If the user uses them, then switch into old mode.


Readable.prototype.resume = function () {
  var state = this._readableState;

  if (!state.flowing) {
    debug('resume'); // we flow only if there is no one listening
    // for readable, but we still have to call
    // resume()

    state.flowing = !state.readableListening;
    resume(this, state);
  }

  state.paused = false;
  return this;
};

function resume(stream, state) {
  if (!state.resumeScheduled) {
    state.resumeScheduled = true;
    process.nextTick(resume_, stream, state);
  }
}

function resume_(stream, state) {
  debug('resume', state.reading);

  if (!state.reading) {
    stream.read(0);
  }

  state.resumeScheduled = false;
  stream.emit('resume');
  flow(stream);
  if (state.flowing && !state.reading) stream.read(0);
}

Readable.prototype.pause = function () {
  debug('call pause flowing=%j', this._readableState.flowing);

  if (this._readableState.flowing !== false) {
    debug('pause');
    this._readableState.flowing = false;
    this.emit('pause');
  }

  this._readableState.paused = true;
  return this;
};

function flow(stream) {
  var state = stream._readableState;
  debug('flow', state.flowing);

  while (state.flowing && stream.read() !== null) {
    ;
  }
} // wrap an old-style stream as the async data source.
// This is *not* part of the readable stream interface.
// It is an ugly unfortunate mess of history.


Readable.prototype.wrap = function (stream) {
  var _this = this;

  var state = this._readableState;
  var paused = false;
  stream.on('end', function () {
    debug('wrapped end');

    if (state.decoder && !state.ended) {
      var chunk = state.decoder.end();
      if (chunk && chunk.length) _this.push(chunk);
    }

    _this.push(null);
  });
  stream.on('data', function (chunk) {
    debug('wrapped data');
    if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode

    if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;

    var ret = _this.push(chunk);

    if (!ret) {
      paused = true;
      stream.pause();
    }
  }); // proxy all the other methods.
  // important when wrapping filters and duplexes.

  for (var i in stream) {
    if (this[i] === undefined && typeof stream[i] === 'function') {
      this[i] = function methodWrap(method) {
        return function methodWrapReturnFunction() {
          return stream[method].apply(stream, arguments);
        };
      }(i);
    }
  } // proxy certain important events.


  for (var n = 0; n < kProxyEvents.length; n++) {
    stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));
  } // when we try to consume some more bytes, simply unpause the
  // underlying stream.


  this._read = function (n) {
    debug('wrapped _read', n);

    if (paused) {
      paused = false;
      stream.resume();
    }
  };

  return this;
};

if (typeof Symbol === 'function') {
  Readable.prototype[Symbol.asyncIterator] = function () {
    emitExperimentalWarning('Readable[Symbol.asyncIterator]');

    if (createReadableStreamAsyncIterator === undefined) {
      createReadableStreamAsyncIterator = require('./internal/streams/async_iterator');
    }

    return createReadableStreamAsyncIterator(this);
  };
}

Object.defineProperty(Readable.prototype, 'readableHighWaterMark', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function get() {
    return this._readableState.highWaterMark;
  }
});
Object.defineProperty(Readable.prototype, 'readableBuffer', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function get() {
    return this._readableState && this._readableState.buffer;
  }
});
Object.defineProperty(Readable.prototype, 'readableFlowing', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function get() {
    return this._readableState.flowing;
  },
  set: function set(state) {
    if (this._readableState) {
      this._readableState.flowing = state;
    }
  }
}); // exposed for testing purposes only.

Readable._fromList = fromList;
Object.defineProperty(Readable.prototype, 'readableLength', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function get() {
    return this._readableState.length;
  }
}); // Pluck off n bytes from an array of buffers.
// Length is the combined lengths of all the buffers in the list.
// This function is designed to be inlinable, so please take care when making
// changes to the function body.

function fromList(n, state) {
  // nothing buffered
  if (state.length === 0) return null;
  var ret;
  if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {
    // read it all, truncate the list
    if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length);
    state.buffer.clear();
  } else {
    // read part of list
    ret = state.buffer.consume(n, state.decoder);
  }
  return ret;
}

function endReadable(stream) {
  var state = stream._readableState;
  debug('endReadable', state.endEmitted);

  if (!state.endEmitted) {
    state.ended = true;
    process.nextTick(endReadableNT, state, stream);
  }
}

function endReadableNT(state, stream) {
  debug('endReadableNT', state.endEmitted, state.length); // Check that we didn't get one last unshift.

  if (!state.endEmitted && state.length === 0) {
    state.endEmitted = true;
    stream.readable = false;
    stream.emit('end');
  }
}

function indexOf(xs, x) {
  for (var i = 0, l = xs.length; i < l; i++) {
    if (xs[i] === x) return i;
  }

  return -1;
}
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"../errors":22,"../experimentalWarning":23,"./_stream_duplex":24,"./internal/streams/async_iterator":29,"./internal/streams/buffer_list":30,"./internal/streams/destroy":31,"./internal/streams/state":34,"./internal/streams/stream":35,"_process":12,"buffer":4,"events":6,"inherits":9,"string_decoder/":37,"util":3}],27:[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// a transform stream is a readable/writable stream where you do
// something with the data.  Sometimes it's called a "filter",
// but that's not a great name for it, since that implies a thing where
// some bits pass through, and others are simply ignored.  (That would
// be a valid example of a transform, of course.)
//
// While the output is causally related to the input, it's not a
// necessarily symmetric or synchronous transformation.  For example,
// a zlib stream might take multiple plain-text writes(), and then
// emit a single compressed chunk some time in the future.
//
// Here's how this works:
//
// The Transform stream has all the aspects of the readable and writable
// stream classes.  When you write(chunk), that calls _write(chunk,cb)
// internally, and returns false if there's a lot of pending writes
// buffered up.  When you call read(), that calls _read(n) until
// there's enough pending readable data buffered up.
//
// In a transform stream, the written data is placed in a buffer.  When
// _read(n) is called, it transforms the queued up data, calling the
// buffered _write cb's as it consumes chunks.  If consuming a single
// written chunk would result in multiple output chunks, then the first
// outputted bit calls the readcb, and subsequent chunks just go into
// the read buffer, and will cause it to emit 'readable' if necessary.
//
// This way, back-pressure is actually determined by the reading side,
// since _read has to be called to start processing a new chunk.  However,
// a pathological inflate type of transform can cause excessive buffering
// here.  For example, imagine a stream where every byte of input is
// interpreted as an integer from 0-255, and then results in that many
// bytes of output.  Writing the 4 bytes {ff,ff,ff,ff} would result in
// 1kb of data being output.  In this case, you could write a very small
// amount of input, and end up with a very large amount of output.  In
// such a pathological inflating mechanism, there'd be no way to tell
// the system to stop doing the transform.  A single 4MB write could
// cause the system to run out of memory.
//
// However, even in such a pathological case, only a single written chunk
// would be consumed, and then the rest would wait (un-transformed) until
// the results of the previous transformed chunk were consumed.
'use strict';

module.exports = Transform;

var _require$codes = require('../errors').codes,
    ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
    ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,
    ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,
    ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;

var Duplex = require('./_stream_duplex');

require('inherits')(Transform, Duplex);

function afterTransform(er, data) {
  var ts = this._transformState;
  ts.transforming = false;
  var cb = ts.writecb;

  if (cb === null) {
    return this.emit('error', new ERR_MULTIPLE_CALLBACK());
  }

  ts.writechunk = null;
  ts.writecb = null;
  if (data != null) // single equals check for both `null` and `undefined`
    this.push(data);
  cb(er);
  var rs = this._readableState;
  rs.reading = false;

  if (rs.needReadable || rs.length < rs.highWaterMark) {
    this._read(rs.highWaterMark);
  }
}

function Transform(options) {
  if (!(this instanceof Transform)) return new Transform(options);
  Duplex.call(this, options);
  this._transformState = {
    afterTransform: afterTransform.bind(this),
    needTransform: false,
    transforming: false,
    writecb: null,
    writechunk: null,
    writeencoding: null
  }; // start out asking for a readable event once data is transformed.

  this._readableState.needReadable = true; // we have implemented the _read method, and done the other things
  // that Readable wants before the first _read call, so unset the
  // sync guard flag.

  this._readableState.sync = false;

  if (options) {
    if (typeof options.transform === 'function') this._transform = options.transform;
    if (typeof options.flush === 'function') this._flush = options.flush;
  } // When the writable side finishes, then flush out anything remaining.


  this.on('prefinish', prefinish);
}

function prefinish() {
  var _this = this;

  if (typeof this._flush === 'function' && !this._readableState.destroyed) {
    this._flush(function (er, data) {
      done(_this, er, data);
    });
  } else {
    done(this, null, null);
  }
}

Transform.prototype.push = function (chunk, encoding) {
  this._transformState.needTransform = false;
  return Duplex.prototype.push.call(this, chunk, encoding);
}; // This is the part where you do stuff!
// override this function in implementation classes.
// 'chunk' is an input chunk.
//
// Call `push(newChunk)` to pass along transformed output
// to the readable side.  You may call 'push' zero or more times.
//
// Call `cb(err)` when you are done with this chunk.  If you pass
// an error, then that'll put the hurt on the whole operation.  If you
// never call cb(), then you'll never get another chunk.


Transform.prototype._transform = function (chunk, encoding, cb) {
  cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()'));
};

Transform.prototype._write = function (chunk, encoding, cb) {
  var ts = this._transformState;
  ts.writecb = cb;
  ts.writechunk = chunk;
  ts.writeencoding = encoding;

  if (!ts.transforming) {
    var rs = this._readableState;
    if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
  }
}; // Doesn't matter what the args are here.
// _transform does all the work.
// That we got here means that the readable side wants more data.


Transform.prototype._read = function (n) {
  var ts = this._transformState;

  if (ts.writechunk !== null && !ts.transforming) {
    ts.transforming = true;

    this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
  } else {
    // mark that we need a transform, so that any data that comes in
    // will get processed, now that we've asked for it.
    ts.needTransform = true;
  }
};

Transform.prototype._destroy = function (err, cb) {
  Duplex.prototype._destroy.call(this, err, function (err2) {
    cb(err2);
  });
};

function done(stream, er, data) {
  if (er) return stream.emit('error', er);
  if (data != null) // single equals check for both `null` and `undefined`
    stream.push(data); // TODO(BridgeAR): Write a test for these two error cases
  // if there's nothing in the write buffer, then that means
  // that nothing more will ever be provided

  if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();
  if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();
  return stream.push(null);
}
},{"../errors":22,"./_stream_duplex":24,"inherits":9}],28:[function(require,module,exports){
(function (process,global){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// A bit simpler than readable streams.
// Implement an async ._write(chunk, encoding, cb), and it'll handle all
// the drain event emission and buffering.
'use strict';

module.exports = Writable;
/* <replacement> */

function WriteReq(chunk, encoding, cb) {
  this.chunk = chunk;
  this.encoding = encoding;
  this.callback = cb;
  this.next = null;
} // It seems a linked list but it is not
// there will be only 2 of these for each stream


function CorkedRequest(state) {
  var _this = this;

  this.next = null;
  this.entry = null;

  this.finish = function () {
    onCorkedFinish(_this, state);
  };
}
/* </replacement> */

/*<replacement>*/


var Duplex;
/*</replacement>*/

Writable.WritableState = WritableState;
/*<replacement>*/

var internalUtil = {
  deprecate: require('util-deprecate')
};
/*</replacement>*/

/*<replacement>*/

var Stream = require('./internal/streams/stream');
/*</replacement>*/


var Buffer = require('buffer').Buffer;

var OurUint8Array = global.Uint8Array || function () {};

function _uint8ArrayToBuffer(chunk) {
  return Buffer.from(chunk);
}

function _isUint8Array(obj) {
  return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
}

var destroyImpl = require('./internal/streams/destroy');

var _require = require('./internal/streams/state'),
    getHighWaterMark = _require.getHighWaterMark;

var _require$codes = require('../errors').codes,
    ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,
    ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
    ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,
    ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE,
    ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED,
    ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES,
    ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END,
    ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;

require('inherits')(Writable, Stream);

function nop() {}

function WritableState(options, stream, isDuplex) {
  Duplex = Duplex || require('./_stream_duplex');
  options = options || {}; // Duplex streams are both readable and writable, but share
  // the same options object.
  // However, some cases require setting options to different
  // values for the readable and the writable sides of the duplex stream,
  // e.g. options.readableObjectMode vs. options.writableObjectMode, etc.

  if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream
  // contains buffers or objects.

  this.objectMode = !!options.objectMode;
  if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false
  // Note: 0 is a valid value, means that we always return false if
  // the entire buffer is not flushed immediately on write()

  this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); // if _final has been called

  this.finalCalled = false; // drain event flag.

  this.needDrain = false; // at the start of calling end()

  this.ending = false; // when end() has been called, and returned

  this.ended = false; // when 'finish' is emitted

  this.finished = false; // has it been destroyed

  this.destroyed = false; // should we decode strings into buffers before passing to _write?
  // this is here so that some node-core streams can optimize string
  // handling at a lower level.

  var noDecode = options.decodeStrings === false;
  this.decodeStrings = !noDecode; // Crypto is kind of old and crusty.  Historically, its default string
  // encoding is 'binary' so we have to make this configurable.
  // Everything else in the universe uses 'utf8', though.

  this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement
  // of how much we're waiting to get pushed to some underlying
  // socket or file.

  this.length = 0; // a flag to see when we're in the middle of a write.

  this.writing = false; // when true all writes will be buffered until .uncork() call

  this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately,
  // or on a later tick.  We set this to true at first, because any
  // actions that shouldn't happen until "later" should generally also
  // not happen before the first write call.

  this.sync = true; // a flag to know if we're processing previously buffered items, which
  // may call the _write() callback in the same tick, so that we don't
  // end up in an overlapped onwrite situation.

  this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb)

  this.onwrite = function (er) {
    onwrite(stream, er);
  }; // the callback that the user supplies to write(chunk,encoding,cb)


  this.writecb = null; // the amount that is being written when _write is called.

  this.writelen = 0;
  this.bufferedRequest = null;
  this.lastBufferedRequest = null; // number of pending user-supplied write callbacks
  // this must be 0 before 'finish' can be emitted

  this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs
  // This is relevant for synchronous Transform streams

  this.prefinished = false; // True if the error was already emitted and should not be thrown again

  this.errorEmitted = false; // Should close be emitted on destroy. Defaults to true.

  this.emitClose = options.emitClose !== false; // count buffered requests

  this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always
  // one allocated and free to use, and we maintain at most two

  this.corkedRequestsFree = new CorkedRequest(this);
}

WritableState.prototype.getBuffer = function getBuffer() {
  var current = this.bufferedRequest;
  var out = [];

  while (current) {
    out.push(current);
    current = current.next;
  }

  return out;
};

(function () {
  try {
    Object.defineProperty(WritableState.prototype, 'buffer', {
      get: internalUtil.deprecate(function writableStateBufferGetter() {
        return this.getBuffer();
      }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')
    });
  } catch (_) {}
})(); // Test _writableState for inheritance to account for Duplex streams,
// whose prototype chain only points to Readable.


var realHasInstance;

if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {
  realHasInstance = Function.prototype[Symbol.hasInstance];
  Object.defineProperty(Writable, Symbol.hasInstance, {
    value: function value(object) {
      if (realHasInstance.call(this, object)) return true;
      if (this !== Writable) return false;
      return object && object._writableState instanceof WritableState;
    }
  });
} else {
  realHasInstance = function realHasInstance(object) {
    return object instanceof this;
  };
}

function Writable(options) {
  Duplex = Duplex || require('./_stream_duplex'); // Writable ctor is applied to Duplexes, too.
  // `realHasInstance` is necessary because using plain `instanceof`
  // would return false, as no `_writableState` property is attached.
  // Trying to use the custom `instanceof` for Writable here will also break the
  // Node.js LazyTransform implementation, which has a non-trivial getter for
  // `_writableState` that would lead to infinite recursion.
  // Checking for a Stream.Duplex instance is faster here instead of inside
  // the WritableState constructor, at least with V8 6.5

  var isDuplex = this instanceof Duplex;
  if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options);
  this._writableState = new WritableState(options, this, isDuplex); // legacy.

  this.writable = true;

  if (options) {
    if (typeof options.write === 'function') this._write = options.write;
    if (typeof options.writev === 'function') this._writev = options.writev;
    if (typeof options.destroy === 'function') this._destroy = options.destroy;
    if (typeof options.final === 'function') this._final = options.final;
  }

  Stream.call(this);
} // Otherwise people can pipe Writable streams, which is just wrong.


Writable.prototype.pipe = function () {
  this.emit('error', new ERR_STREAM_CANNOT_PIPE());
};

function writeAfterEnd(stream, cb) {
  var er = new ERR_STREAM_WRITE_AFTER_END(); // TODO: defer error events consistently everywhere, not just the cb

  stream.emit('error', er);
  process.nextTick(cb, er);
} // Checks that a user-supplied chunk is valid, especially for the particular
// mode the stream is in. Currently this means that `null` is never accepted
// and undefined/non-string values are only allowed in object mode.


function validChunk(stream, state, chunk, cb) {
  var er;

  if (chunk === null) {
    er = new ERR_STREAM_NULL_VALUES();
  } else if (typeof chunk !== 'string' && !state.objectMode) {
    er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk);
  }

  if (er) {
    stream.emit('error', er);
    process.nextTick(cb, er);
    return false;
  }

  return true;
}

Writable.prototype.write = function (chunk, encoding, cb) {
  var state = this._writableState;
  var ret = false;

  var isBuf = !state.objectMode && _isUint8Array(chunk);

  if (isBuf && !Buffer.isBuffer(chunk)) {
    chunk = _uint8ArrayToBuffer(chunk);
  }

  if (typeof encoding === 'function') {
    cb = encoding;
    encoding = null;
  }

  if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;
  if (typeof cb !== 'function') cb = nop;
  if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {
    state.pendingcb++;
    ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);
  }
  return ret;
};

Writable.prototype.cork = function () {
  this._writableState.corked++;
};

Writable.prototype.uncork = function () {
  var state = this._writableState;

  if (state.corked) {
    state.corked--;
    if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);
  }
};

Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
  // node::ParseEncoding() requires lower case.
  if (typeof encoding === 'string') encoding = encoding.toLowerCase();
  if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding);
  this._writableState.defaultEncoding = encoding;
  return this;
};

Object.defineProperty(Writable.prototype, 'writableBuffer', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function get() {
    return this._writableState && this._writableState.getBuffer();
  }
});

function decodeChunk(state, chunk, encoding) {
  if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {
    chunk = Buffer.from(chunk, encoding);
  }

  return chunk;
}

Object.defineProperty(Writable.prototype, 'writableHighWaterMark', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function get() {
    return this._writableState.highWaterMark;
  }
}); // if we're already writing something, then just put this
// in the queue, and wait our turn.  Otherwise, call _write
// If we return false, then we need a drain event, so set that flag.

function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {
  if (!isBuf) {
    var newChunk = decodeChunk(state, chunk, encoding);

    if (chunk !== newChunk) {
      isBuf = true;
      encoding = 'buffer';
      chunk = newChunk;
    }
  }

  var len = state.objectMode ? 1 : chunk.length;
  state.length += len;
  var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false.

  if (!ret) state.needDrain = true;

  if (state.writing || state.corked) {
    var last = state.lastBufferedRequest;
    state.lastBufferedRequest = {
      chunk: chunk,
      encoding: encoding,
      isBuf: isBuf,
      callback: cb,
      next: null
    };

    if (last) {
      last.next = state.lastBufferedRequest;
    } else {
      state.bufferedRequest = state.lastBufferedRequest;
    }

    state.bufferedRequestCount += 1;
  } else {
    doWrite(stream, state, false, len, chunk, encoding, cb);
  }

  return ret;
}

function doWrite(stream, state, writev, len, chunk, encoding, cb) {
  state.writelen = len;
  state.writecb = cb;
  state.writing = true;
  state.sync = true;
  if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);
  state.sync = false;
}

function onwriteError(stream, state, sync, er, cb) {
  --state.pendingcb;

  if (sync) {
    // defer the callback if we are being called synchronously
    // to avoid piling up things on the stack
    process.nextTick(cb, er); // this can emit finish, and it will always happen
    // after error

    process.nextTick(finishMaybe, stream, state);
    stream._writableState.errorEmitted = true;
    stream.emit('error', er);
  } else {
    // the caller expect this to happen before if
    // it is async
    cb(er);
    stream._writableState.errorEmitted = true;
    stream.emit('error', er); // this can emit finish, but finish must
    // always follow error

    finishMaybe(stream, state);
  }
}

function onwriteStateUpdate(state) {
  state.writing = false;
  state.writecb = null;
  state.length -= state.writelen;
  state.writelen = 0;
}

function onwrite(stream, er) {
  var state = stream._writableState;
  var sync = state.sync;
  var cb = state.writecb;
  if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK();
  onwriteStateUpdate(state);
  if (er) onwriteError(stream, state, sync, er, cb);else {
    // Check if we're actually ready to finish, but don't emit yet
    var finished = needFinish(state) || stream.destroyed;

    if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {
      clearBuffer(stream, state);
    }

    if (sync) {
      process.nextTick(afterWrite, stream, state, finished, cb);
    } else {
      afterWrite(stream, state, finished, cb);
    }
  }
}

function afterWrite(stream, state, finished, cb) {
  if (!finished) onwriteDrain(stream, state);
  state.pendingcb--;
  cb();
  finishMaybe(stream, state);
} // Must force callback to be called on nextTick, so that we don't
// emit 'drain' before the write() consumer gets the 'false' return
// value, and has a chance to attach a 'drain' listener.


function onwriteDrain(stream, state) {
  if (state.length === 0 && state.needDrain) {
    state.needDrain = false;
    stream.emit('drain');
  }
} // if there's something in the buffer waiting, then process it


function clearBuffer(stream, state) {
  state.bufferProcessing = true;
  var entry = state.bufferedRequest;

  if (stream._writev && entry && entry.next) {
    // Fast case, write everything using _writev()
    var l = state.bufferedRequestCount;
    var buffer = new Array(l);
    var holder = state.corkedRequestsFree;
    holder.entry = entry;
    var count = 0;
    var allBuffers = true;

    while (entry) {
      buffer[count] = entry;
      if (!entry.isBuf) allBuffers = false;
      entry = entry.next;
      count += 1;
    }

    buffer.allBuffers = allBuffers;
    doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time
    // as the hot path ends with doWrite

    state.pendingcb++;
    state.lastBufferedRequest = null;

    if (holder.next) {
      state.corkedRequestsFree = holder.next;
      holder.next = null;
    } else {
      state.corkedRequestsFree = new CorkedRequest(state);
    }

    state.bufferedRequestCount = 0;
  } else {
    // Slow case, write chunks one-by-one
    while (entry) {
      var chunk = entry.chunk;
      var encoding = entry.encoding;
      var cb = entry.callback;
      var len = state.objectMode ? 1 : chunk.length;
      doWrite(stream, state, false, len, chunk, encoding, cb);
      entry = entry.next;
      state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then
      // it means that we need to wait until it does.
      // also, that means that the chunk and cb are currently
      // being processed, so move the buffer counter past them.

      if (state.writing) {
        break;
      }
    }

    if (entry === null) state.lastBufferedRequest = null;
  }

  state.bufferedRequest = entry;
  state.bufferProcessing = false;
}

Writable.prototype._write = function (chunk, encoding, cb) {
  cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()'));
};

Writable.prototype._writev = null;

Writable.prototype.end = function (chunk, encoding, cb) {
  var state = this._writableState;

  if (typeof chunk === 'function') {
    cb = chunk;
    chunk = null;
    encoding = null;
  } else if (typeof encoding === 'function') {
    cb = encoding;
    encoding = null;
  }

  if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks

  if (state.corked) {
    state.corked = 1;
    this.uncork();
  } // ignore unnecessary end() calls.


  if (!state.ending) endWritable(this, state, cb);
  return this;
};

Object.defineProperty(Writable.prototype, 'writableLength', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function get() {
    return this._writableState.length;
  }
});

function needFinish(state) {
  return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;
}

function callFinal(stream, state) {
  stream._final(function (err) {
    state.pendingcb--;

    if (err) {
      stream.emit('error', err);
    }

    state.prefinished = true;
    stream.emit('prefinish');
    finishMaybe(stream, state);
  });
}

function prefinish(stream, state) {
  if (!state.prefinished && !state.finalCalled) {
    if (typeof stream._final === 'function' && !state.destroyed) {
      state.pendingcb++;
      state.finalCalled = true;
      process.nextTick(callFinal, stream, state);
    } else {
      state.prefinished = true;
      stream.emit('prefinish');
    }
  }
}

function finishMaybe(stream, state) {
  var need = needFinish(state);

  if (need) {
    prefinish(stream, state);

    if (state.pendingcb === 0) {
      state.finished = true;
      stream.emit('finish');
    }
  }

  return need;
}

function endWritable(stream, state, cb) {
  state.ending = true;
  finishMaybe(stream, state);

  if (cb) {
    if (state.finished) process.nextTick(cb);else stream.once('finish', cb);
  }

  state.ended = true;
  stream.writable = false;
}

function onCorkedFinish(corkReq, state, err) {
  var entry = corkReq.entry;
  corkReq.entry = null;

  while (entry) {
    var cb = entry.callback;
    state.pendingcb--;
    cb(err);
    entry = entry.next;
  } // reuse the free corkReq.


  state.corkedRequestsFree.next = corkReq;
}

Object.defineProperty(Writable.prototype, 'destroyed', {
  // making it explicit this property is not enumerable
  // because otherwise some prototype manipulation in
  // userland will fail
  enumerable: false,
  get: function get() {
    if (this._writableState === undefined) {
      return false;
    }

    return this._writableState.destroyed;
  },
  set: function set(value) {
    // we ignore the value if the stream
    // has not been initialized yet
    if (!this._writableState) {
      return;
    } // backward compatibility, the user is explicitly
    // managing destroyed


    this._writableState.destroyed = value;
  }
});
Writable.prototype.destroy = destroyImpl.destroy;
Writable.prototype._undestroy = destroyImpl.undestroy;

Writable.prototype._destroy = function (err, cb) {
  cb(err);
};
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"../errors":22,"./_stream_duplex":24,"./internal/streams/destroy":31,"./internal/streams/state":34,"./internal/streams/stream":35,"_process":12,"buffer":4,"inherits":9,"util-deprecate":41}],29:[function(require,module,exports){
(function (process){
'use strict';

var _Object$setPrototypeO;

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var finished = require('./end-of-stream');

var kLastResolve = Symbol('lastResolve');
var kLastReject = Symbol('lastReject');
var kError = Symbol('error');
var kEnded = Symbol('ended');
var kLastPromise = Symbol('lastPromise');
var kHandlePromise = Symbol('handlePromise');
var kStream = Symbol('stream');

function createIterResult(value, done) {
  return {
    value: value,
    done: done
  };
}

function readAndResolve(iter) {
  var resolve = iter[kLastResolve];

  if (resolve !== null) {
    var data = iter[kStream].read(); // we defer if data is null
    // we can be expecting either 'end' or
    // 'error'

    if (data !== null) {
      iter[kLastPromise] = null;
      iter[kLastResolve] = null;
      iter[kLastReject] = null;
      resolve(createIterResult(data, false));
    }
  }
}

function onReadable(iter) {
  // we wait for the next tick, because it might
  // emit an error with process.nextTick
  process.nextTick(readAndResolve, iter);
}

function wrapForNext(lastPromise, iter) {
  return function (resolve, reject) {
    lastPromise.then(function () {
      if (iter[kEnded]) {
        resolve(createIterResult(undefined, true));
        return;
      }

      iter[kHandlePromise](resolve, reject);
    }, reject);
  };
}

var AsyncIteratorPrototype = Object.getPrototypeOf(function () {});
var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {
  get stream() {
    return this[kStream];
  },

  next: function next() {
    var _this = this;

    // if we have detected an error in the meanwhile
    // reject straight away
    var error = this[kError];

    if (error !== null) {
      return Promise.reject(error);
    }

    if (this[kEnded]) {
      return Promise.resolve(createIterResult(undefined, true));
    }

    if (this[kStream].destroyed) {
      // We need to defer via nextTick because if .destroy(err) is
      // called, the error will be emitted via nextTick, and
      // we cannot guarantee that there is no error lingering around
      // waiting to be emitted.
      return new Promise(function (resolve, reject) {
        process.nextTick(function () {
          if (_this[kError]) {
            reject(_this[kError]);
          } else {
            resolve(createIterResult(undefined, true));
          }
        });
      });
    } // if we have multiple next() calls
    // we will wait for the previous Promise to finish
    // this logic is optimized to support for await loops,
    // where next() is only called once at a time


    var lastPromise = this[kLastPromise];
    var promise;

    if (lastPromise) {
      promise = new Promise(wrapForNext(lastPromise, this));
    } else {
      // fast path needed to support multiple this.push()
      // without triggering the next() queue
      var data = this[kStream].read();

      if (data !== null) {
        return Promise.resolve(createIterResult(data, false));
      }

      promise = new Promise(this[kHandlePromise]);
    }

    this[kLastPromise] = promise;
    return promise;
  }
}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () {
  return this;
}), _defineProperty(_Object$setPrototypeO, "return", function _return() {
  var _this2 = this;

  // destroy(err, cb) is a private API
  // we can guarantee we have that here, because we control the
  // Readable class this is attached to
  return new Promise(function (resolve, reject) {
    _this2[kStream].destroy(null, function (err) {
      if (err) {
        reject(err);
        return;
      }

      resolve(createIterResult(undefined, true));
    });
  });
}), _Object$setPrototypeO), AsyncIteratorPrototype);

var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {
  var _Object$create;

  var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {
    value: stream,
    writable: true
  }), _defineProperty(_Object$create, kLastResolve, {
    value: null,
    writable: true
  }), _defineProperty(_Object$create, kLastReject, {
    value: null,
    writable: true
  }), _defineProperty(_Object$create, kError, {
    value: null,
    writable: true
  }), _defineProperty(_Object$create, kEnded, {
    value: stream._readableState.endEmitted,
    writable: true
  }), _defineProperty(_Object$create, kHandlePromise, {
    value: function value(resolve, reject) {
      var data = iterator[kStream].read();

      if (data) {
        iterator[kLastPromise] = null;
        iterator[kLastResolve] = null;
        iterator[kLastReject] = null;
        resolve(createIterResult(data, false));
      } else {
        iterator[kLastResolve] = resolve;
        iterator[kLastReject] = reject;
      }
    },
    writable: true
  }), _Object$create));
  iterator[kLastPromise] = null;
  finished(stream, function (err) {
    if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {
      var reject = iterator[kLastReject]; // reject if we are waiting for data in the Promise
      // returned by next() and store the error

      if (reject !== null) {
        iterator[kLastPromise] = null;
        iterator[kLastResolve] = null;
        iterator[kLastReject] = null;
        reject(err);
      }

      iterator[kError] = err;
      return;
    }

    var resolve = iterator[kLastResolve];

    if (resolve !== null) {
      iterator[kLastPromise] = null;
      iterator[kLastResolve] = null;
      iterator[kLastReject] = null;
      resolve(createIterResult(undefined, true));
    }

    iterator[kEnded] = true;
  });
  stream.on('readable', onReadable.bind(null, iterator));
  return iterator;
};

module.exports = createReadableStreamAsyncIterator;
}).call(this,require('_process'))
},{"./end-of-stream":32,"_process":12}],30:[function(require,module,exports){
'use strict';

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var _require = require('buffer'),
    Buffer = _require.Buffer;

var _require2 = require('util'),
    inspect = _require2.inspect;

var custom = inspect && inspect.custom || 'inspect';

function copyBuffer(src, target, offset) {
  Buffer.prototype.copy.call(src, target, offset);
}

module.exports =
/*#__PURE__*/
function () {
  function BufferList() {
    this.head = null;
    this.tail = null;
    this.length = 0;
  }

  var _proto = BufferList.prototype;

  _proto.push = function push(v) {
    var entry = {
      data: v,
      next: null
    };
    if (this.length > 0) this.tail.next = entry;else this.head = entry;
    this.tail = entry;
    ++this.length;
  };

  _proto.unshift = function unshift(v) {
    var entry = {
      data: v,
      next: this.head
    };
    if (this.length === 0) this.tail = entry;
    this.head = entry;
    ++this.length;
  };

  _proto.shift = function shift() {
    if (this.length === 0) return;
    var ret = this.head.data;
    if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;
    --this.length;
    return ret;
  };

  _proto.clear = function clear() {
    this.head = this.tail = null;
    this.length = 0;
  };

  _proto.join = function join(s) {
    if (this.length === 0) return '';
    var p = this.head;
    var ret = '' + p.data;

    while (p = p.next) {
      ret += s + p.data;
    }

    return ret;
  };

  _proto.concat = function concat(n) {
    if (this.length === 0) return Buffer.alloc(0);
    var ret = Buffer.allocUnsafe(n >>> 0);
    var p = this.head;
    var i = 0;

    while (p) {
      copyBuffer(p.data, ret, i);
      i += p.data.length;
      p = p.next;
    }

    return ret;
  } // Consumes a specified amount of bytes or characters from the buffered data.
  ;

  _proto.consume = function consume(n, hasStrings) {
    var ret;

    if (n < this.head.data.length) {
      // `slice` is the same for buffers and strings.
      ret = this.head.data.slice(0, n);
      this.head.data = this.head.data.slice(n);
    } else if (n === this.head.data.length) {
      // First chunk is a perfect match.
      ret = this.shift();
    } else {
      // Result spans more than one buffer.
      ret = hasStrings ? this._getString(n) : this._getBuffer(n);
    }

    return ret;
  };

  _proto.first = function first() {
    return this.head.data;
  } // Consumes a specified amount of characters from the buffered data.
  ;

  _proto._getString = function _getString(n) {
    var p = this.head;
    var c = 1;
    var ret = p.data;
    n -= ret.length;

    while (p = p.next) {
      var str = p.data;
      var nb = n > str.length ? str.length : n;
      if (nb === str.length) ret += str;else ret += str.slice(0, n);
      n -= nb;

      if (n === 0) {
        if (nb === str.length) {
          ++c;
          if (p.next) this.head = p.next;else this.head = this.tail = null;
        } else {
          this.head = p;
          p.data = str.slice(nb);
        }

        break;
      }

      ++c;
    }

    this.length -= c;
    return ret;
  } // Consumes a specified amount of bytes from the buffered data.
  ;

  _proto._getBuffer = function _getBuffer(n) {
    var ret = Buffer.allocUnsafe(n);
    var p = this.head;
    var c = 1;
    p.data.copy(ret);
    n -= p.data.length;

    while (p = p.next) {
      var buf = p.data;
      var nb = n > buf.length ? buf.length : n;
      buf.copy(ret, ret.length - n, 0, nb);
      n -= nb;

      if (n === 0) {
        if (nb === buf.length) {
          ++c;
          if (p.next) this.head = p.next;else this.head = this.tail = null;
        } else {
          this.head = p;
          p.data = buf.slice(nb);
        }

        break;
      }

      ++c;
    }

    this.length -= c;
    return ret;
  } // Make sure the linked list only shows the minimal necessary information.
  ;

  _proto[custom] = function (_, options) {
    return inspect(this, _objectSpread({}, options, {
      // Only inspect one level.
      depth: 0,
      // It should not recurse.
      customInspect: false
    }));
  };

  return BufferList;
}();
},{"buffer":4,"util":3}],31:[function(require,module,exports){
(function (process){
'use strict'; // undocumented cb() API, needed for core, not for public API

function destroy(err, cb) {
  var _this = this;

  var readableDestroyed = this._readableState && this._readableState.destroyed;
  var writableDestroyed = this._writableState && this._writableState.destroyed;

  if (readableDestroyed || writableDestroyed) {
    if (cb) {
      cb(err);
    } else if (err && (!this._writableState || !this._writableState.errorEmitted)) {
      process.nextTick(emitErrorNT, this, err);
    }

    return this;
  } // we set destroyed to true before firing error callbacks in order
  // to make it re-entrance safe in case destroy() is called within callbacks


  if (this._readableState) {
    this._readableState.destroyed = true;
  } // if this is a duplex stream mark the writable part as destroyed as well


  if (this._writableState) {
    this._writableState.destroyed = true;
  }

  this._destroy(err || null, function (err) {
    if (!cb && err) {
      process.nextTick(emitErrorAndCloseNT, _this, err);

      if (_this._writableState) {
        _this._writableState.errorEmitted = true;
      }
    } else if (cb) {
      process.nextTick(emitCloseNT, _this);
      cb(err);
    } else {
      process.nextTick(emitCloseNT, _this);
    }
  });

  return this;
}

function emitErrorAndCloseNT(self, err) {
  emitErrorNT(self, err);
  emitCloseNT(self);
}

function emitCloseNT(self) {
  if (self._writableState && !self._writableState.emitClose) return;
  if (self._readableState && !self._readableState.emitClose) return;
  self.emit('close');
}

function undestroy() {
  if (this._readableState) {
    this._readableState.destroyed = false;
    this._readableState.reading = false;
    this._readableState.ended = false;
    this._readableState.endEmitted = false;
  }

  if (this._writableState) {
    this._writableState.destroyed = false;
    this._writableState.ended = false;
    this._writableState.ending = false;
    this._writableState.finalCalled = false;
    this._writableState.prefinished = false;
    this._writableState.finished = false;
    this._writableState.errorEmitted = false;
  }
}

function emitErrorNT(self, err) {
  self.emit('error', err);
}

module.exports = {
  destroy: destroy,
  undestroy: undestroy
};
}).call(this,require('_process'))
},{"_process":12}],32:[function(require,module,exports){
// Ported from https://github.com/mafintosh/end-of-stream with
// permission from the author, Mathias Buus (@mafintosh).
'use strict';

var ERR_STREAM_PREMATURE_CLOSE = require('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE;

function once(callback) {
  var called = false;
  return function () {
    if (called) return;
    called = true;

    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    callback.apply(this, args);
  };
}

function noop() {}

function isRequest(stream) {
  return stream.setHeader && typeof stream.abort === 'function';
}

function eos(stream, opts, callback) {
  if (typeof opts === 'function') return eos(stream, null, opts);
  if (!opts) opts = {};
  callback = once(callback || noop);
  var readable = opts.readable || opts.readable !== false && stream.readable;
  var writable = opts.writable || opts.writable !== false && stream.writable;

  var onlegacyfinish = function onlegacyfinish() {
    if (!stream.writable) onfinish();
  };

  var writableEnded = stream._writableState && stream._writableState.finished;

  var onfinish = function onfinish() {
    writable = false;
    writableEnded = true;
    if (!readable) callback.call(stream);
  };

  var readableEnded = stream._readableState && stream._readableState.endEmitted;

  var onend = function onend() {
    readable = false;
    readableEnded = true;
    if (!writable) callback.call(stream);
  };

  var onerror = function onerror(err) {
    callback.call(stream, err);
  };

  var onclose = function onclose() {
    var err;

    if (readable && !readableEnded) {
      if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();
      return callback.call(stream, err);
    }

    if (writable && !writableEnded) {
      if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();
      return callback.call(stream, err);
    }
  };

  var onrequest = function onrequest() {
    stream.req.on('finish', onfinish);
  };

  if (isRequest(stream)) {
    stream.on('complete', onfinish);
    stream.on('abort', onclose);
    if (stream.req) onrequest();else stream.on('request', onrequest);
  } else if (writable && !stream._writableState) {
    // legacy streams
    stream.on('end', onlegacyfinish);
    stream.on('close', onlegacyfinish);
  }

  stream.on('end', onend);
  stream.on('finish', onfinish);
  if (opts.error !== false) stream.on('error', onerror);
  stream.on('close', onclose);
  return function () {
    stream.removeListener('complete', onfinish);
    stream.removeListener('abort', onclose);
    stream.removeListener('request', onrequest);
    if (stream.req) stream.req.removeListener('finish', onfinish);
    stream.removeListener('end', onlegacyfinish);
    stream.removeListener('close', onlegacyfinish);
    stream.removeListener('finish', onfinish);
    stream.removeListener('end', onend);
    stream.removeListener('error', onerror);
    stream.removeListener('close', onclose);
  };
}

module.exports = eos;
},{"../../../errors":22}],33:[function(require,module,exports){
// Ported from https://github.com/mafintosh/pump with
// permission from the author, Mathias Buus (@mafintosh).
'use strict';

var eos;

function once(callback) {
  var called = false;
  return function () {
    if (called) return;
    called = true;
    callback.apply(void 0, arguments);
  };
}

var _require$codes = require('../../../errors').codes,
    ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,
    ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;

function noop(err) {
  // Rethrow the error if it exists to avoid swallowing it
  if (err) throw err;
}

function isRequest(stream) {
  return stream.setHeader && typeof stream.abort === 'function';
}

function destroyer(stream, reading, writing, callback) {
  callback = once(callback);
  var closed = false;
  stream.on('close', function () {
    closed = true;
  });
  if (eos === undefined) eos = require('./end-of-stream');
  eos(stream, {
    readable: reading,
    writable: writing
  }, function (err) {
    if (err) return callback(err);
    closed = true;
    callback();
  });
  var destroyed = false;
  return function (err) {
    if (closed) return;
    if (destroyed) return;
    destroyed = true; // request.destroy just do .end - .abort is what we want

    if (isRequest(stream)) return stream.abort();
    if (typeof stream.destroy === 'function') return stream.destroy();
    callback(err || new ERR_STREAM_DESTROYED('pipe'));
  };
}

function call(fn) {
  fn();
}

function pipe(from, to) {
  return from.pipe(to);
}

function popCallback(streams) {
  if (!streams.length) return noop;
  if (typeof streams[streams.length - 1] !== 'function') return noop;
  return streams.pop();
}

function pipeline() {
  for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {
    streams[_key] = arguments[_key];
  }

  var callback = popCallback(streams);
  if (Array.isArray(streams[0])) streams = streams[0];

  if (streams.length < 2) {
    throw new ERR_MISSING_ARGS('streams');
  }

  var error;
  var destroys = streams.map(function (stream, i) {
    var reading = i < streams.length - 1;
    var writing = i > 0;
    return destroyer(stream, reading, writing, function (err) {
      if (!error) error = err;
      if (err) destroys.forEach(call);
      if (reading) return;
      destroys.forEach(call);
      callback(error);
    });
  });
  return streams.reduce(pipe);
}

module.exports = pipeline;
},{"../../../errors":22,"./end-of-stream":32}],34:[function(require,module,exports){
'use strict';

var ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;

function highWaterMarkFrom(options, isDuplex, duplexKey) {
  return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
}

function getHighWaterMark(state, options, duplexKey, isDuplex) {
  var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);

  if (hwm != null) {
    if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
      var name = isDuplex ? duplexKey : 'highWaterMark';
      throw new ERR_INVALID_OPT_VALUE(name, hwm);
    }

    return Math.floor(hwm);
  } // Default value


  return state.objectMode ? 16 : 16 * 1024;
}

module.exports = {
  getHighWaterMark: getHighWaterMark
};
},{"../../../errors":22}],35:[function(require,module,exports){
module.exports = require('events').EventEmitter;

},{"events":6}],36:[function(require,module,exports){
exports = module.exports = require('./lib/_stream_readable.js');
exports.Stream = exports;
exports.Readable = exports;
exports.Writable = require('./lib/_stream_writable.js');
exports.Duplex = require('./lib/_stream_duplex.js');
exports.Transform = require('./lib/_stream_transform.js');
exports.PassThrough = require('./lib/_stream_passthrough.js');
exports.finished = require('./lib/internal/streams/end-of-stream.js');
exports.pipeline = require('./lib/internal/streams/pipeline.js');

},{"./lib/_stream_duplex.js":24,"./lib/_stream_passthrough.js":25,"./lib/_stream_readable.js":26,"./lib/_stream_transform.js":27,"./lib/_stream_writable.js":28,"./lib/internal/streams/end-of-stream.js":32,"./lib/internal/streams/pipeline.js":33}],37:[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

'use strict';

/*<replacement>*/

var Buffer = require('safe-buffer').Buffer;
/*</replacement>*/

var isEncoding = Buffer.isEncoding || function (encoding) {
  encoding = '' + encoding;
  switch (encoding && encoding.toLowerCase()) {
    case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':
      return true;
    default:
      return false;
  }
};

function _normalizeEncoding(enc) {
  if (!enc) return 'utf8';
  var retried;
  while (true) {
    switch (enc) {
      case 'utf8':
      case 'utf-8':
        return 'utf8';
      case 'ucs2':
      case 'ucs-2':
      case 'utf16le':
      case 'utf-16le':
        return 'utf16le';
      case 'latin1':
      case 'binary':
        return 'latin1';
      case 'base64':
      case 'ascii':
      case 'hex':
        return enc;
      default:
        if (retried) return; // undefined
        enc = ('' + enc).toLowerCase();
        retried = true;
    }
  }
};

// Do not cache `Buffer.isEncoding` when checking encoding names as some
// modules monkey-patch it to support additional encodings
function normalizeEncoding(enc) {
  var nenc = _normalizeEncoding(enc);
  if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
  return nenc || enc;
}

// StringDecoder provides an interface for efficiently splitting a series of
// buffers into a series of JS strings without breaking apart multi-byte
// characters.
exports.StringDecoder = StringDecoder;
function StringDecoder(encoding) {
  this.encoding = normalizeEncoding(encoding);
  var nb;
  switch (this.encoding) {
    case 'utf16le':
      this.text = utf16Text;
      this.end = utf16End;
      nb = 4;
      break;
    case 'utf8':
      this.fillLast = utf8FillLast;
      nb = 4;
      break;
    case 'base64':
      this.text = base64Text;
      this.end = base64End;
      nb = 3;
      break;
    default:
      this.write = simpleWrite;
      this.end = simpleEnd;
      return;
  }
  this.lastNeed = 0;
  this.lastTotal = 0;
  this.lastChar = Buffer.allocUnsafe(nb);
}

StringDecoder.prototype.write = function (buf) {
  if (buf.length === 0) return '';
  var r;
  var i;
  if (this.lastNeed) {
    r = this.fillLast(buf);
    if (r === undefined) return '';
    i = this.lastNeed;
    this.lastNeed = 0;
  } else {
    i = 0;
  }
  if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);
  return r || '';
};

StringDecoder.prototype.end = utf8End;

// Returns only complete characters in a Buffer
StringDecoder.prototype.text = utf8Text;

// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer
StringDecoder.prototype.fillLast = function (buf) {
  if (this.lastNeed <= buf.length) {
    buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
    return this.lastChar.toString(this.encoding, 0, this.lastTotal);
  }
  buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
  this.lastNeed -= buf.length;
};

// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a
// continuation byte. If an invalid byte is detected, -2 is returned.
function utf8CheckByte(byte) {
  if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;
  return byte >> 6 === 0x02 ? -1 : -2;
}

// Checks at most 3 bytes at the end of a Buffer in order to detect an
// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)
// needed to complete the UTF-8 character (if applicable) are returned.
function utf8CheckIncomplete(self, buf, i) {
  var j = buf.length - 1;
  if (j < i) return 0;
  var nb = utf8CheckByte(buf[j]);
  if (nb >= 0) {
    if (nb > 0) self.lastNeed = nb - 1;
    return nb;
  }
  if (--j < i || nb === -2) return 0;
  nb = utf8CheckByte(buf[j]);
  if (nb >= 0) {
    if (nb > 0) self.lastNeed = nb - 2;
    return nb;
  }
  if (--j < i || nb === -2) return 0;
  nb = utf8CheckByte(buf[j]);
  if (nb >= 0) {
    if (nb > 0) {
      if (nb === 2) nb = 0;else self.lastNeed = nb - 3;
    }
    return nb;
  }
  return 0;
}

// Validates as many continuation bytes for a multi-byte UTF-8 character as
// needed or are available. If we see a non-continuation byte where we expect
// one, we "replace" the validated continuation bytes we've seen so far with
// a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding
// behavior. The continuation byte check is included three times in the case
// where all of the continuation bytes for a character exist in the same buffer.
// It is also done this way as a slight performance increase instead of using a
// loop.
function utf8CheckExtraBytes(self, buf, p) {
  if ((buf[0] & 0xC0) !== 0x80) {
    self.lastNeed = 0;
    return '\ufffd';
  }
  if (self.lastNeed > 1 && buf.length > 1) {
    if ((buf[1] & 0xC0) !== 0x80) {
      self.lastNeed = 1;
      return '\ufffd';
    }
    if (self.lastNeed > 2 && buf.length > 2) {
      if ((buf[2] & 0xC0) !== 0x80) {
        self.lastNeed = 2;
        return '\ufffd';
      }
    }
  }
}

// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.
function utf8FillLast(buf) {
  var p = this.lastTotal - this.lastNeed;
  var r = utf8CheckExtraBytes(this, buf, p);
  if (r !== undefined) return r;
  if (this.lastNeed <= buf.length) {
    buf.copy(this.lastChar, p, 0, this.lastNeed);
    return this.lastChar.toString(this.encoding, 0, this.lastTotal);
  }
  buf.copy(this.lastChar, p, 0, buf.length);
  this.lastNeed -= buf.length;
}

// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a
// partial character, the character's bytes are buffered until the required
// number of bytes are available.
function utf8Text(buf, i) {
  var total = utf8CheckIncomplete(this, buf, i);
  if (!this.lastNeed) return buf.toString('utf8', i);
  this.lastTotal = total;
  var end = buf.length - (total - this.lastNeed);
  buf.copy(this.lastChar, 0, end);
  return buf.toString('utf8', i, end);
}

// For UTF-8, a replacement character is added when ending on a partial
// character.
function utf8End(buf) {
  var r = buf && buf.length ? this.write(buf) : '';
  if (this.lastNeed) return r + '\ufffd';
  return r;
}

// UTF-16LE typically needs two bytes per character, but even if we have an even
// number of bytes available, we need to check if we end on a leading/high
// surrogate. In that case, we need to wait for the next two bytes in order to
// decode the last character properly.
function utf16Text(buf, i) {
  if ((buf.length - i) % 2 === 0) {
    var r = buf.toString('utf16le', i);
    if (r) {
      var c = r.charCodeAt(r.length - 1);
      if (c >= 0xD800 && c <= 0xDBFF) {
        this.lastNeed = 2;
        this.lastTotal = 4;
        this.lastChar[0] = buf[buf.length - 2];
        this.lastChar[1] = buf[buf.length - 1];
        return r.slice(0, -1);
      }
    }
    return r;
  }
  this.lastNeed = 1;
  this.lastTotal = 2;
  this.lastChar[0] = buf[buf.length - 1];
  return buf.toString('utf16le', i, buf.length - 1);
}

// For UTF-16LE we do not explicitly append special replacement characters if we
// end on a partial character, we simply let v8 handle that.
function utf16End(buf) {
  var r = buf && buf.length ? this.write(buf) : '';
  if (this.lastNeed) {
    var end = this.lastTotal - this.lastNeed;
    return r + this.lastChar.toString('utf16le', 0, end);
  }
  return r;
}

function base64Text(buf, i) {
  var n = (buf.length - i) % 3;
  if (n === 0) return buf.toString('base64', i);
  this.lastNeed = 3 - n;
  this.lastTotal = 3;
  if (n === 1) {
    this.lastChar[0] = buf[buf.length - 1];
  } else {
    this.lastChar[0] = buf[buf.length - 2];
    this.lastChar[1] = buf[buf.length - 1];
  }
  return buf.toString('base64', i, buf.length - n);
}

function base64End(buf) {
  var r = buf && buf.length ? this.write(buf) : '';
  if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);
  return r;
}

// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)
function simpleWrite(buf) {
  return buf.toString(this.encoding);
}

function simpleEnd(buf) {
  return buf && buf.length ? this.write(buf) : '';
}
},{"safe-buffer":17}],38:[function(require,module,exports){
(function (setImmediate,clearImmediate){
var nextTick = require('process/browser.js').nextTick;
var apply = Function.prototype.apply;
var slice = Array.prototype.slice;
var immediateIds = {};
var nextImmediateId = 0;

// DOM APIs, for completeness

exports.setTimeout = function() {
  return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout);
};
exports.setInterval = function() {
  return new Timeout(apply.call(setInterval, window, arguments), clearInterval);
};
exports.clearTimeout =
exports.clearInterval = function(timeout) { timeout.close(); };

function Timeout(id, clearFn) {
  this._id = id;
  this._clearFn = clearFn;
}
Timeout.prototype.unref = Timeout.prototype.ref = function() {};
Timeout.prototype.close = function() {
  this._clearFn.call(window, this._id);
};

// Does not start the time, just sets up the members needed.
exports.enroll = function(item, msecs) {
  clearTimeout(item._idleTimeoutId);
  item._idleTimeout = msecs;
};

exports.unenroll = function(item) {
  clearTimeout(item._idleTimeoutId);
  item._idleTimeout = -1;
};

exports._unrefActive = exports.active = function(item) {
  clearTimeout(item._idleTimeoutId);

  var msecs = item._idleTimeout;
  if (msecs >= 0) {
    item._idleTimeoutId = setTimeout(function onTimeout() {
      if (item._onTimeout)
        item._onTimeout();
    }, msecs);
  }
};

// That's not how node.js implements it but the exposed api is the same.
exports.setImmediate = typeof setImmediate === "function" ? setImmediate : function(fn) {
  var id = nextImmediateId++;
  var args = arguments.length < 2 ? false : slice.call(arguments, 1);

  immediateIds[id] = true;

  nextTick(function onNextTick() {
    if (immediateIds[id]) {
      // fn.call() is faster so we optimize for the common use-case
      // @see http://jsperf.com/call-apply-segu
      if (args) {
        fn.apply(null, args);
      } else {
        fn.call(null);
      }
      // Prevent ids from leaking
      exports.clearImmediate(id);
    }
  });

  return id;
};

exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : function(id) {
  delete immediateIds[id];
};
}).call(this,require("timers").setImmediate,require("timers").clearImmediate)
},{"process/browser.js":12,"timers":38}],39:[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

'use strict';

var punycode = require('punycode');
var util = require('./util');

exports.parse = urlParse;
exports.resolve = urlResolve;
exports.resolveObject = urlResolveObject;
exports.format = urlFormat;

exports.Url = Url;

function Url() {
  this.protocol = null;
  this.slashes = null;
  this.auth = null;
  this.host = null;
  this.port = null;
  this.hostname = null;
  this.hash = null;
  this.search = null;
  this.query = null;
  this.pathname = null;
  this.path = null;
  this.href = null;
}

// Reference: RFC 3986, RFC 1808, RFC 2396

// define these here so at least they only have to be
// compiled once on the first module load.
var protocolPattern = /^([a-z0-9.+-]+:)/i,
    portPattern = /:[0-9]*$/,

    // Special case for a simple path URL
    simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,

    // RFC 2396: characters reserved for delimiting URLs.
    // We actually just auto-escape these.
    delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'],

    // RFC 2396: characters not allowed for various reasons.
    unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims),

    // Allowed by RFCs, but cause of XSS attacks.  Always escape these.
    autoEscape = ['\''].concat(unwise),
    // Characters that are never ever allowed in a hostname.
    // Note that any invalid chars are also handled, but these
    // are the ones that are *expected* to be seen, so we fast-path
    // them.
    nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),
    hostEndingChars = ['/', '?', '#'],
    hostnameMaxLen = 255,
    hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,
    hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
    // protocols that can allow "unsafe" and "unwise" chars.
    unsafeProtocol = {
      'javascript': true,
      'javascript:': true
    },
    // protocols that never have a hostname.
    hostlessProtocol = {
      'javascript': true,
      'javascript:': true
    },
    // protocols that always contain a // bit.
    slashedProtocol = {
      'http': true,
      'https': true,
      'ftp': true,
      'gopher': true,
      'file': true,
      'http:': true,
      'https:': true,
      'ftp:': true,
      'gopher:': true,
      'file:': true
    },
    querystring = require('querystring');

function urlParse(url, parseQueryString, slashesDenoteHost) {
  if (url && util.isObject(url) && url instanceof Url) return url;

  var u = new Url;
  u.parse(url, parseQueryString, slashesDenoteHost);
  return u;
}

Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
  if (!util.isString(url)) {
    throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
  }

  // Copy chrome, IE, opera backslash-handling behavior.
  // Back slashes before the query string get converted to forward slashes
  // See: https://code.google.com/p/chromium/issues/detail?id=25916
  var queryIndex = url.indexOf('?'),
      splitter =
          (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',
      uSplit = url.split(splitter),
      slashRegex = /\\/g;
  uSplit[0] = uSplit[0].replace(slashRegex, '/');
  url = uSplit.join(splitter);

  var rest = url;

  // trim before proceeding.
  // This is to support parse stuff like "  http://foo.com  \n"
  rest = rest.trim();

  if (!slashesDenoteHost && url.split('#').length === 1) {
    // Try fast path regexp
    var simplePath = simplePathPattern.exec(rest);
    if (simplePath) {
      this.path = rest;
      this.href = rest;
      this.pathname = simplePath[1];
      if (simplePath[2]) {
        this.search = simplePath[2];
        if (parseQueryString) {
          this.query = querystring.parse(this.search.substr(1));
        } else {
          this.query = this.search.substr(1);
        }
      } else if (parseQueryString) {
        this.search = '';
        this.query = {};
      }
      return this;
    }
  }

  var proto = protocolPattern.exec(rest);
  if (proto) {
    proto = proto[0];
    var lowerProto = proto.toLowerCase();
    this.protocol = lowerProto;
    rest = rest.substr(proto.length);
  }

  // figure out if it's got a host
  // user@server is *always* interpreted as a hostname, and url
  // resolution will treat //foo/bar as host=foo,path=bar because that's
  // how the browser resolves relative URLs.
  if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) {
    var slashes = rest.substr(0, 2) === '//';
    if (slashes && !(proto && hostlessProtocol[proto])) {
      rest = rest.substr(2);
      this.slashes = true;
    }
  }

  if (!hostlessProtocol[proto] &&
      (slashes || (proto && !slashedProtocol[proto]))) {

    // there's a hostname.
    // the first instance of /, ?, ;, or # ends the host.
    //
    // If there is an @ in the hostname, then non-host chars *are* allowed
    // to the left of the last @ sign, unless some host-ending character
    // comes *before* the @-sign.
    // URLs are obnoxious.
    //
    // ex:
    // http://a@b@c/ => user:a@b host:c
    // http://a@b?@c => user:a host:c path:/?@c

    // v0.12 TODO(isaacs): This is not quite how Chrome does things.
    // Review our test case against browsers more comprehensively.

    // find the first instance of any hostEndingChars
    var hostEnd = -1;
    for (var i = 0; i < hostEndingChars.length; i++) {
      var hec = rest.indexOf(hostEndingChars[i]);
      if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
        hostEnd = hec;
    }

    // at this point, either we have an explicit point where the
    // auth portion cannot go past, or the last @ char is the decider.
    var auth, atSign;
    if (hostEnd === -1) {
      // atSign can be anywhere.
      atSign = rest.lastIndexOf('@');
    } else {
      // atSign must be in auth portion.
      // http://a@b/c@d => host:b auth:a path:/c@d
      atSign = rest.lastIndexOf('@', hostEnd);
    }

    // Now we have a portion which is definitely the auth.
    // Pull that off.
    if (atSign !== -1) {
      auth = rest.slice(0, atSign);
      rest = rest.slice(atSign + 1);
      this.auth = decodeURIComponent(auth);
    }

    // the host is the remaining to the left of the first non-host char
    hostEnd = -1;
    for (var i = 0; i < nonHostChars.length; i++) {
      var hec = rest.indexOf(nonHostChars[i]);
      if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
        hostEnd = hec;
    }
    // if we still have not hit it, then the entire thing is a host.
    if (hostEnd === -1)
      hostEnd = rest.length;

    this.host = rest.slice(0, hostEnd);
    rest = rest.slice(hostEnd);

    // pull out port.
    this.parseHost();

    // we've indicated that there is a hostname,
    // so even if it's empty, it has to be present.
    this.hostname = this.hostname || '';

    // if hostname begins with [ and ends with ]
    // assume that it's an IPv6 address.
    var ipv6Hostname = this.hostname[0] === '[' &&
        this.hostname[this.hostname.length - 1] === ']';

    // validate a little.
    if (!ipv6Hostname) {
      var hostparts = this.hostname.split(/\./);
      for (var i = 0, l = hostparts.length; i < l; i++) {
        var part = hostparts[i];
        if (!part) continue;
        if (!part.match(hostnamePartPattern)) {
          var newpart = '';
          for (var j = 0, k = part.length; j < k; j++) {
            if (part.charCodeAt(j) > 127) {
              // we replace non-ASCII char with a temporary placeholder
              // we need this to make sure size of hostname is not
              // broken by replacing non-ASCII by nothing
              newpart += 'x';
            } else {
              newpart += part[j];
            }
          }
          // we test again with ASCII char only
          if (!newpart.match(hostnamePartPattern)) {
            var validParts = hostparts.slice(0, i);
            var notHost = hostparts.slice(i + 1);
            var bit = part.match(hostnamePartStart);
            if (bit) {
              validParts.push(bit[1]);
              notHost.unshift(bit[2]);
            }
            if (notHost.length) {
              rest = '/' + notHost.join('.') + rest;
            }
            this.hostname = validParts.join('.');
            break;
          }
        }
      }
    }

    if (this.hostname.length > hostnameMaxLen) {
      this.hostname = '';
    } else {
      // hostnames are always lower case.
      this.hostname = this.hostname.toLowerCase();
    }

    if (!ipv6Hostname) {
      // IDNA Support: Returns a punycoded representation of "domain".
      // It only converts parts of the domain name that
      // have non-ASCII characters, i.e. it doesn't matter if
      // you call it with a domain that already is ASCII-only.
      this.hostname = punycode.toASCII(this.hostname);
    }

    var p = this.port ? ':' + this.port : '';
    var h = this.hostname || '';
    this.host = h + p;
    this.href += this.host;

    // strip [ and ] from the hostname
    // the host field still retains them, though
    if (ipv6Hostname) {
      this.hostname = this.hostname.substr(1, this.hostname.length - 2);
      if (rest[0] !== '/') {
        rest = '/' + rest;
      }
    }
  }

  // now rest is set to the post-host stuff.
  // chop off any delim chars.
  if (!unsafeProtocol[lowerProto]) {

    // First, make 100% sure that any "autoEscape" chars get
    // escaped, even if encodeURIComponent doesn't think they
    // need to be.
    for (var i = 0, l = autoEscape.length; i < l; i++) {
      var ae = autoEscape[i];
      if (rest.indexOf(ae) === -1)
        continue;
      var esc = encodeURIComponent(ae);
      if (esc === ae) {
        esc = escape(ae);
      }
      rest = rest.split(ae).join(esc);
    }
  }


  // chop off from the tail first.
  var hash = rest.indexOf('#');
  if (hash !== -1) {
    // got a fragment string.
    this.hash = rest.substr(hash);
    rest = rest.slice(0, hash);
  }
  var qm = rest.indexOf('?');
  if (qm !== -1) {
    this.search = rest.substr(qm);
    this.query = rest.substr(qm + 1);
    if (parseQueryString) {
      this.query = querystring.parse(this.query);
    }
    rest = rest.slice(0, qm);
  } else if (parseQueryString) {
    // no query string, but parseQueryString still requested
    this.search = '';
    this.query = {};
  }
  if (rest) this.pathname = rest;
  if (slashedProtocol[lowerProto] &&
      this.hostname && !this.pathname) {
    this.pathname = '/';
  }

  //to support http.request
  if (this.pathname || this.search) {
    var p = this.pathname || '';
    var s = this.search || '';
    this.path = p + s;
  }

  // finally, reconstruct the href based on what has been validated.
  this.href = this.format();
  return this;
};

// format a parsed object into a url string
function urlFormat(obj) {
  // ensure it's an object, and not a string url.
  // If it's an obj, this is a no-op.
  // this way, you can call url_format() on strings
  // to clean up potentially wonky urls.
  if (util.isString(obj)) obj = urlParse(obj);
  if (!(obj instanceof Url)) return Url.prototype.format.call(obj);
  return obj.format();
}

Url.prototype.format = function() {
  var auth = this.auth || '';
  if (auth) {
    auth = encodeURIComponent(auth);
    auth = auth.replace(/%3A/i, ':');
    auth += '@';
  }

  var protocol = this.protocol || '',
      pathname = this.pathname || '',
      hash = this.hash || '',
      host = false,
      query = '';

  if (this.host) {
    host = auth + this.host;
  } else if (this.hostname) {
    host = auth + (this.hostname.indexOf(':') === -1 ?
        this.hostname :
        '[' + this.hostname + ']');
    if (this.port) {
      host += ':' + this.port;
    }
  }

  if (this.query &&
      util.isObject(this.query) &&
      Object.keys(this.query).length) {
    query = querystring.stringify(this.query);
  }

  var search = this.search || (query && ('?' + query)) || '';

  if (protocol && protocol.substr(-1) !== ':') protocol += ':';

  // only the slashedProtocols get the //.  Not mailto:, xmpp:, etc.
  // unless they had them to begin with.
  if (this.slashes ||
      (!protocol || slashedProtocol[protocol]) && host !== false) {
    host = '//' + (host || '');
    if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;
  } else if (!host) {
    host = '';
  }

  if (hash && hash.charAt(0) !== '#') hash = '#' + hash;
  if (search && search.charAt(0) !== '?') search = '?' + search;

  pathname = pathname.replace(/[?#]/g, function(match) {
    return encodeURIComponent(match);
  });
  search = search.replace('#', '%23');

  return protocol + host + pathname + search + hash;
};

function urlResolve(source, relative) {
  return urlParse(source, false, true).resolve(relative);
}

Url.prototype.resolve = function(relative) {
  return this.resolveObject(urlParse(relative, false, true)).format();
};

function urlResolveObject(source, relative) {
  if (!source) return relative;
  return urlParse(source, false, true).resolveObject(relative);
}

Url.prototype.resolveObject = function(relative) {
  if (util.isString(relative)) {
    var rel = new Url();
    rel.parse(relative, false, true);
    relative = rel;
  }

  var result = new Url();
  var tkeys = Object.keys(this);
  for (var tk = 0; tk < tkeys.length; tk++) {
    var tkey = tkeys[tk];
    result[tkey] = this[tkey];
  }

  // hash is always overridden, no matter what.
  // even href="" will remove it.
  result.hash = relative.hash;

  // if the relative url is empty, then there's nothing left to do here.
  if (relative.href === '') {
    result.href = result.format();
    return result;
  }

  // hrefs like //foo/bar always cut to the protocol.
  if (relative.slashes && !relative.protocol) {
    // take everything except the protocol from relative
    var rkeys = Object.keys(relative);
    for (var rk = 0; rk < rkeys.length; rk++) {
      var rkey = rkeys[rk];
      if (rkey !== 'protocol')
        result[rkey] = relative[rkey];
    }

    //urlParse appends trailing / to urls like http://www.example.com
    if (slashedProtocol[result.protocol] &&
        result.hostname && !result.pathname) {
      result.path = result.pathname = '/';
    }

    result.href = result.format();
    return result;
  }

  if (relative.protocol && relative.protocol !== result.protocol) {
    // if it's a known url protocol, then changing
    // the protocol does weird things
    // first, if it's not file:, then we MUST have a host,
    // and if there was a path
    // to begin with, then we MUST have a path.
    // if it is file:, then the host is dropped,
    // because that's known to be hostless.
    // anything else is assumed to be absolute.
    if (!slashedProtocol[relative.protocol]) {
      var keys = Object.keys(relative);
      for (var v = 0; v < keys.length; v++) {
        var k = keys[v];
        result[k] = relative[k];
      }
      result.href = result.format();
      return result;
    }

    result.protocol = relative.protocol;
    if (!relative.host && !hostlessProtocol[relative.protocol]) {
      var relPath = (relative.pathname || '').split('/');
      while (relPath.length && !(relative.host = relPath.shift()));
      if (!relative.host) relative.host = '';
      if (!relative.hostname) relative.hostname = '';
      if (relPath[0] !== '') relPath.unshift('');
      if (relPath.length < 2) relPath.unshift('');
      result.pathname = relPath.join('/');
    } else {
      result.pathname = relative.pathname;
    }
    result.search = relative.search;
    result.query = relative.query;
    result.host = relative.host || '';
    result.auth = relative.auth;
    result.hostname = relative.hostname || relative.host;
    result.port = relative.port;
    // to support http.request
    if (result.pathname || result.search) {
      var p = result.pathname || '';
      var s = result.search || '';
      result.path = p + s;
    }
    result.slashes = result.slashes || relative.slashes;
    result.href = result.format();
    return result;
  }

  var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),
      isRelAbs = (
          relative.host ||
          relative.pathname && relative.pathname.charAt(0) === '/'
      ),
      mustEndAbs = (isRelAbs || isSourceAbs ||
                    (result.host && relative.pathname)),
      removeAllDots = mustEndAbs,
      srcPath = result.pathname && result.pathname.split('/') || [],
      relPath = relative.pathname && relative.pathname.split('/') || [],
      psychotic = result.protocol && !slashedProtocol[result.protocol];

  // if the url is a non-slashed url, then relative
  // links like ../.. should be able
  // to crawl up to the hostname, as well.  This is strange.
  // result.protocol has already been set by now.
  // Later on, put the first path part into the host field.
  if (psychotic) {
    result.hostname = '';
    result.port = null;
    if (result.host) {
      if (srcPath[0] === '') srcPath[0] = result.host;
      else srcPath.unshift(result.host);
    }
    result.host = '';
    if (relative.protocol) {
      relative.hostname = null;
      relative.port = null;
      if (relative.host) {
        if (relPath[0] === '') relPath[0] = relative.host;
        else relPath.unshift(relative.host);
      }
      relative.host = null;
    }
    mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');
  }

  if (isRelAbs) {
    // it's absolute.
    result.host = (relative.host || relative.host === '') ?
                  relative.host : result.host;
    result.hostname = (relative.hostname || relative.hostname === '') ?
                      relative.hostname : result.hostname;
    result.search = relative.search;
    result.query = relative.query;
    srcPath = relPath;
    // fall through to the dot-handling below.
  } else if (relPath.length) {
    // it's relative
    // throw away the existing file, and take the new path instead.
    if (!srcPath) srcPath = [];
    srcPath.pop();
    srcPath = srcPath.concat(relPath);
    result.search = relative.search;
    result.query = relative.query;
  } else if (!util.isNullOrUndefined(relative.search)) {
    // just pull out the search.
    // like href='?foo'.
    // Put this after the other two cases because it simplifies the booleans
    if (psychotic) {
      result.hostname = result.host = srcPath.shift();
      //occationaly the auth can get stuck only in host
      //this especially happens in cases like
      //url.resolveObject('mailto:local1@domain1', 'local2@domain2')
      var authInHost = result.host && result.host.indexOf('@') > 0 ?
                       result.host.split('@') : false;
      if (authInHost) {
        result.auth = authInHost.shift();
        result.host = result.hostname = authInHost.shift();
      }
    }
    result.search = relative.search;
    result.query = relative.query;
    //to support http.request
    if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
      result.path = (result.pathname ? result.pathname : '') +
                    (result.search ? result.search : '');
    }
    result.href = result.format();
    return result;
  }

  if (!srcPath.length) {
    // no path at all.  easy.
    // we've already handled the other stuff above.
    result.pathname = null;
    //to support http.request
    if (result.search) {
      result.path = '/' + result.search;
    } else {
      result.path = null;
    }
    result.href = result.format();
    return result;
  }

  // if a url ENDs in . or .., then it must get a trailing slash.
  // however, if it ends in anything else non-slashy,
  // then it must NOT get a trailing slash.
  var last = srcPath.slice(-1)[0];
  var hasTrailingSlash = (
      (result.host || relative.host || srcPath.length > 1) &&
      (last === '.' || last === '..') || last === '');

  // strip single dots, resolve double dots to parent dir
  // if the path tries to go above the root, `up` ends up > 0
  var up = 0;
  for (var i = srcPath.length; i >= 0; i--) {
    last = srcPath[i];
    if (last === '.') {
      srcPath.splice(i, 1);
    } else if (last === '..') {
      srcPath.splice(i, 1);
      up++;
    } else if (up) {
      srcPath.splice(i, 1);
      up--;
    }
  }

  // if the path is allowed to go above the root, restore leading ..s
  if (!mustEndAbs && !removeAllDots) {
    for (; up--; up) {
      srcPath.unshift('..');
    }
  }

  if (mustEndAbs && srcPath[0] !== '' &&
      (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
    srcPath.unshift('');
  }

  if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {
    srcPath.push('');
  }

  var isAbsolute = srcPath[0] === '' ||
      (srcPath[0] && srcPath[0].charAt(0) === '/');

  // put the host back
  if (psychotic) {
    result.hostname = result.host = isAbsolute ? '' :
                                    srcPath.length ? srcPath.shift() : '';
    //occationaly the auth can get stuck only in host
    //this especially happens in cases like
    //url.resolveObject('mailto:local1@domain1', 'local2@domain2')
    var authInHost = result.host && result.host.indexOf('@') > 0 ?
                     result.host.split('@') : false;
    if (authInHost) {
      result.auth = authInHost.shift();
      result.host = result.hostname = authInHost.shift();
    }
  }

  mustEndAbs = mustEndAbs || (result.host && srcPath.length);

  if (mustEndAbs && !isAbsolute) {
    srcPath.unshift('');
  }

  if (!srcPath.length) {
    result.pathname = null;
    result.path = null;
  } else {
    result.pathname = srcPath.join('/');
  }

  //to support request.http
  if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
    result.path = (result.pathname ? result.pathname : '') +
                  (result.search ? result.search : '');
  }
  result.auth = relative.auth || result.auth;
  result.slashes = result.slashes || relative.slashes;
  result.href = result.format();
  return result;
};

Url.prototype.parseHost = function() {
  var host = this.host;
  var port = portPattern.exec(host);
  if (port) {
    port = port[0];
    if (port !== ':') {
      this.port = port.substr(1);
    }
    host = host.substr(0, host.length - port.length);
  }
  if (host) this.hostname = host;
};

},{"./util":40,"punycode":13,"querystring":16}],40:[function(require,module,exports){
'use strict';

module.exports = {
  isString: function(arg) {
    return typeof(arg) === 'string';
  },
  isObject: function(arg) {
    return typeof(arg) === 'object' && arg !== null;
  },
  isNull: function(arg) {
    return arg === null;
  },
  isNullOrUndefined: function(arg) {
    return arg == null;
  }
};

},{}],41:[function(require,module,exports){
(function (global){

/**
 * Module exports.
 */

module.exports = deprecate;

/**
 * Mark that a method should not be used.
 * Returns a modified function which warns once by default.
 *
 * If `localStorage.noDeprecation = true` is set, then it is a no-op.
 *
 * If `localStorage.throwDeprecation = true` is set, then deprecated functions
 * will throw an Error when invoked.
 *
 * If `localStorage.traceDeprecation = true` is set, then deprecated functions
 * will invoke `console.trace()` instead of `console.error()`.
 *
 * @param {Function} fn - the function to deprecate
 * @param {String} msg - the string to print to the console when `fn` is invoked
 * @returns {Function} a new "deprecated" version of `fn`
 * @api public
 */

function deprecate (fn, msg) {
  if (config('noDeprecation')) {
    return fn;
  }

  var warned = false;
  function deprecated() {
    if (!warned) {
      if (config('throwDeprecation')) {
        throw new Error(msg);
      } else if (config('traceDeprecation')) {
        console.trace(msg);
      } else {
        console.warn(msg);
      }
      warned = true;
    }
    return fn.apply(this, arguments);
  }

  return deprecated;
}

/**
 * Checks `localStorage` for boolean values for the given `name`.
 *
 * @param {String} name
 * @returns {Boolean}
 * @api private
 */

function config (name) {
  // accessing global.localStorage can trigger a DOMException in sandboxed iframes
  try {
    if (!global.localStorage) return false;
  } catch (_) {
    return false;
  }
  var val = global.localStorage[name];
  if (null == val) return false;
  return String(val).toLowerCase() === 'true';
}

}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],42:[function(require,module,exports){
module.exports = extend

var hasOwnProperty = Object.prototype.hasOwnProperty;

function extend() {
    var target = {}

    for (var i = 0; i < arguments.length; i++) {
        var source = arguments[i]

        for (var key in source) {
            if (hasOwnProperty.call(source, key)) {
                target[key] = source[key]
            }
        }
    }

    return target
}

},{}],43:[function(require,module,exports){
let amfParser = require('parser');

window.onload = async function () {
    try {
        const url = document.getElementById('specurl').value;
        const type = document.getElementById('spectype').value;
        let data = await amfParser.amfParse(type, url);
        const apic = document.getElementById('api-console-app');
        apic.amf = JSON.parse(data);
        apic.selectedShape = 'summary';
        apic.selectedShapeType = 'summary';
    } catch (ex) {
        window.alert('Unable to parse AMF model ' + ex.toString());
    }
}
},{"parser":90}],44:[function(require,module,exports){
'use strict';

var compileSchema = require('./compile')
  , resolve = require('./compile/resolve')
  , Cache = require('./cache')
  , SchemaObject = require('./compile/schema_obj')
  , stableStringify = require('fast-json-stable-stringify')
  , formats = require('./compile/formats')
  , rules = require('./compile/rules')
  , $dataMetaSchema = require('./data')
  , util = require('./compile/util');

module.exports = Ajv;

Ajv.prototype.validate = validate;
Ajv.prototype.compile = compile;
Ajv.prototype.addSchema = addSchema;
Ajv.prototype.addMetaSchema = addMetaSchema;
Ajv.prototype.validateSchema = validateSchema;
Ajv.prototype.getSchema = getSchema;
Ajv.prototype.removeSchema = removeSchema;
Ajv.prototype.addFormat = addFormat;
Ajv.prototype.errorsText = errorsText;

Ajv.prototype._addSchema = _addSchema;
Ajv.prototype._compile = _compile;

Ajv.prototype.compileAsync = require('./compile/async');
var customKeyword = require('./keyword');
Ajv.prototype.addKeyword = customKeyword.add;
Ajv.prototype.getKeyword = customKeyword.get;
Ajv.prototype.removeKeyword = customKeyword.remove;

var errorClasses = require('./compile/error_classes');
Ajv.ValidationError = errorClasses.Validation;
Ajv.MissingRefError = errorClasses.MissingRef;
Ajv.$dataMetaSchema = $dataMetaSchema;

var META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema';

var META_IGNORE_OPTIONS = [ 'removeAdditional', 'useDefaults', 'coerceTypes' ];
var META_SUPPORT_DATA = ['/properties'];

/**
 * Creates validator instance.
 * Usage: `Ajv(opts)`
 * @param {Object} opts optional options
 * @return {Object} ajv instance
 */
function Ajv(opts) {
  if (!(this instanceof Ajv)) return new Ajv(opts);
  opts = this._opts = util.copy(opts) || {};
  setLogger(this);
  this._schemas = {};
  this._refs = {};
  this._fragments = {};
  this._formats = formats(opts.format);
  var schemaUriFormat = this._schemaUriFormat = this._formats['uri-reference'];
  this._schemaUriFormatFunc = function (str) { return schemaUriFormat.test(str); };

  this._cache = opts.cache || new Cache;
  this._loadingSchemas = {};
  this._compilations = [];
  this.RULES = rules();
  this._getId = chooseGetId(opts);

  opts.loopRequired = opts.loopRequired || Infinity;
  if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true;
  if (opts.serialize === undefined) opts.serialize = stableStringify;
  this._metaOpts = getMetaSchemaOptions(this);

  if (opts.formats) addInitialFormats(this);
  addDraft6MetaSchema(this);
  if (typeof opts.meta == 'object') this.addMetaSchema(opts.meta);
  addInitialSchemas(this);
}



/**
 * Validate data using schema
 * Schema will be compiled and cached (using serialized JSON as key. [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize.
 * @this   Ajv
 * @param  {String|Object} schemaKeyRef key, ref or schema object
 * @param  {Any} data to be validated
 * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`).
 */
function validate(schemaKeyRef, data) {
  var v;
  if (typeof schemaKeyRef == 'string') {
    v = this.getSchema(schemaKeyRef);
    if (!v) throw new Error('no schema with key or ref "' + schemaKeyRef + '"');
  } else {
    var schemaObj = this._addSchema(schemaKeyRef);
    v = schemaObj.validate || this._compile(schemaObj);
  }

  var valid = v(data);
  if (v.$async !== true) this.errors = v.errors;
  return valid;
}


/**
 * Create validating function for passed schema.
 * @this   Ajv
 * @param  {Object} schema schema object
 * @param  {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords.
 * @return {Function} validating function
 */
function compile(schema, _meta) {
  var schemaObj = this._addSchema(schema, undefined, _meta);
  return schemaObj.validate || this._compile(schemaObj);
}


/**
 * Adds schema to the instance.
 * @this   Ajv
 * @param {Object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored.
 * @param {String} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.
 * @param {Boolean} _skipValidation true to skip schema validation. Used internally, option validateSchema should be used instead.
 * @param {Boolean} _meta true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.
 * @return {Ajv} this for method chaining
 */
function addSchema(schema, key, _skipValidation, _meta) {
  if (Array.isArray(schema)){
    for (var i=0; i<schema.length; i++) this.addSchema(schema[i], undefined, _skipValidation, _meta);
    return this;
  }
  var id = this._getId(schema);
  if (id !== undefined && typeof id != 'string')
    throw new Error('schema id must be string');
  key = resolve.normalizeId(key || id);
  checkUnique(this, key);
  this._schemas[key] = this._addSchema(schema, _skipValidation, _meta, true);
  return this;
}


/**
 * Add schema that will be used to validate other schemas
 * options in META_IGNORE_OPTIONS are alway set to false
 * @this   Ajv
 * @param {Object} schema schema object
 * @param {String} key optional schema key
 * @param {Boolean} skipValidation true to skip schema validation, can be used to override validateSchema option for meta-schema
 * @return {Ajv} this for method chaining
 */
function addMetaSchema(schema, key, skipValidation) {
  this.addSchema(schema, key, skipValidation, true);
  return this;
}


/**
 * Validate schema
 * @this   Ajv
 * @param {Object} schema schema to validate
 * @param {Boolean} throwOrLogError pass true to throw (or log) an error if invalid
 * @return {Boolean} true if schema is valid
 */
function validateSchema(schema, throwOrLogError) {
  var $schema = schema.$schema;
  if ($schema !== undefined && typeof $schema != 'string')
    throw new Error('$schema must be a string');
  $schema = $schema || this._opts.defaultMeta || defaultMeta(this);
  if (!$schema) {
    this.logger.warn('meta-schema not available');
    this.errors = null;
    return true;
  }
  var currentUriFormat = this._formats.uri;
  this._formats.uri = typeof currentUriFormat == 'function'
                      ? this._schemaUriFormatFunc
                      : this._schemaUriFormat;
  var valid;
  try { valid = this.validate($schema, schema); }
  finally { this._formats.uri = currentUriFormat; }
  if (!valid && throwOrLogError) {
    var message = 'schema is invalid: ' + this.errorsText();
    if (this._opts.validateSchema == 'log') this.logger.error(message);
    else throw new Error(message);
  }
  return valid;
}


function defaultMeta(self) {
  var meta = self._opts.meta;
  self._opts.defaultMeta = typeof meta == 'object'
                            ? self._getId(meta) || meta
                            : self.getSchema(META_SCHEMA_ID)
                              ? META_SCHEMA_ID
                              : undefined;
  return self._opts.defaultMeta;
}


/**
 * Get compiled schema from the instance by `key` or `ref`.
 * @this   Ajv
 * @param  {String} keyRef `key` that was passed to `addSchema` or full schema reference (`schema.id` or resolved id).
 * @return {Function} schema validating function (with property `schema`).
 */
function getSchema(keyRef) {
  var schemaObj = _getSchemaObj(this, keyRef);
  switch (typeof schemaObj) {
    case 'object': return schemaObj.validate || this._compile(schemaObj);
    case 'string': return this.getSchema(schemaObj);
    case 'undefined': return _getSchemaFragment(this, keyRef);
  }
}


function _getSchemaFragment(self, ref) {
  var res = resolve.schema.call(self, { schema: {} }, ref);
  if (res) {
    var schema = res.schema
      , root = res.root
      , baseId = res.baseId;
    var v = compileSchema.call(self, schema, root, undefined, baseId);
    self._fragments[ref] = new SchemaObject({
      ref: ref,
      fragment: true,
      schema: schema,
      root: root,
      baseId: baseId,
      validate: v
    });
    return v;
  }
}


function _getSchemaObj(self, keyRef) {
  keyRef = resolve.normalizeId(keyRef);
  return self._schemas[keyRef] || self._refs[keyRef] || self._fragments[keyRef];
}


/**
 * Remove cached schema(s).
 * If no parameter is passed all schemas but meta-schemas are removed.
 * If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.
 * Even if schema is referenced by other schemas it still can be removed as other schemas have local references.
 * @this   Ajv
 * @param  {String|Object|RegExp} schemaKeyRef key, ref, pattern to match key/ref or schema object
 * @return {Ajv} this for method chaining
 */
function removeSchema(schemaKeyRef) {
  if (schemaKeyRef instanceof RegExp) {
    _removeAllSchemas(this, this._schemas, schemaKeyRef);
    _removeAllSchemas(this, this._refs, schemaKeyRef);
    return this;
  }
  switch (typeof schemaKeyRef) {
    case 'undefined':
      _removeAllSchemas(this, this._schemas);
      _removeAllSchemas(this, this._refs);
      this._cache.clear();
      return this;
    case 'string':
      var schemaObj = _getSchemaObj(this, schemaKeyRef);
      if (schemaObj) this._cache.del(schemaObj.cacheKey);
      delete this._schemas[schemaKeyRef];
      delete this._refs[schemaKeyRef];
      return this;
    case 'object':
      var serialize = this._opts.serialize;
      var cacheKey = serialize ? serialize(schemaKeyRef) : schemaKeyRef;
      this._cache.del(cacheKey);
      var id = this._getId(schemaKeyRef);
      if (id) {
        id = resolve.normalizeId(id);
        delete this._schemas[id];
        delete this._refs[id];
      }
  }
  return this;
}


function _removeAllSchemas(self, schemas, regex) {
  for (var keyRef in schemas) {
    var schemaObj = schemas[keyRef];
    if (!schemaObj.meta && (!regex || regex.test(keyRef))) {
      self._cache.del(schemaObj.cacheKey);
      delete schemas[keyRef];
    }
  }
}


/* @this   Ajv */
function _addSchema(schema, skipValidation, meta, shouldAddSchema) {
  if (typeof schema != 'object' && typeof schema != 'boolean')
    throw new Error('schema should be object or boolean');
  var serialize = this._opts.serialize;
  var cacheKey = serialize ? serialize(schema) : schema;
  var cached = this._cache.get(cacheKey);
  if (cached) return cached;

  shouldAddSchema = shouldAddSchema || this._opts.addUsedSchema !== false;

  var id = resolve.normalizeId(this._getId(schema));
  if (id && shouldAddSchema) checkUnique(this, id);

  var willValidate = this._opts.validateSchema !== false && !skipValidation;
  var recursiveMeta;
  if (willValidate && !(recursiveMeta = id && id == resolve.normalizeId(schema.$schema)))
    this.validateSchema(schema, true);

  var localRefs = resolve.ids.call(this, schema);

  var schemaObj = new SchemaObject({
    id: id,
    schema: schema,
    localRefs: localRefs,
    cacheKey: cacheKey,
    meta: meta
  });

  if (id[0] != '#' && shouldAddSchema) this._refs[id] = schemaObj;
  this._cache.put(cacheKey, schemaObj);

  if (willValidate && recursiveMeta) this.validateSchema(schema, true);

  return schemaObj;
}


/* @this   Ajv */
function _compile(schemaObj, root) {
  if (schemaObj.compiling) {
    schemaObj.validate = callValidate;
    callValidate.schema = schemaObj.schema;
    callValidate.errors = null;
    callValidate.root = root ? root : callValidate;
    if (schemaObj.schema.$async === true)
      callValidate.$async = true;
    return callValidate;
  }
  schemaObj.compiling = true;

  var currentOpts;
  if (schemaObj.meta) {
    currentOpts = this._opts;
    this._opts = this._metaOpts;
  }

  var v;
  try { v = compileSchema.call(this, schemaObj.schema, root, schemaObj.localRefs); }
  catch(e) {
    delete schemaObj.validate;
    throw e;
  }
  finally {
    schemaObj.compiling = false;
    if (schemaObj.meta) this._opts = currentOpts;
  }

  schemaObj.validate = v;
  schemaObj.refs = v.refs;
  schemaObj.refVal = v.refVal;
  schemaObj.root = v.root;
  return v;


  /* @this   {*} - custom context, see passContext option */
  function callValidate() {
    /* jshint validthis: true */
    var _validate = schemaObj.validate;
    var result = _validate.apply(this, arguments);
    callValidate.errors = _validate.errors;
    return result;
  }
}


function chooseGetId(opts) {
  switch (opts.schemaId) {
    case 'auto': return _get$IdOrId;
    case 'id': return _getId;
    default: return _get$Id;
  }
}

/* @this   Ajv */
function _getId(schema) {
  if (schema.$id) this.logger.warn('schema $id ignored', schema.$id);
  return schema.id;
}

/* @this   Ajv */
function _get$Id(schema) {
  if (schema.id) this.logger.warn('schema id ignored', schema.id);
  return schema.$id;
}


function _get$IdOrId(schema) {
  if (schema.$id && schema.id && schema.$id != schema.id)
    throw new Error('schema $id is different from id');
  return schema.$id || schema.id;
}


/**
 * Convert array of error message objects to string
 * @this   Ajv
 * @param  {Array<Object>} errors optional array of validation errors, if not passed errors from the instance are used.
 * @param  {Object} options optional options with properties `separator` and `dataVar`.
 * @return {String} human readable string with all errors descriptions
 */
function errorsText(errors, options) {
  errors = errors || this.errors;
  if (!errors) return 'No errors';
  options = options || {};
  var separator = options.separator === undefined ? ', ' : options.separator;
  var dataVar = options.dataVar === undefined ? 'data' : options.dataVar;

  var text = '';
  for (var i=0; i<errors.length; i++) {
    var e = errors[i];
    if (e) text += dataVar + e.dataPath + ' ' + e.message + separator;
  }
  return text.slice(0, -separator.length);
}


/**
 * Add custom format
 * @this   Ajv
 * @param {String} name format name
 * @param {String|RegExp|Function} format string is converted to RegExp; function should return boolean (true when valid)
 * @return {Ajv} this for method chaining
 */
function addFormat(name, format) {
  if (typeof format == 'string') format = new RegExp(format);
  this._formats[name] = format;
  return this;
}


function addDraft6MetaSchema(self) {
  var $dataSchema;
  if (self._opts.$data) {
    $dataSchema = require('./refs/data.json');
    self.addMetaSchema($dataSchema, $dataSchema.$id, true);
  }
  if (self._opts.meta === false) return;
  var metaSchema = require('./refs/json-schema-draft-07.json');
  if (self._opts.$data) metaSchema = $dataMetaSchema(metaSchema, META_SUPPORT_DATA);
  self.addMetaSchema(metaSchema, META_SCHEMA_ID, true);
  self._refs['http://json-schema.org/schema'] = META_SCHEMA_ID;
}


function addInitialSchemas(self) {
  var optsSchemas = self._opts.schemas;
  if (!optsSchemas) return;
  if (Array.isArray(optsSchemas)) self.addSchema(optsSchemas);
  else for (var key in optsSchemas) self.addSchema(optsSchemas[key], key);
}


function addInitialFormats(self) {
  for (var name in self._opts.formats) {
    var format = self._opts.formats[name];
    self.addFormat(name, format);
  }
}


function checkUnique(self, id) {
  if (self._schemas[id] || self._refs[id])
    throw new Error('schema with key or id "' + id + '" already exists');
}


function getMetaSchemaOptions(self) {
  var metaOpts = util.copy(self._opts);
  for (var i=0; i<META_IGNORE_OPTIONS.length; i++)
    delete metaOpts[META_IGNORE_OPTIONS[i]];
  return metaOpts;
}


function setLogger(self) {
  var logger = self._opts.logger;
  if (logger === false) {
    self.logger = {log: noop, warn: noop, error: noop};
  } else {
    if (logger === undefined) logger = console;
    if (!(typeof logger == 'object' && logger.log && logger.warn && logger.error))
      throw new Error('logger must implement log, warn and error methods');
    self.logger = logger;
  }
}


function noop() {}

},{"./cache":45,"./compile":49,"./compile/async":46,"./compile/error_classes":47,"./compile/formats":48,"./compile/resolve":50,"./compile/rules":51,"./compile/schema_obj":52,"./compile/util":54,"./data":55,"./keyword":82,"./refs/data.json":83,"./refs/json-schema-draft-07.json":84,"fast-json-stable-stringify":88}],45:[function(require,module,exports){
'use strict';


var Cache = module.exports = function Cache() {
  this._cache = {};
};


Cache.prototype.put = function Cache_put(key, value) {
  this._cache[key] = value;
};


Cache.prototype.get = function Cache_get(key) {
  return this._cache[key];
};


Cache.prototype.del = function Cache_del(key) {
  delete this._cache[key];
};


Cache.prototype.clear = function Cache_clear() {
  this._cache = {};
};

},{}],46:[function(require,module,exports){
'use strict';

var MissingRefError = require('./error_classes').MissingRef;

module.exports = compileAsync;


/**
 * Creates validating function for passed schema with asynchronous loading of missing schemas.
 * `loadSchema` option should be a function that accepts schema uri and returns promise that resolves with the schema.
 * @this  Ajv
 * @param {Object}   schema schema object
 * @param {Boolean}  meta optional true to compile meta-schema; this parameter can be skipped
 * @param {Function} callback an optional node-style callback, it is called with 2 parameters: error (or null) and validating function.
 * @return {Promise} promise that resolves with a validating function.
 */
function compileAsync(schema, meta, callback) {
  /* eslint no-shadow: 0 */
  /* global Promise */
  /* jshint validthis: true */
  var self = this;
  if (typeof this._opts.loadSchema != 'function')
    throw new Error('options.loadSchema should be a function');

  if (typeof meta == 'function') {
    callback = meta;
    meta = undefined;
  }

  var p = loadMetaSchemaOf(schema).then(function () {
    var schemaObj = self._addSchema(schema, undefined, meta);
    return schemaObj.validate || _compileAsync(schemaObj);
  });

  if (callback) {
    p.then(
      function(v) { callback(null, v); },
      callback
    );
  }

  return p;


  function loadMetaSchemaOf(sch) {
    var $schema = sch.$schema;
    return $schema && !self.getSchema($schema)
            ? compileAsync.call(self, { $ref: $schema }, true)
            : Promise.resolve();
  }


  function _compileAsync(schemaObj) {
    try { return self._compile(schemaObj); }
    catch(e) {
      if (e instanceof MissingRefError) return loadMissingSchema(e);
      throw e;
    }


    function loadMissingSchema(e) {
      var ref = e.missingSchema;
      if (added(ref)) throw new Error('Schema ' + ref + ' is loaded but ' + e.missingRef + ' cannot be resolved');

      var schemaPromise = self._loadingSchemas[ref];
      if (!schemaPromise) {
        schemaPromise = self._loadingSchemas[ref] = self._opts.loadSchema(ref);
        schemaPromise.then(removePromise, removePromise);
      }

      return schemaPromise.then(function (sch) {
        if (!added(ref)) {
          return loadMetaSchemaOf(sch).then(function () {
            if (!added(ref)) self.addSchema(sch, ref, undefined, meta);
          });
        }
      }).then(function() {
        return _compileAsync(schemaObj);
      });

      function removePromise() {
        delete self._loadingSchemas[ref];
      }

      function added(ref) {
        return self._refs[ref] || self._schemas[ref];
      }
    }
  }
}

},{"./error_classes":47}],47:[function(require,module,exports){
'use strict';

var resolve = require('./resolve');

module.exports = {
  Validation: errorSubclass(ValidationError),
  MissingRef: errorSubclass(MissingRefError)
};


function ValidationError(errors) {
  this.message = 'validation failed';
  this.errors = errors;
  this.ajv = this.validation = true;
}


MissingRefError.message = function (baseId, ref) {
  return 'can\'t resolve reference ' + ref + ' from id ' + baseId;
};


function MissingRefError(baseId, ref, message) {
  this.message = message || MissingRefError.message(baseId, ref);
  this.missingRef = resolve.url(baseId, ref);
  this.missingSchema = resolve.normalizeId(resolve.fullPath(this.missingRef));
}


function errorSubclass(Subclass) {
  Subclass.prototype = Object.create(Error.prototype);
  Subclass.prototype.constructor = Subclass;
  return Subclass;
}

},{"./resolve":50}],48:[function(require,module,exports){
'use strict';

var util = require('./util');

var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
var DAYS = [0,31,28,31,30,31,30,31,31,30,31,30,31];
var TIME = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d:\d\d)?$/i;
var HOSTNAME = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*$/i;
var URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
var URIREF = /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
// uri-template: https://tools.ietf.org/html/rfc6570
var URITEMPLATE = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;
// For the source: https://gist.github.com/dperini/729294
// For test cases: https://mathiasbynens.be/demo/url-regex
// @todo Delete current URL in favour of the commented out URL rule when this issue is fixed https://github.com/eslint/eslint/issues/7983.
// var URL = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;
var URL = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;
var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;


module.exports = formats;

function formats(mode) {
  mode = mode == 'full' ? 'full' : 'fast';
  return util.copy(formats[mode]);
}


formats.fast = {
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
  date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/,
  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
  time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)?$/i,
  'date-time': /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d:\d\d)$/i,
  // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
  uri: /^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,
  'uri-reference': /^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
  'uri-template': URITEMPLATE,
  url: URL,
  // email (sources from jsen validator):
  // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363
  // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation')
  email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,
  hostname: HOSTNAME,
  // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html
  ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
  // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses
  ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,
  regex: regex,
  // uuid: http://tools.ietf.org/html/rfc4122
  uuid: UUID,
  // JSON-pointer: https://tools.ietf.org/html/rfc6901
  // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
  'json-pointer': JSON_POINTER,
  'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,
  // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
  'relative-json-pointer': RELATIVE_JSON_POINTER
};


formats.full = {
  date: date,
  time: time,
  'date-time': date_time,
  uri: uri,
  'uri-reference': URIREF,
  'uri-template': URITEMPLATE,
  url: URL,
  email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&''*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,
  hostname: hostname,
  ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
  ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,
  regex: regex,
  uuid: UUID,
  'json-pointer': JSON_POINTER,
  'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,
  'relative-json-pointer': RELATIVE_JSON_POINTER
};


function isLeapYear(year) {
  // https://tools.ietf.org/html/rfc3339#appendix-C
  return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
}


function date(str) {
  // full-date from http://tools.ietf.org/html/rfc3339#section-5.6
  var matches = str.match(DATE);
  if (!matches) return false;

  var year = +matches[1];
  var month = +matches[2];
  var day = +matches[3];

  return month >= 1 && month <= 12 && day >= 1 &&
          day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]);
}


function time(str, full) {
  var matches = str.match(TIME);
  if (!matches) return false;

  var hour = matches[1];
  var minute = matches[2];
  var second = matches[3];
  var timeZone = matches[5];
  return ((hour <= 23 && minute <= 59 && second <= 59) ||
          (hour == 23 && minute == 59 && second == 60)) &&
         (!full || timeZone);
}


var DATE_TIME_SEPARATOR = /t|\s/i;
function date_time(str) {
  // http://tools.ietf.org/html/rfc3339#section-5.6
  var dateTime = str.split(DATE_TIME_SEPARATOR);
  return dateTime.length == 2 && date(dateTime[0]) && time(dateTime[1], true);
}


function hostname(str) {
  // https://tools.ietf.org/html/rfc1034#section-3.5
  // https://tools.ietf.org/html/rfc1123#section-2
  return str.length <= 255 && HOSTNAME.test(str);
}


var NOT_URI_FRAGMENT = /\/|:/;
function uri(str) {
  // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required "."
  return NOT_URI_FRAGMENT.test(str) && URI.test(str);
}


var Z_ANCHOR = /[^\\]\\Z/;
function regex(str) {
  if (Z_ANCHOR.test(str)) return false;
  try {
    new RegExp(str);
    return true;
  } catch(e) {
    return false;
  }
}

},{"./util":54}],49:[function(require,module,exports){
'use strict';

var resolve = require('./resolve')
  , util = require('./util')
  , errorClasses = require('./error_classes')
  , stableStringify = require('fast-json-stable-stringify');

var validateGenerator = require('../dotjs/validate');

/**
 * Functions below are used inside compiled validations function
 */

var ucs2length = util.ucs2length;
var equal = require('fast-deep-equal');

// this error is thrown by async schemas to return validation errors via exception
var ValidationError = errorClasses.Validation;

module.exports = compile;


/**
 * Compiles schema to validation function
 * @this   Ajv
 * @param  {Object} schema schema object
 * @param  {Object} root object with information about the root schema for this schema
 * @param  {Object} localRefs the hash of local references inside the schema (created by resolve.id), used for inline resolution
 * @param  {String} baseId base ID for IDs in the schema
 * @return {Function} validation function
 */
function compile(schema, root, localRefs, baseId) {
  /* jshint validthis: true, evil: true */
  /* eslint no-shadow: 0 */
  var self = this
    , opts = this._opts
    , refVal = [ undefined ]
    , refs = {}
    , patterns = []
    , patternsHash = {}
    , defaults = []
    , defaultsHash = {}
    , customRules = [];

  root = root || { schema: schema, refVal: refVal, refs: refs };

  var c = checkCompiling.call(this, schema, root, baseId);
  var compilation = this._compilations[c.index];
  if (c.compiling) return (compilation.callValidate = callValidate);

  var formats = this._formats;
  var RULES = this.RULES;

  try {
    var v = localCompile(schema, root, localRefs, baseId);
    compilation.validate = v;
    var cv = compilation.callValidate;
    if (cv) {
      cv.schema = v.schema;
      cv.errors = null;
      cv.refs = v.refs;
      cv.refVal = v.refVal;
      cv.root = v.root;
      cv.$async = v.$async;
      if (opts.sourceCode) cv.source = v.source;
    }
    return v;
  } finally {
    endCompiling.call(this, schema, root, baseId);
  }

  /* @this   {*} - custom context, see passContext option */
  function callValidate() {
    /* jshint validthis: true */
    var validate = compilation.validate;
    var result = validate.apply(this, arguments);
    callValidate.errors = validate.errors;
    return result;
  }

  function localCompile(_schema, _root, localRefs, baseId) {
    var isRoot = !_root || (_root && _root.schema == _schema);
    if (_root.schema != root.schema)
      return compile.call(self, _schema, _root, localRefs, baseId);

    var $async = _schema.$async === true;

    var sourceCode = validateGenerator({
      isTop: true,
      schema: _schema,
      isRoot: isRoot,
      baseId: baseId,
      root: _root,
      schemaPath: '',
      errSchemaPath: '#',
      errorPath: '""',
      MissingRefError: errorClasses.MissingRef,
      RULES: RULES,
      validate: validateGenerator,
      util: util,
      resolve: resolve,
      resolveRef: resolveRef,
      usePattern: usePattern,
      useDefault: useDefault,
      useCustomRule: useCustomRule,
      opts: opts,
      formats: formats,
      logger: self.logger,
      self: self
    });

    sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode)
                   + vars(defaults, defaultCode) + vars(customRules, customRuleCode)
                   + sourceCode;

    if (opts.processCode) sourceCode = opts.processCode(sourceCode);
    // console.log('\n\n\n *** \n', JSON.stringify(sourceCode));
    var validate;
    try {
      var makeValidate = new Function(
        'self',
        'RULES',
        'formats',
        'root',
        'refVal',
        'defaults',
        'customRules',
        'equal',
        'ucs2length',
        'ValidationError',
        sourceCode
      );

      validate = makeValidate(
        self,
        RULES,
        formats,
        root,
        refVal,
        defaults,
        customRules,
        equal,
        ucs2length,
        ValidationError
      );

      refVal[0] = validate;
    } catch(e) {
      self.logger.error('Error compiling schema, function code:', sourceCode);
      throw e;
    }

    validate.schema = _schema;
    validate.errors = null;
    validate.refs = refs;
    validate.refVal = refVal;
    validate.root = isRoot ? validate : _root;
    if ($async) validate.$async = true;
    if (opts.sourceCode === true) {
      validate.source = {
        code: sourceCode,
        patterns: patterns,
        defaults: defaults
      };
    }

    return validate;
  }

  function resolveRef(baseId, ref, isRoot) {
    ref = resolve.url(baseId, ref);
    var refIndex = refs[ref];
    var _refVal, refCode;
    if (refIndex !== undefined) {
      _refVal = refVal[refIndex];
      refCode = 'refVal[' + refIndex + ']';
      return resolvedRef(_refVal, refCode);
    }
    if (!isRoot && root.refs) {
      var rootRefId = root.refs[ref];
      if (rootRefId !== undefined) {
        _refVal = root.refVal[rootRefId];
        refCode = addLocalRef(ref, _refVal);
        return resolvedRef(_refVal, refCode);
      }
    }

    refCode = addLocalRef(ref);
    var v = resolve.call(self, localCompile, root, ref);
    if (v === undefined) {
      var localSchema = localRefs && localRefs[ref];
      if (localSchema) {
        v = resolve.inlineRef(localSchema, opts.inlineRefs)
            ? localSchema
            : compile.call(self, localSchema, root, localRefs, baseId);
      }
    }

    if (v === undefined) {
      removeLocalRef(ref);
    } else {
      replaceLocalRef(ref, v);
      return resolvedRef(v, refCode);
    }
  }

  function addLocalRef(ref, v) {
    var refId = refVal.length;
    refVal[refId] = v;
    refs[ref] = refId;
    return 'refVal' + refId;
  }

  function removeLocalRef(ref) {
    delete refs[ref];
  }

  function replaceLocalRef(ref, v) {
    var refId = refs[ref];
    refVal[refId] = v;
  }

  function resolvedRef(refVal, code) {
    return typeof refVal == 'object' || typeof refVal == 'boolean'
            ? { code: code, schema: refVal, inline: true }
            : { code: code, $async: refVal && !!refVal.$async };
  }

  function usePattern(regexStr) {
    var index = patternsHash[regexStr];
    if (index === undefined) {
      index = patternsHash[regexStr] = patterns.length;
      patterns[index] = regexStr;
    }
    return 'pattern' + index;
  }

  function useDefault(value) {
    switch (typeof value) {
      case 'boolean':
      case 'number':
        return '' + value;
      case 'string':
        return util.toQuotedString(value);
      case 'object':
        if (value === null) return 'null';
        var valueStr = stableStringify(value);
        var index = defaultsHash[valueStr];
        if (index === undefined) {
          index = defaultsHash[valueStr] = defaults.length;
          defaults[index] = value;
        }
        return 'default' + index;
    }
  }

  function useCustomRule(rule, schema, parentSchema, it) {
    var validateSchema = rule.definition.validateSchema;
    if (validateSchema && self._opts.validateSchema !== false) {
      var valid = validateSchema(schema);
      if (!valid) {
        var message = 'keyword schema is invalid: ' + self.errorsText(validateSchema.errors);
        if (self._opts.validateSchema == 'log') self.logger.error(message);
        else throw new Error(message);
      }
    }

    var compile = rule.definition.compile
      , inline = rule.definition.inline
      , macro = rule.definition.macro;

    var validate;
    if (compile) {
      validate = compile.call(self, schema, parentSchema, it);
    } else if (macro) {
      validate = macro.call(self, schema, parentSchema, it);
      if (opts.validateSchema !== false) self.validateSchema(validate, true);
    } else if (inline) {
      validate = inline.call(self, it, rule.keyword, schema, parentSchema);
    } else {
      validate = rule.definition.validate;
      if (!validate) return;
    }

    if (validate === undefined)
      throw new Error('custom keyword "' + rule.keyword + '"failed to compile');

    var index = customRules.length;
    customRules[index] = validate;

    return {
      code: 'customRule' + index,
      validate: validate
    };
  }
}


/**
 * Checks if the schema is currently compiled
 * @this   Ajv
 * @param  {Object} schema schema to compile
 * @param  {Object} root root object
 * @param  {String} baseId base schema ID
 * @return {Object} object with properties "index" (compilation index) and "compiling" (boolean)
 */
function checkCompiling(schema, root, baseId) {
  /* jshint validthis: true */
  var index = compIndex.call(this, schema, root, baseId);
  if (index >= 0) return { index: index, compiling: true };
  index = this._compilations.length;
  this._compilations[index] = {
    schema: schema,
    root: root,
    baseId: baseId
  };
  return { index: index, compiling: false };
}


/**
 * Removes the schema from the currently compiled list
 * @this   Ajv
 * @param  {Object} schema schema to compile
 * @param  {Object} root root object
 * @param  {String} baseId base schema ID
 */
function endCompiling(schema, root, baseId) {
  /* jshint validthis: true */
  var i = compIndex.call(this, schema, root, baseId);
  if (i >= 0) this._compilations.splice(i, 1);
}


/**
 * Index of schema compilation in the currently compiled list
 * @this   Ajv
 * @param  {Object} schema schema to compile
 * @param  {Object} root root object
 * @param  {String} baseId base schema ID
 * @return {Integer} compilation index
 */
function compIndex(schema, root, baseId) {
  /* jshint validthis: true */
  for (var i=0; i<this._compilations.length; i++) {
    var c = this._compilations[i];
    if (c.schema == schema && c.root == root && c.baseId == baseId) return i;
  }
  return -1;
}


function patternCode(i, patterns) {
  return 'var pattern' + i + ' = new RegExp(' + util.toQuotedString(patterns[i]) + ');';
}


function defaultCode(i) {
  return 'var default' + i + ' = defaults[' + i + '];';
}


function refValCode(i, refVal) {
  return refVal[i] === undefined ? '' : 'var refVal' + i + ' = refVal[' + i + '];';
}


function customRuleCode(i) {
  return 'var customRule' + i + ' = customRules[' + i + '];';
}


function vars(arr, statement) {
  if (!arr.length) return '';
  var code = '';
  for (var i=0; i<arr.length; i++)
    code += statement(i, arr);
  return code;
}

},{"../dotjs/validate":81,"./error_classes":47,"./resolve":50,"./util":54,"fast-deep-equal":87,"fast-json-stable-stringify":88}],50:[function(require,module,exports){
'use strict';

var URI = require('uri-js')
  , equal = require('fast-deep-equal')
  , util = require('./util')
  , SchemaObject = require('./schema_obj')
  , traverse = require('json-schema-traverse');

module.exports = resolve;

resolve.normalizeId = normalizeId;
resolve.fullPath = getFullPath;
resolve.url = resolveUrl;
resolve.ids = resolveIds;
resolve.inlineRef = inlineRef;
resolve.schema = resolveSchema;

/**
 * [resolve and compile the references ($ref)]
 * @this   Ajv
 * @param  {Function} compile reference to schema compilation funciton (localCompile)
 * @param  {Object} root object with information about the root schema for the current schema
 * @param  {String} ref reference to resolve
 * @return {Object|Function} schema object (if the schema can be inlined) or validation function
 */
function resolve(compile, root, ref) {
  /* jshint validthis: true */
  var refVal = this._refs[ref];
  if (typeof refVal == 'string') {
    if (this._refs[refVal]) refVal = this._refs[refVal];
    else return resolve.call(this, compile, root, refVal);
  }

  refVal = refVal || this._schemas[ref];
  if (refVal instanceof SchemaObject) {
    return inlineRef(refVal.schema, this._opts.inlineRefs)
            ? refVal.schema
            : refVal.validate || this._compile(refVal);
  }

  var res = resolveSchema.call(this, root, ref);
  var schema, v, baseId;
  if (res) {
    schema = res.schema;
    root = res.root;
    baseId = res.baseId;
  }

  if (schema instanceof SchemaObject) {
    v = schema.validate || compile.call(this, schema.schema, root, undefined, baseId);
  } else if (schema !== undefined) {
    v = inlineRef(schema, this._opts.inlineRefs)
        ? schema
        : compile.call(this, schema, root, undefined, baseId);
  }

  return v;
}


/**
 * Resolve schema, its root and baseId
 * @this Ajv
 * @param  {Object} root root object with properties schema, refVal, refs
 * @param  {String} ref  reference to resolve
 * @return {Object} object with properties schema, root, baseId
 */
function resolveSchema(root, ref) {
  /* jshint validthis: true */
  var p = URI.parse(ref)
    , refPath = _getFullPath(p)
    , baseId = getFullPath(this._getId(root.schema));
  if (Object.keys(root.schema).length === 0 || refPath !== baseId) {
    var id = normalizeId(refPath);
    var refVal = this._refs[id];
    if (typeof refVal == 'string') {
      return resolveRecursive.call(this, root, refVal, p);
    } else if (refVal instanceof SchemaObject) {
      if (!refVal.validate) this._compile(refVal);
      root = refVal;
    } else {
      refVal = this._schemas[id];
      if (refVal instanceof SchemaObject) {
        if (!refVal.validate) this._compile(refVal);
        if (id == normalizeId(ref))
          return { schema: refVal, root: root, baseId: baseId };
        root = refVal;
      } else {
        return;
      }
    }
    if (!root.schema) return;
    baseId = getFullPath(this._getId(root.schema));
  }
  return getJsonPointer.call(this, p, baseId, root.schema, root);
}


/* @this Ajv */
function resolveRecursive(root, ref, parsedRef) {
  /* jshint validthis: true */
  var res = resolveSchema.call(this, root, ref);
  if (res) {
    var schema = res.schema;
    var baseId = res.baseId;
    root = res.root;
    var id = this._getId(schema);
    if (id) baseId = resolveUrl(baseId, id);
    return getJsonPointer.call(this, parsedRef, baseId, schema, root);
  }
}


var PREVENT_SCOPE_CHANGE = util.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);
/* @this Ajv */
function getJsonPointer(parsedRef, baseId, schema, root) {
  /* jshint validthis: true */
  parsedRef.fragment = parsedRef.fragment || '';
  if (parsedRef.fragment.slice(0,1) != '/') return;
  var parts = parsedRef.fragment.split('/');

  for (var i = 1; i < parts.length; i++) {
    var part = parts[i];
    if (part) {
      part = util.unescapeFragment(part);
      schema = schema[part];
      if (schema === undefined) break;
      var id;
      if (!PREVENT_SCOPE_CHANGE[part]) {
        id = this._getId(schema);
        if (id) baseId = resolveUrl(baseId, id);
        if (schema.$ref) {
          var $ref = resolveUrl(baseId, schema.$ref);
          var res = resolveSchema.call(this, root, $ref);
          if (res) {
            schema = res.schema;
            root = res.root;
            baseId = res.baseId;
          }
        }
      }
    }
  }
  if (schema !== undefined && schema !== root.schema)
    return { schema: schema, root: root, baseId: baseId };
}


var SIMPLE_INLINED = util.toHash([
  'type', 'format', 'pattern',
  'maxLength', 'minLength',
  'maxProperties', 'minProperties',
  'maxItems', 'minItems',
  'maximum', 'minimum',
  'uniqueItems', 'multipleOf',
  'required', 'enum'
]);
function inlineRef(schema, limit) {
  if (limit === false) return false;
  if (limit === undefined || limit === true) return checkNoRef(schema);
  else if (limit) return countKeys(schema) <= limit;
}


function checkNoRef(schema) {
  var item;
  if (Array.isArray(schema)) {
    for (var i=0; i<schema.length; i++) {
      item = schema[i];
      if (typeof item == 'object' && !checkNoRef(item)) return false;
    }
  } else {
    for (var key in schema) {
      if (key == '$ref') return false;
      item = schema[key];
      if (typeof item == 'object' && !checkNoRef(item)) return false;
    }
  }
  return true;
}


function countKeys(schema) {
  var count = 0, item;
  if (Array.isArray(schema)) {
    for (var i=0; i<schema.length; i++) {
      item = schema[i];
      if (typeof item == 'object') count += countKeys(item);
      if (count == Infinity) return Infinity;
    }
  } else {
    for (var key in schema) {
      if (key == '$ref') return Infinity;
      if (SIMPLE_INLINED[key]) {
        count++;
      } else {
        item = schema[key];
        if (typeof item == 'object') count += countKeys(item) + 1;
        if (count == Infinity) return Infinity;
      }
    }
  }
  return count;
}


function getFullPath(id, normalize) {
  if (normalize !== false) id = normalizeId(id);
  var p = URI.parse(id);
  return _getFullPath(p);
}


function _getFullPath(p) {
  return URI.serialize(p).split('#')[0] + '#';
}


var TRAILING_SLASH_HASH = /#\/?$/;
function normalizeId(id) {
  return id ? id.replace(TRAILING_SLASH_HASH, '') : '';
}


function resolveUrl(baseId, id) {
  id = normalizeId(id);
  return URI.resolve(baseId, id);
}


/* @this Ajv */
function resolveIds(schema) {
  var schemaId = normalizeId(this._getId(schema));
  var baseIds = {'': schemaId};
  var fullPaths = {'': getFullPath(schemaId, false)};
  var localRefs = {};
  var self = this;

  traverse(schema, {allKeys: true}, function(sch, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
    if (jsonPtr === '') return;
    var id = self._getId(sch);
    var baseId = baseIds[parentJsonPtr];
    var fullPath = fullPaths[parentJsonPtr] + '/' + parentKeyword;
    if (keyIndex !== undefined)
      fullPath += '/' + (typeof keyIndex == 'number' ? keyIndex : util.escapeFragment(keyIndex));

    if (typeof id == 'string') {
      id = baseId = normalizeId(baseId ? URI.resolve(baseId, id) : id);

      var refVal = self._refs[id];
      if (typeof refVal == 'string') refVal = self._refs[refVal];
      if (refVal && refVal.schema) {
        if (!equal(sch, refVal.schema))
          throw new Error('id "' + id + '" resolves to more than one schema');
      } else if (id != normalizeId(fullPath)) {
        if (id[0] == '#') {
          if (localRefs[id] && !equal(sch, localRefs[id]))
            throw new Error('id "' + id + '" resolves to more than one schema');
          localRefs[id] = sch;
        } else {
          self._refs[id] = fullPath;
        }
      }
    }
    baseIds[jsonPtr] = baseId;
    fullPaths[jsonPtr] = fullPath;
  });

  return localRefs;
}

},{"./schema_obj":52,"./util":54,"fast-deep-equal":87,"json-schema-traverse":89,"uri-js":91}],51:[function(require,module,exports){
'use strict';

var ruleModules = require('../dotjs')
  , toHash = require('./util').toHash;

module.exports = function rules() {
  var RULES = [
    { type: 'number',
      rules: [ { 'maximum': ['exclusiveMaximum'] },
               { 'minimum': ['exclusiveMinimum'] }, 'multipleOf', 'format'] },
    { type: 'string',
      rules: [ 'maxLength', 'minLength', 'pattern', 'format' ] },
    { type: 'array',
      rules: [ 'maxItems', 'minItems', 'items', 'contains', 'uniqueItems' ] },
    { type: 'object',
      rules: [ 'maxProperties', 'minProperties', 'required', 'dependencies', 'propertyNames',
               { 'properties': ['additionalProperties', 'patternProperties'] } ] },
    { rules: [ '$ref', 'const', 'enum', 'not', 'anyOf', 'oneOf', 'allOf', 'if' ] }
  ];

  var ALL = [ 'type', '$comment' ];
  var KEYWORDS = [
    '$schema', '$id', 'id', '$data', 'title',
    'description', 'default', 'definitions',
    'examples', 'readOnly', 'writeOnly',
    'contentMediaType', 'contentEncoding',
    'additionalItems', 'then', 'else'
  ];
  var TYPES = [ 'number', 'integer', 'string', 'array', 'object', 'boolean', 'null' ];
  RULES.all = toHash(ALL);
  RULES.types = toHash(TYPES);

  RULES.forEach(function (group) {
    group.rules = group.rules.map(function (keyword) {
      var implKeywords;
      if (typeof keyword == 'object') {
        var key = Object.keys(keyword)[0];
        implKeywords = keyword[key];
        keyword = key;
        implKeywords.forEach(function (k) {
          ALL.push(k);
          RULES.all[k] = true;
        });
      }
      ALL.push(keyword);
      var rule = RULES.all[keyword] = {
        keyword: keyword,
        code: ruleModules[keyword],
        implements: implKeywords
      };
      return rule;
    });

    RULES.all.$comment = {
      keyword: '$comment',
      code: ruleModules.$comment
    };

    if (group.type) RULES.types[group.type] = group;
  });

  RULES.keywords = toHash(ALL.concat(KEYWORDS));
  RULES.custom = {};

  return RULES;
};

},{"../dotjs":70,"./util":54}],52:[function(require,module,exports){
'use strict';

var util = require('./util');

module.exports = SchemaObject;

function SchemaObject(obj) {
  util.copy(obj, this);
}

},{"./util":54}],53:[function(require,module,exports){
'use strict';

// https://mathiasbynens.be/notes/javascript-encoding
// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode
module.exports = function ucs2length(str) {
  var length = 0
    , len = str.length
    , pos = 0
    , value;
  while (pos < len) {
    length++;
    value = str.charCodeAt(pos++);
    if (value >= 0xD800 && value <= 0xDBFF && pos < len) {
      // high surrogate, and there is a next character
      value = str.charCodeAt(pos);
      if ((value & 0xFC00) == 0xDC00) pos++; // low surrogate
    }
  }
  return length;
};

},{}],54:[function(require,module,exports){
'use strict';


module.exports = {
  copy: copy,
  checkDataType: checkDataType,
  checkDataTypes: checkDataTypes,
  coerceToTypes: coerceToTypes,
  toHash: toHash,
  getProperty: getProperty,
  escapeQuotes: escapeQuotes,
  equal: require('fast-deep-equal'),
  ucs2length: require('./ucs2length'),
  varOccurences: varOccurences,
  varReplace: varReplace,
  cleanUpCode: cleanUpCode,
  finalCleanUpCode: finalCleanUpCode,
  schemaHasRules: schemaHasRules,
  schemaHasRulesExcept: schemaHasRulesExcept,
  toQuotedString: toQuotedString,
  getPathExpr: getPathExpr,
  getPath: getPath,
  getData: getData,
  unescapeFragment: unescapeFragment,
  unescapeJsonPointer: unescapeJsonPointer,
  escapeFragment: escapeFragment,
  escapeJsonPointer: escapeJsonPointer
};


function copy(o, to) {
  to = to || {};
  for (var key in o) to[key] = o[key];
  return to;
}


function checkDataType(dataType, data, negate) {
  var EQUAL = negate ? ' !== ' : ' === '
    , AND = negate ? ' || ' : ' && '
    , OK = negate ? '!' : ''
    , NOT = negate ? '' : '!';
  switch (dataType) {
    case 'null': return data + EQUAL + 'null';
    case 'array': return OK + 'Array.isArray(' + data + ')';
    case 'object': return '(' + OK + data + AND +
                          'typeof ' + data + EQUAL + '"object"' + AND +
                          NOT + 'Array.isArray(' + data + '))';
    case 'integer': return '(typeof ' + data + EQUAL + '"number"' + AND +
                           NOT + '(' + data + ' % 1)' +
                           AND + data + EQUAL + data + ')';
    default: return 'typeof ' + data + EQUAL + '"' + dataType + '"';
  }
}


function checkDataTypes(dataTypes, data) {
  switch (dataTypes.length) {
    case 1: return checkDataType(dataTypes[0], data, true);
    default:
      var code = '';
      var types = toHash(dataTypes);
      if (types.array && types.object) {
        code = types.null ? '(': '(!' + data + ' || ';
        code += 'typeof ' + data + ' !== "object")';
        delete types.null;
        delete types.array;
        delete types.object;
      }
      if (types.number) delete types.integer;
      for (var t in types)
        code += (code ? ' && ' : '' ) + checkDataType(t, data, true);

      return code;
  }
}


var COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]);
function coerceToTypes(optionCoerceTypes, dataTypes) {
  if (Array.isArray(dataTypes)) {
    var types = [];
    for (var i=0; i<dataTypes.length; i++) {
      var t = dataTypes[i];
      if (COERCE_TO_TYPES[t]) types[types.length] = t;
      else if (optionCoerceTypes === 'array' && t === 'array') types[types.length] = t;
    }
    if (types.length) return types;
  } else if (COERCE_TO_TYPES[dataTypes]) {
    return [dataTypes];
  } else if (optionCoerceTypes === 'array' && dataTypes === 'array') {
    return ['array'];
  }
}


function toHash(arr) {
  var hash = {};
  for (var i=0; i<arr.length; i++) hash[arr[i]] = true;
  return hash;
}


var IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
var SINGLE_QUOTE = /'|\\/g;
function getProperty(key) {
  return typeof key == 'number'
          ? '[' + key + ']'
          : IDENTIFIER.test(key)
            ? '.' + key
            : "['" + escapeQuotes(key) + "']";
}


function escapeQuotes(str) {
  return str.replace(SINGLE_QUOTE, '\\$&')
            .replace(/\n/g, '\\n')
            .replace(/\r/g, '\\r')
            .replace(/\f/g, '\\f')
            .replace(/\t/g, '\\t');
}


function varOccurences(str, dataVar) {
  dataVar += '[^0-9]';
  var matches = str.match(new RegExp(dataVar, 'g'));
  return matches ? matches.length : 0;
}


function varReplace(str, dataVar, expr) {
  dataVar += '([^0-9])';
  expr = expr.replace(/\$/g, '$$$$');
  return str.replace(new RegExp(dataVar, 'g'), expr + '$1');
}


var EMPTY_ELSE = /else\s*{\s*}/g
  , EMPTY_IF_NO_ELSE = /if\s*\([^)]+\)\s*\{\s*\}(?!\s*else)/g
  , EMPTY_IF_WITH_ELSE = /if\s*\(([^)]+)\)\s*\{\s*\}\s*else(?!\s*if)/g;
function cleanUpCode(out) {
  return out.replace(EMPTY_ELSE, '')
            .replace(EMPTY_IF_NO_ELSE, '')
            .replace(EMPTY_IF_WITH_ELSE, 'if (!($1))');
}


var ERRORS_REGEXP = /[^v.]errors/g
  , REMOVE_ERRORS = /var errors = 0;|var vErrors = null;|validate.errors = vErrors;/g
  , REMOVE_ERRORS_ASYNC = /var errors = 0;|var vErrors = null;/g
  , RETURN_VALID = 'return errors === 0;'
  , RETURN_TRUE = 'validate.errors = null; return true;'
  , RETURN_ASYNC = /if \(errors === 0\) return data;\s*else throw new ValidationError\(vErrors\);/
  , RETURN_DATA_ASYNC = 'return data;'
  , ROOTDATA_REGEXP = /[^A-Za-z_$]rootData[^A-Za-z0-9_$]/g
  , REMOVE_ROOTDATA = /if \(rootData === undefined\) rootData = data;/;

function finalCleanUpCode(out, async) {
  var matches = out.match(ERRORS_REGEXP);
  if (matches && matches.length == 2) {
    out = async
          ? out.replace(REMOVE_ERRORS_ASYNC, '')
               .replace(RETURN_ASYNC, RETURN_DATA_ASYNC)
          : out.replace(REMOVE_ERRORS, '')
               .replace(RETURN_VALID, RETURN_TRUE);
  }

  matches = out.match(ROOTDATA_REGEXP);
  if (!matches || matches.length !== 3) return out;
  return out.replace(REMOVE_ROOTDATA, '');
}


function schemaHasRules(schema, rules) {
  if (typeof schema == 'boolean') return !schema;
  for (var key in schema) if (rules[key]) return true;
}


function schemaHasRulesExcept(schema, rules, exceptKeyword) {
  if (typeof schema == 'boolean') return !schema && exceptKeyword != 'not';
  for (var key in schema) if (key != exceptKeyword && rules[key]) return true;
}


function toQuotedString(str) {
  return '\'' + escapeQuotes(str) + '\'';
}


function getPathExpr(currentPath, expr, jsonPointers, isNumber) {
  var path = jsonPointers // false by default
              ? '\'/\' + ' + expr + (isNumber ? '' : '.replace(/~/g, \'~0\').replace(/\\//g, \'~1\')')
              : (isNumber ? '\'[\' + ' + expr + ' + \']\'' : '\'[\\\'\' + ' + expr + ' + \'\\\']\'');
  return joinPaths(currentPath, path);
}


function getPath(currentPath, prop, jsonPointers) {
  var path = jsonPointers // false by default
              ? toQuotedString('/' + escapeJsonPointer(prop))
              : toQuotedString(getProperty(prop));
  return joinPaths(currentPath, path);
}


var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
function getData($data, lvl, paths) {
  var up, jsonPointer, data, matches;
  if ($data === '') return 'rootData';
  if ($data[0] == '/') {
    if (!JSON_POINTER.test($data)) throw new Error('Invalid JSON-pointer: ' + $data);
    jsonPointer = $data;
    data = 'rootData';
  } else {
    matches = $data.match(RELATIVE_JSON_POINTER);
    if (!matches) throw new Error('Invalid JSON-pointer: ' + $data);
    up = +matches[1];
    jsonPointer = matches[2];
    if (jsonPointer == '#') {
      if (up >= lvl) throw new Error('Cannot access property/index ' + up + ' levels up, current level is ' + lvl);
      return paths[lvl - up];
    }

    if (up > lvl) throw new Error('Cannot access data ' + up + ' levels up, current level is ' + lvl);
    data = 'data' + ((lvl - up) || '');
    if (!jsonPointer) return data;
  }

  var expr = data;
  var segments = jsonPointer.split('/');
  for (var i=0; i<segments.length; i++) {
    var segment = segments[i];
    if (segment) {
      data += getProperty(unescapeJsonPointer(segment));
      expr += ' && ' + data;
    }
  }
  return expr;
}


function joinPaths (a, b) {
  if (a == '""') return b;
  return (a + ' + ' + b).replace(/' \+ '/g, '');
}


function unescapeFragment(str) {
  return unescapeJsonPointer(decodeURIComponent(str));
}


function escapeFragment(str) {
  return encodeURIComponent(escapeJsonPointer(str));
}


function escapeJsonPointer(str) {
  return str.replace(/~/g, '~0').replace(/\//g, '~1');
}


function unescapeJsonPointer(str) {
  return str.replace(/~1/g, '/').replace(/~0/g, '~');
}

},{"./ucs2length":53,"fast-deep-equal":87}],55:[function(require,module,exports){
'use strict';

var KEYWORDS = [
  'multipleOf',
  'maximum',
  'exclusiveMaximum',
  'minimum',
  'exclusiveMinimum',
  'maxLength',
  'minLength',
  'pattern',
  'additionalItems',
  'maxItems',
  'minItems',
  'uniqueItems',
  'maxProperties',
  'minProperties',
  'required',
  'additionalProperties',
  'enum',
  'format',
  'const'
];

module.exports = function (metaSchema, keywordsJsonPointers) {
  for (var i=0; i<keywordsJsonPointers.length; i++) {
    metaSchema = JSON.parse(JSON.stringify(metaSchema));
    var segments = keywordsJsonPointers[i].split('/');
    var keywords = metaSchema;
    var j;
    for (j=1; j<segments.length; j++)
      keywords = keywords[segments[j]];

    for (j=0; j<KEYWORDS.length; j++) {
      var key = KEYWORDS[j];
      var schema = keywords[key];
      if (schema) {
        keywords[key] = {
          anyOf: [
            schema,
            { $ref: 'https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#' }
          ]
        };
      }
    }
  }

  return metaSchema;
};

},{}],56:[function(require,module,exports){
'use strict';
module.exports = function generate__limit(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $errorKeyword;
  var $data = 'data' + ($dataLvl || '');
  var $isData = it.opts.$data && $schema && $schema.$data,
    $schemaValue;
  if ($isData) {
    out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
    $schemaValue = 'schema' + $lvl;
  } else {
    $schemaValue = $schema;
  }
  var $isMax = $keyword == 'maximum',
    $exclusiveKeyword = $isMax ? 'exclusiveMaximum' : 'exclusiveMinimum',
    $schemaExcl = it.schema[$exclusiveKeyword],
    $isDataExcl = it.opts.$data && $schemaExcl && $schemaExcl.$data,
    $op = $isMax ? '<' : '>',
    $notOp = $isMax ? '>' : '<',
    $errorKeyword = undefined;
  if ($isDataExcl) {
    var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr),
      $exclusive = 'exclusive' + $lvl,
      $exclType = 'exclType' + $lvl,
      $exclIsNumber = 'exclIsNumber' + $lvl,
      $opExpr = 'op' + $lvl,
      $opStr = '\' + ' + $opExpr + ' + \'';
    out += ' var schemaExcl' + ($lvl) + ' = ' + ($schemaValueExcl) + '; ';
    $schemaValueExcl = 'schemaExcl' + $lvl;
    out += ' var ' + ($exclusive) + '; var ' + ($exclType) + ' = typeof ' + ($schemaValueExcl) + '; if (' + ($exclType) + ' != \'boolean\' && ' + ($exclType) + ' != \'undefined\' && ' + ($exclType) + ' != \'number\') { ';
    var $errorKeyword = $exclusiveKeyword;
    var $$outStack = $$outStack || [];
    $$outStack.push(out);
    out = ''; /* istanbul ignore else */
    if (it.createErrors !== false) {
      out += ' { keyword: \'' + ($errorKeyword || '_exclusiveLimit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
      if (it.opts.messages !== false) {
        out += ' , message: \'' + ($exclusiveKeyword) + ' should be boolean\' ';
      }
      if (it.opts.verbose) {
        out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
      }
      out += ' } ';
    } else {
      out += ' {} ';
    }
    var __err = out;
    out = $$outStack.pop();
    if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
      if (it.async) {
        out += ' throw new ValidationError([' + (__err) + ']); ';
      } else {
        out += ' validate.errors = [' + (__err) + ']; return false; ';
      }
    } else {
      out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
    }
    out += ' } else if ( ';
    if ($isData) {
      out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
    }
    out += ' ' + ($exclType) + ' == \'number\' ? ( (' + ($exclusive) + ' = ' + ($schemaValue) + ' === undefined || ' + ($schemaValueExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ') ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValueExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) : ( (' + ($exclusive) + ' = ' + ($schemaValueExcl) + ' === true) ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValue) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { var op' + ($lvl) + ' = ' + ($exclusive) + ' ? \'' + ($op) + '\' : \'' + ($op) + '=\'; ';
    if ($schema === undefined) {
      $errorKeyword = $exclusiveKeyword;
      $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;
      $schemaValue = $schemaValueExcl;
      $isData = $isDataExcl;
    }
  } else {
    var $exclIsNumber = typeof $schemaExcl == 'number',
      $opStr = $op;
    if ($exclIsNumber && $isData) {
      var $opExpr = '\'' + $opStr + '\'';
      out += ' if ( ';
      if ($isData) {
        out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
      }
      out += ' ( ' + ($schemaValue) + ' === undefined || ' + ($schemaExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ' ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { ';
    } else {
      if ($exclIsNumber && $schema === undefined) {
        $exclusive = true;
        $errorKeyword = $exclusiveKeyword;
        $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;
        $schemaValue = $schemaExcl;
        $notOp += '=';
      } else {
        if ($exclIsNumber) $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema);
        if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) {
          $exclusive = true;
          $errorKeyword = $exclusiveKeyword;
          $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;
          $notOp += '=';
        } else {
          $exclusive = false;
          $opStr += '=';
        }
      }
      var $opExpr = '\'' + $opStr + '\'';
      out += ' if ( ';
      if ($isData) {
        out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
      }
      out += ' ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' || ' + ($data) + ' !== ' + ($data) + ') { ';
    }
  }
  $errorKeyword = $errorKeyword || $keyword;
  var $$outStack = $$outStack || [];
  $$outStack.push(out);
  out = ''; /* istanbul ignore else */
  if (it.createErrors !== false) {
    out += ' { keyword: \'' + ($errorKeyword || '_limit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { comparison: ' + ($opExpr) + ', limit: ' + ($schemaValue) + ', exclusive: ' + ($exclusive) + ' } ';
    if (it.opts.messages !== false) {
      out += ' , message: \'should be ' + ($opStr) + ' ';
      if ($isData) {
        out += '\' + ' + ($schemaValue);
      } else {
        out += '' + ($schemaValue) + '\'';
      }
    }
    if (it.opts.verbose) {
      out += ' , schema:  ';
      if ($isData) {
        out += 'validate.schema' + ($schemaPath);
      } else {
        out += '' + ($schema);
      }
      out += '         , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
    }
    out += ' } ';
  } else {
    out += ' {} ';
  }
  var __err = out;
  out = $$outStack.pop();
  if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
    if (it.async) {
      out += ' throw new ValidationError([' + (__err) + ']); ';
    } else {
      out += ' validate.errors = [' + (__err) + ']; return false; ';
    }
  } else {
    out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
  }
  out += ' } ';
  if ($breakOnError) {
    out += ' else { ';
  }
  return out;
}

},{}],57:[function(require,module,exports){
'use strict';
module.exports = function generate__limitItems(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $errorKeyword;
  var $data = 'data' + ($dataLvl || '');
  var $isData = it.opts.$data && $schema && $schema.$data,
    $schemaValue;
  if ($isData) {
    out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
    $schemaValue = 'schema' + $lvl;
  } else {
    $schemaValue = $schema;
  }
  var $op = $keyword == 'maxItems' ? '>' : '<';
  out += 'if ( ';
  if ($isData) {
    out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
  }
  out += ' ' + ($data) + '.length ' + ($op) + ' ' + ($schemaValue) + ') { ';
  var $errorKeyword = $keyword;
  var $$outStack = $$outStack || [];
  $$outStack.push(out);
  out = ''; /* istanbul ignore else */
  if (it.createErrors !== false) {
    out += ' { keyword: \'' + ($errorKeyword || '_limitItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';
    if (it.opts.messages !== false) {
      out += ' , message: \'should NOT have ';
      if ($keyword == 'maxItems') {
        out += 'more';
      } else {
        out += 'less';
      }
      out += ' than ';
      if ($isData) {
        out += '\' + ' + ($schemaValue) + ' + \'';
      } else {
        out += '' + ($schema);
      }
      out += ' items\' ';
    }
    if (it.opts.verbose) {
      out += ' , schema:  ';
      if ($isData) {
        out += 'validate.schema' + ($schemaPath);
      } else {
        out += '' + ($schema);
      }
      out += '         , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
    }
    out += ' } ';
  } else {
    out += ' {} ';
  }
  var __err = out;
  out = $$outStack.pop();
  if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
    if (it.async) {
      out += ' throw new ValidationError([' + (__err) + ']); ';
    } else {
      out += ' validate.errors = [' + (__err) + ']; return false; ';
    }
  } else {
    out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
  }
  out += '} ';
  if ($breakOnError) {
    out += ' else { ';
  }
  return out;
}

},{}],58:[function(require,module,exports){
'use strict';
module.exports = function generate__limitLength(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $errorKeyword;
  var $data = 'data' + ($dataLvl || '');
  var $isData = it.opts.$data && $schema && $schema.$data,
    $schemaValue;
  if ($isData) {
    out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
    $schemaValue = 'schema' + $lvl;
  } else {
    $schemaValue = $schema;
  }
  var $op = $keyword == 'maxLength' ? '>' : '<';
  out += 'if ( ';
  if ($isData) {
    out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
  }
  if (it.opts.unicode === false) {
    out += ' ' + ($data) + '.length ';
  } else {
    out += ' ucs2length(' + ($data) + ') ';
  }
  out += ' ' + ($op) + ' ' + ($schemaValue) + ') { ';
  var $errorKeyword = $keyword;
  var $$outStack = $$outStack || [];
  $$outStack.push(out);
  out = ''; /* istanbul ignore else */
  if (it.createErrors !== false) {
    out += ' { keyword: \'' + ($errorKeyword || '_limitLength') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';
    if (it.opts.messages !== false) {
      out += ' , message: \'should NOT be ';
      if ($keyword == 'maxLength') {
        out += 'longer';
      } else {
        out += 'shorter';
      }
      out += ' than ';
      if ($isData) {
        out += '\' + ' + ($schemaValue) + ' + \'';
      } else {
        out += '' + ($schema);
      }
      out += ' characters\' ';
    }
    if (it.opts.verbose) {
      out += ' , schema:  ';
      if ($isData) {
        out += 'validate.schema' + ($schemaPath);
      } else {
        out += '' + ($schema);
      }
      out += '         , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
    }
    out += ' } ';
  } else {
    out += ' {} ';
  }
  var __err = out;
  out = $$outStack.pop();
  if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
    if (it.async) {
      out += ' throw new ValidationError([' + (__err) + ']); ';
    } else {
      out += ' validate.errors = [' + (__err) + ']; return false; ';
    }
  } else {
    out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
  }
  out += '} ';
  if ($breakOnError) {
    out += ' else { ';
  }
  return out;
}

},{}],59:[function(require,module,exports){
'use strict';
module.exports = function generate__limitProperties(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $errorKeyword;
  var $data = 'data' + ($dataLvl || '');
  var $isData = it.opts.$data && $schema && $schema.$data,
    $schemaValue;
  if ($isData) {
    out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
    $schemaValue = 'schema' + $lvl;
  } else {
    $schemaValue = $schema;
  }
  var $op = $keyword == 'maxProperties' ? '>' : '<';
  out += 'if ( ';
  if ($isData) {
    out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
  }
  out += ' Object.keys(' + ($data) + ').length ' + ($op) + ' ' + ($schemaValue) + ') { ';
  var $errorKeyword = $keyword;
  var $$outStack = $$outStack || [];
  $$outStack.push(out);
  out = ''; /* istanbul ignore else */
  if (it.createErrors !== false) {
    out += ' { keyword: \'' + ($errorKeyword || '_limitProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';
    if (it.opts.messages !== false) {
      out += ' , message: \'should NOT have ';
      if ($keyword == 'maxProperties') {
        out += 'more';
      } else {
        out += 'less';
      }
      out += ' than ';
      if ($isData) {
        out += '\' + ' + ($schemaValue) + ' + \'';
      } else {
        out += '' + ($schema);
      }
      out += ' properties\' ';
    }
    if (it.opts.verbose) {
      out += ' , schema:  ';
      if ($isData) {
        out += 'validate.schema' + ($schemaPath);
      } else {
        out += '' + ($schema);
      }
      out += '         , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
    }
    out += ' } ';
  } else {
    out += ' {} ';
  }
  var __err = out;
  out = $$outStack.pop();
  if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
    if (it.async) {
      out += ' throw new ValidationError([' + (__err) + ']); ';
    } else {
      out += ' validate.errors = [' + (__err) + ']; return false; ';
    }
  } else {
    out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
  }
  out += '} ';
  if ($breakOnError) {
    out += ' else { ';
  }
  return out;
}

},{}],60:[function(require,module,exports){
'use strict';
module.exports = function generate_allOf(it, $keyword, $ruleType) {
  var out = ' ';
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $it = it.util.copy(it);
  var $closingBraces = '';
  $it.level++;
  var $nextValid = 'valid' + $it.level;
  var $currentBaseId = $it.baseId,
    $allSchemasEmpty = true;
  var arr1 = $schema;
  if (arr1) {
    var $sch, $i = -1,
      l1 = arr1.length - 1;
    while ($i < l1) {
      $sch = arr1[$i += 1];
      if (it.util.schemaHasRules($sch, it.RULES.all)) {
        $allSchemasEmpty = false;
        $it.schema = $sch;
        $it.schemaPath = $schemaPath + '[' + $i + ']';
        $it.errSchemaPath = $errSchemaPath + '/' + $i;
        out += '  ' + (it.validate($it)) + ' ';
        $it.baseId = $currentBaseId;
        if ($breakOnError) {
          out += ' if (' + ($nextValid) + ') { ';
          $closingBraces += '}';
        }
      }
    }
  }
  if ($breakOnError) {
    if ($allSchemasEmpty) {
      out += ' if (true) { ';
    } else {
      out += ' ' + ($closingBraces.slice(0, -1)) + ' ';
    }
  }
  out = it.util.cleanUpCode(out);
  return out;
}

},{}],61:[function(require,module,exports){
'use strict';
module.exports = function generate_anyOf(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $valid = 'valid' + $lvl;
  var $errs = 'errs__' + $lvl;
  var $it = it.util.copy(it);
  var $closingBraces = '';
  $it.level++;
  var $nextValid = 'valid' + $it.level;
  var $noEmptySchema = $schema.every(function($sch) {
    return it.util.schemaHasRules($sch, it.RULES.all);
  });
  if ($noEmptySchema) {
    var $currentBaseId = $it.baseId;
    out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = false;  ';
    var $wasComposite = it.compositeRule;
    it.compositeRule = $it.compositeRule = true;
    var arr1 = $schema;
    if (arr1) {
      var $sch, $i = -1,
        l1 = arr1.length - 1;
      while ($i < l1) {
        $sch = arr1[$i += 1];
        $it.schema = $sch;
        $it.schemaPath = $schemaPath + '[' + $i + ']';
        $it.errSchemaPath = $errSchemaPath + '/' + $i;
        out += '  ' + (it.validate($it)) + ' ';
        $it.baseId = $currentBaseId;
        out += ' ' + ($valid) + ' = ' + ($valid) + ' || ' + ($nextValid) + '; if (!' + ($valid) + ') { ';
        $closingBraces += '}';
      }
    }
    it.compositeRule = $it.compositeRule = $wasComposite;
    out += ' ' + ($closingBraces) + ' if (!' + ($valid) + ') {   var err =   '; /* istanbul ignore else */
    if (it.createErrors !== false) {
      out += ' { keyword: \'' + ('anyOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
      if (it.opts.messages !== false) {
        out += ' , message: \'should match some schema in anyOf\' ';
      }
      if (it.opts.verbose) {
        out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
      }
      out += ' } ';
    } else {
      out += ' {} ';
    }
    out += ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
    if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
      if (it.async) {
        out += ' throw new ValidationError(vErrors); ';
      } else {
        out += ' validate.errors = vErrors; return false; ';
      }
    }
    out += ' } else {  errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';
    if (it.opts.allErrors) {
      out += ' } ';
    }
    out = it.util.cleanUpCode(out);
  } else {
    if ($breakOnError) {
      out += ' if (true) { ';
    }
  }
  return out;
}

},{}],62:[function(require,module,exports){
'use strict';
module.exports = function generate_comment(it, $keyword, $ruleType) {
  var out = ' ';
  var $schema = it.schema[$keyword];
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $comment = it.util.toQuotedString($schema);
  if (it.opts.$comment === true) {
    out += ' console.log(' + ($comment) + ');';
  } else if (typeof it.opts.$comment == 'function') {
    out += ' self._opts.$comment(' + ($comment) + ', ' + (it.util.toQuotedString($errSchemaPath)) + ', validate.root.schema);';
  }
  return out;
}

},{}],63:[function(require,module,exports){
'use strict';
module.exports = function generate_const(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $valid = 'valid' + $lvl;
  var $isData = it.opts.$data && $schema && $schema.$data,
    $schemaValue;
  if ($isData) {
    out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
    $schemaValue = 'schema' + $lvl;
  } else {
    $schemaValue = $schema;
  }
  if (!$isData) {
    out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + ';';
  }
  out += 'var ' + ($valid) + ' = equal(' + ($data) + ', schema' + ($lvl) + '); if (!' + ($valid) + ') {   ';
  var $$outStack = $$outStack || [];
  $$outStack.push(out);
  out = ''; /* istanbul ignore else */
  if (it.createErrors !== false) {
    out += ' { keyword: \'' + ('const') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValue: schema' + ($lvl) + ' } ';
    if (it.opts.messages !== false) {
      out += ' , message: \'should be equal to constant\' ';
    }
    if (it.opts.verbose) {
      out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
    }
    out += ' } ';
  } else {
    out += ' {} ';
  }
  var __err = out;
  out = $$outStack.pop();
  if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
    if (it.async) {
      out += ' throw new ValidationError([' + (__err) + ']); ';
    } else {
      out += ' validate.errors = [' + (__err) + ']; return false; ';
    }
  } else {
    out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
  }
  out += ' }';
  if ($breakOnError) {
    out += ' else { ';
  }
  return out;
}

},{}],64:[function(require,module,exports){
'use strict';
module.exports = function generate_contains(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $valid = 'valid' + $lvl;
  var $errs = 'errs__' + $lvl;
  var $it = it.util.copy(it);
  var $closingBraces = '';
  $it.level++;
  var $nextValid = 'valid' + $it.level;
  var $idx = 'i' + $lvl,
    $dataNxt = $it.dataLevel = it.dataLevel + 1,
    $nextData = 'data' + $dataNxt,
    $currentBaseId = it.baseId,
    $nonEmptySchema = it.util.schemaHasRules($schema, it.RULES.all);
  out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';
  if ($nonEmptySchema) {
    var $wasComposite = it.compositeRule;
    it.compositeRule = $it.compositeRule = true;
    $it.schema = $schema;
    $it.schemaPath = $schemaPath;
    $it.errSchemaPath = $errSchemaPath;
    out += ' var ' + ($nextValid) + ' = false; for (var ' + ($idx) + ' = 0; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';
    $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
    var $passData = $data + '[' + $idx + ']';
    $it.dataPathArr[$dataNxt] = $idx;
    var $code = it.validate($it);
    $it.baseId = $currentBaseId;
    if (it.util.varOccurences($code, $nextData) < 2) {
      out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
    } else {
      out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
    }
    out += ' if (' + ($nextValid) + ') break; }  ';
    it.compositeRule = $it.compositeRule = $wasComposite;
    out += ' ' + ($closingBraces) + ' if (!' + ($nextValid) + ') {';
  } else {
    out += ' if (' + ($data) + '.length == 0) {';
  }
  var $$outStack = $$outStack || [];
  $$outStack.push(out);
  out = ''; /* istanbul ignore else */
  if (it.createErrors !== false) {
    out += ' { keyword: \'' + ('contains') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
    if (it.opts.messages !== false) {
      out += ' , message: \'should contain a valid item\' ';
    }
    if (it.opts.verbose) {
      out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
    }
    out += ' } ';
  } else {
    out += ' {} ';
  }
  var __err = out;
  out = $$outStack.pop();
  if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
    if (it.async) {
      out += ' throw new ValidationError([' + (__err) + ']); ';
    } else {
      out += ' validate.errors = [' + (__err) + ']; return false; ';
    }
  } else {
    out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
  }
  out += ' } else { ';
  if ($nonEmptySchema) {
    out += '  errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';
  }
  if (it.opts.allErrors) {
    out += ' } ';
  }
  out = it.util.cleanUpCode(out);
  return out;
}

},{}],65:[function(require,module,exports){
'use strict';
module.exports = function generate_custom(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $errorKeyword;
  var $data = 'data' + ($dataLvl || '');
  var $valid = 'valid' + $lvl;
  var $errs = 'errs__' + $lvl;
  var $isData = it.opts.$data && $schema && $schema.$data,
    $schemaValue;
  if ($isData) {
    out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
    $schemaValue = 'schema' + $lvl;
  } else {
    $schemaValue = $schema;
  }
  var $rule = this,
    $definition = 'definition' + $lvl,
    $rDef = $rule.definition,
    $closingBraces = '';
  var $compile, $inline, $macro, $ruleValidate, $validateCode;
  if ($isData && $rDef.$data) {
    $validateCode = 'keywordValidate' + $lvl;
    var $validateSchema = $rDef.validateSchema;
    out += ' var ' + ($definition) + ' = RULES.custom[\'' + ($keyword) + '\'].definition; var ' + ($validateCode) + ' = ' + ($definition) + '.validate;';
  } else {
    $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it);
    if (!$ruleValidate) return;
    $schemaValue = 'validate.schema' + $schemaPath;
    $validateCode = $ruleValidate.code;
    $compile = $rDef.compile;
    $inline = $rDef.inline;
    $macro = $rDef.macro;
  }
  var $ruleErrs = $validateCode + '.errors',
    $i = 'i' + $lvl,
    $ruleErr = 'ruleErr' + $lvl,
    $asyncKeyword = $rDef.async;
  if ($asyncKeyword && !it.async) throw new Error('async keyword in sync schema');
  if (!($inline || $macro)) {
    out += '' + ($ruleErrs) + ' = null;';
  }
  out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';
  if ($isData && $rDef.$data) {
    $closingBraces += '}';
    out += ' if (' + ($schemaValue) + ' === undefined) { ' + ($valid) + ' = true; } else { ';
    if ($validateSchema) {
      $closingBraces += '}';
      out += ' ' + ($valid) + ' = ' + ($definition) + '.validateSchema(' + ($schemaValue) + '); if (' + ($valid) + ') { ';
    }
  }
  if ($inline) {
    if ($rDef.statements) {
      out += ' ' + ($ruleValidate.validate) + ' ';
    } else {
      out += ' ' + ($valid) + ' = ' + ($ruleValidate.validate) + '; ';
    }
  } else if ($macro) {
    var $it = it.util.copy(it);
    var $closingBraces = '';
    $it.level++;
    var $nextValid = 'valid' + $it.level;
    $it.schema = $ruleValidate.validate;
    $it.schemaPath = '';
    var $wasComposite = it.compositeRule;
    it.compositeRule = $it.compositeRule = true;
    var $code = it.validate($it).replace(/validate\.schema/g, $validateCode);
    it.compositeRule = $it.compositeRule = $wasComposite;
    out += ' ' + ($code);
  } else {
    var $$outStack = $$outStack || [];
    $$outStack.push(out);
    out = '';
    out += '  ' + ($validateCode) + '.call( ';
    if (it.opts.passContext) {
      out += 'this';
    } else {
      out += 'self';
    }
    if ($compile || $rDef.schema === false) {
      out += ' , ' + ($data) + ' ';
    } else {
      out += ' , ' + ($schemaValue) + ' , ' + ($data) + ' , validate.schema' + (it.schemaPath) + ' ';
    }
    out += ' , (dataPath || \'\')';
    if (it.errorPath != '""') {
      out += ' + ' + (it.errorPath);
    }
    var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',
      $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';
    out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ' , rootData )  ';
    var def_callRuleValidate = out;
    out = $$outStack.pop();
    if ($rDef.errors === false) {
      out += ' ' + ($valid) + ' = ';
      if ($asyncKeyword) {
        out += 'await ';
      }
      out += '' + (def_callRuleValidate) + '; ';
    } else {
      if ($asyncKeyword) {
        $ruleErrs = 'customErrors' + $lvl;
        out += ' var ' + ($ruleErrs) + ' = null; try { ' + ($valid) + ' = await ' + (def_callRuleValidate) + '; } catch (e) { ' + ($valid) + ' = false; if (e instanceof ValidationError) ' + ($ruleErrs) + ' = e.errors; else throw e; } ';
      } else {
        out += ' ' + ($ruleErrs) + ' = null; ' + ($valid) + ' = ' + (def_callRuleValidate) + '; ';
      }
    }
  }
  if ($rDef.modifying) {
    out += ' if (' + ($parentData) + ') ' + ($data) + ' = ' + ($parentData) + '[' + ($parentDataProperty) + '];';
  }
  out += '' + ($closingBraces);
  if ($rDef.valid) {
    if ($breakOnError) {
      out += ' if (true) { ';
    }
  } else {
    out += ' if ( ';
    if ($rDef.valid === undefined) {
      out += ' !';
      if ($macro) {
        out += '' + ($nextValid);
      } else {
        out += '' + ($valid);
      }
    } else {
      out += ' ' + (!$rDef.valid) + ' ';
    }
    out += ') { ';
    $errorKeyword = $rule.keyword;
    var $$outStack = $$outStack || [];
    $$outStack.push(out);
    out = '';
    var $$outStack = $$outStack || [];
    $$outStack.push(out);
    out = ''; /* istanbul ignore else */
    if (it.createErrors !== false) {
      out += ' { keyword: \'' + ($errorKeyword || 'custom') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \'' + ($rule.keyword) + '\' } ';
      if (it.opts.messages !== false) {
        out += ' , message: \'should pass "' + ($rule.keyword) + '" keyword validation\' ';
      }
      if (it.opts.verbose) {
        out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
      }
      out += ' } ';
    } else {
      out += ' {} ';
    }
    var __err = out;
    out = $$outStack.pop();
    if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
      if (it.async) {
        out += ' throw new ValidationError([' + (__err) + ']); ';
      } else {
        out += ' validate.errors = [' + (__err) + ']; return false; ';
      }
    } else {
      out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
    }
    var def_customError = out;
    out = $$outStack.pop();
    if ($inline) {
      if ($rDef.errors) {
        if ($rDef.errors != 'full') {
          out += '  for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \'\') + ' + (it.errorPath) + '; if (' + ($ruleErr) + '.schemaPath === undefined) { ' + ($ruleErr) + '.schemaPath = "' + ($errSchemaPath) + '"; } ';
          if (it.opts.verbose) {
            out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';
          }
          out += ' } ';
        }
      } else {
        if ($rDef.errors === false) {
          out += ' ' + (def_customError) + ' ';
        } else {
          out += ' if (' + ($errs) + ' == errors) { ' + (def_customError) + ' } else {  for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \'\') + ' + (it.errorPath) + '; if (' + ($ruleErr) + '.schemaPath === undefined) { ' + ($ruleErr) + '.schemaPath = "' + ($errSchemaPath) + '"; } ';
          if (it.opts.verbose) {
            out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';
          }
          out += ' } } ';
        }
      }
    } else if ($macro) {
      out += '   var err =   '; /* istanbul ignore else */
      if (it.createErrors !== false) {
        out += ' { keyword: \'' + ($errorKeyword || 'custom') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \'' + ($rule.keyword) + '\' } ';
        if (it.opts.messages !== false) {
          out += ' , message: \'should pass "' + ($rule.keyword) + '" keyword validation\' ';
        }
        if (it.opts.verbose) {
          out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
        }
        out += ' } ';
      } else {
        out += ' {} ';
      }
      out += ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
      if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
        if (it.async) {
          out += ' throw new ValidationError(vErrors); ';
        } else {
          out += ' validate.errors = vErrors; return false; ';
        }
      }
    } else {
      if ($rDef.errors === false) {
        out += ' ' + (def_customError) + ' ';
      } else {
        out += ' if (Array.isArray(' + ($ruleErrs) + ')) { if (vErrors === null) vErrors = ' + ($ruleErrs) + '; else vErrors = vErrors.concat(' + ($ruleErrs) + '); errors = vErrors.length;  for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \'\') + ' + (it.errorPath) + ';  ' + ($ruleErr) + '.schemaPath = "' + ($errSchemaPath) + '";  ';
        if (it.opts.verbose) {
          out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';
        }
        out += ' } } else { ' + (def_customError) + ' } ';
      }
    }
    out += ' } ';
    if ($breakOnError) {
      out += ' else { ';
    }
  }
  return out;
}

},{}],66:[function(require,module,exports){
'use strict';
module.exports = function generate_dependencies(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $errs = 'errs__' + $lvl;
  var $it = it.util.copy(it);
  var $closingBraces = '';
  $it.level++;
  var $nextValid = 'valid' + $it.level;
  var $schemaDeps = {},
    $propertyDeps = {},
    $ownProperties = it.opts.ownProperties;
  for ($property in $schema) {
    var $sch = $schema[$property];
    var $deps = Array.isArray($sch) ? $propertyDeps : $schemaDeps;
    $deps[$property] = $sch;
  }
  out += 'var ' + ($errs) + ' = errors;';
  var $currentErrorPath = it.errorPath;
  out += 'var missing' + ($lvl) + ';';
  for (var $property in $propertyDeps) {
    $deps = $propertyDeps[$property];
    if ($deps.length) {
      out += ' if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined ';
      if ($ownProperties) {
        out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($property)) + '\') ';
      }
      if ($breakOnError) {
        out += ' && ( ';
        var arr1 = $deps;
        if (arr1) {
          var $propertyKey, $i = -1,
            l1 = arr1.length - 1;
          while ($i < l1) {
            $propertyKey = arr1[$i += 1];
            if ($i) {
              out += ' || ';
            }
            var $prop = it.util.getProperty($propertyKey),
              $useData = $data + $prop;
            out += ' ( ( ' + ($useData) + ' === undefined ';
            if ($ownProperties) {
              out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
            }
            out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) ';
          }
        }
        out += ')) {  ';
        var $propertyPath = 'missing' + $lvl,
          $missingProperty = '\' + ' + $propertyPath + ' + \'';
        if (it.opts._errorDataPathProperty) {
          it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath;
        }
        var $$outStack = $$outStack || [];
        $$outStack.push(out);
        out = ''; /* istanbul ignore else */
        if (it.createErrors !== false) {
          out += ' { keyword: \'' + ('dependencies') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { property: \'' + (it.util.escapeQuotes($property)) + '\', missingProperty: \'' + ($missingProperty) + '\', depsCount: ' + ($deps.length) + ', deps: \'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(", "))) + '\' } ';
          if (it.opts.messages !== false) {
            out += ' , message: \'should have ';
            if ($deps.length == 1) {
              out += 'property ' + (it.util.escapeQuotes($deps[0]));
            } else {
              out += 'properties ' + (it.util.escapeQuotes($deps.join(", ")));
            }
            out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\' ';
          }
          if (it.opts.verbose) {
            out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
          }
          out += ' } ';
        } else {
          out += ' {} ';
        }
        var __err = out;
        out = $$outStack.pop();
        if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
          if (it.async) {
            out += ' throw new ValidationError([' + (__err) + ']); ';
          } else {
            out += ' validate.errors = [' + (__err) + ']; return false; ';
          }
        } else {
          out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
        }
      } else {
        out += ' ) { ';
        var arr2 = $deps;
        if (arr2) {
          var $propertyKey, i2 = -1,
            l2 = arr2.length - 1;
          while (i2 < l2) {
            $propertyKey = arr2[i2 += 1];
            var $prop = it.util.getProperty($propertyKey),
              $missingProperty = it.util.escapeQuotes($propertyKey),
              $useData = $data + $prop;
            if (it.opts._errorDataPathProperty) {
              it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
            }
            out += ' if ( ' + ($useData) + ' === undefined ';
            if ($ownProperties) {
              out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
            }
            out += ') {  var err =   '; /* istanbul ignore else */
            if (it.createErrors !== false) {
              out += ' { keyword: \'' + ('dependencies') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { property: \'' + (it.util.escapeQuotes($property)) + '\', missingProperty: \'' + ($missingProperty) + '\', depsCount: ' + ($deps.length) + ', deps: \'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(", "))) + '\' } ';
              if (it.opts.messages !== false) {
                out += ' , message: \'should have ';
                if ($deps.length == 1) {
                  out += 'property ' + (it.util.escapeQuotes($deps[0]));
                } else {
                  out += 'properties ' + (it.util.escapeQuotes($deps.join(", ")));
                }
                out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\' ';
              }
              if (it.opts.verbose) {
                out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
              }
              out += ' } ';
            } else {
              out += ' {} ';
            }
            out += ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ';
          }
        }
      }
      out += ' }   ';
      if ($breakOnError) {
        $closingBraces += '}';
        out += ' else { ';
      }
    }
  }
  it.errorPath = $currentErrorPath;
  var $currentBaseId = $it.baseId;
  for (var $property in $schemaDeps) {
    var $sch = $schemaDeps[$property];
    if (it.util.schemaHasRules($sch, it.RULES.all)) {
      out += ' ' + ($nextValid) + ' = true; if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined ';
      if ($ownProperties) {
        out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($property)) + '\') ';
      }
      out += ') { ';
      $it.schema = $sch;
      $it.schemaPath = $schemaPath + it.util.getProperty($property);
      $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property);
      out += '  ' + (it.validate($it)) + ' ';
      $it.baseId = $currentBaseId;
      out += ' }  ';
      if ($breakOnError) {
        out += ' if (' + ($nextValid) + ') { ';
        $closingBraces += '}';
      }
    }
  }
  if ($breakOnError) {
    out += '   ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';
  }
  out = it.util.cleanUpCode(out);
  return out;
}

},{}],67:[function(require,module,exports){
'use strict';
module.exports = function generate_enum(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $valid = 'valid' + $lvl;
  var $isData = it.opts.$data && $schema && $schema.$data,
    $schemaValue;
  if ($isData) {
    out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
    $schemaValue = 'schema' + $lvl;
  } else {
    $schemaValue = $schema;
  }
  var $i = 'i' + $lvl,
    $vSchema = 'schema' + $lvl;
  if (!$isData) {
    out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + ';';
  }
  out += 'var ' + ($valid) + ';';
  if ($isData) {
    out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';
  }
  out += '' + ($valid) + ' = false;for (var ' + ($i) + '=0; ' + ($i) + '<' + ($vSchema) + '.length; ' + ($i) + '++) if (equal(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + '])) { ' + ($valid) + ' = true; break; }';
  if ($isData) {
    out += '  }  ';
  }
  out += ' if (!' + ($valid) + ') {   ';
  var $$outStack = $$outStack || [];
  $$outStack.push(out);
  out = ''; /* istanbul ignore else */
  if (it.createErrors !== false) {
    out += ' { keyword: \'' + ('enum') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValues: schema' + ($lvl) + ' } ';
    if (it.opts.messages !== false) {
      out += ' , message: \'should be equal to one of the allowed values\' ';
    }
    if (it.opts.verbose) {
      out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
    }
    out += ' } ';
  } else {
    out += ' {} ';
  }
  var __err = out;
  out = $$outStack.pop();
  if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
    if (it.async) {
      out += ' throw new ValidationError([' + (__err) + ']); ';
    } else {
      out += ' validate.errors = [' + (__err) + ']; return false; ';
    }
  } else {
    out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
  }
  out += ' }';
  if ($breakOnError) {
    out += ' else { ';
  }
  return out;
}

},{}],68:[function(require,module,exports){
'use strict';
module.exports = function generate_format(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  if (it.opts.format === false) {
    if ($breakOnError) {
      out += ' if (true) { ';
    }
    return out;
  }
  var $isData = it.opts.$data && $schema && $schema.$data,
    $schemaValue;
  if ($isData) {
    out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
    $schemaValue = 'schema' + $lvl;
  } else {
    $schemaValue = $schema;
  }
  var $unknownFormats = it.opts.unknownFormats,
    $allowUnknown = Array.isArray($unknownFormats);
  if ($isData) {
    var $format = 'format' + $lvl,
      $isObject = 'isObject' + $lvl,
      $formatType = 'formatType' + $lvl;
    out += ' var ' + ($format) + ' = formats[' + ($schemaValue) + ']; var ' + ($isObject) + ' = typeof ' + ($format) + ' == \'object\' && !(' + ($format) + ' instanceof RegExp) && ' + ($format) + '.validate; var ' + ($formatType) + ' = ' + ($isObject) + ' && ' + ($format) + '.type || \'string\'; if (' + ($isObject) + ') { ';
    if (it.async) {
      out += ' var async' + ($lvl) + ' = ' + ($format) + '.async; ';
    }
    out += ' ' + ($format) + ' = ' + ($format) + '.validate; } if (  ';
    if ($isData) {
      out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
    }
    out += ' (';
    if ($unknownFormats != 'ignore') {
      out += ' (' + ($schemaValue) + ' && !' + ($format) + ' ';
      if ($allowUnknown) {
        out += ' && self._opts.unknownFormats.indexOf(' + ($schemaValue) + ') == -1 ';
      }
      out += ') || ';
    }
    out += ' (' + ($format) + ' && ' + ($formatType) + ' == \'' + ($ruleType) + '\' && !(typeof ' + ($format) + ' == \'function\' ? ';
    if (it.async) {
      out += ' (async' + ($lvl) + ' ? await ' + ($format) + '(' + ($data) + ') : ' + ($format) + '(' + ($data) + ')) ';
    } else {
      out += ' ' + ($format) + '(' + ($data) + ') ';
    }
    out += ' : ' + ($format) + '.test(' + ($data) + '))))) {';
  } else {
    var $format = it.formats[$schema];
    if (!$format) {
      if ($unknownFormats == 'ignore') {
        it.logger.warn('unknown format "' + $schema + '" ignored in schema at path "' + it.errSchemaPath + '"');
        if ($breakOnError) {
          out += ' if (true) { ';
        }
        return out;
      } else if ($allowUnknown && $unknownFormats.indexOf($schema) >= 0) {
        if ($breakOnError) {
          out += ' if (true) { ';
        }
        return out;
      } else {
        throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"');
      }
    }
    var $isObject = typeof $format == 'object' && !($format instanceof RegExp) && $format.validate;
    var $formatType = $isObject && $format.type || 'string';
    if ($isObject) {
      var $async = $format.async === true;
      $format = $format.validate;
    }
    if ($formatType != $ruleType) {
      if ($breakOnError) {
        out += ' if (true) { ';
      }
      return out;
    }
    if ($async) {
      if (!it.async) throw new Error('async format in sync schema');
      var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate';
      out += ' if (!(await ' + ($formatRef) + '(' + ($data) + '))) { ';
    } else {
      out += ' if (! ';
      var $formatRef = 'formats' + it.util.getProperty($schema);
      if ($isObject) $formatRef += '.validate';
      if (typeof $format == 'function') {
        out += ' ' + ($formatRef) + '(' + ($data) + ') ';
      } else {
        out += ' ' + ($formatRef) + '.test(' + ($data) + ') ';
      }
      out += ') { ';
    }
  }
  var $$outStack = $$outStack || [];
  $$outStack.push(out);
  out = ''; /* istanbul ignore else */
  if (it.createErrors !== false) {
    out += ' { keyword: \'' + ('format') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { format:  ';
    if ($isData) {
      out += '' + ($schemaValue);
    } else {
      out += '' + (it.util.toQuotedString($schema));
    }
    out += '  } ';
    if (it.opts.messages !== false) {
      out += ' , message: \'should match format "';
      if ($isData) {
        out += '\' + ' + ($schemaValue) + ' + \'';
      } else {
        out += '' + (it.util.escapeQuotes($schema));
      }
      out += '"\' ';
    }
    if (it.opts.verbose) {
      out += ' , schema:  ';
      if ($isData) {
        out += 'validate.schema' + ($schemaPath);
      } else {
        out += '' + (it.util.toQuotedString($schema));
      }
      out += '         , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
    }
    out += ' } ';
  } else {
    out += ' {} ';
  }
  var __err = out;
  out = $$outStack.pop();
  if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
    if (it.async) {
      out += ' throw new ValidationError([' + (__err) + ']); ';
    } else {
      out += ' validate.errors = [' + (__err) + ']; return false; ';
    }
  } else {
    out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
  }
  out += ' } ';
  if ($breakOnError) {
    out += ' else { ';
  }
  return out;
}

},{}],69:[function(require,module,exports){
'use strict';
module.exports = function generate_if(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $valid = 'valid' + $lvl;
  var $errs = 'errs__' + $lvl;
  var $it = it.util.copy(it);
  $it.level++;
  var $nextValid = 'valid' + $it.level;
  var $thenSch = it.schema['then'],
    $elseSch = it.schema['else'],
    $thenPresent = $thenSch !== undefined && it.util.schemaHasRules($thenSch, it.RULES.all),
    $elsePresent = $elseSch !== undefined && it.util.schemaHasRules($elseSch, it.RULES.all),
    $currentBaseId = $it.baseId;
  if ($thenPresent || $elsePresent) {
    var $ifClause;
    $it.createErrors = false;
    $it.schema = $schema;
    $it.schemaPath = $schemaPath;
    $it.errSchemaPath = $errSchemaPath;
    out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = true;  ';
    var $wasComposite = it.compositeRule;
    it.compositeRule = $it.compositeRule = true;
    out += '  ' + (it.validate($it)) + ' ';
    $it.baseId = $currentBaseId;
    $it.createErrors = true;
    out += '  errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; }  ';
    it.compositeRule = $it.compositeRule = $wasComposite;
    if ($thenPresent) {
      out += ' if (' + ($nextValid) + ') {  ';
      $it.schema = it.schema['then'];
      $it.schemaPath = it.schemaPath + '.then';
      $it.errSchemaPath = it.errSchemaPath + '/then';
      out += '  ' + (it.validate($it)) + ' ';
      $it.baseId = $currentBaseId;
      out += ' ' + ($valid) + ' = ' + ($nextValid) + '; ';
      if ($thenPresent && $elsePresent) {
        $ifClause = 'ifClause' + $lvl;
        out += ' var ' + ($ifClause) + ' = \'then\'; ';
      } else {
        $ifClause = '\'then\'';
      }
      out += ' } ';
      if ($elsePresent) {
        out += ' else { ';
      }
    } else {
      out += ' if (!' + ($nextValid) + ') { ';
    }
    if ($elsePresent) {
      $it.schema = it.schema['else'];
      $it.schemaPath = it.schemaPath + '.else';
      $it.errSchemaPath = it.errSchemaPath + '/else';
      out += '  ' + (it.validate($it)) + ' ';
      $it.baseId = $currentBaseId;
      out += ' ' + ($valid) + ' = ' + ($nextValid) + '; ';
      if ($thenPresent && $elsePresent) {
        $ifClause = 'ifClause' + $lvl;
        out += ' var ' + ($ifClause) + ' = \'else\'; ';
      } else {
        $ifClause = '\'else\'';
      }
      out += ' } ';
    }
    out += ' if (!' + ($valid) + ') {   var err =   '; /* istanbul ignore else */
    if (it.createErrors !== false) {
      out += ' { keyword: \'' + ('if') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { failingKeyword: ' + ($ifClause) + ' } ';
      if (it.opts.messages !== false) {
        out += ' , message: \'should match "\' + ' + ($ifClause) + ' + \'" schema\' ';
      }
      if (it.opts.verbose) {
        out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
      }
      out += ' } ';
    } else {
      out += ' {} ';
    }
    out += ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
    if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
      if (it.async) {
        out += ' throw new ValidationError(vErrors); ';
      } else {
        out += ' validate.errors = vErrors; return false; ';
      }
    }
    out += ' }   ';
    if ($breakOnError) {
      out += ' else { ';
    }
    out = it.util.cleanUpCode(out);
  } else {
    if ($breakOnError) {
      out += ' if (true) { ';
    }
  }
  return out;
}

},{}],70:[function(require,module,exports){
'use strict';

//all requires must be explicit because browserify won't work with dynamic requires
module.exports = {
  '$ref': require('./ref'),
  allOf: require('./allOf'),
  anyOf: require('./anyOf'),
  '$comment': require('./comment'),
  const: require('./const'),
  contains: require('./contains'),
  dependencies: require('./dependencies'),
  'enum': require('./enum'),
  format: require('./format'),
  'if': require('./if'),
  items: require('./items'),
  maximum: require('./_limit'),
  minimum: require('./_limit'),
  maxItems: require('./_limitItems'),
  minItems: require('./_limitItems'),
  maxLength: require('./_limitLength'),
  minLength: require('./_limitLength'),
  maxProperties: require('./_limitProperties'),
  minProperties: require('./_limitProperties'),
  multipleOf: require('./multipleOf'),
  not: require('./not'),
  oneOf: require('./oneOf'),
  pattern: require('./pattern'),
  properties: require('./properties'),
  propertyNames: require('./propertyNames'),
  required: require('./required'),
  uniqueItems: require('./uniqueItems'),
  validate: require('./validate')
};

},{"./_limit":56,"./_limitItems":57,"./_limitLength":58,"./_limitProperties":59,"./allOf":60,"./anyOf":61,"./comment":62,"./const":63,"./contains":64,"./dependencies":66,"./enum":67,"./format":68,"./if":69,"./items":71,"./multipleOf":72,"./not":73,"./oneOf":74,"./pattern":75,"./properties":76,"./propertyNames":77,"./ref":78,"./required":79,"./uniqueItems":80,"./validate":81}],71:[function(require,module,exports){
'use strict';
module.exports = function generate_items(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $valid = 'valid' + $lvl;
  var $errs = 'errs__' + $lvl;
  var $it = it.util.copy(it);
  var $closingBraces = '';
  $it.level++;
  var $nextValid = 'valid' + $it.level;
  var $idx = 'i' + $lvl,
    $dataNxt = $it.dataLevel = it.dataLevel + 1,
    $nextData = 'data' + $dataNxt,
    $currentBaseId = it.baseId;
  out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';
  if (Array.isArray($schema)) {
    var $additionalItems = it.schema.additionalItems;
    if ($additionalItems === false) {
      out += ' ' + ($valid) + ' = ' + ($data) + '.length <= ' + ($schema.length) + '; ';
      var $currErrSchemaPath = $errSchemaPath;
      $errSchemaPath = it.errSchemaPath + '/additionalItems';
      out += '  if (!' + ($valid) + ') {   ';
      var $$outStack = $$outStack || [];
      $$outStack.push(out);
      out = ''; /* istanbul ignore else */
      if (it.createErrors !== false) {
        out += ' { keyword: \'' + ('additionalItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schema.length) + ' } ';
        if (it.opts.messages !== false) {
          out += ' , message: \'should NOT have more than ' + ($schema.length) + ' items\' ';
        }
        if (it.opts.verbose) {
          out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
        }
        out += ' } ';
      } else {
        out += ' {} ';
      }
      var __err = out;
      out = $$outStack.pop();
      if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
        if (it.async) {
          out += ' throw new ValidationError([' + (__err) + ']); ';
        } else {
          out += ' validate.errors = [' + (__err) + ']; return false; ';
        }
      } else {
        out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
      }
      out += ' } ';
      $errSchemaPath = $currErrSchemaPath;
      if ($breakOnError) {
        $closingBraces += '}';
        out += ' else { ';
      }
    }
    var arr1 = $schema;
    if (arr1) {
      var $sch, $i = -1,
        l1 = arr1.length - 1;
      while ($i < l1) {
        $sch = arr1[$i += 1];
        if (it.util.schemaHasRules($sch, it.RULES.all)) {
          out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($i) + ') { ';
          var $passData = $data + '[' + $i + ']';
          $it.schema = $sch;
          $it.schemaPath = $schemaPath + '[' + $i + ']';
          $it.errSchemaPath = $errSchemaPath + '/' + $i;
          $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true);
          $it.dataPathArr[$dataNxt] = $i;
          var $code = it.validate($it);
          $it.baseId = $currentBaseId;
          if (it.util.varOccurences($code, $nextData) < 2) {
            out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
          } else {
            out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
          }
          out += ' }  ';
          if ($breakOnError) {
            out += ' if (' + ($nextValid) + ') { ';
            $closingBraces += '}';
          }
        }
      }
    }
    if (typeof $additionalItems == 'object' && it.util.schemaHasRules($additionalItems, it.RULES.all)) {
      $it.schema = $additionalItems;
      $it.schemaPath = it.schemaPath + '.additionalItems';
      $it.errSchemaPath = it.errSchemaPath + '/additionalItems';
      out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($schema.length) + ') {  for (var ' + ($idx) + ' = ' + ($schema.length) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';
      $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
      var $passData = $data + '[' + $idx + ']';
      $it.dataPathArr[$dataNxt] = $idx;
      var $code = it.validate($it);
      $it.baseId = $currentBaseId;
      if (it.util.varOccurences($code, $nextData) < 2) {
        out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
      } else {
        out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
      }
      if ($breakOnError) {
        out += ' if (!' + ($nextValid) + ') break; ';
      }
      out += ' } }  ';
      if ($breakOnError) {
        out += ' if (' + ($nextValid) + ') { ';
        $closingBraces += '}';
      }
    }
  } else if (it.util.schemaHasRules($schema, it.RULES.all)) {
    $it.schema = $schema;
    $it.schemaPath = $schemaPath;
    $it.errSchemaPath = $errSchemaPath;
    out += '  for (var ' + ($idx) + ' = ' + (0) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';
    $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
    var $passData = $data + '[' + $idx + ']';
    $it.dataPathArr[$dataNxt] = $idx;
    var $code = it.validate($it);
    $it.baseId = $currentBaseId;
    if (it.util.varOccurences($code, $nextData) < 2) {
      out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
    } else {
      out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
    }
    if ($breakOnError) {
      out += ' if (!' + ($nextValid) + ') break; ';
    }
    out += ' }';
  }
  if ($breakOnError) {
    out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';
  }
  out = it.util.cleanUpCode(out);
  return out;
}

},{}],72:[function(require,module,exports){
'use strict';
module.exports = function generate_multipleOf(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $isData = it.opts.$data && $schema && $schema.$data,
    $schemaValue;
  if ($isData) {
    out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
    $schemaValue = 'schema' + $lvl;
  } else {
    $schemaValue = $schema;
  }
  out += 'var division' + ($lvl) + ';if (';
  if ($isData) {
    out += ' ' + ($schemaValue) + ' !== undefined && ( typeof ' + ($schemaValue) + ' != \'number\' || ';
  }
  out += ' (division' + ($lvl) + ' = ' + ($data) + ' / ' + ($schemaValue) + ', ';
  if (it.opts.multipleOfPrecision) {
    out += ' Math.abs(Math.round(division' + ($lvl) + ') - division' + ($lvl) + ') > 1e-' + (it.opts.multipleOfPrecision) + ' ';
  } else {
    out += ' division' + ($lvl) + ' !== parseInt(division' + ($lvl) + ') ';
  }
  out += ' ) ';
  if ($isData) {
    out += '  )  ';
  }
  out += ' ) {   ';
  var $$outStack = $$outStack || [];
  $$outStack.push(out);
  out = ''; /* istanbul ignore else */
  if (it.createErrors !== false) {
    out += ' { keyword: \'' + ('multipleOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { multipleOf: ' + ($schemaValue) + ' } ';
    if (it.opts.messages !== false) {
      out += ' , message: \'should be multiple of ';
      if ($isData) {
        out += '\' + ' + ($schemaValue);
      } else {
        out += '' + ($schemaValue) + '\'';
      }
    }
    if (it.opts.verbose) {
      out += ' , schema:  ';
      if ($isData) {
        out += 'validate.schema' + ($schemaPath);
      } else {
        out += '' + ($schema);
      }
      out += '         , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
    }
    out += ' } ';
  } else {
    out += ' {} ';
  }
  var __err = out;
  out = $$outStack.pop();
  if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
    if (it.async) {
      out += ' throw new ValidationError([' + (__err) + ']); ';
    } else {
      out += ' validate.errors = [' + (__err) + ']; return false; ';
    }
  } else {
    out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
  }
  out += '} ';
  if ($breakOnError) {
    out += ' else { ';
  }
  return out;
}

},{}],73:[function(require,module,exports){
'use strict';
module.exports = function generate_not(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $errs = 'errs__' + $lvl;
  var $it = it.util.copy(it);
  $it.level++;
  var $nextValid = 'valid' + $it.level;
  if (it.util.schemaHasRules($schema, it.RULES.all)) {
    $it.schema = $schema;
    $it.schemaPath = $schemaPath;
    $it.errSchemaPath = $errSchemaPath;
    out += ' var ' + ($errs) + ' = errors;  ';
    var $wasComposite = it.compositeRule;
    it.compositeRule = $it.compositeRule = true;
    $it.createErrors = false;
    var $allErrorsOption;
    if ($it.opts.allErrors) {
      $allErrorsOption = $it.opts.allErrors;
      $it.opts.allErrors = false;
    }
    out += ' ' + (it.validate($it)) + ' ';
    $it.createErrors = true;
    if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption;
    it.compositeRule = $it.compositeRule = $wasComposite;
    out += ' if (' + ($nextValid) + ') {   ';
    var $$outStack = $$outStack || [];
    $$outStack.push(out);
    out = ''; /* istanbul ignore else */
    if (it.createErrors !== false) {
      out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
      if (it.opts.messages !== false) {
        out += ' , message: \'should NOT be valid\' ';
      }
      if (it.opts.verbose) {
        out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
      }
      out += ' } ';
    } else {
      out += ' {} ';
    }
    var __err = out;
    out = $$outStack.pop();
    if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
      if (it.async) {
        out += ' throw new ValidationError([' + (__err) + ']); ';
      } else {
        out += ' validate.errors = [' + (__err) + ']; return false; ';
      }
    } else {
      out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
    }
    out += ' } else {  errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';
    if (it.opts.allErrors) {
      out += ' } ';
    }
  } else {
    out += '  var err =   '; /* istanbul ignore else */
    if (it.createErrors !== false) {
      out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
      if (it.opts.messages !== false) {
        out += ' , message: \'should NOT be valid\' ';
      }
      if (it.opts.verbose) {
        out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
      }
      out += ' } ';
    } else {
      out += ' {} ';
    }
    out += ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
    if ($breakOnError) {
      out += ' if (false) { ';
    }
  }
  return out;
}

},{}],74:[function(require,module,exports){
'use strict';
module.exports = function generate_oneOf(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $valid = 'valid' + $lvl;
  var $errs = 'errs__' + $lvl;
  var $it = it.util.copy(it);
  var $closingBraces = '';
  $it.level++;
  var $nextValid = 'valid' + $it.level;
  var $currentBaseId = $it.baseId,
    $prevValid = 'prevValid' + $lvl,
    $passingSchemas = 'passingSchemas' + $lvl;
  out += 'var ' + ($errs) + ' = errors , ' + ($prevValid) + ' = false , ' + ($valid) + ' = false , ' + ($passingSchemas) + ' = null; ';
  var $wasComposite = it.compositeRule;
  it.compositeRule = $it.compositeRule = true;
  var arr1 = $schema;
  if (arr1) {
    var $sch, $i = -1,
      l1 = arr1.length - 1;
    while ($i < l1) {
      $sch = arr1[$i += 1];
      if (it.util.schemaHasRules($sch, it.RULES.all)) {
        $it.schema = $sch;
        $it.schemaPath = $schemaPath + '[' + $i + ']';
        $it.errSchemaPath = $errSchemaPath + '/' + $i;
        out += '  ' + (it.validate($it)) + ' ';
        $it.baseId = $currentBaseId;
      } else {
        out += ' var ' + ($nextValid) + ' = true; ';
      }
      if ($i) {
        out += ' if (' + ($nextValid) + ' && ' + ($prevValid) + ') { ' + ($valid) + ' = false; ' + ($passingSchemas) + ' = [' + ($passingSchemas) + ', ' + ($i) + ']; } else { ';
        $closingBraces += '}';
      }
      out += ' if (' + ($nextValid) + ') { ' + ($valid) + ' = ' + ($prevValid) + ' = true; ' + ($passingSchemas) + ' = ' + ($i) + '; }';
    }
  }
  it.compositeRule = $it.compositeRule = $wasComposite;
  out += '' + ($closingBraces) + 'if (!' + ($valid) + ') {   var err =   '; /* istanbul ignore else */
  if (it.createErrors !== false) {
    out += ' { keyword: \'' + ('oneOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { passingSchemas: ' + ($passingSchemas) + ' } ';
    if (it.opts.messages !== false) {
      out += ' , message: \'should match exactly one schema in oneOf\' ';
    }
    if (it.opts.verbose) {
      out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
    }
    out += ' } ';
  } else {
    out += ' {} ';
  }
  out += ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
  if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
    if (it.async) {
      out += ' throw new ValidationError(vErrors); ';
    } else {
      out += ' validate.errors = vErrors; return false; ';
    }
  }
  out += '} else {  errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; }';
  if (it.opts.allErrors) {
    out += ' } ';
  }
  return out;
}

},{}],75:[function(require,module,exports){
'use strict';
module.exports = function generate_pattern(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $isData = it.opts.$data && $schema && $schema.$data,
    $schemaValue;
  if ($isData) {
    out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
    $schemaValue = 'schema' + $lvl;
  } else {
    $schemaValue = $schema;
  }
  var $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema);
  out += 'if ( ';
  if ($isData) {
    out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
  }
  out += ' !' + ($regexp) + '.test(' + ($data) + ') ) {   ';
  var $$outStack = $$outStack || [];
  $$outStack.push(out);
  out = ''; /* istanbul ignore else */
  if (it.createErrors !== false) {
    out += ' { keyword: \'' + ('pattern') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { pattern:  ';
    if ($isData) {
      out += '' + ($schemaValue);
    } else {
      out += '' + (it.util.toQuotedString($schema));
    }
    out += '  } ';
    if (it.opts.messages !== false) {
      out += ' , message: \'should match pattern "';
      if ($isData) {
        out += '\' + ' + ($schemaValue) + ' + \'';
      } else {
        out += '' + (it.util.escapeQuotes($schema));
      }
      out += '"\' ';
    }
    if (it.opts.verbose) {
      out += ' , schema:  ';
      if ($isData) {
        out += 'validate.schema' + ($schemaPath);
      } else {
        out += '' + (it.util.toQuotedString($schema));
      }
      out += '         , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
    }
    out += ' } ';
  } else {
    out += ' {} ';
  }
  var __err = out;
  out = $$outStack.pop();
  if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
    if (it.async) {
      out += ' throw new ValidationError([' + (__err) + ']); ';
    } else {
      out += ' validate.errors = [' + (__err) + ']; return false; ';
    }
  } else {
    out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
  }
  out += '} ';
  if ($breakOnError) {
    out += ' else { ';
  }
  return out;
}

},{}],76:[function(require,module,exports){
'use strict';
module.exports = function generate_properties(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $errs = 'errs__' + $lvl;
  var $it = it.util.copy(it);
  var $closingBraces = '';
  $it.level++;
  var $nextValid = 'valid' + $it.level;
  var $key = 'key' + $lvl,
    $idx = 'idx' + $lvl,
    $dataNxt = $it.dataLevel = it.dataLevel + 1,
    $nextData = 'data' + $dataNxt,
    $dataProperties = 'dataProperties' + $lvl;
  var $schemaKeys = Object.keys($schema || {}),
    $pProperties = it.schema.patternProperties || {},
    $pPropertyKeys = Object.keys($pProperties),
    $aProperties = it.schema.additionalProperties,
    $someProperties = $schemaKeys.length || $pPropertyKeys.length,
    $noAdditional = $aProperties === false,
    $additionalIsSchema = typeof $aProperties == 'object' && Object.keys($aProperties).length,
    $removeAdditional = it.opts.removeAdditional,
    $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional,
    $ownProperties = it.opts.ownProperties,
    $currentBaseId = it.baseId;
  var $required = it.schema.required;
  if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) var $requiredHash = it.util.toHash($required);
  out += 'var ' + ($errs) + ' = errors;var ' + ($nextValid) + ' = true;';
  if ($ownProperties) {
    out += ' var ' + ($dataProperties) + ' = undefined;';
  }
  if ($checkAdditional) {
    if ($ownProperties) {
      out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';
    } else {
      out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';
    }
    if ($someProperties) {
      out += ' var isAdditional' + ($lvl) + ' = !(false ';
      if ($schemaKeys.length) {
        if ($schemaKeys.length > 8) {
          out += ' || validate.schema' + ($schemaPath) + '.hasOwnProperty(' + ($key) + ') ';
        } else {
          var arr1 = $schemaKeys;
          if (arr1) {
            var $propertyKey, i1 = -1,
              l1 = arr1.length - 1;
            while (i1 < l1) {
              $propertyKey = arr1[i1 += 1];
              out += ' || ' + ($key) + ' == ' + (it.util.toQuotedString($propertyKey)) + ' ';
            }
          }
        }
      }
      if ($pPropertyKeys.length) {
        var arr2 = $pPropertyKeys;
        if (arr2) {
          var $pProperty, $i = -1,
            l2 = arr2.length - 1;
          while ($i < l2) {
            $pProperty = arr2[$i += 1];
            out += ' || ' + (it.usePattern($pProperty)) + '.test(' + ($key) + ') ';
          }
        }
      }
      out += ' ); if (isAdditional' + ($lvl) + ') { ';
    }
    if ($removeAdditional == 'all') {
      out += ' delete ' + ($data) + '[' + ($key) + ']; ';
    } else {
      var $currentErrorPath = it.errorPath;
      var $additionalProperty = '\' + ' + $key + ' + \'';
      if (it.opts._errorDataPathProperty) {
        it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
      }
      if ($noAdditional) {
        if ($removeAdditional) {
          out += ' delete ' + ($data) + '[' + ($key) + ']; ';
        } else {
          out += ' ' + ($nextValid) + ' = false; ';
          var $currErrSchemaPath = $errSchemaPath;
          $errSchemaPath = it.errSchemaPath + '/additionalProperties';
          var $$outStack = $$outStack || [];
          $$outStack.push(out);
          out = ''; /* istanbul ignore else */
          if (it.createErrors !== false) {
            out += ' { keyword: \'' + ('additionalProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { additionalProperty: \'' + ($additionalProperty) + '\' } ';
            if (it.opts.messages !== false) {
              out += ' , message: \'';
              if (it.opts._errorDataPathProperty) {
                out += 'is an invalid additional property';
              } else {
                out += 'should NOT have additional properties';
              }
              out += '\' ';
            }
            if (it.opts.verbose) {
              out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
            }
            out += ' } ';
          } else {
            out += ' {} ';
          }
          var __err = out;
          out = $$outStack.pop();
          if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
            if (it.async) {
              out += ' throw new ValidationError([' + (__err) + ']); ';
            } else {
              out += ' validate.errors = [' + (__err) + ']; return false; ';
            }
          } else {
            out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
          }
          $errSchemaPath = $currErrSchemaPath;
          if ($breakOnError) {
            out += ' break; ';
          }
        }
      } else if ($additionalIsSchema) {
        if ($removeAdditional == 'failing') {
          out += ' var ' + ($errs) + ' = errors;  ';
          var $wasComposite = it.compositeRule;
          it.compositeRule = $it.compositeRule = true;
          $it.schema = $aProperties;
          $it.schemaPath = it.schemaPath + '.additionalProperties';
          $it.errSchemaPath = it.errSchemaPath + '/additionalProperties';
          $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
          var $passData = $data + '[' + $key + ']';
          $it.dataPathArr[$dataNxt] = $key;
          var $code = it.validate($it);
          $it.baseId = $currentBaseId;
          if (it.util.varOccurences($code, $nextData) < 2) {
            out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
          } else {
            out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
          }
          out += ' if (!' + ($nextValid) + ') { errors = ' + ($errs) + '; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ' + ($data) + '[' + ($key) + ']; }  ';
          it.compositeRule = $it.compositeRule = $wasComposite;
        } else {
          $it.schema = $aProperties;
          $it.schemaPath = it.schemaPath + '.additionalProperties';
          $it.errSchemaPath = it.errSchemaPath + '/additionalProperties';
          $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
          var $passData = $data + '[' + $key + ']';
          $it.dataPathArr[$dataNxt] = $key;
          var $code = it.validate($it);
          $it.baseId = $currentBaseId;
          if (it.util.varOccurences($code, $nextData) < 2) {
            out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
          } else {
            out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
          }
          if ($breakOnError) {
            out += ' if (!' + ($nextValid) + ') break; ';
          }
        }
      }
      it.errorPath = $currentErrorPath;
    }
    if ($someProperties) {
      out += ' } ';
    }
    out += ' }  ';
    if ($breakOnError) {
      out += ' if (' + ($nextValid) + ') { ';
      $closingBraces += '}';
    }
  }
  var $useDefaults = it.opts.useDefaults && !it.compositeRule;
  if ($schemaKeys.length) {
    var arr3 = $schemaKeys;
    if (arr3) {
      var $propertyKey, i3 = -1,
        l3 = arr3.length - 1;
      while (i3 < l3) {
        $propertyKey = arr3[i3 += 1];
        var $sch = $schema[$propertyKey];
        if (it.util.schemaHasRules($sch, it.RULES.all)) {
          var $prop = it.util.getProperty($propertyKey),
            $passData = $data + $prop,
            $hasDefault = $useDefaults && $sch.default !== undefined;
          $it.schema = $sch;
          $it.schemaPath = $schemaPath + $prop;
          $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey);
          $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers);
          $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey);
          var $code = it.validate($it);
          $it.baseId = $currentBaseId;
          if (it.util.varOccurences($code, $nextData) < 2) {
            $code = it.util.varReplace($code, $nextData, $passData);
            var $useData = $passData;
          } else {
            var $useData = $nextData;
            out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ';
          }
          if ($hasDefault) {
            out += ' ' + ($code) + ' ';
          } else {
            if ($requiredHash && $requiredHash[$propertyKey]) {
              out += ' if ( ' + ($useData) + ' === undefined ';
              if ($ownProperties) {
                out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
              }
              out += ') { ' + ($nextValid) + ' = false; ';
              var $currentErrorPath = it.errorPath,
                $currErrSchemaPath = $errSchemaPath,
                $missingProperty = it.util.escapeQuotes($propertyKey);
              if (it.opts._errorDataPathProperty) {
                it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
              }
              $errSchemaPath = it.errSchemaPath + '/required';
              var $$outStack = $$outStack || [];
              $$outStack.push(out);
              out = ''; /* istanbul ignore else */
              if (it.createErrors !== false) {
                out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
                if (it.opts.messages !== false) {
                  out += ' , message: \'';
                  if (it.opts._errorDataPathProperty) {
                    out += 'is a required property';
                  } else {
                    out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
                  }
                  out += '\' ';
                }
                if (it.opts.verbose) {
                  out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
                }
                out += ' } ';
              } else {
                out += ' {} ';
              }
              var __err = out;
              out = $$outStack.pop();
              if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
                if (it.async) {
                  out += ' throw new ValidationError([' + (__err) + ']); ';
                } else {
                  out += ' validate.errors = [' + (__err) + ']; return false; ';
                }
              } else {
                out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
              }
              $errSchemaPath = $currErrSchemaPath;
              it.errorPath = $currentErrorPath;
              out += ' } else { ';
            } else {
              if ($breakOnError) {
                out += ' if ( ' + ($useData) + ' === undefined ';
                if ($ownProperties) {
                  out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
                }
                out += ') { ' + ($nextValid) + ' = true; } else { ';
              } else {
                out += ' if (' + ($useData) + ' !== undefined ';
                if ($ownProperties) {
                  out += ' &&   Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
                }
                out += ' ) { ';
              }
            }
            out += ' ' + ($code) + ' } ';
          }
        }
        if ($breakOnError) {
          out += ' if (' + ($nextValid) + ') { ';
          $closingBraces += '}';
        }
      }
    }
  }
  if ($pPropertyKeys.length) {
    var arr4 = $pPropertyKeys;
    if (arr4) {
      var $pProperty, i4 = -1,
        l4 = arr4.length - 1;
      while (i4 < l4) {
        $pProperty = arr4[i4 += 1];
        var $sch = $pProperties[$pProperty];
        if (it.util.schemaHasRules($sch, it.RULES.all)) {
          $it.schema = $sch;
          $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty);
          $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' + it.util.escapeFragment($pProperty);
          if ($ownProperties) {
            out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';
          } else {
            out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';
          }
          out += ' if (' + (it.usePattern($pProperty)) + '.test(' + ($key) + ')) { ';
          $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
          var $passData = $data + '[' + $key + ']';
          $it.dataPathArr[$dataNxt] = $key;
          var $code = it.validate($it);
          $it.baseId = $currentBaseId;
          if (it.util.varOccurences($code, $nextData) < 2) {
            out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
          } else {
            out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
          }
          if ($breakOnError) {
            out += ' if (!' + ($nextValid) + ') break; ';
          }
          out += ' } ';
          if ($breakOnError) {
            out += ' else ' + ($nextValid) + ' = true; ';
          }
          out += ' }  ';
          if ($breakOnError) {
            out += ' if (' + ($nextValid) + ') { ';
            $closingBraces += '}';
          }
        }
      }
    }
  }
  if ($breakOnError) {
    out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';
  }
  out = it.util.cleanUpCode(out);
  return out;
}

},{}],77:[function(require,module,exports){
'use strict';
module.exports = function generate_propertyNames(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $errs = 'errs__' + $lvl;
  var $it = it.util.copy(it);
  var $closingBraces = '';
  $it.level++;
  var $nextValid = 'valid' + $it.level;
  if (it.util.schemaHasRules($schema, it.RULES.all)) {
    $it.schema = $schema;
    $it.schemaPath = $schemaPath;
    $it.errSchemaPath = $errSchemaPath;
    var $key = 'key' + $lvl,
      $idx = 'idx' + $lvl,
      $i = 'i' + $lvl,
      $invalidName = '\' + ' + $key + ' + \'',
      $dataNxt = $it.dataLevel = it.dataLevel + 1,
      $nextData = 'data' + $dataNxt,
      $dataProperties = 'dataProperties' + $lvl,
      $ownProperties = it.opts.ownProperties,
      $currentBaseId = it.baseId;
    out += ' var ' + ($errs) + ' = errors; ';
    if ($ownProperties) {
      out += ' var ' + ($dataProperties) + ' = undefined; ';
    }
    if ($ownProperties) {
      out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';
    } else {
      out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';
    }
    out += ' var startErrs' + ($lvl) + ' = errors; ';
    var $passData = $key;
    var $wasComposite = it.compositeRule;
    it.compositeRule = $it.compositeRule = true;
    var $code = it.validate($it);
    $it.baseId = $currentBaseId;
    if (it.util.varOccurences($code, $nextData) < 2) {
      out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
    } else {
      out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
    }
    it.compositeRule = $it.compositeRule = $wasComposite;
    out += ' if (!' + ($nextValid) + ') { for (var ' + ($i) + '=startErrs' + ($lvl) + '; ' + ($i) + '<errors; ' + ($i) + '++) { vErrors[' + ($i) + '].propertyName = ' + ($key) + '; }   var err =   '; /* istanbul ignore else */
    if (it.createErrors !== false) {
      out += ' { keyword: \'' + ('propertyNames') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { propertyName: \'' + ($invalidName) + '\' } ';
      if (it.opts.messages !== false) {
        out += ' , message: \'property name \\\'' + ($invalidName) + '\\\' is invalid\' ';
      }
      if (it.opts.verbose) {
        out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
      }
      out += ' } ';
    } else {
      out += ' {} ';
    }
    out += ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
    if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
      if (it.async) {
        out += ' throw new ValidationError(vErrors); ';
      } else {
        out += ' validate.errors = vErrors; return false; ';
      }
    }
    if ($breakOnError) {
      out += ' break; ';
    }
    out += ' } }';
  }
  if ($breakOnError) {
    out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';
  }
  out = it.util.cleanUpCode(out);
  return out;
}

},{}],78:[function(require,module,exports){
'use strict';
module.exports = function generate_ref(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $valid = 'valid' + $lvl;
  var $async, $refCode;
  if ($schema == '#' || $schema == '#/') {
    if (it.isRoot) {
      $async = it.async;
      $refCode = 'validate';
    } else {
      $async = it.root.schema.$async === true;
      $refCode = 'root.refVal[0]';
    }
  } else {
    var $refVal = it.resolveRef(it.baseId, $schema, it.isRoot);
    if ($refVal === undefined) {
      var $message = it.MissingRefError.message(it.baseId, $schema);
      if (it.opts.missingRefs == 'fail') {
        it.logger.error($message);
        var $$outStack = $$outStack || [];
        $$outStack.push(out);
        out = ''; /* istanbul ignore else */
        if (it.createErrors !== false) {
          out += ' { keyword: \'' + ('$ref') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { ref: \'' + (it.util.escapeQuotes($schema)) + '\' } ';
          if (it.opts.messages !== false) {
            out += ' , message: \'can\\\'t resolve reference ' + (it.util.escapeQuotes($schema)) + '\' ';
          }
          if (it.opts.verbose) {
            out += ' , schema: ' + (it.util.toQuotedString($schema)) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
          }
          out += ' } ';
        } else {
          out += ' {} ';
        }
        var __err = out;
        out = $$outStack.pop();
        if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
          if (it.async) {
            out += ' throw new ValidationError([' + (__err) + ']); ';
          } else {
            out += ' validate.errors = [' + (__err) + ']; return false; ';
          }
        } else {
          out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
        }
        if ($breakOnError) {
          out += ' if (false) { ';
        }
      } else if (it.opts.missingRefs == 'ignore') {
        it.logger.warn($message);
        if ($breakOnError) {
          out += ' if (true) { ';
        }
      } else {
        throw new it.MissingRefError(it.baseId, $schema, $message);
      }
    } else if ($refVal.inline) {
      var $it = it.util.copy(it);
      $it.level++;
      var $nextValid = 'valid' + $it.level;
      $it.schema = $refVal.schema;
      $it.schemaPath = '';
      $it.errSchemaPath = $schema;
      var $code = it.validate($it).replace(/validate\.schema/g, $refVal.code);
      out += ' ' + ($code) + ' ';
      if ($breakOnError) {
        out += ' if (' + ($nextValid) + ') { ';
      }
    } else {
      $async = $refVal.$async === true || (it.async && $refVal.$async !== false);
      $refCode = $refVal.code;
    }
  }
  if ($refCode) {
    var $$outStack = $$outStack || [];
    $$outStack.push(out);
    out = '';
    if (it.opts.passContext) {
      out += ' ' + ($refCode) + '.call(this, ';
    } else {
      out += ' ' + ($refCode) + '( ';
    }
    out += ' ' + ($data) + ', (dataPath || \'\')';
    if (it.errorPath != '""') {
      out += ' + ' + (it.errorPath);
    }
    var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',
      $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';
    out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ', rootData)  ';
    var __callValidate = out;
    out = $$outStack.pop();
    if ($async) {
      if (!it.async) throw new Error('async schema referenced by sync schema');
      if ($breakOnError) {
        out += ' var ' + ($valid) + '; ';
      }
      out += ' try { await ' + (__callValidate) + '; ';
      if ($breakOnError) {
        out += ' ' + ($valid) + ' = true; ';
      }
      out += ' } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ';
      if ($breakOnError) {
        out += ' ' + ($valid) + ' = false; ';
      }
      out += ' } ';
      if ($breakOnError) {
        out += ' if (' + ($valid) + ') { ';
      }
    } else {
      out += ' if (!' + (__callValidate) + ') { if (vErrors === null) vErrors = ' + ($refCode) + '.errors; else vErrors = vErrors.concat(' + ($refCode) + '.errors); errors = vErrors.length; } ';
      if ($breakOnError) {
        out += ' else { ';
      }
    }
  }
  return out;
}

},{}],79:[function(require,module,exports){
'use strict';
module.exports = function generate_required(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $valid = 'valid' + $lvl;
  var $isData = it.opts.$data && $schema && $schema.$data,
    $schemaValue;
  if ($isData) {
    out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
    $schemaValue = 'schema' + $lvl;
  } else {
    $schemaValue = $schema;
  }
  var $vSchema = 'schema' + $lvl;
  if (!$isData) {
    if ($schema.length < it.opts.loopRequired && it.schema.properties && Object.keys(it.schema.properties).length) {
      var $required = [];
      var arr1 = $schema;
      if (arr1) {
        var $property, i1 = -1,
          l1 = arr1.length - 1;
        while (i1 < l1) {
          $property = arr1[i1 += 1];
          var $propertySch = it.schema.properties[$property];
          if (!($propertySch && it.util.schemaHasRules($propertySch, it.RULES.all))) {
            $required[$required.length] = $property;
          }
        }
      }
    } else {
      var $required = $schema;
    }
  }
  if ($isData || $required.length) {
    var $currentErrorPath = it.errorPath,
      $loopRequired = $isData || $required.length >= it.opts.loopRequired,
      $ownProperties = it.opts.ownProperties;
    if ($breakOnError) {
      out += ' var missing' + ($lvl) + '; ';
      if ($loopRequired) {
        if (!$isData) {
          out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; ';
        }
        var $i = 'i' + $lvl,
          $propertyPath = 'schema' + $lvl + '[' + $i + ']',
          $missingProperty = '\' + ' + $propertyPath + ' + \'';
        if (it.opts._errorDataPathProperty) {
          it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);
        }
        out += ' var ' + ($valid) + ' = true; ';
        if ($isData) {
          out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';
        }
        out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { ' + ($valid) + ' = ' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] !== undefined ';
        if ($ownProperties) {
          out += ' &&   Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) ';
        }
        out += '; if (!' + ($valid) + ') break; } ';
        if ($isData) {
          out += '  }  ';
        }
        out += '  if (!' + ($valid) + ') {   ';
        var $$outStack = $$outStack || [];
        $$outStack.push(out);
        out = ''; /* istanbul ignore else */
        if (it.createErrors !== false) {
          out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
          if (it.opts.messages !== false) {
            out += ' , message: \'';
            if (it.opts._errorDataPathProperty) {
              out += 'is a required property';
            } else {
              out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
            }
            out += '\' ';
          }
          if (it.opts.verbose) {
            out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
          }
          out += ' } ';
        } else {
          out += ' {} ';
        }
        var __err = out;
        out = $$outStack.pop();
        if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
          if (it.async) {
            out += ' throw new ValidationError([' + (__err) + ']); ';
          } else {
            out += ' validate.errors = [' + (__err) + ']; return false; ';
          }
        } else {
          out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
        }
        out += ' } else { ';
      } else {
        out += ' if ( ';
        var arr2 = $required;
        if (arr2) {
          var $propertyKey, $i = -1,
            l2 = arr2.length - 1;
          while ($i < l2) {
            $propertyKey = arr2[$i += 1];
            if ($i) {
              out += ' || ';
            }
            var $prop = it.util.getProperty($propertyKey),
              $useData = $data + $prop;
            out += ' ( ( ' + ($useData) + ' === undefined ';
            if ($ownProperties) {
              out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
            }
            out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) ';
          }
        }
        out += ') {  ';
        var $propertyPath = 'missing' + $lvl,
          $missingProperty = '\' + ' + $propertyPath + ' + \'';
        if (it.opts._errorDataPathProperty) {
          it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath;
        }
        var $$outStack = $$outStack || [];
        $$outStack.push(out);
        out = ''; /* istanbul ignore else */
        if (it.createErrors !== false) {
          out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
          if (it.opts.messages !== false) {
            out += ' , message: \'';
            if (it.opts._errorDataPathProperty) {
              out += 'is a required property';
            } else {
              out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
            }
            out += '\' ';
          }
          if (it.opts.verbose) {
            out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
          }
          out += ' } ';
        } else {
          out += ' {} ';
        }
        var __err = out;
        out = $$outStack.pop();
        if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
          if (it.async) {
            out += ' throw new ValidationError([' + (__err) + ']); ';
          } else {
            out += ' validate.errors = [' + (__err) + ']; return false; ';
          }
        } else {
          out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
        }
        out += ' } else { ';
      }
    } else {
      if ($loopRequired) {
        if (!$isData) {
          out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; ';
        }
        var $i = 'i' + $lvl,
          $propertyPath = 'schema' + $lvl + '[' + $i + ']',
          $missingProperty = '\' + ' + $propertyPath + ' + \'';
        if (it.opts._errorDataPathProperty) {
          it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);
        }
        if ($isData) {
          out += ' if (' + ($vSchema) + ' && !Array.isArray(' + ($vSchema) + ')) {  var err =   '; /* istanbul ignore else */
          if (it.createErrors !== false) {
            out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
            if (it.opts.messages !== false) {
              out += ' , message: \'';
              if (it.opts._errorDataPathProperty) {
                out += 'is a required property';
              } else {
                out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
              }
              out += '\' ';
            }
            if (it.opts.verbose) {
              out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
            }
            out += ' } ';
          } else {
            out += ' {} ';
          }
          out += ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (' + ($vSchema) + ' !== undefined) { ';
        }
        out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { if (' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] === undefined ';
        if ($ownProperties) {
          out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) ';
        }
        out += ') {  var err =   '; /* istanbul ignore else */
        if (it.createErrors !== false) {
          out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
          if (it.opts.messages !== false) {
            out += ' , message: \'';
            if (it.opts._errorDataPathProperty) {
              out += 'is a required property';
            } else {
              out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
            }
            out += '\' ';
          }
          if (it.opts.verbose) {
            out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
          }
          out += ' } ';
        } else {
          out += ' {} ';
        }
        out += ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ';
        if ($isData) {
          out += '  }  ';
        }
      } else {
        var arr3 = $required;
        if (arr3) {
          var $propertyKey, i3 = -1,
            l3 = arr3.length - 1;
          while (i3 < l3) {
            $propertyKey = arr3[i3 += 1];
            var $prop = it.util.getProperty($propertyKey),
              $missingProperty = it.util.escapeQuotes($propertyKey),
              $useData = $data + $prop;
            if (it.opts._errorDataPathProperty) {
              it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
            }
            out += ' if ( ' + ($useData) + ' === undefined ';
            if ($ownProperties) {
              out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
            }
            out += ') {  var err =   '; /* istanbul ignore else */
            if (it.createErrors !== false) {
              out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
              if (it.opts.messages !== false) {
                out += ' , message: \'';
                if (it.opts._errorDataPathProperty) {
                  out += 'is a required property';
                } else {
                  out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
                }
                out += '\' ';
              }
              if (it.opts.verbose) {
                out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
              }
              out += ' } ';
            } else {
              out += ' {} ';
            }
            out += ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ';
          }
        }
      }
    }
    it.errorPath = $currentErrorPath;
  } else if ($breakOnError) {
    out += ' if (true) {';
  }
  return out;
}

},{}],80:[function(require,module,exports){
'use strict';
module.exports = function generate_uniqueItems(it, $keyword, $ruleType) {
  var out = ' ';
  var $lvl = it.level;
  var $dataLvl = it.dataLevel;
  var $schema = it.schema[$keyword];
  var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
  var $breakOnError = !it.opts.allErrors;
  var $data = 'data' + ($dataLvl || '');
  var $valid = 'valid' + $lvl;
  var $isData = it.opts.$data && $schema && $schema.$data,
    $schemaValue;
  if ($isData) {
    out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
    $schemaValue = 'schema' + $lvl;
  } else {
    $schemaValue = $schema;
  }
  if (($schema || $isData) && it.opts.uniqueItems !== false) {
    if ($isData) {
      out += ' var ' + ($valid) + '; if (' + ($schemaValue) + ' === false || ' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \'boolean\') ' + ($valid) + ' = false; else { ';
    }
    out += ' var i = ' + ($data) + '.length , ' + ($valid) + ' = true , j; if (i > 1) { ';
    var $itemType = it.schema.items && it.schema.items.type,
      $typeIsArray = Array.isArray($itemType);
    if (!$itemType || $itemType == 'object' || $itemType == 'array' || ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0))) {
      out += ' outer: for (;i--;) { for (j = i; j--;) { if (equal(' + ($data) + '[i], ' + ($data) + '[j])) { ' + ($valid) + ' = false; break outer; } } } ';
    } else {
      out += ' var itemIndices = {}, item; for (;i--;) { var item = ' + ($data) + '[i]; ';
      var $method = 'checkDataType' + ($typeIsArray ? 's' : '');
      out += ' if (' + (it.util[$method]($itemType, 'item', true)) + ') continue; ';
      if ($typeIsArray) {
        out += ' if (typeof item == \'string\') item = \'"\' + item; ';
      }
      out += ' if (typeof itemIndices[item] == \'number\') { ' + ($valid) + ' = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ';
    }
    out += ' } ';
    if ($isData) {
      out += '  }  ';
    }
    out += ' if (!' + ($valid) + ') {   ';
    var $$outStack = $$outStack || [];
    $$outStack.push(out);
    out = ''; /* istanbul ignore else */
    if (it.createErrors !== false) {
      out += ' { keyword: \'' + ('uniqueItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { i: i, j: j } ';
      if (it.opts.messages !== false) {
        out += ' , message: \'should NOT have duplicate items (items ## \' + j + \' and \' + i + \' are identical)\' ';
      }
      if (it.opts.verbose) {
        out += ' , schema:  ';
        if ($isData) {
          out += 'validate.schema' + ($schemaPath);
        } else {
          out += '' + ($schema);
        }
        out += '         , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
      }
      out += ' } ';
    } else {
      out += ' {} ';
    }
    var __err = out;
    out = $$outStack.pop();
    if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
      if (it.async) {
        out += ' throw new ValidationError([' + (__err) + ']); ';
      } else {
        out += ' validate.errors = [' + (__err) + ']; return false; ';
      }
    } else {
      out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
    }
    out += ' } ';
    if ($breakOnError) {
      out += ' else { ';
    }
  } else {
    if ($breakOnError) {
      out += ' if (true) { ';
    }
  }
  return out;
}

},{}],81:[function(require,module,exports){
'use strict';
module.exports = function generate_validate(it, $keyword, $ruleType) {
  var out = '';
  var $async = it.schema.$async === true,
    $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'),
    $id = it.self._getId(it.schema);
  if (it.isTop) {
    out += ' var validate = ';
    if ($async) {
      it.async = true;
      out += 'async ';
    }
    out += 'function(data, dataPath, parentData, parentDataProperty, rootData) { \'use strict\'; ';
    if ($id && (it.opts.sourceCode || it.opts.processCode)) {
      out += ' ' + ('/\*# sourceURL=' + $id + ' */') + ' ';
    }
  }
  if (typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref)) {
    var $keyword = 'false schema';
    var $lvl = it.level;
    var $dataLvl = it.dataLevel;
    var $schema = it.schema[$keyword];
    var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
    var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
    var $breakOnError = !it.opts.allErrors;
    var $errorKeyword;
    var $data = 'data' + ($dataLvl || '');
    var $valid = 'valid' + $lvl;
    if (it.schema === false) {
      if (it.isTop) {
        $breakOnError = true;
      } else {
        out += ' var ' + ($valid) + ' = false; ';
      }
      var $$outStack = $$outStack || [];
      $$outStack.push(out);
      out = ''; /* istanbul ignore else */
      if (it.createErrors !== false) {
        out += ' { keyword: \'' + ($errorKeyword || 'false schema') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
        if (it.opts.messages !== false) {
          out += ' , message: \'boolean schema is false\' ';
        }
        if (it.opts.verbose) {
          out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
        }
        out += ' } ';
      } else {
        out += ' {} ';
      }
      var __err = out;
      out = $$outStack.pop();
      if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
        if (it.async) {
          out += ' throw new ValidationError([' + (__err) + ']); ';
        } else {
          out += ' validate.errors = [' + (__err) + ']; return false; ';
        }
      } else {
        out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
      }
    } else {
      if (it.isTop) {
        if ($async) {
          out += ' return data; ';
        } else {
          out += ' validate.errors = null; return true; ';
        }
      } else {
        out += ' var ' + ($valid) + ' = true; ';
      }
    }
    if (it.isTop) {
      out += ' }; return validate; ';
    }
    return out;
  }
  if (it.isTop) {
    var $top = it.isTop,
      $lvl = it.level = 0,
      $dataLvl = it.dataLevel = 0,
      $data = 'data';
    it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema));
    it.baseId = it.baseId || it.rootId;
    delete it.isTop;
    it.dataPathArr = [undefined];
    out += ' var vErrors = null; ';
    out += ' var errors = 0;     ';
    out += ' if (rootData === undefined) rootData = data; ';
  } else {
    var $lvl = it.level,
      $dataLvl = it.dataLevel,
      $data = 'data' + ($dataLvl || '');
    if ($id) it.baseId = it.resolve.url(it.baseId, $id);
    if ($async && !it.async) throw new Error('async schema in sync schema');
    out += ' var errs_' + ($lvl) + ' = errors;';
  }
  var $valid = 'valid' + $lvl,
    $breakOnError = !it.opts.allErrors,
    $closingBraces1 = '',
    $closingBraces2 = '';
  var $errorKeyword;
  var $typeSchema = it.schema.type,
    $typeIsArray = Array.isArray($typeSchema);
  if ($typeIsArray && $typeSchema.length == 1) {
    $typeSchema = $typeSchema[0];
    $typeIsArray = false;
  }
  if (it.schema.$ref && $refKeywords) {
    if (it.opts.extendRefs == 'fail') {
      throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)');
    } else if (it.opts.extendRefs !== true) {
      $refKeywords = false;
      it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"');
    }
  }
  if (it.schema.$comment && it.opts.$comment) {
    out += ' ' + (it.RULES.all.$comment.code(it, '$comment'));
  }
  if ($typeSchema) {
    if (it.opts.coerceTypes) {
      var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema);
    }
    var $rulesGroup = it.RULES.types[$typeSchema];
    if ($coerceToTypes || $typeIsArray || $rulesGroup === true || ($rulesGroup && !$shouldUseGroup($rulesGroup))) {
      var $schemaPath = it.schemaPath + '.type',
        $errSchemaPath = it.errSchemaPath + '/type';
      var $schemaPath = it.schemaPath + '.type',
        $errSchemaPath = it.errSchemaPath + '/type',
        $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType';
      out += ' if (' + (it.util[$method]($typeSchema, $data, true)) + ') { ';
      if ($coerceToTypes) {
        var $dataType = 'dataType' + $lvl,
          $coerced = 'coerced' + $lvl;
        out += ' var ' + ($dataType) + ' = typeof ' + ($data) + '; ';
        if (it.opts.coerceTypes == 'array') {
          out += ' if (' + ($dataType) + ' == \'object\' && Array.isArray(' + ($data) + ')) ' + ($dataType) + ' = \'array\'; ';
        }
        out += ' var ' + ($coerced) + ' = undefined; ';
        var $bracesCoercion = '';
        var arr1 = $coerceToTypes;
        if (arr1) {
          var $type, $i = -1,
            l1 = arr1.length - 1;
          while ($i < l1) {
            $type = arr1[$i += 1];
            if ($i) {
              out += ' if (' + ($coerced) + ' === undefined) { ';
              $bracesCoercion += '}';
            }
            if (it.opts.coerceTypes == 'array' && $type != 'array') {
              out += ' if (' + ($dataType) + ' == \'array\' && ' + ($data) + '.length == 1) { ' + ($coerced) + ' = ' + ($data) + ' = ' + ($data) + '[0]; ' + ($dataType) + ' = typeof ' + ($data) + ';  } ';
            }
            if ($type == 'string') {
              out += ' if (' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\') ' + ($coerced) + ' = \'\' + ' + ($data) + '; else if (' + ($data) + ' === null) ' + ($coerced) + ' = \'\'; ';
            } else if ($type == 'number' || $type == 'integer') {
              out += ' if (' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' === null || (' + ($dataType) + ' == \'string\' && ' + ($data) + ' && ' + ($data) + ' == +' + ($data) + ' ';
              if ($type == 'integer') {
                out += ' && !(' + ($data) + ' % 1)';
              }
              out += ')) ' + ($coerced) + ' = +' + ($data) + '; ';
            } else if ($type == 'boolean') {
              out += ' if (' + ($data) + ' === \'false\' || ' + ($data) + ' === 0 || ' + ($data) + ' === null) ' + ($coerced) + ' = false; else if (' + ($data) + ' === \'true\' || ' + ($data) + ' === 1) ' + ($coerced) + ' = true; ';
            } else if ($type == 'null') {
              out += ' if (' + ($data) + ' === \'\' || ' + ($data) + ' === 0 || ' + ($data) + ' === false) ' + ($coerced) + ' = null; ';
            } else if (it.opts.coerceTypes == 'array' && $type == 'array') {
              out += ' if (' + ($dataType) + ' == \'string\' || ' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' == null) ' + ($coerced) + ' = [' + ($data) + ']; ';
            }
          }
        }
        out += ' ' + ($bracesCoercion) + ' if (' + ($coerced) + ' === undefined) {   ';
        var $$outStack = $$outStack || [];
        $$outStack.push(out);
        out = ''; /* istanbul ignore else */
        if (it.createErrors !== false) {
          out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \'';
          if ($typeIsArray) {
            out += '' + ($typeSchema.join(","));
          } else {
            out += '' + ($typeSchema);
          }
          out += '\' } ';
          if (it.opts.messages !== false) {
            out += ' , message: \'should be ';
            if ($typeIsArray) {
              out += '' + ($typeSchema.join(","));
            } else {
              out += '' + ($typeSchema);
            }
            out += '\' ';
          }
          if (it.opts.verbose) {
            out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
          }
          out += ' } ';
        } else {
          out += ' {} ';
        }
        var __err = out;
        out = $$outStack.pop();
        if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
          if (it.async) {
            out += ' throw new ValidationError([' + (__err) + ']); ';
          } else {
            out += ' validate.errors = [' + (__err) + ']; return false; ';
          }
        } else {
          out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
        }
        out += ' } else {  ';
        var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',
          $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';
        out += ' ' + ($data) + ' = ' + ($coerced) + '; ';
        if (!$dataLvl) {
          out += 'if (' + ($parentData) + ' !== undefined)';
        }
        out += ' ' + ($parentData) + '[' + ($parentDataProperty) + '] = ' + ($coerced) + '; } ';
      } else {
        var $$outStack = $$outStack || [];
        $$outStack.push(out);
        out = ''; /* istanbul ignore else */
        if (it.createErrors !== false) {
          out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \'';
          if ($typeIsArray) {
            out += '' + ($typeSchema.join(","));
          } else {
            out += '' + ($typeSchema);
          }
          out += '\' } ';
          if (it.opts.messages !== false) {
            out += ' , message: \'should be ';
            if ($typeIsArray) {
              out += '' + ($typeSchema.join(","));
            } else {
              out += '' + ($typeSchema);
            }
            out += '\' ';
          }
          if (it.opts.verbose) {
            out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
          }
          out += ' } ';
        } else {
          out += ' {} ';
        }
        var __err = out;
        out = $$outStack.pop();
        if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
          if (it.async) {
            out += ' throw new ValidationError([' + (__err) + ']); ';
          } else {
            out += ' validate.errors = [' + (__err) + ']; return false; ';
          }
        } else {
          out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
        }
      }
      out += ' } ';
    }
  }
  if (it.schema.$ref && !$refKeywords) {
    out += ' ' + (it.RULES.all.$ref.code(it, '$ref')) + ' ';
    if ($breakOnError) {
      out += ' } if (errors === ';
      if ($top) {
        out += '0';
      } else {
        out += 'errs_' + ($lvl);
      }
      out += ') { ';
      $closingBraces2 += '}';
    }
  } else {
    var arr2 = it.RULES;
    if (arr2) {
      var $rulesGroup, i2 = -1,
        l2 = arr2.length - 1;
      while (i2 < l2) {
        $rulesGroup = arr2[i2 += 1];
        if ($shouldUseGroup($rulesGroup)) {
          if ($rulesGroup.type) {
            out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data)) + ') { ';
          }
          if (it.opts.useDefaults && !it.compositeRule) {
            if ($rulesGroup.type == 'object' && it.schema.properties) {
              var $schema = it.schema.properties,
                $schemaKeys = Object.keys($schema);
              var arr3 = $schemaKeys;
              if (arr3) {
                var $propertyKey, i3 = -1,
                  l3 = arr3.length - 1;
                while (i3 < l3) {
                  $propertyKey = arr3[i3 += 1];
                  var $sch = $schema[$propertyKey];
                  if ($sch.default !== undefined) {
                    var $passData = $data + it.util.getProperty($propertyKey);
                    out += '  if (' + ($passData) + ' === undefined) ' + ($passData) + ' = ';
                    if (it.opts.useDefaults == 'shared') {
                      out += ' ' + (it.useDefault($sch.default)) + ' ';
                    } else {
                      out += ' ' + (JSON.stringify($sch.default)) + ' ';
                    }
                    out += '; ';
                  }
                }
              }
            } else if ($rulesGroup.type == 'array' && Array.isArray(it.schema.items)) {
              var arr4 = it.schema.items;
              if (arr4) {
                var $sch, $i = -1,
                  l4 = arr4.length - 1;
                while ($i < l4) {
                  $sch = arr4[$i += 1];
                  if ($sch.default !== undefined) {
                    var $passData = $data + '[' + $i + ']';
                    out += '  if (' + ($passData) + ' === undefined) ' + ($passData) + ' = ';
                    if (it.opts.useDefaults == 'shared') {
                      out += ' ' + (it.useDefault($sch.default)) + ' ';
                    } else {
                      out += ' ' + (JSON.stringify($sch.default)) + ' ';
                    }
                    out += '; ';
                  }
                }
              }
            }
          }
          var arr5 = $rulesGroup.rules;
          if (arr5) {
            var $rule, i5 = -1,
              l5 = arr5.length - 1;
            while (i5 < l5) {
              $rule = arr5[i5 += 1];
              if ($shouldUseRule($rule)) {
                var $code = $rule.code(it, $rule.keyword, $rulesGroup.type);
                if ($code) {
                  out += ' ' + ($code) + ' ';
                  if ($breakOnError) {
                    $closingBraces1 += '}';
                  }
                }
              }
            }
          }
          if ($breakOnError) {
            out += ' ' + ($closingBraces1) + ' ';
            $closingBraces1 = '';
          }
          if ($rulesGroup.type) {
            out += ' } ';
            if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) {
              out += ' else { ';
              var $schemaPath = it.schemaPath + '.type',
                $errSchemaPath = it.errSchemaPath + '/type';
              var $$outStack = $$outStack || [];
              $$outStack.push(out);
              out = ''; /* istanbul ignore else */
              if (it.createErrors !== false) {
                out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \'';
                if ($typeIsArray) {
                  out += '' + ($typeSchema.join(","));
                } else {
                  out += '' + ($typeSchema);
                }
                out += '\' } ';
                if (it.opts.messages !== false) {
                  out += ' , message: \'should be ';
                  if ($typeIsArray) {
                    out += '' + ($typeSchema.join(","));
                  } else {
                    out += '' + ($typeSchema);
                  }
                  out += '\' ';
                }
                if (it.opts.verbose) {
                  out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
                }
                out += ' } ';
              } else {
                out += ' {} ';
              }
              var __err = out;
              out = $$outStack.pop();
              if (!it.compositeRule && $breakOnError) { /* istanbul ignore if */
                if (it.async) {
                  out += ' throw new ValidationError([' + (__err) + ']); ';
                } else {
                  out += ' validate.errors = [' + (__err) + ']; return false; ';
                }
              } else {
                out += ' var err = ' + (__err) + ';  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
              }
              out += ' } ';
            }
          }
          if ($breakOnError) {
            out += ' if (errors === ';
            if ($top) {
              out += '0';
            } else {
              out += 'errs_' + ($lvl);
            }
            out += ') { ';
            $closingBraces2 += '}';
          }
        }
      }
    }
  }
  if ($breakOnError) {
    out += ' ' + ($closingBraces2) + ' ';
  }
  if ($top) {
    if ($async) {
      out += ' if (errors === 0) return data;           ';
      out += ' else throw new ValidationError(vErrors); ';
    } else {
      out += ' validate.errors = vErrors; ';
      out += ' return errors === 0;       ';
    }
    out += ' }; return validate;';
  } else {
    out += ' var ' + ($valid) + ' = errors === errs_' + ($lvl) + ';';
  }
  out = it.util.cleanUpCode(out);
  if ($top) {
    out = it.util.finalCleanUpCode(out, $async);
  }

  function $shouldUseGroup($rulesGroup) {
    var rules = $rulesGroup.rules;
    for (var i = 0; i < rules.length; i++)
      if ($shouldUseRule(rules[i])) return true;
  }

  function $shouldUseRule($rule) {
    return it.schema[$rule.keyword] !== undefined || ($rule.implements && $ruleImplementsSomeKeyword($rule));
  }

  function $ruleImplementsSomeKeyword($rule) {
    var impl = $rule.implements;
    for (var i = 0; i < impl.length; i++)
      if (it.schema[impl[i]] !== undefined) return true;
  }
  return out;
}

},{}],82:[function(require,module,exports){
'use strict';

var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;
var customRuleCode = require('./dotjs/custom');

module.exports = {
  add: addKeyword,
  get: getKeyword,
  remove: removeKeyword
};

/**
 * Define custom keyword
 * @this  Ajv
 * @param {String} keyword custom keyword, should be unique (including different from all standard, custom and macro keywords).
 * @param {Object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`.
 * @return {Ajv} this for method chaining
 */
function addKeyword(keyword, definition) {
  /* jshint validthis: true */
  /* eslint no-shadow: 0 */
  var RULES = this.RULES;

  if (RULES.keywords[keyword])
    throw new Error('Keyword ' + keyword + ' is already defined');

  if (!IDENTIFIER.test(keyword))
    throw new Error('Keyword ' + keyword + ' is not a valid identifier');

  if (definition) {
    if (definition.macro && definition.valid !== undefined)
      throw new Error('"valid" option cannot be used with macro keywords');

    var dataType = definition.type;
    if (Array.isArray(dataType)) {
      var i, len = dataType.length;
      for (i=0; i<len; i++) checkDataType(dataType[i]);
      for (i=0; i<len; i++) _addRule(keyword, dataType[i], definition);
    } else {
      if (dataType) checkDataType(dataType);
      _addRule(keyword, dataType, definition);
    }

    var $data = definition.$data === true && this._opts.$data;
    if ($data && !definition.validate)
      throw new Error('$data support: "validate" function is not defined');

    var metaSchema = definition.metaSchema;
    if (metaSchema) {
      if ($data) {
        metaSchema = {
          anyOf: [
            metaSchema,
            { '$ref': 'https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#' }
          ]
        };
      }
      definition.validateSchema = this.compile(metaSchema, true);
    }
  }

  RULES.keywords[keyword] = RULES.all[keyword] = true;


  function _addRule(keyword, dataType, definition) {
    var ruleGroup;
    for (var i=0; i<RULES.length; i++) {
      var rg = RULES[i];
      if (rg.type == dataType) {
        ruleGroup = rg;
        break;
      }
    }

    if (!ruleGroup) {
      ruleGroup = { type: dataType, rules: [] };
      RULES.push(ruleGroup);
    }

    var rule = {
      keyword: keyword,
      definition: definition,
      custom: true,
      code: customRuleCode,
      implements: definition.implements
    };
    ruleGroup.rules.push(rule);
    RULES.custom[keyword] = rule;
  }


  function checkDataType(dataType) {
    if (!RULES.types[dataType]) throw new Error('Unknown type ' + dataType);
  }

  return this;
}


/**
 * Get keyword
 * @this  Ajv
 * @param {String} keyword pre-defined or custom keyword.
 * @return {Object|Boolean} custom keyword definition, `true` if it is a predefined keyword, `false` otherwise.
 */
function getKeyword(keyword) {
  /* jshint validthis: true */
  var rule = this.RULES.custom[keyword];
  return rule ? rule.definition : this.RULES.keywords[keyword] || false;
}


/**
 * Remove keyword
 * @this  Ajv
 * @param {String} keyword pre-defined or custom keyword.
 * @return {Ajv} this for method chaining
 */
function removeKeyword(keyword) {
  /* jshint validthis: true */
  var RULES = this.RULES;
  delete RULES.keywords[keyword];
  delete RULES.all[keyword];
  delete RULES.custom[keyword];
  for (var i=0; i<RULES.length; i++) {
    var rules = RULES[i].rules;
    for (var j=0; j<rules.length; j++) {
      if (rules[j].keyword == keyword) {
        rules.splice(j, 1);
        break;
      }
    }
  }
  return this;
}

},{"./dotjs/custom":65}],83:[function(require,module,exports){
module.exports={
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#",
    "description": "Meta-schema for $data reference (JSON Schema extension proposal)",
    "type": "object",
    "required": [ "$data" ],
    "properties": {
        "$data": {
            "type": "string",
            "anyOf": [
                { "format": "relative-json-pointer" }, 
                { "format": "json-pointer" }
            ]
        }
    },
    "additionalProperties": false
}

},{}],84:[function(require,module,exports){
module.exports={
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://json-schema.org/draft-07/schema#",
    "title": "Core schema meta-schema",
    "definitions": {
        "schemaArray": {
            "type": "array",
            "minItems": 1,
            "items": { "$ref": "#" }
        },
        "nonNegativeInteger": {
            "type": "integer",
            "minimum": 0
        },
        "nonNegativeIntegerDefault0": {
            "allOf": [
                { "$ref": "#/definitions/nonNegativeInteger" },
                { "default": 0 }
            ]
        },
        "simpleTypes": {
            "enum": [
                "array",
                "boolean",
                "integer",
                "null",
                "number",
                "object",
                "string"
            ]
        },
        "stringArray": {
            "type": "array",
            "items": { "type": "string" },
            "uniqueItems": true,
            "default": []
        }
    },
    "type": ["object", "boolean"],
    "properties": {
        "$id": {
            "type": "string",
            "format": "uri-reference"
        },
        "$schema": {
            "type": "string",
            "format": "uri"
        },
        "$ref": {
            "type": "string",
            "format": "uri-reference"
        },
        "$comment": {
            "type": "string"
        },
        "title": {
            "type": "string"
        },
        "description": {
            "type": "string"
        },
        "default": true,
        "readOnly": {
            "type": "boolean",
            "default": false
        },
        "examples": {
            "type": "array",
            "items": true
        },
        "multipleOf": {
            "type": "number",
            "exclusiveMinimum": 0
        },
        "maximum": {
            "type": "number"
        },
        "exclusiveMaximum": {
            "type": "number"
        },
        "minimum": {
            "type": "number"
        },
        "exclusiveMinimum": {
            "type": "number"
        },
        "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },
        "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
        "pattern": {
            "type": "string",
            "format": "regex"
        },
        "additionalItems": { "$ref": "#" },
        "items": {
            "anyOf": [
                { "$ref": "#" },
                { "$ref": "#/definitions/schemaArray" }
            ],
            "default": true
        },
        "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },
        "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
        "uniqueItems": {
            "type": "boolean",
            "default": false
        },
        "contains": { "$ref": "#" },
        "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },
        "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
        "required": { "$ref": "#/definitions/stringArray" },
        "additionalProperties": { "$ref": "#" },
        "definitions": {
            "type": "object",
            "additionalProperties": { "$ref": "#" },
            "default": {}
        },
        "properties": {
            "type": "object",
            "additionalProperties": { "$ref": "#" },
            "default": {}
        },
        "patternProperties": {
            "type": "object",
            "additionalProperties": { "$ref": "#" },
            "propertyNames": { "format": "regex" },
            "default": {}
        },
        "dependencies": {
            "type": "object",
            "additionalProperties": {
                "anyOf": [
                    { "$ref": "#" },
                    { "$ref": "#/definitions/stringArray" }
                ]
            }
        },
        "propertyNames": { "$ref": "#" },
        "const": true,
        "enum": {
            "type": "array",
            "items": true,
            "minItems": 1,
            "uniqueItems": true
        },
        "type": {
            "anyOf": [
                { "$ref": "#/definitions/simpleTypes" },
                {
                    "type": "array",
                    "items": { "$ref": "#/definitions/simpleTypes" },
                    "minItems": 1,
                    "uniqueItems": true
                }
            ]
        },
        "format": { "type": "string" },
        "contentMediaType": { "type": "string" },
        "contentEncoding": { "type": "string" },
        "if": {"$ref": "#"},
        "then": {"$ref": "#"},
        "else": {"$ref": "#"},
        "allOf": { "$ref": "#/definitions/schemaArray" },
        "anyOf": { "$ref": "#/definitions/schemaArray" },
        "oneOf": { "$ref": "#/definitions/schemaArray" },
        "not": { "$ref": "#" }
    },
    "default": true
}

},{}],85:[function(require,module,exports){
(function (global){
SHACLValidator = require("amf-shacl-node")
Ajv = require("ajv")
'use strict';
var d,aa="object"===typeof __ScalaJSEnv&&__ScalaJSEnv?__ScalaJSEnv:{},ba="object"===typeof aa.global&&aa.global?aa.global:"object"===typeof global&&global&&global.Object===Object?global:this;aa.global=ba;var m=exports;aa.exportsNamespace=m;ba.Object.freeze(aa);var aaa={envInfo:aa,semantics:{asInstanceOfs:2,arrayIndexOutOfBounds:2,moduleInit:2,strictFloats:!1,productionMode:!0},assumingES6:!1,linkerVersion:"0.6.25",globalThis:this};ba.Object.freeze(aaa);ba.Object.freeze(aaa.semantics);
var ca=ba.Math.imul||function(a,b){var c=a&65535,e=b&65535;return c*e+((a>>>16&65535)*e+c*(b>>>16&65535)<<16>>>0)|0},ea=ba.Math.fround||function(a){return+a},fa=ba.Math.clz32||function(a){if(0===a)return 32;var b=1;0===(a&4294901760)&&(a<<=16,b+=16);0===(a&4278190080)&&(a<<=8,b+=8);0===(a&4026531840)&&(a<<=4,b+=4);0===(a&3221225472)&&(a<<=2,b+=2);return b+(a>>31)},baa=0,caa=ba.WeakMap?new ba.WeakMap:null;
function ga(a){return function(b,c){return!(!b||!b.$classData||b.$classData.WN!==c||b.$classData.VN!==a)}}function daa(a){for(var b in a)return b}function ha(a,b){return new a.K$(b)}function ia(a,b){return eaa(a,b,0)}function eaa(a,b,c){var e=new a.K$(b[c]);if(c<b.length-1){a=a.vT;c+=1;for(var f=e.j,g=0;g<f.length;g++)f[g]=eaa(a,b,c)}return e}function ja(a){return void 0===a?"undefined":a.toString()}
function ka(a){switch(typeof a){case "string":return n(la);case "number":var b=a|0;return b===a?faa(b)?n(gaa):haa(b)?n(iaa):n(jaa):ma(a)?n(kaa):n(laa);case "boolean":return n(maa);case "undefined":return n(na);default:return null===a?a.xfb():oa(a)?n(naa):a&&a.$classData?n(a.$classData):null}}function pa(a,b){return a&&a.$classData||null===a?a.h(b):"number"===typeof a?"number"===typeof b&&(a===b?0!==a||1/a===1/b:a!==a&&b!==b):a===b}
function qa(a){switch(typeof a){case "string":return ra(ta(),a);case "number":return oaa(paa(),a);case "boolean":return a?1231:1237;case "undefined":return 0;default:return a&&a.$classData||null===a?a.y():null===caa?42:va(a)}}function qaa(a,b){switch(typeof a){case "string":return a===b?0:a<b?-1:1;case "number":return raa(wa(),a,b);case "boolean":return a-b;default:return a.Wn(b)}}function xa(a){return"string"===typeof a?a.length|0:a.Ka()}
function ya(a,b){return"string"===typeof a?a.charCodeAt(b)&65535:a.Ow(b)}function za(a,b,c){return"string"===typeof a?a.substring(b,c):a.XC(b,c)}function Aa(a){return"number"===typeof a?a|0:a.xt()}function Ba(a){return 2147483647<a?2147483647:-2147483648>a?-2147483648:a|0}function saa(a,b){var c=ba.Object.getPrototypeOf,e=ba.Object.getOwnPropertyDescriptor;for(a=c(a);null!==a;){var f=e(a,b);if(void 0!==f)return f;a=c(a)}}
function taa(a,b,c){a=saa(a,c);if(void 0!==a)return c=a.get,void 0!==c?c.call(b):a.value}function uaa(a,b,c,e){a=saa(a,c);if(void 0!==a&&(a=a.set,void 0!==a)){a.call(b,e);return}throw new ba.TypeError("super has no setter '"+c+"'.");}function Ca(a,b,c,e,f){a=a.j;c=c.j;if(a!==c||e<b||(b+f|0)<e)for(var g=0;g<f;g=g+1|0)c[e+g|0]=a[b+g|0];else for(g=f-1|0;0<=g;g=g-1|0)c[e+g|0]=a[b+g|0]}
var va=null!==caa?function(a){switch(typeof a){case "string":case "number":case "boolean":case "undefined":return qa(a);default:if(null===a)return 0;var b=caa.get(a);void 0===b&&(baa=b=baa+1|0,caa.set(a,b));return b}}:function(a){if(a&&a.$classData){var b=a.$idHashCode$0;if(void 0!==b)return b;if(ba.Object.isSealed(a))return 42;baa=b=baa+1|0;return a.$idHashCode$0=b}return null===a?0:qa(a)};function faa(a){return"number"===typeof a&&a<<24>>24===a&&1/a!==1/-0}
function haa(a){return"number"===typeof a&&a<<16>>16===a&&1/a!==1/-0}function Da(a){return"number"===typeof a&&(a|0)===a&&1/a!==1/-0}function ma(a){return"number"===typeof a}function Ea(a){return null===a?Fa().xn:a}function Ga(){this.R1=this.K$=void 0;this.VN=this.vT=this.v=null;this.WN=0;this.wga=null;this.y_="";this.yy=this.a_=this.b_=void 0;this.name="";this.isRawJSType=this.isArrayClass=this.isInterface=this.isPrimitive=!1;this.isInstance=void 0}
function Ha(a,b,c){var e=new Ga;e.v={};e.vT=null;e.wga=a;e.y_=b;e.yy=function(){return!1};e.name=c;e.isPrimitive=!0;e.isInstance=function(){return!1};return e}function q(a,b,c,e,f,g,h,k){var l=new Ga,p=daa(a);h=h||function(a){return!!(a&&a.$classData&&a.$classData.v[p])};k=k||function(a,b){return!!(a&&a.$classData&&a.$classData.WN===b&&a.$classData.VN.v[p])};l.R1=g;l.v=e;l.y_="L"+c+";";l.yy=k;l.name=c;l.isInterface=b;l.isRawJSType=!!f;l.isInstance=h;return l}
function vaa(a){function b(a){if("number"===typeof a){this.j=Array(a);for(var b=0;b<a;b++)this.j[b]=f}else this.j=a}var c=new Ga,e=a.wga,f="longZero"==e?Fa().xn:e;b.prototype=new r;b.prototype.constructor=b;b.prototype.$classData=c;var e="["+a.y_,g=a.VN||a,h=a.WN+1;c.K$=b;c.R1=Ja;c.v={f:1,Dk:1,n:1};c.vT=a;c.VN=g;c.WN=h;c.wga=null;c.y_=e;c.b_=void 0;c.a_=void 0;c.yy=void 0;c.name=e;c.isPrimitive=!1;c.isInterface=!1;c.isArrayClass=!0;c.isInstance=function(a){return g.yy(a,h)};return c}
function n(a){if(!a.b_){var b=new Ka;b.lg=a;a.b_=b}return a.b_}function La(a){a.a_||(a.a_=vaa(a));return a.a_}Ga.prototype.getFakeInstance=function(){return this===la?"some string":this===maa?!1:this===gaa||this===iaa||this===jaa||this===kaa||this===laa?0:this===naa?Fa().xn:this===na?void 0:{$classData:this}};Ga.prototype.getSuperclass=function(){return this.R1?n(this.R1):null};Ga.prototype.getComponentType=function(){return this.vT?n(this.vT):null};
Ga.prototype.newArrayOfThisClass=function(a){for(var b=this,c=0;c<a.length;c++)b=La(b);return ia(b,a)};var waa=Ha(void 0,"V","void"),Ma=Ha(!1,"Z","boolean"),Na=Ha(0,"C","char"),Oa=Ha(0,"B","byte"),Qa=Ha(0,"S","short"),Ra=Ha(0,"I","int"),Sa=Ha("longZero","J","long"),Ta=Ha(0,"F","float"),Ua=Ha(0,"D","double"),xaa=ga(Ma);Ma.yy=xaa;var yaa=ga(Na);Na.yy=yaa;var zaa=ga(Oa);Oa.yy=zaa;var Aaa=ga(Qa);Qa.yy=Aaa;var Baa=ga(Ra);Ra.yy=Baa;var Caa=ga(Sa);Sa.yy=Caa;var Daa=ga(Ta);Ta.yy=Daa;var Eaa=ga(Ua);
Ua.yy=Eaa;var Faa=require("os"),Gaa=require("path"),Haa=require("http"),Iaa=require("https"),Jaa=require("fs");function Kaa(a){return!!(a&&a.$classData&&a.$classData.v.za)}function Va(a){return t(new u,function(a){return function(c){if(null!==c){var e=c.pa();c=c.Ba();return a.zf(e,c)}throw(new v).d(c);}}(a))}
function Laa(a,b,c){var e=Maa(b.Vi);if(b.al&&b.Sl){c=b.Ya.c();c=Naa(c);var f=Wa().Ia(Oaa(b.Rj,b.Vi));b=b.Vi;var g=Paa(Xa(),a.na),h=(new Ya).a();$a();var k=ab();$a();var l=w();$a();var p=bb();$a();var y=(new cb).a();return eb($a(),c,f,b,g,k,h,l,p,y).Lf(t(new u,function(a,b){return function(a){return Qaa(Raa(),b,a,fb().fv,gb())}}(a,e)),a.Tg)}return b.al?hb(ib(),jb(function(a,b,c){return function(){return Qaa(Raa(),b,c,fb().fv,gb())}}(a,e,c)),a.Tg):hb(ib(),jb(function(a,b){return function(){return b}}(a,
c)),a.Tg)}function Maa(a){if(x(a))return a.i;if(w()===a)return"Unknown";throw(new v).d(a);}function Saa(a,b){var c=b.Ya.c(),c=Naa(c),e=Wa().Ia(Oaa(b.Rj,b.Vi)),f=b.Vi,g=Paa(Xa(),a.na),h=(new Ya).a();$a();var k=ab();$a();var l=w();$a();var p=bb();$a();var y=(new cb).a(),c=eb($a(),c,e,f,g,k,h,l,p,y),e=Maa(b.Vi);return b.al?c.Lf(t(new u,function(a,b){return function(a){return Qaa(Raa(),b,a,fb().fv,gb())}}(a,e)),a.Tg):c}
function Naa(a){return 0<=(a.length|0)&&"file:"===a.substring(0,5)||0<=(a.length|0)&&"http:"===a.substring(0,5)||0<=(a.length|0)&&"https:"===a.substring(0,6)?a:0<=(a.length|0)&&"/"===a.substring(0,1)?"file:/"+a:"file://"+a}function Taa(a,b){b=b.Tk;var c=t(new u,function(){return function(a){return Uaa(kb().nm,a,(kb(),bb()))}}(a)),e=z();b=b.ka(c,e.s);c=ib();e=z();return lb(c,b,e.s,a.Tg).Lf(t(new u,function(){return function(){}}(a)),a.Tg)}
function Vaa(a,b,c){var e=(new mb).a();b.Vl&&(e.NS=!0);b.ql&&(e.LN=!0);var f=Oaa(b.Gl,b.Yk),g=Maa(b.Yk),h=b.Hk;if(x(h))return b=h.i,nb().eaa(a.na,b,c,f,g,e,(nb(),(new ob).a()));if(w()===h)return hb(ib(),jb(function(a,b,c,e,f,g){return function(){b.rk.IL(Waa(nb(),c,e,f,g,(nb(),(new ob).a())))}}(a,b,c,f,g,e)),a.Tg);throw(new v).d(h);}function Xaa(a){Yaa().JP(a.na);pb(qb(),kb());pb(qb(),Zaa());pb(qb(),rb());pb(qb(),$aa());pb(qb(),aba());pb(qb(),sb());pb(qb(),bba());return qb().cn()}
function Oaa(a,b){if(x(a))return a.i;if(w()===a)return x(b)&&(a=b.i,tb().kE.Ta(a).qa())?tb().kE.Ta(a).c().py().fa():"*/*";throw(new v).d(a);}function cba(a,b){a=a.fj;if(a.b())return!1;a=a.c();return ub(vb(),a,b)}function wb(a){a=a.fj;a.b()?a=w():(a=a.c(),a=(new A).d(ja(a)));return a.b()?null:a.c()}function dba(a,b){a=a.fj;if(a.b())return!1;a=a.c();return!!b.R(a)}function xb(a){return yb(a.Jd()).qa()}function zb(a){var b=Ab();a=yb(a.Jd());var c=Ab().et();return Bb(b,a,c).sb()}
function Cb(a,b){var c=a.Jd(),e=Db().wd;Eb(c,e,b);return a}function Fb(a){Ab();a=B(a.Jd().ca(),Db().wd);Ab().wb();return Gb(a)}function Hb(a,b){var c=a.ws();a=Ib(c,a);b.b()||(b=b.c(),Cb(a,b));return a}function Ib(a,b){Jb(a.Jd(),b.Jd());return a}function eba(a){if(Kb(a))return a.rc();throw Lb(Mb(),(new Nb).e("Missing metadata mapping for "+a));}
function Ob(a){var b=Pb(),c=C().dc;a.$l(Rb(new Sb,b,D(new F,c,"description"),Tb(new Ub,Vb().dc,"description","Human readable description of an element",G())))}function fba(a){var b=Pb(),c=C().dc;a.U9(Rb(new Sb,b,D(new F,c,"displayName"),Tb(new Ub,Vb().dc,"display name","Human readable name for an entity",G())))}function Wb(a){var b=Pb(),c=C().dc;a.Rp(Rb(new Sb,b,D(new F,c,"name"),Tb(new Ub,Vb().dc,"name","Name of the shape",G())))}
function Xb(a,b){a=a.Nu();if(a.b())return!1;a=a.c();return ub(vb(),a,b)}function gba(a){a=a.Nu();a.b()?a=w():(a=a.c(),a=(new A).d(ja(a)));return a.b()?null:a.c()}function Yb(a){a=Zb(a.ha(),n($b));if(a.b())return w();a=a.c();return(new A).d(a.ga)}function ac(a,b){a.ha().Wb(b);return a}function cc(a,b){a.ha().Ur(b);return a}
function dc(a,b,c){var e=a.HC.Ta(b);if(x(e))e=e.i;else{if(w()!==e)throw(new v).d(e);e=H(z(),G())}e.X(t(new u,function(a,b){return function(a){a.Gm=!0;a.NN.R(b)}}(a,c)));a.HC.Rl(b,H(z(),G()))}function ec(a){a.HC.Rr().tu(fc().ci).xb(t(new u,function(){return function(a){return!a.Gm}}(a))).X(t(new u,function(){return function(a){a.Gm=!0;gc(a.MN)}}(a)))}
function hba(a,b,c){var e=a.HC.Ta(b);if(x(e))e=e.i;else{if(w()!==e)throw(new v).d(e);e=H(z(),G())}a=a.HC;c=H(z(),(new J).aa([c]));var f=z();a.Rl(b,e.la(c,f.s))}function hc(a,b){a.De=(new A).d(b)}function iba(a,b){var c=(new ic).JE(jba());b=ja(b);a="application/json"===a?"application/ld+json":a;jc(c).parse(b,c.ys,"",a);return(new A).d((new kc).xU(c))}function kba(a,b){var c=(new ic).JE(jba());lba((new lc).xU(c),a,b);return c}
function mba(a){var b=(new A).d(a.lastIndexOf(".")|0),b=0<(b.i|0)?b:w();if(b.b())return w();b=1+(b.c()|0)|0;return(new A).d(a.substring(b))}function nba(a){return"json"===a?(new A).d(oba().Lga):"yaml"===a||"yam"===a||"yml"===a?(new A).d(oba().Pga):"raml"===a?(new A).d(oba().Oga):"openapi"===a?(new A).d(oba().Nga):"jsonld"===a||"amf"===a?(new A).d(oba().Mga):w()}function pba(a){var b=mc();a===b?b=!0:(b=nc(),b=a===b);if(b)return!0;b=oc();return a===b}
function qba(a,b,c,e){var f=b.aw(),g=C().zg.he;0<=(f.length|0)&&f.substring(0,g.length|0)===g?(f=b.aw(),g=C().zg.he,g=f.split(g).join("")):g=b.aw();var f=pc(qc(),G()),h=e.zv.Ta(g);if(x(h))h=h.i,f.Oe(b.aw(),g),g=(new A).d(h);else{if(w()!==h)throw(new v).d(h);h=e.zv.kb();a:{for(;h.Qa();){var k=h.Sa(),l=k;if(null===l)throw(new v).d(l);l=l.pa();if(0<=(g.length|0)&&g.substring(0,l.length|0)===l){k=(new A).d(k);break a}}k=w()}a:{if(x(k)&&(h=k.i,null!==h)){g=h.pa();h=h.Ba();f.Oe(b.aw(),g);g=(new A).d(h);
break a}if(w()===k){if(!(0<=(g.length|0)&&"_:"===g.substring(0,2)))throw Lb(Mb(),(new Nb).e("Cannot find validation spec for validation error:\n "+b));g=w()}else throw(new v).d(k);}}if(x(g)){g=g.i;sc()===c?(c=g.Uv,h=c.b()?g.Ad:c.c()):tc()===c?(c=g.Rv,h=c.b()?g.Ad:c.c()):(c=Wa().Ia(g.Ad),c.b()?(c=b.mL(),h=c.b()?"":c.c()):h=c.c());if(Wa().Ia(h).b()||""===h)c=b.mL(),h=c.b()?"Constraint violation":c.c();rba(g)&&b.mL().qa()&&(h=b.mL().c());c=f.R(b.aw());c=0<=(c.length|0)&&"http"===c.substring(0,4)?f.R(b.aw()):
""+C().zg.he+f.R(b.aw());f=f.R(b.aw());e=sba(f,e,"");tba||(tba=(new uc).a());g=tba;f=h;h=b.yO();a=uba(a,h);if(w()===a)throw Lb(Mb(),(new Nb).e("Cannot find node with validation error "+b.yO()));if(x(a)){h=a.i;g=vba(g,h,b);if(null===g)throw(new v).d(g);a=g.pa();g=g.Ba();h=h.k;k=Wa().Ia(b.CC());l=b.aw();b=vc(new wc,f,e,h,k,l,a,g,b)}else throw(new v).d(a);return(new A).d(vc(new wc,b.Ad,b.km,b.Wu,b.fw,c,b.og,b.ga,b.Yy))}return w()}
function sba(a,b,c){return b.P0.Ta(a).qa()?xc().vw:b.u3.Ta(a).qa()?xc().Eg:b.t3.Ta(a).qa()?xc().tb:wba(xc(),c)}function xba(a,b){var c=yc((new K).Y(a),"@id");if(x(c))return a=c.i.i,b=zc(),c=Ac().fi,(new A).d(L(a,b,c).ya);var c=Bc().I8,e="No @id declaration on node "+a,f=w();Cc(b,c,"",f,e,a.ga);return w()}function yba(a,b){b=b.x$;return""+(b.b()?"":b.c())+a}
function zba(a,b){b=b.uT.kb();a:{for(;b.Qa();){var c=b.Sa(),e=c;if(null===e)throw(new v).d(e);e=e.pa();if(0<=(a.length|0)&&a.substring(0,e.length|0)===e){c=(new A).d(c);break a}}c=w()}if(x(c)&&(b=c.i,null!==b))return c=b.pa(),b=b.Ba(),a.split(""+c+Dc(58)).join(b);if(w()===c)return a;throw(new v).d(c);}
function Ec(a,b){b=b.uT.kb();a:{for(;b.Qa();){var c=b.Sa(),e=c;if(null===e)throw(new v).d(e);e=e.Ba();if(0<=(a.length|0)&&a.substring(0,e.length|0)===e){c=(new A).d(c);break a}}c=w()}if(x(c)&&(b=c.i,null!==b))return c=b.pa(),b=b.Ba(),c=""+c+Dc(58),a.split(b).join(c);if(w()===c)return a;throw(new v).d(c);}
function Aba(a,b,c,e){var f=H(z(),(new J).aa(["Document","Fragment","Module","Unit"])),g=t(new u,function(){return function(a){var b=C().Zd;return Gc(D(new F,b,a))}}(a)),h=z(),f=f.ka(g,h.s),g=t(new u,function(a,b){return function(a){return Ec(a,b)}}(a,e)),h=z(),g=f.ka(g,h.s),h=z(),f=f.la(g,h.s).pg(),g=yc((new K).Y(b),"@type");if(x(g))return b=Hc(Ic(g.i.i),Jc()),b=b.b()?G():b.c(),c=t(new u,function(){return function(a){a=Hc(Ic(a),zc());a.b()?a=w():(a=a.c(),a=(new A).d(a.ya));return a.wa()}}(a)),e=
z(),c=b.md(c,e.s),b=c.xb(t(new u,function(a,b){return function(a){return!b.Ja(a)}}(a,f))),a=c.xb(t(new u,function(a,b){return function(a){return b.Ja(a)}}(a,f))).Ej(Kc()),c=z(),b.la(a,c.s);a=Bc().M8;f="No @type declaration on node "+b;g=w();Cc(e,a,c,g,f,b.ga);return G()}function Bba(a,b,c){b=(new K).Y(b);var e=Gc(Lc().Hb.t);b=yc(b,Ec(e,c));b.b()?a=w():(b=b.c(),e=Mc(),b=Nc(a,e,b.i),b=Hc(Ic(b),Pc()),b.b()?a=w():(b=b.c(),a=(new A).d(Cba(a,b,c))));return a.b()?Qc().Td:a.c()}
function Sc(a,b,c){M();var e=(new N).a();if(Tc(b.E))for(b=Uc(b.E.tf);b.Qa();){var f=b.Sa();a:{if(null!==f){var g=f.pa(),h=f.Ba();if(null!==h){Dba||(Dba=(new Vc).a());f=Dba.cj(g);f.b()||(f=f.c(),h.Ta(c).qa()&&(h=f.zf(Eba(h,c),a),h.b()||(h=h.c(),e.Wb(h))));break a}}throw(new v).d(f);}}return e}
var Nc=function Fba(b,c,e){var f=e.pb().nb;if(O().Nc===f){if(Wc(c))return e;var f=Jc(),g=Ac().fi;e=L(e,f,g).fa();return Fba(b,c,e)}return O().ua===f?(b=Pc(),f=Ac().fi,b=L(e,b,f),Xc().h(c)?yc((new K).Y(b),"@id").c().i:Pb().h(c)||Gba().h(c)||Yc().h(c)||Zc().h(c)||ad()===c?yc((new K).Y(b),"@value").c().i:e):e};
function Cba(a,b,c){var e=Hba();b.Bb.X(t(new u,function(a,b,c){return function(e){var l=Hc(Ic(e.Da),zc());l.b()?l=w():(l=l.c().ya,l=(new A).d(zba(l,b)));if(!l.b()&&(l=l.c(),l=a.y5().cj(l),!l.b())){l=l.c();l=Iba(c,l);e=e.i;var p=Jc();L(e,p,b).X(t(new u,function(a,b,c){return function(e){var f=Pc();e=L(e,f,b);var f=(new K).Y(e),g=Gc(Mc().jr.t),f=yc(f,Ec(g,b)).c();e=(new K).Y(e);g=Gc(Mc().rf.t);e=yc(e,Ec(g,b)).c();g=Mc().jr.ja;f=Nc(a,g,f.i);g=zc();f=L(f,g,b).ya;g=Mc().rf.ja;e=Nc(a,g,e.i);g=zc();c.zf(f,
L(e,g,b).ya)}}(a,b,l)))}}}(a,c,e)));return e}function Jba(a){a=a.Gg;if(bd(a))a:{a=a.Vd;for(var b=kb().nm.W,b=(new dd).Qd(b).Rb.gf();b.Qa();){var c=b.Sa(),e=c,f=B(B(e.g,ed().vj).g,fd().wz);if(f=gd(f)){f=Hc(Ic(a.Bd),Pc());f.b()?f=w():(f=f.c(),f=(new A).d(f.Bb));var f=f.b()?G():f.c(),g=hd,h=new Kba;h.Q$=e;f=g(f,h);f.b()?f=!1:(f=id(f.c().i),f.b()?f=!1:(f=f.c().ya,e=B(e.g,ed().Tm).G,f=f===(e.b()?null:e.c())))}if(f){a=(new A).d(c);break a}}a=w()}else a=w();return a}
function Lba(a){var b=jd(a.rb),b=b.b()?a.rb.k:b.c(),b=kd(ta(),b,"/",0),b=ld((new md).vc(b)),c=jd(a.rb),b=(c.b()?a.rb.k:c.c()).split(b).join(""),c=Zb(a.rb.E,n(nd));if(c.b())c=w();else var c=c.c().Xb,e=pc(fc().db,G()),c=(new A).d(pd(c,e,qd(function(){return function(a,b){a=(new P).N(a,b);b=a.ep;var c=a.rq;if(null!==c){var e=c.pa(),c=c.Ba();if(null!==c)return b.Zb((new P).N(c.pa(),e))}throw(new v).d(a);}}(a))));c=c.b()?pc(fc().db,G()):c.c();e=(new rd).a();b=B(a.rb.g,ed().qc).ae(pc(fc().db,G()),qd(function(a,
b,c,e){return function(a,f){var y=(new P).N(a,f);a=y.ep;f=y.rq;if(null!==a&&sd(f)){y=jd(f);(y.b()?0:-1!==(y.c().indexOf(b)|0))?(y=jd(f),y=(y.b()?f.k:y.c()).split(b).join("")):(y=jd(f),y=(y.b()?f.k:y.c()).split("file://").join(""));vd(f)?(f=B(f.g,wd().uh).G,f=f.b()?null:f.c()):f=f.k;if(c.Ta(f).qa()){var I=c.R(f),y=(new P).N(I,y);return a.Zb((new P).N(f,y))}I=e.os("uses_");y=(new P).N(I,y);return a.Zb((new P).N(f,y))}a=y.ep;if(null!==a)return a;throw(new v).d(y);}}(a,b,c,e)));return xd(a.rb).ae(b,qd(function(){return function(a,
b){var c=(new P).N(a,b);a=c.ep;b=c.rq;if(null!==a&&null!==b)return c=B(b.g,zd().uh).G,c=c.b()?null:c.c(),b=B(b.g,zd().gd).G,b=(new P).N(b.b()?null:b.c(),""),a.Zb((new P).N(c,b));throw(new v).d(c);}}(a)))}
function Mba(a,b){var c=z(),e=[(new Nba).pU(a.rb,b,a.Xb)],c=H(c,(new J).aa(e)),e=a.rb,f=a.Xb,g=B(e.g,ed().Mc),h=new Oba,k=z(),g=g.$b(h,k.s),e=g.Fa()?H(z(),(new J).aa([Pba(g,e,b,f)])):G(),f=z(),c=c.la(e,f.s);if(xd(a.rb).Fa()){e=z();f=new Bd;if(null===a)throw Lb(Mb(),null);f.l=a;f.yL=b;a=H(e,(new J).aa([f]))}else a=G();b=z();return c.la(a,b.s)}
function Cd(a,b){a=Dd(a.ca(),b);a.b()?a=w():(a=Zb(a.c().t.E,n(Fd)),a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd)),a=(new A).d(a.b()?Gd():a.c()));return a.b()?Gd():a.c()}function Qba(a,b){var c=B(a.rb.g,ed().Mc).Ib(t(new u,function(a,b){return function(a){if(Kd(a))return a.k===b;throw(new v).d(a);}}(a,b)));c.b()?c=w():(c=c.c(),c=(new A).d((new P).N(a.rb,c)));if(c.b()){var c=B(a.rb.g,ed().qc),e=Rba(b),f=z(),c=c.$b(e,f.s);a=Sba(a);a=hd(c,a)}else a=c;return a.b()?kb().nm.sK(b):a}
function Md(a,b){a=Qba(a,b);if(a.b())throw Lb(Mb(),(new Nb).e("Cannot find node mapping "+b));return a.c()}function Tba(a,b){return xd(a).Fa()?H(z(),(new J).aa([Uba(b,a)])):G()}
function Od(a,b){var c=C().Gb;if(a===Gc(D(new F,c,"guid")))return"guid";c=C().mj.he;if(-1!==(a.indexOf(c)|0))return b=C().mj.he,a=kd(ta(),a,b,0),a=ld((new md).vc(a)),"anyURI"===a?"uri":"anyType"===a?"any":a;c=Pd(b).ah.Tq();a:{for(;c.Qa();){var e=c.Sa();if(-1!==(a.indexOf(e)|0)){c=(new A).d(e);break a}}c=w()}if(x(c))return c=c.i,b=b.R(c)+".",a.split(c).join(b);if(w()===c)return a=kd(ta(),a,"#",0),a=ld((new md).vc(a)),a=kd(ta(),a,"/",0),ld((new md).vc(a));throw(new v).d(c);}
function Vba(a,b){var c=pc(fc().db,G()),c=(new Qd).d(c);xd(b).X(t(new u,function(a,b){return function(a){var c=b.ta,e=B(a.g,zd().uh).G,e=e.b()?null:e.c();a=B(a.g,zd().gd).G;a=a.b()?null:a.c();b.ta=c.Zb((new P).N(e,a))}}(a,c)));B(b.g,wd().BD).X(t(new u,function(a,b){return function(a){var c=b.ta,e=B(a.g,Sd().uh).G,e=e.b()?null:e.c();a=B(a.g,Sd().Kp).G;a=a.b()?null:a.c();b.ta=c.Zb((new P).N(e,a))}}(a,c)));return c.ta}
function Ud(a){var b=Pb(),c=C().Kc;a.PN(Rb(new Sb,b,D(new F,c,"mergePolicy"),Tb(new Ub,Vb().Kc,"merge policy","Indication of how to merge this graph node when applying a patch document",G())));b="insert delete update upsert ignore fail".split(" ");if(0===(b.length|0))b=Yd();else{for(var c=Zd(new ee,Yd()),e=0,f=b.length|0;e<f;)fe(c,b[e]),e=1+e|0;b=c.gb}a.ON(b)}
function Wba(a){var b=Pb(),c=C().dc;a.k_(Rb(new Sb,b,D(new F,c,"name"),Tb(new Ub,Vb().dc,"name","Name of the node mappable element",G())))}
function Xba(a){var b=Pb(),c=C().Kc;a.Zxa(Rb(new Sb,b,D(new F,c,"typeDiscriminatorMap"),Tb(new Ub,Vb().Kc,"type discriminator map","Information about the discriminator values in the source AST for the property mapping",G())));b=Pb();c=C().Kc;a.$xa(Rb(new Sb,b,D(new F,c,"typeDiscriminatorName"),Tb(new Ub,Vb().Kc,"type discriminator name","Information about the field in the source AST to be used as discrimintaro in the property mapping",G())))}function Yba(a){a.J$(pc(fc().db,G()))}
function xd(a){return B(a.ca(),ge().ch)}var aca=function Zba(b,c){var e=b.ak().Ib(t(new u,function(b,c){return function(b){return b.k===c}}(b,c)));if(x(e)&&(e=e.i,he(e)))return(new A).d(e);var e=b.Pe(),f=new $ba,g=z(),e=e.$b(f,g.s);c=t(new u,function(b,c){return function(b){return Zba(b,c)}}(b,c));f=z();c=e.ka(c,f.s).xb(t(new u,function(){return function(b){return b.qa()}}(b)));b=t(new u,function(){return function(b){return b.c()}}(b));e=z();return c.ka(b,e.s).pc()};
function bca(a,b,c,e,f){b=b.eb;var g=t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();var e=qe(),c=L(c,e,b);if(0<=(c.length|0)&&"("===c.substring(0,1)&&re(ta(),c,")")){var e=c.split("(").join("").split(")").join(""),f=kd(ta(),e,"\\.",0),e=se(ye(),f);if(!e.b()&&null!==e.c()&&0===e.c().Ge(2))return f=e.c().jb(0),e=e.c().jb(1),(new A).d((new Be).Er((new P).N((new A).d(f),e),c,a));e=se(ye(),f);if(!e.b()&&null!==e.c()&&0===e.c().Ge(1))return e=e.c().jb(0),(new A).d((new Be).Er((new P).N(w(),
e),c,a))}else if(0<=(c.length|0)&&"x-"===c.substring(0,2)){e=c.split("x-").join("");f=kd(ta(),e,"-",0);e=se(ye(),f);if(!e.b()&&null!==e.c()&&0===e.c().Ge(2))return f=e.c().jb(0),e=e.c().jb(1),(new A).d((new Be).Er((new P).N((new A).d(f),e),c,a));e=se(ye(),f);if(!e.b()&&null!==e.c()&&0===e.c().Ge(1))return e=e.c().jb(0),(new A).d((new Be).Er((new P).N(w(),e),c,a))}return w()}throw(new v).d(a);}}(a,f)),h=Ce().s;b=De(b,g,h);g=(new cca).kba(a);h=Ce();b=b.$b(g,h.s);e=t(new u,function(a,b,c,e){return function(a){if(null!==
a){var f=a.Co,g=a.yg,h=a.th;if(null!==f){a=f.pa();var f=f.Ba(),k;if(x(a)){k=a.i;var ua=dca(b,k+"."+f);k=x(ua)?(new Ee).d(ua.i):(new Fe).gm((new Nb).e("Cannot resolve external prefix "+k))}else k=C().zg,k=(new Ee).d(Gc(D(new F,k,f)));if(Ge(k))return k=k.i,ua=c.k,a.b()?a=w():(a=a.c(),a=(new A).d(a+"/")),a=""+ua+(a.b()?"/":a.c())+f,f=eca(new He,h,(new A).d(a),(new Ie).a(),e).Ir(),ua=Ke(M(),h),ua=(new Le).P((new Q).a(),ua),k=Te(ua,k),M(),ua=(new N).a(),k=Ue(k,g,ua),M(),ua=(new N).a(),ua=(new af).P((new Q).a(),
ua),a=Te(ua,a),ua=bf().Zj,f=ff(a,ua,f),a=bf().Rf,f=ff(f,a,k),a=bf().$,g=Eb(f,a,g),h=Ke(M(),h),h=cc(g,h),(new A).d(h);if(nf(k)){k=k.ms;ua=b.n3.Ta(a.b()?"":a.c());if(x(ua)){ua=ua.i;k=c.k;var Ia=re(ta(),c.k,"/")||re(ta(),c.k,"#")?"":"/";a.b()?a=w():(a=a.c(),a=(new A).d(a+"/"));k=k+Ia+(a.b()?"/":a.c())+f;a=eca(new He,h,(new A).d(k),(new Ie).a(),e).Ir();ua=B(ua.g,wd().uh).G;ua=ua.b()?null:ua.c();f=re(ta(),ua,"#")||re(ta(),ua,"/")?""+ua+f:ua+"/"+f;ua=Ke(M(),h);ua=(new Le).P((new Q).a(),ua);f=Te(ua,f);M();
ua=(new N).a();f=Ue(f,g,ua);M();ua=(new N).a();ua=(new af).P((new Q).a(),ua);k=Te(ua,k);ua=bf().Zj;a=ff(k,ua,a);k=bf().Rf;f=ff(a,k,f);a=bf().$;g=Eb(f,a,g);h=Ke(M(),h);h=cc(g,h);return(new A).d(h)}if(w()===ua)return g=of().N8,f=c.k,a=k.Xm(),k=w(),Cc(e,g,f,k,a,h.ga),w();throw(new v).d(ua);}throw(new v).d(k);}}throw(new v).d(a);}}(a,e,c,f));f=pf();e=b.ka(e,f.s);a=(new fca).kba(a);f=pf();a=e.$b(a,f.s);a.Fa()&&(a=a.ce(),e=Lc().Pm(),qf(c,e,a))}
function gca(a,b,c,e,f,g){var h=of().p6,k=B(c.g,sf().Kh).G,k=(new A).d(k.b()?null:k.c()),l=B(c.g,sf().Kh).G,l=l.b()?null:l.c();c=B(c.g,sf().$).G;e="Cannot find expected range for property "+l+" ("+(c.b()?null:c.c())+"). Found '"+f+"', expected '"+e+"'";tf();f=g.ga;f=(new A).d((new uf).Ui(zf(0,Af(Bf(),f.vf,f.Ef,f.ag,f.fg))));g=(new Cf).e(g.ga.Of).Nu();a.Hc(h.k,b,k,e,f,xc().tb,g)}function hca(a,b,c,e){var f=of().H8;b="Cannot find fragment "+b;var g=w();Cc(a,f,c,g,b,e.ga)}
function Df(a,b,c,e){var f=of().L8;b="Cannot find class vocabulary term "+b;var g=w();Cc(a,f,c,g,b,e.ga)}function ica(a,b,c,e,f){var g=of().SI;c="Property: '"+c+"' not supported in a "+e+" node";e=w();Cc(a,g,b,e,c,f.ga)}function jca(a,b,c,e,f){var g=of().Q5;c=(new A).d(c);e="Cannot find property "+e+" in mapping range";var h=Zb(f,n(Fd));f=Zb(f,n($b));f.b()?f=w():(f=f.c(),f=(new A).d(f.ga));a.Hc(g.k,b,c,e,h,xc().tb,f)}
function kca(a,b,c,e,f){var g=of().aZ;c=(new A).d(c);e="Cannot find property "+e+" in mapping range";var h=Zb(f,n(Fd));f=Zb(f,n($b));f.b()?f=w():(f=f.c(),f=(new A).d(f.ga));a.Hc(g.k,b,c,e,h,xc().tb,f)}function lca(a,b,c,e){var f=of().aZ,g=(new A).d(Gc(sf().Jg.t));b="Cannot find property range term "+b;var h=Zb(e,n(Fd));e=Zb(e,n($b));e.b()?e=w():(e=e.c(),e=(new A).d(e.ga));a.Hc(f.k,c,g,b,h,xc().tb,e)}
function Jf(a,b,c,e){if("dialect"===b)var f=a.Bk;else if("library"===b)f=a.qCa;else if("fragment"===b)f=a.IG;else if("nodeMapping"===b)f=a.Sca;else if("propertyMapping"===b)f=a.MDa;else if("documentsMapping"===b)f=a.Cza;else{if("documentsMappingOptions"!==b)throw(new v).d(b);f=a.Dza}for(var g=Pd(e.eb),h=Pf(),h=Qf(h),h=Rf(g,h),g=g.ah.Tq();g.Qa();){var k=g.Sa(),l=zc(),p=Ac().fi;h.Ic(L(k,l,p).ya)}h.lc().X(t(new u,function(a,b,c,e,f){return function(g){if(!(0<=(g.length|0)&&"("===g.substring(0,1)&&re(ta(),
g,")")||0<=(g.length|0)&&"x-"===g.substring(0,2))){var h=b.Ta(g);if(!x(h))if(w()===h)ica(a,c,g,e,f);else throw(new v).d(h);}}}(a,f,c,b,e)));f.X(t(new u,function(a,b,c,e){return function(f){if(null!==f){var g=f.pa();f=!!f.Ba();for(var h=Pd(b.eb),k=Pf(),k=Qf(k),k=Rf(h,k),h=h.ah.Tq();h.Qa();){var l=h.Sa(),p=zc(),db=Ac().fi;k.Ic(L(l,p,db).ya)}k=k.lc();f&&!k.Ja(g)&&(f=of().J8,g="Property: '"+g+"' mandatory in a "+e+" node",k=w(),Cc(a,f,c,k,g,b.ga))}else throw(new v).d(f);}}(a,e,c,b)))}
function Uf(a){var b=a.pb().nb,c=O().vq;if(b===c)return Zf(),b=zc(),c=Ac().fi,a=L(a,b,c).ya,(new $f).d(a);Zf();return(new ag).d(a)}function mca(a,b){if(he(b)){b=[b.k];if(0===(b.length|0))return Yd();a=Zd(new ee,Yd());for(var c=0,e=b.length|0;c<e;)fe(a,b[c]),c=1+c|0;return a.gb}if(bg(b))return b=B(b.g,cg().Jg),a=t(new u,function(){return function(a){a=a.G;return a.b()?null:a.c()}}(a)),c=z(),b.ka(a,c.s).pg();throw(new v).d(b);}
function nca(a,b,c,e){if("vocabulary"===b)var f=a.lHa;else if("classTerm"===b)f=a.Oya;else{if("propertyTerm"!==b)throw(new v).d(b);f=a.NDa}for(var g=Pd(e.eb),h=Pf(),h=Qf(h),h=Rf(g,h),g=g.ah.Tq();g.Qa();){var k=g.Sa(),l=zc(),p=Ac().fi;h.Ic(L(k,l,p).ya)}h.lc().X(t(new u,function(a,b,c,e,f){return function(g){var h=b.Ta(g);if(!x(h))if(w()===h)ica(a,c,g,e,f);else throw(new v).d(h);}}(a,f,c,b,e)))}
function oca(a){if(dg()===a||eg()===a||fg()===a||gg()===a)return"string";if(jg()===a||og()===a)return"integer";if(pg()===a||qg()===a)return"number";if(rg()===a)return"boolean";if(sg()===a||tg()===a||ug()===a||vg()===a)return"string";if(wg()===a)return"array";if(xg()===a)return"object";if(Dg()===a)return"file";if(Eg()===a)return"null";if(Fg()===a)return"number";if(Gg()===a)throw Lb(Mb(),(new Hg).e("Undefined type def"));throw(new v).d(a);}
function pca(a,b){qca().LG();var c=a.k;M();var e=(new N).a(),e=(new Ig).P((new Q).a(),e),f=z(),g;a.ha().Wb((new Jg).a());if(B(a.ca(),Pg().$).G.b()){g=Qg.prototype.vG.call(a);g=Te(g,a.k);M();var h=(new N).a();g=Ue(g,"root",h)}else{g=B(a.ca(),Pg().$).G;g=g.b()?null:g.c();if(null===g)throw(new Rg).a();Sg(Tg(),".*/.*",g)?(g=Qg.prototype.vG.call(a),g=Te(g,a.k),M(),h=(new N).a(),g=Ue(g,"root",h)):g=a}f=H(f,(new J).aa([g]));g=a.Mg;h=z();f=f.la(g,h.s);g=Ug().Mc;e=Vg(e,g,f);f=rca().ba;nb();g=(new mb).a();
b=Waa(nb(),e,"application/schema+json",f,g,b);Te(a,c);c=a.ha();f=c.jf;Wg();e=Yg(new Zg,(new $g).a());for(f=f.Lb;!f.b();)h=g=f.fa(),!1!==!(h&&h.$classData&&h.$classData.v.J7||h&&h.$classData&&h.$classData.v.G7||h&&h.$classData&&h.$classData.v.I7)&&ah(e,g),f=f.sa();c.jf=e.gb;a.ha().Wb((new eh).e(b));return b}function sca(a){qca().LG();return Waa(nb(),fh(hh(),a,"application/json"),"application/payload+json",ih().ba,(nb(),(new mb).a()),(nb(),(new ob).a()))}
function tca(a){var b=!1,c=null,e=B(a.g,jh().Sd).G;e.b()?e=w():(e=e.c(),e=(new A).d(uca(kh(),e,!1)));if(x(e)&&(b=!0,c=e,"application/json"===c.i))return a=B(a.g,lh().Ho),sca(a);if(b&&"application/xml"===c.i)return"";if(b)return a=B(a.g,jh().Sd).G,a.b()?null:a.c();a=B(a.g,lh().Ho);return sca(a)}
function vca(a){qca().LG();var b=nb();M();var c=(new N).a(),c=(new mh).P((new Q).a(),c),e;if(B(a.ca(),Pg().$).G.b()){e=Qg.prototype.vG.call(a);e=Te(e,a.k);M();var f=(new N).a();e=Ue(e,"Root",f)}else{e=B(a.ca(),Pg().$).G;e=e.b()?null:e.c();if(null===e)throw(new Rg).a();Sg(Tg(),"type",e)?(e=Qg.prototype.vG.call(a),e=Te(e,a.k),M(),f=(new N).a(),e=Ue(e,"Root",f)):e=a}f=Ug().Mc;b=Waa(b,nh(c,f,e),"application/raml",nc().ba,(nb(),(new mb).a()),(nb(),(new ob).a()));c=a.ha();f=c.jf;Wg();e=Yg(new Zg,(new $g).a());
for(f=f.Lb;!f.b();){var g=f.fa();!1!==!(g&&g.$classData&&g.$classData.v.K7)&&ah(e,g);f=f.sa()}c.jf=e.gb;c=a.ha();f=c.jf;Wg();e=Yg(new Zg,(new $g).a());for(f=f.Lb;!f.b();)g=f.fa(),!1!==!(g&&g.$classData&&g.$classData.v.H7)&&ah(e,g),f=f.sa();c.jf=e.gb;a.ha().Wb((new oh).e(b));return b}
function wca(a,b,c,e,f){var g=(new ph).e("\\{[^\\}]*\\{"),h=G(),g=(new qh).Di(g.ia,h),h=(new ph).e("\\}[^\\{]*\\}"),k=G(),h=(new qh).Di(h.ia,k);if(xca(g,a).qa()||xca(h,a).qa())a=rh().b9,e=(new A).d(e),Cc(f,a,c,e,"Invalid path template syntax",b.ga)}function yca(a,b,c,e,f){a=zca(new sh,c,"examples",Wa().Ia(b.k),t(new u,function(a,b){return function(a){return b.AF(a)}}(a,b)),Aca(e,b),f).fh();a.Fa()&&(c=th().Vc,qf(b,c,a))}
function Bca(a,b,c,e,f,g){var h=Dd(b.ca(),th().Vc);if(!h.b()){h=h.c();a=Cca(g,B(b.ca(),th().Vc)).jn(t(new u,function(){return function(a){var b=Dca(a.g),c=lh().$;return uh(b,c)?!1:!yb(a).qa()}}(a)));if(null===a)throw(new v).d(a);b=a.pa();a=a.Ba();var h=h.t.t.Tb,k=new Eca,l=z(),h=Cca(g,h.$b(k,l.s)),k=b.pc();k.b()||(k=k.c(),vh(c,Fca("example",k,e,g)));b=0<b.Ge(1)?h.sa():w().wa();h=z();(new A).d(vh(c,(new wh).GE("examples",a.la(b,h.s),e,f,g)))}}
function Gca(a,b,c,e){var f=(new K).Y(b),g=a.l,h=xh().vl;Bh(f,"pattern",Ch(Dh(g,h,a.l.va),c));f=(new K).Y(b);g=a.l;h=xh().Cq;Bh(f,"minLength",Ch(Dh(g,h,a.l.va),c));f=(new K).Y(b);g=a.l;h=xh().Aq;Bh(f,"maxLength",Ch(Dh(g,h,a.l.va),c));f=yc((new K).Y(b),"minimum");f.b()||(g=f.c(),h=(new Eh).Vb(g.i,a.l.va),f=xh().jj,h=h.Hf(),g=Ke(M(),g),Fh(c,f,h,g));f=yc((new K).Y(b),"maximum");f.b()||(g=f.c(),h=(new Eh).Vb(g.i,a.l.va),f=xh().ij,h=h.Hf(),g=Ke(M(),g),Fh(c,f,h,g));f=(new K).Y(b);g=a.l;h=xh().Vx;Bh(f,"exclusiveMinimum",
Ch(Dh(g,h,a.l.va),c));f=(new K).Y(b);g=a.l;h=xh().Ux;Bh(f,"exclusiveMaximum",Ch(Dh(g,h,a.l.va),c));f=(new K).Y(b);g=a.l;h=xh().nv;Bh(f,"multipleOf",Ch(Dh(g,h,a.l.va),c));return Hca(Ica(c,e,a.l.va),b)}
function Jca(a,b,c){var e=Dd(a,xh().Cq);e.b()||(e=e.c(),(new A).d(vh(b,Gh(Hh(),"minLength",e,w(),c))));e=Dd(a,xh().Aq);e.b()||(e=e.c(),(new A).d(vh(b,Gh(Hh(),"maxLength",e,w(),c))));c=Dd(a,xh().Vx);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,Kh((new Cf).e("exclusiveMinimum")),c,w()))));a=Dd(a,xh().Ux);a.b()||(a=a.c(),(new A).d(vh(b,Ih(new Jh,Kh((new Cf).e("exclusiveMaximum")),a,w()))))}
function Kca(a){var b=a.t.t.t,c=b;0<=(c.length|0)&&"^"===c.substring(0,1)&&(b=(new ph).e(b),c=b.ia.length|0,b=Lh(Mh(),b.ia,1,c));re(ta(),b,"$")&&(b=(new ph).e(b),b=Lca(b,1));b=Nh(new Oh,b,(new N).a());b=Ph(new Qh,b,a.t.E);return Rh(new Sh,a.xc,b)}function Mca(a){return"date-only"===a?"date":"time-only"===a?"time":"datetime-only"===a?"date-time":"datetime"===a?"date-time":"rfc3339"===a?"date-time":a}
function Nca(a,b,c){var e=yc((new K).Y(b),"pattern");if(!e.b()){var e=e.c(),f=e.i,g=qe(),g=f=L(f,g,a.l.Mb());0<=(g.length|0)&&"^"===g.substring(0,1)||(f="^"+f);re(ta(),f,"$")||(f+="$");R();f=Th(R(),f);f=(new Eh).Vb(f,a.l.Mb()).Hf();g=Ke(M(),e);f=Nh(new Oh,f.t,g);g=xh().vl;e=Ke(M(),e);Fh(c,g,f,e)}e=(new K).Y(b);f=a.l;g=xh().Cq;Bh(e,"minLength",Uh(Ch(Dh(f,g,a.l.Mb()),c)));e=(new K).Y(b);f=a.l;g=xh().Aq;Bh(e,"maxLength",Uh(Ch(Dh(f,g,a.l.Mb()),c)));var e=(new K).Y(b),f=Kh((new Cf).e("exclusiveMinimum")),
g=a.l,h=xh().Vx;Bh(e,f,Ch(Dh(g,h,a.l.Mb()),c));b=(new K).Y(b);e=Kh((new Cf).e("exclusiveMaximum"));f=a.l;g=xh().Ux;Bh(b,e,Ch(Dh(f,g,a.l.Mb()),c))}function Oca(a){return Vh(a)?Wa().Ia(B(a.ea,Wh().wf)).b():!1}
function Pca(a,b,c,e){b.X(t(new u,function(a,b,c){return function(e){if(Xh(e)&&(Yh(e.ha(),n(Zh))||Yh(e.ha(),n(Qca))))a.QN().Mb().Vs(rh().cJ,e.k,(new A).d(Gc(Pg().ld.t)),"Invalid reference to JSON Schema",(new A).d((new uf).Ui(b)),c.b()?$h(e):c);else if(ai(e)){var l=a.QN().Mb(),p=rh().ZZ,y=e.k,I=(new A).d(Gc(Pg().ld.t)),E=(new A).d((new uf).Ui(b));e=c.b()?$h(e):c;l.Hc(p.k,y,I,"Invalid reference to XML Schema",E,xc().tb,e)}}}(a,e,c)))}
function Rca(a,b,c,e){var f=b.rc(),g=th();null!==f&&f===g||bi(b)&&B(b.ea,ci().Rg).b()||di(b)&&B(b.ea,xh().af).G.b()||Oca(b)||c.X(t(new u,function(a,b,c){return function(e){if(Xh(e)&&(Yh(e.ha(),n(Zh))||Yh(e.ha(),n(Qca))))a.QN().Mb().Vs(rh().cJ,e.k,(new A).d(Gc(Pg().ld.t)),"Inheritance from JSON Schema",(new A).d((new uf).Ui(b)),c.Yb());else if(ai(e)){var f=a.QN().Mb(),g=rh().ZZ;e=e.k;var E=(new A).d(Gc(Pg().ld.t)),V=(new A).d((new uf).Ui(b)),da=c.Yb();f.Hc(g.k,e,E,"Inheritance from XML Schema",V,xc().tb,
da)}}}(a,e,b)))}function Sca(a){try{var b=Gg();ei();ei();var c=fi(ei(),a,"",b,!1),e=Tca();return null!==c&&c===e}catch(f){a=gi(Mb(),f);if(hi(a))return!1;throw f;}}
function Uca(a){if("nil"===a||""===a||"null"===a){M();var b=(new N).a();return(new ii).P((new Q).a(),b)}if("any"===a)return M(),b=(new N).a(),a=(new Q).a(),(new oi).P(a,b);if("string"===a||"integer"===a||"number"===a||"boolean"===a||"datetime"===a||"datetime-only"===a||"time-only"===a||"date-only"===a){M();b=(new N).a();b=(new pi).P((new Q).a(),b);a=Vca(qi(),a);var c=xh().af;return Eb(b,c,a)}if("array"===a)return M(),b=(new N).a(),(new ri).P((new Q).a(),b);if("object"===a)return M(),b=(new N).a(),
(new si).P((new Q).a(),b);if("union"===a)return M(),b=(new N).a(),(new ti).P((new Q).a(),b);if("file"===a)return M(),b=(new N).a(),(new ui).P((new Q).a(),b);throw(new v).d(a);}function Wca(a,b){if(-1<(a.indexOf("|")|0)||-1<(a.indexOf("[")|0)||-1<(a.indexOf("{")|0)||-1<(a.indexOf("]")|0)||-1<(a.indexOf("}")|0)||0<=(a.length|0)&&"\x3c\x3c"===a.substring(0,2)&&re(ta(),a,"\x3e\x3e"))return!1;var c=Gg();ei();a=fi(ei(),a,"",c,b);b=Gg();return!(null!==a&&a===b)}
function Xca(a,b,c){b=yc((new K).Y(b),"securitySchemes");if(!b.b()){var e=b.c(),f=e.i.pb().nb;if(O().ua===f)b=e.i,e=Pc(),L(b,e,a.Mb()).Bb.X(t(new u,function(a,b){return function(c){var e=a.Mb().le();c=Yca(Zca(),c,qd(function(a,b,c){return function(a,e){var f=vi().$;e=Nh(new Oh,e,Ke(M(),b.Da.we()));var g=Ke(M(),b.Da);Fh(a,f,e,g);return yi(a,c,H(z(),G()))}}(a,c,b)),a.Mb()).LH();var f=(new zi).a();return Ai(e,ac(c,f))}}(a,c)));else if(O().yd!==f){a=a.Mb();b=rh().ZR;var f="Invalid type "+f+" for 'securitySchemes' node.",
e=e.i,g=w();Cc(a,b,c,g,f,e.ga)}}}function $ca(a,b){if(x(a)){a=a.i;if(-1<(a.indexOf("#")|0))return kd(ta(),a,"#",0).j[1].trim();if(-1===(a.indexOf("/")|0)&&-1!==(a.indexOf(":")|0))return kd(ta(),a,":",0).j[1].trim();a=kd(ta(),a,"/",0);return ld((new md).vc(a)).trim()}if(w()===a)return b;throw(new v).d(a);}
function ada(a){var b=Pb(),c=C().cb;a.nya(Rb(new Sb,b,D(new F,c,"pattern"),Tb(new Ub,Bi().cb,"pattern","Pattern constraint",G())));b=Zc();c=C().cb;a.kya(Rb(new Sb,b,D(new F,c,"minLength"),Tb(new Ub,Bi().cb,"min. length","Minimum lenght constraint",G())));b=Zc();c=C().cb;a.iya(Rb(new Sb,b,D(new F,c,"maxLength"),Tb(new Ub,Bi().cb,"max. length","Maximum length constraint",G())));b=Ci();c=C().cb;a.lya(Rb(new Sb,b,D(new F,c,"minInclusive"),Tb(new Ub,Bi().cb,"min. inclusive","Minimum inclusive constraint",
G())));b=Ci();c=C().cb;a.jya(Rb(new Sb,b,D(new F,c,"maxInclusive"),Tb(new Ub,Bi().cb,"max. inclusive","Maximum inclusive constraint",G())));b=Yc();c=C().cb;a.gya(Rb(new Sb,b,D(new F,c,"minExclusive"),Tb(new Ub,Bi().cb,"min. exclusive","Minimum exclusive constraint",G())));b=Yc();c=C().cb;a.fya(Rb(new Sb,b,D(new F,c,"maxExclusive"),Tb(new Ub,Bi().cb,"max. exclusive","Maximum exclusive constraint",G())));b=Pb();c=C().Gb;a.hya(Rb(new Sb,b,D(new F,c,"format"),Tb(new Ub,Vb().Gb,"format","Format constraint",
G())));b=Ci();c=C().Gb;a.mya(Rb(new Sb,b,D(new F,c,"multipleOf"),Tb(new Ub,Vb().Gb,"multiple of","Multiple of constraint",G())));Di();b=(new J).aa([a.vl,a.Cq,a.Aq,a.jj,a.ij,a.Vx,a.Ux,a.sn,a.nv]);c=Di().s;a.oya(Ei(b,c))}function Fi(a){var b=Gi(),c=C().dc;a.QB(Rb(new Sb,b,D(new F,c,"documentation"),Tb(new Ub,Vb().dc,"documentation","Documentation for a particular part of the model",G())))}
function Ji(a){var b=(new Ki).Ld(lh()),c=C().bb;a.hy(Rb(new Sb,b,D(new F,c,"examples"),Tb(new Ub,Vb().bb,"examples","Examples for a particular domain element",G())))}function Li(a){return B(a.ca(),xh().sn)}function bda(a,b){var c=a.X2.Ib(t(new u,function(a,b){return function(a){return a.k===b.k}}(a,b)));if(!x(c)){c=a.X2;b=H(z(),(new J).aa([b]));var e=Mi();a.X2=c.la(b,e.s)}}
function cda(a,b){var c=a.V2.Ib(t(new u,function(a,b){return function(a){return a.k===b.k}}(a,b)));if(!x(c)){c=a.V2;b=H(z(),(new J).aa([b]));var e=Mi();a.V2=c.la(b,e.s)}}function dda(a){return!!(a&&a.$classData&&a.$classData.v.Fz)}function eda(a){return!!(a&&a.$classData&&a.$classData.v.jt)}function fda(a,b){var c=id(b.i),e=x(c)?c.i.ya:gda(hda(),b.i),c=Pg().Jj,e=Nh(new Oh,e,(new N).a());b=Ke(M(),b);Fh(a,c,e,b)}
function ida(a,b,c){c=(new P).N(b,c);b=c.ep;var e=c.rq;if(Xh(b)&&Xh(e))c=B(e.ca(),th().Vc),a=t(new u,function(){return function(a){return jda(a)}}(a)),e=z(),a=c.ka(a,e.s),c=th().Vc,qf(b,c,a);else throw(new v).d(c);}
function kda(a,b,c,e,f){if(e.Zn.Ja(a.k))return f=B(a.ca(),a.Ch()).G,f.b()||f.c(),lda(c,a,b);if(null!==a&&yb(a).qa()){var g=B(a.ca(),a.Ch()).G;g.b()||g.c();g=lda(c,a,b)}else if(Ni(a))g=a.ha(),g=(new ti).P((new Q).a(),g);else if(di(a))g=a.ha(),g=(new pi).P((new Q).a(),g);else if(Vh(a))g=a.ha(),g=(new ri).P((new Q).a(),g);else if(Oi(a))g=a.ha(),g=(new Pi).P((new Q).a(),g);else if(Qi(a))g=a.ha(),g=(new Ri).P((new Q).a(),g);else if(Si(a))g=a.ha(),g=(new ui).P((new Q).a(),g);else if(Ti(a))g=a.ha(),g=(new ii).P((new Q).a(),
g);else if(bi(a))g=a.ha(),g=(new si).P((new Q).a(),g);else if(ai(a))g=a.ha(),g=(new Ui).P((new Q).a(),g);else if(mda(a))var g=a.ab,h=a.PH,k=a.GG,g=Vi(new Wi,(new Q).a(),g,h,k,w(),!0);else{if(!Xh(a))throw(new v).d(a);g=a.ha();h=(new Q).a();g=(new oi).P(h,g)}g.k=a.k;nda(a,b,g,c,oda(e,a.k));bi(g)&&(b=(new Xi).a(),ac(g,b));Yi(g.Mg,a.Mg);f&&ida(a,g,a);return g}
function lda(a,b,c){if(c.qa()&&B(b.ca(),Db().Je).G.b()){c=c.c();var e=Bc().pN,f=b.k,g=w(),h=Zb(b.ha(),n(Fd)),k=b.Yb();c.Hc(e.k,f,g,"Error recursive shape",h,xc().tb,k)}a=a.b()?b.k:a.c();pda();c=(new Q).a();c=(new bj).P(c,b.ha());e=b.k;H(z(),G());c=cj(c,e);e=B(b.ca(),Db().Je);e=gd(e);f=Db().Je;c=dj(c,f,e);e=b.k;f=ej().it;b=fj(Eb(c,f,e),b.Up(b.Mq()));c=ej().it;return Eb(b,c,a)}function qda(a){return Xh(a)?B(a.ca(),jh().Lj).G:w()}function rda(a){return Xh(a)?B(a.ca(),jh().Lj).G.qa():!1}
function sda(a){return jg()===a?!0:pg()===a?!0:og()===a?!0:qg()===a?!0:Fg()===a}
function tda(a,b,c,e){var f=Pg().$;if(null===f?null===b:f.h(b))return b=uda(c),uda(e).qa()?b.b()?b=!0:(b=b.c(),b=null!==b&&pa(b,"schema")):b=!1,b?e:c;f=ci().Dw;if(null===f?null===b:f.h(b)){b=(new A).d(Gc(ci().Dw.t));a=Zb(c.ha(),n(Fd));f=c.Yb();if(gj("\x3c\x3d",e,c,b,a,f))return(new A).d(Gc(ci().Dw.t)),Zb(c.ha(),n(Fd)),hj("max",e,c);throw ij(new jj,"Resolution error: sub type has a weaker constraint for min-properties than base type for minProperties",(new A).d(Gc(ci().Dw.t)),c.Yb(),Zb(c.ha(),n(Fd)),
!1);}f=ci().Cw;if(null===f?null===b:f.h(b)){b=(new A).d(Gc(ci().Cw.t));a=Zb(c.ha(),n(Fd));f=c.Yb();if(gj("\x3e\x3d",e,c,b,a,f))return(new A).d(Gc(ci().Cw.t)),Zb(c.ha(),n(Fd)),hj("min",e,c);throw ij(new jj,"Resolution error: sub type has a weaker constraint for max-properties than base type for maxProperties",(new A).d(Gc(ci().Cw.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);}f=xh().Cq;if(null===f?null===b:f.h(b)){b=(new A).d(Gc(xh().Cq.t));a=Zb(c.ha(),n(Fd));f=c.Yb();if(gj("\x3c\x3d",e,c,b,a,f))return(new A).d(Gc(xh().Cq.t)),
Zb(c.ha(),n(Fd)),hj("max",e,c);throw ij(new jj,"Resolution error: sub type has a weaker constraint for min-length than base type for maxProperties",(new A).d(Gc(xh().Cq.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);}f=xh().Aq;if(null===f?null===b:f.h(b)){b=(new A).d(Gc(xh().Aq.t));a=Zb(c.ha(),n(Fd));f=c.Yb();if(gj("\x3e\x3d",e,c,b,a,f))return(new A).d(Gc(xh().Aq.t)),Zb(c.ha(),n(Fd)),hj("min",e,c);throw ij(new jj,"Resolution error: sub type has a weaker constraint for max-length than base type for maxProperties",
(new A).d(Gc(xh().Aq.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);}f=xh().jj;if(null===f?null===b:f.h(b)){b=(new A).d(Gc(xh().jj.t));a=Zb(c.ha(),n(Fd));f=c.Yb();if(gj("\x3c\x3d",e,c,b,a,f))return(new A).d(Gc(xh().jj.t)),Zb(c.ha(),n(Fd)),hj("max",e,c);throw ij(new jj,"Resolution error: sub type has a weaker constraint for min-minimum than base type for minimum",(new A).d(Gc(xh().jj.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);}f=xh().ij;if(null===f?null===b:f.h(b)){b=(new A).d(Gc(xh().ij.t));a=Zb(c.ha(),n(Fd));f=c.Yb();if(gj("\x3e\x3d",
e,c,b,a,f))return(new A).d(Gc(xh().ij.t)),Zb(c.ha(),n(Fd)),hj("min",e,c);throw ij(new jj,"Resolution error: sub type has a weaker constraint for maximum than base type for maximum",(new A).d(Gc(xh().ij.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);}f=Wh().Bq;if(null===f?null===b:f.h(b)){b=(new A).d(Gc(Wh().Bq.t));a=Zb(c.ha(),n(Fd));f=c.Yb();if(gj("\x3c\x3d",e,c,b,a,f))return(new A).d(Gc(Wh().Bq.t)),Zb(c.ha(),n(Fd)),hj("max",e,c);throw ij(new jj,"Resolution error: sub type has a weaker constraint for minItems than base type for minItems",
(new A).d(Gc(Wh().Bq.t)),c.Yb(),Zb(c.ha(),n(Fd)),!0);}f=Wh().rr;if(null===f?null===b:f.h(b)){b=(new A).d(Gc(Wh().rr.t));a=Zb(c.ha(),n(Fd));f=c.Yb();if(gj("\x3e\x3d",e,c,b,a,f))return(new A).d(Gc(Wh().rr.t)),Zb(c.ha(),n(Fd)),hj("min",e,c);throw ij(new jj,"Resolution error: sub type has a weaker constraint for maxItems than base type for maxItems",(new A).d(Gc(Wh().rr.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);}f=xh().sn;if(null===f?null===b:f.h(b)){b=(new A).d(Gc(xh().sn.t));a=c.Yb();f=Zb(c.ha(),n(Fd));if(kj(e,
c,b,a,f))return c;throw ij(new jj,"different values for format constraint",(new A).d(Gc(xh().sn.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);}f=xh().vl;if(null===f?null===b:f.h(b)){b=(new A).d(Gc(xh().vl.t));a=c.Yb();f=Zb(c.ha(),n(Fd));if(kj(e,c,b,a,f))return c;throw ij(new jj,"different values for pattern constraint",(new A).d(Gc(xh().vl.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);}f=ci().dt;if(null===f?null===b:f.h(b)){b=(new A).d(Gc(ci().dt.t));a=c.Yb();f=Zb(c.ha(),n(Fd));if(kj(e,c,b,a,f))throw ij(new jj,"shape has same discriminator value as parent",
(new A).d(Gc(ci().dt.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);return c}f=ci().rz;if(null===f?null===b:f.h(b)){b=(new A).d(Gc(ci().rz.t));a=c.Yb();f=Zb(c.ha(),n(Fd));if(kj(e,c,b,a,f))throw ij(new jj,"shape has same discriminator value as parent",(new A).d(Gc(ci().rz.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);return c}f=Pg().Kg;if(null===f?null===b:f.h(b))return vda(a,c.Tb,e.Tb),c;a=Wh().tr;if(null===a?null===b:a.h(b)){(new A).d(Gc(Wh().tr.t));Zb(c.ha(),n(Fd));lj(!0,!0,e,c)?b=!0:((new A).d(Gc(Wh().tr.t)),Zb(c.ha(),n(Fd)),
b=lj(!1,!1,e,c));b?e=!0:((new A).d(Gc(Wh().tr.t)),Zb(c.ha(),n(Fd)),e=lj(!1,!0,e,c));if(e)return c;throw ij(new jj,"different values for unique items constraint",(new A).d(Gc(Wh().tr.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);}a=rj().Uh;if(null===a?null===b:a.h(b)){b=(new A).d(Gc(rj().Uh.t));a=Zb(c.ha(),n(Fd));f=c.Yb();if(gj("\x3c\x3d",e,c,b,a,f))return(new A).d(Gc(rj().Uh.t)),Zb(c.ha(),n(Fd)),hj("max",e,c);throw ij(new jj,"Resolution error: sub type has a weaker constraint for minCount than base type for minCount",
(new A).d(Gc(rj().Uh.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);}a=rj().YF;if(null===a?null===b:a.h(b)){b=(new A).d(Gc(rj().YF.t));a=Zb(c.ha(),n(Fd));f=c.Yb();if(gj("\x3e\x3d",e,c,b,a,f))return(new A).d(Gc(rj().YF.t)),Zb(c.ha(),n(Fd)),hj("min",e,c);throw ij(new jj,"Resolution error: sub type has a weaker constraint for maxCount than base type for maxCount",(new A).d(Gc(rj().YF.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);}a=rj().$f;if(null===a?null===b:a.h(b)){b=(new A).d(Gc(rj().$f.t));a=c.Yb();f=Zb(c.ha(),n(Fd));if(kj(e,
c,b,a,f))return c;throw ij(new jj,"different values for discriminator value path",(new A).d(Gc(rj().$f.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);}a=rj().If;if(null===a?null===b:a.h(b)){b=(new A).d(Gc(rj().If.t));a=c.Yb();f=Zb(c.ha(),n(Fd));if(kj(e,c,b,a,f))return c;throw ij(new jj,"different values for discriminator value range",(new A).d(Gc(rj().If.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);}a=ci().Pk;if(null===a?null===b:a.h(b)){(new A).d(Gc(ci().Pk.t));Zb(c.ha(),n(Fd));lj(!0,!0,e,c)?b=!0:((new A).d(Gc(ci().Pk.t)),
Zb(c.ha(),n(Fd)),b=lj(!1,!1,e,c));b?e=!0:((new A).d(Gc(ci().Pk.t)),Zb(c.ha(),n(Fd)),e=lj(!0,!1,e,c));if(e)return c;throw ij(new jj,"closed shapes cannot inherit from open shapes",(new A).d(Gc(ci().Pk.t)),c.Yb(),Zb(c.ha(),n(Fd)),!1);}return c}
function gj(a,b,c,e,f,g){if(sj(b)&&Wa().Ia(b.t).qa()&&sj(c)&&Wa().Ia(c.t).qa()){b=tj(b);c=tj(c);if("\x3c\x3d"===a)return Aa(b)<=Aa(c);if("\x3e\x3d"===a)return Aa(b)>=Aa(c);throw ij(new jj,"Unknown numeric comparison "+a,e,g,f,!1);}throw ij(new jj,"Cannot compare non numeric or missing values",e,g,f,!1);}
function wda(a,b,c){b.ca().Pb.X(t(new u,function(a,b){return function(c){if(null!==c){var h=c.pa();c=c.Ba();var k=ci().ld;if(null===h?null!==k:!h.h(k))if(k=Wa().Ia(uj(b.ca(),h)),x(k))c=tda(a,h,c.t,k.i.t),ff(b,h,c);else{if(w()!==k)throw(new v).d(k);vj(b.ca(),h,c.t,c.E)}}else throw(new v).d(c);}}(a,c)));return c}
function vda(a,b,c){if(b.Fa()&&c.Fa()){var e=b.pc();if(e.b())f=!1;else{var f=e.c(),g=c.pc();if(g.b())f=!1;else var g=g.c(),g=ka(g),f=ka(f),f=g!==f}if(f)throw a=b.fa(),a=ka(a),c=c.fa(),c=ka(c),b=(new A).d(Gc(Pg().Kg.t)),f=e.b()?w():e.c().Yb(),e=e.b()?w():Zb(e.c().ha(),n(Fd)),ij(new jj,"Values in subtype enumeration are from different class '"+a+"' of the super type enumeration '"+c+"'",b,f,e,!1);z();e=(new A).d(b);null!==e.i&&0===e.i.Ge(1)&&wj(e.i.jb(0))&&(e=new xda,f=z(),e=c.$b(e,f.s),b.X(t(new u,
function(a,b,c){return function(e){var f=B(e.ea,xj().rf).G;if(!b.Ja(f.b()?null:f.c())){var f=t(new u,function(){return function(a){return B(a.ea,xj().rf)}}(a)),g=z();throw ij(new jj,"Values in subtype enumeration ("+c.ka(f,g.s).ng(",")+") not found in the supertype enumeration ("+b.ng(",")+")",(new A).d(Gc(Pg().Kg.t)),Yb(e),Zb(e.ab,n(Fd)),!1);}}}(a,e,b))))}}
function yj(a,b,c,e,f){b.X(t(new u,function(a,b,c,e){return function(f){if(!b.Ja(f)){var y=Wa().Ia(uj(c.ca(),f)),I=Wa().Ia(uj(e.ca(),f)),E=!1,V=null;if(x(y)){var E=!0,V=y,da=V.i;if(I.b())return Fh(c,f,da.t,da.E)}if(w()===y&&I.qa())return y=zj(M(),I.c().E),a.lo&&yda(y,e),vj(c.ca(),f,I.c().t,y);if(E&&(E=V.i,I.qa()))return y=zj(M(),E.E),V=E.t,I=I.c().t,I=tda(a,f,V,I),E=E.t,(null===I?null!==E:!I.h(E))&&a.lo&&yda(y,e),I=cc(I,y),vj(c.ca(),f,I,y)}}}(a,f,c,e)))}
function hj(a,b,c){if(sj(b)&&Wa().Ia(b.t).qa()&&sj(c)&&Wa().Ia(c.t).qa()){var e=tj(b),f=tj(c);if("max"===a)return Aa(e)<=Aa(f)?c:b;if("min"===a)return Aa(e)>=Aa(f)?c:b;throw ij(new jj,"Unknown numeric comparison "+a,w(),w(),w(),!1);}throw ij(new jj,"Cannot compare non numeric or missing values",w(),w(),w(),!1);}function kj(a,b,c,e,f){if(sj(a)&&Wa().Ia(a.t).qa()&&sj(b)&&Wa().Ia(b.t).qa())return a=a.u(),b=b.u(),a===b;throw ij(new jj,"Cannot compare non numeric or missing values",c,e,f,!1);}
function uda(a){return sj(a)&&Wa().Ia(a.t).qa()&&sj(a)&&Wa().Ia(a.t).qa()?(new A).d(a.u()):w()}function yda(a,b){Yh(a,n(Aj))||a.Wb((new Bj).e(b.k))}function lj(a,b,c,e){if(sj(c)&&Wa().Ia(c.t).qa()&&sj(e)&&Wa().Ia(e.t).qa())return c=Cj(c),e=Cj(e),c===a&&e===b;throw ij(new jj,"Cannot compare non boolean or missing values",w(),w(),w(),!1);}function Dj(a,b){var c=a.sf.qh.qh.Ta(b.k);return x(c)?c.i:a.Vca(b)}
function zda(a){var b=(new Ki).Ld(Ej()),c=C().bb;a.g$(Rb(new Sb,b,D(new F,c,"header"),Tb(new Ub,Vb().bb,"header","Parameter passed as a header to an operation for communication models",G())));b=(new Ki).Ld(Ej());c=C().bb;a.h$(Rb(new Sb,b,D(new F,c,"parameter"),Tb(new Ub,Vb().bb,"parameter","Parameters associated to the communication model",G())));b=Pg();c=C().bb;a.i$(Rb(new Sb,b,D(new F,c,"queryString"),Tb(new Ub,Vb().bb,"query string","Query string for the communication model",G())));b=(new Ki).Ld(Ej());
c=C().bb;a.j$(Rb(new Sb,b,D(new F,c,"uriParameter"),Tb(new Ub,Vb().bb,"uri parameter","",G())))}function Ada(a,b){M();var c=(new N).a(),c=(new Fj).P((new Q).a(),c);M();var e=(new N).a(),c=Ue(c,b,e),e=a.k;b=(new Cf).e(b);b=c.Uc(e+"/resourceType/"+Gj(b.zd));c=Lc().wi();nh(a,c,b);return b}function Bda(a,b){M();var c=(new N).a(),c=(new Kj).P((new Q).a(),c);M();var e=(new N).a(),c=Ue(c,b,e),e=a.k;b=(new Cf).e(b);b=c.Uc(e+"/trait/"+Gj(b.zd));c=Lc().wi();nh(a,c,b);return b}
function Lj(a,b){var c=Cda(Dda());a=t(new u,function(a,b){return function(a){return(new P).N(a,b)}}(a,b));b=z();return c.ka(a,b.s).$g(fc().ci)}
function Mj(a,b,c,e,f){b=Gc(D(new F,a.Iy,b));a=H(z(),(new J).aa([a.Zy]));Nj();z();Oj();var g=(new $g).a().wa();Nj();z();Oj();var h=(new $g).a().wa();Nj();z();Oj();var k=(new $g).a().wa();Nj();z();Oj();var l=(new $g).a().wa();Nj();z();Oj();var p=(new $g).a().wa();Nj();var y=w();Nj();z();Oj();var I=(new $g).a().wa();Nj();z();Oj();var E=(new $g).a();return Pj(new Qj,b,c,e,f,a,g,h,k,l,p,y,I,E.wa(),(Nj(),w()),(Nj(),w()),(Nj(),w()))}
function Rj(a,b,c){c=B(Sj(b).g,Tj().Qi).Ib(t(new u,function(a,b){return function(a){a=B(a.g,sf().$).G;return(a.b()?null:a.c())===b}}(a,c)));c.b()?a=w():(c=c.c(),b=Eda(b,Uj(c)),a=t(new u,function(){return function(a){return ja(a)}}(a)),c=z(),a=(new A).d(b.ka(a,c.s)));return a.b()?G():a.c()}function Fda(a,b){if(x(b))return b.i;if(w()===b)throw Lb(Mb(),(new Nb).e("Missing mandatory property '"+a+"'"));throw(new v).d(b);}
function Vj(a,b,c){a=B(Sj(b).g,Tj().Qi).Ib(t(new u,function(a,b){return function(a){a=B(a.g,sf().$).G;return(a.b()?null:a.c())===b}}(a,c)));a.b()?b=w():(a=a.c(),b=Gda(b,Uj(a)));if(b.b())return w();b=b.c();return(new A).d(ja(b))}function Hda(a,b){var c=kd(ta(),a,"\\.",0),c=Wj((new md).vc(c));b=b.Ta(c);return x(b)?(b=b.i,a.split(c+".").join(b)):a}
function Ida(a,b){var c=pc(qc(),G()),e=B(Sj(b).g,Tj().Qi).Ib(t(new u,function(){return function(a){a=B(a.g,sf().$).G;return"prefixes"===(a.b()?null:a.c())}}(a)));e.b()?e=w():(e=e.c(),e=(new A).d(Uj(e)));x(e)&&Jda(b,e.i).X(t(new u,function(a,b){return function(c){var e=Vj(a,c,"prefix"),e=e.b()?"":e.c();c=Vj(a,c,"uri");c=c.b()?"":c.c();return b.Oe(e,c)}}(a,c)));return c}
function Kda(a,b,c,e){a=B(Sj(b).g,Tj().Qi).Ib(t(new u,function(a,b){return function(a){a=B(a.g,sf().$).G;return(a.b()?null:a.c())===b}}(a,c)));a.b()?e=w():(a=a.c(),b=Jda(b,Uj(a)),a=z(),e=(new A).d(b.ka(e,a.s)));return e.b()?G():e.c()}function Lda(a,b){a.K1(!0);b.R(a);!a.RV&&a.QV&&(b=a.Pa,b.AK=b.AK.substring(2),Mda(a.Pa))}function Nda(a){if(a.RV){if(a.QV){var b=a.Pa;b.AK+="  ";Mda(a.Pa)}a.L1(!1)}else b=(new Xj).d(a.Pa.Xs),a.Pa.tx.mG(b.oq,44),Mda(a.Pa)}function Yj(a,b){return a===b||a.h(b)}
function Oda(a){Zj();a.zdb=(new ak).MO(t(new u,function(){return function(a){return(new bk).e(a)}}(a)))}function ck(){}function r(){}r.prototype=ck.prototype;ck.prototype.a=function(){return this};ck.prototype.h=function(a){return this===a};ck.prototype.u=function(){var a=dk(ka(this)),b=(+(this.y()>>>0)).toString(16);return a+"@"+b};ck.prototype.y=function(){return va(this)};ck.prototype.toString=function(){return this.u()};
function Pda(a,b){if(a=a&&a.$classData){var c=a.WN||0;return!(c<b)&&(c>b||!a.VN.isPrimitive)}return!1}var Ja=q({f:0},!1,"java.lang.Object",{f:1},void 0,void 0,function(a){return null!==a},Pda);ck.prototype.$classData=Ja;function ek(a,b){b=(new Fe).gm(b);return Qda(a,b)}function Rda(a,b){b!==a&&b.KA(t(new u,function(a){return function(b){return a.bX(b)}}(a)),Sda());return a}function Qda(a,b){if(a.bX(b))return a;throw(new fk).e("Promise already completed.");}
function gk(a,b){b=(new Ee).d(b);return Qda(a,b)}function Tda(a,b){if(hk(b))return b=null===b?0:b.t,a.dca()&&a.xt()===b;if(faa(b))return b|=0,a.cca()&&a.E_()===b;if(haa(b))return b|=0,a.eca()&&a.O2()===b;if(Da(b))return b|=0,a.s1()&&a.xt()===b;if(oa(b)){var c=Ea(b);b=c.Na;c=c.$a;a=a.Nv();var e=a.$a;return a.Na===b&&e===c}return ma(b)?(b=+b,a.tK()===b):"number"===typeof b?(b=+b,a.VB()===b):!1}function Uda(a,b){return 0<=a.gM(b)?ja(za(a.pfa(),a.gM(b),a.QT(b))):null}
function Vda(a){var b=(new ik).Nba(a.HW);Wda(a.Pa.px,b);return b.u()}function jk(a,b,c,e){return kk(a).vm((new lk).a(),b,c,e).Be.Ue}function Xda(a,b,c,e,f){var g=(new mk).rs(!0);nk(b,c);a.X(t(new u,function(a,b,c,e){return function(a){e.ta?e.ta=!1:nk(b,c);return ok(b,a)}}(a,b,e,g)));nk(b,f);return b}function kk(a){return Yda((new pk).a(),a)}function Zda(a,b){b.X(t(new u,function(a){return function(b){return a.lD(b)}}(a)));return a}
function $da(a,b){var c=a.Kn();return b.td().rl(c,qd(function(){return function(a,b){return a.tk(b)}}(a)))}function qk(a){var b=ia(La(Ja),[a.j.length]);Ca(a,0,b,0,a.j.length);return b}
function aea(a,b,c){if(32>c)return a.Al().j[31&b];if(1024>c)return a.ie().j[31&(b>>>5|0)].j[31&b];if(32768>c)return a.Me().j[31&(b>>>10|0)].j[31&(b>>>5|0)].j[31&b];if(1048576>c)return a.tg().j[31&(b>>>15|0)].j[31&(b>>>10|0)].j[31&(b>>>5|0)].j[31&b];if(33554432>c)return a.pj().j[31&(b>>>20|0)].j[31&(b>>>15|0)].j[31&(b>>>10|0)].j[31&(b>>>5|0)].j[31&b];if(1073741824>c)return a.ks().j[31&(b>>>25|0)].j[31&(b>>>20|0)].j[31&(b>>>15|0)].j[31&(b>>>10|0)].j[31&(b>>>5|0)].j[31&b];throw(new rk).a();}
function bea(a,b,c,e){if(32<=e)if(1024>e)1===a.Fn()&&(a.wg(ia(La(Ja),[32])),a.ie().j[31&(b>>>5|0)]=a.Al(),a.Rw(1+a.Fn()|0)),a.Nh(ia(La(Ja),[32]));else if(32768>e)2===a.Fn()&&(a.di(ia(La(Ja),[32])),a.Me().j[31&(b>>>10|0)]=a.ie(),a.Rw(1+a.Fn()|0)),a.wg(a.Me().j[31&(c>>>10|0)]),null===a.ie()&&a.wg(ia(La(Ja),[32])),a.Nh(ia(La(Ja),[32]));else if(1048576>e)3===a.Fn()&&(a.Bl(ia(La(Ja),[32])),a.tg().j[31&(b>>>15|0)]=a.Me(),a.Rw(1+a.Fn()|0)),a.di(a.tg().j[31&(c>>>15|0)]),null===a.Me()&&a.di(ia(La(Ja),[32])),
a.wg(a.Me().j[31&(c>>>10|0)]),null===a.ie()&&a.wg(ia(La(Ja),[32])),a.Nh(ia(La(Ja),[32]));else if(33554432>e)4===a.Fn()&&(a.yr(ia(La(Ja),[32])),a.pj().j[31&(b>>>20|0)]=a.tg(),a.Rw(1+a.Fn()|0)),a.Bl(a.pj().j[31&(c>>>20|0)]),null===a.tg()&&a.Bl(ia(La(Ja),[32])),a.di(a.tg().j[31&(c>>>15|0)]),null===a.Me()&&a.di(ia(La(Ja),[32])),a.wg(a.Me().j[31&(c>>>10|0)]),null===a.ie()&&a.wg(ia(La(Ja),[32])),a.Nh(ia(La(Ja),[32]));else if(1073741824>e)5===a.Fn()&&(a.xG(ia(La(Ja),[32])),a.ks().j[31&(b>>>25|0)]=a.pj(),
a.Rw(1+a.Fn()|0)),a.yr(a.ks().j[31&(c>>>25|0)]),null===a.pj()&&a.yr(ia(La(Ja),[32])),a.Bl(a.pj().j[31&(c>>>20|0)]),null===a.tg()&&a.Bl(ia(La(Ja),[32])),a.di(a.tg().j[31&(c>>>15|0)]),null===a.Me()&&a.di(ia(La(Ja),[32])),a.wg(a.Me().j[31&(c>>>10|0)]),null===a.ie()&&a.wg(ia(La(Ja),[32])),a.Nh(ia(La(Ja),[32]));else throw(new rk).a();}function sk(a,b,c){var e=ia(La(Ja),[32]);Ca(a,b,e,c,32-(c>b?c:b)|0);return e}
function cea(a,b,c){if(32<=c)if(1024>c)a.Nh(a.ie().j[31&(b>>>5|0)]);else if(32768>c)a.wg(a.Me().j[31&(b>>>10|0)]),a.Nh(a.ie().j[31&(b>>>5|0)]);else if(1048576>c)a.di(a.tg().j[31&(b>>>15|0)]),a.wg(a.Me().j[31&(b>>>10|0)]),a.Nh(a.ie().j[31&(b>>>5|0)]);else if(33554432>c)a.Bl(a.pj().j[31&(b>>>20|0)]),a.di(a.tg().j[31&(b>>>15|0)]),a.wg(a.Me().j[31&(b>>>10|0)]),a.Nh(a.ie().j[31&(b>>>5|0)]);else if(1073741824>c)a.yr(a.ks().j[31&(b>>>25|0)]),a.Bl(a.pj().j[31&(b>>>20|0)]),a.di(a.tg().j[31&(b>>>15|0)]),a.wg(a.Me().j[31&
(b>>>10|0)]),a.Nh(a.ie().j[31&(b>>>5|0)]);else throw(new rk).a();}
function dea(a,b){var c=-1+a.Fn()|0;switch(c){case 5:a.xG(qk(a.ks()));a.yr(qk(a.pj()));a.Bl(qk(a.tg()));a.di(qk(a.Me()));a.wg(qk(a.ie()));a.ks().j[31&(b>>>25|0)]=a.pj();a.pj().j[31&(b>>>20|0)]=a.tg();a.tg().j[31&(b>>>15|0)]=a.Me();a.Me().j[31&(b>>>10|0)]=a.ie();a.ie().j[31&(b>>>5|0)]=a.Al();break;case 4:a.yr(qk(a.pj()));a.Bl(qk(a.tg()));a.di(qk(a.Me()));a.wg(qk(a.ie()));a.pj().j[31&(b>>>20|0)]=a.tg();a.tg().j[31&(b>>>15|0)]=a.Me();a.Me().j[31&(b>>>10|0)]=a.ie();a.ie().j[31&(b>>>5|0)]=a.Al();break;
case 3:a.Bl(qk(a.tg()));a.di(qk(a.Me()));a.wg(qk(a.ie()));a.tg().j[31&(b>>>15|0)]=a.Me();a.Me().j[31&(b>>>10|0)]=a.ie();a.ie().j[31&(b>>>5|0)]=a.Al();break;case 2:a.di(qk(a.Me()));a.wg(qk(a.ie()));a.Me().j[31&(b>>>10|0)]=a.ie();a.ie().j[31&(b>>>5|0)]=a.Al();break;case 1:a.wg(qk(a.ie()));a.ie().j[31&(b>>>5|0)]=a.Al();break;case 0:break;default:throw(new v).d(c);}}function tk(a,b){var c=a.j[b];a.j[b]=null;return qk(c)}
function uk(a,b,c){a.Rw(c);c=-1+c|0;switch(c){case -1:break;case 0:a.Nh(b.Al());break;case 1:a.wg(b.ie());a.Nh(b.Al());break;case 2:a.di(b.Me());a.wg(b.ie());a.Nh(b.Al());break;case 3:a.Bl(b.tg());a.di(b.Me());a.wg(b.ie());a.Nh(b.Al());break;case 4:a.yr(b.pj());a.Bl(b.tg());a.di(b.Me());a.wg(b.ie());a.Nh(b.Al());break;case 5:a.xG(b.ks());a.yr(b.pj());a.Bl(b.tg());a.di(b.Me());a.wg(b.ie());a.Nh(b.Al());break;default:throw(new v).d(c);}}function eea(a){return null===a?fea():a}
function gea(a){return a===fea()?null:a}var hea=q({E2:0},!0,"scala.collection.mutable.HashEntry",{E2:1});function vk(){this.hr=this.Kz=this.sv=null}vk.prototype=new r;vk.prototype.constructor=vk;vk.prototype.a=function(){iea=this;this.sv=sc();this.Kz=tc();this.hr=wk();return this};Object.defineProperty(vk.prototype,"AMF",{get:function(){return this.hr},configurable:!0});Object.defineProperty(vk.prototype,"OAS",{get:function(){return this.Kz},configurable:!0});
Object.defineProperty(vk.prototype,"RAML",{get:function(){return this.sv},configurable:!0});vk.prototype.$classData=q({BHa:0},!1,"amf.MessageStyles$",{BHa:1,f:1});var iea=void 0;function xk(){this.pZ=this.IX=this.wJ=this.xJ=this.sv=this.bs=this.tJ=this.Kz=this.hr=this.kGa=null;this.ma=!1}xk.prototype=new r;xk.prototype.constructor=xk;
xk.prototype.a=function(){jea=this;this.hr=yk();this.Kz=Bk();this.tJ=Ck();this.bs=Dk();this.sv=Ek();this.xJ=Fk();this.wJ=Gk();kea||(kea=(new Hk).a());this.IX=kea;lea||(lea=(new Ik).a());this.pZ=lea;return this};function Cda(a){if(!a.ma&&!a.ma){var b=z(),c=[yk(),Bk(),Ck(),Dk(),Ek(),Gk(),Fk()];a.kGa=H(b,(new J).aa(c));a.ma=!0}return a.kGa}Object.defineProperty(xk.prototype,"specProfiles",{get:function(){return Cda(this)},configurable:!0});
Object.defineProperty(xk.prototype,"PAYLOAD",{get:function(){return this.pZ},configurable:!0});Object.defineProperty(xk.prototype,"AML",{get:function(){return this.IX},configurable:!0});Object.defineProperty(xk.prototype,"RAML08",{get:function(){return this.wJ},configurable:!0});Object.defineProperty(xk.prototype,"RAML10",{get:function(){return this.xJ},configurable:!0});Object.defineProperty(xk.prototype,"RAML",{get:function(){return this.sv},configurable:!0});
Object.defineProperty(xk.prototype,"OAS30",{get:function(){return this.bs},configurable:!0});Object.defineProperty(xk.prototype,"OAS20",{get:function(){return this.tJ},configurable:!0});Object.defineProperty(xk.prototype,"OAS",{get:function(){return this.Kz},configurable:!0});Object.defineProperty(xk.prototype,"AMF",{get:function(){return this.hr},configurable:!0});xk.prototype.$classData=q({IHa:0},!1,"amf.ProfileNames$",{IHa:1,f:1});var jea=void 0;
function Dda(){jea||(jea=(new xk).a());return jea}function Jk(){}Jk.prototype=new r;Jk.prototype.constructor=Jk;d=Jk.prototype;d.wI=function(a,b){Kk();return Lk(Mk(),a,b)};d.a=function(){return this};d.HQ=function(a,b,c,e){Kk();return Nk(Mk(),a,b,c,e,!1)};d.G3=function(a,b,c,e){Kk();return Nk(Mk(),a,b,c,e,!0)};d.CQ=function(){return this.ZU()};d.IQ=function(a,b,c){Kk();var e=Ok(Pk());return Nk(Mk(),a,b,c,e,!1)};d.C3=function(a){return mea(yea(),a)};
d.DQ=function(a){Kk();var b=Ok(Pk());return Lk(Mk(),a,b)};d.FQ=function(a,b){return zea(Kk(),a,b)};d.vI=function(a){Kk();return Qk(Rk()).MT(a)};d.H3=function(a,b,c){Kk();var e=Ok(Pk());return Nk(Mk(),a,b,c,e,!0)};d.ZU=function(){Aea().tW();yea().tW();Kk();var a=sb();pb(qb(),a);Kk();a=bba();pb(qb(),a);return Kk().ZU()};Jk.prototype.yamlPayloadParser=function(){return(new Sk).a()};Jk.prototype.jsonPayloadParser=function(){return(new Tk).a()};
Jk.prototype.resolveAmfGraph=function(a){return Uk((new Vk).a(),a,fb().fv)};Jk.prototype.resolveOas20=function(a){return Uk((new Wk).a(),a,fb().fv)};Jk.prototype.resolveRaml08=function(a){return Uk((new Xk).a(),a,fb().fv)};Jk.prototype.resolveRaml10=function(a){return Uk((new Yk).a(),a,fb().fv)};Jk.prototype.registerDialect=function(a){return this.C3(a)};Jk.prototype.registerNamespace=function(a,b){return this.FQ(a,b)};Jk.prototype.emitShapesGraph=function(a){return this.vI(a)};
Jk.prototype.loadValidationProfile=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:return this.DQ(a);case 1:return this.wI(a,e[0]);default:throw"No matching overload";}};Jk.prototype.validateResolved=function(a,b,c){for(var e=arguments.length|0,f=3,g=[];f<e;)g.push(arguments[f]),f=f+1|0;switch(g.length|0){case 0:return this.H3(a,b,c);case 1:return this.G3(a,b,c,g[0]);default:throw"No matching overload";}};
Jk.prototype.validate=function(a,b,c){for(var e=arguments.length|0,f=3,g=[];f<e;)g.push(arguments[f]),f=f+1|0;switch(g.length|0){case 1:return this.HQ(a,b,c,g[0]);case 0:return this.IQ(a,b,c);default:throw"No matching overload";}};Jk.prototype.amfGraphGenerator=function(){return(new Zk).a()};Jk.prototype.amfGraphParser=function(){return(new al).a()};Jk.prototype.oas20Generator=function(){return(new bl).a()};Jk.prototype.oas20Parser=function(){return(new cl).a()};Jk.prototype.raml08Generator=function(){return(new dl).a()};
Jk.prototype.raml08Parser=function(){return(new el).a()};Jk.prototype.raml10Generator=function(){return(new fl).a()};Jk.prototype.ramlParser=function(){return(new gl).a()};Jk.prototype.raml10Parser=function(){return(new hl).a()};Jk.prototype.init=function(){return this.CQ()};Jk.prototype.$classData=q({NHa:0},!1,"amf.client.AMF$",{NHa:1,f:1});var Bea=void 0;function il(){}il.prototype=new r;il.prototype.constructor=il;d=il.prototype;d.wI=function(a,b){Kk();return Lk(Mk(),a,b)};d.a=function(){return this};
d.HQ=function(a,b,c,e){Kk();return Nk(Mk(),a,b,c,e,!1)};d.A3=function(a,b){Kk();return(new jl).tc(a,b)};d.CQ=function(){return Kk().ZU()};d.B3=function(a,b){Kk();return(new kl).jx(a,b,w())};d.IQ=function(a,b,c){Kk();var e=Ok(Pk());return Nk(Mk(),a,b,c,e,!1)};d.F3=function(){return wk()};d.DQ=function(a){Kk();var b=Ok(Pk());return Lk(Mk(),a,b)};d.FQ=function(a,b){return zea(Kk(),a,b)};d.D3=function(a){Kk();pb(qb(),a)};d.vI=function(a){Kk();return Qk(Rk()).MT(a)};d.E3=function(a){Kk();return(new ll).e(a)};
il.prototype.registerPayloadPlugin=function(a){Kk();var b=new Cea;b.lT=a;var c=S(),e=a.payloadMediaType,f=S().oh();b.NH=ml(nl(new ol,c,e,f));b.iv=a.ID;pb(qb(),b)};il.prototype.registerPlugin=function(a){return this.D3(a)};il.prototype.registerNamespace=function(a,b){return this.FQ(a,b)};il.prototype.emitShapesGraph=function(a){return this.vI(a)};
il.prototype.loadValidationProfile=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:return this.DQ(a);case 1:return this.wI(a,e[0]);default:throw"No matching overload";}};
il.prototype.validate=function(a,b){for(var c=arguments.length|0,e=2,f=[];e<c;)f.push(arguments[e]),e=e+1|0;switch(f.length|0){case 2:return c=f[0],this.HQ(a,b,c,f[1]);case 1:case 0:return c=void 0===f[0]?this.F3():f[0],this.IQ(a,b,c);default:throw"No matching overload";}};il.prototype.resolver=function(a){return this.E3(a)};il.prototype.generator=function(a,b){return this.A3(a,b)};il.prototype.parser=function(a,b){return this.B3(a,b)};il.prototype.init=function(){return this.CQ()};
il.prototype.$classData=q({OHa:0},!1,"amf.client.CoreWrapper$",{OHa:1,f:1});var Dea=void 0;function pl(){this.Hxa=this.Ixa=null}pl.prototype=new r;pl.prototype.constructor=pl;pl.prototype.a=function(){Eea=this;this.Ixa=Aea();this.Hxa=yea();return this};Object.defineProperty(pl.prototype,"Vocabularies",{get:function(){return this.Hxa},configurable:!0});Object.defineProperty(pl.prototype,"WebApi",{get:function(){return this.Ixa},configurable:!0});
pl.prototype.$classData=q({PHa:0},!1,"amf.client.DocumentPluginsWrapper$",{PHa:1,f:1});var Eea=void 0;function ql(){this.Jga=null}ql.prototype=new r;ql.prototype.constructor=ql;ql.prototype.a=function(){Fea=this;Gea||(Gea=(new rl).a());this.Jga=Gea;return this};Object.defineProperty(ql.prototype,"AMFValidation",{get:function(){return this.Jga},configurable:!0});ql.prototype.$classData=q({QHa:0},!1,"amf.client.FeaturesPluginsWrapper$",{QHa:1,f:1});var Fea=void 0;
function sl(){this.Yza=this.bk=null}sl.prototype=new r;sl.prototype.constructor=sl;sl.prototype.a=function(){Hea=this;Eea||(Eea=(new pl).a());this.bk=Eea;Fea||(Fea=(new ql).a());this.Yza=Fea;return this};Object.defineProperty(sl.prototype,"features",{get:function(){return this.Yza},configurable:!0});Object.defineProperty(sl.prototype,"document",{get:function(){return this.bk},configurable:!0});sl.prototype.$classData=q({RHa:0},!1,"amf.client.PluginsWrapper$",{RHa:1,f:1});var Hea=void 0;
function tl(){this.vDa=null}tl.prototype=new r;tl.prototype.constructor=tl;tl.prototype.a=function(){Iea=this;this.vDa=(new ul).a();return this};function Jea(a,b){a=a.vDa;b=vl(fc(),b);var c=w(),e=w(),f=w(),g=w(),h=w(),k=w(),l=w(),p=w(),y=yk(),I=Kea,E=new xl,y=y.Fi,V=w(),da=H(z(),G()),sa;Lea||(Lea=(new yl).a());sa=Lea;var ua;Mea||(Mea=(new zl).a());ua=Mea;Nea||(Nea=(new Al).a());return I(a,b,Bl(E,c,e,f,g,h,k,l,!1,!1,!0,!1,p,y,V,!1,da,sa,ua,Nea))}
function Oea(a,b){return Ek().Fi===b||Fk().Fi===b||Gk().Fi===b||Dk().Fi===b||Ck().Fi===b||Bk().Fi===b||yk().Fi===b?!0:Cl().ba===b}tl.prototype.$classData=q({SHa:0},!1,"amf.client.commands.CmdLineParser$",{SHa:1,f:1});var Iea=void 0;function Pea(){Iea||(Iea=(new tl).a());return Iea}function ol(){this.l=this.$p=this.ek=null}ol.prototype=new r;ol.prototype.constructor=ol;function nl(a,b,c,e){a.ek=c;a.$p=e;if(null===b)throw Lb(Mb(),null);a.l=b;return a}
function ml(a){var b=a.ek;a=a.$p;z();Dl();for(var c=(new J).a(),e=0,f=b.length|0;e<f;){var g=a.Kd(b[e]);c.z.push(g);e=1+e|0}return c}ol.prototype.$classData=q({fIa:0},!1,"amf.client.convert.CollectionConverter$ClientListOps",{fIa:1,f:1});function Qea(){this.l=this.ek=null}Qea.prototype=new r;Qea.prototype.constructor=Qea;function Rea(a,b){var c=new Qea;c.ek=b;if(null===a)throw Lb(Mb(),null);c.l=a;return c}
Qea.prototype.$classData=q({gIa:0},!1,"amf.client.convert.CollectionConverter$ClientOptionOps",{gIa:1,f:1});function El(){this.l=this.$p=this.ek=null}El.prototype=new r;El.prototype.constructor=El;El.prototype.sb=function(){return Sea(this.l,this.ek,this.$p)};El.prototype.$classData=q({hIa:0},!1,"amf.client.convert.CollectionConverter$InternalImmutableMapOps",{hIa:1,f:1});function Fl(){this.l=this.$p=this.ek=null}Fl.prototype=new r;Fl.prototype.constructor=Fl;
function Tea(a,b,c){var e=new Fl;e.ek=b;e.$p=c;if(null===a)throw Lb(Mb(),null);e.l=a;return e}Fl.prototype.sb=function(){return Uea(this.l,this.ek,this.$p)};Fl.prototype.$classData=q({iIa:0},!1,"amf.client.convert.CollectionConverter$InternalMapOps",{iIa:1,f:1});function Gl(){this.l=this.$p=this.ek=null}Gl.prototype=new r;Gl.prototype.constructor=Gl;function Bb(a,b,c){var e=new Gl;e.ek=b;e.$p=c;if(null===a)throw Lb(Mb(),null);e.l=a;return e}
Gl.prototype.sb=function(){var a=this.ek,b=this.$p;a.b()?b=w():(a=a.c(),b=(new A).d(b.vd(a)));return b.b()?void 0:b.c()};Gl.prototype.$classData=q({jIa:0},!1,"amf.client.convert.CollectionConverter$InternalOptionOps",{jIa:1,f:1});function Hl(){this.l=this.$p=this.ek=null}Hl.prototype=new r;Hl.prototype.constructor=Hl;Hl.prototype.sb=function(){return Vea(this.l,this.ek,this.$p)};function Il(a,b,c){var e=new Hl;e.ek=b;e.$p=c;if(null===a)throw Lb(Mb(),null);e.l=a;return e}
Hl.prototype.$classData=q({kIa:0},!1,"amf.client.convert.CollectionConverter$InternalSeqOps",{kIa:1,f:1});function Jl(){}Jl.prototype=new r;Jl.prototype.constructor=Jl;Jl.prototype.a=function(){return this};
Jl.prototype.JP=function(a){var b=Ug();Kl(a,b,t(new u,function(){return function(a){if(Ll(a))return(new Ml).Vaa(a);throw(new v).d(a);}}(this)));b=Nl();Kl(a,b,t(new u,function(){return function(a){if(Ol(a))return(new Ql).rU(a);throw(new v).d(a);}}(this)));b=Rl();Kl(a,b,t(new u,function(){return function(a){if(Sl(a))return(new Tl).fC(a);throw(new v).d(a);}}(this)));b=Wea();Kl(a,b,t(new u,function(){return function(a){if(Ul(a))return(new Vl).Taa(a);throw(new v).d(a);}}(this)));b=Wl();Kl(a,b,t(new u,
function(){return function(a){if(Xea(a))return(new Xl).Waa(a);throw(new v).d(a);}}(this)));b=Lc();Kl(a,b,t(new u,function(){return function(a){if(Yl(a))return Ab(),Yea(Ab().et(),a);throw(new v).d(a);}}(this)));b=Zl();Kl(a,b,t(new u,function(){return function(a){if($l(a))return(new am).SO(a);throw(new v).d(a);}}(this)));b=bf();Kl(a,b,t(new u,function(){return function(a){if(bm(a))return(new cm).WG(a);throw(new v).d(a);}}(this)));b=rj();Kl(a,b,t(new u,function(){return function(a){if(dm(a))return(new em).Zaa(a);
throw(new v).d(a);}}(this)));b=Zea();Kl(a,b,t(new u,function(){return function(a){if(fm(a))return Ab().kZ(),(new gm).xE(a);throw(new v).d(a);}}(this)));b=xj();Kl(a,b,t(new u,function(){return function(a){if(wj(a))return Ab().CZ(),(new hm).RO(a);throw(new v).d(a);}}(this)));b=im();Kl(a,b,t(new u,function(){return function(a){if(jm(a))return Ab().LX(),(new km).sU(a);throw(new v).d(a);}}(this)));b=lm();Kl(a,b,t(new u,function(){return function(a){if(mm(a))return nm(Ab().tq(),a);throw(new v).d(a);}}(this)));
b=om();Kl(a,b,t(new u,function(){return function(a){if(a&&a.$classData&&a.$classData.v.k7)return $ea(a);throw(new v).d(a);}}(this)))};Jl.prototype.$classData=q({vIa:0},!1,"amf.client.convert.CoreRegister$",{vIa:1,f:1});var afa=void 0;function pm(){this.l=this.$p=this.ek=null}pm.prototype=new r;pm.prototype.constructor=pm;function qm(a){return bfa(a.l,a.ek,a.$p)}function rm(a,b,c,e){a.ek=c;a.$p=e;if(null===b)throw Lb(Mb(),null);a.l=b;return a}
pm.prototype.$classData=q({WIa:0},!1,"amf.client.convert.FutureConverter$ClientFutureOps",{WIa:1,f:1});function sm(){this.l=this.$p=this.ek=null}sm.prototype=new r;sm.prototype.constructor=sm;function tm(a,b,c){var e=new sm;e.ek=b;e.$p=c;if(null===a)throw Lb(Mb(),null);e.l=a;return e}sm.prototype.sb=function(){var a=this.ek.Lf(t(new u,function(a){return function(c){return a.$p.vd(c)}}(this)),um());return cfa(a)};
sm.prototype.$classData=q({XIa:0},!1,"amf.client.convert.FutureConverter$InternalFutureOps",{XIa:1,f:1});function vm(){}vm.prototype=new r;vm.prototype.constructor=vm;
vm.prototype.JP=function(a){var b=dfa();Kl(a,b,t(new u,function(){return function(a){if(wm(a))return(new xm).KAa(a);throw(new v).d(a);}}(this)));b=efa();Kl(a,b,t(new u,function(){return function(a){if(ym(a))return(new zm).LAa(a);throw(new v).d(a);}}(this)));b=Dm();Kl(a,b,t(new u,function(){return function(a){if(ffa(a))return(new Em).U0(a);throw(new v).d(a);}}(this)));b=gfa();Kl(a,b,t(new u,function(){return function(a){if(Fm(a))return(new Gm).MAa(a);throw(new v).d(a);}}(this)));b=hfa();Kl(a,b,t(new u,
function(){return function(a){if(Hm(a))return(new Im).NAa(a);throw(new v).d(a);}}(this)));b=ifa();Kl(a,b,t(new u,function(){return function(a){if(Jm(a))return(new Km).OAa(a);throw(new v).d(a);}}(this)));b=jfa();Kl(a,b,t(new u,function(){return function(a){if(Lm(a))return(new Mm).PAa(a);throw(new v).d(a);}}(this)));b=kfa();Kl(a,b,t(new u,function(){return function(a){if(Nm(a))return(new Om).QAa(a);throw(new v).d(a);}}(this)));b=lfa();Kl(a,b,t(new u,function(){return function(a){if(Pm(a))return(new Qm).mba(a);
throw(new v).d(a);}}(this)));b=mfa();Kl(a,b,t(new u,function(){return function(a){if(Rm(a))return(new Sm).nba(a);throw(new v).d(a);}}(this)));b=Tm();Kl(a,b,t(new u,function(){return function(a){if(Um(a))return(new Vm).UO(a);throw(new v).d(a);}}(this)));b=Xm();Kl(a,b,t(new u,function(){return function(a){if(a&&a.$classData&&a.$classData.v.n8)return(new Ym).fBa(a);throw(new v).d(a);}}(this)));b=Zm();Kl(a,b,t(new u,function(){return function(a){if($m(a))return(new an).FU(a);throw(new v).d(a);}}(this)));
b=bn();Kl(a,b,t(new u,function(){return function(a){if(a&&a.$classData&&a.$classData.v.o8)return(new cn).gBa(a);throw(new v).d(a);}}(this)));b=Ej();Kl(a,b,t(new u,function(){return function(a){if(dn(a))return(new en).hBa(a);throw(new v).d(a);}}(this)));b=fn();Kl(a,b,t(new u,function(){return function(a){if(a&&a.$classData&&a.$classData.v.r8)return(new gn).mBa(a);throw(new v).d(a);}}(this)));b=hn();Kl(a,b,t(new u,function(){return function(a){if(jn(a))return(new kn).cBa(a);throw(new v).d(a);}}(this)));
b=ln();Kl(a,b,t(new u,function(){return function(a){if(a&&a.$classData&&a.$classData.v.k8)return(new mn).dBa(a);throw(new v).d(a);}}(this)));b=nfa();Kl(a,b,t(new u,function(){return function(a){if(nn(a))return(new on).tBa(a);throw(new v).d(a);}}(this)));b=ofa();Kl(a,b,t(new u,function(){return function(a){if(pn(a))return(new qn).uBa(a);throw(new v).d(a);}}(this)));b=rn();Kl(a,b,t(new u,function(){return function(a){if(pfa(a))return(new sn).pBa(a);throw(new v).d(a);}}(this)));b=vi();Kl(a,b,t(new u,
function(){return function(a){if(tn(a))return(new un).rBa(a);throw(new v).d(a);}}(this)));b=vn();Kl(a,b,t(new u,function(){return function(a){if(wn(a))return(new xn).jBa(a);throw(new v).d(a);}}(this)));b=yn();Kl(a,b,t(new u,function(){return function(a){if(zn(a))return(new An).kBa(a);throw(new v).d(a);}}(this)));b=Bn();Kl(a,b,t(new u,function(){return function(a){if(Cn(a))return(new Dn).lBa(a);throw(new v).d(a);}}(this)));b=En();Kl(a,b,t(new u,function(){return function(a){if(Fn(a))return(new Gn).qBa(a);
throw(new v).d(a);}}(this)));b=Hn();Kl(a,b,t(new u,function(){return function(a){if(a&&a.$classData&&a.$classData.v.oJ)return(new In).aH(a);throw(new v).d(a);}}(this)));b=Jn();Kl(a,b,t(new u,function(){return function(a){if(Kn(a))return(new Ln).oBa(a);throw(new v).d(a);}}(this)));b=qfa();Kl(a,b,t(new u,function(){return function(a){if(Mn(a))return(new Nn).d1(a);throw(new v).d(a);}}(this)));b=rfa();Kl(a,b,t(new u,function(){return function(a){if(On(a))return(new Pn).c1(a);throw(new v).d(a);}}(this)));
b=th();Kl(a,b,t(new u,function(){return function(a){if(Xh(a))return(new Qn).vy(a);throw(new v).d(a);}}(this)));b=sfa();Kl(a,b,t(new u,function(){return function(a){if(Ti(a))return(new Rn).VAa(a);throw(new v).d(a);}}(this)));b=Wh();Kl(a,b,t(new u,function(){return function(a){if(Vh(a))return(new Sn).MK(a);throw(new v).d(a);}}(this)));b=tfa();Kl(a,b,t(new u,function(){return function(a){if(Oi(a))return(new Tn).MK(a.lI());throw(new v).d(a);}}(this)));b=Un();Kl(a,b,t(new u,function(){return function(a){if(Qi(a))return(new Vn).$Aa(a);
throw(new v).d(a);}}(this)));b=Gi();Kl(a,b,t(new u,function(){return function(a){if(Xn(a))return(new Yn).SAa(a);throw(new v).d(a);}}(this)));b=lh();Kl(a,b,t(new u,function(){return function(a){if(Zn(a))return(new $n).TAa(a);throw(new v).d(a);}}(this)));b=ao();Kl(a,b,t(new u,function(){return function(a){if(Si(a))return(new bo).UAa(a);throw(new v).d(a);}}(this)));b=ci();Kl(a,b,t(new u,function(){return function(a){if(bi(a))return(new co).WAa(a);throw(new v).d(a);}}(this)));b=xh();Kl(a,b,t(new u,function(){return function(a){if(di(a))return(new eo).YAa(a);
throw(new v).d(a);}}(this)));b=fo();Kl(a,b,t(new u,function(){return function(a){if(ai(a))return(new go).ZAa(a);throw(new v).d(a);}}(this)));b=ho();Kl(a,b,t(new u,function(){return function(a){if(a&&a.$classData&&a.$classData.v.h8)return(new io).bBa(a);throw(new v).d(a);}}(this)));b=jo();Kl(a,b,t(new u,function(){return function(a){if(a&&a.$classData&&a.$classData.v.g8)return(new ko).XAa(a);throw(new v).d(a);}}(this)));b=lo();Kl(a,b,t(new u,function(){return function(a){if(Ni(a))return(new mo).aBa(a);
throw(new v).d(a);}}(this)));b=ej();Kl(a,b,t(new u,function(){return function(a){if(no(a))return(new oo).sAa(a);throw(new v).d(a);}}(this)));b=po();Kl(a,b,t(new u,function(){return function(a){if(qo(a))return(new ro).nBa(a);throw(new v).d(a);}}(this)));b=so();Kl(a,b,t(new u,function(){return function(a){if(a&&a.$classData&&a.$classData.v.m8)return(new to).eBa(a);throw(new v).d(a);}}(this)));var b=Bc().qf,c=Bc().Cm;uo(a,b,c);b=of().qf;c=of().Cm;uo(a,b,c);b=rh().qf;c=rh().Cm;uo(a,b,c);b=vo().qf;c=vo().Cm;
uo(a,b,c);b=wo().qf;c=wo().Cm;uo(a,b,c);b=Bo().qf;c=Bo().Cm;uo(a,b,c);Kk();a=ufa();pb(qb(),a)};vm.prototype.a=function(){return this};vm.prototype.$classData=q({RJa:0},!1,"amf.client.convert.WebApiRegister$",{RJa:1,f:1});var vfa=void 0;function Yaa(){vfa||(vfa=(new vm).a());return vfa}function Co(){}Co.prototype=new r;Co.prototype.constructor=Co;Co.prototype.a=function(){return this};
function wfa(a,b){return(new Do).d(function(a,b){return function(a,c,h,k,l,p,y){b.reportConstraint(a,c,h,k,l,p,y)}}(a,b))}Co.prototype.handler=function(a){return wfa(this,a)};Co.prototype.$classData=q({WJa:0},!1,"amf.client.handler.ErrorHandler$",{WJa:1,f:1});var xfa=void 0;function Eo(a){Ab();a=a.Fd().ha();Fo();return(new Go).Yp(a)}
function Ho(){this.BB=this.ir=this.Xr=this.CB=this.jB=this.Px=this.sz=this.mB=this.Xl=this.Gw=this.uq=this.Xj=this.uD=this.rg=this.vi=this.pr=this.jp=this.hj=this.Mj=null}Ho.prototype=new r;Ho.prototype.constructor=Ho;
Ho.prototype.a=function(){yfa=this;this.Mj=qi().Mj;this.hj=qi().hj;this.jp=qi().jp;this.pr=qi().pr;this.vi=qi().vi;this.rg=qi().rg;this.uD=qi().uD;this.Xj=qi().Xj;this.uq=qi().uq;this.Gw=qi().Gw;this.Xl=qi().Xl;this.mB=qi().mB;this.sz=qi().sz;this.Px=qi().Px;this.jB=qi().jB;this.CB=qi().CB;this.Xr=qi().Xr;this.ir=qi().ir;this.BB=qi().BB;return this};Object.defineProperty(Ho.prototype,"Nil",{get:function(){return this.BB},configurable:!0});
Object.defineProperty(Ho.prototype,"AnyUri",{get:function(){return this.ir},configurable:!0});Object.defineProperty(Ho.prototype,"Any",{get:function(){return this.Xr},configurable:!0});Object.defineProperty(Ho.prototype,"Password",{get:function(){return this.CB},configurable:!0});Object.defineProperty(Ho.prototype,"Binary",{get:function(){return this.jB},configurable:!0});Object.defineProperty(Ho.prototype,"Byte",{get:function(){return this.Px},configurable:!0});
Object.defineProperty(Ho.prototype,"File",{get:function(){return this.sz},configurable:!0});Object.defineProperty(Ho.prototype,"DateTimeOnly",{get:function(){return this.mB},configurable:!0});Object.defineProperty(Ho.prototype,"DateTime",{get:function(){return this.Xl},configurable:!0});Object.defineProperty(Ho.prototype,"Time",{get:function(){return this.Gw},configurable:!0});Object.defineProperty(Ho.prototype,"Date",{get:function(){return this.uq},configurable:!0});
Object.defineProperty(Ho.prototype,"Boolean",{get:function(){return this.Xj},configurable:!0});Object.defineProperty(Ho.prototype,"Decimal",{get:function(){return this.uD},configurable:!0});Object.defineProperty(Ho.prototype,"Float",{get:function(){return this.rg},configurable:!0});Object.defineProperty(Ho.prototype,"Double",{get:function(){return this.vi},configurable:!0});Object.defineProperty(Ho.prototype,"Long",{get:function(){return this.pr},configurable:!0});
Object.defineProperty(Ho.prototype,"Number",{get:function(){return this.jp},configurable:!0});Object.defineProperty(Ho.prototype,"Integer",{get:function(){return this.hj},configurable:!0});Object.defineProperty(Ho.prototype,"String",{get:function(){return this.Mj},configurable:!0});Ho.prototype.$classData=q({aKa:0},!1,"amf.client.model.DataTypes$",{aKa:1,f:1});var yfa=void 0;function kl(){this.IR=this.X1=this.Nq=this.Bh=this.Qe=null}kl.prototype=new r;kl.prototype.constructor=kl;function Io(){}
Io.prototype=kl.prototype;function Jo(a,b,c,e){zfa();var f=Afa(a);c.b()?c=w():(c=c.c(),c=(new A).d(Bfa(f,c)));f=c.b()?f:c.c();c=Wa().Ia(a.Bh);var g=(new A).d(a.Qe),h=Paa(Xa(),Ab().na),k=(new Ya).a();$a();var l=ab();$a();var p=w();return eb($a(),b,c,g,h,l,k,p,f,e).Lf(t(new u,function(a){return function(b){a.X1=(new A).d(b);return b}}(a)),um())}
function Cfa(a,b,c){var e=a.X1;if(!x(e))throw Lb(Mb(),(new Nb).e("Cannot validate without parsed model"));var e=e.i,f=Rk();Rk();var g=bb();a=Qk(f).rV(c,g).ei(t(new u,function(a,b,c){return function(){var e=Afa(a);Rk();var f=wk();Rk();return Qk(Rk()).sQ(b,c,f,e,!1).Lf(t(new u,function(){return function(a){return a}}(a)),um())}}(a,e,b)),um());b=Ab();c=Ab().xv();return tm(b,a,c).sb()}
function Dfa(a,b,c){var e=a.X1;if(e.b())b=w();else{var e=e.c(),f=Rk();a=Afa(a);Rk();b=(new A).d(Qk(f).sQ(e,b,c,a,!1))}if(x(b))b=b.i;else{if(w()!==b)throw(new v).d(b);b=Efa(ib(),(new Nb).e("No parsed model or current validation found, cannot validate"))}c=Ab();a=Ab().xv();return tm(c,b,a).sb()}function Ffa(a,b){return(new Ko).tc(Ab().na.SL(a),b)}function Afa(a){a=a.Nq;return(a.b()?Ok(Pk()):a.c()).p}
kl.prototype.jx=function(a,b,c){this.Qe=a;this.Bh=b;this.Nq=c;this.X1=w();this.IR="http://a.ml/amf/default_document";return this};kl.prototype.reportCustomValidation=function(a,b){return Cfa(this,a,b)};kl.prototype.reportValidation=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:return Dfa(this,a,e[0]);case 0:return Dfa(this,a,sc());default:throw"No matching overload";}};
kl.prototype.parseStringAsync=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:if(Lo(e[0]))return b=e[0],e=Ab(),b=Jo(this,a,(new A).d(Ffa(a,b)),(new cb).a()),c=Mo(),tm(e,b,c).sb();if((b=e[0])&&b.$classData&&b.$classData.v.Mja)return b=e[0],e=Ab(),b=Jo(this,this.IR,(new A).d(Ffa(this.IR,a)),b),c=Mo(),tm(e,b,c).sb();throw"No matching overload";case 2:return b=e[0],c=e[1],e=Ab(),b=Jo(this,a,(new A).d(Ffa(a,b)),c),c=Mo(),tm(e,b,c).sb();case 0:return e=
Ab(),b=Jo(this,this.IR,(new A).d(Ffa(this.IR,a)),(new cb).a()),c=Mo(),tm(e,b,c).sb();default:throw"No matching overload";}};kl.prototype.parseFileAsync=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:return b=Ab(),c=Jo(this,a,w(),(new cb).a()),e=Mo(),tm(b,c,e).sb();case 1:return c=e[0],b=Ab(),e=w(),c=Jo(this,a,e,c),e=Mo(),tm(b,c,e).sb();default:throw"No matching overload";}};
kl.prototype.$classData=q({sB:0},!1,"amf.client.parse.Parser",{sB:1,f:1});function No(){this.xCa=this.$n=0}No.prototype=new r;No.prototype.constructor=No;No.prototype.a=function(){this.$n=5;this.xCa=10;return this};No.prototype.$classData=q({yKa:0},!1,"amf.client.plugins.AMFDocumentPluginSettings$PluginPriorities$",{yKa:1,f:1});var Gfa=void 0;function Hfa(){Gfa||(Gfa=(new No).a());return Gfa}function Ifa(a){return!!(a&&a.$classData&&a.$classData.v.aS)}function Oo(){this.h9=this.l9=null}
Oo.prototype=new r;Oo.prototype.constructor=Oo;Oo.prototype.a=function(){Jfa=this;this.l9=this.l9;this.h9=this.h9;return this};Object.defineProperty(Oo.prototype,"ScalarRelaxedValidationMode",{get:function(){return this.h9},configurable:!0});Object.defineProperty(Oo.prototype,"StrictValidationMode",{get:function(){return this.l9},configurable:!0});Oo.prototype.$classData=q({CKa:0},!1,"amf.client.plugins.ValidationMode$",{CKa:1,f:1});var Jfa=void 0;
function Po(){this.fW=this.iy=this.tT=this.UW=!1;this.jc=null;this.nO=!1}Po.prototype=new r;Po.prototype.constructor=Po;Po.prototype.a=function(){this.tT=this.UW=!1;this.iy=!0;this.fW=!1;var a=gb();this.jc=(new Qo).vb(a);this.nO=!1;return this};Po.prototype.T3=function(a){this.jc=a;return this};Po.prototype.g5=function(){this.iy=!1;return this};Po.prototype.f5=function(){this.iy=!0;return this};Object.defineProperty(Po.prototype,"isEmitNodeIds",{get:function(){return this.nO},configurable:!0});
Object.defineProperty(Po.prototype,"isPrettyPrint",{get:function(){return this.fW},configurable:!0});Object.defineProperty(Po.prototype,"errorHandler",{get:function(){return this.jc},configurable:!0});Object.defineProperty(Po.prototype,"isAmfJsonLdSerilization",{get:function(){return this.iy},configurable:!0});Object.defineProperty(Po.prototype,"isWithSourceMaps",{get:function(){return this.UW},configurable:!0});
Object.defineProperty(Po.prototype,"isWithCompactUris",{get:function(){return this.tT},configurable:!0});Object.defineProperty(Po.prototype,"withNodeIds",{get:function(){this.nO=!0;return this},configurable:!0});Object.defineProperty(Po.prototype,"withAmfJsonLdSerialization",{get:function(){return this.f5()},configurable:!0});Object.defineProperty(Po.prototype,"withoutAmfJsonLdSerialization",{get:function(){return this.g5()},configurable:!0});Po.prototype.withErrorHandler=function(a){return this.T3(a)};
Object.defineProperty(Po.prototype,"withoutCompactUris",{get:function(){this.tT=!1;return this},configurable:!0});Object.defineProperty(Po.prototype,"withCompactUris",{get:function(){this.tT=!0;return this},configurable:!0});Object.defineProperty(Po.prototype,"withoutSourceMaps",{get:function(){this.UW=!1;return this},configurable:!0});Object.defineProperty(Po.prototype,"withSourceMaps",{get:function(){this.UW=!0;return this},configurable:!0});
Object.defineProperty(Po.prototype,"withoutPrettyPrint",{get:function(){this.fW=!1;return this},configurable:!0});Object.defineProperty(Po.prototype,"withPrettyPrint",{get:function(){this.fW=!0;return this},configurable:!0});Po.prototype.$classData=q({KKa:0},!1,"amf.client.render.RenderOptions",{KKa:1,f:1});function jl(){this.Bh=this.Qe=null}jl.prototype=new r;jl.prototype.constructor=jl;function Ro(){}Ro.prototype=jl.prototype;jl.prototype.tc=function(a,b){this.Qe=a;this.Bh=b;return this};
function Kfa(a,b,c,e){var f=Ab();b=b.p;c=Lfa(Mfa(),c);Nfa||(Nfa=(new So).a());a=Ofa(a,b,c,e,Nfa);e=Pfa();return tm(f,a,e).sb()}function Ofa(a,b,c,e,f){return Qfa(To(new Uo,b,a.Bh,a.Qe,c,(new ob).a()),e,f)}function Rfa(a,b,c){var e=Ab();c=Lfa(Mfa(),c);a=Sfa(To(new Uo,b.p,a.Bh,a.Qe,c,(new ob).a()),um());b=Ab().oh();return tm(e,a,b).sb()}function Tfa(a,b,c,e){var f=Ab();a=Ofa(a,b.p,Lfa(Mfa(),c),e,Ufa());b=Pfa();return tm(f,a,b).sb()}
function Vfa(a,b,c,e){var f=Ab();e=Lfa(Mfa(),e);a=Wfa(To(new Uo,b.p,a.Bh,a.Qe,e,(new ob).a()),Ab().na,c);b=Pfa();return tm(f,a,b).sb()}
jl.prototype.generateToWriter=function(a,b){for(var c=arguments.length|0,e=2,f=[];e<c;)f.push(arguments[e]),e=e+1|0;switch(f.length|0){case 0:if(Xfa(b))return Tfa(this,a,(new Po).a(),b);if(Yfa(b))return Kfa(this,a,(new Po).a(),b);throw"No matching overload";case 1:if(Xfa(f[0]))return c=f[0],Tfa(this,a,b,c);if(Yfa(f[0]))return c=f[0],Kfa(this,a,b,c);throw"No matching overload";default:throw"No matching overload";}};
jl.prototype.generateString=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:return Rfa(this,a,(new Po).a());case 1:return Rfa(this,a,e[0]);default:throw"No matching overload";}};jl.prototype.generateFile=function(a,b){for(var c=arguments.length|0,e=2,f=[];e<c;)f.push(arguments[e]),e=e+1|0;switch(f.length|0){case 1:return Vfa(this,a,b,f[0]);case 0:return Vfa(this,a,b,(new Po).a());default:throw"No matching overload";}};
jl.prototype.$classData=q({DD:0},!1,"amf.client.render.Renderer",{DD:1,f:1});function Vo(){this.em=!1;this.jc=null}Vo.prototype=new r;Vo.prototype.constructor=Vo;Vo.prototype.a=function(){this.em=!0;var a=gb();this.jc=(new Qo).vb(a);return this};Vo.prototype.T3=function(a){this.jc=a;return this};Object.defineProperty(Vo.prototype,"isWithDocumentation",{get:function(){return this.em},configurable:!0});Object.defineProperty(Vo.prototype,"errorHandler",{get:function(){return this.jc},configurable:!0});
Vo.prototype.withErrorHandler=function(a){return this.T3(a)};Object.defineProperty(Vo.prototype,"withoutDocumentation",{get:function(){this.em=!1;return this},configurable:!0});Vo.prototype.$classData=q({LKa:0},!1,"amf.client.render.ShapeRenderOptions",{LKa:1,f:1});function ll(){this.Qe=null}ll.prototype=new r;ll.prototype.constructor=ll;function Zfa(){}Zfa.prototype=ll.prototype;function Uk(a,b,c){Ab();a=Qaa(Raa(),a.Qe,(Ab(),Mo(),b.p),c,Wo(Xo(),(Ab(),Mo(),b.p)));return $fa(Mo(),a)}
ll.prototype.e=function(a){this.Qe=a;return this};ll.prototype.resolve=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:return b=e[0],Uk(this,a,b);case 0:return Uk(this,a,fb().fv);case 2:return b=e[0],e=e[1],Ab(),e=Qaa(Raa(),this.Qe,(Ab(),Mo(),a.p),b,(Ab(),aga(e))),$fa(Mo(),e);default:throw"No matching overload";}};ll.prototype.$classData=q({bS:0},!1,"amf.client.resolve.Resolver",{bS:1,f:1});
function bga(a,b){b=(new ph).e(b);var c=Yo().aJ;return cga(a,Zo(b,c))}function dga(a){return Yo().cj(a).b()?!1:!0}function $o(){this.p=null}$o.prototype=new r;$o.prototype.constructor=$o;$o.prototype.k6a=function(a){this.p=a;return this};$o.prototype.d6a=function(a,b){a=a.p;var c=Ab(),e=ega();$o.prototype.k6a.call(this,fga(new ap,a,ml(nl(new ol,c,b,e)).wa()));return this};$o.prototype.jea=function(){var a=Ab(),b=this.p.nk,c=ega();return Il(a,b,c).sb()};$o.prototype.pR=function(){return this.jea()};
Object.defineProperty($o.prototype,"results",{get:function(){return this.pR()},configurable:!0});Object.defineProperty($o.prototype,"fragment",{get:function(){Ab();var a=this.p.mg;return gga(Ab().zS(),a)},configurable:!0});$o.prototype.$classData=q({XKa:0},!1,"amf.client.validate.PayloadParsingResult",{XKa:1,f:1});function bp(){this.p=null}bp.prototype=new r;bp.prototype.constructor=bp;bp.prototype.Ofa=function(a){var b=Ab();a=this.p.mX((Ab(),Ab().zS(),a.p));var c=Ab().xv();return tm(b,a,c).sb()};
bp.prototype.I3=function(a){return this.Ofa(a)};bp.prototype.validate=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:return c=e[0],b=Ab(),c=this.p.nX(a,c),e=Ab().xv(),tm(b,c,e).sb();case 0:return this.I3(a);default:throw"No matching overload";}};bp.prototype.isValid=function(a,b){var c=Ab();a=this.p.fca(a,b);b=Ab().NX();return tm(c,a,b).sb()};bp.prototype.$classData=q({YKa:0},!1,"amf.client.validate.PayloadValidator",{YKa:1,f:1});
function cp(){this.p=null}cp.prototype=new r;cp.prototype.constructor=cp;d=cp.prototype;d.w6a=function(a,b,c,e){var f=Ab(),g=ega();cp.prototype.uAa.call(this,dp(new ep,a,b,c,ml(nl(new ol,f,e,g))));return this};d.uAa=function(a){this.p=a;return this};d.Zo=function(){var a=this.p;return hga(a,a.JR)};d.u=function(){var a=this.p;return hga(a,a.JR)};d.jea=function(){var a=Ab(),b=this.p.nk,c=ega();return Il(a,b,c).sb()};d.pR=function(){return this.jea()};d.C4=function(){return this.p.Pw};
cp.prototype.toString=function(){for(var a=arguments.length|0,b=0,c=[];b<a;)c.push(arguments[b]),b=b+1|0;switch(c.length|0){case 0:return this.Zo();case 1:return hga(this.p,c[0]|0);default:throw"No matching overload";}};Object.defineProperty(cp.prototype,"results",{get:function(){return this.pR()},configurable:!0});Object.defineProperty(cp.prototype,"profile",{get:function(){return this.p.Hl},configurable:!0});Object.defineProperty(cp.prototype,"model",{get:function(){return this.p.bi},configurable:!0});
Object.defineProperty(cp.prototype,"conforms",{get:function(){return this.C4()},configurable:!0});cp.prototype.$classData=q({ZKa:0},!1,"amf.client.validate.ValidationReport",{ZKa:1,f:1});function fp(){this.p=null}fp.prototype=new r;fp.prototype.constructor=fp;d=fp.prototype;d.Wl=function(){return this.hL()};d.fd=function(){var a=this.p.og;return x(a)?a.i.cc:iga()};d.P4=function(){return this.p.Ad};d.c5=function(){return this.p.Yy};
d.v6a=function(a,b,c,e,f,g,h){e=(new Cf).e(e).Nu();g=(new A).d((new uf).Ui(g));h=(new Cf).e(h).Nu();fp.prototype.vAa.call(this,vc(new wc,a,b,c,e,f,g,h,null));return this};d.vAa=function(a){this.p=a;return this};d.hL=function(){var a=Ab(),b=this.p.ga,c=Ab().oh();return Bb(a,b,c).sb()};Object.defineProperty(fp.prototype,"location",{get:function(){return this.Wl()},configurable:!0});Object.defineProperty(fp.prototype,"position",{get:function(){return this.fd()},configurable:!0});
Object.defineProperty(fp.prototype,"source",{get:function(){return this.c5()},configurable:!0});Object.defineProperty(fp.prototype,"validationId",{get:function(){return this.p.Us},configurable:!0});Object.defineProperty(fp.prototype,"targetProperty",{get:function(){var a=this.p.fw;return a.b()?null:a.c()},configurable:!0});Object.defineProperty(fp.prototype,"targetNode",{get:function(){return this.p.Wu},configurable:!0});
Object.defineProperty(fp.prototype,"level",{get:function(){return this.p.km},configurable:!0});Object.defineProperty(fp.prototype,"message",{get:function(){return this.P4()},configurable:!0});fp.prototype.$classData=q({$Ka:0},!1,"amf.client.validate.ValidationResult",{$Ka:1,f:1});function gp(){}gp.prototype=new r;gp.prototype.constructor=gp;gp.prototype.wI=function(a,b){return Lk(0,a,b)};gp.prototype.a=function(){return this};
function Nk(a,b,c,e,f,g){var h=Ab(),k=Rk();b=b.p;f=f.p;a=Qk(k).sQ(b,c,e,f,g).Lf(t(new u,function(){return function(a){return a}}(a)),um());c=Ab().xv();return tm(h,a,c).sb()}function Lk(a,b,c){a=Ab();var e=Rk();c=c.p;b=Qk(e).rV(b,c);c=Ab();null===Ab().oN&&null===Ab().oN&&(Ab().oN=(new hp).vp(c));c=Ab().oN;return tm(a,b,c).sb()}gp.prototype.F3=function(){return wk()};gp.prototype.vI=function(a){return Qk(Rk()).MT(a)};gp.prototype.emitShapesGraph=function(a){return this.vI(a)};
gp.prototype.loadValidationProfile=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;b=void 0===e[0]?Ok(Pk()):e[0];return this.wI(a,b)};gp.prototype.validate=function(a,b){for(var c=arguments.length|0,e=2,f=[];e<c;)f.push(arguments[e]),e=e+1|0;c=void 0===f[0]?this.F3():f[0];e=void 0===f[1]?Ok(Pk()):f[1];return Nk(this,a,b,c,e,void 0===f[2]?!1:!!f[2])};gp.prototype.$classData=q({aLa:0},!1,"amf.client.validate.Validator$",{aLa:1,f:1});var jga=void 0;
function Mk(){jga||(jga=(new gp).a());return jga}function np(){this.o1=null}np.prototype=new r;np.prototype.constructor=np;np.prototype.a=function(){kga=this;var a=[op().vg,pp().vg,op().vg];if(0===(a.length|0))a=(new qp).a();else{for(var b=Yg(new Zg,(new qp).a()),c=0,e=a.length|0;c<e;)ah(b,a[c]),c=1+c|0;a=b.gb}this.o1=a;return this};
function lga(a,b){for(;;){if(b.b())return hb(ib(),jb(function(){return function(){}}(a)),um());var c=b.fa();if(a.o1.Ja(c.wh()))b=b.sa();else{var e=c.Sp().xb(t(new u,function(){return function(a){return!qb().o1.Ja(a.wh())}}(a)));return lga(a,e).ei(t(new u,function(a,b){return function(){return b.cn().Lf(t(new u,function(a,b){return function(){return qb().o1.Om(b.wh())}}(a,b)),um())}}(a,c)),um()).ei(t(new u,function(a,b){return function(){return lga(qb(),b.sa())}}(a,b)),um())}}}
function pb(a,b){if(b&&b.$classData&&b.$classData.v.b7)mga(tb(),b);else if(b&&b.$classData&&b.$classData.v.zz)rp(tb(),b);else if(b&&b.$classData&&b.$classData.v.a7)nga(tb(),b);else if(b&&b.$classData&&b.$classData.v.gja)oga(tb(),b);else if(b&&b.$classData&&b.$classData.v.u7)pga(tb(),b);else throw(new v).d(b);}
np.prototype.cn=function(){qga||(qga=(new sp).a());qga.LG();qca().LG();var a=op().cn(),b=pp().cn(),c=(new tp).a(),e=c.cn(),f=ib(),a=H(z(),(new J).aa([a,b,e])),b=z();return lb(f,a,b.s,um()).ei(t(new u,function(){return function(){var a=lga,b=qb(),c;c=tb();var e=(new up).fo(c.Z2),f=(new up).fo(c.kE),y=pf().s,e=vp(e,f,y),f=(new up).fo(c.a0),y=pf(),e=e.la(f,y.s);c=(new up).fo(c.ZT);f=pf();c=e.la(c,f.s);return a(b,c.ce())}}(this)),um()).Lf(t(new u,function(a,b){return function(){mga(tb(),op());rp(tb(),
pp());oga(tb(),b)}}(this,c)),um())};np.prototype.$classData=q({bLa:0},!1,"amf.core.AMF$",{bLa:1,f:1});var kga=void 0;function qb(){kga||(kga=(new np).a());return kga}function rga(){this.m=this.ga=this.sf=this.Hg=this.FP=this.Nq=this.Fya=this.qh=this.JC=this.Qe=this.Bh=this.he=this.l2=this.Ry=null}rga.prototype=new r;rga.prototype.constructor=rga;
function sga(a,b,c){if(x(b)){b=b.i;if(a.Qe.qa()){b=b.te();var e=a.Qe.c();b=-1===(b.indexOf(ja(e))|0)}else b=!1;b&&c.X(t(new u,function(a){return function(b){var c=a.m,e=Bc().z6,l=w();Cc(c,e,"",l,"Cannot reference fragments of another spec",b.ga)}}(a)))}}
function tga(a,b){wp(xp(),"AMFCompiler#parseDomain: parsing domain "+a.Ry);var c=a.m.Xi,e=a.Qe;e.b()?e=uga(tb(),b.xC).Ib(t(new u,function(a,b){return function(a){return a.SB(b)}}(a,b))):(e=e.c(),e=vga(tb(),e).Ib(t(new u,function(a,b){return function(a){return a.SB(b)}}(a,b))));var f=!1;if(x(e))e=e.i,wp(xp(),"AMFCompiler#parseSyntax: parsing domain "+a.Ry+" plugin "+e.wh()),b=wga(a,b,e).Lf(t(new u,function(a,b,c){return function(e){var f=a.m,y=f.yf,I=xga(f),E=z(),y=y.la(I,E.s),y=(new yp).co(f.Xg,y,
f.Yh,f.Xi,f.tp());y.Ru=f.Ru;y.up=f.up;e=b.OA(e,y,a.l2,a.FP);if(x(e))return yga(e.i,c.ue);if(w()===e)return M(),e=(new N).a(),e=(new zp).P((new Q).a(),e),e=Te(e,c.ga),f=c.ga,y=Ap().nc,e=Eb(e,y,f),M(),f=(new N).a(),f=(new Bp).P((new Q).a(),f),y=c.ue,I=Wl().Sd,f=Eb(f,I,y),y=c.xC,I=Wl().Md,f=Eb(f,I,y),y=Rl().ob,ff(e,y,f);throw(new v).d(e);}}(a,e,b)),um());else{if(w()===e&&(f=!0,a.Qe.qa()))throw(new Cp).e(a.Qe.c());if(f)b=hb(ib(),jb(function(a,b){return function(){wp(xp(),"AMFCompiler#parseSyntax: parsing domain "+
a.Ry+" NO PLUGIN");M();var c=(new N).a(),c=(new zp).P((new Q).a(),c),e=b.ga,f=Ap().nc,c=Eb(c,f,e),c=Te(c,b.ga);M();var e=(new N).a(),e=(new Bp).P((new Q).a(),e),f=b.ue,y=Wl().Sd,e=Eb(e,y,f),f=b.xC,y=Wl().Md,e=Eb(e,y,f),f=Rl().ob;return ff(c,f,e)}}(a,b)),um());else throw(new v).d(e);}return b.Lf(t(new u,function(a,b){return function(c){c.Po((new A).d(b));wp(xp(),"AMFCompiler#parseDomain: model ready "+a.Ry);zga().ae(c,qd(function(){return function(a){return a}}(a)));return c}}(a,c)),um())}
function Aga(a,b){return hb(ib(),jb(function(a,b){return function(){M();var a=(new N).a(),a=(new Bp).P((new Q).a(),a),a=Te(a,b.Bf+"#/"),c=b.Dx.u(),h=Wl().Sd,a=Eb(a,h,c),c=b.oL;c.b()||(c=c.c(),h=Wl().Md,Eb(a,h,c));M();var c=(new N).a(),c=(new zp).P((new Q).a(),c),h=b.Bf,k=Ap().nc,c=Eb(c,k,h),c=Te(c,b.Bf),h=Rl().ob,a=ff(c,h,a),c=b.Bf,h=Ap().nc;return Eb(a,h,c)}}(a,b)),um())}
function Bga(a){wp(xp(),"AMFCompiler#build: Building "+a.Ry);if(Cga(a.sf))return Efa(ib(),(new Dp).SK(a.sf.oA));var b=a.qh,c=a.ga,e=function(a){return function(){wp(xp(),"AMFCompiler#build: compiling "+a.Ry);return Dga(a)}}(a);a=Ega(a.sf.oA);a.b()||(a=a.c(),Fga(b,a,c));a=Gga(b,c,G());if(x(a))return b.qh.R(c).Uba()?b.qh.R(c):(b.qh.Hs(c),e().Lf(t(new u,function(a,b){return function(c){var e=hb(ib(),jb(function(a,b){return function(){return b}}(a,c)),um());a.qh.Rl(b,e);return c}}(b,c)),um()));a=b.qh.Ta(c);
if(x(a))return a.i;if(w()===a)return e=e(),b.qh.Rl(c,e),e;throw(new v).d(a);}function Dga(a){return Hga(a.l2,a.ga,a.Nq).Lf(t(new u,function(a){return function(c){return Iga(a,c)}}(a)),um()).ei(t(new u,function(a){return function(c){if(Ep(c)){c=c.i;var e=a.Bh;if(x(e)&&(e=e.i,1===Fp(a.sf.oA)))throw(new Gp).e(e);c=Aga(a,c)}else if(Hp(c))c=tga(a,c.i);else throw(new v).d(c);return c}}(a)),um())}
function Jga(a,b){if(2<xa(b)&&35===ya(b,0)&&37===ya(b,1))return wp(xp(),"AMFCompiler#autodetectSyntax: auto detected application/yaml media type"),(new A).d("application/yaml");a=a.he;if(!a.b()){a.c();b=(new ph).e(ja(b));a=b.ia.length|0;for(var c=0;;){if(c<a)var e=b.jb(c),e=null===e?0:e.t,e=!(10!==e&&9!==e&&13!==e&&32!==e);else e=!1;if(e)c=1+c|0;else break}a=c;b=a<(b.ia.length|0)?(new A).d(b.jb(a)):w();if(x(b)&&(b=b.i,b=null===b?0:b.t,123===b||91===b))return wp(xp(),"AMFCompiler#autodetectSyntax: auto detected application/json media type"),
(new A).d("application/json")}return w()}
function Iga(a,b){wp(xp(),"AMFCompiler#parseSyntax: parsing syntax "+a.Ry);b=zga().ae(b,qd(function(){return function(a){return a}}(a)));var c=a.Bh;if(c.b())c=w();else{var c=c.c(),e=Kga(tb(),c),e=e.b()?w():e.c().$V(c,b.Dx,a.m,a.FP);e.b()?c=w():(e=e.c(),c=(new A).d((new P).N(c,e)))}c.b()&&(c=a.Bh,w()===c?(c=b.oL,c.b()?c=w():(c=c.c(),e=Kga(tb(),c),e=e.b()?w():e.c().$V(c,b.Dx,a.m,a.FP),e.b()?c=w():(e=e.c(),c=(new A).d((new P).N(c,e)))),c.b()&&(Ip(),c=mba(b.Bf),c.b()?c=w():(c=c.c(),Ip(),c=nba(c)),c.b()?
c=w():(c=c.c(),e=Kga(tb(),c),e=e.b()?w():e.c().$V(c,b.Dx,a.m,a.FP),e.b()?c=w():(e=e.c(),c=(new A).d((new P).N(c,e))))),c.b()&&(c=Jga(a,b.Dx),c.b()?c=w():(c=c.c(),e=Kga(tb(),c),e=e.b()?w():e.c().$V(c,b.Dx,a.m,a.FP),e.b()?c=w():(e=e.c(),c=(new A).d((new P).N(c,e)))))):c=w());if(x(c)&&(e=c.i,null!==e))return c=e.pa(),e=e.Ba(),e=zga().ae(e,qd(function(){return function(a){return a}}(a))),Zf(),a=Lga(Mga(),e,b.Bf,c,H(z(),G()),a.JC,b.Dx.u()),(new ag).d(a);if(w()===c)return Zf(),(new $f).d(b);throw(new v).d(c);
}function Nga(a,b,c){x(b)&&pba(b.i)&&c.X(t(new u,function(a){return function(b){if(b.mg.qa()){var c=a.m,h=Bc().F6;b=b.Ea;var k=w();Cc(c,h,"",k,"Cannot use reference with # in a RAML fragment",b.ga)}}}(a)))}
function wga(a,b,c){var e=c.bF(a.m),f=e.bO(b.Gg,a.m);wp(xp(),"AMFCompiler#parseReferences: "+f.yf.Rr().ce().lb()+" references found in "+a.Ry);f=f.yf.Rr().ce().xb(t(new u,function(){return function(a){a=a.Bf;return!(0<=(a.length|0)&&"#"===a.substring(0,1))}}(a)));c=t(new u,function(a,b,c){return function(e){var f=e.yf,y=t(new u,function(){return function(a){return a.Ea}}(a)),I=z(),f=f.ka(y,I.s);return Oga(e,a.sf,a.qh,a.m,a.Nq,f,b.LB()).ei(t(new u,function(a,b,c,e,f){return function(g){if(null!==g){var h=
g.Od;if(x(h))return g=h.i,sga(a,Pga(g),b),Nga(a,Pga(g),c.yf),g=Jp(new Kp,g,c,w()),e.iX(g,a.m,a.sf,a.Nq,a.qh).Lf(t(new u,function(){return function(a){return(new A).d(a)}}(a)),um())}if(null!==g&&(g=g.rO,x(g))){var k=g.i;if(Qga(k)&&!f.LB()){g=a.m;var h=Bc().K5,l=c.Bf,k=k.Ls,p=c.yf.fa().Ea,y=w();Cc(g,h,l,y,k,p.ga);return hb(ib(),jb(function(){return function(){return w()}}(a)),um())}Rga(c)||b.X(t(new u,function(a,b,c){return function(e){var f=a.m,g=Bc().iu,h=b.Bf,k=c.Xm(),l=w();Cc(f,g,h,l,k,e.ga)}}(a,
c,k)))}return hb(ib(),jb(function(){return function(){return w()}}(a)),um())}}(a,f,e,c,b)),um())}}(a,c,e));e=z();f=f.ka(c,e.s);c=ib();e=z();return lb(c,f,e.s,um()).Lf(t(new u,function(a,b){return function(c){c=c.tu(t(new u,function(){return function(a){return a.wa()}}(a)));return Sga(new Lp,b.Gg,b.ga,b.xC,c,b.JC,b.ue)}}(a,b)),um())}rga.prototype.$classData=q({cLa:0},!1,"amf.core.AMFCompiler",{cLa:1,f:1});function sp(){}sp.prototype=new r;sp.prototype.constructor=sp;sp.prototype.a=function(){return this};
sp.prototype.LG=function(){$a().I_.b()&&Tga($a(),(new Mp).d(function(){return function(a,b,c,e,f,g,h,k,l){var p=new rga,y=b.na;b=(new A).d(b);p.Ry=a;p.l2=y;p.he=b;p.Bh=c;p.Qe=e;p.JC=f;p.qh=g;p.Fya=h;p.Nq=k;p.FP=l;var I;try{var E=(new Cf).e(p.Ry);I=Uga(E.zd)}catch(V){if((a=gi(Mb(),V))&&a.$classData&&a.$classData.v.Cwa)c=p.Fya,c.b()?(c=p.Ry,z(),Oj(),e=(new $g).a(),c=(new yp).co(c,e.wa(),(new Np).a(),Op(),w())):c=c.c(),e=Bc().C9,f=p.Hg,a=a.Ls,g=Th(R(),p.Hg),k=w(),Cc(c,e,f,k,a,g.ga),I=p.Ry;else{if(hi(a))throw(new Pp).e(a.Xm());
throw V;}}p.Hg=I;b.b()?b=w():(b=b.c(),b=(new A).d(Vga(b,p.Hg)));b.b()?(Xa(),b=p.l2,a=p.Hg,b=Wga(Xa(),b,a)):b=b.c();p.sf=b;p.ga=Xga(p.sf);b=!1;a=null;a:{if(x(h)&&(b=!0,a=h,c=a.i,c.Xg===p.ga)){h=c;break a}if(b)h=a.i,b=(new yp).co(p.ga,h.yf,h.Yh,h.Xi,h.tp()),b.Ru=h.Ru,b.up=h.up,h=b;else if(w()===h)h=p.ga,z(),Oj(),b=(new $g).a(),h=(new yp).co(h,b.wa(),(new Np).a(),Op(),w());else throw(new v).d(h);}p.m=h;return Bga(p)}}(this)))};sp.prototype.$classData=q({dLa:0},!1,"amf.core.AMFCompiler$",{dLa:1,f:1});
var qga=void 0;function Qp(){this.xT=0}Qp.prototype=new r;Qp.prototype.constructor=Qp;Qp.prototype.a=function(){this.xT=0;return this};function Op(){var a=Yga();a.xT=1+a.xT|0;return a.xT}Qp.prototype.$classData=q({fLa:0},!1,"amf.core.AMFCompilerRunCount$",{fLa:1,f:1});var Zga=void 0;function Yga(){Zga||(Zga=(new Qp).a());return Zga}function Uo(){this.fGa=this.fc=this.Qe=this.Bh=this.Od=null}Uo.prototype=new r;Uo.prototype.constructor=Uo;
function $ga(a){var b=(new Rp).a();aha(a,b,Ufa());return b.u()}function Sfa(a,b){return hb(ib(),jb(function(a){return function(){return $ga(a)}}(a)),b)}function To(a,b,c,e,f,g){a.Od=b;a.Bh=c;a.Qe=e;a.fc=f;a.fGa=g;return a}function Qfa(a,b,c){var e=um();return hb(ib(),jb(function(a,b,c){return function(){aha(a,b,c)}}(a,b,c)),e)}function Wfa(a,b,c){var e=um();return Sfa(a,e).Lf(t(new u,function(a,b,c){return function(a){bha(b,c,a)}}(a,b,c)),e)}
function aha(a,b,c){wp(xp(),"AMFSerializer#render: Rendering to "+a.Bh+" ("+a.Qe+" file) "+jd(a.Od));if(a.Qe===Sp().hr.te())if(a.fc.R9)c=(new Tp).Jba(b,a.fc.S9,c),cha(dha(),a.Od,c,a.fc);else{var e=pp().hh.IC;x(e)&&(e=(new kc).xU(kba(a.Od,a.fc)),eha().l3(a.Bh,e,b,c))}else{e=fha(a);if(e.b())throw Lb(Mb(),(new Nb).e("Cannot serialize domain model '"+jd(a.Od)+"' for detected media type "+a.Bh+" and vendor "+a.Qe));var e=e.c(),f=(new Up).a();if(e.f0(a.Od,f,a.fc,a.fGa))e=Vp(new Wp,f.IM.c(),w());else throw Lb(Mb(),
(new Nb).e("Error unparsing syntax "+a.Bh+" with domain plugin "+e.wh()));f=Kga(tb(),a.Bh);if(x(f))f.i.l3(a.Bh,e,b,c);else if(w()===f&&Ul(a.Od))b=(new Xj).d(b),a=B(Xp(a.Od.g,Rl().ob).g,Wl().Sd).G,a=a.b()?null:a.c(),c.Bv(b.oq,a);else throw Lb(Mb(),(new Nb).e("Unsupported media type "+a.Bh+" and vendor "+a.Qe));}}
function fha(a){var b=vga(tb(),a.Qe).Ib(t(new u,function(a){return function(b){return b.py().Ja(a.Bh)&&b.aE(a.Od)}}(a)));if(x(b))return(new A).d(b.i);if(w()===b)return uga(tb(),a.Bh).Ib(t(new u,function(a){return function(b){return b.aE(a.Od)}}(a)));throw(new v).d(b);}function gha(a,b){var c=um();return hb(ib(),jb(function(a,b){return function(){a.Qe===Sp().hr.te()&&cha(dha(),a.Od,b,a.fc)}}(a,b)),c)}Uo.prototype.$classData=q({gLa:0},!1,"amf.core.AMFSerializer",{gLa:1,f:1});function Yp(){}
Yp.prototype=new r;Yp.prototype.constructor=Yp;Yp.prototype.a=function(){return this};Yp.prototype.LG=function(){if(nb().OW.b()){var a=nb(),b=(new Zp).a();a.OW=(new A).d(b)}};Yp.prototype.$classData=q({hLa:0},!1,"amf.core.AMFSerializer$",{hLa:1,f:1});var hha=void 0;function qca(){hha||(hha=(new Yp).a());return hha}function $p(){this.bQ=this.cQ=this.hI=this.ac=this.DG=null}$p.prototype=new r;$p.prototype.constructor=$p;
$p.prototype.a=function(){iha=this;this.DG=G();this.ac=w();this.hI=H(z(),G());this.cQ=pc(fc().db,G());this.bQ=pc(fc().db,G());return this};function jha(a,b,c){kha(a,b);if((c=gc(c))&&c.$classData&&c.$classData.v.pea)return c.Lf(t(new u,function(a,b){return function(a){lha(xp(),b);return a}}(a,b)),um());lha(a,b);return c}function mha(a){var b=a.ac;if(!b.b()){var c=b.c(),b=xp(),e=xp().DG,f=z(),c=[nha(c)],f=H(f,(new J).aa(c)),c=z();b.DG=e.la(f,c.s)}a.ac=w();return a}
function oha(a,b,c,e){var f=b.pc();if(x(f)){var f=f.i,g=kd(ta(),f,"::SEP::",0),f=(new Qd).d(g.j[0]),g=g.j[1];if("start"===g){e=e?2+c|0:c;g=b.sa().ol(t(new u,function(a,b){return function(a){var c=b.ta+"::SEP::end";return!(0<=(a.length|0)&&a.substring(0,c.length|0)===c)}}(a,f)));e=oha(a,g,e,!0);b=b.sa().Ck(t(new u,function(a,b){return function(a){var c=b.ta+"::SEP::end";return!(0<=(a.length|0)&&a.substring(0,c.length|0)===c)}}(a,f))).sa();b=oha(a,b,c,!0);var h=Ea(a.bQ.R(f.ta)),g=h.Na,h=h.$a;a=Ea(a.cQ.R(f.ta));
var k=a.$a;a=g-a.Na|0;g=(-2147483648^a)>(-2147483648^g)?-1+(h-k|0)|0:h-k|0;h=(new ph).e(" ");c=pha(h,c);c=(new ph).e(c);f="| ["+(new aq).La(a,g)+" ms] "+f.ta;f=(new ph).e(f);a=fc().wN;c=vp(c,f,a);c=H(z(),(new J).aa([c]));f=z();e=c.la(e,f.s);c=z();return e.la(b,c.s)}if("end"===g)return G();throw(new v).d(g);}if(w()===f)return G();throw(new v).d(f);}function qha(a){oha(a,a.hI,0,!1).X(t(new u,function(){return function(a){bq(cq().Wp,a)}}(a)))}
function wp(a,b){var c=a.ac;if(!c.b()){var c=c.c(),e=rha(),f=e.Na,e=e.$a;xp().ac=(new A).d(sha(c,b,(new aq).La(f,e)))}return a}function lha(a,b){a=a.ac;if(!a.b()){a.c();a=xp();var c=xp().bQ,e=rha();a.bQ=c.Zb((new P).N(b,(new aq).La(e.Na,e.$a)));a=xp();c=xp().hI;b=H(z(),(new J).aa([b+"::SEP::end"]));e=z();a.hI=c.la(b,e.s)}}
function tha(a){var b=a.DG,c=z();b.cg(c.s).X(t(new u,function(a){return function(b){if(null!==b){var c=b.pa(),h=b.si(),k=c.nF;b=k.Na;k=k.$a;b=(new dq).mU((new aq).La(b,k));var k=cq().Wp,l=c.jK,p=l.Na,l=l.$a,y=c.nF,I=y.$a,y=p-y.Na|0;bq(k,"---- Run "+h+" ("+(new aq).La(y,(-2147483648^y)>(-2147483648^p)?-1+(l-I|0)|0:l-I|0)+" ms) ----\n");c.sH.X(t(new u,function(a,b){return function(a){var c=cq().Wp,e=a.$C,f=e.Na,e=e.$a,g=b.ta,h=g.$a,g=f-g.Na|0;bq(c,"   ("+(new aq).La(g,(-2147483648^g)>(-2147483648^f)?
-1+(e-h|0)|0:e-h|0)+" ms) "+a.aQ);b.ta=a.$C}}(a,b)));h=cq().Wp;k=c.jK;c=k.Na;k=k.$a;p=b.ta;b=p.$a;p=c-p.Na|0;bq(h,"   ("+(new aq).La(p,(-2147483648^p)>(-2147483648^c)?-1+(k-b|0)|0:k-b|0)+" ms) Finished");bq(cq().Wp,"\n\n\n")}else throw(new v).d(b);}}(a)))}function uha(a){var b=a.ac;if(!b.b()){var c=b.c(),b=xp(),e=xp().DG,f=z(),c=[nha(c)],f=H(f,(new J).aa(c)),c=z();b.DG=e.la(f,c.s)}e=rha();b=e.Na;e=e.$a;a.ac=(new A).d(vha(new eq,(new aq).La(b,e),(new aq).La(b,e),G()));return a}
function kha(a,b){a=a.ac;if(!a.b()){a.c();a=xp();var c=xp().cQ,e=rha();a.cQ=c.Zb((new P).N(b,(new aq).La(e.Na,e.$a)));a=xp();c=xp().hI;b=H(z(),(new J).aa([b+"::SEP::start"]));e=z();a.hI=c.la(b,e.s)}}$p.prototype.buildReport=function(){tha(this)};$p.prototype.finish=function(){return mha(this)};$p.prototype.start=function(){return uha(this)};$p.prototype.log=function(a){return wp(this,a)};$p.prototype.printStages=function(){qha(this)};$p.prototype.withStage=function(a,b){return jha(this,a,b)};
$p.prototype.endStage=function(a){lha(this,a)};$p.prototype.startStage=function(a){kha(this,a)};Object.defineProperty($p.prototype,"stagesEndTime",{get:function(){return this.bQ},set:function(a){this.bQ=a},configurable:!0});Object.defineProperty($p.prototype,"stagesStartTime",{get:function(){return this.cQ},set:function(a){this.cQ=a},configurable:!0});Object.defineProperty($p.prototype,"stagesSeq",{get:function(){return this.hI},set:function(a){this.hI=a},configurable:!0});
Object.defineProperty($p.prototype,"current",{get:function(){return this.ac},set:function(a){this.ac=a},configurable:!0});Object.defineProperty($p.prototype,"executions",{get:function(){return this.DG},set:function(a){this.DG=a},configurable:!0});$p.prototype.$classData=q({GLa:0},!1,"amf.core.benchmark.ExecutionLog$",{GLa:1,f:1});var iha=void 0;function xp(){iha||(iha=(new $p).a());return iha}function fq(){this.OR=this.g6=this.XZ=0}fq.prototype=new r;fq.prototype.constructor=fq;
fq.prototype.a=function(){this.XZ=-1;this.g6=-2;this.OR=-3;return this};fq.prototype.$classData=q({HLa:0},!1,"amf.core.client.ExitCodes$",{HLa:1,f:1});var wha=void 0;function gq(){wha||(wha=(new fq).a());return wha}function cb(){this.iy=!1;this.bT=null}cb.prototype=new r;cb.prototype.constructor=cb;cb.prototype.a=function(){this.iy=!0;this.bT=w();return this};cb.prototype.g5=function(){this.iy=!1;return this};cb.prototype.f5=function(){this.iy=!0;return this};
Object.defineProperty(cb.prototype,"definedBaseUrl",{get:function(){return this.bT},configurable:!0});Object.defineProperty(cb.prototype,"isAmfJsonLdSerilization",{get:function(){return this.iy},configurable:!0});cb.prototype.withoutBaseUnitUrl=function(){this.bT=w();return this};cb.prototype.withBaseUnitUrl=function(a){this.bT=(new A).d(a);return this};Object.defineProperty(cb.prototype,"withAmfJsonLdSerialization",{get:function(){return this.f5()},configurable:!0});
Object.defineProperty(cb.prototype,"withoutAmfJsonLdSerialization",{get:function(){return this.g5()},configurable:!0});cb.prototype.$classData=q({Mja:0},!1,"amf.core.client.ParsingOptions",{Mja:1,f:1});function xha(){}xha.prototype=new r;xha.prototype.constructor=xha;function yha(){}yha.prototype=xha.prototype;function zha(){}zha.prototype=new r;zha.prototype.constructor=zha;function Aha(){}Aha.prototype=zha.prototype;function hq(){}hq.prototype=new r;hq.prototype.constructor=hq;hq.prototype.a=function(){return this};
function iq(a,b,c){b.X(t(new u,function(a,b){return function(a){a.Va(b)}}(a,c)))}function jq(a,b,c){a:{for(a=b.jf.Lb;!a.b();){b=a.fa();if(Bha(c,b)){c=(new A).d(a.fa());break a}a=a.sa()}c=w()}c.b()?c=w():(c=c.c(),c=(new A).d(c));c.b()?c=w():(c=c.c(),c=(new A).d(c.cc.Dd));return c.b()?Gd():c.c()}function kq(a,b,c,e){a=lq(R(),mq(nq(),c),e);T(b.r,a)}function oq(a,b,c){a=b.r;b=b.da;var e=(new pq).e(b);R();var f=Th(R(),"@id");R();c=c.trim();c=Th(R(),c);qq(e,f,c);T(a,lq(R(),rq(sq(),e.r,b),O().ua))}
function tq(a,b,c){b.X(t(new u,function(a,b){return function(a){a.Ob(b)}}(a,c)))}function uq(a,b,c,e){a=Zb(e,n($b));a.b()?a=w():(a=a.c(),a=(new A).d(a.ga));a=a.b()?"":a.c();e=Zb(e,n(Fd));e.b()?e=w():(e=e.c(),e=(new A).d(Af(Bf(),e.cc.Dd.Ne,e.cc.Dd.eg,e.cc.Lo.Ne,e.cc.Lo.eg)));e=e.b()?Bf().xn:e.c();nq();vq();e=Cha(a,0,0,e.vf,e.Ef,e.ag,e.fg);c=c.Ct;a=wq();Zf();xq();yq();var f=(new zq).a();return Dha(new Aq,b,c,a,e,Bq(f),Eha().qda).so}
hq.prototype.$classData=q({NLa:0},!1,"amf.core.emitter.BaseEmitters.package$",{NLa:1,f:1});var Fha=void 0;function Cq(){Fha||(Fha=(new hq).a());return Fha}function Dq(){}Dq.prototype=new r;Dq.prototype.constructor=Dq;Dq.prototype.a=function(){return this};function Gha(a,b,c,e,f){a=Nh(new Oh,e,(M(),(new N).a()));return Ih(new Jh,b,Rh(new Sh,c,Ph(new Qh,a,f)),w())}Dq.prototype.$classData=q({PLa:0},!1,"amf.core.emitter.BaseEmitters.package$RawValueEmitter$",{PLa:1,f:1});var Hha=void 0;
function Iha(){Hha||(Hha=(new Dq).a());return Hha}function Eq(a){return!!(a&&a.$classData&&a.$classData.v.ib)}function Fq(a){return!!(a&&a.$classData&&a.$classData.v.lh)}function mb(){this.p3=this.f2=this.LN=this.NS=!1;this.z0=null;this.R9=!1;this.jc=null;this.nO=this.S9=!1}mb.prototype=new r;mb.prototype.constructor=mb;mb.prototype.a=function(){this.p3=this.f2=this.LN=this.NS=!1;this.z0=t(new u,function(){return function(){return!1}}(this));this.R9=!0;this.jc=gb();this.nO=this.S9=!1;return this};
function Jha(){var a=(new mb).a();a.p3=!0;return a}mb.prototype.$classData=q({QLa:0},!1,"amf.core.emitter.RenderOptions",{QLa:1,f:1});function Gq(){}Gq.prototype=new r;Gq.prototype.constructor=Gq;Gq.prototype.a=function(){return this};function Lfa(a,b){a=(new mb).a();a.NS=b.UW;a.R9=b.iy;a.LN=b.tT;var c=aga(b.jc);a.jc=c;a.S9=b.fW;return a}Gq.prototype.$classData=q({RLa:0},!1,"amf.core.emitter.RenderOptions$",{RLa:1,f:1});var Kha=void 0;function Mfa(){Kha||(Kha=(new Gq).a());return Kha}
function ob(){this.OS=!1;this.T9=null}ob.prototype=new r;ob.prototype.constructor=ob;ob.prototype.a=function(){this.OS=!0;this.T9=gb();return this};function Lha(){var a=(new ob).a();a.OS=!1;return a}ob.prototype.$classData=q({SLa:0},!1,"amf.core.emitter.ShapeRenderOptions",{SLa:1,f:1});function Hq(){}Hq.prototype=new r;Hq.prototype.constructor=Hq;Hq.prototype.a=function(){return this};Hq.prototype.$classData=q({TLa:0},!1,"amf.core.emitter.ShapeRenderOptions$",{TLa:1,f:1});var Mha=void 0;
function Iq(a){a.Yc(Tb(new Ub,Vb().tm,"","",G()))}function Jq(a){return!!(a&&a.$classData&&a.$classData.v.Oc)}function Kq(){this.zv=this.qv=this.yi=this.un=this.cb=null}Kq.prototype=new r;Kq.prototype.constructor=Kq;
Kq.prototype.a=function(){Nha=this;this.cb=Lq(new Mq,"shacl",C().cb.he,"SHACL vocabulary","shacl.yaml");this.un=Lq(new Mq,"rdfs",C().un.he,"RDFS vocabulary","rdfs.yaml");this.yi=Lq(new Mq,"rdf",C().yi.he,"RDF vocabulary","rdf.yaml");this.qv=Lq(new Mq,"owl",C().qv.he,"OWL2 vocabulary","owl.yaml");this.zv=H(z(),(new J).aa([this.cb,this.un,this.yi,this.qv]));return this};Kq.prototype.$classData=q({zMa:0},!1,"amf.core.metamodel.domain.ExternalModelVocabularies$",{zMa:1,f:1});var Nha=void 0;
function Bi(){Nha||(Nha=(new Kq).a());return Nha}function Wq(){this.zv=this.oc=this.Kc=this.zg=this.Gb=this.dc=this.bb=this.dg=this.tm=null}Wq.prototype=new r;Wq.prototype.constructor=Wq;
Wq.prototype.a=function(){Oha=this;this.tm=Lq(new Mq,"parser",C().oD.he,"Internal namespace","");this.dg=Lq(new Mq,"doc",C().Zd.he,"Document Model vocabulary for AMF. The Document Model defines the basic modular units where domain descriptions can be encoded.","aml_doc.yaml");this.bb=Lq(new Mq,"apiContract",C().bb.he,"API contract vocabulary","api_contract.yaml");this.dc=Lq(new Mq,"core",C().dc.he,"Core vocabulary with common classes and properties","core.yaml");this.Gb=Lq(new Mq,"shapes",C().Gb.he,
"Vocabulary defining data shapes, used as an extension to SHACL","data_shapes.yaml");this.zg=Lq(new Mq,"data",C().zg.he,"Vocabulary defining a default set of classes to map data structures composed of recursive records of fields,\nlike the ones used in JSON or YAML into a RDF graph.\nThey can be validated using data shapes.","data_model.yaml");this.Kc=Lq(new Mq,"meta",C().Kc.he,"Vocabulary containing meta-definitions","aml_meta.yaml");this.oc=Lq(new Mq,"security",C().oc.he,"Vocabulary for HTTP security information",
"security.yaml");this.zv=H(z(),(new J).aa([this.dg,this.dc,this.bb,this.Gb,this.zg,this.oc,this.Kc]));return this};Wq.prototype.$classData=q({DMa:0},!1,"amf.core.metamodel.domain.ModelVocabularies$",{DMa:1,f:1});var Oha=void 0;function Vb(){Oha||(Oha=(new Wq).a());return Oha}function Yq(){this.BB=this.ir=this.Xr=this.CB=this.jB=this.Px=this.sz=this.mB=this.Xl=this.Gw=this.uq=this.Xj=this.uD=this.rg=this.vi=this.pr=this.jp=this.hj=this.Mj=null}Yq.prototype=new r;Yq.prototype.constructor=Yq;
Yq.prototype.a=function(){Pha=this;this.Mj=C().mj.he+"string";this.hj=C().mj.he+"integer";this.jp=C().Gb.he+"number";this.pr=C().mj.he+"long";this.vi=C().mj.he+"double";this.rg=C().mj.he+"float";this.uD=C().mj.he+"decimal";this.Xj=C().mj.he+"boolean";this.uq=C().mj.he+"date";this.Gw=C().mj.he+"time";this.Xl=C().mj.he+"dateTime";this.mB=C().Gb.he+"dateTimeOnly";C();this.sz=C().Gb.he+"file";this.Px=C().mj.he+"byte";this.jB=C().mj.he+"base64Binary";this.CB=C().Gb.he+"password";this.Xr=C().mj.he+"anyType";
this.ir=C().mj.he+"anyURI";C();this.BB=C().mj.he+"nil";return this};
function Vca(a,b){return"string"===b?a.Mj:"integer"===b?a.hj:"number"===b?a.jp:"long"===b?a.pr:"double"===b?a.vi:"float"===b?a.rg:"decimal"===b?a.uD:"boolean"===b?a.Xj:"date"===b||"date-only"===b?a.uq:"time"===b||"time-only"===b?a.Gw:"dateTime"===b||"datetime"===b?a.Xl:"dateTimeOnly"===b||"datetime-only"===b?a.mB:"file"===b?a.sz:"byte"===b?a.Px:"base64Binary"===b?a.jB:"password"===b?a.CB:"anyType"===b||"any"===b?a.Xr:"anyUri"===b||"uri"===b?a.ir:"nil"===b?a.BB:""+C().mj.he+b}
Yq.prototype.$classData=q({UMa:0},!1,"amf.core.model.DataType$",{UMa:1,f:1});var Pha=void 0;function qi(){Pha||(Pha=(new Yq).a());return Pha}function Zq(){this.ZB=this.E=null}Zq.prototype=new r;Zq.prototype.constructor=Zq;
function Qha(a,b,c){Rha(c.E).X(t(new u,function(a,b){return function(c){var h=(new P).N(b,c.t),k=a.E.Ta(c.te());if(x(k))return $q(k.i,h);if(w()===k){k=a.E;c=c.te();for(var h=[h],l=(new ar).a(),p=0,y=h.length|0;p<y;)$q(l,h[p]),p=1+p|0;return $q(k,(new P).N(c,l))}throw(new v).d(k);}}(a,b)));Sha(c.E).X(t(new u,function(a,b){return function(c){var h=(new P).N(b,c.t),k=a.ZB.Ta(c.te());if(x(k))return $q(k.i,h);if(w()===k){k=a.ZB;c=c.te();for(var h=[h],l=(new ar).a(),p=0,y=h.length|0;p<y;)$q(l,h[p]),p=1+
p|0;return $q(k,(new P).N(c,l))}throw(new v).d(k);}}(a,b)))}function Tha(a,b){var c=(new ar).a();a.E=b;a.ZB=c;return a}function Iba(a,b){var c=a.E.Ta(b),c=c.b()?a.ZB.Ta(b):c;if(x(c))b=c.i;else{if(w()!==c)throw(new v).d(c);c=pc(br(),G());$q(a.E,(new P).N(b,c));b=c}return qd(function(a,b){return function(a,c){b.Ih((new P).N(a,c))}}(a,b))}Zq.prototype.$classData=q({bNa:0},!1,"amf.core.model.document.SourceMap",{bNa:1,f:1});function cr(){this.Td=null}cr.prototype=new r;cr.prototype.constructor=cr;
cr.prototype.a=function(){Uha=this;this.Td=Tha(new Zq,(new ar).a());return this};
function Vha(a,b,c){var e=Hba();Rha(c.ha()).X(t(new u,function(a,b,c){return function(a){var e=b.E,f=a.te();a=[(new P).N(c,a.t)];for(var y=(new ar).a(),I=0,E=a.length|0;I<E;)$q(y,a[I]),I=1+I|0;return $q(e,(new P).N(f,y))}}(a,e,b)));Sha(c.ha()).X(t(new u,function(a,b,c){return function(a){var e=b.ZB,f=a.te();a=[(new P).N(c,a.t)];for(var y=(new ar).a(),I=0,E=a.length|0;I<E;)$q(y,a[I]),I=1+I|0;return $q(e,(new P).N(f,y))}}(a,e,b)));return e}function Hba(){Qc();return Tha(new Zq,pc(br(),G()))}
cr.prototype.$classData=q({cNa:0},!1,"amf.core.model.document.SourceMap$",{cNa:1,f:1});var Uha=void 0;function Qc(){Uha||(Uha=(new cr).a());return Uha}function dr(a,b,c){var e=t(new u,function(){return function(a){return Nh(new Oh,a,(new N).a())}}(a)),f=z();c=c.ka(e,f.s);return qf(a,b,c)}function cj(a,b){return a.Uc(""+b+a.Nd())}function er(a,b,c){c=Nh(new Oh,c,(new N).a());ff(a,b,c)}function Eb(a,b,c){c=Nh(new Oh,c,(new N).a());return ff(a,b,c)}
function Wha(a){return-1!==(a.indexOf("//")|0)?a.split("//").join("/"):a}function Te(a,b){var c=b.indexOf("://")|0;if(-1===c)b=Wha(b);else{var e=3+c|0,c=b.substring(0,e);b=b.substring(e);b=""+c+Wha(b)}a.Te(b);return a}function dj(a,b,c){c=Nh(new Oh,c,(new N).a());return ff(a,b,c)}function qf(a,b,c){fr(a.ca(),a.k,b,gr(new hr,c,(new N).a()),(M(),(new N).a()));return a}function ir(a,b,c,e){vj(a.ca(),b,gr(new hr,c,(new N).a()),e)}
function jr(a,b,c,e){fr(a.ca(),a.k,b,gr(new hr,c,(new N).a()),e);return a}function Vg(a,b,c){vj(a.ca(),b,gr(new hr,c,(new N).a()),(M(),(new N).a()));return a}function ff(a,b,c){fr(a.ca(),a.k,b,c,(M(),(new N).a()));return a}function nh(a,b,c){var e=a.ca(),f=a.k;Xha(e,f,c);var g=kr(e,b);if(x(g))b=g.i,e=b.Tb,f=z(),b.Tb=e.hg(c,f.s);else if(w()===g)g=z(),fr(e,f,b,gr(new hr,H(g,(new J).aa([c])),(new N).a()),(M(),(new N).a()));else throw(new v).d(g);return a}
function Fh(a,b,c,e){fr(a.ca(),a.k,b,c,e);return a}function lr(a,b,c){c=Nh(new Oh,c,(new N).a());ff(a,b,c)}function Kb(a){return!!(a&&a.$classData&&a.$classData.v.Wc)}function Vc(){}Vc.prototype=new r;Vc.prototype.constructor=Vc;Vc.prototype.a=function(){return this};Vc.prototype.cj=function(a){a=mr().v_.Ta(a);return x(a)?(new A).d(qd(function(a,c){return function(a,b){return c.ri(a,b)}}(this,a.i))):w()};Vc.prototype.$classData=q({fNa:0},!1,"amf.core.model.domain.Annotation$",{fNa:1,f:1});
var Dba=void 0;function nr(){this.rG=null}nr.prototype=new r;nr.prototype.constructor=nr;nr.prototype.a=function(){Yha=this;var a=C().zg;this.rG=D(new F,a,"Array");return this};nr.prototype.$classData=q({gNa:0},!1,"amf.core.model.domain.ArrayNode$",{gNa:1,f:1});var Yha=void 0;function or(){Yha||(Yha=(new nr).a());return Yha}function pr(){}pr.prototype=new r;pr.prototype.constructor=pr;pr.prototype.a=function(){return this};
function qr(a,b,c){Zha(c,b);if(jm(c))B(c.ea,im().du).X(t(new u,function(a,b){return function(a){return qr(rr(),b.k,a)}}(a,c)));else if(fm(c)){b=sr(c);var e=t(new u,function(a,b){return function(a){return B(b.ea,a)}}(a,c)),f=pf();b.ka(e,f.s).X(t(new u,function(a,b){return function(a){return qr(rr(),b.k,a)}}(a,c)))}return c}pr.prototype.$classData=q({hNa:0},!1,"amf.core.model.domain.DataNodeOps$",{hNa:1,f:1});var $ha=void 0;function rr(){$ha||($ha=(new pr).a());return $ha}
function tr(){this.rG=null}tr.prototype=new r;tr.prototype.constructor=tr;tr.prototype.a=function(){aia=this;var a=C().zg;this.rG=D(new F,a,"Link");return this};function bia(a,b,c,e){a=(new ur).P((new Q).a(),e);e=vr().rf;Eb(a,e,c);c=vr().Kp;Eb(a,c,b);return a}tr.prototype.$classData=q({iNa:0},!1,"amf.core.model.domain.LinkNode$",{iNa:1,f:1});var aia=void 0;function cia(){aia||(aia=(new tr).a());return aia}function wr(){this.rG=null}wr.prototype=new r;wr.prototype.constructor=wr;
wr.prototype.a=function(){dia=this;var a=C().zg;this.rG=D(new F,a,"Object");return this};wr.prototype.$classData=q({jNa:0},!1,"amf.core.model.domain.ObjectNode$",{jNa:1,f:1});var dia=void 0;function xr(){dia||(dia=(new wr).a());return dia}function yr(){}yr.prototype=new r;yr.prototype.constructor=yr;yr.prototype.a=function(){return this};
function eia(a,b){a=(new Q).a();a=(new bj).P(a,b.ha());var c=B(b.ca(),Pg().$).G,c=c.b()?"default-recursion":c.c();M();var e=(new N).a();a=Ue(a,c,e);c=b.k;H(z(),G());a=cj(a,c);c=B(b.ca(),Db().Je);c=gd(c);e=Db().Je;a=dj(a,e,c);c=b.k;e=ej().it;return fj(Eb(a,e,c),b)}yr.prototype.$classData=q({mNa:0},!1,"amf.core.model.domain.RecursiveShape$",{mNa:1,f:1});var fia=void 0;function pda(){fia||(fia=(new yr).a());return fia}function gia(a){return!!(a&&a.$classData&&a.$classData.v.nNa)}
function zr(){this.AH=this.wya=this.vya=this.xDa=this.Eya=this.Iya=this.Zza=this.eza=this.dza=this.$C=this.xr=this.Hya=this.gza=this.bAa=this.Eza=this.wCa=this.AC=this.FBa=this.uGa=null}zr.prototype=new r;zr.prototype.constructor=zr;
zr.prototype.a=function(){hia=this;this.uGa=Nh(new Oh,qi().Mj,M().Td);this.FBa=Nh(new Oh,qi().hj,M().Td);this.AC=Nh(new Oh,qi().jp,M().Td);this.wCa=Nh(new Oh,qi().pr,M().Td);this.Eza=Nh(new Oh,qi().vi,M().Td);this.bAa=Nh(new Oh,qi().rg,M().Td);this.gza=Nh(new Oh,qi().uD,M().Td);this.Hya=Nh(new Oh,qi().Xj,M().Td);this.xr=Nh(new Oh,qi().uq,M().Td);this.$C=Nh(new Oh,qi().Gw,M().Td);this.dza=Nh(new Oh,qi().Xl,M().Td);this.eza=Nh(new Oh,qi().mB,M().Td);this.Zza=Nh(new Oh,qi().sz,M().Td);this.Iya=Nh(new Oh,
qi().Px,M().Td);this.Eya=Nh(new Oh,qi().jB,M().Td);this.xDa=Nh(new Oh,qi().CB,M().Td);this.vya=Nh(new Oh,qi().Xr,M().Td);this.wya=Nh(new Oh,qi().ir,M().Td);this.AH=Nh(new Oh,qi().BB,M().Td);return this};function Ar(a,b,c,e){a=(new Br).P((new Q).a(),e);c.b()||(c=c.c(),e.Wb((new Cr).e(c)),iia(a,c));c=xj().rf;return ff(a,c,Nh(new Oh,b,e))}zr.prototype.$classData=q({oNa:0},!1,"amf.core.model.domain.ScalarNode$",{oNa:1,f:1});var hia=void 0;function Dr(){hia||(hia=(new zr).a());return hia}
function N(){this.jf=null}N.prototype=new r;N.prototype.constructor=N;function jia(){}d=jia.prototype=N.prototype;d.a=function(){this.jf=(new $g).a();return this};d.Ur=function(a){return this.FM(a.jf)};function Yh(a,b){for(a=a.jf.Lb;!a.b();){var c=a.fa();if(Bha(b,c))return!0;a=a.sa()}return!1}function Zb(a,b){a:{for(a=a.jf.Lb;!a.b();){var c=a.fa();if(Bha(b,c)){b=(new A).d(a.fa());break a}a=a.sa()}b=w()}if(b.b())return w();b=b.c();return(new A).d(b)}d.Wb=function(a){vh(this.jf,a);return this};
d.FM=function(a){Er(this.jf,a);return this};function Rha(a){var b=(new kia).Yp(a);a=a.jf;var c=Wg().s;return Fr(a,b,c)}function Sha(a){var b=(new lia).Yp(a);a=a.jf;var c=Wg().s;return Fr(a,b,c)}d.$classData=q({Aka:0},!1,"amf.core.parser.Annotations",{Aka:1,f:1});function Gr(){this.Td=null}Gr.prototype=new r;Gr.prototype.constructor=Gr;Gr.prototype.a=function(){mia=this;this.Td=(new nia).a();return this};
function Ke(a,b){a=(new N).a();tf();var c=b.ga,c=[(new uf).Ui(zf(0,Af(Bf(),c.vf,c.Ef,c.ag,c.fg))),oia(b),(new Hr).e(b.ga.Of)];if(0===(c.length|0))c=Yd();else{for(var e=Zd(new ee,Yd()),f=0,g=c.length|0;f<g;)fe(e,c[f]),f=1+f|0;c=e.gb}a=a.FM(c);return Ir(b)?a.Wb((new Jr).PU(b)):Kr(b)?a.Wb((new Jr).PU(b.i)):a}function zj(a,b){a=(new N).a();Er(a.jf,b.jf);return a}function Lr(a,b){return Ke(0,b.we()).Wb((new Jr).PU(b))}Gr.prototype.$classData=q({uNa:0},!1,"amf.core.parser.Annotations$",{uNa:1,f:1});
var mia=void 0;function M(){mia||(mia=(new Gr).a());return mia}function Mr(){this.GP=this.Yh=this.ub=this.E=this.Ti=this.ai=null}Mr.prototype=new r;Mr.prototype.constructor=Mr;function pia(){}d=pia.prototype=Mr.prototype;d.Baa=function(a){return $l(a)?(a=B(a.g,Zl().$).G,qia(this,a.b()?null:a.c())):w()};d.zBa=function(a,b,c,e,f){this.ai=a;this.Ti=b;this.E=c;this.ub=e;this.Yh=f;this.GP=H(z(),G());return this};
d.j5=function(a){if($l(a)){var b=this.E,c=B(a.g,Zl().$).G,c=c.b()?null:c.c();this.E=b.Zb((new P).N(c,a))}else throw(new v).d(a);return this};d.bo=function(a,b,c){if(Nr()===c){b=ria(this,a,b,c);if(b.b()){a=this.Ti.Ta(a);if(a.b())return w();a=a.c();return(new A).d(a.Vw)}return b}if(Or()===c){a=this.Ti.Ta(a);if(a.b())return w();a=a.c();return(new A).d(a.Vw)}if(Pr()===c)return ria(this,a,b,c);throw(new v).d(c);};
function sia(a,b,c){a=a.ub;if(x(a)){a=a.i;var e=Bc().vD,f=w();Cc(a,e,"",f,b,c.ga)}else throw Lb(Mb(),(new Nb).e(b));}d.qu=function(){return(new dd).Qd(this.E).Rb.gf().kd()};function qia(a,b){var c=Nr();a=a.bo(b,t(new u,function(){return function(a){return a.E}}(a)),c);b=new tia;if(a.b())return w();b=Qr(b);a=a.c();return b.Ia(a)}function ria(a,b,c,e){var f=uia(via(),b);if(f.aca){var g=a.ai.Ta(f.IP);e=g.b()?w():g.c().bo(f.ba,c,e)}else e=w();return e.b()?c.R(a).Ta(b):e}function Rr(){}Rr.prototype=new r;
Rr.prototype.constructor=Rr;Rr.prototype.a=function(){return this};function Wo(a,b){a=b.Ke;if(x(a))a=a.i|0;else{if(w()!==a)throw(new v).d(a);b.Po((new A).d(Op()));a=b.Ke.c()|0}var c=jd(b);return(new wia).R0(a,c.b()?b.k:c.c())}Rr.prototype.$classData=q({BNa:0},!1,"amf.core.parser.DefaultParserSideErrorHandler$",{BNa:1,f:1});var xia=void 0;function Xo(){xia||(xia=(new Rr).a());return xia}function Q(){this.Pb=null}Q.prototype=new r;Q.prototype.constructor=Q;
function fr(a,b,c,e,f){"http://a.ml/vocabularies/document#declares"===Gc(c.t)?Xha(a,b+"#/declarations",e):Xha(a,b,e);b=a.Pb;e=Ph(new Qh,e,f);a.Pb=b.Zb((new P).N(c,e))}function kr(a,b){a=a.Pb.Ta(b);if(a.b())return w();a=a.c();return(new A).d(a.t)}Q.prototype.a=function(){this.Pb=pc(yia(),G());return this};
function zia(a,b,c,e){if(sj(c)){if(Pb().h(b)||Xc().h(b))return(new Sr).zE(a,c,e);if(Yc().h(b))return(new $r).zE(a,c,e);if(Zc().h(b))return(new as).zE(a,c,e);if(bs().h(b)||Ci().h(b))return(new cs).zE(a,c,e);if(ad()===b)return(new ds).zE(a,c,e);throw Lb(Mb(),(new Nb).e("Invalid value '"+c+"' of type '"+b+"'"));}if(Kb(c)){if(Jq(b))return c;throw Lb(Mb(),(new Nb).e("Invalid value '"+c+"' of type '"+b+"'"));}if(es(c)){if(fs(b))return b=(new A).d(b.Se).i,c=c.Tb,a=t(new u,function(a,b,c){return function(e){return zia(a,
b,e,c)}}(a,b,e)),e=z(),c.ka(a,e.s);throw Lb(Mb(),(new Nb).e("Invalid value '"+c+"' of type '"+b+"'"));}throw(new v).d(c);}function gs(a,b){a.Pb=a.Pb.Bo(b);return a}function Aia(a,b){if(es(b)){b=b.Tb;a=t(new u,function(a){return function(b){return Aia(a,b)}}(a));var c=z();return b.ka(a,c.s)}return sj(b)?b.t:b}function vj(a,b,c,e){var f=a.Pb;c=Ph(new Qh,c,e);a.Pb=f.Zb((new P).N(b,c));return a}
function Xha(a,b,c){Kb(c)?c.Qb(b,c.Ub()):es(c)&&c.Tb.X(t(new u,function(a,b){return function(c){Xha(a,b,c)}}(a,b)))}function Xp(a,b){return Aia(a,hs(a,b))}function uj(a,b){a=a.Pb.Ta(b);return a.b()?null:a.c()}function Bia(a,b){var c=a.Pb.kb();a:{for(;c.Qa();){var e=c.Sa();if(Gc(e.pa().t)===b){b=(new A).d(e);break a}}b=w()}b.b()||(b=b.c(),gs(a,b.pa()))}
function Cia(a,b){var c=b.ja;if(Pb().h(c)||Xc().h(c))return(new Sr).Kv(a,w(),(M(),(new N).a()),b);if(Yc().h(c))return(new $r).Kv(a,w(),(M(),(new N).a()),b);if(Zc().h(c))return(new as).Kv(a,w(),(M(),(new N).a()),b);if(bs().h(c)||Ci().h(c))return(new cs).Kv(a,w(),(M(),(new N).a()),b);if(ad()===c)return(new ds).Kv(a,w(),(M(),(new N).a()),b);if(fs(c))return(new A).d(c.Se),G();if(Jq(c))return null;throw(new v).d(c);}
function hs(a,b){a=uj(a,b);a=is(js(),a);a.b()?(b=Wa().Ia(b.ja),b.b()?a=!0:(a=b.c(),a=Wc(a)),b=a?b:w(),b.b()?b=w():(b.c(),b=(new A).d(gr(new hr,G(),(new N).a()))),b=b.b()?null:b.c()):b=a.c().pa();return b}function Dd(a,b){a=a.Pb.Ta(b);return x(a)?(new A).d(Rh(new Sh,b,a.i)):w()}function ks(a){var b=(new Q).a();a.Pb.X(t(new u,function(a,b){return function(a){b.Pb=b.Pb.Zb(a)}}(a,b)));return b}
function B(a,b){var c=a.Pb.Ta(b);c.b()?c=w():(c=c.c(),c=(new A).d(zia(a,b.ja,c.t,b)));return c.b()?Cia(a,b):c.c()}function Dca(a){a=Pd(a.Pb);var b=Di().s;return Ei(a,b)}function ls(a,b){a.Pb=a.Pb.xb(b);return a}Q.prototype.$classData=q({GNa:0},!1,"amf.core.parser.Fields",{GNa:1,f:1});function Dia(){}Dia.prototype=new r;Dia.prototype.constructor=Dia;function Eia(){}Eia.prototype=Dia.prototype;function ms(){}ms.prototype=new r;ms.prototype.constructor=ms;ms.prototype.a=function(){return this};
function Fia(a,b){a=Gia((new Cf).e(b));var c=Yo().aJ;0<=(a.length|0)&&a.substring(0,c.length|0)===c?a=!0:(a=Hia().l6,a=0<=(b.length|0)&&b.substring(0,a.length|0)===a);a?a=!0:(a=Hia().k6,a=0<=(b.length|0)&&b.substring(0,a.length|0)===a);if(!a||0<=(b.length|0)&&"#"===b.substring(0,1))return(new P).N(b,w());a=kd(ta(),b,"#",0);c=se(ye(),a);if(!c.b()&&null!==c.c()&&0===c.c().Ge(1)&&(c=c.c().jb(0),re(ta(),c,"#")))return(new P).N(c.substring(0,-2+(c.length|0)|0),w());c=se(ye(),a);if(!c.b()&&null!==c.c()&&
0===c.c().Ge(1))return b=c.c().jb(0),(new P).N(b,w());c=se(ye(),a);if(!c.b()&&null!==c.c()&&0===c.c().Ge(2))return b=c.c().jb(0),a=c.c().jb(1),(new P).N(b,(new A).d(a));var c=b.length,e=ld((new md).vc(a));b=b.substring(0,(-1+(c|0)|0)-(e.length|0)|0);return(new P).N(b,(new A).d(ld((new md).vc(a))))}ms.prototype.$classData=q({RNa:0},!1,"amf.core.parser.ReferenceFragmentPartition$",{RNa:1,f:1});var Iia=void 0;function Jia(){Iia||(Iia=(new ms).a());return Iia}function Qh(){this.E=this.t=null}
Qh.prototype=new r;Qh.prototype.constructor=Qh;Qh.prototype.u=function(){return this.t.u()};
function Kia(a){var b=a.t;ns(b)&&b.$h?Lia(b,t(new u,function(a,b){return function(f){if(yb(b).qa())a.t=f;else{var g=b.Zi,h=b.ha(),k=B(b.ca(),Db().Je).G;a.t=f.Is(g,h,b,!(k.b()||!k.c()))}g=a.t;g=os(g)?(new A).d(g.Vv()):w();b.es(g,f.k)}}(a,b))):es(b)&&b.Tb.X(t(new u,function(a){return function(b){ns(b)&&b.$h&&Lia(b,t(new u,function(a,b){return function(c){var e=H(Wg(),G()),l=a.t,p=a.t.Tb,y=t(new u,function(a,b,c,e){return function(a){if(null===a?null===b:a.h(b)){var f=os(c)?(new A).d(c.Vv()):w();vh(e,
(new P).N(a,f));var f=b.Zi,g=b.ha(),h=B(b.ca(),Db().Je).G;return c.Is(f,g,a,!(h.b()||!h.c()))}return a}}(a,b,c,e)),I=z();l.Tb=p.ka(y,I.s);for(e=e.Lb;!e.b();){p=e.fa();if(null!==p)l=p.pa(),p=p.Ba(),l.es(p,c.k);else throw(new v).d(p);e=e.sa()}}}(a,b)))}}(a)))}function Ph(a,b,c){a.t=b;a.E=c;Kia(a);return a}Qh.prototype.$classData=q({$Na:0},!1,"amf.core.parser.Value",{$Na:1,f:1});function ps(){}ps.prototype=new r;ps.prototype.constructor=ps;ps.prototype.a=function(){return this};
function is(a,b){return Wa().Ia(b).qa()?(new A).d((new P).N(b.t,b.E)):w()}ps.prototype.$classData=q({aOa:0},!1,"amf.core.parser.Value$",{aOa:1,f:1});var Mia=void 0;function js(){Mia||(Mia=(new ps).a());return Mia}function K(){this.W=null}K.prototype=new r;K.prototype.constructor=K;function qs(a,b){b=(new ph).e(b);var c=G();b=(new qh).Di(b.ia,c);return a.W.Bb.xb(t(new u,function(a,b){return function(a){a=a.Da.we();return rs(a)?ss(b,a.ya).qa():!1}}(a,b)))}
function yc(a,b){return a.W.Bb.Ib(t(new u,function(a,b){return function(a){a=a.Da.we();return rs(a)?a.ya===b:!1}}(a,b)))}K.prototype.Y=function(a){this.W=a;return this};function Bh(a,b,c){a=yc(a,b);a.b()||c.R(a.c())}K.prototype.$classData=q({bOa:0},!1,"amf.core.parser.package$YMapOps",{bOa:1,f:1});function Nia(){this.Ea=null}Nia.prototype=new r;Nia.prototype.constructor=Nia;function Hc(a,b){return a.Ea.Gp(b).Mk()}function Ic(a){var b=new Nia;b.Ea=a;return b}
Nia.prototype.$classData=q({cOa:0},!1,"amf.core.parser.package$YNodeLikeOps",{cOa:1,f:1});function ts(){this.t=null}ts.prototype=new r;ts.prototype.constructor=ts;function Oia(){}Oia.prototype=ts.prototype;ts.prototype.e=function(a){this.t=a;return this};function us(){this.SS=0}us.prototype=new r;us.prototype.constructor=us;function Pia(){}Pia.prototype=us.prototype;us.prototype.a=function(){this.SS=0;return this};function Qia(a){a.SS=1+a.SS|0;return"http://amf.org/anon/"+a.SS}
function vs(){this.F1=this.nL=this.v_=null}vs.prototype=new r;vs.prototype.constructor=vs;
vs.prototype.a=function(){Ria=this;var a=Sia(),a=(new P).N("lexical",a);Tia||(Tia=(new ws).a());var b=(new P).N("host-lexical",Tia);Uia||(Uia=(new xs).a());var c=(new P).N("base-path-lexical",Uia),e=Via(),e=(new P).N("source-vendor",e);Wia||(Wia=(new ys).a());var f=(new P).N("single-value-array",Wia);Xia||(Xia=(new zs).a());var g=(new P).N("aliases-array",Xia);Yia||(Yia=(new As).a());var h=(new P).N("synthesized-field",Yia);Zia||(Zia=(new Bs).a());var k=(new P).N("default-node",Zia);$ia||($ia=(new Cs).a());
var l=(new P).N("data-node-properties",$ia);aja||(aja=(new Ds).a());var p=(new P).N("resolved-link",aja);bja||(bja=(new Es).a());a=[a,b,c,e,f,g,h,k,l,p,(new P).N("null-security",bja)];b=(new Fs).a();c=0;for(e=a.length|0;c<e;)Gs(b,a[c]),c=1+c|0;this.v_=b;for(var a=Hs(Nl()),b=Nl(),a=(new P).N(a,b),b=Hs(Ug()),c=Ug(),b=(new P).N(b,c),c=Hs(om()),e=om(),c=(new P).N(c,e),e=Hs(Mc()),f=Mc(),e=(new P).N(e,f),f=Hs(ej()),g=ej(),f=(new P).N(f,g),g=Hs(rj()),h=rj(),g=(new P).N(g,h),h=Hs(Is()),k=Is(),h=(new P).N(h,
k),k=Hs(Zl()),l=Zl(),k=(new P).N(k,l),l=Hs(Wea()),p=Wea(),l=(new P).N(l,p),p=Hs(Wl()),y=Wl(),p=(new P).N(p,y),y=Hs(bf()),I=bf(),a=[a,b,c,e,f,g,h,k,l,p,(new P).N(y,I)],b=(new Fs).a(),c=0,e=a.length|0;c<e;)Gs(b,a[c]),c=1+c|0;this.nL=b;Wg();this.F1=Yg(new Zg,(new $g).a()).gb;return this};function cja(a,b){Er(a.F1,(new J).aa([b]))}
vs.prototype.D_=function(a){return this.F1.Lb.kd().ka(t(new u,function(a,c){return function(a){return a.D_(c)}}(this,a)),(Js(),(new Ks).a())).xb(t(new u,function(){return function(a){return a.qa()}}(this))).ka(t(new u,function(){return function(a){return a.c()}}(this)),(Js(),(new Ks).a())).pc()};
vs.prototype.A0=function(a){return this.F1.Lb.kd().ka(t(new u,function(a,c){return function(a){return a.A0(c)}}(this,a)),(Js(),(new Ks).a())).xb(t(new u,function(){return function(a){return a.qa()}}(this))).ka(t(new u,function(){return function(a){return a.c()}}(this)),(Js(),(new Ks).a())).pc()};function Hs(a){return Gc(a.ec().fa())}vs.prototype.$classData=q({kOa:0},!1,"amf.core.registries.AMFDomainRegistry$",{kOa:1,f:1});var Ria=void 0;function mr(){Ria||(Ria=(new vs).a());return Ria}
function Ls(){this.Z1=this.dW=this.ZT=this.a0=this.Z_=this.kE=this.Y_=this.XW=this.Z2=null}Ls.prototype=new r;Ls.prototype.constructor=Ls;Ls.prototype.a=function(){dja=this;this.Z2=pc(qc(),G());this.XW=pc(qc(),G());this.Y_=pc(qc(),G());this.kE=pc(qc(),G());this.Z_=pc(qc(),G());this.a0=pc(qc(),G());this.ZT=pc(qc(),G());pc(qc(),G());this.dW=pc(qc(),G());this.Z1=pc(qc(),G());return this};
function eja(a){var b=kd(ta(),a,"/",0),c=se(ye(),b);if(!c.b()&&null!==c.c()&&0===c.c().Ge(2)){var e=c.c().jb(0),c=c.c().jb(1);if(-1<(c.indexOf("+")|0))return a=kd(ta(),c,"\\+",0),e+"/"+ld((new md).vc(a))}b=se(ye(),b);return!b.b()&&null!==b.c()&&0===b.c().Ge(2)&&(e=b.c().jb(0),b=b.c().jb(1),-1<(b.indexOf(".")|0))?(a=kd(ta(),b,"\\.",0),e+"/"+ld((new md).vc(a))):a}
function fja(a,b){b.Sp().X(t(new u,function(){return function(a){a&&a.$classData&&a.$classData.v.a7?nga(tb(),a):a&&a.$classData&&a.$classData.v.zz?rp(tb(),a):a&&a.$classData&&a.$classData.v.b7&&mga(tb(),a)}}(a)))}
function mga(a,b){var c=a.Z2.Ta(b.wh());if(!x(c))if(w()===c)a.Z2.Oe(b.wh(),b),b.vGa().X(t(new u,function(a,b){return function(a){var c=!1,e=null,l=tb().XW.Ta(a);if(x(l)&&(c=!0,e=l,e.i.wh()===b.wh()))return;if(w()===l)return tb().XW.Oe(a,b);if(c)throw c=e.i,Lb(Mb(),(new Nb).e("Cannot register "+b.wh()+" for media type "+a+", "+c.wh()+" already registered"));throw(new v).d(l);}}(a,b))),fja(a,b);else throw(new v).d(c);}
function nga(a,b){var c=a.a0.Ta(b.wh());if(!x(c))if(w()===c)b.Xy().X(t(new u,function(){return function(a){if(null!==a){var b=a.pa();a=a.Ba();return mr().v_.Oe(b,a)}throw(new v).d(a);}}(a))),a.a0.Oe(b.wh(),b),b.Gy().X(t(new u,function(){return function(a){return mr().nL.Oe(Hs(a),a)}}(a))),fja(a,b);else throw(new v).d(c);}function vga(a,b){b=a.Z_.Ta(b);if(x(b))b=b.i;else{if(w()!==b)throw(new v).d(b);b=H(z(),G())}return b.qi(t(new u,function(){return function(a){return a.Nda()}}(a)),Ms())}
function gja(a,b){a=a.dW.Ta(b);if(x(a))return a.i;if(w()!==a)throw(new v).d(a);return G()}function Kga(a,b){var c;-1!==(b.indexOf(";")|0)?(c=kd(ta(),b,";",0),c=Wj((new md).vc(c))):c=b;b=a.XW.Ta(b);return x(b)?(new A).d(b.i):a.XW.Ta(eja(c))}function oga(a,b){var c=a.ZT.Ta(b.wh());if(!x(c))if(w()===c)a.ZT.Oe(b.wh(),b),fja(a,b);else throw(new v).d(c);}function zga(){var a=tb();return(new up).fo(a.ZT).Rb.gf().kd()}
function rp(a,b){var c=a.kE.Ta(b.wh());if(!x(c))if(w()===c)a.kE.Oe(b.wh(),b),b.Xy().X(t(new u,function(){return function(a){if(null!==a){var b=a.pa();a=a.Ba();return mr().v_.Oe(b,a)}throw(new v).d(a);}}(a))),b.py().X(t(new u,function(a,b){return function(a){var c=tb().Y_.Ta(a);if(x(c))c=c.i;else{if(w()!==c)throw(new v).d(c);c=H(z(),G())}var e=tb().Y_,l=H(z(),(new J).aa([b])),p=z();return e.Oe(a,c.la(l,p.s))}}(a,b))),b.zF().X(t(new u,function(a,b){return function(a){var c=tb().Z_.Ta(a);if(x(c))c=c.i;
else{if(w()!==c)throw(new v).d(c);c=H(z(),G())}var e=tb().Z_,l=H(z(),(new J).aa([b])),p=z();return e.Oe(a,c.la(l,p.s))}}(a,b))),b.Gy().X(t(new u,function(){return function(a){return mr().nL.Oe(Hs(a),a)}}(a))),c=b.ECa(),c.b()||(c=c.c(),cja(mr(),c)),fja(a,b);else throw(new v).d(c);}function uga(a,b){b=a.Y_.Ta(b);if(x(b))b=b.i;else{if(w()!==b)throw(new v).d(b);b=H(z(),G())}return b.qi(t(new u,function(){return function(a){return a.Nda()}}(a)),Ms())}
function pga(a,b){var c=a.Z1.Ta(b.wh());if(!x(c))if(w()===c)b.NH.X(t(new u,function(a,b){return function(a){var c=!1,e=tb().dW.Ta(a);a:{if(x(e)){var c=!0,l=e.i;if(!l.Ja(b)){c=tb().dW;e=z();l=l.hg(b,e.s);c.Oe(a,l);tb().Z1.Oe(b.wh(),b);break a}}if(w()===e)l=tb().dW,c=H(z(),(new J).aa([b])),l.Oe(a,c),tb().Z1.Oe(b.wh(),b);else if(!c)throw(new v).d(e);}}}(a,b)));else throw(new v).d(c);}Ls.prototype.$classData=q({mOa:0},!1,"amf.core.registries.AMFPluginsRegistry$",{mOa:1,f:1});var dja=void 0;
function tb(){dja||(dja=(new Ls).a());return dja}function Ns(){}Ns.prototype=new r;Ns.prototype.constructor=Ns;Ns.prototype.a=function(){return this};Ns.prototype.cj=function(a){return-1!==(a.indexOf(":")|0)?(new A).d(a):w()};Ns.prototype.$classData=q({nOa:0},!1,"amf.core.remote.Absolute$",{nOa:1,f:1});var hja=void 0;function Ya(){this.V_=this.qh=null}Ya.prototype=new r;Ya.prototype.constructor=Ya;
function Fga(a,b,c){var e=a.V_.Ta(c);if(x(e))e=e.i;else{if(w()!==e)throw(new v).d(e);e=H(fc().Sg,G())}a.V_.Rl(c,e.Ij(b))}Ya.prototype.a=function(){this.qh=pc(Os(),G());this.V_=pc(Os(),G());return this};
function Gga(a,b,c){Di();var e=(new J).aa([b]),f=Di().s,e=Ei(e,f),f=Di();c=c.la(e,f.s);e=Fp(c);f=Pf();f=Qf(f);if(e!==Ei(c,f).lb())return(new A).d(c);b=a.V_.Ta(b);if(x(b))b=b.i;else{if(w()!==b)throw(new v).d(b);b=H(fc().Sg,G())}c=t(new u,function(a,b){return function(c){return Gga(a,c,b)}}(a,c));e=Pf();e=Qf(e);a=De(b,c,e).Ib(t(new u,function(){return function(a){return a.qa()}}(a)));return a.b()?w():a.c()}function Ega(a){a=ija(a);return 2===Fp(a)?Ps(a):w()}
Ya.prototype.$classData=q({qOa:0},!1,"amf.core.remote.Cache",{qOa:1,f:1});function Qs(){this.EA=this.oA=this.na=null}Qs.prototype=new r;Qs.prototype.constructor=Qs;function Xga(a){return a.oA.b()?"":Rs(a.oA)}function Vga(a,b){Xa();var c=a.na,e=a.oA;b=jja(a,b);a=a.EA;var f=Di().s,g=new Qs,e=Ss(e,b,f);g.na=c;g.oA=e;g.EA=a;return g}
function jja(a,b){try{var c=a.na;var e;hja||(hja=(new Ns).a());var f=hja.cj(b);if(f.b()){kja||(kja=(new Ts).a());var g=kja.cj(b);if(g.b()){var h=(new A).d(b).i;e=""+lja(Xa(),Xga(a),a.na.ada())+h}else{var k=g.c();Xa();var l;l=a.oA.b()?"":a.oA.fa();e=""+lja(0,l,a.na.ada())+k}}else e=f.c();var p;var y=c.SL(e),I=a.EA.kb();b:{for(;I.Qa();){var E=I.Sa(),V=E.pa();if(0<=(y.length|0)&&y.substring(0,V.length|0)===V){var da=(new A).d(E);break b}}da=w()}if(da.b())p=y;else{var sa=da.c(),ua=sa.pa(),Ia=sa.Ba();
p=y.split(ja(ua)).join(ja(Ia))}return p}catch(Pa){a=gi(Mb(),Pa);if(hi(a))throw(new Pp).e("url: "+b+" - "+a.Xm());throw Pa;}}function Cga(a){var b=a.oA,c;for(c=0;!b.b();){var e=b.fa(),f=Xga(a);e===f&&(c=1+c|0);b=b.sa()}return 2===c}Qs.prototype.$classData=q({rOa:0},!1,"amf.core.remote.Context",{rOa:1,f:1});function Us(){}Us.prototype=new r;Us.prototype.constructor=Us;Us.prototype.a=function(){return this};
function lja(a,b,c){a=(new ph).e(b);c=Vs(a,Dc(92))?"win"===c:!1;a=(new ph).e(b);a=Vs(a,Dc(47));if(!c&&!a)return"";c=c?92:47;a=(new ph).e(b);a=Ws(a,c);a=ld((new md).vc(a));a=(new ph).e(a);return Vs(a,Dc(46))?(c=1+mja(ta(),b,c)|0,b.substring(0,c)):re(ta(),b,ba.String.fromCharCode(c))?b:""+b+Dc(c)}function Paa(a,b){return Wga(Xa(),b,"")}
function Wga(a,b,c){a=Xs();c=Wa().Ia(c);if(c.b())var e=!0;else e=c.c(),e=(new ph).e(e),e=Tc(e);c=e?c:w();c.b()?e=w():(c=c.c(),Di(),c=(new J).aa([c]),e=Di().s,e=(new A).d(Ei(c,e)));c=new Qs;e=e.b()?G():e.c();c.na=b;c.oA=e;c.EA=a;return c}Us.prototype.$classData=q({sOa:0},!1,"amf.core.remote.Context$",{sOa:1,f:1});var nja=void 0;function Xa(){nja||(nja=(new Us).a());return nja}function Ys(){this.aJ=null}Ys.prototype=new r;Ys.prototype.constructor=Ys;Ys.prototype.a=function(){this.aJ="file://";return this};
Ys.prototype.cj=function(a){var b=this.aJ;return 0<=(a.length|0)&&a.substring(0,b.length|0)===b?(a=(new ph).e(a),a=Zo(a,this.aJ),(new A).d(a)):w()};Ys.prototype.$classData=q({tOa:0},!1,"amf.core.remote.File$",{tOa:1,f:1});var oja=void 0;function Yo(){oja||(oja=(new Ys).a());return oja}function Zs(){this.l6=this.k6=null}Zs.prototype=new r;Zs.prototype.constructor=Zs;Zs.prototype.a=function(){this.k6="http://";this.l6="https://";return this};
Zs.prototype.cj=function(a){var b=this.k6;0<=(a.length|0)&&a.substring(0,b.length|0)===b?b=!0:(b=this.l6,b=0<=(a.length|0)&&a.substring(0,b.length|0)===b);if(b){b=3+(a.indexOf("://")|0)|0;b=a.substring(0,b);a=(new ph).e(a);a=Zo(a,b);if(-1!==(a.indexOf("/")|0))var c=a.indexOf("/")|0,c=a.substring(0,c);else c=a;a=a.split(c).join("");return(new A).d((new Be).Er(b,c,a))}return w()};Zs.prototype.$classData=q({vOa:0},!1,"amf.core.remote.HttpParts$",{vOa:1,f:1});var pja=void 0;
function Hia(){pja||(pja=(new Zs).a());return pja}function $s(){this.Mga=this.Nga=this.Oga=this.Pga=this.Lga=null}$s.prototype=new r;$s.prototype.constructor=$s;$s.prototype.a=function(){this.Lga="application/json";this.Pga="application/yaml";this.Oga="application/raml+yaml";this.Nga="application/openapi+json";this.Mga="application/ld+json";return this};$s.prototype.$classData=q({yOa:0},!1,"amf.core.remote.Mimes$",{yOa:1,f:1});var qja=void 0;function oba(){qja||(qja=(new $s).a());return qja}
function rja(a){a.a$(("OAS "+a.vM()).trim())}function sja(a){return!!(a&&a.$classData&&a.$classData.v.r7)}function Kl(a,b,c){a.zQ.Oe(Gc(b.ec().fa()),c)}
function tja(a,b){if(Yl(b)){var c=(new at).fo(a.uI).ah.Tq();a:{for(;c.Qa();){var e=c.Sa();if(e.R(b.rc())){c=(new A).d(e);break a}}c=w()}if(x(c))return a.uI.R(c.i).R(b);if(w()===c)throw Lb(Mb(),(new Nb).e("Cannot find builder for object meta "+b.rc()));throw(new v).d(c);}if(bt(b)){c=(new at).fo(a.uI).ah.Tq();a:{for(;c.Qa();)if(e=c.Sa(),e.R(b.rc())){c=(new A).d(e);break a}c=w()}if(x(c))return a.uI.R(c.i).R(b);if(w()===c)throw Lb(Mb(),(new Nb).e("Cannot find builder for object meta "+b.rc()));throw(new v).d(c);
}throw Lb(Mb(),(new Nb).e("Cannot build object of type "+b));}function uja(a){a.Xxa((new ct).a());a.Yxa((new ct).a());a.Wxa((new qp).a());a.Vxa((new ct).a());a.Zda(w())}function uo(a,b,c){Yi(a.qf,b);Yi(a.Cm,c)}function dt(a,b){if(Yl(b)){var c=a.zQ.Ta(Gc(b.rc().ec().fa()));if(x(c))return c.i.R(b);if(w()===c)return tja(a,b);throw(new v).d(c);}if(bt(b)){c=a.zQ.Ta(Gc(b.rc().ec().fa()));if(x(c))return c.i.R(b);if(w()===c)return tja(a,b);throw(new v).d(c);}return null===b?null:tja(a,b)}
function Hga(a,b,c){c=c.qH.xb(t(new u,function(a,b){return function(a){return a.hG(b)}}(a,b)));return vja(a,b,c)}function bha(a,b,c){var e=Yo().cj(b);e.b()?Efa(ib(),(new Nb).e("Unsupported write operation: "+b)):(b=e.c(),wja(a.Pb.z_(b),c))}function vja(a,b,c){var e=!1,f=null;c=c.wa();if(G().h(c))throw(new et).e(b);if(ft(c)){var e=!0,f=c,g=f.Aj,h=f.ve;if(G().h(h))return g.$T(b)}if(e)return e=f.ve,f.Aj.$T(b).qW(xja(a,b,e),um());throw(new v).d(c);}function yja(a){a.b$(("RAML "+a.vM()).trim())}
function zja(a){return!!(a&&a.$classData&&a.$classData.v.s7)}function Ts(){}Ts.prototype=new r;Ts.prototype.constructor=Ts;Ts.prototype.a=function(){return this};Ts.prototype.cj=function(a){return 0<=(a.length|0)&&"/"===a.substring(0,1)?(new A).d(a):w()};Ts.prototype.$classData=q({JOa:0},!1,"amf.core.remote.RelativeToRoot$",{JOa:1,f:1});var kja=void 0;function ut(){this.IX=this.pZ=this.hr=this.bs=this.tJ=this.Kz=this.xJ=this.wJ=this.sv=null}ut.prototype=new r;ut.prototype.constructor=ut;
ut.prototype.a=function(){Aja=this;this.sv=mc();this.wJ=oc();this.xJ=nc();this.Kz=vt();this.tJ=wt();this.bs=xt();this.hr=yt();this.pZ=ih();this.IX=Cl();return this};ut.prototype.$classData=q({MOa:0},!1,"amf.core.remote.Vendor$",{MOa:1,f:1});var Aja=void 0;function Sp(){Aja||(Aja=(new ut).a());return Aja}function zt(){this.CN=this.Dxa=this.q9=null}zt.prototype=new r;zt.prototype.constructor=zt;
zt.prototype.a=function(){Bja=this;this.q9="singularize|pluralize|uppercase|lowercase|lowercamelcase|uppercamelcase|lowerunderscorecase|upperunderscorecase|lowerhyphencase|upperhyphencase";var a=(new ph).e(this.q9),b=G();this.Dxa=(new qh).Di(a.ia,b);a=(new ph).e("\x3c\x3c\\s*([^\x3c\x3c\x3e\x3e|\\s]+)((?:\\s*\\|\\s*!(?:"+this.q9+")\\s*)*)\x3e\x3e");b=G();this.CN=(new qh).Di(a.ia,b);return this};
function Cja(a,b,c,e){var f=a.CN;b=Dja(b,f,f.GW);for(b=Eja(b);b.Qa();){f=b.wL();At();var g=t(new u,function(){return function(a){return(new P).N(a.ba,a.t)}}(a)),h=Pf(),h=Qf(h),f=Fja(De(c,g,h).$g(fc().ci),!0,!0,f,e);Gja(b.Pa.px,b.HW,f)}return Vda(b)}
function Hja(a,b,c,e){if("singularize"===e){a=(Bt(),(new Ct).e(c));b=Bt().e$;if(uh(b,a.Ws))a=a.Ws;else{b:{for(b=Bt().j_.Lb;!b.b();){c=b.fa().TH;e=a.Ws;if(c.toLowerCase()===(null===e?null:e.toLowerCase())){b=(new A).d(b.fa());break b}b=b.sa()}b=w()}b.b()?b=w():(b=b.c(),b=(new A).d(b.WH));b=b.b()?Ija(a,Bt().d$,a.Ws):b;a=b.b()?a.Ws:b.c()}return a}if("pluralize"===e){a=(Bt(),(new Ct).e(c));b=Bt().e$;if(uh(b,a.Ws))a=a.Ws;else{b:{for(b=Bt().j_.Lb;!b.b();){c=b.fa().WH;e=a.Ws;if(c.toLowerCase()===(null===
e?null:e.toLowerCase())){b=(new A).d(b.fa());break b}b=b.sa()}b=w()}b.b()?b=w():(b=b.c(),b=(new A).d(b.TH));b=b.b()?Ija(a,Bt().c$,a.Ws):b;a=b.b()?a.Ws:b.c()}return a}if("uppercase"===e)return c.toUpperCase();if("lowercase"===e)return c.toLowerCase();if("lowercamelcase"===e){Bt();Bt();a=Jja((new Ct).e(c));a=(new Ct).e(a);b=(new ph).e(a.Ws);if(Tc(b)){b=Dt(ta(),a.Ws);a=Wj((new Et).dx(b));a=null===a?0:a.t;Ft();a=65535&(ba.String.fromCharCode(a).toLowerCase().charCodeAt(0)|0);a=Dc(a);if(0===b.j.length&&
0===b.j.length)throw(new Gt).e("empty.tail");c=b.j.length;c=0<c?c:0;e=b.j.length;c=-1+(c<e?c:e)|0;c=0<c?c:0;e=Ht(It(),Jt(ka(b)),c);0<c&&Kt(ye(),b,1,e,0,c);b=e;c=(new lk).a();e=!0;nk(c,"");for(var f=0,g=b.j.length;f<g;){var h=Dc(b.j[f]);e?(ok(c,h),e=!1):(nk(c,""),ok(c,h));f=1+f|0}nk(c,"");a=""+a+c.Be.Ue}else a=a.Ws;return a}if("uppercamelcase"===e)return Bt(),a=Jja((new Ct).e(c)),a=(new ph).e(a),Kja(a);if("lowerunderscorecase"===e)return Bt(),Lja((new Ct).e(c),"_").toLowerCase();if("upperunderscorecase"===
e)return Bt(),Lja((new Ct).e(c),"_").toUpperCase();if("lowerhyphencase"===e)return Lja((Bt(),(new Ct).e(c)),"-").toLowerCase();if("upperhyphencase"===e)return Lja((Bt(),(new Ct).e(c)),"-").toUpperCase();b.R("Transformation '"+e+"' on '"+c+"' is not valid.");return c}
function Fja(a,b,c,e,f){var g=Uda(e,0),h=Uda(e,1),k;k=!1;a=a.Ta(h);if(a.b())c=w();else if(a=a.c(),wj(a)){var l=Zb(a.ab,n(Lt));l.b()?l=w():(l=l.c(),l=(new A).d(l.Lc));var l=l.wa(),p=hd,y=new Mja;y.JBa=c;y.tGa=b;y.Qza=f;y.HCa=h;l=p(l,y);if(l.b()){l=B(a.ea,xj().rf).G;if(l.b())l=!1;else{l=l.c();if(null===l)throw(new Rg).a();l=Sg(Tg()," *",l)}l&&c&&b?(f.R("Variable '"+h+"' cannot have an empty value"),k=!0,c=w()):c=B(a.ea,xj().rf).G}else c=l}else a&&a.$classData&&a.$classData.v.t7?c=B(a.jGa.ea,vr().Kp).G:
(f.R("Variable '"+h+"' cannot be replaced with type "+dk(ka(a))),c=w());if(c.b())e=w();else{c=c.c();e=Wa().Ia(Uda(e,2));if(e.b())e=w();else{e=e.c();e=Mt(At().Dxa,e);for(l=c;e.Qa();)a=e.My(),l=Hja(At(),f,l,a);e=(new A).d(l)}e=e.b()?(new A).d(c):e}b=(e.b()?b&&!k?(f.R("Cannot find variable '"+h+"'."),g):g:e.c()).split("$").join("\\$");Nja||(Nja=(new Nt).a());h="";for(f=0;f<(b.length|0);){g=65535&(b.charCodeAt(f)|0);switch(g){case 92:case 36:g="\\"+Dc(g);break;default:g=Dc(g)}h=""+h+g;f=1+f|0}return h}
function Oja(a,b,c,e){var f=B(b.ea,xj().rf).G,f=(f.b()?null:f.c()).trim(),g=ss(a.CN,f);g.b()?f=!1:null!==g.c()?(f=g.c(),f=0===Ot(f,2)):f=!1;if(f){var f=g.c(),f=Pt(f,0),g=g.c(),h=Pt(g,1),k=!1,l=null,g=c.Ib(t(new u,function(a,b){return function(a){return a.ba===b}}(a,f)));if(x(g)){var k=!0,l=g,p=l.i;if(null!==p&&(p=p.t,wj(p)&&(B(p.ea,xj().af).G.b()?p=!0:(p=B(p.ea,xj().af).G,p=-1!==((p.b()?null:p.c()).indexOf("#string")|0)),p))){f=a.CN;g=B(b.ea,xj().rf).G;g=g.b()?null:g.c();f=Dja(g,f,f.GW);for(f=Eja(f);f.Qa();)g=
f.wL(),At(),k=t(new u,function(){return function(a){return(new P).N(a.ba,a.t)}}(a)),l=Pf(),l=Qf(l),g=Fja(De(c,k,l).$g(fc().ci),!1,!1,g,e),Gja(f.Pa.px,f.HW,g);e=Vda(f);Pja(b,e,(M(),(new N).a()));return b}}k?(a=(new ph).e(h),a=Tc(a)):a=!1;if(a)return e.R("Cannot apply transformations '"+h+"' to variable '"+f+"'."),b;if(k&&(a=l.i,null!==a&&(a=a.t,wj(a))))return a;if(k&&(a=l.i,null!==a))return a.t;if(w()===g)return Zb(b.ab,n(Qja)).b()&&(e.R("Cannot find variable '"+f+"'."),b.ab.Wb((new Qt).a())),b;throw(new v).d(g);
}f=B(b.ea,xj().rf).G;if(!f.b()){f=f.c();g=At().CN;f=Dja(f,g,g.GW);for(f=Eja(f);f.Qa();)g=f.wL(),At(),k=t(new u,function(){return function(a){return(new P).N(a.ba,a.t)}}(a)),l=Pf(),l=Qf(l),g=Fja(De(c,k,l).$g(fc().ci),!1,!1,g,e),Gja(f.Pa.px,f.HW,g);e=Vda(f);Pja(b,e,(M(),(new N).a()))}return b}zt.prototype.$classData=q({TOa:0},!1,"amf.core.resolution.VariableReplacer$",{TOa:1,f:1});var Bja=void 0;function At(){Bja||(Bja=(new zt).a());return Bja}function Rt(){this.ub=this.jc=null}Rt.prototype=new r;
Rt.prototype.constructor=Rt;function St(){}St.prototype=Rt.prototype;Rt.prototype.vb=function(a){this.ub=this.jc=a;return this};
Rt.prototype.He=function(a){var b=xp(),c=dk(ka(this)),e=jd(a);wp(b,c+"#resolve: resolving "+(e.b()?"":e.c()));a=(new Qd).d(a);this.VC().X(t(new u,function(a,b){return function(a){var c=b.ta;wp(xp(),"ResolutionPipeline#step: applying resolution stage "+dk(ka(a)));c=a.He(c);wp(xp(),"ResolutionPipeline#step: finished applying stage "+dk(ka(a)));b.ta=c}}(this,a)));b=xp();c=dk(ka(this));e=jd(a.ta);wp(b,c+"#resolve: resolved model "+(e.b()?"":e.c()));return a.ta};
function Tt(){this.OX=this.WI=this.fv=null}Tt.prototype=new r;Tt.prototype.constructor=Tt;Tt.prototype.a=function(){this.fv="default";this.WI="editing";this.OX="compatibility";return this};Object.defineProperty(Tt.prototype,"COMPATIBILITY_PIPELINE",{get:function(){return this.OX},configurable:!0});Object.defineProperty(Tt.prototype,"EDITING_PIPELINE",{get:function(){return this.WI},configurable:!0});Object.defineProperty(Tt.prototype,"DEFAULT_PIPELINE",{get:function(){return this.fv},configurable:!0});
Tt.prototype.$classData=q({WOa:0},!1,"amf.core.resolution.pipelines.ResolutionPipeline$",{WOa:1,f:1});var Rja=void 0;function fb(){Rja||(Rja=(new Tt).a());return Rja}function Ut(){}Ut.prototype=new r;Ut.prototype.constructor=Ut;Ut.prototype.a=function(){return this};
function Sja(a,b,c,e){if(b&&b.$classData&&b.$classData.v.t7)return(new A).d(b);a=B(b.ea,vr().rf).G;a.b()?c=w():(a=a.c(),c=c.b()?w():Tja(c.c(),a));return x(c)?(c=c.i,a=Uja(new Vt,b,c),a=Te(a,b.k),e&&(a.ab.Wb((new Wt).e(b.k)),b=b.vC,b.b()||(b=b.c(),(new A).d(a.ab.Wb((new Xt).e(b.k))))),a.ab.Wb((new Yt).a()),Yh(c.ha(),n(Zt))&&a.ab.Wb((new zi).a()),(new A).d(a)):w()===c&&b.vC.qa()?(c=Uja(new Vt,b,b.vC.c()),c=Te(c,b.k),e&&(c.ab.Wb((new Wt).e(b.k)),e=b.vC,e.b()||(e=e.c(),(new A).d(c.ab.Wb((new Xt).e(e.k))))),
Yh(b.ab,n(Zt))&&c.ab.Wb((new zi).a()),c.ab.Wb((new Yt).a()),(new A).d(c)):(new A).d(b)}Ut.prototype.$classData=q({aPa:0},!1,"amf.core.resolution.stages.LinkNodeResolver$",{aPa:1,f:1});var Vja=void 0;function Wja(){Vja||(Vja=(new Ut).a());return Vja}function $t(){this.bi=null}$t.prototype=new r;$t.prototype.constructor=$t;$t.prototype.BK=function(a){this.bi=a;return this};
function Tja(a,b){var c=a.bi;if(au(c)){var e=jd(a.bi);if(e.b()?0:e.c()===b)return(new A).d(c.ze())}c=jd(a.bi);if(c.b()?0:c.c()===b)return w();c=a.bi.Pe();a=t(new u,function(){return function(a){return(new $t).BK(a)}}(a));e=z();a=c.ka(a,e.s);for(c=w();a.Fa();)e=Tja(a.fa(),b),x(e)?(c=e,a=G()):a=a.sa();return c}$t.prototype.$classData=q({bPa:0},!1,"amf.core.resolution.stages.ModelReferenceResolver",{bPa:1,f:1});function bu(){this.ub=null}bu.prototype=new r;bu.prototype.constructor=bu;
function cu(){}cu.prototype=bu.prototype;bu.prototype.vb=function(a){this.ub=a;return this};function Xja(){}Xja.prototype=new r;Xja.prototype.constructor=Xja;function Yja(){}Yja.prototype=Xja.prototype;function du(){this.I_=null}du.prototype=new r;du.prototype.constructor=du;du.prototype.a=function(){Zja=this;this.I_=w();return this};
function eb(a,b,c,e,f,g,h,k,l,p){var y=a.I_;if(x(y))return y=y.i,zga().X(t(new u,function(){return function(){}}(a,b,c))),$ja(y,b,f,c,e,g,h,k,l,p).Lf(t(new u,function(a,b){return function(c){return zga().ae(c,qd(function(){return function(a){return a}}(a,b)))}}(a,b)),um());throw Lb(Mb(),(new Nb).e("No registered runtime compiler"));}function Tga(a,b){a.I_=(new A).d(b)}du.prototype.$classData=q({nPa:0},!1,"amf.core.services.RuntimeCompiler$",{nPa:1,f:1});var Zja=void 0;
function $a(){Zja||(Zja=(new du).a());return Zja}function eu(){}eu.prototype=new r;eu.prototype.constructor=eu;eu.prototype.a=function(){return this};
function Qaa(a,b,c,e,f){a=tb().kE.Ta(b);if(x(a))a=(new A).d(a.i);else{if(w()!==a)throw(new v).d(a);a=vga(tb(),b).pc()}if(x(a)){var g=a.i;if(null!==g)return g.dF(c,f,e)}if(w()===a){e=Bc().nh;a=c.k;g=w();b="Cannot find domain plugin for vendor "+b+" to resolve unit "+jd(c);var h=Zb(c.ha(),n(Fd)),k=jd(c);f.Hc(e.k,a,g,b,h,xc().tb,k);return c}throw(new v).d(a);}eu.prototype.$classData=q({oPa:0},!1,"amf.core.services.RuntimeResolver$",{oPa:1,f:1});var aka=void 0;
function Raa(){aka||(aka=(new eu).a());return aka}function fu(){this.OW=null}fu.prototype=new r;fu.prototype.constructor=fu;fu.prototype.a=function(){bka=this;this.OW=w();return this};function Waa(a,b,c,e,f,g){a=a.OW;if(x(a))return $ga(To(new Uo,b,c,e,f,g));if(w()===a)throw Lb(Mb(),(new Nb).e("No registered runtime serializer"));throw(new v).d(a);}
fu.prototype.eaa=function(a,b,c,e,f,g,h){var k=this.OW;if(x(k))return k.i.eaa(a,b,c,e,f,g,h);if(w()===k)throw Lb(Mb(),(new Nb).e("No registered runtime serializer"));throw(new v).d(k);};fu.prototype.$classData=q({pPa:0},!1,"amf.core.services.RuntimeSerializer$",{pPa:1,f:1});var bka=void 0;function nb(){bka||(bka=(new fu).a());return bka}function gu(){this.r3=null}gu.prototype=new r;gu.prototype.constructor=gu;gu.prototype.a=function(){cka=this;this.r3=w();return this};
function dka(a,b){a.r3=(new A).d(b)}function Qk(a){a=a.r3;if(x(a))return a.i;if(w()===a)throw Lb(Mb(),(new Nb).e("No registered runtime validator"));throw(new v).d(a);}gu.prototype.$classData=q({rPa:0},!1,"amf.core.services.RuntimeValidator$",{rPa:1,f:1});var cka=void 0;function Rk(){cka||(cka=(new gu).a());return cka}function hu(){this.km=this.Ov=this.z0=null}hu.prototype=new r;hu.prototype.constructor=hu;function eka(){}eka.prototype=hu.prototype;
hu.prototype.a=function(){this.z0=t(new u,function(){return function(){return!1}}(this));this.Ov=wk();this.km="partial";return this};function fka(a){a.km="full";return a}function gka(a){a.km="partial";return a}function hka(a,b){a.Ov=b;return a}hu.prototype.$classData=q({jla:0},!1,"amf.core.services.ValidationOptions",{jla:1,f:1});function iu(){this.na=null}iu.prototype=new r;iu.prototype.constructor=iu;iu.prototype.a=function(){ika=this;this.na=void 0!==ba.document?(new jka).a():(new kka).a();return this};
iu.prototype.$classData=q({zPa:0},!1,"amf.core.unsafe.PlatformBuilder$",{zPa:1,f:1});var ika=void 0;function ju(){ika||(ika=(new iu).a());return ika}function ku(){this.e$=this.j_=this.c$=this.d$=null}ku.prototype=new r;ku.prototype.constructor=ku;
ku.prototype.a=function(){lka=this;this.d$=H(Wg(),G());this.c$=H(Wg(),G());this.j_=H(Wg(),G());lu(this,"(ax|test)is$","$1es");lu(this,"(octop|vir)us$","$1i");lu(this,"(alias|status)$","$1es");lu(this,"(bu)s$","$1ses");lu(this,"(buffal|tomat)o$","$1oes");lu(this,"([ti])um$","$1a");lu(this,"sis$","ses");lu(this,"(?:([^f])fe|([lr])f)$","$1$2ves");lu(this,"(hive)$","$1s");lu(this,"([^aeiouy]|qu)y$","$1ies");lu(this,"(x|ch|ss|sh)$","$1es");lu(this,"(matr|vert|ind)(?:ix|ex)$","$1ices");lu(this,"([m|l])ouse$",
"$1ice");lu(this,"^(ox)$","$1en");lu(this,"(quiz)$","$1zes");lu(this,"s$","s");lu(this,"$","s");mu(this,"(n)ews$","$1ews");mu(this,"([ti])a$","$1um");mu(this,"((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","$1sis");mu(this,"((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)sis$","$1sis");mu(this,"(^analy)ses$","$1sis");mu(this,"([^f])ves$","$1fe");mu(this,"(hive)s$","$1");mu(this,"(tive)s$","$1");mu(this,"([lr])ves$","$1f");mu(this,"([^aeiouy]|qu)ies$","$1y");mu(this,"(s)eries$",
"$1eries");mu(this,"(m)ovies$","$1ovie");mu(this,"(x|ch|ss|sh)es$","$1");mu(this,"([m|l])ice$","$1ouse");mu(this,"(bus)es$","$1");mu(this,"(bus)$","$1");mu(this,"(o)es$","$1");mu(this,"(shoe)s$","$1");mu(this,"(cris|ax|test)es$","$1is");mu(this,"(cris|ax|test)is$","$1is");mu(this,"(octop|vir)i$","$1us");mu(this,"(alias|status)es$","$1");mu(this,"(alias|status)$","$1");mu(this,"^(ox)en","$1");mu(this,"(vert|ind)ices$","$1ex");mu(this,"(matr)ices$","$1ix");mu(this,"(quiz)zes$","$1");mu(this,"(database)s$",
"$1");mu(this,"s$","");nu(this,"person","people");nu(this,"man","men");nu(this,"child","children");nu(this,"sex","sexes");nu(this,"move","moves");nu(this,"foot","feet");nu(this,"tooth","teeth");Di();var a=(new J).aa("equipment information rice money species series fish sheep".split(" ")),b=Di().s;this.e$=Ei(a,b);return this};function lu(a,b,c){vh(a.c$,(new ou).tc(b,c))}function mu(a,b,c){vh(a.d$,(new ou).tc(b,c))}function nu(a,b,c){vh(a.j_,(new ou).tc(b,c))}
ku.prototype.$classData=q({APa:0},!1,"amf.core.utils.InflectorBase$",{APa:1,f:1});var lka=void 0;function Bt(){lka||(lka=(new ku).a());return lka}function Ct(){this.Ws=null}Ct.prototype=new r;Ct.prototype.constructor=Ct;function mka(a,b,c){b=pu(Tg(),b,2);a=qu(new ru,b,a,a.length|0);return su(a)?(new A).d(nka(a,c)):w()}
function Jja(a){a=a.Ws;a=kd(ta(),a,"(_|-|\\s)+",0);if(0===a.j.length){if(0===a.j.length)throw(new Gt).e("empty.tail");var b=a.j.length,b=0<b?b:0,c=a.j.length}else b=a.j.length,b=0<b?b:0,c=a.j.length;b=-1+(b<c?b:c)|0;b=0<b?b:0;c=Ht(It(),Jt(ka(a)),b);0<b&&Kt(ye(),a,1,c,0,b);for(var b=c,c=[],e=0,f=b.j.length;e<f;){var g=b.j[e],h=(new ph).e(g),h=Wj(h),h=null===h?0:h.t,h=oka(Ft(),h),h=Dc(h),g=(new ph).e(g),g=""+h+tu(g);c.push(g);e=1+e|0}b=ha(La(la),c);a=Wj((new md).vc(a));c=(new lk).a();e=!0;nk(c,"");
f=0;for(g=b.j.length;f<g;)h=b.j[f],e?(ok(c,h),e=!1):(nk(c,""),ok(c,h)),f=1+f|0;nk(c,"");return""+a+c.Be.Ue}
function Lja(a,b){for(var c=H(Wg(),G()),e=a.Ws,e=pka(ta(),e),f=0,g=e.j.length;f<g;){var h=e.j[f]|0;if(97>h||122<h){for(var k=e.j.length,l=0;;){if(l<k)var p=e.j[l],p=!ub(vb(),h,p);else p=!1;if(p)l=1+l|0;else break}h=l;vh(c,h>=e.j.length?-1:h)}f=1+f|0}a=(new ik).e(a.Ws);for(c=c.Lb;!c.b();){f=c.fa();e=a.r;f|=0;g=b;h=e.Ue;if(0>f||f>(h.length|0))throw(new uu).$d(f);e.Ue=""+h.substring(0,f)+g+h.substring(f);c=c.sa()}return a.u().toLowerCase()}
function Ija(a,b,c){a=b.Ib(t(new u,function(a,b){return function(a){return mka(b,a.WH,a.TH).qa()}}(a,c)));if(a.b())return w();a=a.c();return mka(c,a.WH,a.TH)}Ct.prototype.e=function(a){this.Ws=a;return this};Ct.prototype.$classData=q({BPa:0},!1,"amf.core.utils.InflectorBase$Inflector",{BPa:1,f:1});function vu(){this.t=this.Nb=null}vu.prototype=new r;vu.prototype.constructor=vu;vu.prototype.LO=function(a){this.Nb=a;this.t=w();return this};
function wu(a){var b=a.t,c=a.Nb,b=b.b()?gc(c):b.c();a.t=(new A).d(b);return a.t.c()}vu.prototype.$classData=q({CPa:0},!1,"amf.core.utils.Lazy",{CPa:1,f:1});function xu(){}xu.prototype=new r;xu.prototype.constructor=xu;xu.prototype.a=function(){return this};
function qka(a){var b=rka,c=H(z(),G());for(;;){var e=ska(a,t(new u,function(){return function(a){if(null!==a)return a.Ba().b();throw(new v).d(a);}}(b)));if(null===e)throw(new v).d(e);a=e.pa();e=e.Ba();if(a.b()){if(e.b())return Zf(),(new ag).d(c);Zf();b=c;c=Pd(e);a=pf();b=b.la(c,a.s);return(new $f).d(b)}a=Pd(a);var e=(new yu).IE(e,t(new u,function(a,b){return function(a){return $da(a,b)}}(b,a))),f=pf(),c=c.la(a,f.s);a=e}}xu.prototype.$classData=q({DPa:0},!1,"amf.core.utils.TSort$",{DPa:1,f:1});
var rka=void 0;function Ie(){this.xm=0}Ie.prototype=new r;Ie.prototype.constructor=Ie;Ie.prototype.a=function(){this.xm=0;return this};Ie.prototype.os=function(a){this.xm=1+this.xm|0;return a+"_"+this.xm};Ie.prototype.$classData=q({EPa:0},!1,"amf.core.utils.package$IdCounter",{EPa:1,f:1});function zu(){}zu.prototype=new r;zu.prototype.constructor=zu;zu.prototype.a=function(){return this};function tka(a,b){a=b.trim();return 0<=(a.length|0)&&"\x3c"===a.substring(0,1)}
function uca(a,b,c){return tka(kh(),b)&&!c?"application/xml":uka(kh(),b)&&!c?"application/json":"text/vnd.yaml"}function uka(a,b){a=b.trim();return 0<=(a.length|0)&&"{"===a.substring(0,1)?!0:0<=(b.length|0)&&"["===b.substring(0,1)}zu.prototype.$classData=q({FPa:0},!1,"amf.core.utils.package$MediaTypeMatcher$",{FPa:1,f:1});var vka=void 0;function kh(){vka||(vka=(new zu).a());return vka}function Au(){this.zd=null}Au.prototype=new r;Au.prototype.constructor=Au;Au.prototype.e=function(a){this.zd=a;return this};
Au.prototype.$classData=q({HPa:0},!1,"amf.core.utils.package$RegexConverter",{HPa:1,f:1});function Bu(){this.ac=0}Bu.prototype=new r;Bu.prototype.constructor=Bu;Bu.prototype.a=function(){this.ac=-1;return this};Bu.prototype.$classData=q({IPa:0},!1,"amf.core.utils.package$SimpleCounter",{IPa:1,f:1});function wka(){this.kF=null}wka.prototype=new r;wka.prototype.constructor=wka;
function Nu(a){var b=a.kF.Ex;if(x(b)){var c=b.i;if(null!==c){var b=c.KG,e=c.vH,f=c.eI,c=c.sL,g=a.kF.ez,h=a.kF.Hy,k=a.kF.my,l=(new ph).e("%04d-%02d-%02dT%02d:%02d:%02d"),f=[g,h,k,b,e,f];ta();b=l.ia;z();Dl();e=[];l=0;for(g=f.length|0;l<g;)e.push(Ou(f[l])),l=1+l|0;Pu();f=e.length|0;f=ia(La(Ja),[f]);h=f.j.length;g=l=0;k=e.length|0;h=k<h?k:h;k=f.j.length;for(h=h<k?h:k;l<h;)f.j[g]=e[l],l=1+l|0,g=1+g|0;b=Qu(b,f);if(0!==c){b=""+b;e=(new ph).e(".%09d");f=[c];ta();c=e.ia;z();Dl();e=[];l=0;for(g=f.length|0;l<
g;)e.push(Ou(f[l])),l=1+l|0;Pu();f=e.length|0;f=ia(La(Ja),[f]);h=f.j.length;g=l=0;k=e.length|0;h=k<h?k:h;k=f.j.length;for(h=h<k?h:k;l<h;)f.j[g]=e[l],l=1+l|0,g=1+g|0;c=Qu(c,f);c=kd(ta(),c,"0*$",0);c=Wj((new md).vc(c));b+=c}c=!1;e=null;a=a.kF.Mx;if(x(a)&&(c=!0,e=a,0===(e.i|0)))return b+"Z";if(c){a=e.i|0;c=(new ph).e("%s+%02d");b=[b,a];ta();a=c.ia;z();Dl();c=[];e=0;for(f=b.length|0;e<f;)c.push(Ou(b[e])),e=1+e|0;Pu();b=c.length|0;b=ia(La(Ja),[b]);l=b.j.length;f=e=0;g=c.length|0;l=g<l?g:l;g=b.j.length;
for(l=l<g?l:g;e<l;)b.j[f]=c[e],e=1+e|0,f=1+f|0;return Qu(a,b)}if(w()===a)return b;throw(new v).d(a);}}if(w()===b){c=a.kF.ez;b=a.kF.Hy;e=a.kF.my;a=(new ph).e("%04d-%02d-%02d");b=[c,b,e];ta();a=a.ia;z();Dl();c=[];e=0;for(f=b.length|0;e<f;)c.push(Ou(b[e])),e=1+e|0;Pu();b=c.length|0;b=ia(La(Ja),[b]);l=b.j.length;f=e=0;g=c.length|0;l=g<l?g:l;g=b.j.length;for(l=l<g?l:g;e<l;)b.j[f]=c[e],e=1+e|0,f=1+f|0;return Qu(a,b)}throw(new v).d(b);}function Ru(a){var b=new wka;b.kF=a;return b}
wka.prototype.$classData=q({JPa:0},!1,"amf.core.utils.package$SimpleDateTimes",{JPa:1,f:1});function Su(){this.jHa=null}Su.prototype=new r;Su.prototype.constructor=Su;Su.prototype.a=function(){xka=this;var a=(new ph).e("\\{(.[^{]*)\\}"),b=G();this.jHa=(new qh).Di(a.ia,b);return this};function yka(a,b){return"'"+b+"' is not a valid template uri."}
function zka(a,b){a=(new ph).e(b);b=Di().s;a:{var c=Ei(a,b);a=0;b:for(;;){b=!1;var e=null;if(G().h(c)){a=0===a;break a}if(ft(c)){b=!0;var e=c,f=e.Aj;if(125===(null===f?0:f.t)&&1>a){a=!1;break a}}if(b){var g=e.Aj,f=e.ve;if(125===(null===g?0:g.t)){a=-1+a|0;c=f;continue b}}if(b&&(g=e.Aj,f=e.ve,123===(null===g?0:g.t))){a=1+a|0;c=f;continue b}if(b){c=e.ve;continue b}throw(new v).d(c);}}return a}
function Aka(a,b){b=Mt(a.jHa,b);b=Tu(b);a=t(new u,function(){return function(a){return a.split("{").join("").split("}").join("")}}(a));var c=z();return b.ka(a,c.s)}Su.prototype.$classData=q({LPa:0},!1,"amf.core.utils.package$TemplateUri$",{LPa:1,f:1});var xka=void 0;function Uu(){xka||(xka=(new Su).a());return xka}function Bka(){this.zv=this.t3=this.u3=this.P0=this.bK=null}Bka.prototype=new r;Bka.prototype.constructor=Bka;
function Cka(){var a=new Bka,b=pc(qc(),G()),c=pc(qc(),G()),e=pc(qc(),G()),f=pc(qc(),G()),g=pc(qc(),G());a.bK=b;a.P0=c;a.u3=e;a.t3=f;a.zv=g;return a}
function Dka(a,b){b.qf.X(t(new u,function(a){return function(b){a:{var f=a.zv.Ta(b.ba);if(x(f)){var g=a.zv,h=b.ba,f=f.i,k=b.Ot,l=f.Ot,p=z(),k=k.la(l,p.s).Ri(),l=b.dw,p=f.dw,y=z(),l=l.la(p,y.s).Ri(),p=b.ew,f=f.ew,y=z(),f=p.la(f,y.s).Ri();b=Pj(new Qj,b.ba,b.Ad,b.Uv,b.Rv,k,l,f,b.bz,b.jy,b.dz,b.Oy,b.Qy,b.zC,b.fA,b.ax,b.nj);g.Oe(h,b)}else{if(w()===f){g=a.zv;h=Vu(g,b.ba,b);null!==h&&(h.t=b);b=g;break a}throw(new v).d(f);}b=void 0}return b}}(a)));b.kU.X(t(new u,function(a){return function(b){return Eka(a,
b,xc().vw)}}(a)));b.rX.X(t(new u,function(a){return function(b){return Eka(a,b,xc().Eg)}}(a)));b.qX.X(t(new u,function(a){return function(b){return Eka(a,b,xc().tb)}}(a)));b.GT.X(t(new u,function(a){return function(b){b=0<=(b.length|0)&&"http://"===b.substring(0,7)||0<=(b.length|0)&&"https://"===b.substring(0,8)||0<=(b.length|0)&&"file:/"===b.substring(0,6)?b:Gc(Wu(C(),b.split(".").join(":")));return a.bK.Hs(b)}}(a)));return a}
function Eka(a,b,c){b=0<=(b.length|0)&&"http://"===b.substring(0,7)||0<=(b.length|0)&&"https://"===b.substring(0,8)||0<=(b.length|0)&&"file:/"===b.substring(0,6)?b:Gc(Wu(C(),b.split(".").join(":")));var e=a.zv.Ta(b);if(w()===e)throw Lb(Mb(),(new Nb).e("Cannot enable with "+c+" level unknown validation "+b));if(x(e)){e=e.i;a.P0.Hs(b);a.u3.Hs(b);a.t3.Hs(b);if(xc().vw===c)c=Vu(a.P0,b,e),null!==c&&(c.t=e);else if(xc().Eg===c)c=Vu(a.u3,b,e),null!==c&&(c.t=e);else if(xc().tb===c)c=Vu(a.t3,b,e),null!==c&&
(c.t=e);else throw(new v).d(c);a=a.bK;b=Vu(a,b,e);null!==b&&(b.t=e);return a}throw(new v).d(e);}Bka.prototype.$classData=q({OPa:0},!1,"amf.core.validation.EffectiveValidations",{OPa:1,f:1});function Xu(){this.tb=this.vw=this.Eg=null}Xu.prototype=new r;Xu.prototype.constructor=Xu;Xu.prototype.a=function(){this.Eg="Warning";this.vw="Info";this.tb="Violation";return this};function wba(a,b){return a.Eg===b?a.Eg:a.vw===b?a.vw:a.tb}Xu.prototype.unapply=function(a){return wba(this,a)};
Object.defineProperty(Xu.prototype,"VIOLATION",{get:function(){return this.tb},configurable:!0});Object.defineProperty(Xu.prototype,"INFO",{get:function(){return this.vw},configurable:!0});Object.defineProperty(Xu.prototype,"WARNING",{get:function(){return this.Eg},configurable:!0});Xu.prototype.$classData=q({PPa:0},!1,"amf.core.validation.SeverityLevels$",{PPa:1,f:1});var Fka=void 0;function xc(){Fka||(Fka=(new Xu).a());return Fka}function Yu(){}Yu.prototype=new r;Yu.prototype.constructor=Yu;
Yu.prototype.a=function(){return this};function Gka(a){Hka||(Hka=(new Yu).a());var b;b="Conforms? "+a.K_()+"\n";var c=a.TL();b=b+("Number of results: "+Fp(c))+"\n";for(a=a.TL();!a.b();)c=a.fa(),b=b+("\n- Source: "+c.aw())+"\n",b=b+("  Path: "+c.CC())+"\n",b=b+("  Focus node: "+c.yO())+"\n",b=b+("  Constraint: "+c.S2())+"\n",b=b+("  Message: "+c.mL())+"\n",b=b+("  Severity: "+c.M2())+"\n",a=a.sa();return b}Yu.prototype.$classData=q({QPa:0},!1,"amf.core.validation.core.ValidationReport$",{QPa:1,f:1});
var Hka=void 0;function Zu(){this.AX=this.bB=this.cB=this.UD=this.dD=this.dB=this.BF=null}Zu.prototype=new r;Zu.prototype.constructor=Zu;Zu.prototype.a=function(){Ika=this;var a=C().mj;this.BF=D(new F,a,"string");a=C().mj;this.dB=D(new F,a,"integer");a=C().mj;this.dD=D(new F,a,"float");a=C().Gb;this.UD=D(new F,a,"number");C();a=C().mj;this.cB=D(new F,a,"double");a=C().mj;this.bB=D(new F,a,"boolean");a=C().mj;this.AX=D(new F,a,"nil");C();C();C();return this};
Zu.prototype.$classData=q({UPa:0},!1,"amf.core.vocabulary.Namespace$XsdTypes$",{UPa:1,f:1});var Ika=void 0;function $u(){Ika||(Ika=(new Zu).a());return Ika}function Jka(){this.fc=this.he=this.$E=null;this.ny=!1;this.Ifa=this.Bi=null}Jka.prototype=new r;Jka.prototype.constructor=Jka;function Kka(a,b){a=a.Bi;var c=new Lka;c.xK=b;b=Mka();b=Qf(b);return Fr(a,c,b).Fa()}
function Nka(a,b){a.fc.LN&&b.Am("@context",t(new u,function(a){return function(b){b.Gr(t(new u,function(a){return function(b){Oka(b,"@base",a.he);a.$E.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();Oka(b,c,a)}else throw(new v).d(a);}}(a,b)))}}(a)))}}(a)))}
function av(a,b){if(a.fc.LN)a:{var c=C();a=a.$E;c=c.Ku.kb();b:{for(;c.Qa();){var e=c.Sa(),f=e;if(null===f)throw(new v).d(f);f=f.Ba().he;if(0===(b.indexOf(f)|0)){e=(new A).d(e);break b}}e=w()}if(x(e)&&(c=e.i,null!==c)){e=c.pa();c=c.Ba();a.Oe(e,c.he);a=(new ph).e(e);b=b.split(c.he).join(":");b=(new ph).e(b);c=fc().wN;b=vp(a,b,c);break a}if(w()!==e)throw(new v).d(e);}return b}function Pka(a,b){return a.fc.LN&&-1!==(b.indexOf(a.he)|0)?b.split(a.he).join(""):b}
Jka.prototype.$classData=q({aQa:0},!1,"amf.plugins.document.graph.emitter.EmissionContext",{aQa:1,f:1});function bv(){}bv.prototype=new r;bv.prototype.constructor=bv;bv.prototype.a=function(){return this};bv.prototype.$classData=q({bQa:0},!1,"amf.plugins.document.graph.emitter.EmissionContext$",{bQa:1,f:1});var Qka=void 0;function cv(){}cv.prototype=new r;cv.prototype.constructor=cv;cv.prototype.a=function(){return this};
function cha(a,b,c,e){Qka||(Qka=(new bv).a());a=new Jka;var f=pc(Os(),G()),g=b.k;a.$E=f;a.he=g;a.fc=e;a.ny=!1;a.Bi=(new dv).a();a.Ifa=(new Ie).a();f=new ev;f.r=c;f.fc=e;f.m=a;f.qh=pc(Os(),G());f.mea(b);return!0}cv.prototype.$classData=q({eQa:0},!1,"amf.plugins.document.graph.emitter.JsonLdEmitter$",{eQa:1,f:1});var Rka=void 0;function dha(){Rka||(Rka=(new cv).a());return Rka}function fv(){}fv.prototype=new r;fv.prototype.constructor=fv;fv.prototype.a=function(){return this};
function Ska(){Tka||(Tka=(new fv).a());z();Oj();var a=(new $g).a(),b=new gv,c=new Uka,a=a.wa(),e=(new Np).a(),f=Op(),g=w(),h=pc(Os(),G()),k=w();c.uT=h;c.x$=k;yp.prototype.co.call(c,"",a,e,f,g);b.m=c;b.BF=qi().Mj;b.dB=qi().hj;b.dD=qi().rg;b.UD=qi().jp;b.cB=qi().vi;b.bB=qi().Xj;b.zX=qi().Xl;b.yX=qi().uq;c=Xs();a=mr().nL;b.YA=Vka(c,a);return b}fv.prototype.$classData=q({iQa:0},!1,"amf.plugins.document.graph.parser.GraphParser$",{iQa:1,f:1});var Tka=void 0;function hv(){}hv.prototype=new r;
hv.prototype.constructor=hv;hv.prototype.cj=function(a){var b=C().HB.he;return 0<=(a.length|0)&&a.substring(0,b.length|0)===b?(b=1+(a.indexOf("#")|0)|0,(new A).d(a.substring(b))):w()};hv.prototype.$classData=q({nQa:0},!1,"amf.plugins.document.graph.parser.GraphParserHelpers$AnnotationName$",{nQa:1,f:1});function iv(){this.N5=this.P5=this.O5=this.H9=null}iv.prototype=new r;iv.prototype.constructor=iv;
iv.prototype.a=function(){this.H9="%Vocabulary1.0";this.O5="%Dialect1.0";this.P5="%Library/Dialect1.0";this.N5="%NodeMapping/Dialect1.0";return this};iv.prototype.$classData=q({vQa:0},!1,"amf.plugins.document.vocabularies.ExtensionHeader$",{vQa:1,f:1});var Wka=void 0;function jv(){Wka||(Wka=(new iv).a());return Wka}function kv(){this.zv=this.jha=this.sv=null}kv.prototype=new r;kv.prototype.constructor=kv;
kv.prototype.a=function(){Xka=this;this.sv="RamlStyle";this.jha="JsonSchemaStyle";this.zv=H(z(),(new J).aa([this.sv,this.jha]));return this};kv.prototype.$classData=q({BQa:0},!1,"amf.plugins.document.vocabularies.ReferenceStyles$",{BQa:1,f:1});var Xka=void 0;function rd(){this.xm=0}rd.prototype=new r;rd.prototype.constructor=rd;rd.prototype.a=function(){this.xm=0;return this};rd.prototype.os=function(a){this.xm=1+this.xm|0;return a+"_"+this.xm};
rd.prototype.$classData=q({GQa:0},!1,"amf.plugins.document.vocabularies.emitters.common.IdCounter",{GQa:1,f:1});
function lv(a,b){if(Wa().Ia(b).b())return w();var c=Qba(a,b);if(x(c)&&(c=c.i,null!==c&&(c=c.Ba(),null!==c))){var e=a.rb.k;if(0<=(b.length|0)&&b.substring(0,e.length|0)===e)return a=B(c.ca(),c.$).G,(new A).d(a.b()?null:a.c());for(var f=Pd(a.Xb),e=Zd(new ee,Yd()),f=f.ah.Tq();f.Qa();){var g=f.Sa();-1!==(b.indexOf(g)|0)!==!1&&fe(e,g)}b=e.gb;e=Di().s;b=Ei(b,e);e=Kc();b=mv(nv(b,e));b=Ps(b);b.b()?a=w():(b=b.c(),a=a.Xb.R(b).pa(),b=B(c.ca(),c.$).G,a=(new A).d(a+"."+(b.b()?null:b.c())));return a.b()?(a=B(c.ca(),
c.$).G,(new A).d(a.b()?null:a.c())):a}c=a.rb.k;if(0<=(b.length|0)&&b.substring(0,c.length|0)===c)return a=a.rb.k,a=kd(ta(),b,a,0),a=ld((new md).vc(a)),(new A).d(a.split("/declarations/").join(""));c=Pd(a.Xb).ah.Tq();a:{for(;c.Qa();)if(e=c.Sa(),-1!==(b.indexOf(e)|0)){c=(new A).d(e);break a}c=w()}if(c.b())return w();c=c.c();a=a.Xb.R(c).pa();c=kd(ta(),b,c,0);c=ld((new md).vc(c));c=-1!==(c.indexOf("/declarations/")|0)?c.split("/declarations/").join(""):c;0<=(c.length|0)&&"#"===c.substring(0,1)?(c=(new ph).e(c),
b=c.ia.length|0,a=a+"."+Lh(Mh(),c.ia,1,b)):a=a+"."+c;return(new A).d(a)}function ov(){this.JX=this.TX=null}ov.prototype=new r;ov.prototype.constructor=ov;ov.prototype.a=function(){Yka=this;var a=Pb(),b=C().Kc;this.TX=Rb(new Sb,a,D(new F,b,"declarationName"),Tb(new Ub,Vb().tm,"","",G()));a=Yc();b=C().Kc;this.JX=Rb(new Sb,a,D(new F,b,"abstract"),Tb(new Ub,Vb().tm,"","",G()));return this};
ov.prototype.$classData=q({HRa:0},!1,"amf.plugins.document.vocabularies.metamodel.domain.DialectDomainElementModel$",{HRa:1,f:1});var Yka=void 0;function pv(){Yka||(Yka=(new ov).a());return Yka}function Zka(a){return B(a.ca(),a.mt)}function $ka(a,b){if(a.ct.Ja(b))Eb(a,a.mt,b);else throw Lb(Mb(),(new Nb).e("Unknown merging policy: '"+b+"'"));}function ala(){}ala.prototype=new r;ala.prototype.constructor=ala;function qv(){}qv.prototype=ala.prototype;function rv(){this.bx=this.m=this.Ff=null}
rv.prototype=new r;rv.prototype.constructor=rv;rv.prototype.LG=function(){var a=this.Ff,b=Pc(),a=sv(a,b);Hp(a)&&bla(this,a.i)};
function cla(a,b,c,e,f){if(!f.b()){var g=f.c();a.bx.Oe(g+"/"+b,c)}g=(new ph).e(e);b=Tc(g)?e+"/"+b:b;a.bx.Oe(b,c);e=c.pb().nb;O().ua===e?(e=Pc(),e=L(c,e,a.m),g=yc((new K).Y(e),"id"),g=g.b()?yc((new K).Y(e),"$id"):g,g.b()?g=w():(g=id(g.c().i),g.b()?g=w():(g=g.c(),g=(new A).d(g.ya))),g.b()?f=w():(g=g.c(),f=(new A).d(0<=(g.length|0)&&"#"===g.substring(0,1)?""+(f.b()?"":f.c())+g:g)),f.b()||(g=f.c(),a.bx.Oe(g,c)),dla(a,b,f,e)):O().Nc===e&&(e=tv(),c=L(c,e,a.m),ela(a,b,f,c))}
function ela(a,b,c,e){e=e.Jn;var f=uv();e.cg(f.gc).X(t(new u,function(a,b,c){return function(e){if(null!==e){var f=e.pa();e=e.si();cla(a,""+e,f,b,c)}else throw(new v).d(e);}}(a,b,c)))}rv.prototype.Dr=function(a,b){this.Ff=a;this.m=b;this.bx=(new ct).a();this.LG();return this};
function bla(a,b){var c=yc((new K).Y(b),"id"),c=c.b()?yc((new K).Y(b),"$id"):c;c.b()?c=w():(c=id(c.c().i),c.b()?c=w():(c=c.c(),c=(new A).d(c.ya)));if(!c.b()){var e=c.c();a.bx.Oe(e,(R(),R(),lq(R(),b,O().ua)))}a.bx.Oe("/",(R(),R(),lq(R(),b,O().ua)));b.Bb.xb(t(new u,function(){return function(a){a=id(a.i);a.b()?a=!1:(a=a.c(),a="id"===a.ya||"$id"===a.ya);return!a}}(a))).X(t(new u,function(a,b){return function(c){var e=c.Da,l=zc();cla(a,L(e,l,a.m).ya,c.i,"",b)}}(a,c)))}
function dla(a,b,c,e){e.Bb.xb(t(new u,function(){return function(a){a=id(a.i);a.b()?a=!1:(a=a.c(),a="id"===a.ya||"$id"===a.ya);return!a}}(a))).X(t(new u,function(a,b,c){return function(e){var l=e.Da,p=zc();cla(a,L(l,p,a.m).ya,e.i,b,c)}}(a,b,c)))}rv.prototype.$classData=q({KTa:0},!1,"amf.plugins.document.webapi.contexts.JsonSchemaAstIndex",{KTa:1,f:1});function fla(a){return vv(function(a){return function(c,e,f){var g=new wv,h=a.Q;g.sk=c;g.lP=e;g.U=f;g.Q=h;gla(g);return g}}(a))}
function hla(a){return qd(function(a){return function(c,e){var f=a.Q,g=new ila;g.Hr=c;g.Ma=e;g.ud=f;return g}}(a))}function jla(a){return vv(function(a){return function(c,e,f){var g=a.Q,h=new kla;h.ZA=c;h.Eb=e;h.Ma=f;h.ud=g;xv.prototype.yBa.call(h,c,0,0,g);return h}}(a))}function yv(){}yv.prototype=new r;yv.prototype.constructor=yv;yv.prototype.a=function(){return this};
function Gh(a,b,c,e,f){var g=c.t.t.ha(),h=(new lla).a(),g=g.jf,k=Wg().s,h=Fr(g,h,k);h.Fa()?(g=f.Pg(),k=nc(),g=null!==g&&g===k):g=!1;return g?(a=t(new u,function(){return function(a){return a.Xp}}(a)),g=z(),mla(new nla,b,c,h.ka(a,g.s),e,f)):Ih(new Jh,b,c,e)}yv.prototype.$classData=q({bUa:0},!1,"amf.plugins.document.webapi.contexts.RamlScalarEmitter$",{bUa:1,f:1});var ola=void 0;function Hh(){ola||(ola=(new yv).a());return ola}function zv(){this.fc=this.Sy=this.jc=null;this.g0=!1}zv.prototype=new r;
zv.prototype.constructor=zv;function pla(){}pla.prototype=zv.prototype;function qla(a,b){b=Zb(b.ha(),n(Av));if(x(b))return b=b.i,Bv(new Cv,"type",a,O().Wa,b.cc.Dd);if(w()===b)return Bv(new Cv,"type",a,O().Wa,Gd());throw(new v).d(b);}zv.prototype.Ci=function(a,b,c){this.jc=a;this.Sy=b;this.fc=c;this.g0=!1;return this};zv.prototype.cda=function(){return this.fc};zv.prototype.Si=function(){return this.jc};function Dv(a,b,c){a.Sy.VDa(c,b)}
function rla(a,b){var c=kr(b.ca(),ci().ld);if(w()===c){if("union"===a&&B(b.ea,lo().Ee).Fa())return w();b=Zb(b.ha(),n(Av));if(x(b))return b=b.i,(new A).d(Bv(new Cv,"type",a,O().Wa,b.cc.Dd))}return w()}function Cca(a,b){return a.g0?b.xb(t(new u,function(){return function(a){return!Zb(a.ha(),n(sla)).qa()}}(a))):b}
function tla(a,b,c){b=yb(b);return x(b)?c.Ib(t(new u,function(a,b){return function(c){return au(c)?c.ze().k===b:sd(c)&&c.ak().Cd(t(new u,function(a,b){return function(a){return a.k===b}}(a,b)))}}(a,b.i.k))):w()}function Ev(){this.t=this.oa=null}Ev.prototype=new r;Ev.prototype.constructor=Ev;function Fv(){}Fv.prototype=Ev.prototype;Ev.prototype.tc=function(a,b){this.oa=a;this.t=b;return this};function Gv(){this.$ca=this.Y2=this.u0=this.sE=null}Gv.prototype=new r;Gv.prototype.constructor=Gv;
Gv.prototype.a=function(){ula=this;this.sE=Hv((new Cf).e("fragmentType"));this.u0=Hv((new Cf).e("extensionType"));this.Y2="swagger";this.$ca="openapi";return this};
Gv.prototype.oG=function(a){a=a.Gg;if(bd(a)){a=a.Vd;var b=Pc();a=Iv(a).Gp(b);if(Hp(a)){a=a.i;b=yc((new K).Y(a),this.sE);b=b.b()?yc((new K).Y(a),Jv().u0):b;b=b.b()?yc((new K).Y(a),Jv().Y2):b;a=b.b()?yc((new K).Y(a),Jv().$ca):b;if(a.b())return w();a=a.c();Jv();a=Hc(Ic(a.i),qe());a=a.b()?"":a.c();var b=Kv().t,b=(new ph).e(b),c=G(),b=(new qh).Di(b.ia,c);vla().t===a?a=(new A).d(vla()):(b=ss(b,a),b.b()?b=!1:null!==b.c()?(b=b.c(),b=0===Ot(b,0)):b=!1,a=b?(new A).d(Kv()):wla().t===a?(new A).d(wla()):xla().t===
a?(new A).d(xla()):yla().t===a?(new A).d(yla()):zla().t===a?(new A).d(zla()):Ala().t===a?(new A).d(Ala()):Bla().t===a?(new A).d(Bla()):Cla().t===a?(new A).d(Cla()):Dla().t===a?(new A).d(Dla()):Ela().t===a?(new A).d(Ela()):w());return a}if(Ep(a))return w();throw(new v).d(a);}return w()};Gv.prototype.$classData=q({wUa:0},!1,"amf.plugins.document.webapi.parser.OasHeader$",{wUa:1,f:1});var ula=void 0;function Jv(){ula||(ula=(new Gv).a());return ula}function Lv(){this.lV=null}Lv.prototype=new r;
Lv.prototype.constructor=Lv;Lv.prototype.a=function(){Fla=this;var a="time-only date-only date-time date-time-only password byte binary int32 int64 long float".split(" ");if(0===(a.length|0))a=Yd();else{for(var b=Zd(new ee,Yd()),c=0,e=a.length|0;c<e;)fe(b,a[c]),c=1+c|0;a=b.gb}this.lV=a;return this};Lv.prototype.$classData=q({IUa:0},!1,"amf.plugins.document.webapi.parser.OasTypeDefMatcher$",{IUa:1,f:1});var Fla=void 0;function Gla(){Fla||(Fla=(new Lv).a());return Fla}
function Hla(){this.m=this.Bh=this.ga=this.bk=null}Hla.prototype=new r;Hla.prototype.constructor=Hla;function Ila(a){var b;b=a.bk.Bd;var c=(new A).d(a.ga),e=(new Mv).a(),f=(new Ie).a();b=Nv(new Ov,b,e,c,f,a.m).Ir();b=fh(hh(),b,a.Bh);a=a.ga;H(z(),G());return cj(b,a)}function Jla(a,b,c,e){var f=new Hla;f.bk=a;f.ga=b;f.Bh=c;f.m=e;return f}Hla.prototype.$classData=q({KUa:0},!1,"amf.plugins.document.webapi.parser.PayloadParser",{KUa:1,f:1});function Pv(){}Pv.prototype=new r;Pv.prototype.constructor=Pv;
Pv.prototype.a=function(){return this};
function Kla(a,b){a=Qv(Lla()).gh;if(Rv(qu(new ru,a,b,b.length|0)))return(new A).d(Lla());a=Qv(Mla()).gh;if(Rv(qu(new ru,a,b,b.length|0)))return(new A).d(Mla());a=Qv(Sv()).gh;if(Rv(qu(new ru,a,b,b.length|0)))return(new A).d(Sv());a=Qv(Nla()).gh;if(Rv(qu(new ru,a,b,b.length|0)))return(new A).d(Nla());a=Qv(Ola()).gh;if(Rv(qu(new ru,a,b,b.length|0)))return(new A).d(Ola());a=Qv(Pla()).gh;if(Rv(qu(new ru,a,b,b.length|0)))return(new A).d(Pla());a=Qv(Tv()).gh;if(Rv(qu(new ru,a,b,b.length|0)))return(new A).d(Tv());
a=Qv(Uv()).gh;if(Rv(qu(new ru,a,b,b.length|0)))return(new A).d(Uv());a=Qv(Qla()).gh;if(Rv(qu(new ru,a,b,b.length|0)))return(new A).d(Qla());a=Qv(Sv()).gh;return Rv(qu(new ru,a,b,b.length|0))?(new A).d(Sv()):w()}Pv.prototype.$classData=q({LUa:0},!1,"amf.plugins.document.webapi.parser.RamlFragmentHeader$",{LUa:1,f:1});var Rla=void 0;function Sla(){Rla||(Rla=(new Pv).a());return Rla}function Vv(){}Vv.prototype=new r;Vv.prototype.constructor=Vv;Vv.prototype.a=function(){return this};
function Tla(a,b){return"annotation"===b?"annotation":"anyShape"===b?"any":"arrayShape"===b?"array":"dateScalarShape"===b?"date":"endPoint"===b?"endpoint":"example"===b?"example":"fileShape"===b?"file":"module"===b?"library":"nodeShape"===b?"object":"numberScalarShape"===b?"number":"operation"===b?"operation":"resourceType"===b?"resource type":"response"===b?"response":"schemaShape"===b?"schema":"securitySchema"===b?"security schema":"shape"===b?"shape":"stringScalarShape"===b?"string":"trait"===
b?"trait":"unionShape"===b?"union":"userDocumentation"===b?"documentation":"webApi"===b?"root":"xmlSerialization"===b?"xml":b}Vv.prototype.$classData=q({ZUa:0},!1,"amf.plugins.document.webapi.parser.RamlShapeTypeBeautifier$",{ZUa:1,f:1});var Ula=void 0;function Vla(){Ula||(Ula=(new Vv).a());return Ula}function Wv(){this.lV=null}Wv.prototype=new r;Wv.prototype.constructor=Wv;
Wv.prototype.a=function(){Wla=this;var a="byte binary password int int8 int16 int32 int64 long double float".split(" ");if(0===(a.length|0))a=Yd();else{for(var b=Zd(new ee,Yd()),c=0,e=a.length|0;c<e;)fe(b,a[c]),c=1+c|0;a=b.gb}this.lV=a;return this};
function fi(a,b,c,e,f){return Xla().cj(b).b()||f?Yla().cj(b).b()||f?Zla().cj(b).b()||f?"nil"===b||""===b||"null"===b?Eg():"any"===b?Xv():"string"===b?"byte"===c?dg():"binary"===c?eg():"password"===c?fg():gg():"number"===b?"int"===c?jg():"int8"===c?jg():"int16"===c?jg():"int32"===c?jg():"int64"===c?og():"long"===c?og():"float"===c?pg():"double"===c?qg():Fg():"integer"===b?jg():"boolean"===b?rg():"datetime"===b?sg():"datetime-only"===b?tg():"time-only"===b?ug():"date-only"===b?vg():"array"===b?wg():
"object"===b?xg():"union"===b?Yv():"file"===b?Dg():e:Tca():$la():ama()}function bma(a,b){return"number"===b?(new A).d(Fg()):"integer"===b?(new A).d(jg()):"date"===b?(new A).d(sg()):"boolean"===b?(new A).d(rg()):"file"===b?(new A).d(Dg()):"string"===b?(new A).d(gg()):w()}Wv.prototype.$classData=q({$Ua:0},!1,"amf.plugins.document.webapi.parser.RamlTypeDefMatcher$",{$Ua:1,f:1});var Wla=void 0;function ei(){Wla||(Wla=(new Wv).a());return Wla}function Zv(){}Zv.prototype=new r;
Zv.prototype.constructor=Zv;Zv.prototype.a=function(){return this};Zv.prototype.cj=function(a){ei();var b=a.trim(),b=$v(ta(),b,"^(\\s+|[\ufeff-\uffff])","");return 0<=(b.length|0)&&"["===b.substring(0,1)||0<=(b.length|0)&&"{"===b.substring(0,1)?(new A).d(a):w()};Zv.prototype.$classData=q({aVa:0},!1,"amf.plugins.document.webapi.parser.RamlTypeDefMatcher$JSONSchema$",{aVa:1,f:1});var cma=void 0;function Yla(){cma||(cma=(new Zv).a());return cma}function aw(){}aw.prototype=new r;
aw.prototype.constructor=aw;aw.prototype.a=function(){return this};aw.prototype.cj=function(a){ei();var b=a.trim(),b=$v(ta(),b,"^(\\s+|[\ufeff-\uffff])","");return-1!==(b.indexOf("[]")|0)&&!(0<=(b.length|0)&&"["===b.substring(0,1))&&re(ta(),b,"]")||-1!==(b.indexOf("|")|0)||-1!==(b.indexOf("(")|0)||-1!==(b.indexOf(")")|0)?(new A).d(a):w()};aw.prototype.$classData=q({bVa:0},!1,"amf.plugins.document.webapi.parser.RamlTypeDefMatcher$TypeExpression$",{bVa:1,f:1});var dma=void 0;
function Zla(){dma||(dma=(new aw).a());return dma}function bw(){}bw.prototype=new r;bw.prototype.constructor=bw;bw.prototype.a=function(){return this};bw.prototype.cj=function(a){ei();var b=$v(ta(),a,"^(\\s+|[\ufeff-\uffff])","");return 0<=(b.length|0)&&"\x3c"===b.substring(0,1)&&!(0<=(b.length|0)&&"\x3c\x3c"===b.substring(0,2)&&re(ta(),b,"\x3e\x3e"))?(new A).d(a):w()};bw.prototype.$classData=q({cVa:0},!1,"amf.plugins.document.webapi.parser.RamlTypeDefMatcher$XMLSchema$",{cVa:1,f:1});var ema=void 0;
function Xla(){ema||(ema=(new bw).a());return ema}function cw(){}cw.prototype=new r;cw.prototype.constructor=cw;cw.prototype.a=function(){return this};
function fma(a,b,c){if(dg()===b)return(new P).N("string","byte");if(eg()===b)return(new P).N("string","binary");if(fg()===b)return(new P).N("string","password");if(gg()===b)return(new P).N("string","");if(jg()===b)return a=!1,b=null,x(c)&&(a=!0,b=c,"int"===b.i)?(new P).N("number","int"):a&&"int8"===b.i?(new P).N("number","int8"):a&&"int16"===b.i?(new P).N("number","int16"):a&&"int32"===b.i?(new P).N("number","int32"):(new P).N("integer","");if(og()===b)return a=!1,b=null,x(c)&&(a=!0,b=c,"int64"===
b.i)?(new P).N("number","int64"):a&&"long"===b.i?(new P).N("number","long"):(new P).N("integer","long");if(pg()===b)return(new P).N("number","float");if(qg()===b)return(new P).N("number","double");if(rg()===b)return(new P).N("boolean","");if(sg()===b)return(new P).N("datetime","");if(tg()===b)return(new P).N("datetime-only","");if(ug()===b)return(new P).N("time-only","");if(vg()===b)return(new P).N("date-only","");if(wg()===b)return(new P).N("array","");if(xg()===b)return(new P).N("object","");if(Dg()===
b)return(new P).N("file","");if(Eg()===b)return(new P).N("nil","");if(Fg()===b)return(new P).N("number","");if(Gg()===b)throw Lb(Mb(),(new Hg).e("Undefined type def"));throw(new v).d(b);}cw.prototype.$classData=q({dVa:0},!1,"amf.plugins.document.webapi.parser.RamlTypeDefStringValueMatcher$",{dVa:1,f:1});var gma=void 0;function hma(){gma||(gma=(new cw).a());return gma}function dw(){this.Hg=this.aaa=this.Rda=null}dw.prototype=new r;dw.prototype.constructor=dw;
dw.prototype.j1=function(a,b,c){this.Rda=a;this.aaa=b;this.Hg=c;return this};dw.prototype.$classData=q({eVa:0},!1,"amf.plugins.document.webapi.parser.spec.BaseUriSplitter",{eVa:1,f:1});function ew(){}ew.prototype=new r;ew.prototype.constructor=ew;ew.prototype.a=function(){return this};ew.prototype.$classData=q({fVa:0},!1,"amf.plugins.document.webapi.parser.spec.BaseUriSplitter$",{fVa:1,f:1});var ima=void 0;function fw(){}fw.prototype=new r;fw.prototype.constructor=fw;fw.prototype.a=function(){return this};
fw.prototype.$classData=q({hVa:0},!1,"amf.plugins.document.webapi.parser.spec.OasWebApiDeclarations$",{hVa:1,f:1});var jma=void 0;function gw(){}gw.prototype=new r;gw.prototype.constructor=gw;gw.prototype.a=function(){return this};function kma(a,b){a=(new hw).YU(pc(fc().db,G()),pc(fc().db,G()),b.iG(),b.CG(),b.bC());a.CA=b.CA;a.mA=b.mA;a.to=b.to;a.dA=b.dA;a.ro=b.ro;a.Es=b.Es;a.Gs=b.Gs;a.wo=b.wo;a.Fp=b.Fp;a.Cp=b.Cp;return a}
gw.prototype.$classData=q({iVa:0},!1,"amf.plugins.document.webapi.parser.spec.RamlWebApiDeclarations$",{iVa:1,f:1});var lma=void 0;function mma(){lma||(lma=(new gw).a());return lma}function iw(){}iw.prototype=new r;iw.prototype.constructor=iw;iw.prototype.a=function(){return this};
function nma(a,b,c){var e=(new Np).a(),f=w(),g=pc(fc().db,G()),h=pc(fc().db,G()),k=pc(fc().db,G()),l=pc(fc().db,G()),p=pc(fc().db,G()),y=pc(fc().db,G()),I=pc(fc().db,G()),E=pc(fc().db,G()),V=pc(fc().db,G()),da=pc(fc().db,G()),sa=pc(fc().db,G()),ua=pc(fc().db,G()),Ia=pc(fc().db,G()),Pa=pc(fc().db,G()),Za=pc(fc().db,G()),db=pc(fc().db,G());c=(new jw).TU(f,g,h,k,l,p,y,I,E,V,da,sa,ua,Ia,Pa,Za,c,e,db);b.X(t(new u,function(a,b){return function(a){return Ai(b,a)}}(a,c)));return c}
iw.prototype.$classData=q({jVa:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$",{jVa:1,f:1});var oma=void 0;function pma(){oma||(oma=(new iw).a());return oma}function yw(){}yw.prototype=new r;yw.prototype.constructor=yw;yw.prototype.a=function(){return this};yw.prototype.w_=function(a,b){var c=Pc(),e=new qma;a=L(a,c,b);e.sx=a;e.Ah=b;return e};yw.prototype.$classData=q({xVa:0},!1,"amf.plugins.document.webapi.parser.spec.common.MapArrayNode$",{xVa:1,f:1});var rma=void 0;
function zw(){}zw.prototype=new r;zw.prototype.constructor=zw;zw.prototype.a=function(){return this};function sma(a,b,c){a=rh().z9;var e="Unexpected key '"+b+"'. Options are 'value' or annotations \\(.+\\)",f=w();Cc(c,a,"",f,e,b.ga)}function tma(a,b,c){var e=b.we();return Aw(e)?uma(a,e,c):(new Eh).Vb(b,c)}
function uma(a,b,c){var e=H(Wg(),G()),e=(new Qd).d(e);b.Bb.X(t(new u,function(a,b,c){return function(a){var e=a.Da.we();if(rs(e))return e=e.ya,"value"===e?vh(b.ta,a):vma(Bw(),e)?void 0:(sma(wma(),a.Da,c),void 0);sma(wma(),a.Da,c)}}(a,e,c)));if(e.ta.Fa())for(a=Cw(e.ta).Lb;!a.b();){var f=a.fa(),g=rh().U5,h=w();Cc(c,g,"",h,"Duplicated key 'value'.",f.ga);a=a.sa()}e=Ps(e.ta.Lb);e.b()?e=w():(e=e.c().i,e=(new A).d((new Eh).Vb(e,c)));e.b()?(e=R().Qm,c=(new Eh).Vb(e,c)):c=e.c();return xma(b,c)}
zw.prototype.$classData=q({zVa:0},!1,"amf.plugins.document.webapi.parser.spec.common.RamlScalarNode$",{zVa:1,f:1});var yma=void 0;function wma(){yma||(yma=(new zw).a());return yma}function Dw(){}Dw.prototype=new r;Dw.prototype.constructor=Dw;Dw.prototype.a=function(){return this};Dw.prototype.w_=function(a,b){var c=a.we();return Ew(c)?(new Fw).Vb(a,b):(new zma).Dr(a,b)};Dw.prototype.$classData=q({AVa:0},!1,"amf.plugins.document.webapi.parser.spec.common.SingleArrayNode$",{AVa:1,f:1});var Ama=void 0;
function Bma(){Ama||(Ama=(new Dw).a());return Ama}function Cma(){this.l=this.Ah=this.xc=null}Cma.prototype=new r;Cma.prototype.constructor=Cma;function Dma(a,b){var c=a.l,e=a.xc;a=a.Ah;var f=new Ema;f.sk=b;f.xc=e;f.Ah=a;if(null===c)throw Lb(Mb(),null);f.l=c;f.nj=(M(),(new N).a());f.E=(M(),(new N).a());f.rP=w();f.oQ=w();f.lfa=!1;f.Xw=!1;f.k$=!1;f.bda=!1;return f}function Dh(a,b,c){var e=new Cma;e.xc=b;e.Ah=c;if(null===a)throw Lb(Mb(),null);e.l=a;return e}
function Ch(a,b){var c=a.l,e=new Fma;e.ta=b;if(null===c)throw Lb(Mb(),null);e.l=c;return Dma(a,e)}Cma.prototype.$classData=q({CVa:0},!1,"amf.plugins.document.webapi.parser.spec.common.SpecParserOps$FieldOps",{CVa:1,f:1});function Gw(){this.Yca=this.Vda=this.pya=this.TCa=this.Wda=null}Gw.prototype=new r;Gw.prototype.constructor=Gw;
Gw.prototype.a=function(){Gma=this;var a="baseUriParameters termsOfService parameters binding contact externalDocs license baseUriParameters oasDeprecated summary defaultResponse payloads readOnly dependencies tuple format exclusiveMaximum exclusiveMinimum consumes produces flow examples responses additionalProperties collectionFormat tags url serverDescription servers xor and or not minimum maximum recursive pattern multipleOf xone".split(" ");if(0===(a.length|0))a=Yd();else{for(var b=Zd(new ee,
Yd()),c=0,e=a.length|0;c<e;)fe(b,a[c]),c=1+c|0;a=b.gb}this.Wda=a;a="baseUriParameters annotationTypes requestPayloads responsePayloads uses mediaType traits resourceTypes is type extensionType fragmentType usage title userDocumentation description displayName extends describedBy discriminatorValue settings securitySchemes queryParameters queryString examples fileTypes schema serverDescription servers consumes produces schemes parameters facets merge union security required example examples".split(" ");
if(0===(a.length|0))a=Yd();else{b=Zd(new ee,Yd());c=0;for(e=a.length|0;c<e;)fe(b,a[c]),c=1+c|0;a=b.gb}this.TCa=a;this.pya="amf-";a=(new ph).e("^\\((.+)\\)$");b=G();this.Vda=(new qh).Di(a.ia,b);a=(new ph).e("^[xX]-(.+)");b=G();this.Yca=(new qh).Di(a.ia,b);return this};function vma(a,b){a=ss(a.Vda,b);a.b()?a=!1:null!==a.c()?(a=a.c(),a=0===Ot(a,1)):a=!1;return a?!0:!1}
function Hma(a,b){var c=ss(a.Vda,b);if(c.b())e=!1;else if(null!==c.c())var e=c.c(),e=0===Ot(e,1);else e=!1;if(e&&(c=c.c(),c=Pt(c,0),Ima(a,a.Wda,c)))return(new A).d(c);b=ss(a.Yca,b);b.b()?c=!1:null!==b.c()?(c=b.c(),c=0===Ot(c,1)):c=!1;return c&&(b=b.c(),b=Pt(b,0),Ima(a,a.TCa,b))?(new A).d(b):w()}function Jma(a,b){a=ss(a.Yca,b);a.b()?a=!1:null!==a.c()?(a=a.c(),a=0===Ot(a,1)):a=!1;return a?!0:!1}function Ima(a,b,c){c=(new ph).e(c);return!b.Ja(Zo(c,a.pya))}
Gw.prototype.$classData=q({EVa:0},!1,"amf.plugins.document.webapi.parser.spec.common.WellKnownAnnotation$",{EVa:1,f:1});var Gma=void 0;function Bw(){Gma||(Gma=(new Gw).a());return Gma}function Hw(){this.Pb=this.Q=this.o=this.Ii=null}Hw.prototype=new r;Hw.prototype.constructor=Hw;function Kma(){}Kma.prototype=Hw.prototype;Hw.prototype.Yaa=function(a,b,c){this.Ii=a;this.o=b;this.Q=c;this.Pb=a.g;return this};
Hw.prototype.NT=function(){var a=!1,b=null,c=this.gI.wa();if(ft(c)&&(a=!0,b=c,Eq(b.Aj))){c=H(Wg(),G());b=Dd(this.Pb,Zl().gd);b.b()||(b=b.c(),(new A).d(vh(c,Ih(new Jh,"displayName",b,w()))));b=Dd(this.Pb,Zl().fb);b.b()||(b=b.c(),(new A).d(vh(c,Ih(new Jh,"description",b,w()))));b=Dd(this.Pb,Zl().OF);if(!b.b()){var b=b.c(),a=Iw(b.t.t),e=t(new u,function(){return function(a){var b=Jw().lX.Ta(a.u());if(x(b))return Nh(new Oh,b.i,a.E);if(w()===b)return a;throw(new v).d(b);}}(this)),f=z(),a=a.ka(e,f.s),b=
Rh(new Sh,b.xc,Ph(new Qh,gr(new hr,a,b.t.t.E),b.t.E));(new A).d(vh(c,Kw(new Lw,"allowedTargets",b,this.o,!1)))}b=this.gI;a=t(new u,function(){return function(a){return a}}(this));e=z();Er(c,b.ka(a,e.s));Er(c,Mw(this.Ii,this.o,this.Q).Ua());Zf();return(new $f).d(c)}if(a&&(a=b.Aj,b=b.ve,Fq(a)&&G().h(b)))return Zf(),(new ag).d(a);if(G().h(c))return Zf(),c=G(),(new $f).d(c);throw Lb(Mb(),(new Nb).e("IllegalTypeDeclarations found: "+c));};function Lma(){}Lma.prototype=new r;Lma.prototype.constructor=Lma;
function Mma(){}Mma.prototype=Lma.prototype;function Nw(){}Nw.prototype=new r;Nw.prototype.constructor=Nw;Nw.prototype.a=function(){return this};
function Nma(a,b){if(sda(b)){if(jg()===b){Di();var c=(new J).aa("int int8 int16 int32 int64 long".split(" ")),e=Di().s,c=Ei(c,e),c=!uh(c,a)}else c=!1;if(c)return!1;if(pg()!==b||"double"!==a){og()===b?(Di(),b=(new J).aa(["double","float"]),c=Di().s,b=Ei(b,c),b=uh(b,a)):b=!1;if(b)return!1;Di();b=(new J).aa("int int8 int16 int32 int64 float double".split(" "));c=Di().s;b=Ei(b,c);return uh(b,a)}return!1}Di();b=(new J).aa("int int8 int16 int32 int64 long float double".split(" "));c=Di().s;b=Ei(b,c);return!uh(b,
a)}Nw.prototype.$classData=q({QVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.FormatValidator$",{QVa:1,f:1});var Oma=void 0;function Ow(){this.ba=null}Ow.prototype=new r;Ow.prototype.constructor=Ow;function Pma(){}Pma.prototype=Ow.prototype;Ow.prototype.e=function(a){this.ba=a;return this};function Pw(){}Pw.prototype=new r;Pw.prototype.constructor=Pw;Pw.prototype.a=function(){return this};function Qma(a,b){return jg()===b?O().Oi:O().rg}
function Qw(a,b){return Qma(0,b.b()?Gg():b.c())}Pw.prototype.$classData=q({VVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.NumberTypeToYTypeConverter$",{VVa:1,f:1});var Rma=void 0;function Rw(){Rma||(Rma=(new Pw).a());return Rma}function Sma(a,b,c,e,f){b=Nh(new Oh,b,(new N).a());M();var g=(new N).a();vh(f,Ih(new Jh,c,Rh(new Sh,e,Ph(new Qh,b,g)),(new A).d(Qw(Rw(),a.mI()))))}
function Tma(a,b,c){var e=Dd(b,xh().jj);e.b()||(e=e.c(),Uma(a,e,c));b=Dd(b,xh().ij);b.b()||(b=b.c(),Vma(a,b,c))}function Uma(a,b,c){vh(c,Ih(new Jh,"minimum",b,(new A).d(Qw(Rw(),a.mI()))))}function Vma(a,b,c){vh(c,Ih(new Jh,"maximum",b,(new A).d(Qw(Rw(),a.mI()))))}
function Wma(a,b,c){var e=Dd(b,xh().vl);e.b()||(e=e.c(),(new A).d(vh(c,Ih(new Jh,"pattern",e,w()))));e=Dd(b,xh().Cq);e.b()||(e=e.c(),(new A).d(vh(c,Ih(new Jh,"minLength",e,w()))));e=Dd(b,xh().Aq);e.b()||(e=e.c(),(new A).d(vh(c,Ih(new Jh,"maxLength",e,w()))));e=a.mI();e.b()?e=!1:(e=e.c(),e=sda(e));if(e&&Xma(a.tj()))if(e=Dd(b,xh().sn),x(e)){var e=e.i.t.t.u(),e="int8"===e?(new A).d(Yma(-128,127)):"int16"===e?(new A).d(Yma(-32768,32767)):"int32"===e?(new A).d(Yma(-2147483648,2147483647)):"int64"===e?
(new A).d(Yma(-9223372036854775808,0x7fffffffffffffff)):w(),f=Dd(b,xh().jj);if(f.b()){if(!e.b()){var f=e.c().Dga(),g=xh().jj;Sma(a,f,"minimum",g,c)}}else f=f.c(),Uma(a,f,c);f=Dd(b,xh().ij);f.b()?e.b()||(e=e.c().Ega(),f=xh().ij,Sma(a,e,"maximum",f,c)):(e=f.c(),Vma(a,e,c))}else Tma(a,b,c);else e=Dd(b,xh().sn),e.b()||(e=e.c(),Iha(),f=xh().sn,g=e.t.t.u(),(new A).d(vh(c,Gha(0,"format",f,Mca(g),e.t.E)))),Tma(a,b,c);e=Dd(b,xh().Vx);e.b()||(e=e.c(),(new A).d(vh(c,Ih(new Jh,"exclusiveMinimum",e,w()))));e=
Dd(b,xh().Ux);e.b()||(e=e.c(),(new A).d(vh(c,Ih(new Jh,"exclusiveMaximum",e,w()))));b=Dd(b,xh().nv);b.b()||(b=b.c(),(new A).d(vh(c,Ih(new Jh,"multipleOf",b,(new A).d(Qw(Rw(),a.mI()))))))}function Sw(){this.Q=this.kf=this.Le=this.U=this.o=this.ra=null}Sw.prototype=new r;Sw.prototype.constructor=Sw;function Zma(){}Zma.prototype=Sw.prototype;
Sw.prototype.Ua=function(){var a=this.Q.cda().OS,b=H(Wg(),G()),c=this.ra.ca();if(a){a=Dd(c,Pg().gd);a.b()||(a=a.c(),(new A).d(vh(b,Ih(new Jh,"title",a,w()))));a=Dd(c,Pg().fb);a.b()||(a=a.c(),(new A).d(vh(b,Ih(new Jh,"description",a,w()))));a=Dd(c,Pg().vh);if(x(a)){var e=a.i,a=Tw(new Uw,B(this.ra.ca(),Pg().vh),this.o,!1,pc(Os(),G()),this.Q.Si()),e=jq(Cq(),e.t.E,n(Fd)),f=O().Wa;vh(b,Vw(new Ww,"default",a,f,e))}else if(w()===a)a=Dd(c,Pg().Jj),a.b()||(a=a.c(),(new A).d(vh(b,Ih(new Jh,"default",a,w()))));
else throw(new v).d(a);a=Dd(c,th().bh);a.b()||(a=a.c(),(new A).d(vh(b,Xw(new Yw,"externalDocs",a.t.t,this.o,this.Q))))}a=Dd(c,Pg().Kg);a.b()||(a=a.c(),(new A).d(vh(b,$ma(a.t,this.o,this.Q))));a=Dd(c,th().wn);a.b()||(a=a.c(),(new A).d(vh(b,(new Zw).DE("xml",a,this.o,this.Q))));a=Zb(this.ra.ha(),n(ana));x(a)&&(a=a.i,null!==a&&(a=a.og,e=Yc(),f=C().Gb,e=Rb(new Sb,e,D(new F,f,"nullable"),Tb(new Ub,Vb().Gb,"nullable","This field can accept a null value",G())),f=Nh(new Oh,!0,(new N).a()),M(),a=bna(Sia(),
a),a=(new N).a().Wb(a),vh(b,Ih(new Jh,"nullable",Rh(new Sh,e,Ph(new Qh,f,a)),w()))));Er(b,Mw(this.ra,this.o,this.Q).Ua());Er(b,cna(this.ra,this.o,this.Q).Ua());c=Dd(c,$w());c.b()||(c=c.c(),(new A).d(vh(b,ax(this.Q.of.L_(),c,this.o,this.U))));Wa().Ia(B(this.ra.ca(),Pg().Th)).qa()&&B(this.ra.ca(),Pg().Th).Fa()&&vh(b,(new dna).yE(this.ra,this.o,this.U,this.Le,this.kf,this.Q));Wa().Ia(B(this.ra.ca(),Pg().Vh)).qa()&&B(this.ra.ca(),Pg().Vh).Fa()&&vh(b,(new ena).yE(this.ra,this.o,this.U,this.Le,this.kf,
this.Q));Wa().Ia(B(this.ra.ca(),Pg().Xh)).qa()&&B(this.ra.ca(),Pg().Xh).Fa()&&vh(b,(new fna).yE(this.ra,this.o,this.U,this.Le,this.kf,this.Q));Wa().Ia(B(this.ra.ca(),Pg().ki)).qa()&&vh(b,(new gna).yE(this.ra,this.o,this.U,this.Le,this.kf,this.Q));return b};Sw.prototype.yE=function(a,b,c,e,f,g){this.ra=a;this.o=b;this.U=c;this.Le=e;this.kf=f;this.Q=g;return this};function bx(){this.m=this.UJ=null;this.ma=!1;this.l=null}bx.prototype=new r;bx.prototype.constructor=bx;function hna(){}hna.prototype=bx.prototype;
bx.prototype.R$=function(){if(!this.ma){var a=(new A).d(this.xa.k);this.UJ=t(new u,function(a,c){return function(e){return ina(jna(),c,e,a.m)}}(this,a));this.ma=!0}return this.UJ};bx.prototype.AT=function(){return this.ma?this.UJ:this.R$()};
bx.prototype.ZV=function(){var a=(new K).Y(this.eb),b=this.l,c=Pg().gd;Bh(a,"title",Ch(Dh(b,c,this.m),this.xa));a=(new K).Y(this.eb);b=this.l;c=Pg().fb;Bh(a,"description",Ch(Dh(b,c,this.m),this.xa));a=yc((new K).Y(this.eb),"default");if(!a.b()&&(a=a.c(),fda(this.xa,a),b=cx(dx(a.i,this.xa.k,!1,!1,!1,this.m)).xl,!b.b())){var b=b.c(),c=this.xa,e=Pg().vh,a=Ke(M(),a);Fh(c,e,b,a)}a=(new K).Y(this.eb);b=this.l;c=Pg().Kg;Bh(a,"enum",ex(Ch(Dh(b,c,this.m),this.xa),this.AT()));a=(new K).Y(this.eb);b=this.l;
c=th().bh;Bh(a,"externalDocs",ex(Ch(Dh(b,c,this.m),this.xa),t(new u,function(a){return function(b){return kna(lna(),b,a.m)}}(this))));a=(new K).Y(this.eb);b=this.l;c=th().wn;b=Ch(Dh(b,c,this.m),this.xa);c=B(this.xa.ca(),Pg().$).G;c=c.b()?null:c.c();Bh(a,"xml",ex(b,t(new u,function(a,b){return function(c){mna||(mna=(new fx).a());return nna(ona(new gx,b,c,a.m))}}(this,c))));a=(new K).Y(this.eb);b=Hv((new Cf).e("facets"));a=yc(a,b);a.b()||(b=a.c(),a=this.l,b=b.i,c=Pc(),pna(new hx,a,L(b,c,this.m),t(new u,
function(a){return function(b){return qna(a.xa,b)}}(this)),pc(fc().db,G()),(rna(this.l),!1)).fh());a=yc((new K).Y(this.eb),"type");a.b()||(b=a.c(),a=this.xa.ha(),tf(),b=b.Da.ga,a.Wb((new ix).Ui(zf(0,Af(Bf(),b.vf,b.Ef,b.ag,b.fg)))));yc((new K).Y(this.eb),"anyOf").qa()&&(new sna).IK(this.l,this.eb,this.xa).Pc();yc((new K).Y(this.eb),"allOf").qa()&&(new tna).IK(this.l,this.eb,this.xa).Pc();yc((new K).Y(this.eb),"oneOf").qa()&&(new una).IK(this.l,this.eb,this.xa).Pc();yc((new K).Y(this.eb),"not").qa()&&
(new vna).IK(this.l,this.eb,this.xa).Pc();jx(new kx,this.xa,this.eb,G(),this.m).Pc();a=yc((new K).Y(this.eb),"id");a.b()||(b=a.c(),a=this.xa.ha(),b=b.i,c=zc(),a.Wb((new lx).e(L(b,c,this.m).ya)));return this.xa};bx.prototype.n6a=function(a,b){this.m=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};function mx(){this.EX=this.zR=this.Q=this.U=this.qj=this.o=this.ra=null}mx.prototype=new r;mx.prototype.constructor=mx;function wna(){}wna.prototype=mx.prototype;
mx.prototype.tU=function(a,b,c,e,f){this.ra=a;this.o=b;this.qj=c;this.U=e;this.Q=f;this.zR=w();this.EX=w();return this};
function xna(a,b,c){var e=a.EX;if(x(e))return e.i;b=yna(a,b,c);a:{z();c=(new A).d(b);if(null!==c.i&&0===c.i.Ge(1)&&(c=c.i.jb(0),Fq(c))){Zf();b=(new $f).d(c);break a}if(b.Ng(t(new u,function(){return function(a){return Eq(a)}}(a))))Zf(),c=new zna,e=z(),b=b.$b(c,e.s),b=(new ag).d(b);else throw Lb(Mb(),(new Nb).e("IllegalTypeDeclarations found: "+b));}a.EX=(new A).d(b);return a.EX.c()}
function yna(a,b,c){var e=a.zR;if(x(e))return e.i;a.zR=(new A).d(a.o.Cb(nx(new ox,a.ra,a.o,a.qj,a.U,b,c,!1,a.Q).Ua()));return a.zR.c()}function px(){this.Q=this.o=this.U=this.Gf=null}px.prototype=new r;px.prototype.constructor=px;function Ana(){}Ana.prototype=px.prototype;
px.prototype.Ua=function(){var a=H(Wg(),G()),b=this.Gf.g,c=Dd(b,vi().Nj);if(!c.b())if(c=c.c(),"Api Key"===c.t.t.u()){var c=jq(Cq(),c.t.E,n(Fd)),e=O().Wa;vh(a,Bv(new Cv,"type","x-apiKey",e,c))}else vh(a,Gh(Hh(),"type",c,w(),this.Q));c=Dd(b,vi().gd);c.b()||(c=c.c(),(new A).d(vh(a,Gh(Hh(),"displayName",c,w(),this.Q))));c=Dd(b,vi().fb);c.b()||(c=c.c(),(new A).d(vh(a,Gh(Hh(),"description",c,w(),this.Q))));vh(a,this.nza().nu("describedBy",this.Gf,this.o,this.U));b=Dd(b,vi().li);b.b()||(b=b.c(),(new A).d(vh(a,
(new Bna).XG(b,this.o,this.Q))));return a};px.prototype.sBa=function(a,b,c,e){this.Gf=a;this.U=b;this.o=c;this.Q=e;return this};function qx(){this.Q=this.U=this.o=this.ra=null;this.XA=!1;this.yF=null}qx.prototype=new r;qx.prototype.constructor=qx;function Cna(){}Cna.prototype=qx.prototype;qx.prototype.gC=function(a,b,c,e){this.ra=a;this.o=b;this.U=c;this.Q=e;this.XA=!1;this.yF=O().Wa;return this};
qx.prototype.Ua=function(){var a=H(Wg(),G()),b=this.ra.ca(),c=Dd(b,Pg().gd);c.b()||(c=c.c(),(new A).d(vh(a,Gh(Hh(),"displayName",c,w(),this.Q))));c=Dd(b,Pg().fb);c.b()||(c=c.c(),(new A).d(vh(a,Gh(Hh(),"description",c,w(),this.Q))));c=Dd(b,Pg().vh);if(x(c)){var c=c.i,e=B(this.ra.ca(),Pg().vh),f=this.o,g=pc(Os(),G()),e=Tw(new Uw,e,f,!1,g,this.Q.jc),c=jq(Cq(),c.t.E,n(Fd)),f=O().Wa;vh(a,Vw(new Ww,"default",e,f,c))}else if(w()===c)c=Dd(b,Pg().Jj),c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,"default",c,w()))));
else throw(new v).d(c);c=Dd(b,Pg().Kg);c.b()||(c=c.c(),(new A).d(vh(a,$ma(c.t,this.o,this.Q))));c=Dd(b,th().bh);c.b()||(c=c.c(),(new A).d(vh(a,Xw(new Yw,Kh((new Cf).e("externalDocs")),c.t.t,this.o,this.Q))));c=Dd(b,th().wn);c.b()||(c=c.c(),(new A).d(vh(a,(new Zw).DE("xml",c,this.o,this.Q))));c=Dd(b,$w());c.b()||(c=c.c(),(new A).d(vh(a,ax(this.Q.of.L_(),c,this.o,this.U))));Er(a,Mw(this.ra,this.o,this.Q).Ua());Er(a,cna(this.ra,this.o,this.Q).Ua());b=Dd(b,Pg().ld);if(b.b()){if(b=this.bD(),!b.b())if(b=
b.c(),b=rla(b,this.ra),x(b))b=b.i,this.XA=!0,vh(a,b);else if(w()===b)this.XA=!1;else throw(new v).d(b);}else a:{if(b=b.c(),c=b.t.t.Tb,e=t(new u,function(){return function(a){return a}}(this)),f=z(),c=c.ka(e,f.s),c=hd(c,new Dna),x(c)&&(c=c.i,null!==c)){this.XA=!0;Er(a,(new rx).QO(c,this.o,this.U,this.Q).Ua());break a}this.XA=!0;vh(a,(new Ena).GK(b,this.o,this.U,this.Q))}Wa().Ia(B(this.ra.ca(),Pg().Th)).qa()&&B(this.ra.ca(),Pg().Th).Fa()&&vh(a,(new Fna).gC(this.ra,this.o,this.U,this.Q));Wa().Ia(B(this.ra.ca(),
Pg().Vh)).qa()&&B(this.ra.ca(),Pg().Vh).Fa()&&vh(a,(new Gna).gC(this.ra,this.o,this.U,this.Q));Wa().Ia(B(this.ra.ca(),Pg().Xh)).qa()&&B(this.ra.ca(),Pg().Xh).Fa()&&vh(a,(new Hna).gC(this.ra,this.o,this.U,this.Q));Wa().Ia(B(this.ra.ca(),Pg().ki)).qa()&&vh(a,(new Ina).gC(this.ra,this.o,this.U,this.Q));return a};function sx(){}sx.prototype=new r;sx.prototype.constructor=sx;sx.prototype.a=function(){return this};
sx.prototype.$classData=q({DWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeDetection$",{DWa:1,f:1});var Jna=void 0;function tx(){this.l=null}tx.prototype=new r;tx.prototype.constructor=tx;
function Kna(a,b,c){if(G().h(b))return w();if(ft(b)){var e=b.Aj,f=b.ve;if(G().h(f))return(new A).d(e)}Di();for(e=(new $g).a();!b.b();){var g=f=b.fa(),h=Gg();!1!==!(null!==g&&g===h)&&vh(e,f);b=b.sa()}e=e.wa();if(e.b())return(new A).d(Gg());b=Ps(e);f=0;for(g=e;!g.b();){var h=g.fa(),k=b.c();h===k&&(f=1+f|0);g=g.sa()}return f!==Fp(e)?(e=a.l.Gq,b=Bo().bN,a=a.l.Rd,f=w(),Cc(e,b,a,f,"Can't inherit from more than one class type",c.ga),(new A).d(Gg())):b}
tx.prototype.qba=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};tx.prototype.$classData=q({EWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeDetector$InheritsTypeDetecter$",{EWa:1,f:1});function ux(){this.l=this.lY=null}ux.prototype=new r;ux.prototype.constructor=ux;ux.prototype.qba=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};
function Lna(a,b,c,e,f){a:for(;;){var g=b;if(yb(b).qa()){var g=!1,h=null,k=yb(b);if(x(k)&&(g=!0,h=k,k=h.i,os(k))){var l=b;if(null===k?null===l:k.h(l))return(new A).d(Xv())}if(g&&(g=h.i,os(g))){b=g;continue a}a=rh().bJ;b=b.k;e=w();Cc(f,a,b,e,"Found reference to domain element different of Shape when shape was expected",c.ga);return w()}if(Ti(g))return(new A).d(Eg());if(di(g)){f=g;hma();vx();c=B(f.ea,xh().af).G;c=fma(0,Mna(0,c.b()?null:c.c()),Li(f).G);if(null===c)throw(new v).d(c);f=c.pa();c=c.Ba();
return(new A).d(fi(ei(),f,c,(ei(),xg()),(ei(),!1)))}if(Ni(g)){b=g;if(e){if(null===a.lY&&null===a.lY){g=e=a;h=new Nna;if(null===g)throw Lb(Mb(),null);h.l=g;e.lY=h}e=Ona;a=a.lY.l;g=new Pna;g.fX=b;g.m=f;if(null===a)throw Lb(Mb(),null);g.l=a;g.na=ju().na;f=e(g,c)}else f=(new A).d(Yv());return f}return bi(g)?(new A).d(xg()):Vh(g)?(new A).d(wg()):Oi(g)?(new A).d(wg()):Xh(g)?(new A).d(Xv()):w()}}
function Qna(a,b){var c=(new wx).IE(a.l.Gq.Km.dh,t(new u,function(){return function(a){return re(ta(),a,"Shape")&&"schemaShape"!==a}}(a))),e=H(z(),G()),e=(new Qd).d(e);b.Bb.X(t(new u,function(a,b,c){return function(e){e=b.xb(t(new u,function(a,b){return function(a){a=a.Ba();var c=b.Da.u();return a.Ja(c)}}(a,e)));if(Tc(e))if(c.ta.b())e=Pd(e),c.ta=xx(e);else{var l=Pd(e);e=Zd(new ee,Yd());for(l=l.ah.Tq();l.Qa();){var p=l.Sa();!1!==c.ta.Ja(p)&&fe(e,p)}c.ta=e.gb.ce()}}}(a,c,e)));return e.ta.Ri()}
ux.prototype.$classData=q({FWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeDetector$ShapeClassTypeDefMatcher$",{FWa:1,f:1});function yx(){}yx.prototype=new r;yx.prototype.constructor=yx;yx.prototype.a=function(){return this};
function Rna(a,b){var c=b.ea.Pb,e=zx(),e=Va(e),f=Ce().s;return 2>=De(c,e,f).lb()?(b=b.ea.Pb,c=zx(),c=Va(c),e=Ce().s,b=De(b,c,e),c=t(new u,function(){return function(a){return a.xc}}(a)),e=pf(),b.ka(c,e.s).Ng(t(new u,function(){return function(a){var b=xh().$;if(null===a?null===b:a.h(b))return!0;b=xh().af;return null===a?null===b:a.h(b)}}(a)))):!1}
function Sna(a,b){var c=(new ck).a();try{var e=B(b.ea,lo().Ee),f=t(new u,function(a,b){return function(a){if(di(a)&&Rna(Tna(),a)){hma();vx();var c=B(a.ea,xh().af).G;return fma(0,Mna(0,c.b()?null:c.c()),Li(a).G).pa()}if(null!==a&&yb(a).qa()&&B(a.ca(),Db().wd).G.qa())return a=B(a.ca(),Db().wd).G,a.b()?null:a.c();if(Ti(a)){var c=a.ea.Pb,e=zx(),e=Va(e),f=Ce().s;if(De(c,e,f).b())return"nil"}if(Vh(a)&&(c=a.ea.Pb,e=zx(),e=Va(e),f=Ce().s,De(c,e,f).b()))return"array";if(bi(a)&&(c=a.ea.Pb,e=zx(),e=Va(e),f=
Ce().s,De(c,e,f).b()))return"object";if(Xh(a)&&(a=a.ca().Pb,c=zx(),c=Va(c),e=Ce().s,De(a,c,e).b()))return"any";throw(new Ax).N(b,w());}}(a,c)),g=z(),h=e.ka(f,g.s);return(new A).d(h.ng(" | "))}catch(k){if(Bx(k)&&k.Da===c)return k.Qt();throw k;}}yx.prototype.$classData=q({MWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlUnionEmitterHelper$",{MWa:1,f:1});var Una=void 0;function Tna(){Una||(Una=(new yx).a());return Una}function Cx(){}Cx.prototype=new r;Cx.prototype.constructor=Cx;
Cx.prototype.a=function(){return this};function Vna(a,b,c){M();var e=(new N).a(),e=(new Ig).P((new Q).a(),e);a=Dx(Ex(new Fx,e,"uses",a,b.U,c),b.ga);return(new P).N(a,Zb(e.E,n(nd)))}Cx.prototype.$classData=q({OWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.ReferencesParserAnnotations$",{OWa:1,f:1});var Wna=void 0;function Gx(){}Gx.prototype=new r;Gx.prototype.constructor=Gx;Gx.prototype.a=function(){return this};
function Yca(a,b,c,e){var f=e.Pg();if(zja(f))return a=b.Da,f=zc(),Xna(new Hx,b,L(a,f,e).ya,b.i,c,Ix(Jx(),e));if(sja(f))return(new Kx).YO(b.i,t(new u,function(a,b,c,e){return function(a){var f=b.Da,g=zc(),f=L(f,g,c).ya,g=Ke(M(),b);cc(a,g);return e.zf(a,f)}}(a,b,e,c)),Lx(Jx(),e));a=rh().UZ;var f="Unsupported vendor "+f+" in security scheme parsers",g=w();Cc(e,a,"",g,f,b.ga);a=b.Da;f=zc();return Xna(new Hx,b,L(a,f,e).ya,b.i,c,Ix(Jx(),e))}
Gx.prototype.$classData=q({QWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.SecuritySchemeParser$",{QWa:1,f:1});var Yna=void 0;function Zca(){Yna||(Yna=(new Gx).a());return Yna}function Mx(){}Mx.prototype=new r;Mx.prototype.constructor=Mx;Mx.prototype.a=function(){return this};Mx.prototype.$classData=q({XWa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.LicenseParser$",{XWa:1,f:1});var Zna=void 0;function $na(){Zna||(Zna=(new Mx).a())}
function Nx(){this.Lc=this.Se=null;this.HBa=this.dV=!1;this.zr=this.CL=null}Nx.prototype=new r;Nx.prototype.constructor=Nx;function aoa(a,b,c){a.Se=b;a.Lc=c;c=(new Ox).wp(b).Mk();if(c.b())c=!1;else{c=c.c();if(yb(c).qa())var e=H(z(),G()),e=Yh(Px(c,e).ha(),n(boa));else e=!1;c=e?!0:Yh(c.E,n(boa))}a.dV=c;a.HBa=b.MBa()&&!a.dV;a.CL=(new Qx).wp(b).Mk();if(Ep(b))b=b.i;else if(Hp(b))b=b.i;else throw(new v).d(b);a.zr=b;return a}
Nx.prototype.$classData=q({aXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasParameter",{aXa:1,f:1});function Rx(){}Rx.prototype=new r;Rx.prototype.constructor=Rx;Rx.prototype.a=function(){return this};function coa(a,b,c){return aoa(new Nx,(Zf(),(new ag).d(b)),c)}function Sx(a,b,c){return aoa(new Nx,(Zf(),(new $f).d(b)),c)}Rx.prototype.$classData=q({bXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasParameter$",{bXa:1,f:1});var doa=void 0;
function Tx(){doa||(doa=(new Rx).a());return doa}function Ux(){this.Q=this.o=null}Ux.prototype=new r;Ux.prototype.constructor=Ux;function eoa(){}eoa.prototype=Ux.prototype;Ux.prototype.PO=function(a,b,c,e,f){this.o=c;this.Q=f;return this};Ux.prototype.XN=function(a,b,c){b.Fa()&&vh(c,(new Vx).eH(a,b,this.o,this.Q))};function Wx(){}Wx.prototype=new r;Wx.prototype.constructor=Wx;Wx.prototype.a=function(){return this};
Wx.prototype.$classData=q({iXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OrganizationParser$",{iXa:1,f:1});var foa=void 0;function goa(){foa||(foa=(new Wx).a())}function Xx(){}Xx.prototype=new r;Xx.prototype.constructor=Xx;Xx.prototype.a=function(){return this};function Yx(a,b){if(a=!(yb(b).qa()&&Yh(b.ha(),n(Zt))))a=B(b.ca(),Pg().ld),z(),a=(new A).d(a),null!==a.i&&0===a.i.Ge(1)?(a=a.i.jb(0),a=yb(a).qa()||Yh(a.ha(),n(Zt))):a=!1,a=!a;a&&(a=(new Zx).a(),ac(b,a))}
Xx.prototype.$classData=q({nXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.PayloadParserHelper$",{nXa:1,f:1});var hoa=void 0;function $x(){hoa||(hoa=(new Xx).a());return hoa}function ay(){}ay.prototype=new r;ay.prototype.constructor=ay;ay.prototype.a=function(){return this};ay.prototype.EL=function(a,b,c,e){a=ioa().EL(a,b,c,e);b=Ej().df;return Eb(a,b,"header")};ay.prototype.$classData=q({yXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlHeaderParser$",{yXa:1,f:1});var joa=void 0;
function koa(){joa||(joa=(new ay).a());return joa}function by(){}by.prototype=new r;by.prototype.constructor=by;by.prototype.a=function(){return this};by.prototype.EL=function(a,b,c,e){var f=Pc();c=L(c,f,e).Bb.fa();return ax(e.Oh.Q1(),c,a,b).BC()};by.prototype.$classData=q({CXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlParameterParser$",{CXa:1,f:1});var loa=void 0;function ioa(){loa||(loa=(new by).a());return loa}function cy(){this.m=this.Nb=this.zb=null}cy.prototype=new r;
cy.prototype.constructor=cy;function moa(){}moa.prototype=cy.prototype;cy.prototype.$m=function(a,b,c,e){this.zb=a;this.Nb=b;this.m=e;return this};cy.prototype.Sv=function(){var a=this.Nb;R();var b=this.zb.Da,c=this.m,e=qe(),a=a.R((new A).d(L(b,e,c))),b=Ke(M(),this.zb);return cc(a,b)};function dy(){}dy.prototype=new r;dy.prototype.constructor=dy;dy.prototype.a=function(){return this};dy.prototype.EL=function(a,b,c,e){a=ioa().EL(a,b,c,e);b=Ej().df;return Eb(a,b,"query")};
dy.prototype.$classData=q({GXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlQueryParameterParser$",{GXa:1,f:1});var noa=void 0;function ey(){}ey.prototype=new r;ey.prototype.constructor=ey;ey.prototype.a=function(){return this};function ooa(a,b,c,e){return(new fy).Iba(b,c,Lx(Jx(),e))}ey.prototype.$classData=q({QXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.TagsParser$",{QXa:1,f:1});var poa=void 0;function qoa(){poa||(poa=(new ey).a());return poa}function gy(){}
gy.prototype=new r;gy.prototype.constructor=gy;gy.prototype.a=function(){return this};function roa(a){"OAuth 2.0"===a?(soa||(soa=(new hy).a()),a=soa):"Basic Authentication"===a?(toa||(toa=(new iy).a()),a=toa):"Api Key"===a?(uoa||(uoa=(new jy).a()),a=uoa):"http"===a?(voa||(voa=(new ky).a()),a=voa):"openIdConnect"===a?(woa||(woa=(new ly).a()),a=woa):a=(new my).bP(a,!1);return a}gy.prototype.$classData=q({bYa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSecuritySchemeTypeMapping$",{bYa:1,f:1});
var xoa=void 0;function ny(){}ny.prototype=new r;ny.prototype.constructor=ny;ny.prototype.a=function(){return this};function yoa(a){return a&&a.$classData&&a.$classData.v.OY?a:kma(mma(),a)}function Ix(a,b){return(new oy).Vk(b.Xg,b.yf,b,(new A).d(yoa(b.yl())),(new A).d(b.Xi),b.tp(),py().On)}function zoa(a,b){return(new qy).xy(b.Xg,b.yf,b,(new A).d(Aoa(0,b.yl())),(new A).d(b.Xi),b.tp())}
function Aoa(a,b){b&&b.$classData&&b.$classData.v.tna||(jma||(jma=(new fw).a()),a=Boa(new ry,pc(fc().db,G()),b.iG(),b.CG(),b.bC()),a.CA=b.CA,a.mA=b.mA,a.to=b.to,a.dA=b.dA,a.ro=b.ro,a.Es=b.Es,a.Gs=b.Gs,a.wo=b.wo,a.Fp=b.Fp,a.Cp=b.Cp,b=a);return b}function Lx(a,b){a=b.Pg();return Sp().bs===a?(new sy).xy(b.Xg,b.yf,b,(new A).d(Aoa(0,b.yl())),(new A).d(b.Xi),b.tp()):(new uy).xy(b.Xg,b.yf,b,(new A).d(Aoa(0,b.yl())),(new A).d(b.Xi),b.tp())}
function Coa(a,b,c){return(new qy).xy(a,b,c,(new A).d(Aoa(0,c.yl())),(new A).d(c.Xi),c.tp())}ny.prototype.$classData=q({lYa:0},!1,"amf.plugins.document.webapi.parser.spec.package$",{lYa:1,f:1});var Doa=void 0;function Jx(){Doa||(Doa=(new ny).a());return Doa}function Dy(){this.fea=this.lda=this.Xca=this.U_=null}Dy.prototype=new r;Dy.prototype.constructor=Dy;Dy.prototype.a=function(){this.U_="#/definitions/";this.Xca="#/components/";this.lda="#/parameters/";this.fea="#/responses/";return this};
function Eoa(a,b,c){c=c.Pg();var e=Sp().bs;if(c===e)return Ey(a,b,"responses");b=(new ph).e(b);return Zo(b,a.fea)}function Foa(a,b){var c=a.U_;return 0<=(b.length|0)&&b.substring(0,c.length|0)===c?b:""+a.U_+b}function Goa(a,b,c){return Fy(c.of)?Gy(a,b,"parameters"):""+a.lda+b}function Gy(a,b,c){return""+(""+a.Xca+c+"/")+b}function Ey(a,b,c){b=(new ph).e(b);return Zo(b,""+a.Xca+c+"/")}Dy.prototype.$classData=q({mYa:0},!1,"amf.plugins.document.webapi.parser.spec.package$OasDefinitions$",{mYa:1,f:1});
var Hoa=void 0;function Hy(){Hoa||(Hoa=(new Dy).a());return Hoa}function Iy(){this.Q=this.mg=null}Iy.prototype=new r;Iy.prototype.constructor=Iy;function Ioa(a,b,c){a.mg=b;a.Q=c;return a}
Iy.prototype.cK=function(){var a=Jy(Ky(),mc(),this.mg.ze().ha()),b=this.mg;if(Fm(b)){var c,e=new Joa;e.Ev=b;e.o=a;if(null===this)throw Lb(Mb(),null);e.l=this;e.Fg=Lla();c=e}else if(ym(b)){e=new Koa;e.js=b;e.o=a;if(null===this)throw Lb(Mb(),null);e.l=this;e.Fg=Mla();c=e}else if(Hm(b)){e=new Loa;e.oe=b;e.o=a;if(null===this)throw Lb(Mb(),null);e.l=this;e.Fg=Sv();c=e}else if(Jm(b)){var e=this.Q.jc,f=new Moa;f.mg=b;f.o=a;f.jc=e;if(null===this)throw Lb(Mb(),null);f.l=this;f.Fg=Nla();c=f}else if(Nm(b)){e=
this.Q.jc;f=new Noa;f.mg=b;f.o=a;f.jc=e;if(null===this)throw Lb(Mb(),null);f.l=this;f.Fg=Ola();c=f}else{if(wm(b)){e=new Ooa;e.zi=b;e.o=a;if(null===this)throw Lb(Mb(),null);e.l=this;e.Fg=Pla()}else{if(!Lm(b))throw(new Gt).e("Unsupported fragment type: "+this.mg);e=new Poa;e.Gf=b;e.o=a;if(null===this)throw Lb(Mb(),null);e.l=this;e.Fg=Qla()}c=e}b=Dd(this.mg.ca(),Ap().Ud);if(b.b())var g=w();else b=b.c(),g=(new A).d(Ih(new Jh,"usage",b,w()));var b=H(z(),(new J).aa([Qoa(this.mg,a)])),e=Ly(),f=(new My).e(e.Dh),
h=(new ph).e(e.xh);Tc(h)&&Ny(f,e.xh);Ny(f,c.Fg.jd);var h=f.r,k=f.da,l=(new pq).e(k),p=Cq();c=c.gK(Xp(this.mg.ca(),Nl().qc));var g=g.wa(),y=z();c=c.la(g,y.s);g=z();iq(p,a.Cb(c.la(b,g.s)),l);T(h,lq(R(),rq(sq(),l.r,k),O().ua));return(new Oy).mc(Py(vq(),e.Dh),f.r)};Iy.prototype.$classData=q({sYa:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentEmitter",{sYa:1,f:1});function Qy(){this.Q=null}Qy.prototype=new r;Qy.prototype.constructor=Qy;function Roa(){}Roa.prototype=Qy.prototype;
Qy.prototype.OO=function(a,b,c){this.Q=c;return this};
function Soa(a){var b=["title","content"];if(0===(b.length|0))b=Yd();else{for(var c=Zd(new ee,Yd()),e=0,f=b.length|0;e<f;)fe(c,b[e]),e=1+e|0;b=c.gb}b=(new P).N("userDocumentation",b);c=["displayName","description","headers","body"];if(0===(c.length|0))c=Yd();else{for(var e=Zd(new ee,Yd()),f=0,g=c.length|0;f<g;)fe(e,c[f]),f=1+f|0;c=e.gb}c=(new P).N("response",c);e=["type","displayName","description","describedBy","settings"];if(0===(e.length|0))e=Yd();else{for(var f=Zd(new ee,Yd()),g=0,h=e.length|
0;g<h;)fe(f,e[g]),g=1+g|0;e=f.gb}b=[b,c,(new P).N("securitySchema",e)];c=Ry(new Sy,Xs());e=0;for(f=b.length|0;e<f;)Ty(c,b[e]),e=1+e|0;a.eya(c.gb)}function Uy(){this.qb=null;this.wK=0;this.Lc=null;this.G_=!1;this.gG=this.Ou=this.m=null;this.aW=!1;this.ga=this.bL=this.pga=this.Y1=null}Uy.prototype=new r;Uy.prototype.constructor=Uy;
function Toa(a){var b=!1,c=null,e=a.Ou;if(w()===e){M();b=(new N).a();b=(new ti).P((new Q).a(),b);a.qb.R(b);var c=a.m,e=rh().QF,f=b.k,g=w(),h=a.ga;c.Hc(e.k,f,g,"Syntax error, cannot create empty Union",a.bL,xc().tb,h);return b}if(x(e)&&(b=!0,c=e,f=c.i,Ni(f)))return f;if(b)return b=c.i,M(),c=(new N).a(),c=(new ti).P((new Q).a(),c),a.qb.R(c),a=lo().Ee,b=H(z(),(new J).aa([b])),Vg(c,a,b);throw(new v).d(e);}
function Uoa(a,b){if(Vh(b)){var c=!1,e=null,f=a.Ou;if(w()===f)return b;if(x(f)&&(c=!0,e=f,a=e.i,Vh(a))||c&&(a=e.i,Oi(a)))return b=Vy(b),c=Wh().wf,ff(b,c,a);if(c)return Wy(b,e.i);throw(new v).d(f);}if(Oi(b)){c=!1;e=null;a=a.Ou;if(w()===a)return b;if(x(a)&&(c=!0,e=a,f=e.i,Vh(f))||c&&(f=e.i,Oi(f)))return c=Wh().wf,ff(b,c,f);if(c)return c=e.i,Wy(b.lI(),c);throw(new v).d(a);}throw(new v).d(b);}
function Xy(a,b,c,e,f){var g=new Uy;g.qb=a;g.wK=b;g.Lc=c;g.G_=e;g.m=f;g.Ou=w();g.gG="";g.aW=!1;if(c.b())a=w();else{a=c.c();if(Kr(a))a=a.i.we();else if(Ir(a))a=a.we();else if(!rs(a))throw(new v).d(a);a=(new A).d(a)}g.Y1=a;a=g.Y1;a:{if(x(a)&&(a=a.i,null!==a)){tf();b=a.ga;b=(new A).d((new uf).Ui(zf(0,Af(Bf(),b.vf,b.Ef,b.ag,b.fg))));c=(new Cf).e(a.ga.Of).Nu();a=b;b=c;break a}a=w();b=w()}g.pga=(new P).N(a,b);g.bL=g.pga.pa();g.ga=g.pga.Ba();return g}
function Yy(a,b){if(b.b())return Voa(a),(new Zy).dP(a.Ou,H(z(),G()));var c=b.fa(),c=null===c?0:c.t;switch(c){case 41:return Voa(a),(new Zy).dP(a.Ou,b.sa());case 40:return Voa(a),b=Yy(Xy(a.qb,1+a.wK|0,a.Lc,a.G_,a.m),b.sa()),Woa(a,b.Jt),Yy(a,b.KP);case 124:if(""===a.gG&&a.Ou.b()){var c=a.m,e=rh().QF,f=w(),g=a.ga;c.Hc(e.k,"",f,"Syntax error, cannot parse Union with empty values",a.bL,xc().tb,g)}Voa(a);a.Ou=(new A).d(Toa(a));b=Yy(Xy(a.qb,1+a.wK|0,a.Lc,a.G_,a.m),b.sa());Woa(a,b.Jt);return Yy(a,b.KP);case 91:return Voa(a),
a.aW&&(c=a.m,e=rh().QF,f=w(),g=a.ga,c.Hc(e.k,"",f,"Syntax error, duplicated [",a.bL,xc().tb,g)),a.aW=!0,Yy(a,b.sa());case 93:return a.aW||(c=a.m,e=rh().QF,f=w(),g=a.ga,c.Hc(e.k,"",f,"Syntax error, Not matching ]",a.bL,xc().tb,g)),a.aW=!1,a.Ou=(new A).d(Xoa(a)),Yy(a,b.sa());default:return a.gG=""+a.gG+Dc(c),Yy(a,b.sa())}}
function Woa(a,b){var c=!1,e=null;if(w()!==b){if(x(b)){var c=!0,e=b,f=e.i;if(Vh(f)&&$y(a,f)){c=!1;e=a.Ou;if(w()===e){a.Ou=(new A).d(f);return}if(x(e)&&(c=!0,b=e.i,Ni(b))){a=B(b.ea,lo().Ee);c=z();a=a.hg(f,c.s);f=lo().Ee;qf(b,f,a);return}if(c){a.Ou=(new A).d(Uoa(a,f));return}throw(new v).d(e);}}if(c)if(f=e.i,b=a.Ou,w()===b)a.Ou=(new A).d(f);else{if(x(b)&&(b=b.i,Ni(b))){if(Ni(f)){a=B(b.ea,lo().Ee);f=B(f.ea,lo().Ee);c=z();a=a.la(f,c.s);gs(b.ea,lo().Ee);vj(b.ea,lo().Ee,gr(new hr,a,(new N).a()),(M(),(new N).a()));
return}a=B(b.ea,lo().Ee);f=H(z(),(new J).aa([f]));c=z();a=a.la(f,c.s);gs(b.ea,lo().Ee);vj(b.ea,lo().Ee,gr(new hr,a,(new N).a()),(M(),(new N).a()));return}b=a.m;var c=rh().QF,e=f.k,g=w(),h=a.ga;b.Hc(c.k,e,g,"Error parsing type expression, cannot accept type "+f,a.bL,xc().tb,h);(new A).d(f)}else throw(new v).d(b);}}
Uy.prototype.EP=function(a){var b=Dt(ta(),$v(ta(),a,"\\s*","")),b=Yy(this,(new az).dx(b)).Jt;if(x(b)){b=b.i;if(Vh(b)?$y(this,b):Oi(b)&&$y(this,b)){var c=this.m,e=rh().QF,f=b.k,g=w(),h=this.ga;c.Hc(e.k,f,g,"Syntax error, generating empty array",this.bL,xc().tb,h)}Yoa(this,b);b.ha().Wb((new bz).e(a));a=this.Lc;a.b()||(a=a.c(),b.ha().Ur(Ke(M(),a)));return(new A).d(b)}if(w()===b)return w();throw(new v).d(b);};
function Xoa(a){M();var b=(new N).a(),b=(new ri).P((new Q).a(),b);a.qb.R(b);var c=!1,e=null,f=a.Ou;if(w()===f)return b;if(x(f)&&(c=!0,e=f,a=e.i,Vh(a))||c&&(a=e.i,Oi(a)))return M(),c=(new N).a(),c=(new Pi).P((new Q).a(),c),b=Te(c,b.k),c=Wh().wf,ff(b,c,a);if(c)return Wy(b,e.i);throw(new v).d(f);}
function Voa(a){if(""!==a.gG){var b=a.gG;if("nil"===b)M(),b=(new N).a(),b=(new ii).P((new Q).a(),b);else if("any"===b){M();var b=(new N).a(),c=(new Q).a(),b=(new oi).P(c,b)}else if("file"===b)M(),b=(new N).a(),b=(new ui).P((new Q).a(),b);else if("object"===b)M(),b=(new N).a(),b=(new si).P((new Q).a(),b);else if("array"===b)M(),b=(new N).a(),b=(new ri).P((new Q).a(),b);else if("string"===b||"integer"===b||"number"===b||"boolean"===b||"datetime"===b||"datetime-only"===b||"time-only"===b||"date-only"===
b){M();var b=(new N).a(),b=(new pi).P((new Q).a(),b),c=Vca(qi(),a.gG),e=xh().af,b=Eb(b,e,c)}else c=cz(a.m.yl(),b,Pr(),w()),x(c)?b=c.i.gk(b,(M(),(new N).a())):(Zoa(),c=a.Y1,c=Ke(M(),c.b()?R().yd:c.c()),e=w(),c=Vi(new Wi,(new Q).a(),c,b,e,w(),!0),M(),e=(new N).a(),c=Ue(c,b,e),hc(c,a.m),a.qb.R(c),a.G_||(e=a.Y1,e=e.b()?R().yd:e.c(),dz(c,b,e,a.m)),b=c);Wa().Ia(b.k).b()&&(c=B(b.ca(),Pg().$).G,x(c)&&"schema"===c.i?(c="schema-"+a.wK,M(),e=(new N).a(),Ue(b,c,e),a.qb.R(b),M(),c=(new N).a(),Ue(b,"schema",c)):
w()===c?(c="scalar-expression-"+a.wK,M(),e=(new N).a(),Ue(b,c,e),a.qb.R(b),c=B(b.ca(),Pg().$),gs(c.l,c.xc)):a.qb.R(b),a.wK=1+a.wK|0);a.gG="";Woa(a,(new A).d(b))}}
function $y(a,b){var c=!1,e=null,f=!1,g=null;if(Vh(b)){c=!0;e=b;if(yb(e).qa())var h=e,k=H(z(),G()),h=$oa(Px(h,k));else h=!1;if(h)return f=e,g=H(z(),G()),$y(a,Px(f,g))}return c&&B(e.ea,Pg().ld).Fa()?!1:c?Wa().Ia(B(e.ea,Wh().wf)).b():Oi(b)&&(f=!0,g=b,yb(g).qa()?(b=g,c=H(z(),G()),b=$oa(Px(b,c))):b=!1,b)?(f=g,g=H(z(),G()),$y(a,Px(f,g))):f?$y(a,B(g.ea,Wh().wf)):!1}
function Yoa(a,b){if(Ni(b)){var c=(new Bu).a();B(b.ea,lo().Ee).X(t(new u,function(a,b,c){return function(a){if(Vh(a)){var e=B(a.ea,Pg().$).G;if(w()===e){b.ac=1+b.ac|0;e="array_"+b.ac;M();var l=(new N).a();Ue(a,e,l)}return apa(a,c.k,H(z(),G()))}}}(a,c,b)))}}Uy.prototype.$classData=q({yYa:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlTypeExpressionParser",{yYa:1,f:1});function ez(){}ez.prototype=new r;ez.prototype.constructor=ez;ez.prototype.a=function(){return this};
ez.prototype.$classData=q({NYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.ValidationResolutionPipeline$",{NYa:1,f:1});var bpa=void 0;function fz(){this.l=this.Se=null}fz.prototype=new r;fz.prototype.constructor=fz;function cpa(){}cpa.prototype=fz.prototype;fz.prototype.RAa=function(a,b){this.Se=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};
function dpa(a){var b=Zb(a.Se.ha(),n(Lt));b.b()?b=w():(b=b.c(),b=(new A).d(b.Lc));b=b.wa();b=hd(b,new epa);b=x(b)?b.i.i:a.zya();return(new gz).Di(a.r2,fpa(a,b))}function fpa(a,b){var c=b.pb().nb;return O().ua===c?(c=Pc(),b=L(b,c,a.l.ub).Bb,a=t(new u,function(a){return function(b){var c=fpa(a,b.i);return(new gz).Di(b.Da.u(),c)}}(a)),c=uv(),b.ka(a,c.gc)):O().Nc===c?(c=Jc(),b=L(b,c,a.l.ub),a=t(new u,function(a){return function(b){return fpa(a,b)}}(a)),c=z(),b.md(a,c.s)):G()}
function hz(){this.Hl=null;this.lo=!1;this.m=this.ub=null}hz.prototype=new r;hz.prototype.constructor=hz;function gpa(){}gpa.prototype=hz.prototype;function hpa(a){if(os(a)){a=a.ha();var b=a.jf;Wg();for(var c=Yg(new Zg,(new $g).a()),b=b.Lb;!b.b();){var e=b.fa();!1!==!(e&&e.$classData&&e.$classData.v.g7)&&ah(c,e);b=b.sa()}a.jf=c.gb}}
function ipa(a,b,c,e,f,g,h){e=e.Tb;var k=t(new u,function(){return function(a){return a.t}}(a)),l=z();e=e.ka(k,l.s).pg();f.Tb.X(t(new u,function(a,b,c,e,f,g){return function(h){h=h.t;if(!b.Ja(h))return h=Nh(new Oh,h,(new N).a()),a.lo&&h.E.Wb((new iz).Sq(c,e)),nh(f,g,h)}}(a,e,g,h,b,c)))}
function jpa(a,b,c,e,f,g,h,k){var l=lh();null!==e&&e===l?l=!0:(l=bf(),l=null!==e&&e===l);l?l=!0:(l=ofa(),l=null!==e&&e===l);l?l=!0:(l=rn(),l=null!==e&&e===l);var p=Os(),y=f.Tb,I=t(new u,function(a,b){return function(a){var c=Dd(a.ca(),b.oa);c.b()?a=w():(c=c.c().t.t.t,a=(new A).d((new P).N(c,a)));return a.wa()}}(a,e)),E=z(),p=pc(p,y.md(I,E.s));f=f.Tb.Ib(t(new u,function(a,b){return function(a){if(Yl(a))return Dd(a.ca(),b.oa).b();throw(new v).d(a);}}(a,e)));f.b()?f=w():(f=f.c(),f=(new A).d(f));f=(new Qd).d(f);
g.Tb.X(t(new u,function(a,b,c,e,f,g,h,k,l){return function(p){if(Yl(p)){var y=(new jz).a(),I=Dd(p.ca(),b.oa);if(x(I))return I=I.i.t.t.t,p=kpa(a,e,f,c.Ta(I),p,g,h,k,y),c.Ih((new P).N(I,p));l.ta=(new A).d(kpa(a,e,f,l.ta,p,g,h,k,y))}else throw(new v).d(p);}}(a,e,p,b,l,h,k,c,f)));a=p.Rr().ce();e=f.ta.wa();g=z();a=a.la(e,g.s);qf(b,c,a)}
function lpa(a,b,c){c=Zb(c.ha(),n(nd));c=(c.b()?(new kz).Qj(H(fc().Sg,G())):c.c()).Xb;var e=Zb(b.ha(),n(nd)),e=(e.b()?(new kz).Qj(H(fc().Sg,G())):e.c()).Xb,f=t(new u,function(){return function(a){return a.pa()}}(a)),g=Pf(),g=Qf(g),f=De(c,f,g),g=t(new u,function(){return function(a){return a.pa()}}(a)),h=Pf(),h=Qf(h);f.p1(De(e,g,h)).X(t(new u,function(a,b,c,e){return function(f){var g=b.Ib(t(new u,function(a,b){return function(a){a=a.pa();return null===a?null===b:pa(a,b)}}(a,f)));g.b()?g=w():(g=g.c(),
g=(new A).d(g.Ba().pa()));var h=g.c(),g=c.Ib(t(new u,function(a,b){return function(a){a=a.pa();return null===a?null===b:pa(a,b)}}(a,f)));g.b()?g=w():(g=g.c(),g=(new A).d(g.Ba().pa()));var da=g.c();if(h!==da){var g=a.Zw(),sa=Bc().nh;f="Conflicting urls for alias '"+f+"' and libraries: '"+h+"' - '"+da+"'";var h=jd(e),h=h.b()?e.k:h.c(),da=w(),ua=w(),Ia=w();g.Hc(sa.k,f,da,h,ua,xc().tb,Ia)}}}(a,c,e,b)));a=c.hX(e);if(Tc(a)){c=b.ha();f=c.jf;Wg();e=Yg(new Zg,(new $g).a());for(f=f.Lb;!f.b();)g=f.fa(),!1!==
!lz(g)&&ah(e,g),f=f.sa();c.jf=e.gb;b.ha().Wb((new kz).Qj(a))}}hz.prototype.Iv=function(a,b,c){this.Hl=a;this.lo=b;this.ub=c;if(Gk().h(a)){a=G();z();Oj();b=(new $g).a();b=(new yp).co("",b.wa(),(new Np).a(),Op(),w());c=(new A).d(c);var e=w(),f=w(),g=py().On;c=(new mz).Vk("",a,b,e,f,c,g)}else a=G(),z(),Oj(),b=(new $g).a(),b=(new yp).co("",b.wa(),(new Np).a(),Op(),w()),c=(new A).d(c),e=w(),f=w(),g=py().On,c=(new oy).Vk("",a,b,e,f,c,g);this.m=c;return this};
function mpa(a,b,c,e){e.$K.Ja(c.k)||(e.$K.Om(c.k),c.ca().Pb.X(t(new u,function(a,b,c,e){return function(l){if(null!==l){var p=l.pa();l=l.Ba();var y=p.ja;a:if(Xc().h(y))npa(b,c,p,l.t);else{if(fs(y)&&(p=(new A).d(y.Se),nz(p.i))){p=l.t.Tb;l=(new opa).yba(a);y=z();p.$b(l,y.s).X(t(new u,function(a,b,c){return function(e){mpa(a,b,e,c)}}(a,b,e)));break a}nz(y)&&mpa(a,b,l.t,e)}}else throw(new v).d(l);}}(a,b,c,e))))}
function ppa(a,b,c,e,f){var g=Xp(b.ca(),Nl().qc),h=t(new u,function(){return function(a){return a.k}}(a)),k=z(),g=g.ka(h,k.s),h=H(z(),(new J).aa([b.k,c.k])),k=z(),g=g.la(h,k.s);c=Xp(c.ca(),Nl().qc);h=(new qpa).yba(a);k=z();h=c.$b(h,k.s);c=Xp(b.ca(),Nl().qc);g=h.xb(t(new u,function(a,b){return function(a){return!b.Ja(a.k)}}(a,g)));a=t(new u,function(a,b,c){return function(a){a.ha().Wb((new iz).Sq(b,c));return a}}(a,e,f));e=z();a=g.ka(a,e.s);e=z();a=c.la(a,e.s);e=Nl().qc;Vg(b,e,a)}
function rpa(a,b,c,e,f,g){var h=b.k,k=c.k,l=G(),h=oz(new pz,h,oz(new pz,k,l));spa(g,h)&&(Yi(g.$K,h),hpa(b),h=c.ca().Pb,k=zx(),k=Va(k),l=Ce().s,De(h,k,l).xb(t(new u,function(a,b){return function(a){a=a.xc;var c=Lc().Hb;(null===c?null===a:c.h(a))?c=!0:(c=Ap().Ud,c=null===c?null===a:c.h(a));c?a=!1:(c=qz().Jc,a=!((null===c?null===a:c.h(a))&&b&&b.$classData&&b.$classData.v.DY));return a}}(a,b))).X(t(new u,function(a,b,c,e,f,g){return function(h){if(null!==h){var k=h.xc,l=h.t,Pa=!1,Za=!1,db=null,Qb=Dd(b.ca(),
k);if(w()===Qb&&(Pa=!0,a.OP.Q9(k)))return l=tpa(a,b.k,l.t,c),a.lo&&l.ha().Wb((new iz).Sq(e,f)),ff(b,k,l);if(Pa)var bc=xh().af,bc=(null===k?null===bc:k.h(bc))?Yh(l.E,n(upa)):!1;else bc=!1;if(bc)return;if(Pa){h=l.t;Kb(h)?k=h.k:(k=k.t,k=U(W(),k));h=a.Zw();Pa=Bc().nh;Za="Property '"+k+"' of type '"+rz(ka(l.t))+"' is not allowed to be overriden or added in overlays";sz(h,Pa,k,Za,l.E);return}if(x(Qb)&&(Za=!0,db=Qb,Pa=db.i,a.OP.Rxa(k))){Za=k.ja;if(tz(Za))return a.lo&&l.t.ha().Wb((new iz).Sq(e,f)),ff(b,k,
l.t);if(fs(Za)){h=(new A).d(Za.Se).i;Pa=Pa.t.t;l=l.t;tz(h)?ipa(a,b,k,Pa,l,e,f):h&&h.$classData&&h.$classData.v.Kj?jpa(a,b,k,h,Pa,l,e,f):nz(h)?a.eGa(b,k,l,e,f):(l=a.Zw(),k=Bc().nh,Pa=w(),h="Cannot merge '"+h+"': not a KeyField nor a Scalar",Za=Zb(b.ha(),n(Fd)),db=b.Yb(),l.Hc(k.k,e,Pa,h,Za,xc().tb,db));return}if(lm()===Za){h=Pa.t.t;l=l.t;a:{if(mm(h)&&mm(l)&&(Pa=ka(h),Za=ka(l),Pa===Za)){vpa(wpa(),h,l);break a}a.lo&&l.ha().Wb((new iz).Sq(e,f));ff(b,k,l)}return}if(db=uz(Za))Qb=Pa.t.t,db=h.t.t,os(Qb)&&
os(db)?(Qb=ka(Qb),db=ka(db),db=Qb!==db):db=!1;if(db)return l=h.t.t,M(),h=(new iz).Sq(g.k,f),h=(new N).a().Wb(h),Fh(b,k,l,h);if(nz(Za))return rpa(a,Pa.t.t,h.t.t,e,f,c);h=a.Zw();Pa=Bc().nh;Za=Gc(k.t);db=w();k="Cannot merge '"+k.ja+"':not a (Scalar|Array|Object)";Qb=Zb(l.t.ha(),n(Fd));l=Zb(l.t.ha(),n($b));l.b()?l=w():(l=l.c(),l=(new A).d(l.ga));h.Hc(Pa.k,Za,db,k,Qb,xc().tb,l);return}if(Za){Pa=db.i;Pa.t.t.u()!==h.t.t.u()&&(h=a.Zw(),Za=Bc().nh,k=Gc(k.t),Pa="Property '"+Gc(Pa.xc.t)+"' in '"+rz(ka(b))+"' is not allowed to be overriden or added in overlays",
sz(h,Za,k,Pa,l.E));return}throw(new v).d(Qb);}throw(new v).d(h);}}(a,b,g,e,f,c))));return b}function kpa(a,b,c,e,f,g,h,k,l){if(x(e)){var p=e.i;if(!c)return rpa(a,p,f.Qb(b.k,f.Ub()),g,h,l)}return w()!==e||a.OP.Q9(k)?tpa(a,b.k,f,l):(a=a.Zw(),b=Bc().nh,c=f.k,e="Property of key '"+f.k+"' of class '"+rz(ka(f))+"' is not allowed to be overriden or added in overlays",sz(a,b,c,e,f.ha()),f)}
function xpa(a,b){B(b.ze().g,Jn().kr).X(t(new u,function(a){return function(b){a.lo||gs(b.g,Lc().wi());B(b.g,Tm().xk).X(t(new u,function(a){return function(b){return a.lo?void 0:gs(b.g,Lc().wi())}}(a)))}}(a)));return b}
function ypa(a,b,c,e,f,g){var h=nma(pma(),Xp(b.ca(),Nl().Mc),(new A).d(a.m)),k=(new jz).a();Xp(c.ca(),Nl().Mc).X(t(new u,function(a,b,c,e,f,g){return function(h){var k=b.Baa(h);if(x(k))return rpa(a,k.i,h,c,e,f);if(w()===k)return h=tpa(a,g.k+"#/declarations",h,f),a.lo&&h.ha().Wb((new iz).Sq(c,e)),Ai(b,h);throw(new v).d(k);}}(a,h,f,g,k,b)));c=h.qu();f=(new jz).a();c.X(t(new u,function(a,b,c){return function(e){mpa(a,b,e,c)}}(a,e,f)));a=Ug().Mc;Vg(b,a,c)}
function tpa(a,b,c,e){if(!e.$K.Ja(b)){e.$K.Om(b);if(es(c)){var f=c.Tb;a=t(new u,function(a,b,c){return function(e){return tpa(a,b,e,c)}}(a,b,e));b=z();return gr(new hr,f.ka(a,b.s),c.E)}if(mm(c))return qr(rr(),b,c);Yl(c)&&(c.Qb(b,c.Ub()),c.ca().Pb.X(t(new u,function(a,b,c){return function(e){if(null!==e)e=e.Ba(),tpa(a,b.k,e.t,c);else throw(new v).d(e);}}(a,c,e))))}return c}
function zpa(a,b,c){if(vz(c)){var e=Xp(c.ca(),qz().Jc),e=Apa(c,e);if(x(e))return c=e.i,vh(b,c),zpa(a,b,c);if(w()===e&&Wa().Ia(Xp(c.ca(),qz().Jc)).qa()){a=a.Zw();b=Bo().$Y;var e=(new A).d(Xp(c.ca(),qz().Jc)),f="BaseUnit '"+Xp(c.ca(),qz().Jc)+"' not found in references.",g=c.k,h=Zb(c.ha(),n(Fd))}else a=a.Zw(),b=Bo().$Y,e=(new A).d(Xp(c.ca(),qz().Jc)),f="Missing extend property for model '"+c.k+"'.",g=c.k,h=Zb(c.ha(),n(Fd));c=jd(c);a.Hc(b.k,g,e,f,h,xc().tb,c);return G()}return Bpa(b).wa()}
function Cpa(a,b,c){Wg();var e=[c];if(0===(e.length|0))e=Yg(new Zg,(new $g).a()).gb;else{for(var f=Yg(new Zg,(new $g).a()),g=0,h=e.length|0;g<h;)ah(f,e[g]),g=1+g|0;e=f.gb}e=zpa(a,e,c);if(ft(e)&&(c=e.Aj,g=e.ve,Ol(c))){e=Dpa(new wz,a.Hl,a.lo,!0,H(xz(),G()),a.m);h=(new yz).vt(a.lo,a.m);h.He(c);for(var f=c.ze(),k=g;!k.b();){var l=k.fa();if(vz(l)){h.He(l);var p=Epa(a,c.k+"#",l.k+"#");ypa(a,c,l,p,l.k,zz(Az(),l.k,b));lpa(a,c,l);ppa(a,c,l,l.k,zz(Az(),l.k,b))}else throw(new v).d(l);k=k.sa()}for(e.He(c);!g.b();){h=
g.fa();if(vz(h))k=Epa(a,c.k+"#",h.k+"#"),rpa(a,f,Xp(h.ca(),Nl().ob),h.k,zz(Az(),h.k,b),(new jz).a()),mpa(a,k,f,(new jz).a()),e.He(c);else throw(new v).d(h);g=g.sa()}return xpa(a,c)}return b}function Fpa(){}Fpa.prototype=new r;Fpa.prototype.constructor=Fpa;function Gpa(){}Gpa.prototype=Fpa.prototype;function Bz(){this.ZCa=this.XGa=null}Bz.prototype=new r;Bz.prototype.constructor=Bz;Bz.prototype.a=function(){Hpa=this;this.XGa=(new Cz).a();this.ZCa=(new Dz).a();return this};
Bz.prototype.$classData=q({vZa:0},!1,"amf.plugins.document.webapi.resolution.stages.MergingRestrictions$",{vZa:1,f:1});var Hpa=void 0;function Ipa(){Hpa||(Hpa=(new Bz).a());return Hpa}function Ez(){this.W=this.bs=this.tJ=this.Kz=this.wJ=this.xJ=this.sv=this.hr=null}Ez.prototype=new r;Ez.prototype.constructor=Ez;
Ez.prototype.a=function(){Jpa=this;var a=z(),b=[Fz(Gz(),yt().ba,"doc:DomainElement","core:name","sh:datatype","xsd:string","Title and names must be string","Names must be string"),Fz(Gz(),yt().ba,"doc:DomainElement","core:name","sh:maxCount","1","Titles and names must be single values","Names and titles must be single values"),Fz(Gz(),yt().ba,"doc:DomainElement","core:description","sh:datatype","xsd:string","Descriptions must be strings","Description must be strings"),Fz(Gz(),yt().ba,"doc:DomainElement",
"core:description","sh:maxCount","1","Descriptions must be single values","Descriptions must be single values"),Fz(Gz(),yt().ba,"apiContract:WebAPI","core:name","sh:minCount","1","API title is mandatory","Info object 'title' must be a single value"),Fz(Gz(),yt().ba,"apiContract:WebAPI","apiContract:scheme","sh:datatype","xsd:string","API BaseUri scheme information must be a string","Swagger object 'schemes' must be a string"),Fz(Gz(),yt().ba,"apiContract:WebAPI","apiContract:scheme","sh:datatype",
"xsd:string","API BaseUri scheme information must be a string","Swagger object 'schemes' must be a string"),Fz(Gz(),yt().ba,"apiContract:WebAPI","apiContract:accepts","sh:datatype","xsd:string","Default media types must contain strings","Field 'consumes' must contain strings"),Fz(Gz(),yt().ba,"apiContract:WebAPI","apiContract:accepts","sh:pattern","^(([-\\w]+|[*]{1})\\/([-+.\\w]+|[*]{1}))(\\s*;\\s*\\w+\x3d[-+\\w.]+)*$","Default media types must be valid","Field 'produces' must be valid"),Fz(Gz(),
yt().ba,"apiContract:WebAPI","core:mediaType","sh:datatype","xsd:string","Default media types must be string","Field 'produces' must contain strings"),Fz(Gz(),yt().ba,"apiContract:WebAPI","core:version","sh:datatype","xsd:string","API version must be a string","Info object 'version' must be string"),Fz(Gz(),yt().ba,"apiContract:WebAPI","core:version","sh:maxCount","1","API version must be a single value","Info object 'version' must be a single value"),Fz(Gz(),yt().ba,"apiContract:WebAPI","core:termsOfService",
"sh:datatype","xsd:string","API terms of service must be a string","Info object 'termsOfService' must be string"),Fz(Gz(),yt().ba,"apiContract:WebAPI","core:termsOfService","sh:maxCount","1","API terms of service must be a single value","Info object 'termsOfService' must a single value"),Fz(Gz(),yt().ba,"apiContract:WebAPI","core:provider","sh:maxCount","1","API provider must be a single value","Info object 'contact' must be a single value"),Fz(Gz(),yt().ba,"core:Organization","core:url","sh:maxCount",
"1","API provider URL must be a single value","Contact object 'url' must be a single value"),Fz(Gz(),yt().ba,"core:Organization","core:email","sh:datatype","xsd:string","API provider email must be a string","Contact object 'email' must be a string"),Fz(Gz(),yt().ba,"core:Organization","core:email","sh:maxCount","1","API provider must be a single value","Contact object 'email' must be a single value"),Fz(Gz(),yt().ba,"apiContract:EndPoint","apiContract:path","sh:maxCount","1","Resource path must be unique",
"PathItem object must have a single path"),Fz(Gz(),yt().ba,"apiContract:EndPoint","apiContract:path","sh:datatype","xsd:string","Resource path must be a string","PathItem object path must be a string"),Fz(Gz(),yt().ba,"apiContract:EndPoint","apiContract:path","sh:pattern","^/","Resource path must start with a '/'","PathItem path must start with a '/'"),Fz(Gz(),yt().ba,"apiContract:Operation","apiContract:method","sh:in","get,put,post,delete,options,head,patch,connect,trace","Unknown method type",
"Unknown Operation method"),Fz(Gz(),yt().ba,"apiContract:Operation","apiContract:method","sh:maxCount","1","Methods can only have a single type","Operations can only have a single type"),Fz(Gz(),yt().ba,"apiContract:Operation","apiContract:guiSummary","sh:datatype","xsd:string","Methods' summary information must be a string","Methods' summary information must be a string"),Fz(Gz(),yt().ba,"apiContract:Operation","apiContract:guiSummary","sh:maxCount","1","Methods can only have a single value for the summary information",
"Methods can only have a single value for summary information"),Fz(Gz(),yt().ba,"apiContract:Operation","doc:deprecated","sh:datatype","xsd:boolean","Methods' deprecated must be a boolean","Methods' deprecated must be a boolean"),Fz(Gz(),yt().ba,"apiContract:Operation","doc:deprecated","sh:maxCount","1","Methods' deprecated must be a single value","Methods' deprecated must be a single value"),Fz(Gz(),yt().ba,"apiContract:Operation","apiContract:scheme","sh:datatype","xsd:string","Protocols must contain strings",
"Schemes must contain strings"),Fz(Gz(),yt().ba,"apiContract:Operation","apiContract:accepts","sh:datatype","xsd:string","Method default media types consumed must be strings","Operation object 'consumes' must be strings"),Fz(Gz(),yt().ba,"apiContract:Response","apiContract:statusCode","sh:datatype","xsd:string","Status code for a Response must be a string","Status code for a Response object must be a string"),Fz(Gz(),yt().ba,"apiContract:Parameter","core:name","sh:minCount","1","Parameter information must have a name",
"Parameter object must have a name property"),Fz(Gz(),yt().ba,"apiContract:Parameter","apiContract:required","sh:datatype","xsd:boolean","Information about required parameters must be a boolean value","Required property of a Parameter object must be boolean"),Fz(Gz(),yt().ba,"apiContract:Parameter","apiContract:required","sh:maxCount","1","Only one value is allowed for required information of a parameter","Required property of a Parameter object must be a single value"),Fz(Gz(),yt().ba,"apiContract:Parameter",
"apiContract:binding","sh:datatype","xsd:string","Information about the binding of the parameter is mandatory","in' property of a Parameter object must be a string"),Fz(Gz(),yt().ba,"apiContract:Parameter","apiContract:binding","sh:minCount","1","Binding information for a parameter is mandatory","in' property of a Parameter object is mandatory"),Fz(Gz(),yt().ba,"apiContract:Parameter","apiContract:binding","sh:maxCount","1","Only one binding is allowed per parameter","in' property of a Parameter object must be a single value"),
Fz(Gz(),yt().ba,"apiContract:Parameter","apiContract:binding","sh:in","query,path,header,uri","Binding information for a parameter with an invalid value","in' property of a parameter with an invalid value"),Fz(Gz(),yt().ba,"apiContract:Parameter","raml-shapes:schema","sh:maxCount","1","Only one RAML type can be specified","Only one Schema object can be specified"),Fz(Gz(),yt().ba,"apiContract:Parameter","raml-shapes:schema","sh:minCount","1","RAML Type information is mandatory for parameters","Schema/type information required for Parameter objects"),
Fz(Gz(),yt().ba,"apiContract:Payload","core:mediaType","sh:datatype","xsd:string","Method default media types must be strings","Operation object 'produces' must be strings"),Fz(Gz(),yt().ba,"apiContract:Payload","core:mediaType","sh:maxCount","1","Only one media type per payload is allowed","Only one media type per payload is allowed"),Fz(Gz(),yt().ba,"apiContract:Payload","raml-shapes:schema","sh:maxCount","1","Only one RAML type can be specified","Only one Schema object can be specified"),Fz(Gz(),
yt().ba,"raml-shapes:Shape","raml-shapes:xmlSerialization","sh:maxCount","1","XML serialisation object must be a single value","XML Object for the 'xml' property of a Schema object must be  single value"),Hz(Gz(),"amf-parser:xml-wrapped-scalar","XML property 'wrapped' must be false for scalar types",mc().ba,"raml-shapes:ScalarShape","sh:xmlSerialization","PropertyShape","sh:path","raml-shapes:xmlWrappedScalar","0","XML property 'wrapped' must be false for scalar types","XML property 'wrapped' must be false for scalar types"),
Hz(Gz(),"amf-parser:xml-non-scalar-attribute","XML property 'attribute' must be false for non-scalar types",mc().ba,"raml-shapes:Shape","sh:xmlSerialization","PropertyShape","sh:path","raml-shapes:xmlNonScalarAttribute","0","XML property 'attribute' must be false for non-scalar types","XML property 'attribute' must be false for non-scalar types"),Fz(Gz(),yt().ba,"raml-shapes:Shape","sh:in","sh:maxCount","1","Property 'enum'  must have a single list of values","Property 'enum' for a Schema object must have a single list of values"),
Fz(Gz(),yt().ba,"raml-shapes:XMLSerializer","raml-shapes:xmlAtribute","sh:datatype","xsd:boolean","XML attribute serialisation info must be boolean","XML attribute serialisation info must be boolean"),Fz(Gz(),yt().ba,"raml-shapes:XMLSerializer","raml-shapes:xmlAtribute","sh:maxCount","1","property 'attribute' of the XML serialisation mut be a single value","property 'attribute' of the XML serialisation mut be a single value"),Fz(Gz(),yt().ba,"raml-shapes:XMLSerializer","raml-shapes:xmlWrapped","sh:datatype",
"xsd:boolean","XML wraping serialisation info must be boolean","XML wrapping serialisation info must be boolean"),Fz(Gz(),yt().ba,"raml-shapes:XMLSerializer","raml-shapes:xmlWrapped","sh:maxCount","1","property 'wrapped' of the XML serialisation mut be a single value","property 'wrapped' of the XML serialisation mut be a single value"),Fz(Gz(),yt().ba,"raml-shapes:XMLSerializer","raml-shapes:xmlName","sh:datatype","xsd:string","XML name serialisation info must be string","XML name serialisation info must be string"),
Fz(Gz(),yt().ba,"raml-shapes:XMLSerializer","raml-shapes:xmlName","sh:maxCount","1","property 'name' of the XML serialisation mut be a single value","property 'name' of the XML serialisation mut be a single value"),Fz(Gz(),yt().ba,"raml-shapes:XMLSerializer","raml-shapes:xmlNamespace","sh:datatype","xsd:string","XML namespace serialisation info must be string","XML namespace serialisation info must be string"),Fz(Gz(),yt().ba,"raml-shapes:XMLSerializer","raml-shapes:xmlNamespace","sh:maxCount","1",
"property 'namespace' of the XML serialisation mut be a single value","property 'namespace' of the XML serialisation mut be a single value"),Fz(Gz(),yt().ba,"raml-shapes:XMLSerializer","raml-shapes:xmlPrefix","sh:datatype","xsd:string","XML prefix serialisation info must be string","XML prefix serialisation info must be string"),Fz(Gz(),yt().ba,"raml-shapes:XMLSerializer","raml-shapes:xmlPrefix","sh:maxCount","1","Property 'prefix' of the XML serialisation mut be a single value","Property 'prefix' of the XML serialisation mut be a single value"),
Fz(Gz(),yt().ba,"raml-shapes:Shape","sh:defaultValue","sh:maxCount","1","Default value for a RAML type must be unique","Default property for an Schema object must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ObjectShape","raml-shapes:minProperties","sh:minInclusive","0","minProperties for a RAML Object type cannot be negative","minProperties for a Schema object cannot be negative"),Fz(Gz(),yt().ba,"raml-shapes:ObjectShape","raml-shapes:minProperties","sh:datatype","xsd:integer","minProperties for a RAML Object type must be an integer",
"minProperties for a Schema object must be an integer"),Fz(Gz(),yt().ba,"raml-shapes:ObjectShape","raml-shapes:minProperties","sh:maxCount","1","minProperties for a RAML Object type must be unique","minProperties for a Schema object must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ObjectShape","raml-shapes:maxProperties","sh:minInclusive","0","maxProperties for a RAML Object type cannot be negative","maxProperties for a Schema object cannot be negative"),Fz(Gz(),yt().ba,"raml-shapes:ObjectShape","raml-shapes:maxProperties",
"sh:datatype","xsd:integer","maxProperties for a RAML Object type must be an integer","maxProperties for a Schema object must be an integer"),Fz(Gz(),yt().ba,"raml-shapes:ObjectShape","raml-shapes:maxProperties","sh:maxCount","1","maxProperties for a RAML Object type must be unique","maxProperties for a Schema object must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ObjectShape","sh:closed","sh:datatype","xsd:boolean","additionalProperties for a RAML Object type must be a boolean","additionalProperties for a Schema object must be a boolean"),
Fz(Gz(),yt().ba,"raml-shapes:ObjectShape","sh:closed","sh:maxCount","1","additionalProperties for a RAML Object must be unique","additionalProperties for a Schema object must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ObjectShape","raml-shapes:discriminator","sh:datatype","xsd:string","discriminator for RAML Object type must be a string value","discriminator for a Schema object must be a string value"),Fz(Gz(),yt().ba,"raml-shapes:ObjectShape","raml-shapes:discriminator","sh:maxCount","1","discriminator for RAML Object type must be unique",
"discriminator for a Schema object must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ObjectShape","raml-shapes:discriminatorValue","sh:datatype","xsd:string","x-discriminatorValue for RAML Object type must be a string value","discriminatorValue for a Schema object must be a string value"),Fz(Gz(),yt().ba,"raml-shapes:ObjectShape","raml-shapes:discriminatorValue","sh:maxCount","1","x-discriminatorValue for RAML Object type must be unique","discriminatorValue for a Schema object must be unique"),Fz(Gz(),
yt().ba,"raml-shapes:ObjectShape","raml-shapes:readOnly ","sh:datatype","xsd:boolean","(readOnly) for a RAML Object type must be a boolean","readOnly for a Schema object must be a boolean"),Fz(Gz(),yt().ba,"raml-shapes:ObjectShape","raml-shapes:readOnly ","sh:maxCount","1","(readOnly) for a RAML Object must be unique","readOnly for a Schema object must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ArrayShape","sh:minCount","sh:datatype","xsd:integer","minItems for a RAML Array type must be an integer",
"minItems of a Schema object of type 'array' must be an integer"),Fz(Gz(),yt().ba,"raml-shapes:ArrayShape","sh:minCount","sh:maxCount","1","minItems for a RAML Array type must be unique","minItems of a Schema object of type 'array' must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ArrayShape","sh:minCount","sh:minInclusive ","0","maxItems for a RAML Array type must be greater than 0","maxItems of a Schema object of type 'array' must be greater than 0"),Fz(Gz(),yt().ba,"raml-shapes:ArrayShape","sh:maxCount",
"sh:datatype","xsd:integer","maxItems for a RAML Array type must be an integer","maxItems of a Schema object of type 'array' must be an integer"),Fz(Gz(),yt().ba,"raml-shapes:ArrayShape","sh:maxCount","sh:maxCount","1","maxItems for a RAML Array type must be unique","maxItems of a Schema object of type 'array' must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ArrayShape","sh:minCount","sh:minInclusive","0","minItems for a RAML Array type must be greater than 0","minItems of a Schema object of type 'array' must be greater than 0"),
Fz(Gz(),yt().ba,"raml-shapes:ArrayShape","sh:maxCount","sh:minInclusive","0","maxItems for a RAML Array type must be greater than 0","maxItems of a Schema object of type 'array' must be greater than 0"),Fz(Gz(),yt().ba,"raml-shapes:ArrayShape","raml-shapes:uniqueItems","sh:datatype","xsd:boolean","uniqueItems for a RAML Array type must be a boolean","uniqueItems of a Schema object of type 'array' must be a boolean"),Fz(Gz(),yt().ba,"raml-shapes:ArrayShape","raml-shapes:uniqueItems","sh:maxCount",
"1","uniqueItems for a RAML Array type must be unique","uniqueItems of a Schema object of type 'array' must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:pattern","sh:datatype","xsd:string","pattern facet for a RAML scalar type must be a string","pattern for scalar Schema object of scalar type must be a string"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:pattern","sh:maxCount","1","pattern facet for a RAML scalar type must be unique","pattern for scalar Schema object of scalar type must be unique"),
Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:minLength","sh:datatype","xsd:integer","minLength facet for a RAML scalar type must be a integer","minLength for scalar Schema object of scalar type must be a integer"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:minLength","sh:maxCount","1","minLength facet for a RAML scalar type must be unique","minLength for scalar Schema object of scalar type must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:maxLength","sh:datatype","xsd:integer","maxLength facet for a RAML scalar type must be a integer",
"maxLength for scalar Schema object of scalar type must be a integer"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:maxLength","sh:maxCount","1","maxLength facet for a RAML scalar type must be unique","maxLength for scalar Schema object of scalar type must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:minInclusive","sh:datatype","xsd:double","minimum facet for a RAML scalar type must be a number","minimum for scalar Schema object of scalar type must be a integer"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape",
"sh:minInclusive","sh:maxCount","1","minimum facet for a RAML scalar type must be unique","minimum for scalar Schema object of scalar type must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:maxInclusive","sh:datatype","xsd:double","maximum facet for a RAML scalar type must be a number","maximum for scalar Schema object of scalar type must be a integer"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:maxInclusive","sh:maxCount","1","maximum facet for a RAML scalar type must be unique","maximum for scalar Schema object of scalar type must be unique"),
Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:minExclusive","sh:datatype","xsd:boolean","x-exclusiveMinimum facet for a RAML scalar type must be a boolean","exclusiveMinimum for scalar Schema object of scalar type must be a boolean"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:minExclusive","sh:maxCount","1","x-exclusiveMinimum facet for a RAML scalar type must be unique","exclusiveMinimum for scalar Schema object of scalar type must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:maxExclusive",
"sh:datatype","xsd:boolean","x-exclusiveMaximum facet for a RAML scalar type must be a boolean","exclusiveMaximum for scalar Schema object of scalar type must be a boolean"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:maxExclusive","sh:maxCount","1","x-exclusiveMaximum facet for a RAML scalar type must be unique","exclusiveMaximum for scalar Schema object of scalar type must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:minLength","sh:minInclusive","0","Min length facet should be greater or equal than 0",
"Min length facet should be greater or equal than 0"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:maxLength","sh:minInclusive","0","Max length facet should be greater or equal than 0","Max length facet should be greater or equal than 0"),Fz(Gz(),yt().ba,"raml-shapes:FileShape","sh:minLength","sh:minInclusive","0","Min length facet should be greater or equal than 0","Min length facet should be greater or equal than 0"),Fz(Gz(),yt().ba,"raml-shapes:FileShape","sh:maxLength","sh:minInclusive","0",
"Max length facet should be greater or equal than 0","Max length facet should be greater or equal than 0"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","raml-shapes:format","sh:datatype","xsd:string","format facet for a RAML scalar type must be a string","format for scalar Schema object of scalar type must be a string"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","raml-shapes:format","sh:maxCount","1","format facet for a RAML scalar type must be unique","format for scalar Schema object of scalar type must be unique"),
Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","raml-shapes:multipleOf","sh:datatype","xsd:double","multipleOf facet for a RAML scalar type must be a number","multipleOf for scalar Schema object of scalar type must be a number"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","raml-shapes:multipleOf","sh:maxCount","1","multipleOf facet for a RAML scalar type must be unique","multipleOf for scalar Schema object of scalar type must be unique"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","raml-shapes:multipleOf",
"sh:minExclusive","0","multipleOf facet for a RAML scalar type must be greater than 0","multipleOf for scalar Schema object of scalar type must be greater than 0"),Fz(Gz(),yt().ba,"raml-shapes:ScalarShape","sh:datatype","sh:minCount","1","type information for a RAML scalar is required","type information fo a Schema object of scalar type is required"),Fz(Gz(),yt().ba,"doc:DomainProperty","raml-shapes:schema","sh:maxCount","1","type must be a single value for a RAML annotationType","schema must be a single value for an extension type"),
Fz(Gz(),yt().ba,"apiContract:Tag","core:name","sh:minCount","1","Tag must have a name","Tag object must have a name property"),Fz(Gz(),yt().ba,"apiContract:Server","core:urlTemplate","sh:datatype","xsd:string","API baseUri host information must be a string","Swagger object 'host' and 'basePath' must be a string"),Fz(Gz(),yt().ba,"apiContract:Server","core:description","sh:datatype","xsd:string","Server 'description' property must be a string","Server 'description' property must be a string"),Fz(Gz(),
yt().ba,"apiContract:Server","core:urlTemplate","sh:minCount","1","Server must have an 'url' property","Server must have an 'url' propert"),Fz(Gz(),yt().ba,"security:SecurityScheme","security:type","sh:minCount","1","Security scheme type is mandatory","Security scheme type is mandatory"),Fz(Gz(),yt().ba,"security:SecurityScheme","security:type","sh:pattern","^OAuth\\s1.0|OAuth\\s2.0|Basic\\sAuthentication|Digest\\sAuthentication|Pass\\sThrough|Api\\sKey|http|openIdConnect|x-.+$","Security scheme type should be one of the supported ones",
"Security scheme type should be one of the supported ones"),Fz(Gz(),yt().ba,"security:SecurityScheme","security:type","sh:minCount","1","Type is mandatory in a Security Scheme Object","Type is mandatory in a Security Scheme Object"),Hz(Gz(),"amf-parser:strict-url-strinzgs","URLs in values mapped to core:url must be valid",yt().ba,"doc:DomainElement","core:url","NodeShape","sh:targetObjectsOf","sh:nodeKind","sh:IRI","URLs must be valid","URLs must be valid"),Hz(Gz(),"amf-parser:pattern-validation",
"Pattern is not valid",yt().ba,"raml-shapes:ScalarShape","sh:pattern","PropertyShape","sh:path","raml-shapes:patternValidation","0","Pattern is not valid","Pattern is not valid")];this.hr=H(a,(new J).aa(b));a=z();b=[Fz(Gz(),mc().ba,"apiContract:WebAPI","core:name","sh:minLength","1","Info object 'title' must not be empty","API name must not be an empty string"),Fz(Gz(),mc().ba,"core:CreativeWork","core:title","sh:minCount","1","API documentation title is mandatory","Documentation object 'x-title' is mandatory"),
Fz(Gz(),mc().ba,"core:CreativeWork","core:description","sh:minCount","1","API documentation content is mandatory","Documentation object 'description' is mandatory"),Fz(Gz(),mc().ba,"doc:DomainProperty","raml-shapes:schema","sh:minCount","1","type is mandatory for a RAML annotationType","schema is mandatory for an extension type"),Fz(Gz(),mc().ba,"security:Settings","security:authorizationGrant","sh:pattern","^authorization_code|password|client_credentials|implicit|(\\w+:(\\/?\\/?)[^\\s]+)$","Invalid authorization grant. The options are: authorization_code, password, client_credentials, implicit or any valid absolut URI",
"Invalid authorization grant. The options are: authorization_code, password, client_credentials, implicit or any valid absolut URI"),Hz(Gz(),"amf-parser:raml-root-schemes-values","Protocols property must be http or https",mc().ba,"apiContract:WebAPI","apiContract:scheme","PropertyShape","sh:path","sh:pattern","^(H|h)(T|t)(T|t)(P|p)(S|s)?$","Protocols must have a case insensitive value matching http or https","Swagger object 'schemes' property must have a case insensitive value matching http or https"),
Hz(Gz(),"amf-parser:raml-operation-schemes-values","Protocols property must be http or https",mc().ba,"apiContract:Operation","apiContract:scheme","PropertyShape","sh:path","sh:pattern","^(H|h)(T|t)(T|t)(P|p)(S|s)?$","Protocols must have a case insensitive value matching http or https","Swagger object 'schemes' property must have a case insensitive value matching http or https"),Hz(Gz(),"amf-parser:raml-root-schemes-non-empty-array","Protocols must be a non-empty array of case-insensitive strings with values 'http' and/or 'https'",
mc().ba,"apiContract:WebAPI","apiContract:scheme","PropertyShape","sh:path","raml-shapes:nonEmptyListOfProtocols","0","Protocols must be a non-empty array of case-insensitive strings with values 'http' and/or 'https'","Protocols must be a non-empty array of case-insensitive strings with values 'http' and/or 'https'"),Hz(Gz(),"amf-parser:raml-operation-schemes-non-empty-array","Protocols must be a non-empty array of case-insensitive strings with values 'http' and/or 'https'",mc().ba,"apiContract:Operation",
"apiContract:scheme","PropertyShape","sh:path","raml-shapes:nonEmptyListOfProtocols","0","Protocols must be a non-empty array of case-insensitive strings with values 'http' and/or 'https'","Protocols must be a non-empty array of case-insensitive strings with values 'http' and/or 'https'"),Hz(Gz(),"amf-parser:min-max-inclusive","Maximum must be greater than or equal to minimum",mc().ba,"raml-shapes:ScalarShape","sh:minInclusive","PropertyShape","sh:path","raml-shapes:minimumMaximumValidation","0",
"Maximum must be greater than or equal to minimum","Maximum must be greater than or equal to minimum"),Hz(Gz(),"amf-parser:min-max-items","MaxItems must be greater than or equal to minItems",mc().ba,"raml-shapes:ArrayShape","sh:minCount","PropertyShape","sh:path","raml-shapes:minMaxItemsValidation","0","MaxItems must be greater than or equal to minItems","MaxItems must be greater than or equal to minItems"),Hz(Gz(),"amf-parser:min-max-length","MaxLength must be greater than or equal to minLength",
mc().ba,"raml-shapes:ScalarShape","sh:minLength","PropertyShape","sh:path","raml-shapes:minMaxLengthValidation","0","MaxLength must be greater than or equal to minLength","MaxLength must be greater than or equal to minLength"),Hz(Gz(),"amf-parser:min-max-length","MaxLength must be greater than or equal to minLength",mc().ba,"raml-shapes:FileShape","sh:minLength","PropertyShape","sh:path","raml-shapes:minMaxLengthValidation","0","MaxLength must be greater than or equal to minLength","MaxLength must be greater than or equal to minLength"),
Hz(Gz(),"amf-parser:min-max-properties","MaxProperties must be greater than or equal to minProperties",mc().ba,"sh:NodeShape","raml-shapes:minProperties","PropertyShape","sh:path","raml-shapes:minMaxPropertiesValidation","0","MaxProperties must be greater than or equal to minProperties","MaxProperties must be greater than or equal to minProperties"),Fz(Gz(),mc().ba,"apiContract:Payload","core:mediaType","sh:minCount","1","Payload media type is mandatory",""),Fz(Gz(),oc().ba,"security:Settings","security:signature",
"sh:pattern","^HMAC-SHA1|RSA-SHA1|PLAINTEXT$","Invalid OAuth 1.0 signature. The options are: HMAC-SHA1, RSA-SHA1, or PLAINTEXT","Invalid OAuth 1.0 signature. The options are: HMAC-SHA1, RSA-SHA1, or PLAINTEXT"),Fz(Gz(),mc().ba,"apiContract:Response","apiContract:statusCode","sh:pattern","^([1-5]{1}[0-9]{2})$|^(default)$","Status code for a Response must be a value between 100 and 599","Status code for a Response must be a value between 100 and 599 or 'default'")];this.sv=H(a,(new J).aa(b));this.xJ=
H(z(),G());a=z();b=[Fz(Gz(),oc().ba,"security:Settings","security:authorizationGrant","sh:pattern","^code|token|owner|credentials$","Invalid authorization grant. The options are: code, token, owner or credentials","Invalid authorization grant. The options are: code, token, owner or credentials"),Hz(Gz(),"amf-parser:raml-schemes","Protocols property must be http or https",oc().ba,"apiContract:WebAPI","apiContract:scheme","PropertyShape","sh:path","sh:in","http,https,HTTP,HTTPS","Protocols must have a case insensitive value matching http or https",
"Swagger object 'schemes' property must have a case insensitive value matching http or https"),Hz(Gz(),"amf-parser:min-max-inclusive","Maximum must be greater than or equal to minimum",oc().ba,"raml-shapes:ScalarShape","sh:minInclusive","PropertyShape","sh:path","raml-shapes:minimumMaximumValidation","0","Maximum must be greater than or equal to minimum","Maximum must be greater than or equal to minimum"),Hz(Gz(),"amf-parser:min-max-items","MaxItems must be greater than or equal to minItems",oc().ba,
"raml-shapes:ArrayShape","sh:minCount","PropertyShape","sh:path","raml-shapes:minMaxItemsValidation","0","MaxItems must be greater than or equal to minItems","MaxItems must be greater than or equal to minItems"),Hz(Gz(),"amf-parser:min-max-length","MaxLength must be greater than or equal to minLength",oc().ba,"raml-shapes:ScalarShape","sh:minLength","PropertyShape","sh:path","raml-shapes:minMaxLengthValidation","0","MaxLength must be greater than or equal to minLength","MaxLength must be greater than or equal to minLength"),
Hz(Gz(),"amf-parser:min-max-properties","MaxProperties must be greater than or equal to minProperties",oc().ba,"sh:NodeShape","raml-shapes:minProperties","PropertyShape","sh:path","raml-shapes:minMaxPropertiesValidation","0","MaxProperties must be greater than or equal to minProperties","MaxProperties must be greater than or equal to minProperties")];this.wJ=H(a,(new J).aa(b));a=z();b=[Hz(Gz(),"amf-parser:mandatory-api-version","Missing madatory Swagger / info / version",vt().ba,"apiContract:WebAPI",
"core:version","PropertyShape","sh:path","sh:minCount","1","API Version is Mandatory","Version is mandatory in Info object"),Hz(Gz(),"amf-parser:openapi-schemes","Protocols property must be http,https,ws,wss",vt().ba,"apiContract:WebAPI","apiContract:scheme","PropertyShape","sh:path","sh:in","http,https,ws,wss","Protocols must match a value http, https, ws or wss","Swagger object 'schemes' property must have a value matching http, https, ws or wss"),Hz(Gz(),"amf-parser:mandatory-external-doc-url",
"Swagger external-doc element without URL",vt().ba,"core:CreativeWork","core:url","PropertyShape","sh:path","sh:minCount","1","Documentation URL is mandatory in API external documentation","URL is mandatory in External Documentation object"),Hz(Gz(),"amf-parser:mandatory-license-name","Swagger License node without name",vt().ba,"apiContract:License","core:name","PropertyShape","sh:path","sh:minCount","1","License name is mandatory if license information is included","Name is mandatory in License object"),
Hz(Gz(),"amf-parser:empty-responses","No responses declared",vt().ba,"apiContract:Operation","apiContract:returns","PropertyShape","sh:path","sh:minCount","1","Responses array cannot be empty","Responses cannot be empty"),Hz(Gz(),"amf-parser:empty-enum","Enum in types cannot be empty",vt().ba,"raml-shapes:Shape","sh:in","PropertyShape","sh:path","sh:node","amf-parser:NonEmptyList","Property 'enum' must have at least one value","Property 'enum' for a Schema object must have at least one value"),Hz(Gz(),
"amf-parser:array-shape-items-mandatory","Declaration of the type of the items for an array is required",vt().ba,"raml-shapes:ArrayShape","raml-shapes:items","PropertyShape","sh:path","sh:minCount","1","items facet of RAML Array type is required","items property of Schema objects of type 'array' is required"),Hz(Gz(),"amf-parser:path-parameter-required","Path parameters must have the required property set to true",vt().ba,"apiContract:Parameter","apiContract:binding","PropertyShape","sh:path","raml-shapes:pathParameterRequiredProperty",
"0","Path parameters must have the required property set to true","Path parameters must have the required property set to true"),Hz(Gz(),"amf-parser:file-parameter-in-form-data","Parameter of type file must set property 'in' to formData",vt().ba,"apiContract:Parameter","raml-shapes:schema","PropertyShape","sh:path","raml-shapes:fileParameterMustBeInFormData","0","Parameter of type file must set property 'in' to formData","Parameter of type file must set property 'in' to formData")];this.Kz=H(a,(new J).aa(b));
a=z();b=[Fz(Gz(),wt().ba,"apiContract:Response","apiContract:statusCode","sh:pattern","^([1-5]{1}[0-9]{2})$|^(default)$","","Status code for a Response must be a value between 100 and 599 or 'default'"),Fz(Gz(),wt().ba,"security:Settings","security:flow","sh:pattern","^(implicit|password|application|accessCode)$","Invalid flow. The options are: implicit, password, application or accessCode","Invalid flow. The options are: implicit, password, application or accessCode"),Fz(Gz(),wt().ba,"security:Settings",
"security:in","sh:pattern","^(query|header)$","Invalid 'in' value. The options are: query or header","Invalid 'in' value. The options are: query or header")];this.tJ=H(a,(new J).aa(b));a=z();b=[Fz(Gz(),xt().ba,"apiContract:Response","apiContract:statusCode","sh:pattern","^([1-5]{1}(([0-9]{2})|XX))$|^(default)$","","Status code for a Response must be a value between 100 and 599, a [1-5]XX wildcard, or 'default'"),Fz(Gz(),xt().ba,"security:Settings","security:flow","sh:pattern","^(implicit|password|clientCredentials|authorizationCode)$",
"Invalid flow. The options are: implicit, password, clientCredentials or authorizationCode","Invalid flow. The options are: implicit, password, clientCredentials or authorizationCode"),Fz(Gz(),xt().ba,"security:Settings","security:in","sh:pattern","^(query|header|cookie)$","Invalid 'in' value. The options are: query, header or cookie","Invalid 'in' value. The options are: query, header or cookie")];this.bs=H(a,(new J).aa(b));for(var a=yk(),b=Iz(this,yk()),a=(new P).N(a,b),b=Fk(),c=Iz(this,Fk()),b=
(new P).N(b,c),c=Gk(),e=Iz(this,Gk()),c=(new P).N(c,e),e=Ek(),f=Iz(this,Ek()),e=(new P).N(e,f),f=Ck(),g=Iz(this,Ck()),f=(new P).N(f,g),g=Dk(),h=Iz(this,Dk()),g=(new P).N(g,h),h=Bk(),k=Iz(this,Bk()),a=[a,b,c,e,f,g,(new P).N(h,k)],b=Ry(new Sy,Xs()),c=0,e=a.length|0;c<e;)Ty(b,a[c]),c=1+c|0;this.W=b.gb;return this};
function Iz(a,b){if(Fk().h(b)||Ek().h(b)){b=a.sv;var c=a.xJ,e=z();b=b.la(c,e.s);a=a.hr;c=z();return b.la(a,c.s)}return Gk().h(b)?(b=a.sv,c=a.wJ,e=z(),b=b.la(c,e.s),a=a.hr,c=z(),b.la(a,c.s)):Bk().h(b)||Ck().h(b)?(b=a.Kz,c=a.tJ,e=z(),b=b.la(c,e.s),a=a.hr,c=z(),b.la(a,c.s)):Dk().h(b)?(b=a.Kz,c=a.bs,e=z(),b=b.la(c,e.s),a=a.hr,c=z(),b.la(a,c.s)):yk().h(b)?a.hr:G()}Ez.prototype.$classData=q({zZa:0},!1,"amf.plugins.document.webapi.validation.AMFRawValidations$",{zZa:1,f:1});var Jpa=void 0;
function Kpa(){this.RC=this.$Ca=this.QDa=this.t=this.pu=this.sk=this.ra=this.WV=this.kda=this.km=this.Q=this.Ad=this.Mfa=null}Kpa.prototype=new r;Kpa.prototype.constructor=Kpa;Kpa.prototype.$classData=q({AZa:0},!1,"amf.plugins.document.webapi.validation.AMFRawValidations$AMFValidation",{AZa:1,f:1});function Jz(){}Jz.prototype=new r;Jz.prototype.constructor=Jz;Jz.prototype.a=function(){return this};
function Hz(a,b,c,e,f,g,h,k,l,p,y,I){return Lpa((new A).d(b),(new A).d(c),e,(new A).d(f),(new A).d(g),h,k,l,p,y,I)}
function Lpa(a,b,c,e,f,g,h,k,l,p,y){a.b()?a=w():(a=a.c(),a=(new A).d(Gc(Kz(C(),a))));e.b()?e=w():(e=e.c(),e=(new A).d(Gc(Kz(C(),e))));if(f.b())var I=w();else f=f.c(),I=(new A).d(Gc(Kz(C(),f)));f=new Kpa;h=Gc(Kz(C(),h));var E=Gc(Kz(C(),k));k=re(ta(),k,"pattern")?l:Gc(Kz(C(),l));f.Mfa=a;f.Ad=b;f.Q=c;f.km="Domain";f.kda=e;f.WV=I;f.ra=g;f.sk=h;f.pu=E;f.t=k;f.QDa=p;f.$Ca=y;f.RC="Violation";return f}
function Fz(a,b,c,e,f,g,h,k){return Lpa(w(),w(),b,(new A).d(c),(new A).d(e),"PropertyShape","sh:path",f,g,h,k)}Jz.prototype.$classData=q({BZa:0},!1,"amf.plugins.document.webapi.validation.AMFRawValidations$AMFValidation$",{BZa:1,f:1});var Mpa=void 0;function Gz(){Mpa||(Mpa=(new Jz).a());return Mpa}function Lz(){this.bi=null}Lz.prototype=new r;Lz.prototype.constructor=Lz;
function Npa(a){a=a.bi;var b;Opa||(Opa=(new Mz).a());b=Opa;var c=Nz();a=Oz(a,b,c);b=Ppa(new Pz,a,new Qpa);a=fc().ci;b=(new Qz).VU(b).OGa.pm();a=(new Rz).VU((new Sz).Cu(b,a));b=new Tz;b.hca=a.bFa.pm();b.v1=Uz().Td;return Tu(b)}Lz.prototype.qU=function(a){this.bi=a;return this};Lz.prototype.H$=function(){var a=Npa(this),b=t(new u,function(){return function(a){var b=B(a.ca(),bf().Zj);a=a.XCa();b=fh(hh(),b,"application/yaml");return Vz(new Wz,a,b)}}(this)),c=z();return a.ka(b,c.s)};
Lz.prototype.$classData=q({EZa:0},!1,"amf.plugins.document.webapi.validation.ExtensionsCandidatesCollector",{EZa:1,f:1});function Xz(){}Xz.prototype=new r;Xz.prototype.constructor=Xz;Xz.prototype.a=function(){return this};Xz.prototype.q$=function(a,b){return(new Lz).qU(a,b).H$()};Xz.prototype.$classData=q({FZa:0},!1,"amf.plugins.document.webapi.validation.ExtensionsCandidatesCollector$",{FZa:1,f:1});var Rpa=void 0;function Yz(){this.iU=null}Yz.prototype=new r;Yz.prototype.constructor=Yz;
Yz.prototype.a=function(){Spa=this;for(var a=(new ph).e('|function(shape) {\n         |  //console.log(JSON.stringify(shape));\n         |  var minimum \x3d shape["shacl:minInclusive"];\n         |  var maximum \x3d shape["shacl:maxInclusive"];\n         |  if (minimum \x3d\x3d undefined || maximum \x3d\x3d undefined) return true;\n         |  else return (parseFloat(minimum) \x3c\x3d parseFloat(maximum));\n         |}\n      '),a=Zz(a),a=(new P).N("minimumMaximumValidation",a),b=(new ph).e("|function(parameter) {\n         |  var binding \x3d parameter[\"apiContract:binding\"];\n         |  var requiredValue \x3d parameter[\"apiContract:required\"];\n         |  if (binding \x3d\x3d 'path' \x26\x26 requiredValue !\x3d 'true') {\n         |    return false;\n         |  }\n         |  else {\n         |    return true;\n         |  }\n         |}\n      "),
b=Zz(b),b=(new P).N("pathParameterRequiredProperty",b),c=(new ph).e('|function(parameter) {\n         |  var binding \x3d parameter["apiContract:binding"];\n         |  var schema \x3d parameter["raml-shapes:schema"];\n         |  var typeList \x3d schema[0]["@type"];\n         |  if(Array.isArray(typeList) \x26\x26 typeList.indexOf("raml-shapes:FileShape") !\x3d -1){\n         |    return binding \x3d\x3d \'formData\';\n         |  } else {\n         |    return true;\n         |  }\n         |}\n      '),
c=Zz(c),c=(new P).N("fileParameterMustBeInFormData",c),e=(new ph).e('|function(shape) {\n         |  //console.log(JSON.stringify(shape));\n         |  var minCount \x3d shape["shacl:minCount"];\n         |  var maxCount \x3d shape["shacl:maxCount"];\n         |  if (minCount \x3d\x3d undefined || maxCount \x3d\x3d undefined) return true;\n         |  else return (parseInt(minCount) \x3c\x3d parseInt(maxCount));\n         |}\n      '),e=Zz(e),e=(new P).N("minMaxItemsValidation",e),f=(new ph).e('|function(shape) {\n         |  //console.log(JSON.stringify(shape));\n         |  var minLength \x3d shape["shacl:minLength"];\n         |  var maxLength \x3d shape["shacl:maxLength"];\n         |  if (minLength \x3d\x3d undefined || maxLength \x3d\x3d undefined) return true;\n         |  else return (parseInt(minLength) \x3c\x3d parseInt(maxLength));\n         |}\n      '),
f=Zz(f),f=(new P).N("minMaxLengthValidation",f),g=(new ph).e('|function(shape) {\n         |  var minProperties \x3d shape["raml-shapes:minProperties"];\n         |  var maxProperties \x3d shape["raml-shapes:maxProperties"];\n         |  if (minProperties \x3d\x3d undefined || maxProperties \x3d\x3d undefined) return true;\n         |  else return (parseInt(minProperties) \x3c\x3d parseInt(maxProperties));\n         |}\n      '),g=Zz(g),g=(new P).N("minMaxPropertiesValidation",g),h=(new ph).e('|function(shape) {\n         |  var pattern \x3d shape["shacl:pattern"];\n         |  try {\n         |    if(pattern) new RegExp(pattern);\n         |    return true;\n         |  } catch(e) {\n         |    return false;\n         |  }\n         |}\n      '),
h=Zz(h),h=(new P).N("patternValidation",h),k=(new ph).e('\n        |function(shape) {\n        |  var xmlSerialization \x3d shape["raml-shapes:xmlSerialization"];\n        |  if (!xmlSerialization) return true;\n        |  else {\n        |    var wrapped_ \x3d xmlSerialization[0]["raml-shapes:xmlWrapped"];\n        |    var isWrapped \x3d (wrapped_)? wrapped_[0] : false;\n        |    var isScalar \x3d shape["@type"].indexOf("raml-shapes:ScalarShape") !\x3d\x3d -1;\n        |    return !(isWrapped \x26\x26 isScalar);\n        |  }\n        |}\n      '),
k=Zz(k),k=(new P).N("xmlWrappedScalar",k),l=(new ph).e('\n        |function(shape) {\n        |  var xmlSerialization \x3d shape["raml-shapes:xmlSerialization"];\n        |  if (!xmlSerialization) return true;\n        |  else {\n        |    var attribute_ \x3d xmlSerialization[0]["raml-shapes:xmlAttribute"];\n        |    var isAttribute \x3d (attribute_)? attribute_[0] : false;\n        |    var isNonScalar \x3d shape["@type"].indexOf("raml-shapes:ScalarShape") \x3d\x3d\x3d -1;\n        |    return !(isAttribute \x26\x26 isNonScalar);\n        |  }\n        |}\n      '),
l=Zz(l),l=(new P).N("xmlNonScalarAttribute",l),p=(new ph).e('\n        |function(shape) {\n        |  var protocolsArray \x3d shape["apiContract:scheme"];\n        |  return !Array.isArray(protocolsArray) || protocolsArray.length \x3e 0;\n        |}\n      '),p=Zz(p),a=[a,b,c,e,f,g,h,k,l,(new P).N("nonEmptyListOfProtocols",p)],b=Ry(new Sy,Xs()),c=0,e=a.length|0;c<e;)Ty(b,a[c]),c=1+c|0;this.iU=b.gb;return this};
Yz.prototype.$classData=q({IZa:0},!1,"amf.plugins.document.webapi.validation.JsCustomValidations$",{IZa:1,f:1});var Spa=void 0;function $z(){this.Dl=this.bi=null}$z.prototype=new r;$z.prototype.constructor=$z;$z.prototype.BK=function(a){this.bi=a;this.Dl=(new Ie).a();return this};
function Tpa(a,b){var c=Wa().Ia(B(b.ca(),Pg().vh));if(c.b())c=w();else var c=c.c(),e=c.k,f=B(b.ca(),Pg().Jj).G,c=(new A).d(Upa(new aA,a,c,e,f.b()?"":f.c(),c.ha()));if(c.b()){c=B(b.ca(),Pg().Jj).G;if(c.b())return w();c=c.c();return(new A).d((new bA).TO(a,b.k,c,B(b.ca(),Pg().Jj).E))}return c}function Vpa(){var a=z(),b=[th().Kg,th().ld,th().Vh,th().Th,th().Xh,th().ki];return H(a,(new J).aa(b))}
function Wpa(a){for(var b=pc(Os(),G()),c=pc(Os(),G()),e=a.bi,f=cA(),g=Nz(),e=Oz(e,f,g);e.Qa();){var h=e.cq(),g=!1,f=(new Qd).d(null);a:{if(Xh(h)){g=!0;f.ta=h;var h=f.ta.Qv(),k=th();if(null!==h&&h===k&&!Vpa().Cd(t(new u,function(a,b){return function(a){return b.ta.ca().Pb.Ja(a)}}(a,f))))break a}if(g&&b.qC().Cd(t(new u,function(a,b){return function(a){return a===b.ta.k}}(a,f))))g=b.R(f.ta.k),B(f.ta.ca(),th().Vc).X(t(new u,function(a,b,c,e){return function(f){if(!b.Cd(t(new u,function(a,b){return function(a){return a.k===
b.k}}(a,f))))a:{if(null!==f){var g=f.g,h=lh().Ho;g.Pb.Ja(h)?(g=B(f.g,lh().Fq).G,g=!(!g.b()&&!g.c())):g=!1;if(g&&!b.Cd(t(new u,function(a,b){return function(a){return a.k===b.k}}(a,f)))){var g=e.ta.k,h=B(f.g,lh().Ho),k=f.k,l=B(f.g,jh().Sd).G;f=Upa(new aA,a,h,k,l.b()?null:l.c(),f.E);h=z();c.Rl(g,b.hg(f,h.s));break a}}null!==f&&(g=f.g,h=lh().Sd,g.Pb.Ja(h)?(g=B(f.g,lh().Fq).G,g=!(!g.b()&&!g.c())):g=!1,g&&!b.Cd(t(new u,function(a,b){return function(a){return a.k===b.k}}(a,f)))&&(g=e.ta.k,h=f.k,k=B(f.g,
jh().Sd).G,f=(new bA).TO(a,h,k.b()?null:k.c(),f.E),h=z(),c.Rl(g,b.hg(f,h.s))))}}}(a,g,b,f))),g=f.ta.k,h=b.R(f.ta.k),f=Tpa(a,f.ta).wa(),k=z(),b.Rl(g,h.la(f,k.s));else if(g)if(g=B(f.ta.ca(),th().Vc),h=Xpa(a),k=z(),g=g.$b(h,k.s),g.Fa()){var h=f.ta.k,k=Tpa(a,f.ta).wa(),l=z();b.Oe(h,g.la(k,l.s));c.Oe(f.ta.k,f.ta)}else g=Tpa(a,f.ta),x(g)?(g=g.i,h=f.ta.k,k=z(),b.Oe(h,H(k,(new J).aa([g]))),c.Oe(f.ta.k,f.ta)):w()===g&&B(f.ta.ca(),Pg().Kg).Fa()&&(c.Oe(f.ta.k,f.ta),b.Oe(f.ta.k,G()))}}a=t(new u,function(a,b){return function(c){if(null!==
c){var e=c.pa();c=c.Ba();e=b.R(e);if(c.b())return c=z(),e=[Vz(new Wz,e,Ypa((new dA).P((new Q).a(),(M(),(new N).a())),Zpa($pa(),B(e.ca(),Pg().Kg).fa())))],H(c,(new J).aa(e));var e=t(new u,function(a,b){return function(a){var c=new Wz;if(a&&a.$classData&&a.$classData.v.a8)var e=fh(hh(),a.zT,"text/vnd.yaml");else{if(!(a&&a.$classData&&a.$classData.v.b8))throw(new v).d(a);hh();e=Ar(Dr(),a.ue,w(),a.fG);kh();e=fh(0,e,uca(0,a.ue,di(b)))}var f=Xp(e.g,Dm().ob);Te(f,a.k);return Vz(c,b,e)}}(a,e)),f=z();return c.ka(e,
f.s)}throw(new v).d(c);}}(a,c));c=aqa().s;return eA(b,a,c).ce()}$z.prototype.$classData=q({KZa:0},!1,"amf.plugins.document.webapi.validation.PayloadsInApiCollector",{KZa:1,f:1});function fA(){}fA.prototype=new r;fA.prototype.constructor=fA;fA.prototype.a=function(){return this};fA.prototype.$classData=q({LZa:0},!1,"amf.plugins.document.webapi.validation.PayloadsInApiCollector$",{LZa:1,f:1});var bqa=void 0;function gA(){this.l=this.fG=this.ue=this.k=null}gA.prototype=new r;
gA.prototype.constructor=gA;function cqa(){}cqa.prototype=gA.prototype;gA.prototype.TO=function(a,b,c,e){this.k=b;this.ue=c;this.fG=e;if(null===a)throw Lb(Mb(),null);this.l=a;return this};function hA(){this.bi=null}hA.prototype=new r;hA.prototype.constructor=hA;
function dqa(a,b,c){if(1===c.Ka()){M();var e=(new N).a(),e=(new si).P((new Q).a(),e);b=Te(e,b.k+"Shape");c=c.fa().Rr().ce();e=ci().Rg;return qf(b,e,c)}M();var e=(new N).a(),e=(new ti).P((new Q).a(),e),e=Te(e,b.k+"Shape"),f=(new iA).$d(0);b=t(new u,function(a,b,c){return function(a){M();var e=(new N).a(),e=(new si).P((new Q).a(),e),e=Te(e,b.k+"Shape"+c.ta);c.ta=1+c.ta|0;a=(new dd).Qd(a).Rb.gf().kd();var f=ci().Rg;return qf(e,f,a)}}(a,b,f));a=z();c=c.ka(b,a.s);b=lo().Ee;return qf(e,b,c)}
function eqa(a){var b=z(),c=Gc(vn().ja.fa()),e=Gc(Ej().ja.fa()),f=Gc(yn().ja.fa()),g=Gc(vi().ja.fa()),h=C().Zd,b=H(b,(new J).aa([c,e,f,g,Gc(D(new F,h,"DomainProperty"))])),c=a.bi,e=cA(),f=Nz(),c=Oz(c,e,f),b=Ppa(new Pz,c,fqa(b)),b=Tu(b),c=a.bi;sd(c)?(c=c.ak().xb(t(new u,function(){return function(a){return os(a)}}(a))),e=t(new u,function(){return function(a){return a}}(a)),f=z(),c=c.ka(e,f.s)):(z(),Oj(),c=(new $g).a().wa());e=z();b=b.la(c,e.s);c=t(new u,function(){return function(a){if(wn(a)){if(a=
Wa().Ia(B(a.g,vn().Fc)),x(a))return a=a.i,(new A).d((new P).N(a,jA(a,!0,H(xz(),G()))))}else if(dn(a)){if(a=Wa().Ia(B(a.g,Ej().Fc)),x(a))return a=a.i,(new A).d((new P).N(a,jA(a,!0,H(xz(),G()))))}else if(zn(a)){if(a=Wa().Ia(B(a.g,yn().Dq)),x(a))return a=a.i,(new A).d((new P).N(a,jA(a,!0,H(xz(),G()))))}else if(tn(a)){if(a=Wa().Ia(B(a.g,vi().Dq)),x(a))return a=a.i,(new A).d((new P).N(a,jA(a,!0,H(xz(),G()))))}else if($l(a)){if(a=Wa().Ia(B(a.g,Zl().Fc)),x(a))return a=a.i,(new A).d((new P).N(a,jA(a,!0,H(xz(),
G()))))}else if(os(a))return(new A).d((new P).N(a,jA(a,!0,H(xz(),G()))));return w()}}(a));e=z();b=b.ka(c,e.s).xb(t(new u,function(a){return function(b){if(x(b)){var c=b.i;if(null!==c&&(b=c.pa(),c=c.Ba(),null!==b&&null!==c))return c.Cd(t(new u,function(){return function(a){return Tc(a)}}(a)))}return!1}}(a)));a=t(new u,function(){return function(a){return a.c()}}(a));c=z();return b.ka(a,c.s)}hA.prototype.qU=function(a){this.bi=a;return this};
function gqa(a,b){xr();var c=b.ha(),c=(new kA).P((new Q).a(),c),c=Te(c,b.k);B(b.ca(),lA()).X(t(new u,function(a,b){return function(a){var c=B(B(a.g,Is().Rf).ea,Pg().$).G;return mA(b,c.b()?null:c.c(),B(a.g,bf().Zj),a.E)}}(a,c)));return c}
hA.prototype.H$=function(){var a=eqa(this),b=t(new u,function(a){return function(b){if(null!==b){var c=b.pa(),h=b.Ba();if(null!==c&&null!==h)return c=yb(c).qa()&&yb(c).qa()?yb(c).c():c,b=gqa(a,c),h=dqa(a,c,h),b=fh(hh(),b,"application/yaml"),Vz(new Wz,h,b)}throw(new v).d(b);}}(this)),c=z();return a.ka(b,c.s)};hA.prototype.$classData=q({OZa:0},!1,"amf.plugins.document.webapi.validation.ShapeFacetsCandidatesCollector",{OZa:1,f:1});function nA(){}nA.prototype=new r;nA.prototype.constructor=nA;
nA.prototype.a=function(){return this};nA.prototype.q$=function(a,b){return(new hA).qU(a,b).H$()};nA.prototype.$classData=q({PZa:0},!1,"amf.plugins.document.webapi.validation.ShapeFacetsCandidatesCollector$",{PZa:1,f:1});var hqa=void 0;function iqa(a,b){return a.Pfa().Lf(t(new u,function(a,b){return function(a){var c=b.nk,h=z();return(new oA).ss(c.la(a,h.s))}}(a,b)),um())}
function jqa(a,b,c,e,f,g,h){h||(bpa||(bpa=(new ez).a()),h=Wo(Xo(),a),a=(new pA).VG(b,h).He(a));return kqa((new lqa).KK(mqa(a,b,f,e,c,g)))}function nqa(a){a.d_(G());for(var b=oqa(),c=pc(fc().db,G());!b.b();)var e=b.fa(),c=c.Hh(e.ba.Fi,jb(function(a,b){return function(){return b}}(a,e))),b=b.sa();a.q_(c)}function qA(){this.vaa=this.fc=null;this.ma=0}qA.prototype=new r;qA.prototype.constructor=qA;qA.prototype.a=function(){return this};
function pqa(a){0===(1&a.ma)<<24>>24&&0===(1&a.ma)<<24>>24&&(a.fc=ba.JSON.parse('{"schemaId":"auto", "unknownFormats": "ignore", "allErrors": true, "validateSchema": false, "multipleOfPrecision": 6}'),a.ma=(1|a.ma)<<24>>24);return a.fc}function qqa(){if(void 0===ba.Ajv)throw Lb(Mb(),(new Nb).e("Cannot find global Ajv object"));return ba.Ajv}qA.prototype.waa=function(){var a=(new (qqa())(0===(2&this.ma)<<24>>24?rqa(this):this.vaa)).addMetaSchema(sqa());return tqa(a)};
function tqa(a){return a.addFormat("RFC2616","^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (0[1-9]|[12][0-9]|3[01]) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ([0-9]{4}) ([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60) (GMT)$").addFormat("rfc2616","^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (0[1-9]|[12][0-9]|3[01]) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ([0-9]{4}) ([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60) (GMT)$").addFormat("date-time-only","^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?$").addFormat("date",
"^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$")}function rqa(a){0===(2&a.ma)<<24>>24&&(a.vaa=ba.JSON.parse('{"schemaId":"auto", "unknownFormats": "ignore", "allErrors": false, "validateSchema": false, "multipleOfPrecision": 6}'),a.ma=(2|a.ma)<<24>>24);return a.vaa}qA.prototype.$classData=q({RZa:0},!1,"amf.plugins.document.webapi.validation.remote.AjvValidator$",{RZa:1,f:1});var uqa=void 0;function vqa(){uqa||(uqa=(new qA).a());return uqa}function rA(){this.jd=this.Og=null;this.ma=!1}
rA.prototype=new r;rA.prototype.constructor=rA;
rA.prototype.a=function(){this.jd='{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string","format":"uri"},"$schema":{"type":"string","format":"uri"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}';return this};
function sqa(){var a;wqa||(wqa=(new rA).a());a=wqa;a.ma||a.ma||(a.Og=ba.JSON.parse(a.jd),a.ma=!0);return a.Og}rA.prototype.$classData=q({TZa:0},!1,"amf.plugins.document.webapi.validation.remote.Draft4MetaSchema$",{TZa:1,f:1});var wqa=void 0;function sA(){this.Xza=this.$n=null;this.ma=0}sA.prototype=new r;sA.prototype.constructor=sA;sA.prototype.a=function(){return this};
sA.prototype.waa=function(){0===(2&this.ma)<<24>>24&&0===(2&this.ma)<<24>>24&&(this.Xza=vqa().waa(),this.ma=(2|this.ma)<<24>>24);return this.Xza};sA.prototype.$classData=q({VZa:0},!1,"amf.plugins.document.webapi.validation.remote.LazyAjv$",{VZa:1,f:1});var xqa=void 0;function yqa(){xqa||(xqa=(new sA).a());return xqa}function zqa(a,b){return dp(new ep,!b.Cd(t(new u,function(){return function(a){return a.km===xc().tb}}(a))),"http://test.com/payload#validations",a.iW,b)}function tA(){}tA.prototype=new r;
tA.prototype.constructor=tA;tA.prototype.a=function(){return this};function Aqa(a,b){return Ni(b)?B(b.ea,lo().Ee).Cd(t(new u,function(){return function(a){return Bqa(Cqa(),a)}}(a))):!1}function Bqa(a,b){if(di(b)){a=B(b.ea,xh().af).G;if(a.b())return!1;a=a.c();b=qi().Mj;return a===b}return!1}tA.prototype.$classData=q({XZa:0},!1,"amf.plugins.document.webapi.validation.remote.ScalarPayloadForParam$",{XZa:1,f:1});var Dqa=void 0;function Cqa(){Dqa||(Dqa=(new tA).a());return Dqa}
function uA(){this.Xda=this.lX=this.Xp=this.jda=this.cL=this.P$=this.efa=this.Gf=this.Gfa=this.eea=this.oe=this.ra=this.fe=this.Tj=this.So=this.Fl=this.ru=this.Ev=this.Zfa=null}uA.prototype=new r;uA.prototype.constructor=uA;
uA.prototype.a=function(){Eqa=this;var a=C().bb;this.Zfa=Gc(D(new F,a,"WebAPI"));a=C().bb;this.Ev=Gc(D(new F,a,"DocumentationItem"));a=C().bb;this.ru=Gc(D(new F,a,"EndPoint"));a=C().bb;this.Fl=Gc(D(new F,a,"Operation"));a=C().bb;this.So=Gc(D(new F,a,"Response"));a=C().bb;this.Tj=Gc(D(new F,a,"Request"));a=C().bb;this.fe=Gc(D(new F,a,"Payload"));a=C().cb;this.ra=Gc(D(new F,a,"Shape"));a=C().bb;this.oe=Gc(D(new F,a,"Example"));a=C().bb;this.eea=Gc(D(new F,a,"ResourceType"));a=C().bb;this.Gfa=Gc(D(new F,
a,"Trait"));a=C().bb;this.Gf=Gc(D(new F,a,"SecurityScheme"));a=C().bb;this.efa=Gc(D(new F,a,"SecuritySettings"));a=C().Zd;this.P$=Gc(D(new F,a,"CustomDomainProperty"));a=C().Zd;this.cL=Gc(D(new F,a,"Module"));a=C().Zd;this.jda=Gc(D(new F,a,"AbstractDocument"));a=C().Zd;this.Xp=Gc(D(new F,a,"PartialDocument"));for(var a=(new P).N(this.Zfa,"API"),b=(new P).N(this.Ev,"DocumentationItem"),c=(new P).N(this.ru,"Resource"),e=(new P).N(this.Fl,"Method"),f=(new P).N(this.So,"Response"),g=(new P).N(this.Tj,
"RequestBody"),h=(new P).N(this.fe,"ResponseBody"),k=(new P).N(this.ra,"TypeDeclaration"),l=(new P).N(this.oe,"Example"),p=(new P).N(this.eea,"ResourceType"),y=(new P).N(this.Gfa,"Trait"),I=(new P).N(this.Gf,"SecurityScheme"),E=(new P).N(this.efa,"SecuritySchemeSettings"),V=(new P).N(this.P$,"AnnotationType"),da=(new P).N(this.cL,"Library"),sa=(new P).N(this.jda,"Overlay"),a=[a,b,c,e,f,g,h,k,l,p,y,I,E,V,da,sa,(new P).N(this.Xp,"Extension")],b=Ry(new Sy,Xs()),c=0,e=a.length|0;c<e;)Ty(b,a[c]),c=1+c|
0;a=this.lX=b.gb;b=t(new u,function(){return function(a){if(null!==a){var b=a.pa();a=a.Ba();return(new P).N(a,b)}throw(new v).d(a);}}(this));c=Fqa();c=vA(c);this.Xda=De(a,b,c);return this};uA.prototype.$classData=q({$Za:0},!1,"amf.plugins.document.webapi.vocabulary.VocabularyMappings$",{$Za:1,f:1});var Eqa=void 0;function Jw(){Eqa||(Eqa=(new uA).a());return Eqa}function wA(){}wA.prototype=new r;wA.prototype.constructor=wA;wA.prototype.a=function(){return this};
wA.prototype.JP=function(a){a.uI.Oe(t(new u,function(){return function(a){return!!(a&&a.$classData&&a.$classData.v.x7)}}(this)),t(new u,function(){return function(a){if(xA(a))return(new yA).Lv(a);throw(new v).d(a);}}(this)));var b=zA();Kl(a,b,t(new u,function(){return function(a){if(AA(a))return(new BA).CAa(a);throw(new v).d(a);}}(this)));b=zd();Kl(a,b,t(new u,function(){return function(a){if(a&&a.$classData&&a.$classData.v.C7)return(new CA).EAa(a);throw(new v).d(a);}}(this)));b=Tj();Kl(a,b,t(new u,
function(){return function(a){if(he(a))return(new DA).jba(a);throw(new v).d(a);}}(this)));b=sf();Kl(a,b,t(new u,function(){return function(a){if(Gqa(a))return(new EA).GAa(a);throw(new v).d(a);}}(this)));b=FA();Kl(a,b,t(new u,function(){return function(a){if(Hqa(a))return(new GA).FAa(a);throw(new v).d(a);}}(this)));b=Iqa();Kl(a,b,t(new u,function(){return function(a){if(Jqa(a))return(new HA).DAa(a);throw(new v).d(a);}}(this)));b=MA();Kl(a,b,t(new u,function(){return function(a){if(a&&a.$classData&&
a.$classData.v.D7)return(new NA).IAa(a);throw(new v).d(a);}}(this)));b=OA();Kl(a,b,t(new u,function(){return function(a){if(a&&a.$classData&&a.$classData.v.A7)return(new PA).X0(a);throw(new v).d(a);}}(this)));b=fd();Kl(a,b,t(new u,function(){return function(a){if(a&&a.$classData&&a.$classData.v.B7)return(new QA).iba(a);throw(new v).d(a);}}(this)));b=Sd();Kl(a,b,t(new u,function(){return function(a){if(a&&a.$classData&&a.$classData.v.E7)return(new RA).JAa(a);throw(new v).d(a);}}(this)));b=wd();Kl(a,
b,t(new u,function(){return function(a){if(vd(a))return(new SA).W0(a);throw(new v).d(a);}}(this)));b=ed();Kl(a,b,t(new u,function(){return function(a){if(TA(a))return(new UA).HK(a);throw(new v).d(a);}}(this)));b=Kqa();Kl(a,b,t(new u,function(){return function(a){if(VA(a))return(new WA).yAa(a);throw(new v).d(a);}}(this)));b=Lqa();Kl(a,b,t(new u,function(){return function(a){if(XA(a))return(new YA).V0(a);throw(new v).d(a);}}(this)));b=ZA();Kl(a,b,t(new u,function(){return function(a){if($A(a))return(new aB).zAa(a);
throw(new v).d(a);}}(this)));b=bB();Kl(a,b,t(new u,function(){return function(a){if(cB(a))return(new dB).AAa(a);throw(new v).d(a);}}(this)));b=Mqa();Kl(a,b,t(new u,function(){return function(a){if(Nqa(a))return(new eB).BAa(a);throw(new v).d(a);}}(this)));Kk();a=kb();pb(qb(),a)};wA.prototype.$classData=q({a_a:0},!1,"amf.plugins.domain.VocabulariesRegister$",{a_a:1,f:1});var Oqa=void 0;function fB(){}fB.prototype=new r;fB.prototype.constructor=fB;fB.prototype.a=function(){return this};
function Pqa(a,b){a=Ke(M(),b);b=(new Q).a();return(new oi).P(b,a)}fB.prototype.$classData=q({u_a:0},!1,"amf.plugins.domain.shapes.models.AnyShape$",{u_a:1,f:1});var Qqa=void 0;function Rqa(){Qqa||(Qqa=(new fB).a());return Qqa}function gB(){}gB.prototype=new r;gB.prototype.constructor=gB;gB.prototype.a=function(){return this};gB.prototype.$classData=q({x_a:0},!1,"amf.plugins.domain.shapes.models.CreativeWork$",{x_a:1,f:1});var Sqa=void 0;function hB(){}hB.prototype=new r;hB.prototype.constructor=hB;
hB.prototype.a=function(){return this};function Tqa(a,b){a=Ke(M(),b);b=(new Q).a();return(new iB).P(b,a)}hB.prototype.$classData=q({y_a:0},!1,"amf.plugins.domain.shapes.models.Example$",{y_a:1,f:1});var Uqa=void 0;function Vqa(){Uqa||(Uqa=(new hB).a());return Uqa}function jB(){}jB.prototype=new r;jB.prototype.constructor=jB;jB.prototype.a=function(){return this};
function Wqa(a,b,c,e){Xh(b)&&B(b.ca(),th().Vc).X(t(new u,function(a,b,c){return function(a){if(yb(a).qa())return a.E.Wb(Xqa(kB(),b,a,(new A).d(c)));var e=Zb(a.E,n(lB)),e=e.b()||e.c().Fs.Ja(c)?e:w();e.b()||(e.c(),a.E.Wb(Xqa(kB(),b,a,w())))}}(a,c,e)));return b}
function Yqa(a,b,c){Xh(b)&&B(b.ca(),th().Vc).X(t(new u,function(a,b){return function(a){var c=Zb(a.E,n(lB));if(!c.b()){var c=c.c(),e=a.E,l=e.jf;Wg();for(var p=Yg(new Zg,(new $g).a()),l=l.Lb;!l.b();){var y=l.fa();!1!==!mB(y)&&ah(p,y);l=l.sa()}e.jf=p.gb;a.E.Wb((new nB).Qj(c.Fs.Zs(b)))}}}(a,c)))}
function Xqa(a,b,c,e){a=Zb(c.E,n(lB));if(a.b())return Zqa($qa(),b);a=a.c();c=c.E;var f=c.jf;Wg();for(var g=Yg(new Zg,(new $g).a()),f=f.Lb;!f.b();){var h=f.fa();!1!==!mB(h)&&ah(g,h);f=f.sa()}c.jf=g.gb;return(new nB).Qj(a.Fs.Ij(b).i5(e.wa()))}function oB(a,b,c,e){Xh(b)&&B(b.ca(),th().Vc).X(t(new u,function(a,b,c){return function(a){return a.E.Wb(Xqa(kB(),b,a,c))}}(a,c,e)));return b}jB.prototype.$classData=q({z_a:0},!1,"amf.plugins.domain.shapes.models.ExampleTracking$",{z_a:1,f:1});var ara=void 0;
function kB(){ara||(ara=(new jB).a());return ara}function pB(){}pB.prototype=new r;pB.prototype.constructor=pB;pB.prototype.a=function(){return this};function bra(a,b){if(b===qi().Mj)return gg();if(b===qi().hj)return jg();if(b===qi().rg)return pg();if(b===qi().jp)return Fg();if(b===qi().Xj)return rg();if(b===qi().Xl)return sg();if(b===qi().sz)return Dg();throw Lb(Mb(),(new Hg).e("Unknown mapping: "+b));}
function cra(a){if(a===qi().Mj)return"string";if(a===qi().hj)return"integer";if(a===qi().jp||a===qi().rg||a===qi().vi)return"number";if(a===qi().Xj)return"boolean";if(a===qi().Xl)return"date";if(a===qi().sz)return"file";throw Lb(Mb(),(new Hg).e("Unknown mapping: "+a));}
function Mna(a,b){return b===qi().Mj?gg():b===qi().hj?jg():b===qi().pr?og():b===qi().rg?pg():b===qi().vi?qg():b===qi().jp?Fg():b===qi().Xj?rg():b===qi().Xl?sg():b===qi().mB?tg():b===qi().Gw?ug():b===qi().uq?vg():b===qi().Px?dg():b===qi().jB?eg():b===qi().CB?fg():Gg()}pB.prototype.$classData=q({k0a:0},!1,"amf.plugins.domain.shapes.parser.TypeDefXsdMapping$",{k0a:1,f:1});var dra=void 0;function vx(){dra||(dra=(new pB).a());return dra}function qB(){}qB.prototype=new r;qB.prototype.constructor=qB;
qB.prototype.a=function(){return this};qB.prototype.$classData=q({l0a:0},!1,"amf.plugins.domain.shapes.parser.TypeDefYTypeMapping$",{l0a:1,f:1});var era=void 0;function rB(){}rB.prototype=new r;rB.prototype.constructor=rB;rB.prototype.a=function(){return this};
function sB(a,b){if(gg()===b)return qi().Mj;if(jg()===b)return qi().hj;if(og()===b)return qi().pr;if(pg()===b)return qi().rg;if(qg()===b)return qi().vi;if(Fg()===b)return qi().jp;if(rg()===b)return qi().Xj;if(sg()===b)return qi().Xl;if(tg()===b)return qi().mB;if(ug()===b)return qi().Gw;if(vg()===b)return qi().uq;if(dg()===b)return qi().Px;if(eg()===b)return qi().jB;if(fg()===b)return qi().CB;throw Lb(Mb(),(new Hg).e("Unknown mapping"));}
function fra(a,b){return"string"===b?(new P).N((new A).d(qi().Mj),(new A).d("")):"number"===b||"float"===b||"double"===b?(new P).N((new A).d(qi().jp),(new A).d("")):"integer"===b?(new P).N((new A).d(qi().hj),(new A).d("")):"date"===b?(new P).N((new A).d(qi().Xl),(new A).d("RFC2616")):"boolean"===b?(new P).N((new A).d(qi().Xj),(new A).d("")):"file"===b?(new P).N((new A).d(qi().sz),(new A).d("")):(new P).N(w(),w())}
rB.prototype.$classData=q({m0a:0},!1,"amf.plugins.domain.shapes.parser.XsdTypeDefMapping$",{m0a:1,f:1});var gra=void 0;function tB(){gra||(gra=(new rB).a());return gra}function uB(){this.l=this.Oj=null}uB.prototype=new r;uB.prototype.constructor=uB;function vB(a,b){var c=new uB;c.Oj=b;if(null===a)throw Lb(Mb(),null);c.l=a;return c}uB.prototype.lI=function(){var a=(new ri).P(this.Oj.ca(),this.Oj.ha());return Te(a,this.Oj.k)};
uB.prototype.$classData=q({q0a:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.AnyShapeAdjuster$AnyShapeConverter",{q0a:1,f:1});function wB(){this.ub=null;this.lo=!1;this.qh=this.Hl=null;this.bca=!1;this.DCa=null}wB.prototype=new r;wB.prototype.constructor=wB;function hra(a,b,c,e,f){a.ub=b;a.lo=c;a.Hl=e;a.qh=f;a.bca=e.h(Gk());a.DCa=(new xB).EU(a);return a}
function yB(a,b,c){try{return ira(a.DCa,b,c)}catch(l){if((c=gi(Mb(),l))&&c.$classData&&c.$classData.v.i8){a=a.ub;var e=Bo().$R,f=b.k,g=c.c2,g=g.b()?(new A).d(Gc(Pg().ld.t)):g,h=c.E1;a.Hc(e.k,f,g,c.Ls,c.$1,xc().tb,h);return b}if(null!==c){a=a.ub;e=Bc().nh;f=b.k;g=(new A).d(Gc(Pg().ld.t));c=c.Xm();var h=Zb(b.ha(),n(Fd)),k=b.Yb();a.Hc(e.k,f,g,c,h,xc().tb,k);return b}throw l;}}
wB.prototype.$classData=q({v0a:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.NormalizationContext",{v0a:1,f:1});function zB(){}zB.prototype=new r;zB.prototype.constructor=zB;zB.prototype.a=function(){return this};function jra(a,b,c,e,f,g){var h=uca(kh(),c,!1);return kra(a,h,b,f,e).tQ(b,f,g).nX(h,c)}function lra(a,b,c,e,f){var g=AB(),h=B(c.g,Dm().Md).G;return kra(a,h.b()?null:h.c(),b,f,e).tQ(b,f,g).mX(c)}
zB.prototype.o3=function(a,b,c){var e=pc(Os(),G());b=t(new u,function(a,b,c,e){return function(a){var f=a.ra,y=B(a.fe.g,Dm().Md).G,f=b.Ta((new P).N(f,y.b()?null:y.c()));if(x(f))f=f.i;else{var f=BB(),y=B(a.fe.g,Dm().Md).G,f=kra(f,y.b()?null:y.c(),a.ra,c,e),y=a.ra,I=AB(),f=f.tQ(y,c,I),y=a.ra,I=B(a.fe.g,Dm().Md).G;b.Oe((new P).N(y,I.b()?null:I.c()),f)}return f.mX(a.fe)}}(this,e,c,b));c=z();a=a.ka(b,c.s);b=ib();c=z();return lb(b,a,c.s,um()).Lf(t(new u,function(a){return function(b){var c=t(new u,function(){return function(a){a=
a.nk;CB();var b=fc().ci;return a.Ej(DB(b))}}(a)),e=z();b=b.md(c,e.s);return dp(new ep,!b.Cd(t(new u,function(){return function(a){return a.km===xc().tb}}(a))),"",EB(FB(),""),b)}}(this)),um())};function kra(a,b,c,e,f){a=mra(a,b,c,e);return a.b()?(new nra).e(f):a.c()}function mra(a,b,c,e){return gja(tb(),b).Ib(t(new u,function(a,b,c){return function(a){return a.D$(b,c)}}(a,c,e)))}function ora(a,b,c,e,f){a=mra(a,c,b,e,xc().tb);if(a.b())return w();a=a.c();return(new A).d(a.tQ(b,e,f))}
zB.prototype.$classData=q({C0a:0},!1,"amf.plugins.domain.shapes.validation.PayloadValidationPluginsHandler$",{C0a:1,f:1});var pra=void 0;function BB(){pra||(pra=(new zB).a());return pra}function GB(){}GB.prototype=new r;GB.prototype.constructor=GB;GB.prototype.a=function(){return this};function Zpa(a,b){return wj(b)&&(a=B(b.ea,xj().rf).G,a.b()?a=!1:(a=a.c(),a=tka(kh(),a)),a)?"application/xml":"application/json"}
function qra(a,b){b.qC().X(t(new u,function(a,b){return function(a){var c=b.R(a),h=Pg().Kg;return Fh(a,h,c.t,c.E)}}(a,b)))}
function rra(a,b,c,e){var f=pc(Os(),G());b=b.Ym(t(new u,function(){return function(a){return a.ra}}(a)));var g=Pd(b);pf();b=Zd(new ee,Yd());for(g=g.ah.Tq();g.Qa();){var h=g.Sa();if(null!==h&&B(h.ca(),Pg().Kg).Fa()){var k=Dd(h.ca(),Pg().Kg).c().t;f.Oe(h,k);var k=B(h.ca(),Pg().Kg),l=t(new u,function(a,b){return function(a){return Vz(new Wz,b,fh(hh(),a,Zpa($pa(),a)))}}(a,h)),p=z(),k=k.ka(l,p.s);gs(h.ca(),Pg().Kg);h=k}else h=G();h=h.td();Yi(b,h)}b=b.gb;return BB().o3(b.ce(),c,e).Lf(t(new u,function(a,
b){return function(a){qra($pa(),b);return a}}(a,f)),um())}GB.prototype.o3=function(a,b,c){return rra(this,a,b,c).ei(t(new u,function(a,b,c,h){return function(k){return k.Pw?BB().o3(b.xb(t(new u,function(){return function(a){a=a.fe.g;var b=Dm().ob;return a.Pb.Ja(b)}}(a))),c,h):HB(ib(),k)}}(this,a,b,c)),um())};GB.prototype.$classData=q({D0a:0},!1,"amf.plugins.domain.shapes.validation.ShapesNodesValidator$",{D0a:1,f:1});var sra=void 0;function $pa(){sra||(sra=(new GB).a());return sra}
function IB(){}IB.prototype=new r;IB.prototype.constructor=IB;IB.prototype.a=function(){return this};function tra(a,b){a=Ke(M(),b);return(new JB).P((new Q).a(),a)}IB.prototype.$classData=q({r1a:0},!1,"amf.plugins.domain.webapi.models.Parameter$",{r1a:1,f:1});var ura=void 0;function vra(){ura||(ura=(new IB).a());return ura}function KB(){}KB.prototype=new r;KB.prototype.constructor=KB;KB.prototype.a=function(){return this};function wra(a,b){a=Ke(M(),b);return(new LB).P((new Q).a(),a)}
KB.prototype.$classData=q({t1a:0},!1,"amf.plugins.domain.webapi.models.Response$",{t1a:1,f:1});var xra=void 0;function yra(){xra||(xra=(new KB).a());return xra}function MB(){}MB.prototype=new r;MB.prototype.constructor=MB;MB.prototype.a=function(){return this};function zra(a,b){a=Ke(M(),b);b=(new Q).a();return(new NB).P(b,a)}MB.prototype.$classData=q({x1a:0},!1,"amf.plugins.domain.webapi.models.security.SecurityScheme$",{x1a:1,f:1});var Ara=void 0;
function Bra(){Ara||(Ara=(new MB).a());return Ara}function OB(){}OB.prototype=new r;OB.prototype.constructor=OB;OB.prototype.a=function(){return this};function PB(a,b){a=Ke(M(),b);b=(new Q).a();return(new QB).P(b,a)}OB.prototype.$classData=q({y1a:0},!1,"amf.plugins.domain.webapi.models.templates.ResourceType$",{y1a:1,f:1});var Cra=void 0;function RB(){Cra||(Cra=(new OB).a());return Cra}function SB(){}SB.prototype=new r;SB.prototype.constructor=SB;SB.prototype.a=function(){return this};
function TB(a,b){a=Ke(M(),b);b=(new Q).a();return(new UB).P(b,a)}SB.prototype.$classData=q({z1a:0},!1,"amf.plugins.domain.webapi.models.templates.Trait$",{z1a:1,f:1});var Dra=void 0;function VB(){Dra||(Dra=(new SB).a());return Dra}function WB(){}WB.prototype=new r;WB.prototype.constructor=WB;
function Era(a,b,c,e){e=Fra(a,c.Pe().wa(),e);e=e.b()?c:e.c();var f=Gra(e,t(new u,function(){return function(a){return Ll(a)}}(a))),g=t(new u,function(a,b){return function(a){return(new P).N(a,b)}}(a,e)),h=z(),f=f.ka(g,h.s),g=Gra(c,t(new u,function(){return function(a){return!Ll(a)}}(a))),h=t(new u,function(a,b){return function(a){return(new P).N(a,b)}}(a,c)),k=z(),g=g.ka(h,k.s),h=z();f.la(g,h.s).X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();Ai(b.le(),c);Hra(Az(),c,
b,a)}else throw(new v).d(a);}}(a,b)));Ira(a,b,e);(null===e?null===c:e.h(c))||Ira(a,b,c)}WB.prototype.a=function(){return this};function Gra(a,b){return sd(a)?a.ak().xb(b):G()}function Fra(a,b,c){a:for(;;){var e=!1,f=null;if(ft(b)&&(e=!0,f=b,b=f.Aj,Sl(b))){var g=c,h=Zb(b.ha(),n($b));h.b()?h=w():(h=h.c(),h=(new A).d(h.ga));if(h.Ja(g))return(new A).d(b)}if(e){e=f.Aj;f=Fra(a,f.ve,c);if(x(f))return f;b=e.Pe().wa();continue a}return w()}}
function Jra(a,b,c,e,f,g,h,k,l,p,y,I){I=I.b()?Kra(Az(),b):I.c();b=H(Wg(),G());Era(a,I,c,k.ga.Of);y.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa(),e=a.Ba();a=b.le();var f=b.le().Ti,e=XB(new YB,e,w());a.Ti=f.Zb((new P).N(c,e))}else throw(new v).d(a);}}(a,I)));c=Rk();var E=(new ZB).$d(I.Xi);c=Qk(c);var V=c.Io.vu(E.Ke,jb(function(){return function(){return H(Wg(),G())}}(c)));y=c.Uw;c.Uw=!0;c.Io=c.Io.Hh(E.Ke,H(Wg(),G()));var da=kd(ta(),f,"\\.",0),sa=-1+da.j.length|0,sa=0<sa?sa:0,
ua=da.j.length,sa=sa<ua?sa:ua,sa=0<sa?sa:0,ua=Ht(It(),Jt(ka(da)),sa);0<sa&&Kt(ye(),da,0,ua,0,sa);da=Lra(I,vl(fc(),ua),I.le());da=I.mT(Mra(I.le(),da));da.le().ro.gr(da.le().wo).X(t(new u,function(a,b){return function(a){return Ai(b.le(),a.Ba())}}(a,I)));da.Dv=py().e9;$B(da.Oh.k0(),k,t(new u,function(a,b){return function(){M();var a=(new N).a(),c=(new Q).a(),a=(new aC).P(c,a);return Te(a,b+"/applied")}}(a,g)),w(),b,!0).Pc();Yi(I.YE,da.YE);E.Ke===Nra().Ke?c.Io=c.Io.Hh(E.Ke,H(Wg(),G())):(I=c.Io.vu(E.Ke,
jb(function(){return function(){return H(Wg(),G())}}(c))).xb(t(new u,function(a,b){return function(a){return b.Bca(a)}}(c,E))),da=c.Io,E=E.Ke,V=Er((new $g).a(),V),c.Io=da.Hh(E,Er(V,I)),c.Uw=y);b=b.wa();if(ft(b))return e=b.Aj,h&&Ora(a,e,g,p),Pra((new yz).vt(h,l),e);if(G().h(b))return a=Bo().a9,h=w(),f="Couldn't parse an endpoint from resourceType '"+f+"'.",p=Zb(e.ha(),n(Fd)),b=Yb(e),l.Hc(a.k,g,h,f,p,xc().tb,b),(new bC).Rq(e.k,k);throw(new v).d(b);}
function Ira(a,b,c){c.Pe().X(t(new u,function(a,b,c){return function(h){var k=!1,l=null,l=null;if(Sl(h)&&(k=!0,l=h,!Jm(l)&&!Nm(l))){h=b.le();var k=jd(l),k=k.b()?l.k:k.c(),p=l,y=h.Ti,p=XB(new YB,p.ze(),jd(p));h.Ti=y.Zb((new P).N(k,p));Ira(Az(),b,l);return}if(sd(h))l=Zb(c.ha(),n(nd)),(l.b()?(new kz).Qj(H(fc().Sg,G())):l.c()).Xb.X(t(new u,function(a,b,c){return function(e){a:{if(null!==e){var f=e.pa(),g=e.Ba();if(null!==g){if(b.k===g.pa()){e=c.le().ai.kb();for(g=!1;!g&&e.Qa();)g=e.Sa().pa(),g=null===
g?null===f:pa(g,f);e=!g}else e=!1;if(e){e=G();z();Oj();var g=(new $g).a(),g=(new yp).co("",g.wa(),(new Np).a(),Op(),w()),h=c.tp(),k=w(),l=w(),p=py().On;e=(new oy).Vk("",e,g,k,l,h,p);b.ak().X(t(new u,function(a,b,c){return function(a){Hra(Az(),a,b,c)}}(a,e,b)));c.le().ai=c.le().ai.Zb((new P).N(f,e.Mh))}break a}}throw(new v).d(e);}}}(a,h,b))),Ira(Az(),b,h);else if(!k){var l=Bc().nh,k=w(),y=h.k,p=Zb(h.ha(),n(Fd)),I=jd(h);b.Hc(l.k,y,k,"Error resolving nested declaration, found something that is not a library or a fragment",
p,xc().tb,I);return h}}}(a,b,c)))}
function Ora(a,b,c,e){var f=(new iz).Sq(c,e),g=b.ca().Pb,h=zx(),h=Va(h),k=Ce().s,g=De(g,h,k).pc();g.b()?g=!1:(h=g.c().t.E,g=(new Qra).a(),h=h.jf,k=Wg().s,g=Fr(h,g,k).Cd(t(new u,function(a,b){return function(a){return a.Lw===b}}(a,c))));g||(b=b.ca().Pb,g=zx(),g=Va(g),h=Ce().s,De(b,g,h).X(t(new u,function(a,b,c,e){return function(f){f.t.E.Wb(b);f=f.t.t;if(Yl(f))Ora(Az(),f,c,e);else if(es(f))f.Tb.X(t(new u,function(a,b,c,e){return function(a){if(Yl(a))a.ha().Wb(b),Ora(Az(),a,c,e);else return a.ha().Wb(b)}}(a,
b,c,e)));else return f.ha().Wb(b)}}(a,f,c,e))))}function zz(a,b,c){a=c.Pe();b=(new Rra).e(b);return hd(a,b)}function Kra(a,b){return Gk().h(b)?(new Sra).a():(new Tra).a()}
function Ura(a,b,c,e,f,g,h,k,l){var p=l.b()?Kra(Az(),b):l.c();Era(a,p,c,h.i.ga.Of);k.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa(),e=a.Ba();a=b.le();var f=b.le().Ti,e=XB(new YB,e,w());a.Ti=f.Zb((new P).N(c,e))}else throw(new v).d(a);}}(a,p)));k=Rk();l=(new ZB).$d(p.Xi);k=Qk(k);var y=k.Io.vu(l.Ke,jb(function(){return function(){return H(Wg(),G())}}(k)));b=k.Uw;k.Uw=!0;k.Io=k.Io.Hh(l.Ke,H(Wg(),G()));e=kd(ta(),e,"\\.",0);var I=-1+e.j.length|0,I=0<I?I:0,E=e.j.length,I=I<E?I:E,I=
0<I?I:0,E=Ht(It(),Jt(ka(e)),I);0<I&&Kt(ye(),e,0,E,0,I);e=Lra(p,vl(fc(),E),p.le());e=p.mT(Mra(p.le(),e));e.le().ro.gr(e.le().wo).X(t(new u,function(a,b){return function(a){return Ai(b.le(),a.Ba())}}(a,p)));e.Dv=py().m9;h=ax(e.Oh.cDa(),h,t(new u,function(a,b){return function(){M();var a=(new N).a(),a=(new cC).P((new Q).a(),a);return Te(a,b+"/applied")}}(a,f)),!0).W1();l.Ke===Nra().Ke?k.Io=k.Io.Hh(l.Ke,H(Wg(),G())):(p=k.Io.vu(l.Ke,jb(function(){return function(){return H(Wg(),G())}}(k))).xb(t(new u,
function(a,b){return function(a){return b.Bca(a)}}(k,l))),e=k.Io,l=l.Ke,y=Er((new $g).a(),y),k.Io=e.Hh(l,Er(y,p)),k.Uw=b);g&&Ora(a,h,f,zz(0,f,c));return h}
function Hra(a,b,c,e){var f=Zb(b.ha(),n(Vra));if(x(f))for(var g=f.i.xF,f=g.qe,g=dC(g),h=f.j[g];null!==h;){var k=h.Sa(),l=h.t.Ib(t(new u,function(a,b){return function(a){if(null!==a){a=a.k;var c=jd(b),c=c.b()?"":c.c();return-1!==(a.indexOf(ja(c))|0)}return!1}}(a,e)));Ai(c.le(),b);if(eC(b)&&(h=b,l.qa())){var l=l.c(),l=B(l.ca(),l.Ch()).G,l=l.b()?null:l.c(),p=B(h.ca(),h.Ch()).G,p=p.b()?null:p.c();M();var y=(new N).a();Ue(h,l,y);Ai(c.le(),b);M();l=(new N).a();Ue(h,p,l)}for(h=k;null===h&&0<g;)g=-1+g|0,
h=f.j[g]}else Ai(c.le(),b)}
function Wra(a,b,c,e,f,g,h,k,l,p){var y=p.b()?Kra(Az(),b):p.c();k=pc(Os(),G());var I=Yb(c),I=I.b()?"":I.c(),I=(new fC).tc("",I),E=(new My).e(I.Dh),V=(new ph).e(I.xh);Tc(V)&&Ny(E,I.xh);var V=E.r,da=E.da,sa=(new pq).e(da);R();Cq();var ua=O().Wa,Ia=Zb(g,n(Lt));Ia.b()?Ia=w():(Ia=Ia.c(),Ia=(new A).d(Ia.Lc));var Ia=Ia.wa(),Pa=(new Xra).a(),Ia=hd(Ia,Pa),Ia=lq(0,uq(0,f,ua,Ia.b()?g:Ia.c()),O().Wa),ua=(new My).e(sa.da);Tw(new Uw,c,Yh(g,n(Fd))?gC():Yra(),!0,k,y).Ob(ua);c=ua.r;g=[Ia];if(0>c.x)throw(new X).e("0");
Ia=g.length|0;y=c.x+Ia|0;hC(c,y);Ca(c.z,0,c.z,Ia,c.x);for(var Ia=c.z,Za=Ia.j.length,db=Pa=0,Qb=g.length|0,Za=Qb<Za?Qb:Za,Qb=Ia.j.length,Za=Za<Qb?Za:Qb;Pa<Za;)Ia.j[db]=g[Pa],Pa=1+Pa|0,db=1+db|0;c.x=y;T(sa.r,iC(jC(),ua.r));T(V,lq(R(),rq(sq(),sa.r,da),O().ua));I=(new Oy).mc(Py(vq(),I.Dh),E.r);E=Pc();V=Ac().fi;I=L(I,E,V).Bb.fa();return Ura(a,b,e,f,h,l,I,k,p)}
function Zra(a,b,c,e,f,g,h,k,l,p,y){var I=p.b()?Kra(Az(),c):p.c(),E=pc(Os(),G()),V=Yb(e),V=V.b()?"":V.c(),V=(new fC).tc("",V),da=(new My).e(V.Dh),sa=(new ph).e(V.xh);Tc(sa)&&Ny(da,V.xh);var sa=da.r,ua=da.da,Ia=(new pq).e(ua);R();Cq();var Pa=O().Wa,Za=Zb(f,n(Lt));Za.b()?Za=w():(Za=Za.c(),Za=(new A).d(Za.Lc));var Za=Za.wa(),db=(new $ra).a(),Za=hd(Za,db),Za=lq(0,uq(0,g,Pa,Za.b()?f:Za.c()),O().Wa),Pa=(new My).e(Ia.da);Tw(new Uw,e,Yh(f,n(Fd))?gC():Yra(),!0,E,I).Ob(Pa);f=Pa.r;I=[Za];if(0>f.x)throw(new X).e("0");
db=I.length|0;Za=f.x+db|0;hC(f,Za);Ca(f.z,0,f.z,db,f.x);for(var db=f.z,Qb=db.j.length,bc=0,rc=0,Fc=I.length|0,Qb=Fc<Qb?Fc:Qb,Fc=db.j.length,Qb=Qb<Fc?Qb:Fc;bc<Qb;)db.j[rc]=I[bc],bc=1+bc|0,rc=1+rc|0;f.x=Za;T(Ia.r,iC(jC(),Pa.r));T(sa,lq(R(),rq(sq(),Ia.r,ua),O().ua));V=(new Oy).mc(Py(vq(),V.Dh),da.r);da=Pc();sa=Ac().fi;V=L(V,da,sa).Bb.fa();return Jra(a,c,b,e,g,h,l,V,y,k,E,p)}WB.prototype.$classData=q({C1a:0},!1,"amf.plugins.domain.webapi.resolution.ExtendsHelper$",{C1a:1,f:1});var asa=void 0;
function Az(){asa||(asa=(new WB).a());return asa}function kC(){}kC.prototype=new r;kC.prototype.constructor=kC;kC.prototype.a=function(){return this};function vpa(a,b,c){if(wj(b)&&wj(c)){a=B(c.ea,xj().rf).G;Pja(b,a.b()?null:a.c(),B(c.ea,xj().rf).E);a=B(c.ea,xj().af).G;a=a.b()?null:a.c();c=B(c.ea,xj().af).E;var e=xj().af;ff(b,e,Nh(new Oh,a,c))}else fm(b)&&fm(c)?bsa(a,b,c):jm(b)&&jm(c)&&csa(a,b,c)}
function csa(a,b,c){var e=B(b.ea,im().du),f=(new dsa).a(),g=z(),e=e.$b(f,g.s);B(c.ea,im().du).X(t(new u,function(a,b,c){return function(a){return wj(a)?b.Ja(B(a.ea,xj().rf))?void 0:esa(c,a):esa(c,qr(rr(),c.k,a))}}(a,e,b)))}
function bsa(a,b,c){var e=sr(c),f=t(new u,function(a,b){return function(a){return(new P).N(a,Xp(b.ea,a))}}(a,c)),g=pf();e.ka(f,g.s).qq(t(new u,function(){return function(a){return null!==a}}(a))).X(t(new u,function(a,b,c){return function(a){if(null!==a){var e=a.pa();a=a.Ba();var f=b.ea.Pb.Ta(e);if(x(f)){var g=f.i,g=is(js(),g);if(!g.b()&&(g=g.c().pa(),mm(g))){vpa(wpa(),g,a);return}}if(w()===f)return fsa(b,e,qr(rr(),b.k,a),uj(c.ea,e).E);throw(new v).d(f);}throw(new v).d(a);}}(a,b,c)))}
kC.prototype.$classData=q({H1a:0},!1,"amf.plugins.domain.webapi.resolution.stages.DataNodeMerging$",{H1a:1,f:1});var gsa=void 0;function wpa(){gsa||(gsa=(new kC).a());return gsa}function lC(){this.m2=null}lC.prototype=new r;lC.prototype.constructor=lC;lC.prototype.a=function(){hsa=this;this.m2=(new ct).a();return this};function isa(a,b,c,e){zn(b)&&zn(c)?jsa(a,b,e,B(b.g,yn().mf),B(c.g,yn().mf)):Cn(b)&&Cn(c)?jsa(a,b,e,B(b.g,Bn().mf),B(c.g,Bn().mf)):Um(b)&&Um(c)&&ksa(a,e,b,c)}
function jsa(a,b,c,e,f){var g=function(a){return function(b){return b.Fa()&&b.Ng(t(new u,function(){return function(a){return null!==a&&!Yh(a.E,n(lsa))}}(a)))}}(a);if(g(e)&&g(f)&&(e=e.Ng(t(new u,function(){return function(a){return B(a.g,vn().Md).G.qa()}}(a))),a=f.Ng(t(new u,function(){return function(a){return B(a.g,vn().Md).G.qa()}}(a))),e!==a)){a=Bo().SZ;f=b.k;e=w();var g=Bo().SZ.Ad,h=Zb(b.ha(),n(Fd));b=b.Yb();c.Hc(a.k,f,e,g,h,xc().tb,b)}}
function ksa(a,b,c,e){var f=Uu(),g=B(c.g,Tm().$f).G,f=Aka(f,g.b()?null:g.c());b=qd(function(a,b,c,e){return function(f,g){g=!!g;var E=msa().m2.Ta(b.k),E=x(E)?E.i.Cd(t(new u,function(a,b){return function(a){a=B(a.g,Ej().$).G;a=a.b()?null:a.c();var c=B(b.g,Ej().$).G;return a===(c.b()?null:c.c())}}(a,f))):!1,V=B(f.g,Ej().$).G;V.b()?V=!1:(V=V.c(),V=c.Ja(V));if(!E&&!V){var E=msa().m2,V=b.k,da=msa().m2.Ta(b.k);if(x(da))da=da.i;else{if(w()!==da)throw(new v).d(da);z();Oj();da=(new $g).a().wa()}var sa=z(),
da=da.hg(f,sa.s);E.Ih((new P).N(V,da));g?(g=B(f.g,Ej().$).G,g="Unused operation uri parameter "+(g.b()?null:g.c())):(g=B(f.g,Ej().$).G,g="Unused uri parameter "+(g.b()?null:g.c()));e.Vs(rh().GJ,f.k,w(),g,Zb(f.E,n(Fd)),Yb(f))}}}(a,c,f,b));B(e.g,Tm().Pn).X(t(new u,function(a,b){return function(a){b.zf(a,!1)}}(a,b)));e=B(e.g,Tm().xk);c=t(new u,function(){return function(a){return Wa().Ia(B(a.g,Zm().kp)).wa()}}(a));f=z();e=e.md(c,f.s);c=t(new u,function(){return function(a){return B(a.g,yn().lp)}}(a));
f=z();e.md(c,f.s).X(t(new u,function(a,b){return function(a){b.zf(a,!0)}}(a,b)))}lC.prototype.$classData=q({M1a:0},!1,"amf.plugins.domain.webapi.resolution.stages.MergingValidator$",{M1a:1,f:1});var hsa=void 0;function msa(){hsa||(hsa=(new lC).a());return hsa}function rl(){}rl.prototype=new r;rl.prototype.constructor=rl;rl.prototype.a=function(){return this};rl.prototype.GQ=function(){Kk();var a=sb();pb(qb(),a)};rl.prototype.register=function(){return this.GQ()};
rl.prototype.$classData=q({Q1a:0},!1,"amf.plugins.features.AMFValidation$",{Q1a:1,f:1});var Gea=void 0;function nsa(){this.oX=this.fc=this.bza=this.qf=this.bi=null}nsa.prototype=new r;nsa.prototype.constructor=nsa;function osa(a,b,c,e){var f=a.oX;a=a.fc.Ov;sc()===a?(a=b.Uv,a=a.b()?(new A).d(b.Ad):a):tc()===a?(a=b.Rv,a=a.b()?(new A).d(b.Ad):a):a=(new A).d(b.Ad);psa(f,qsa(new mC,a,e.b()?"":e.c(),b.k,c,xc().tb,b.k))}
function nC(a,b){a:{for(var c=b.rc().sc();!c.b();){if(Gc(c.fa().t)===a){a=(new A).d(c.fa());break a}c=c.sa()}a=w()}if(x(a)){var e=a.i;a=!1;c=null;b=Wa().Ia(uj(b.ca(),e));if(x(b)&&(a=!0,c=b,b=c.i,sj(b.t)))return(new A).d((new Be).Er(b.E,b.t,(new A).d(rsa(b.t))));if(a)return b=c.i,(new A).d((new Be).Er(b.E,b.t,w()))}return w()}function ssa(a,b,c){return b.dw.Cd(t(new u,function(a,b){return function(a){return b.Ja(a)}}(a,c)))}
function tsa(a,b,c){x(b.fA)&&usa(b);x(b.nj)&&vsa(b);x(b.ax)&&wsa(a,b,c);b.Qy.X(t(new u,function(a,b,c){return function(h){if(x(h.Ea))if(re(ta(),h.Ea.c(),"NonEmptyList")){var k=nC(h.Dj,c);if(x(k)){var l=k.i;if(null!==l){var p=l.yg;es(p)&&(p.Tb.b()&&oC(a,b,h,c.k),void 0)}}}else throw Lb(Mb(),(new Nb).e("Unsupported property node value "+h.Ea.c()));if(x(h.Xk)){var y=!1,I=null,E=nC(h.Dj,c);a:{if(x(E)){var y=!0,I=E,V=I.i;if(null!==V){var da=V.yg;if(es(da)){var sa=da.Tb.Ka(),ua=h.Xk.c(),Ia=(new ph).e(ua),
Pa=pC();sa<qC(Pa,Ia.ia,10)&&oC(a,b,h,c.k);break a}}}if(y){var Za=I.i;if(null!==Za&&sj(Za.yg)){var db=h.Xk.c(),Qb=(new ph).e(db);1<qC(pC(),Qb.ia,10)&&oC(a,b,h,c.k);break a}}if(y){var bc=I.i;if(null!==bc&&Kb(bc.yg)){var rc=h.Xk.c(),Fc=(new ph).e(rc);1<qC(pC(),Fc.ia,10)&&oC(a,b,h,c.k);break a}}h.Xk.Ja("0")||oC(a,b,h,c.k);void 0}}if(x(h.aq)){var Rd=nC(h.Dj,c);if(x(Rd)){var Ld=Rd.i;if(null!==Ld){var ze=Ld.th;if(sj(Ld.yg)&&x(ze)){var Td=ze.i;if(Lo(Td)){var Je=h.aq.c(),$d=(new ph).e(Je);qC(pC(),$d.ia,10)<=
(Td.length|0)&&oC(a,b,h,c.k)}}}}}if(x(h.yp)){var te=!1,Hd=null,ie=nC(h.Dj,c);a:{if(x(ie)){var te=!0,Hd=ie,Nd=Hd.i;if(null!==Nd){var td=Nd.th;if(sj(Nd.yg)&&x(td)){var yd=td.i;if(Lo(yd)){var ud=h.yp.c(),Ve=(new ph).e(ud);qC(pC(),Ve.ia,10)>(yd.length|0)&&oC(a,b,h,c.k);break a}}}}if(te){var Me=Hd.i;if(null!==Me){var Rc=Me.th;if(sj(Me.yg)&&x(Rc)){var me=Rc.i;if(Wa().Ia(me).b()){var Ae=h.yp.c(),We=(new ph).e(Ae);0<qC(pC(),We.ia,10)&&oC(a,b,h,c.k)}}}}}}var od=h.Zm;if(!G().h(od)){z();var Ad=(new A).d(od);
if(null!==Ad.i&&0===Ad.i.Ge(1))xsa(a,b,h,c);else if(od&&od.$classData&&od.$classData.v.QC)xsa(a,b,h,c);else throw(new v).d(od);}if(x(h.hk)){var ue=!1,Id=null,gf=nC(h.Dj,c);a:{if(x(gf)){var ue=!0,Id=gf,Jd=Id.i;if(null!==Jd){var Vd=Jd.th;if(sj(Jd.yg)&&x(Vd)){var je=Vd.i;if(oa(je)){var Wd=Ea(je),ve=Wd.Na,$c=Wd.$a;if(-1!==(h.hk.c().indexOf(".")|0)){var we=h.hk.c(),cd=(new ph).e(we);rC(wa(),cd.ia)<=sC(Fa(),ve,$c)&&oC(a,b,h,c.k)}else{var ae=h.hk.c(),be=(new ph).e(ae),xe=tC(uC(),be.ia,10),ne=xe.Na,Ed=xe.$a;
(Ed===$c?(-2147483648^ne)>(-2147483648^ve):Ed>$c)||oC(a,b,h,c.k)}break a}}}}if(ue){var Ne=Id.i;if(null!==Ne){var hf=Ne.th;if(sj(Ne.yg)&&x(hf)){var Ef=hf.i;if(Da(Ef)){if(-1!==(h.hk.c().indexOf(".")|0)){var Vf=h.hk.c(),Xe=(new ph).e(Vf);rC(wa(),Xe.ia)<=(Ef|0)&&oC(a,b,h,c.k)}else{var Ye=h.hk.c(),vf=(new ph).e(Ye);qC(pC(),vf.ia,10)<=(Ef|0)&&oC(a,b,h,c.k)}break a}}}}if(ue){var Oe=Id.i;if(null!==Oe){var Xd=Oe.th;if(sj(Oe.yg)&&x(Xd)){var Ff=Xd.i;if(ma(Ff)){var rf=+Ff;if(-1!==(h.hk.c().indexOf(".")|0)){var cf=
h.hk.c(),hg=(new ph).e(cf);rC(wa(),hg.ia)<=rf&&oC(a,b,h,c.k)}else{var kg=h.hk.c(),oe=(new ph).e(kg).ia;ea(rC(wa(),oe))<=rf&&oC(a,b,h,c.k)}break a}}}}if(ue){var wf=Id.i;if(null!==wf){var ce=wf.th;if(sj(wf.yg)&&x(ce)){var jf=ce.i;if("number"===typeof jf){var Kf=+jf;if(-1!==(h.hk.c().indexOf(".")|0)){var xf=h.hk.c(),Pe=(new ph).e(xf);rC(wa(),Pe.ia)<=Kf&&oC(a,b,h,c.k)}else{var Ze=h.hk.c(),Oc=(new ph).e(Ze).ia;ea(rC(wa(),Oc))<=Kf&&oC(a,b,h,c.k)}}}}}}}if(x(h.jk)){var ke=!1,Lf=null,df=nC(h.Dj,c);a:{if(x(df)){var ke=
!0,Lf=df,de=Lf.i;if(null!==de){var yg=de.th;if(sj(de.yg)&&x(yg)){var Mf=yg.i;if(oa(Mf)){var pe=Ea(Mf),Qe=pe.Na,$e=pe.$a;if(-1!==(h.jk.c().indexOf(".")|0)){var kf=h.jk.c(),Re=(new ph).e(kf);rC(wa(),Re.ia)>=sC(Fa(),Qe,$e)&&oC(a,b,h,c.k)}else{var le=h.jk.c(),Se=(new ph).e(le),Nf=tC(uC(),Se.ia,10),Gf=Nf.Na,yf=Nf.$a;(yf===$e?(-2147483648^Gf)<(-2147483648^Qe):yf<$e)||oC(a,b,h,c.k)}break a}}}}if(ke){var ef=Lf.i;if(null!==ef){var lf=ef.th;if(sj(ef.yg)&&x(lf)){var mf=lf.i;if(Da(mf)){if(-1!==(h.jk.c().indexOf(".")|
0)){var zg=h.jk.c(),yh=(new ph).e(zg);rC(wa(),yh.ia)>=(mf|0)&&oC(a,b,h,c.k)}else{var Ag=h.jk.c(),zh=(new ph).e(Ag);qC(pC(),zh.ia,10)>=(mf|0)&&oC(a,b,h,c.k)}break a}}}}if(ke){var Hf=Lf.i;if(null!==Hf){var Sf=Hf.th;if(sj(Hf.yg)&&x(Sf)){var ig=Sf.i;if(ma(ig)){var Wf=+ig;if(-1!==(h.jk.c().indexOf(".")|0)){var Kg=h.jk.c(),Bg=(new ph).e(Kg);rC(wa(),Bg.ia)>=Wf&&oC(a,b,h,c.k)}else{var Xg=h.jk.c(),If=(new ph).e(Xg).ia;ea(rC(wa(),If))>=Wf&&oC(a,b,h,c.k)}break a}}}}if(ke){var lg=Lf.i;if(null!==lg){var Cg=lg.th;
if(sj(lg.yg)&&x(Cg)){var mg=Cg.i;if("number"===typeof mg){var Lg=+mg;if(-1!==(h.jk.c().indexOf(".")|0)){var bh=h.jk.c(),ch=(new ph).e(bh);rC(wa(),ch.ia)>=Lg&&oC(a,b,h,c.k)}else{var Mg=h.jk.c(),Hj=(new ph).e(Mg).ia;ea(rC(wa(),Hj))>=Lg&&oC(a,b,h,c.k)}}}}}}}if(x(h.ik)){var Ah=!1,Of=null,dh=nC(h.Dj,c);a:{if(x(dh)){var Ah=!0,Of=dh,Xf=Of.i;if(null!==Xf){var Ng=Xf.th;if(sj(Xf.yg)&&x(Ng)){var wi=Ng.i;if(oa(wi)){var Hi=Ea(wi),Yf=Hi.Na,ji=Hi.$a;if(-1!==(h.ik.c().indexOf(".")|0)){var mj=h.ik.c(),xi=(new ph).e(mj);
rC(wa(),xi.ia)<sC(Fa(),Yf,ji)&&oC(a,b,h,c.k)}else{var Og=h.ik.c(),Ij=(new ph).e(Og),nj=tC(uC(),Ij.ia,10),oj=nj.Na,zk=nj.$a;(zk===ji?(-2147483648^oj)>=(-2147483648^Yf):zk>ji)||oC(a,b,h,c.k)}break a}}}}if(Ah){var ng=Of.i;if(null!==ng){var gh=ng.th;if(sj(ng.yg)&&x(gh)){var ki=gh.i;if(Da(ki)){if(-1!==(h.ik.c().indexOf(".")|0)){var Zi=h.ik.c(),li=(new ph).e(Zi);rC(wa(),li.ia)<(ki|0)&&oC(a,b,h,c.k)}else{var $i=h.ik.c(),pj=(new ph).e($i);qC(pC(),pj.ia,10)<(ki|0)&&oC(a,b,h,c.k)}break a}}}}if(Ah){var Tf=Of.i;
if(null!==Tf){var mi=Tf.th;if(sj(Tf.yg)&&x(mi)){var aj=mi.i;if(ma(aj)){var Ii=+aj;if(-1!==(h.ik.c().indexOf(".")|0)){var qj=h.ik.c(),Pl=(new ph).e(qj);rC(wa(),Pl.ia)<Ii&&oC(a,b,h,c.k)}else{var ni=h.ik.c(),Ak=(new ph).e(ni).ia;ea(rC(wa(),Ak))<Ii&&oC(a,b,h,c.k)}break a}}}}if(Ah){var Jj=Of.i;if(null!==Jj){var $k=Jj.th;if(sj(Jj.yg)&&x($k)){var wl=$k.i;if("number"===typeof wl){var Am=+wl;if(-1!==(h.ik.c().indexOf(".")|0)){var ip=h.ik.c(),xo=(new ph).e(ip);rC(wa(),xo.ia)<Am&&oC(a,b,h,c.k)}else{var kw=h.ik.c(),
Cu=(new ph).e(kw).ia;ea(rC(wa(),Cu))<Am&&oC(a,b,h,c.k)}}}}}}}if(x(h.kk)){var Nq=!1,Tr=null,yo=nC(h.Dj,c);a:{if(x(yo)){var Nq=!0,Tr=yo,Wm=Tr.i;if(null!==Wm){var Ur=Wm.th;if(sj(Wm.yg)&&x(Ur)){var gt=Ur.i;if(oa(gt)){var Vr=Ea(gt),Oq=Vr.Na,jp=Vr.$a;if(-1!==(h.kk.c().indexOf(".")|0)){var Pq=h.kk.c(),ht=(new ph).e(Pq);rC(wa(),ht.ia)>sC(Fa(),Oq,jp)&&oC(a,b,h,c.k)}else{var it=h.kk.c(),jt=(new ph).e(it),Qq=tC(uC(),jt.ia,10),lw=Qq.Na,zo=Qq.$a;(zo===jp?(-2147483648^lw)<=(-2147483648^Oq):zo<jp)||oC(a,b,h,c.k)}break a}}}}if(Nq){var Ao=
Tr.i;if(null!==Ao){var kt=Ao.th;if(sj(Ao.yg)&&x(kt)){var Wr=kt.i;if(Da(Wr)){if(-1!==(h.kk.c().indexOf(".")|0)){var kp=h.kk.c(),Du=(new ph).e(kp);rC(wa(),Du.ia)>(Wr|0)&&oC(a,b,h,c.k)}else{var lt=h.kk.c(),mt=(new ph).e(lt);qC(pC(),mt.ia,10)>(Wr|0)&&oC(a,b,h,c.k)}break a}}}}if(Nq){var nt=Tr.i;if(null!==nt){var Eu=nt.th;if(sj(nt.yg)&&x(Eu)){var Rq=Eu.i;if(ma(Rq)){var Wn=+Rq;if(-1!==(h.kk.c().indexOf(".")|0)){var Fu=h.kk.c(),mw=(new ph).e(Fu);rC(wa(),mw.ia)>Wn&&oC(a,b,h,c.k)}else{var nw=h.kk.c(),Sq=(new ph).e(nw).ia;
ea(rC(wa(),Sq))>Wn&&oC(a,b,h,c.k)}break a}}}}if(Nq){var ot=Tr.i;if(null!==ot){var Tq=ot.th;if(sj(ot.yg)&&x(Tq)){var Uq=Tq.i;if("number"===typeof Uq){var pt=+Uq;if(-1!==(h.kk.c().indexOf(".")|0)){var Vq=h.kk.c(),ow=(new ph).e(Vq);rC(wa(),ow.ia)>pt&&oC(a,b,h,c.k)}else{var pw=h.kk.c(),qw=(new ph).e(pw).ia;ea(rC(wa(),qw))>pt&&oC(a,b,h,c.k)}}}}}}}x(h.gh)&&ysa(a,b,h,c);x(h.oj)&&zsa(a,b,h,c);var ty=h.Um;if(!G().h(ty))throw Lb(Mb(),(new Nb).e("class property constraint not supported yet "+b.k));if(h.nj.qa())throw Lb(Mb(),
(new Nb).e("custom property constraint not supported yet "+b.k));if(h.Kq.qa())throw Lb(Mb(),(new Nb).e("customRdf property constraint not supported yet "+b.k));if(h.bq.qa())throw Lb(Mb(),(new Nb).e("multipleOf property constraint not supported yet "+b.k));if(h.Jr.qa())throw Lb(Mb(),(new Nb).e("patternedProperty property constraint not supported yet "+b.k));}}(a,b,c)))}
function ysa(a,b,c,e){var f=!1,g=null,h=nC(c.Dj,e);a:{if(x(h)&&(f=!0,g=h,h=g.i,null!==h)){var k=h.th;if(sj(h.yg)&&x(k)){f=k.i;Wa().Ia(f).qa()?(g=c.gh.c(),g=(new ph).e(g),h=G(),f=Asa((new qh).Di(g.ia,h),ja(f)).b()):f=!1;f&&oC(a,b,c,e.k);break a}}f&&(f=g.i,null!==f&&(f=f.yg,es(f)&&f.Tb.X(t(new u,function(a,b,c,e){return function(f){if(sj(f)){if(Wa().Ia(f).qa()){var g=b.gh.c(),g=(new ph).e(g),h=G();f=Asa((new qh).Di(g.ia,h),f.u()).b()}else f=!1;f&&oC(a,c,b,e.k)}}}(a,c,b,e)))))}}
function wsa(a,b,c){var e=b.ax.c(),f=e.gP;f.b()||(f=f.c(),Bsa(a,f).zf(c,t(new u,function(a,b,c,e){return function(c){a:{if(x(c)&&(c=c.i,null!==c)){c=c.Ba();osa(a,b,e.k,(new A).d(Gc(c.t)));break a}osa(a,b,e.k,w())}}}(a,b,e,c))))}function usa(a){throw Lb(Mb(),(new Nb).e("Closed constraint not supported yet: "+a.k));}
function xsa(a,b,c,e){var f=!1,g=null,h=nC(c.Dj,e);a:{if(x(h)&&(f=!0,g=h,h=g.i,null!==h)){var k=h.th;if(sj(h.yg)&&x(k)&&(h=k.i,Lo(h))){c.Zm.Ja(h)||oC(a,b,c,e.k);void 0;break a}}f&&(f=g.i,null!==f&&(f=f.yg,es(f)&&f.Tb.X(t(new u,function(a,b,c,e){return function(f){sj(f)&&(b.Zm.Ja(f.t)||oC(a,c,b,e.k))}}(a,c,b,e)))))}}function Csa(a){for(var b=a.bi,c=cA(),e=Nz(),b=Oz(b,c,e);b.Qa();)c=b.cq(),Yl(c)&&Dsa(a,c);return hb(ib(),jb(function(a){return function(){return a.oX}}(a)),um())}
function rsa(a){var b=Zb(a.E,n(Lt));if(x(b)){var c=b.i;if(null!==c)return b=c.Lc,rs(b)?b.nq:a.t}if(w()===b)return a.t;throw(new v).d(b);}
function Dsa(a,b){for(var c=a.qf.bK,e=c.qe,c=dC(c),f=e.j[c];null!==f;){var g=f.Sa(),f=f.t,h=b.rc().ec(),k=function(){return function(a){return Gc(a)}}(a),l=Di().s;if(l===Di().s)if(h===G())k=G();else{for(var l=h.fa(),p=l=oz(new pz,k(l),G()),h=h.sa();h!==G();)var y=h.fa(),y=oz(new pz,k(y),G()),p=p.ve=y,h=h.sa();k=l}else{for(l=Rf(h,l);!h.b();)p=h.fa(),l.Ic(k(p)),h=h.sa();k=l.lc()}(ssa(a,f,k)||f.Ot.Ja(b.k))&&tsa(a,f,b);Esa(a,f,b);for(f=g;null===f&&0<c;)c=-1+c|0,f=e.j[c]}}
function Fsa(a,b,c,e){var f=C().cb,f=Gc(D(new F,f,"nodeKind")),g=C().cb,g=Gc(D(new F,g,"IRI")),h=c.pu;if(h===f){c=c.t;if(c!==g)throw Lb(Mb(),(new Nb).e("Not supported node constraint range "+c));b.ew.X(t(new u,function(a,b,c){return function(e){e=nC(e,b);if(x(e)&&(e=e.i,null!==e)){var f=e.th;if(sj(e.yg)&&x(f)&&(e=f.i,Lo(e))){if(-1===(e.indexOf("://")|0)){e=b.k;var f=a.oX,g=a.fc.Ov;sc()===g?(g=c.Uv,g=g.b()?(new A).d(c.Ad):g):tc()===g?(g=c.Rv,g=g.b()?(new A).d(c.Ad):g):g=(new A).d(c.Ad);psa(f,qsa(new mC,
g,"",c.k,e,xc().tb,c.k))}void 0}}}}(a,e,b)))}else throw Lb(Mb(),(new Nb).e("Not supported node constraint "+h));}function Esa(a,b,c){b.ew.X(t(new u,function(a,b,c){return function(h){h=Gsa(b,h);if(x(h)&&(h=h.i,null!==h)){var k=h.Ba();null!==h.pa()&&es(k)&&k.X(t(new u,function(a,b){return function(c){Yl(c)&&b.zC.X(t(new u,function(a,b,c){return function(e){Fsa(a,b,e,c)}}(a,b,c)))}}(a,c)))}}}(a,c,b)))}
function Bsa(a,b){a=a.bza.Ta(b);if(x(a))return a.i;if(w()===a)throw Lb(Mb(),(new Nb).e("Custom function validations not supported in customm SHACL validator: "+b));throw(new v).d(a);}function vsa(a){throw Lb(Mb(),(new Nb).e("Arbitray SHACL validations not supported in customm SHACL validator: "+a.k));}function oC(a,b,c,e){var f=a.oX;a=a.fc.Ov;sc()===a?(a=b.Uv,a=a.b()?(new A).d(b.Ad):a):tc()===a?(a=b.Rv,a=a.b()?(new A).d(b.Ad):a):a=(new A).d(b.Ad);psa(f,qsa(new mC,a,c.Dj,b.k,e,xc().tb,b.k))}
function Gsa(a,b){a:{for(var c=a.rc().sc();!c.b();){if(Gc(c.fa().t)===b){b=(new A).d(c.fa());break a}c=c.sa()}b=w()}return x(b)&&(b=b.i,a=Wa().Ia(uj(a.ca(),b)),x(a))?(b=a.i,a=b.t,es(a)?(new A).d((new P).N(b.E,a.Tb)):sj(a)||Kb(a)?(b=b.E,c=z(),(new A).d((new P).N(b,H(c,(new J).aa([a]))))):(new A).d((new P).N(b.E,G()))):w()}
function zsa(a,b,c,e){var f=qi().Mj,g=qi().Xj,h=qi().hj,k=qi().vi,l=nC(c.Dj,e);x(l)&&(l=l.i,null!==l&&(l=l.yg,(es(l)?l.Tb:H(z(),(new J).aa([l]))).X(t(new u,function(a,b,c,e,f,g,h,k){return function(l){l=sj(l)?(new A).d(rsa(l)):w();var Pa=!1,Za=null,db=b.oj;a:{if(x(db)&&(Pa=!0,Za=db,Za.i===c))break a;if(Pa&&Za.i===e)x(l)&&"boolean"===typeof l.i||oC(a,f,b,g.k);else if(Pa&&Za.i===h)b:{if(Pa=!1,Za=null,x(l)&&(Pa=!0,Za=l,Da(Za.i)))break b;Pa&&oa(Za.i)||oC(a,f,b,g.k)}else if(Pa&&Za.i===k)b:{if(Pa=!1,Za=
null,x(l)&&(Pa=!0,Za=l,Da(Za.i)))break b;Pa&&oa(Za.i)||Pa&&"number"===typeof Za.i||Pa&&ma(Za.i)||oC(a,f,b,g.k)}else if(Pa)throw l=Za.i,Lb(Mb(),(new Nb).e("Data type '"+l+"' for sh:datatype property constraint not supported yet"));}}}(a,c,f,g,b,e,h,k)))))}nsa.prototype.$classData=q({T1a:0},!1,"amf.plugins.features.validation.CustomShaclValidator",{T1a:1,f:1});function vC(){}vC.prototype=new r;vC.prototype.constructor=vC;vC.prototype.a=function(){return this};
function Hsa(a,b,c){return void 0===b?c:Wa().Ia(b).b()?c:b}vC.prototype.$classData=q({V1a:0},!1,"amf.plugins.features.validation.JSUtils$",{V1a:1,f:1});var Isa=void 0;function wC(){Isa||(Isa=(new vC).a());return Isa}function xC(){this.Og=null}xC.prototype=new r;xC.prototype.constructor=xC;xC.prototype.a=function(){Jsa=this;this.Og=(new yC).a();return this};xC.prototype.$classData=q({Z1a:0},!1,"amf.plugins.features.validation.PlatformValidator$",{Z1a:1,f:1});var Jsa=void 0;
function Ksa(){Jsa||(Jsa=(new xC).a());return Jsa}function zC(){this.Og=null;this.ma=!1}zC.prototype=new r;zC.prototype.constructor=zC;zC.prototype.a=function(){return this};function Lsa(){var a;Msa||(Msa=(new zC).a());a=Msa;if(!a.ma&&!a.ma){if(void 0===ba.SHACLValidator){var b;throw Lb(Mb(),(new Nb).e("Cannot find global SHACLValidator object"));}b=ba.SHACLValidator.$rdf;a.Og=b;a.ma=!0}return a.Og}zC.prototype.$classData=q({$1a:0},!1,"amf.plugins.features.validation.RDF$",{$1a:1,f:1});var Msa=void 0;
function AC(){}AC.prototype=new r;AC.prototype.constructor=AC;AC.prototype.a=function(){return this};function jba(){Nsa||(Nsa=(new AC).a());return Lsa().graph()}AC.prototype.$classData=q({b2a:0},!1,"amf.plugins.features.validation.RdflibRdfModel$",{b2a:1,f:1});var Nsa=void 0;function BC(){this.FDa=this.Hl=null}BC.prototype=new r;BC.prototype.constructor=BC;
function Osa(a,b){var c=(new Qd).d(a.FDa);b.X(t(new u,function(a,b){return function(c){var h=c.ax.c();if(h.Wg.Fa())var k=h.Wg,l=t(new u,function(){return function(a){a=a.CC();a=kd(ta(),a,"#",0);return"$"+ld((new md).vc(a))}}(a)),p=z(),l=","+k.ka(l,p.s).ng(",");else l="";k=b.ta;c="\n        |\n        |function "+Psa(h,c.k)+"($this, $value "+l+") {\n        |  var innerFn \x3d "+h.dE.c()+";\n        |  var input \x3d amfFindNode($this, {});\n        |  // print(JSON.stringify(input))\n        |  try {\n        |    return innerFn(input, $value "+
l+");\n        |  } catch(e) {\n        |    return false;\n        |  }\n        |}\n        |\n      ";c=(new ph).e(c);b.ta=""+k+Zz(c)}}(a,c)));return c.ta}
BC.prototype.hm=function(a){this.Hl=a;a='\n       |function amfExtractLiteral(v){\n       |    if(v.datatype \x3d\x3d null || v.datatype.value \x3d\x3d\x3d "http://www.w3.org/2001/XMLSchema#string") {\n       |        return v.value;\n       |    } else if(v.datatype.value \x3d\x3d\x3d "http://www.w3.org/2001/XMLSchema#integer") {\n       |        return parseInt(v.value);\n       |    } else if(v.datatype.value \x3d\x3d\x3d "http://www.w3.org/2001/XMLSchema#float") {\n       |        return parseFloat(v.value);\n       |    } else if(v.datatype.value \x3d\x3d\x3d "http://www.w3.org/2001/XMLSchema#double") {\n       |        return v.value;\n       |    } else if(v.datatype.value \x3d\x3d\x3d "http://www.w3.org/2001/XMLSchema#boolean") {\n       |        return v.value \x3d\x3d\x3d "true";\n       |    } else {\n       |        return v.value;\n       |    }\n       |}\n       |\n       |function amfCompactProperty(prop) {\n       |    var prefixes \x3d '+Qsa(this)+
';\n       |    for (var p in prefixes) {\n       |        if (prop.indexOf(prefixes[p]) \x3d\x3d\x3d 0) {\n       |            return p + ":" + prop.replace(prefixes[p], "")\n       |        }\n       |    }\n       |\n       |    return prop;\n       |}\n       |\n       |function amfFindNode(node, cache) {\n       |    var acc \x3d {"@id": amfCompactProperty(node.value)};\n       |    var pairs \x3d $data.query().match(node, "?p", "?o");\n       |    cache[node.value] \x3d acc;\n       |    for(var pair \x3d pairs.nextSolution(); pair; pair \x3d pairs.nextSolution()) {\n       |        var prop \x3d amfCompactProperty(pair.p.value);\n       |        if (pair.p.value \x3d\x3d\x3d "http://www.w3.org/1999/02/22-rdf-syntax-ns#type") {\n       |            prop \x3d "@type"\n       |        }\n       |\n       |        var value \x3d acc[prop] || [];\n       |        acc[prop] \x3d value;\n       |        if(prop \x3d\x3d\x3d "@type") {\n       |            value.push(amfCompactProperty(pair.o.value));\n       |        } else if(pair.o.termType \x3d\x3d\x3d "BlankNode" || pair.o.termType \x3d\x3d\x3d "NamedNode") {\n       |            value.push(cache[pair.o.value] || amfFindNode(pair.o, cache));\n       |        } else if (pair.o.termType \x3d\x3d\x3d "Literal"){\n       |          value.push(amfExtractLiteral(pair.o));\n       |        }\n       |    }\n       |\n       |    return acc;\n       |}\n       |\n       |function path(node, path) {\n       |  var acc \x3d [node]\n       |  if (node.constructor \x3d\x3d\x3d Array) {\n       |    acc \x3d node;\n       |  }\n       |  var paths \x3d path.replace(new RegExp(" ","g"), "").split("/") || [];\n       |  for (var i\x3d0; i\x3cpaths.length; i++) {\n       |    var nextPath \x3d paths[i];\n       |    var newAcc \x3d [];\n       |    for (var j\x3d0; j\x3cacc.length; j++) {\n       |      var nextNode \x3d acc[j];\n       |      newAcc \x3d newAcc.concat(nextNode[nextPath] || [])\n       |    }\n       |    acc \x3d newAcc;\n       |  }\n       |\n       |  return acc;\n       |}\n       |\n       |function value(node, propertyPath, value) {\n       |  var values \x3d path(node, propertyPath);\n       |  for (var i\x3d0; i\x3cvalues.length; i++) {\n       |    if (values[i] \x3d\x3d\x3d value)\n       |      return true;\n       |  }\n       |  return false;\n       |}\n       |\n       |function filterByPropertyValue(nodes, propertyPath, val) {\n       |  var acc \x3d [];\n       |  for (var i\x3d0; i\x3cnodes.length; i++) {\n       |    if (value(nodes[i], propertyPath, val)) {\n       |      acc.push(nodes[i]);\n       |    }\n       |  }\n       |  return acc;\n       |}\n       |\n       |\n       |\n       |function isModelType(node, type) {\n       |  if (node \x3d\x3d null) {\n       |    return false;\n       |  }\n       |  if (node.constructor \x3d\x3d\x3d Array \x26\x26 node.length \x3d\x3d 1) {\n       |    node \x3d node[0]\n       |  }\n       |  var types \x3d node[\'@type\'] || [];\n       |  for(var i\x3d0; i\x3ctypes.length; i++) {\n       |    if (types[i] \x3d\x3d\x3d type) {\n       |      return true;\n       |    }\n       |  }\n       |\n       |  return false;\n       |}\n       |\n       |if (typeof(console) \x3d\x3d\x3d "undefined") {\n       |  console \x3d {\n       |    log: function(x) { print(x) }\n       |  };\n       |}\n       |\n       |if (typeof(accumulators) \x3d\x3d "undefined") {\n       |  accumulators \x3d {};\n       |}\n       |for (var p in accumulators) {\n       |  delete accumulators[p];\n       |}\n    ';
a=(new ph).e(a);this.FDa=Zz(a);return this};
function Qsa(a){for(var b=C().Ku,c=(new ct).a(),e=b.qe,b=dC(b),f=e.j[b];null!==f;){var g=f.Sa(),h=f,f=h.oa,h=h.t,k=f;!1!==("schema-org"!==k&&"raml-http"!==k)&&(f=Vu(c,f,h),null!==f&&(f.t=h));for(f=g;null===f&&0<b;)b=-1+b|0,f=e.j[b]}e=a.Hl;e=x(e)?e.i.$E:pc(fc().db,G());b=qc();b=vA(b);b=Rf(c,b);g=c.qe;c=dC(c);for(h=g.j[c];null!==h;)for(f=h.Sa(),b.Ic((new P).N(h.oa,h.t.he)),h=f;null===h&&0<c;)c=-1+c|0,h=g.j[c];c=b.lc();b=t(new u,function(){return function(a){if(null!==a){var b=a.pa();a=a.Ba();return(new P).N(b,
a)}throw(new v).d(a);}}(a));Rsa||(Rsa=(new CC).a());g=vA(Rsa);e=De(e,b,g);c=c.Vp().Cf(c);e=e.td();c=Yi(c,e);a=t(new u,function(){return function(a){if(null!==a){var b=a.pa();a=a.Ba();return'  "'+b+'": "'+a+'"'}throw(new v).d(a);}}(a));e=aqa().s;return"{\n"+De(c,a,e).ng(",\n")+"}"}function Ssa(a,b){var c=t(new u,function(){return function(a){var b=a.ax;b.b()?a=w():(b=b.c().dE,b.b()?a=w():(b.c(),a=(new A).d(a)));return a.wa()}}(a)),e=z();b=b.md(c,e.s);return b.b()?w():(new A).d(Osa(a,b))}
BC.prototype.$classData=q({e2a:0},!1,"amf.plugins.features.validation.emitters.JSLibraryEmitter",{e2a:1,f:1});function DC(){this.mca=this.nca=this.$W=null}DC.prototype=new r;DC.prototype.constructor=DC;
function Tsa(a,b,c,e){if(Wa().Ia(e.Dj).qa()){var f=b.r,g=b.da,h=(new pq).e(g);R();var k=Th(R(),"@id");R();var l=Th(R(),c);qq(h,k,l);R();var p=C().cb,y=Gc(D(new F,p,"path")),I=Th(R(),y),E=(new My).e(h.da);oq(Cq(),E,a.qE(e.Dj));var V=E.r,da=[I];if(0>V.x)throw(new X).e("0");var sa=da.length|0,ua=V.x+sa|0;hC(V,ua);Ca(V.z,0,V.z,sa,V.x);for(var Ia=V.z,Pa=Ia.j.length,Za=0,db=0,Qb=da.length|0,bc=Qb<Pa?Qb:Pa,rc=Ia.j.length,Fc=bc<rc?bc:rc;Za<Fc;)Ia.j[db]=da[Za],Za=1+Za|0,db=1+db|0;V.x=ua;T(h.r,iC(jC(),E.r));
var Rd=e.Fr;if(!Rd.b()){var Ld=Rd.c();EC(h,"maxCount",Ld,(new A).d(e))}var ze=e.Xk;if(!ze.b()){var Td=ze.c();EC(h,"minCount",Td,(new A).d(e))}var Je=e.aq;if(!Je.b()){var $d=Je.c();EC(h,"maxLength",$d,(new A).d(e))}var te=e.yp;if(!te.b()){var Hd=te.c();EC(h,"minLength",Hd,(new A).d(e))}var ie=e.hk;if(!ie.b()){var Nd=ie.c();Usa(h,"maxExclusive",Nd,(new A).d(e))}var td=e.jk;if(!td.b()){var yd=td.c();Usa(h,"minExclusive",yd,(new A).d(e))}var ud=e.ik;if(!ud.b()){var Ve=ud.c();Usa(h,"maxInclusive",Ve,(new A).d(e))}var Me=
e.kk;if(!Me.b()){var Rc=Me.c();Usa(h,"minInclusive",Rc,(new A).d(e))}var me=e.bq;if(!me.b()){var Ae=me.c(),We=C().Gb;Vsa(h,Gc(D(new F,We,"multipleOfValidationParam")),Ae)}var od=e.gh;if(!od.b()){var Ad=od.c();EC(h,"pattern",Ad,w())}var ue=e.Ea;if(!ue.b()){var Id=ue.c();EC(h,"node",Id,w())}var gf=e.oj;if(!gf.b()){var Jd=gf.c();if(!re(ta(),Jd,"#float")&&!re(ta(),Jd,"#number")){R();var Vd=C().cb,je=Gc(D(new F,Vd,"datatype")),Wd=Th(R(),je),ve=(new My).e(h.da);oq(Cq(),ve,Jd);var $c=ve.r,we=[Wd];if(0>$c.x)throw(new X).e("0");
var cd=we.length|0,ae=$c.x+cd|0;hC($c,ae);Ca($c.z,0,$c.z,cd,$c.x);for(var be=$c.z,xe=be.j.length,ne=0,Ed=0,Ne=we.length|0,hf=Ne<xe?Ne:xe,Ef=be.j.length,Vf=hf<Ef?hf:Ef;ne<Vf;)be.j[Ed]=we[ne],ne=1+ne|0,Ed=1+Ed|0;$c.x=ae;T(h.r,iC(jC(),ve.r))}}if(e.Um.Fa())if(1===e.Um.Ka()){R();var Xe=C().cb,Ye=Gc(D(new F,Xe,"class")),vf=Th(R(),Ye),Oe=(new My).e(h.da);oq(Cq(),Oe,e.Um.fa());var Xd=Oe.r,Ff=[vf];if(0>Xd.x)throw(new X).e("0");var rf=Ff.length|0,cf=Xd.x+rf|0;hC(Xd,cf);Ca(Xd.z,0,Xd.z,rf,Xd.x);for(var hg=Xd.z,
kg=hg.j.length,oe=0,wf=0,ce=Ff.length|0,jf=ce<kg?ce:kg,Kf=hg.j.length,xf=jf<Kf?jf:Kf;oe<xf;)hg.j[wf]=Ff[oe],oe=1+oe|0,wf=1+wf|0;Xd.x=cf;T(h.r,iC(jC(),Oe.r))}else{R();var Pe=C().cb,Ze=Gc(D(new F,Pe,"or")),Oc=Th(R(),Ze),ke=(new My).e(h.da),Lf=ke.r,df=ke.da,de=(new pq).e(df);R();var yg=Th(R(),"@list"),Mf=(new My).e(de.da),pe=Mf.r,Qe=Mf.da,$e=(new My).e(Qe);e.Um.X(t(new u,function(a,b){return function(a){var c=b.r,e=b.da,f=(new pq).e(e);R();var g=C().cb,g=Gc(D(new F,g,"class")),h=Th(R(),g),g=(new My).e(f.da);
oq(Cq(),g,a);a=g.r;h=[h];if(0>a.x)throw(new X).e("0");var k=h.length|0,l=a.x+k|0;hC(a,l);Ca(a.z,0,a.z,k,a.x);for(var k=a.z,p=k.j.length,y=0,I=0,E=h.length|0,p=E<p?E:p,E=k.j.length,p=p<E?p:E;y<p;)k.j[I]=h[y],y=1+y|0,I=1+I|0;a.x=l;T(f.r,iC(jC(),g.r));T(c,lq(R(),rq(sq(),f.r,e),O().ua))}}(a,$e)));R();FC();var kf=Py(vq(),Qe),Re=lq(0,(new GC).mc(kf,$e.r),O().Nc);T(pe,Re);var le=Mf.r,Se=[yg];if(0>le.x)throw(new X).e("0");var Nf=Se.length|0,Gf=le.x+Nf|0;hC(le,Gf);Ca(le.z,0,le.z,Nf,le.x);for(var yf=le.z,ef=
yf.j.length,lf=0,mf=0,zg=Se.length|0,yh=zg<ef?zg:ef,Ag=yf.j.length,zh=yh<Ag?yh:Ag;lf<zh;)yf.j[mf]=Se[lf],lf=1+lf|0,mf=1+mf|0;le.x=Gf;T(de.r,iC(jC(),Mf.r));T(Lf,lq(R(),rq(sq(),de.r,df),O().ua));var Hf=ke.r,Sf=[Oc];if(0>Hf.x)throw(new X).e("0");var ig=Sf.length|0,Wf=Hf.x+ig|0;hC(Hf,Wf);Ca(Hf.z,0,Hf.z,ig,Hf.x);for(var Kg=Hf.z,Bg=Kg.j.length,Xg=0,If=0,lg=Sf.length|0,Cg=lg<Bg?lg:Bg,mg=Kg.j.length,Lg=Cg<mg?Cg:mg;Xg<Lg;)Kg.j[If]=Sf[Xg],Xg=1+Xg|0,If=1+If|0;Hf.x=Wf;T(h.r,iC(jC(),ke.r))}var bh=e.nj;bh.b()||
bh.c().zf(h,c);if(e.Zm.Fa()){R();var ch=C().cb,Mg=Gc(D(new F,ch,"in")),Hj=Th(R(),Mg),Ah=(new My).e(h.da),Of=Ah.r,dh=Ah.da,Xf=(new pq).e(dh);R();var Ng=Th(R(),"@list"),wi=(new My).e(Xf.da),Hi=wi.r,Yf=wi.da,ji=(new My).e(Yf);e.Zm.X(t(new u,function(a,b){return function(a){HC(b,a,w())}}(a,ji)));R();FC();var mj=Py(vq(),Yf),xi=lq(0,(new GC).mc(mj,ji.r),O().Nc);T(Hi,xi);var Og=wi.r,Ij=[Ng];if(0>Og.x)throw(new X).e("0");var nj=Ij.length|0,oj=Og.x+nj|0;hC(Og,oj);Ca(Og.z,0,Og.z,nj,Og.x);for(var zk=Og.z,ng=
zk.j.length,gh=0,ki=0,Zi=Ij.length|0,li=Zi<ng?Zi:ng,$i=zk.j.length,pj=li<$i?li:$i;gh<pj;)zk.j[ki]=Ij[gh],gh=1+gh|0,ki=1+ki|0;Og.x=oj;T(Xf.r,iC(jC(),wi.r));T(Of,lq(R(),rq(sq(),Xf.r,dh),O().ua));var Tf=Ah.r,mi=[Hj];if(0>Tf.x)throw(new X).e("0");var aj=mi.length|0,Ii=Tf.x+aj|0;hC(Tf,Ii);Ca(Tf.z,0,Tf.z,aj,Tf.x);for(var qj=Tf.z,Pl=qj.j.length,ni=0,Ak=0,Jj=mi.length|0,$k=Jj<Pl?Jj:Pl,wl=qj.j.length,Am=$k<wl?$k:wl;ni<Am;)qj.j[Ak]=mi[ni],ni=1+ni|0,Ak=1+Ak|0;Tf.x=Ii;T(h.r,iC(jC(),Ah.r))}T(f,lq(R(),rq(sq(),
h.r,g),O().ua))}}DC.prototype.$ba=function(a){return(0<=(a.length|0)&&"http://"===a.substring(0,7)||0<=(a.length|0)&&"https://"===a.substring(0,8)||0<=(a.length|0)&&"file:"===a.substring(0,5))&&-1<(a.indexOf("/prop")|0)};
function Wsa(a,b,c){var e=c.k,f=b.r,g=b.da,h=(new pq).e(g);R();var k=Th(R(),"@id");R();var l=Th(R(),e);qq(h,k,l);R();var p=Th(R(),"@type");R();var y=C().cb,I=Gc(D(new F,y,"NodeShape")),E=Th(R(),I);qq(h,p,E);var V=a.$W;if(Ek().h(V)||Gk().h(V))var da=c.Uv,sa=da.b()?c.Ad:da.c();else if(Bk().h(V))var ua=c.Rv,sa=ua.b()?c.Ad:ua.c();else sa=c.Ad;if(""!==sa){R();var Ia=C().cb,Pa=Gc(D(new F,Ia,"message")),Za=Th(R(),Pa),db=(new My).e(h.da);HC(db,sa,w());var Qb=db.r,bc=[Za];if(0>Qb.x)throw(new X).e("0");var rc=
bc.length|0,Fc=Qb.x+rc|0;hC(Qb,Fc);Ca(Qb.z,0,Qb.z,rc,Qb.x);for(var Rd=Qb.z,Ld=Rd.j.length,ze=0,Td=0,Je=bc.length|0,$d=Je<Ld?Je:Ld,te=Rd.j.length,Hd=$d<te?$d:te;ze<Hd;)Rd.j[Td]=bc[ze],ze=1+ze|0,Td=1+Td|0;Qb.x=Fc;T(h.r,iC(jC(),db.r))}if(c.Ot.Fa()){R();var ie=C().cb,Nd=Gc(D(new F,ie,"targetNode")),td=Th(R(),Nd),yd=(new My).e(h.da),ud=yd.r,Ve=yd.da,Me=(new My).e(Ve);c.Ot.Ri().X(t(new u,function(a,b){return function(c){oq(Cq(),b,a.qE(c))}}(a,Me)));R();FC();var Rc=Py(vq(),Ve),me=lq(0,(new GC).mc(Rc,Me.r),
O().Nc);T(ud,me);var Ae=yd.r,We=[td];if(0>Ae.x)throw(new X).e("0");var od=We.length|0,Ad=Ae.x+od|0;hC(Ae,Ad);Ca(Ae.z,0,Ae.z,od,Ae.x);for(var ue=Ae.z,Id=ue.j.length,gf=0,Jd=0,Vd=We.length|0,je=Vd<Id?Vd:Id,Wd=ue.j.length,ve=je<Wd?je:Wd;gf<ve;)ue.j[Jd]=We[gf],gf=1+gf|0,Jd=1+Jd|0;Ae.x=Ad;T(h.r,iC(jC(),yd.r))}if(c.dw.Fa()){R();var $c=C().cb,we=Gc(D(new F,$c,"targetClass")),cd=Th(R(),we),ae=(new My).e(h.da),be=ae.r,xe=ae.da,ne=(new My).e(xe);c.dw.X(t(new u,function(a,b){return function(c){oq(Cq(),b,a.qE(c))}}(a,
ne)));R();FC();var Ed=Py(vq(),xe),Ne=lq(0,(new GC).mc(Ed,ne.r),O().Nc);T(be,Ne);var hf=ae.r,Ef=[cd];if(0>hf.x)throw(new X).e("0");var Vf=Ef.length|0,Xe=hf.x+Vf|0;hC(hf,Xe);Ca(hf.z,0,hf.z,Vf,hf.x);for(var Ye=hf.z,vf=Ye.j.length,Oe=0,Xd=0,Ff=Ef.length|0,rf=Ff<vf?Ff:vf,cf=Ye.j.length,hg=rf<cf?rf:cf;Oe<hg;)Ye.j[Xd]=Ef[Oe],Oe=1+Oe|0,Xd=1+Xd|0;hf.x=Xe;T(h.r,iC(jC(),ae.r))}var kg=c.fA;if(!kg.b()){var oe=!!kg.c();if(oe){R();var wf=C().cb,ce=Gc(D(new F,wf,"closed")),jf=Th(R(),ce),Kf=(new My).e(h.da);HC(Kf,
""+oe,w());var xf=Kf.r,Pe=[jf];if(0>xf.x)throw(new X).e("0");var Ze=Pe.length|0,Oc=xf.x+Ze|0;hC(xf,Oc);Ca(xf.z,0,xf.z,Ze,xf.x);for(var ke=xf.z,Lf=ke.j.length,df=0,de=0,yg=Pe.length|0,Mf=yg<Lf?yg:Lf,pe=ke.j.length,Qe=Mf<pe?Mf:pe;df<Qe;)ke.j[de]=Pe[df],df=1+df|0,de=1+de|0;xf.x=Oc;T(h.r,iC(jC(),Kf.r))}(new A).d(void 0)}if(c.ew.Fa()){R();var $e=C().cb,kf=Gc(D(new F,$e,"targetObjectsOf")),Re=Th(R(),kf),le=(new My).e(h.da),Se=le.r,Nf=le.da,Gf=(new My).e(Nf);c.ew.X(t(new u,function(a,b){return function(c){oq(Cq(),
b,a.qE(c))}}(a,Gf)));R();FC();var yf=Py(vq(),Nf),ef=lq(0,(new GC).mc(yf,Gf.r),O().Nc);T(Se,ef);var lf=le.r,mf=[Re];if(0>lf.x)throw(new X).e("0");var zg=mf.length|0,yh=lf.x+zg|0;hC(lf,yh);Ca(lf.z,0,lf.z,zg,lf.x);for(var Ag=lf.z,zh=Ag.j.length,Hf=0,Sf=0,ig=mf.length|0,Wf=ig<zh?ig:zh,Kg=Ag.j.length,Bg=Wf<Kg?Wf:Kg;Hf<Bg;)Ag.j[Sf]=mf[Hf],Hf=1+Hf|0,Sf=1+Sf|0;lf.x=yh;T(h.r,iC(jC(),le.r))}if(c.bz.Fa()){R();var Xg=C().cb,If=Gc(D(new F,Xg,"or")),lg=Th(R(),If),Cg=(new My).e(h.da),mg=Cg.r,Lg=Cg.da,bh=(new pq).e(Lg);
R();var ch=Th(R(),"@list"),Mg=(new My).e(bh.da),Hj=Mg.r,Ah=Mg.da,Of=(new My).e(Ah);c.bz.X(t(new u,function(a,b){return function(a){oq(Cq(),b,a)}}(a,Of)));R();FC();var dh=Py(vq(),Ah),Xf=lq(0,(new GC).mc(dh,Of.r),O().Nc);T(Hj,Xf);var Ng=Mg.r,wi=[ch];if(0>Ng.x)throw(new X).e("0");var Hi=wi.length|0,Yf=Ng.x+Hi|0;hC(Ng,Yf);Ca(Ng.z,0,Ng.z,Hi,Ng.x);for(var ji=Ng.z,mj=ji.j.length,xi=0,Og=0,Ij=wi.length|0,nj=Ij<mj?Ij:mj,oj=ji.j.length,zk=nj<oj?nj:oj;xi<zk;)ji.j[Og]=wi[xi],xi=1+xi|0,Og=1+Og|0;Ng.x=Yf;T(bh.r,
iC(jC(),Mg.r));T(mg,lq(R(),rq(sq(),bh.r,Lg),O().ua));var ng=Cg.r,gh=[lg];if(0>ng.x)throw(new X).e("0");var ki=gh.length|0,Zi=ng.x+ki|0;hC(ng,Zi);Ca(ng.z,0,ng.z,ki,ng.x);for(var li=ng.z,$i=li.j.length,pj=0,Tf=0,mi=gh.length|0,aj=mi<$i?mi:$i,Ii=li.j.length,qj=aj<Ii?aj:Ii;pj<qj;)li.j[Tf]=gh[pj],pj=1+pj|0,Tf=1+Tf|0;ng.x=Zi;T(h.r,iC(jC(),Cg.r))}if(c.jy.Fa()){R();var Pl=C().cb,ni=Gc(D(new F,Pl,"and")),Ak=Th(R(),ni),Jj=(new My).e(h.da),$k=Jj.r,wl=Jj.da,Am=(new pq).e(wl);R();var ip=Th(R(),"@list"),xo=(new My).e(Am.da),
kw=xo.r,Cu=xo.da,Nq=(new My).e(Cu);c.jy.X(t(new u,function(a,b){return function(a){oq(Cq(),b,a)}}(a,Nq)));R();FC();var Tr=Py(vq(),Cu),yo=lq(0,(new GC).mc(Tr,Nq.r),O().Nc);T(kw,yo);var Wm=xo.r,Ur=[ip];if(0>Wm.x)throw(new X).e("0");var gt=Ur.length|0,Vr=Wm.x+gt|0;hC(Wm,Vr);Ca(Wm.z,0,Wm.z,gt,Wm.x);for(var Oq=Wm.z,jp=Oq.j.length,Pq=0,ht=0,it=Ur.length|0,jt=it<jp?it:jp,Qq=Oq.j.length,lw=jt<Qq?jt:Qq;Pq<lw;)Oq.j[ht]=Ur[Pq],Pq=1+Pq|0,ht=1+ht|0;Wm.x=Vr;T(Am.r,iC(jC(),xo.r));T($k,lq(R(),rq(sq(),Am.r,wl),O().ua));
var zo=Jj.r,Ao=[Ak];if(0>zo.x)throw(new X).e("0");var kt=Ao.length|0,Wr=zo.x+kt|0;hC(zo,Wr);Ca(zo.z,0,zo.z,kt,zo.x);for(var kp=zo.z,Du=kp.j.length,lt=0,mt=0,nt=Ao.length|0,Eu=nt<Du?nt:Du,Rq=kp.j.length,Wn=Eu<Rq?Eu:Rq;lt<Wn;)kp.j[mt]=Ao[lt],lt=1+lt|0,mt=1+mt|0;zo.x=Wr;T(h.r,iC(jC(),Jj.r))}if(c.dz.Fa()){R();var Fu=C().cb,mw=Gc(D(new F,Fu,"xone")),nw=Th(R(),mw),Sq=(new My).e(h.da),ot=Sq.r,Tq=Sq.da,Uq=(new pq).e(Tq);R();var pt=Th(R(),"@list"),Vq=(new My).e(Uq.da),ow=Vq.r,pw=Vq.da,qw=(new My).e(pw);c.dz.X(t(new u,
function(a,b){return function(a){oq(Cq(),b,a)}}(a,qw)));R();FC();var ty=Py(vq(),pw),vy=lq(0,(new GC).mc(ty,qw.r),O().Nc);T(ow,vy);var Bm=Vq.r,Gu=[pt];if(0>Bm.x)throw(new X).e("0");var rw=Gu.length|0,sw=Bm.x+rw|0;hC(Bm,sw);Ca(Bm.z,0,Bm.z,rw,Bm.x);for(var Hu=Bm.z,wy=Hu.j.length,Xr=0,Iu=0,xy=Gu.length|0,yy=xy<wy?xy:wy,zy=Hu.j.length,IA=yy<zy?yy:zy;Xr<IA;)Hu.j[Iu]=Gu[Xr],Xr=1+Xr|0,Iu=1+Iu|0;Bm.x=sw;T(Uq.r,iC(jC(),Vq.r));T(ot,lq(R(),rq(sq(),Uq.r,Tq),O().ua));var Cm=Sq.r,Ju=[nw];if(0>Cm.x)throw(new X).e("0");
var tw=Ju.length|0,qt=Cm.x+tw|0;hC(Cm,qt);Ca(Cm.z,0,Cm.z,tw,Cm.x);for(var rt=Cm.z,Ay=rt.j.length,Yr=0,Ku=0,By=Ju.length|0,lp=By<Ay?By:Ay,st=rt.j.length,JA=lp<st?lp:st;Yr<JA;)rt.j[Ku]=Ju[Yr],Yr=1+Yr|0,Ku=1+Ku|0;Cm.x=qt;T(h.r,iC(jC(),Sq.r))}if(c.Oy.qa()){R();var mp=C().cb,Lu=Gc(D(new F,mp,"not")),Cy=Th(R(),Lu),Xq=(new My).e(h.da),Mu=Xq.r,uw=Xq.da,tt=(new My).e(uw);oq(Cq(),tt,c.Oy.c());R();FC();var vw=Py(vq(),uw),KA=lq(0,(new GC).mc(vw,tt.r),O().Nc);T(Mu,KA);var Zr=Xq.r,LA=[Cy];if(0>Zr.x)throw(new X).e("0");
var ZG=LA.length|0,k0=Zr.x+ZG|0;hC(Zr,k0);Ca(Zr.z,0,Zr.z,ZG,Zr.x);for(var dP=Zr.z,l0=dP.j.length,$G=0,eP=0,m0=LA.length|0,n0=m0<l0?m0:l0,o0=dP.j.length,nea=n0<o0?n0:o0;$G<nea;)dP.j[eP]=LA[$G],$G=1+$G|0,eP=1+eP|0;Zr.x=k0;T(h.r,iC(jC(),Xq.r))}var p0=c.ax;x(p0)&&Xsa(a,h,e,p0.i);var oea=c.zC.Ym(t(new u,function(){return function(a){return a.pu}}(a))),pea=IC(new JC,oea,t(new u,function(){return function(a){return null!==a}}(a))),qea=t(new u,function(a,b){return function(c){if(null!==c){var e=c.pa();c=
c.Ba();R();var e=Gc(Wu(C(),e)),f=Th(R(),e),e=(new My).e(b.da),g=e.r,h=e.da,k=(new My).e(h);c.X(t(new u,function(a,b){return function(a){oq(Cq(),b,Gc(Wu(C(),a.t)))}}(a,k)));R();FC();c=Py(vq(),h);c=lq(0,(new GC).mc(c,k.r),O().Nc);T(g,c);c=e.r;f=[f];if(0>c.x)throw(new X).e("0");k=f.length|0;g=c.x+k|0;hC(c,g);Ca(c.z,0,c.z,k,c.x);for(var k=c.z,l=k.j.length,p=h=0,y=f.length|0,l=y<l?y:l,y=k.j.length,l=l<y?l:y;h<l;)k.j[p]=f[h],h=1+h|0,p=1+p|0;c.x=g;T(b.r,iC(jC(),e.r))}else throw(new v).d(c);}}(a,h)),rea=
Ce();pea.ka(qea,rea.s);if(c.Qy.Fa()){R();var sea=C().cb,tea=Gc(D(new F,sea,"property")),uea=Th(R(),tea),aH=(new My).e(h.da),vea=aH.r,q0=aH.da,r0=(new My).e(q0),s0=c.Qy,ww=t(new u,function(a,b,c){return function(e){if(a.$ba(e.ba))Tsa(a,b,e.ba,e);else{if(-1<(e.ba.indexOf("#")|0))var f=e.ba,f=kd(ta(),f,"#",0),f=ld((new md).vc(f)).split(".").join("-");else f=e.ba.split(".").join("-");Tsa(a,b,c+"/prop/"+f,e)}}}(a,r0,e)),bH=z();s0.ka(ww,bH.s);R();FC();var t0=Py(vq(),q0),wea=lq(0,(new GC).mc(t0,r0.r),O().Nc);
T(vea,wea);var xw=aH.r,fP=[uea];if(0>xw.x)throw(new X).e("0");var u0=fP.length|0,v0=xw.x+u0|0;hC(xw,v0);Ca(xw.z,0,xw.z,u0,xw.x);for(var cH=xw.z,w0=cH.j.length,ID=0,gP=0,x0=fP.length|0,y0=x0<w0?x0:w0,z0=cH.j.length,xea=y0<z0?y0:z0;ID<xea;)cH.j[gP]=fP[ID],ID=1+ID|0,gP=1+gP|0;xw.x=v0;T(h.r,iC(jC(),aH.r))}T(f,lq(R(),rq(sq(),h.r,g),O().ua))}function Vsa(a,b,c){R();b=Th(R(),b);R();c=Th(R(),c);qq(a,b,c)}
DC.prototype.qE=function(a){return 0<=(a.length|0)&&"http://"===a.substring(0,7)||0<=(a.length|0)&&"https://"===a.substring(0,8)||0<=(a.length|0)&&"file:"===a.substring(0,5)?a.trim():Gc(Wu(C(),a.split(".").join(":"))).trim()};
function Usa(a,b,c,e){var f=!1,g=null;e=e.b()?w():e.c().oj;a:{if(x(e)){var f=!0,g=e,h=g.i,k=C().Gb;if(h===Gc(D(new F,k,"number"))||h===qi().vi){R();f=C().cb;b=Gc(D(new F,f,b));f=Th(R(),b);b=(new My).e(a.da);c=(new ph).e(c);c=rC(wa(),c.ia);HC(b,""+c,(new A).d(qi().vi));c=b.r;f=[f];if(0>c.x)throw(new X).e("0");e=f.length|0;g=c.x+e|0;hC(c,g);Ca(c.z,0,c.z,e,c.x);e=c.z;for(var l=e.j.length,k=h=0,p=f.length|0,l=p<l?p:l,p=e.j.length,l=l<p?l:p;h<l;)e.j[k]=f[h],h=1+h|0,k=1+k|0;c.x=g;T(a.r,iC(jC(),b.r));break a}}if(w()===
e){R();f=C().cb;b=Gc(D(new F,f,b));f=Th(R(),b);b=(new My).e(a.da);c=(new ph).e(c);c=rC(wa(),c.ia);HC(b,""+c,(new A).d(qi().vi));c=b.r;f=[f];if(0>c.x)throw(new X).e("0");e=f.length|0;g=c.x+e|0;hC(c,g);Ca(c.z,0,c.z,e,c.x);e=c.z;l=e.j.length;k=h=0;p=f.length|0;l=p<l?p:l;p=e.j.length;for(l=l<p?l:p;h<l;)e.j[k]=f[h],h=1+h|0,k=1+k|0;c.x=g;T(a.r,iC(jC(),b.r))}else if(f&&g.i===qi().rg){R();f=C().cb;b=Gc(D(new F,f,b));f=Th(R(),b);b=(new My).e(a.da);c=(new ph).e(c);c=rC(wa(),c.ia);HC(b,""+c,(new A).d(qi().rg));
c=b.r;f=[f];if(0>c.x)throw(new X).e("0");e=f.length|0;g=c.x+e|0;hC(c,g);Ca(c.z,0,c.z,e,c.x);e=c.z;l=e.j.length;k=h=0;p=f.length|0;l=p<l?p:l;p=e.j.length;for(l=l<p?l:p;h<l;)e.j[k]=f[h],h=1+h|0,k=1+k|0;c.x=g;T(a.r,iC(jC(),b.r))}else if(f&&g.i===qi().hj){R();f=C().cb;b=Gc(D(new F,f,b));f=Th(R(),b);b=(new My).e(a.da);c=(new ph).e(c);c=rC(wa(),c.ia);c=Ba(+ba.Math.floor(c));HC(b,""+c,(new A).d(qi().hj));c=b.r;f=[f];if(0>c.x)throw(new X).e("0");e=f.length|0;g=c.x+e|0;hC(c,g);Ca(c.z,0,c.z,e,c.x);e=c.z;l=
e.j.length;k=h=0;p=f.length|0;l=p<l?p:l;p=e.j.length;for(l=l<p?l:p;h<l;)e.j[k]=f[h],h=1+h|0,k=1+k|0;c.x=g;T(a.r,iC(jC(),b.r))}else throw(new v).d(e);}}
function Xsa(a,b,c,e){var f=a.nca,g=c+"Validator",h=new KC;if(null===a)throw Lb(Mb(),null);h.l=a;h.EG=e;h.Rfa=g;h.cHa=c;vh(f,h);a=a.mca;f=new LC;f.Xya=c+"Constraint";f.Hv=e;f.eHa=c+"Path";f.dHa=c+"Validator";vh(a,f);R();c+="Path";a=Th(R(),c);c=(new My).e(b.da);HC(c,"true",w());e=c.r;a=[a];if(0>e.x)throw(new X).e("0");g=a.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,k=g.j.length,l=h=0,p=a.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=a[h],h=1+h|0,l=1+l|0;e.x=f;T(b.r,iC(jC(),
c.r))}
function EC(a,b,c,e){var f=!1,g=null,h=e.b()?w():e.c().oj;a:{if(x(h)){var f=!0,g=h,k=g.i,l=C().Gb;if(k===Gc(D(new F,l,"number"))){R();var p=C().cb,y=Gc(D(new F,p,"or")),I=Th(R(),y),E=(new My).e(a.da),V=E.r,da=E.da,sa=(new pq).e(da);R();var ua=Th(R(),"@list"),Ia=(new My).e(sa.da),Pa=Ia.r,Za=Ia.da,db=(new My).e(Za),Qb=db.r,bc=db.da,rc=(new pq).e(bc);R();var Fc=C().cb,Rd=Gc(D(new F,Fc,b)),Ld=Th(R(),Rd),ze=(new My).e(rc.da),Td=(new ph).e(c),Je=rC(wa(),Td.ia),$d=Ba(+ba.Math.floor(Je));HC(ze,""+$d,(new A).d(qi().hj));
var te=ze.r,Hd=[Ld];if(0>te.x)throw(new X).e("0");var ie=Hd.length|0,Nd=te.x+ie|0;hC(te,Nd);Ca(te.z,0,te.z,ie,te.x);for(var td=te.z,yd=td.j.length,ud=0,Ve=0,Me=Hd.length|0,Rc=Me<yd?Me:yd,me=td.j.length,Ae=Rc<me?Rc:me;ud<Ae;)td.j[Ve]=Hd[ud],ud=1+ud|0,Ve=1+Ve|0;te.x=Nd;T(rc.r,iC(jC(),ze.r));T(Qb,lq(R(),rq(sq(),rc.r,bc),O().ua));var We=db.r,od=db.da,Ad=(new pq).e(od);R();var ue=C().cb,Id=Gc(D(new F,ue,b)),gf=Th(R(),Id),Jd=(new My).e(Ad.da),Vd=(new ph).e(c),je=rC(wa(),Vd.ia);HC(Jd,""+je,(new A).d(qi().vi));
var Wd=Jd.r,ve=[gf];if(0>Wd.x)throw(new X).e("0");var $c=ve.length|0,we=Wd.x+$c|0;hC(Wd,we);Ca(Wd.z,0,Wd.z,$c,Wd.x);for(var cd=Wd.z,ae=cd.j.length,be=0,xe=0,ne=ve.length|0,Ed=ne<ae?ne:ae,Ne=cd.j.length,hf=Ed<Ne?Ed:Ne;be<hf;)cd.j[xe]=ve[be],be=1+be|0,xe=1+xe|0;Wd.x=we;T(Ad.r,iC(jC(),Jd.r));T(We,lq(R(),rq(sq(),Ad.r,od),O().ua));R();FC();var Ef=Py(vq(),Za),Vf=lq(0,(new GC).mc(Ef,db.r),O().Nc);T(Pa,Vf);var Xe=Ia.r,Ye=[ua];if(0>Xe.x)throw(new X).e("0");var vf=Ye.length|0,Oe=Xe.x+vf|0;hC(Xe,Oe);Ca(Xe.z,
0,Xe.z,vf,Xe.x);for(var Xd=Xe.z,Ff=Xd.j.length,rf=0,cf=0,hg=Ye.length|0,kg=hg<Ff?hg:Ff,oe=Xd.j.length,wf=kg<oe?kg:oe;rf<wf;)Xd.j[cf]=Ye[rf],rf=1+rf|0,cf=1+cf|0;Xe.x=Oe;T(sa.r,iC(jC(),Ia.r));T(V,lq(R(),rq(sq(),sa.r,da),O().ua));var ce=E.r,jf=[I];if(0>ce.x)throw(new X).e("0");var Kf=jf.length|0,xf=ce.x+Kf|0;hC(ce,xf);Ca(ce.z,0,ce.z,Kf,ce.x);for(var Pe=ce.z,Ze=Pe.j.length,Oc=0,ke=0,Lf=jf.length|0,df=Lf<Ze?Lf:Ze,de=Pe.j.length,yg=df<de?df:de;Oc<yg;)Pe.j[ke]=jf[Oc],Oc=1+Oc|0,ke=1+ke|0;ce.x=xf;T(a.r,iC(jC(),
E.r));break a}}if(f){R();var Mf=C().cb,pe=Gc(D(new F,Mf,b)),Qe=Th(R(),pe),$e=(new My).e(a.da),kf=e.b()?w():e.c().oj;HC($e,c,kf);var Re=$e.r,le=[Qe];if(0>Re.x)throw(new X).e("0");var Se=le.length|0,Nf=Re.x+Se|0;hC(Re,Nf);Ca(Re.z,0,Re.z,Se,Re.x);for(var Gf=Re.z,yf=Gf.j.length,ef=0,lf=0,mf=le.length|0,zg=mf<yf?mf:yf,yh=Gf.j.length,Ag=zg<yh?zg:yh;ef<Ag;)Gf.j[lf]=le[ef],ef=1+ef|0,lf=1+lf|0;Re.x=Nf;T(a.r,iC(jC(),$e.r))}else if(w()===h){R();var zh=C().cb,Hf=Gc(D(new F,zh,b)),Sf=Th(R(),Hf),ig=(new My).e(a.da);
HC(ig,c,w());var Wf=ig.r,Kg=[Sf];if(0>Wf.x)throw(new X).e("0");var Bg=Kg.length|0,Xg=Wf.x+Bg|0;hC(Wf,Xg);Ca(Wf.z,0,Wf.z,Bg,Wf.x);for(var If=Wf.z,lg=If.j.length,Cg=0,mg=0,Lg=Kg.length|0,bh=Lg<lg?Lg:lg,ch=If.j.length,Mg=bh<ch?bh:ch;Cg<Mg;)If.j[mg]=Kg[Cg],Cg=1+Cg|0,mg=1+mg|0;Wf.x=Xg;T(a.r,iC(jC(),ig.r))}else throw(new v).d(h);}}DC.prototype.S0=function(a){this.$W=a;this.nca=H(Wg(),G());this.mca=H(Wg(),G());return this};
function Ysa(a,b){var c=Ly(),e=(new My).e(c.Dh),f=(new ph).e(c.xh);Tc(f)&&Ny(e,c.xh);var f=e.r,g=e.da,h=(new My).e(g);b.X(t(new u,function(a,b){return function(c){Wsa(a,b,c)}}(a,h)));for(b=a.nca.Lb;!b.b();)b.fa().Ob(h),b=b.sa();for(a=a.mca.Lb;!a.b();)a.fa().Ob(h),a=a.sa();R();FC();a=Py(vq(),g);h=lq(0,(new GC).mc(a,h.r),O().Nc);T(f,h);return(new Oy).mc(Py(vq(),c.Dh),e.r)}
function HC(a,b,c){if(x(c)){var e=c.i,f=a.r,g=a.da,h=(new pq).e(g);R();var k=Th(R(),"@value");R();var l=Th(R(),b);qq(h,k,l);R();var p=Th(R(),"@type");R();var y=Th(R(),e);qq(h,p,y);T(f,lq(R(),rq(sq(),h.r,g),O().ua))}else if(w()===c){if(null===b)throw(new Rg).a();if(Sg(Tg(),"[1-9][\\d]*",b)){var I=a.r,E=a.da,V=(new pq).e(E);R();var da=Th(R(),"@value"),sa=(new My).e(V.da);kq(Cq(),sa,b,O().Oi);var ua=sa.r,Ia=[da];if(0>ua.x)throw(new X).e("0");var Pa=Ia.length|0,Za=ua.x+Pa|0;hC(ua,Za);Ca(ua.z,0,ua.z,Pa,
ua.x);for(var db=ua.z,Qb=db.j.length,bc=0,rc=0,Fc=Ia.length|0,Rd=Fc<Qb?Fc:Qb,Ld=db.j.length,ze=Rd<Ld?Rd:Ld;bc<ze;)db.j[rc]=Ia[bc],bc=1+bc|0,rc=1+rc|0;ua.x=Za;T(V.r,iC(jC(),sa.r));T(I,lq(R(),rq(sq(),V.r,E),O().ua))}else if("true"===b||"false"===b){var Td=a.r,Je=a.da,$d=(new pq).e(Je);R();var te=Th(R(),"@value"),Hd=(new My).e($d.da);kq(Cq(),Hd,b,O().ui);var ie=Hd.r,Nd=[te];if(0>ie.x)throw(new X).e("0");var td=Nd.length|0,yd=ie.x+td|0;hC(ie,yd);Ca(ie.z,0,ie.z,td,ie.x);for(var ud=ie.z,Ve=ud.j.length,
Me=0,Rc=0,me=Nd.length|0,Ae=me<Ve?me:Ve,We=ud.j.length,od=Ae<We?Ae:We;Me<od;)ud.j[Rc]=Nd[Me],Me=1+Me|0,Rc=1+Rc|0;ie.x=yd;T($d.r,iC(jC(),Hd.r));T(Td,lq(R(),rq(sq(),$d.r,Je),O().ua))}else if(Gc(Wu(C(),b))===Gc(Wu(C(),"amf-parser:NonEmptyList"))){var Ad=a.r,ue=a.da,Id=(new pq).e(ue);R();var gf=Th(R(),"@type"),Jd=(new My).e(Id.da);Cq();var Vd=C().cb;kq(0,Jd,Gc(D(new F,Vd,"NodeShape")),O().Wa);var je=Jd.r,Wd=[gf];if(0>je.x)throw(new X).e("0");var ve=Wd.length|0,$c=je.x+ve|0;hC(je,$c);Ca(je.z,0,je.z,ve,
je.x);for(var we=je.z,cd=we.j.length,ae=0,be=0,xe=Wd.length|0,ne=xe<cd?xe:cd,Ed=we.j.length,Ne=ne<Ed?ne:Ed;ae<Ne;)we.j[be]=Wd[ae],ae=1+ae|0,be=1+be|0;je.x=$c;T(Id.r,iC(jC(),Jd.r));R();var hf=C().cb,Ef=Gc(D(new F,hf,"message")),Vf=Th(R(),Ef),Xe=(new My).e(Id.da);kq(Cq(),Xe,"List cannot be empty",O().Wa);var Ye=Xe.r,vf=[Vf];if(0>Ye.x)throw(new X).e("0");var Oe=vf.length|0,Xd=Ye.x+Oe|0;hC(Ye,Xd);Ca(Ye.z,0,Ye.z,Oe,Ye.x);for(var Ff=Ye.z,rf=Ff.j.length,cf=0,hg=0,kg=vf.length|0,oe=kg<rf?kg:rf,wf=Ff.j.length,
ce=oe<wf?oe:wf;cf<ce;)Ff.j[hg]=vf[cf],cf=1+cf|0,hg=1+hg|0;Ye.x=Xd;T(Id.r,iC(jC(),Xe.r));R();var jf=C().cb,Kf=Gc(D(new F,jf,"property")),xf=Th(R(),Kf),Pe=(new My).e(Id.da),Ze=Pe.r,Oc=Pe.da,ke=(new My).e(Oc),Lf=ke.r,df=ke.da,de=(new pq).e(df);R();var yg=C().cb,Mf=Gc(D(new F,yg,"path")),pe=Th(R(),Mf),Qe=(new My).e(de.da);Cq();var $e=C().un;oq(0,Qe,Gc(D(new F,$e,"_1")));var kf=Qe.r,Re=[pe];if(0>kf.x)throw(new X).e("0");var le=Re.length|0,Se=kf.x+le|0;hC(kf,Se);Ca(kf.z,0,kf.z,le,kf.x);for(var Nf=kf.z,
Gf=Nf.j.length,yf=0,ef=0,lf=Re.length|0,mf=lf<Gf?lf:Gf,zg=Nf.j.length,yh=mf<zg?mf:zg;yf<yh;)Nf.j[ef]=Re[yf],yf=1+yf|0,ef=1+ef|0;kf.x=Se;T(de.r,iC(jC(),Qe.r));R();var Ag=C().cb,zh=Gc(D(new F,Ag,"minCount")),Hf=Th(R(),zh),Sf=(new My).e(de.da),ig=Sf.r,Wf=Sf.da,Kg=(new pq).e(Wf);R();var Bg=Th(R(),"@value"),Xg=(new My).e(Kg.da);kq(Cq(),Xg,"1",O().Oi);var If=Xg.r,lg=[Bg];if(0>If.x)throw(new X).e("0");var Cg=lg.length|0,mg=If.x+Cg|0;hC(If,mg);Ca(If.z,0,If.z,Cg,If.x);for(var Lg=If.z,bh=Lg.j.length,ch=0,Mg=
0,Hj=lg.length|0,Ah=Hj<bh?Hj:bh,Of=Lg.j.length,dh=Ah<Of?Ah:Of;ch<dh;)Lg.j[Mg]=lg[ch],ch=1+ch|0,Mg=1+Mg|0;If.x=mg;T(Kg.r,iC(jC(),Xg.r));T(ig,lq(R(),rq(sq(),Kg.r,Wf),O().ua));var Xf=Sf.r,Ng=[Hf];if(0>Xf.x)throw(new X).e("0");var wi=Ng.length|0,Hi=Xf.x+wi|0;hC(Xf,Hi);Ca(Xf.z,0,Xf.z,wi,Xf.x);for(var Yf=Xf.z,ji=Yf.j.length,mj=0,xi=0,Og=Ng.length|0,Ij=Og<ji?Og:ji,nj=Yf.j.length,oj=Ij<nj?Ij:nj;mj<oj;)Yf.j[xi]=Ng[mj],mj=1+mj|0,xi=1+xi|0;Xf.x=Hi;T(de.r,iC(jC(),Sf.r));T(Lf,lq(R(),rq(sq(),de.r,df),O().ua));
R();FC();var zk=Py(vq(),Oc),ng=lq(0,(new GC).mc(zk,ke.r),O().Nc);T(Ze,ng);var gh=Pe.r,ki=[xf];if(0>gh.x)throw(new X).e("0");var Zi=ki.length|0,li=gh.x+Zi|0;hC(gh,li);Ca(gh.z,0,gh.z,Zi,gh.x);for(var $i=gh.z,pj=$i.j.length,Tf=0,mi=0,aj=ki.length|0,Ii=aj<pj?aj:pj,qj=$i.j.length,Pl=Ii<qj?Ii:qj;Tf<Pl;)$i.j[mi]=ki[Tf],Tf=1+Tf|0,mi=1+mi|0;gh.x=li;T(Id.r,iC(jC(),Pe.r));T(Ad,lq(R(),rq(sq(),Id.r,ue),O().ua))}else if(0<=(b.length|0)&&"http://"===b.substring(0,7)||0<=(b.length|0)&&"https://"===b.substring(0,
8)||0<=(b.length|0)&&"file:"===b.substring(0,5))oq(Cq(),a,b);else{var ni=a.r,Ak=a.da,Jj=(new pq).e(Ak);R();var $k=Th(R(),"@value");R();var wl=Th(R(),b);qq(Jj,$k,wl);T(ni,lq(R(),rq(sq(),Jj.r,Ak),O().ua))}}else throw(new v).d(c);}DC.prototype.$classData=q({f2a:0},!1,"amf.plugins.features.validation.emitters.ValidationJSONLDEmitter",{f2a:1,f:1});function MC(){}MC.prototype=new r;MC.prototype.constructor=MC;MC.prototype.a=function(){return this};
function Zsa(){$sa||($sa=(new MC).a());var a=C().oD;return Gc(D(new F,a,"validationLibrary.js"))}MC.prototype.$classData=q({g2a:0},!1,"amf.plugins.features.validation.emitters.ValidationJSONLDEmitter$",{g2a:1,f:1});var $sa=void 0;function NC(){this.jza=this.Em=this.$W=null}NC.prototype=new r;NC.prototype.constructor=NC;
function OC(a,b,c,e,f){if(x(f))PC(a.Em,b,c,e,(new A).d(f.i));else if(w()===f){if(null===e)throw(new Rg).a();if(Sg(Tg(),"^-?[1-9]\\d*$|^0$",e))PC(a.Em,b,c,e,(new A).d(qi().pr));else if("true"===e||"false"===e)PC(a.Em,b,c,e,(new A).d(qi().Xj));else if(Gc(Wu(C(),e))===Gc(Wu(C(),"amf-parser:NonEmptyList"))){c=Qia(a.Em);b=c+"_c";e=a.Em;f=C().yi;f=Gc(D(new F,f,"type"));var g=C().cb;QC(e,c,f,Gc(D(new F,g,"NodeShape")));e=a.Em;f=C().cb;PC(e,c,Gc(D(new F,f,"message")),"List cannot be empty",w());e=a.Em;f=
C().cb;QC(e,c,Gc(D(new F,f,"property")),b);c=a.Em;e=C().cb;e=Gc(D(new F,e,"path"));f=C().un;QC(c,b,e,Gc(D(new F,f,"_1")));a=a.Em;c=C().cb;PC(a,b,Gc(D(new F,c,"minCount")),"1",(new A).d(qi().hj))}else 0<=(e.length|0)&&"http://"===e.substring(0,7)||0<=(e.length|0)&&"https://"===e.substring(0,8)||0<=(e.length|0)&&"file:"===e.substring(0,5)?RC(a,b,c,e):PC(a.Em,b,c,e,w())}else throw(new v).d(f);}
NC.prototype.$ba=function(a){return(0<=(a.length|0)&&"http://"===a.substring(0,7)||0<=(a.length|0)&&"https://"===a.substring(0,8)||0<=(a.length|0)&&"file:"===a.substring(0,5))&&-1<(a.indexOf("/prop")|0)};
function ata(a,b){var c=b.k,e=a.Em,f=C().yi,f=Gc(D(new F,f,"type")),g=C().cb;QC(e,c,f,Gc(D(new F,g,"NodeShape")));e=a.$W;Ek().h(e)||Gk().h(e)?(e=b.Uv,e=e.b()?b.Ad:e.c()):Bk().h(e)?(e=b.Rv,e=e.b()?b.Ad:e.c()):e=b.Ad;""!==e&&(f=C().cb,OC(a,c,Gc(D(new F,f,"message")),e,w()));b.Ot.Fa()&&b.Ot.Ri().X(t(new u,function(a,b){return function(c){var e=C().cb;return RC(a,b,Gc(D(new F,e,"targetNode")),a.qE(c))}}(a,c)));b.dw.Fa()&&b.dw.X(t(new u,function(a,b){return function(c){var e=C().cb;return RC(a,b,Gc(D(new F,
e,"targetClass")),a.qE(c))}}(a,c)));e=b.fA;if(!e.b()){if(e=!!e.c())f=C().cb,OC(a,c,Gc(D(new F,f,"closed")),""+e,w());(new A).d(void 0)}b.ew.Fa()&&b.ew.X(t(new u,function(a,b){return function(c){var e=C().cb;return RC(a,b,Gc(D(new F,e,"targetObjectsOf")),a.qE(c))}}(a,c)));b.bz.Fa()&&(e=bta(a,b.bz,vv(function(a){return function(b,c,e){RC(a,b,c,e)}}(a))),f=a.Em,g=C().cb,QC(f,c,Gc(D(new F,g,"or")),e));b.jy.Fa()&&(e=bta(a,b.jy,vv(function(a){return function(b,c,e){RC(a,b,c,e)}}(a))),f=a.Em,g=C().cb,QC(f,
c,Gc(D(new F,g,"and")),e));b.dz.Fa()&&(e=bta(a,b.dz,vv(function(a){return function(b,c,e){RC(a,b,c,e)}}(a))),f=a.Em,g=C().cb,QC(f,c,Gc(D(new F,g,"xone")),e));b.Oy.qa()&&(e=C().cb,RC(a,c,Gc(D(new F,e,"not")),b.Oy.c()));e=b.ax;x(e)&&cta(a,c,e.i);e=b.zC.Ym(t(new u,function(){return function(a){return a.pu}}(a)));e=IC(new JC,e,t(new u,function(){return function(a){return null!==a}}(a)));f=t(new u,function(a,b){return function(c){if(null!==c){var e=c.pa();c.Ba().X(t(new u,function(a,b,c){return function(e){return RC(a,
b,Gc(Wu(C(),c)),Gc(Wu(C(),e.t)))}}(a,b,e)))}else throw(new v).d(c);}}(a,c));g=Ce();e.ka(f,g.s);b.Qy.Fa()&&(b=b.Qy,a=t(new u,function(a,b){return function(c){if(a.$ba(c.ba)){var e=a.Em,f=C().cb;QC(e,b,Gc(D(new F,f,"property")),c.ba);dta(a,c.ba,c)}else{-1<(c.ba.indexOf("#")|0)?(e=c.ba,e=kd(ta(),e,"#",0),e=ld((new md).vc(e)).split(".").join("-")):e=c.ba.split(".").join("-");var e=b+"/prop/"+e,f=a.Em,g=C().cb;QC(f,b,Gc(D(new F,g,"property")),e);dta(a,e,c)}}}(a,c)),c=z(),b.ka(a,c.s))}
function eta(a,b,c){var e=Zsa();a.$W=b;a.Em=c;a.jza=e;return a}NC.prototype.qE=function(a){return 0<=(a.length|0)&&"http://"===a.substring(0,7)||0<=(a.length|0)&&"https://"===a.substring(0,8)||0<=(a.length|0)&&"file:"===a.substring(0,5)?a.trim():Gc(Wu(C(),a.split(".").join(":"))).trim()};
function bta(a,b,c){var e=Qia(a.Em),f=(new iA).$d(1),g=(new Qd).d(e+"_"+f.ta),h=g.ta,k=b.Ka(),l=z();b.cg(l.s).X(t(new u,function(a,b,c,e,f,g){return function(h){if(null!==h){var k=h.pa();h=h.si();var l=c.ta,Pa=C().yi;ax(b,l,Gc(D(new F,Pa,"first")),k);e.ta=1+e.ta|0;if(h<(-1+f|0)){k=g+"_"+e.ta;h=c.ta;l=C().yi;RC(a,h,Gc(D(new F,l,"rest")),k);c.ta=k;return}k=c.ta;h=C().yi;h=Gc(D(new F,h,"rest"));l=C().yi;return RC(a,k,h,Gc(D(new F,l,"nil")))}throw(new v).d(h);}}(a,c,g,f,k,e)));return h}
function fta(a,b){b.X(t(new u,function(a){return function(b){ata(a,b)}}(a)))}function RC(a,b,c,e){return QC(a.Em,b,c,e)}
function gta(a,b,c,e,f){var g=!1,h=null;f=f.b()?w():f.c().oj;a:{if(x(f)){var g=!0,h=f,k=h.i;if(k===qi().jp||k===qi().vi){g=C().cb;c=Gc(D(new F,g,c));e=(new ph).e(e);e=rC(wa(),e.ia);OC(a,b,c,""+e,(new A).d(qi().vi));break a}}w()===f?(g=C().cb,c=Gc(D(new F,g,c)),e=(new ph).e(e),e=rC(wa(),e.ia),OC(a,b,c,""+e,(new A).d(qi().vi))):g&&h.i===qi().rg?(g=C().cb,c=Gc(D(new F,g,c)),e=(new ph).e(e),e=rC(wa(),e.ia),OC(a,b,c,""+e,(new A).d(qi().rg))):g&&(g=h.i,g===qi().hj?g=!0:(h=C().mj,g=g===Gc(D(new F,h,"long"))),
g&&(g=C().cb,c=Gc(D(new F,g,c)),e=(new ph).e(e),e=rC(wa(),e.ia),e=Ba(+ba.Math.floor(e)),OC(a,b,c,""+e,(new A).d(qi().pr))))}}
function dta(a,b,c){if(Wa().Ia(c.Dj).qa()){var e=C().cb;RC(a,b,Gc(D(new F,e,"path")),a.qE(c.Dj));e=c.Fr;e.b()||(e=e.c(),SC(a,b,"maxCount",e,(new A).d(c)));e=c.Xk;e.b()||(e=e.c(),SC(a,b,"minCount",e,(new A).d(c)));e=c.aq;e.b()||(e=e.c(),SC(a,b,"maxLength",e,(new A).d(c)));e=c.yp;e.b()||(e=e.c(),SC(a,b,"minLength",e,(new A).d(c)));e=c.hk;e.b()||(e=e.c(),gta(a,b,"maxExclusive",e,(new A).d(c)));e=c.jk;e.b()||(e=e.c(),gta(a,b,"minExclusive",e,(new A).d(c)));e=c.ik;e.b()||(e=e.c(),gta(a,b,"maxInclusive",
e,(new A).d(c)));e=c.kk;e.b()||(e=e.c(),gta(a,b,"minInclusive",e,(new A).d(c)));e=c.bq;if(!e.b()){var e=e.c(),f=C().Gb;OC(a,b,Gc(D(new F,f,"multipleOfValidationParam")),e,w())}e=c.gh;e.b()||(e=e.c(),SC(a,b,"pattern",e,w()));e=c.Ea;e.b()||(e=e.c(),SC(a,b,"node",e,w()));e=c.oj;e.b()||(e=e.c(),re(ta(),e,"#integer")?(e=C().cb,RC(a,b,Gc(D(new F,e,"datatype")),qi().pr)):re(ta(),e,"#float")||re(ta(),e,"#number")||(f=C().cb,RC(a,b,Gc(D(new F,f,"datatype")),e)));if(c.Um.Fa())if(1===c.Um.Ka())e=C().cb,RC(a,
b,Gc(D(new F,e,"class")),c.Um.fa());else{var e=bta(a,c.Um,vv(function(a){return function(b,c,e){RC(a,b,c,e)}}(a))),f=a.Em,g=C().cb;QC(f,b,Gc(D(new F,g,"or")),e)}e=c.Kq;e.b()||e.c().zf(a.Em,b);c.Zm.Fa()&&(c=bta(a,c.Zm,vv(function(a,b){return function(c,e,f){OC(a,c,e,f,b.oj)}}(a,c))),e=C().cb,RC(a,b,Gc(D(new F,e,"in")),c))}}
function cta(a,b,c){hta(a,b,c);var e=b+"Constraint",f=b+"Validator",g=b+"Path",h=a.Em,k=C().yi,k=Gc(D(new F,k,"type")),l=C().cb;QC(h,e,k,Gc(D(new F,l,"ConstraintComponent")));h=C().cb;RC(a,e,Gc(D(new F,h,"validator")),f);c.Wg.Fa()?(g=e+"_param",f=C().cb,RC(a,e,Gc(D(new F,f,"parameter")),g),e=C().cb,RC(a,g,Gc(D(new F,e,"path")),c.Wg.fa().CC()),e=C().cb,RC(a,g,Gc(D(new F,e,"datatype")),c.Wg.fa().a6a())):(c=e+"_param",f=C().cb,RC(a,e,Gc(D(new F,f,"parameter")),c),e=C().cb,RC(a,c,Gc(D(new F,e,"path")),
g),e=C().cb,RC(a,c,Gc(D(new F,e,"datatype")),qi().Xj));OC(a,b,b+"Path","true",w())}
function SC(a,b,c,e,f){var g=!1,h=f.b()?w():f.c().oj;a:{if(x(h)){var g=!0,k=h.i,l=C().Gb;if(k===Gc(D(new F,l,"number"))){g=b+"_ointdoub1";f=b+"_ointdoub2";h=a.Em;k=C().cb;QC(h,b,Gc(D(new F,k,"or")),g);b=C().yi;RC(a,g,Gc(D(new F,b,"first")),g+"_v");b=C().cb;b=Gc(D(new F,b,c));h=(new ph).e(e);h=rC(wa(),h.ia);h=Ba(+ba.Math.floor(h));OC(a,g+"_v",b,""+h,(new A).d(qi().pr));b=C().yi;RC(a,g,Gc(D(new F,b,"rest")),f);b=C().yi;RC(a,f,Gc(D(new F,b,"first")),f+"_v");b=C().cb;c=Gc(D(new F,b,c));e=(new ph).e(e);
e=rC(wa(),e.ia);OC(a,f+"_v",c,""+e,(new A).d(qi().vi));e=C().yi;e=Gc(D(new F,e,"rest"));c=C().yi;RC(a,f,e,Gc(D(new F,c,"nil")));break a}}if(g)g=C().cb,c=Gc(D(new F,g,c)),f=f.b()?w():f.c().oj,OC(a,b,c,e,f);else if(w()===h)f=C().cb,OC(a,b,Gc(D(new F,f,c)),e,w());else throw(new v).d(h);}}
function hta(a,b,c){var e=b+"Validator",f=a.Em,g=C().yi,g=Gc(D(new F,g,"type")),h=C().cb;QC(f,e,g,Gc(D(new F,h,"JSValidator")));f=c.Ad;f.b()||(f=f.c(),g=C().cb,OC(a,e,Gc(D(new F,g,"message")),f,w()));f=e+"_url";g=C().cb;RC(a,e,Gc(D(new F,g,"jsLibrary")),f);g=c.JG;if(x(g))b=g.i,c.ai.X(t(new u,function(a,b){return function(c){var e=a.Em,f=C().cb;return PC(e,b,Gc(D(new F,f,"jsLibraryURL")),c,(new A).d("http://www.w3.org/2001/XMLSchema#anyUri"))}}(a,f))),c=C().cb,OC(a,e,Gc(D(new F,c,"jsFunctionName")),
b,w());else if(w()===g){if(!x(c.dE))throw Lb(Mb(),(new Nb).e("Cannot emit validator without JS code or JS function name"));var g=H(z(),(new J).aa([a.jza])),h=c.ai,k=z();g.la(h,k.s).X(t(new u,function(a,b){return function(c){var e=a.Em,f=C().cb;return PC(e,b,Gc(D(new F,f,"jsLibraryURL")),c,(new A).d("http://www.w3.org/2001/XMLSchema#anyUri"))}}(a,f)));f=C().cb;OC(a,e,Gc(D(new F,f,"jsFunctionName")),Psa(c,b),w())}else throw(new v).d(g);}
NC.prototype.$classData=q({j2a:0},!1,"amf.plugins.features.validation.emitters.ValidationRdfModelEmitter",{j2a:1,f:1});function TC(){}TC.prototype=new r;TC.prototype.constructor=TC;TC.prototype.a=function(){return this};
function ita(a,b){var c=Ly(),e=(new My).e(c.Dh),f=(new ph).e(c.xh);Tc(f)&&Ny(e,c.xh);var f=e.r,g=e.da,h=(new pq).e(g);R();var k=Th(R(),"@type");R();var l=UC("ValidationReport"),l=Th(R(),l);qq(h,k,l);R();var k=UC("conforms"),p=Th(R(),k),k=(new My).e(h.da);kq(Cq(),k,""+b.Pw,O().ui);l=k.r;p=[p];if(0>l.x)throw(new X).e("0");var y=p.length|0,I=l.x+y|0;hC(l,I);Ca(l.z,0,l.z,y,l.x);for(var y=l.z,E=y.j.length,V=0,da=0,sa=p.length|0,E=sa<E?sa:E,sa=y.j.length,E=E<sa?E:sa;V<E;)y.j[da]=p[V],V=1+V|0,da=1+da|0;
l.x=I;T(h.r,iC(jC(),k.r));if(b.nk.Fa()){b=b.nk;CB();k=fc().ci;p=b.Ej(DB(k));R();b=UC("result");k=Th(R(),b);b=(new My).e(h.da);l=b.r;y=b.da;I=(new My).e(y);p.X(t(new u,function(a,b){return function(a){VC();var c=b.r,e=b.da,f=(new pq).e(e);R();var g=Th(R(),"@type");R();var h=UC("ValidationResult"),k=Th(R(),h);qq(f,g,k);R();var l=UC("resultSeverity"),p=Th(R(),l),y=(new My).e(f.da);VC();var I=a.km,E=y.r,V=y.da,da=(new pq).e(V);R();var sa=Th(R(),"@id");R();if(xc().vw===I)var ua=UC("Info");else if(xc().Eg===
I)ua=UC("Warning");else{if(xc().tb!==I)throw Lb(Mb(),(new Nb).e("Unknown severity level "+I));ua=UC("Violation")}var Nd=Th(R(),ua);qq(da,sa,Nd);T(E,lq(R(),rq(sq(),da.r,V),O().ua));var td=y.r,yd=[p];if(0>td.x)throw(new X).e("0");var ud=yd.length|0,Ve=td.x+ud|0;hC(td,Ve);Ca(td.z,0,td.z,ud,td.x);for(var Me=td.z,Rc=Me.j.length,me=0,Ae=0,We=yd.length|0,od=We<Rc?We:Rc,Ad=Me.j.length,ue=od<Ad?od:Ad;me<ue;)Me.j[Ae]=yd[me],me=1+me|0,Ae=1+Ae|0;td.x=Ve;T(f.r,iC(jC(),y.r));R();var Id=UC("focusNode"),gf=Th(R(),
Id),Jd=(new My).e(f.da),Vd=Jd.r,je=Jd.da,Wd=(new pq).e(je);R();var ve=Th(R(),"@id");R();var $c=a.Wu,we=Th(R(),$c);qq(Wd,ve,we);T(Vd,lq(R(),rq(sq(),Wd.r,je),O().ua));var cd=Jd.r,ae=[gf];if(0>cd.x)throw(new X).e("0");var be=ae.length|0,xe=cd.x+be|0;hC(cd,xe);Ca(cd.z,0,cd.z,be,cd.x);for(var ne=cd.z,Ed=ne.j.length,Ne=0,hf=0,Ef=ae.length|0,Vf=Ef<Ed?Ef:Ed,Xe=ne.j.length,Ye=Vf<Xe?Vf:Xe;Ne<Ye;)ne.j[hf]=ae[Ne],Ne=1+Ne|0,hf=1+hf|0;cd.x=xe;T(f.r,iC(jC(),Jd.r));var vf=a.fw;if(!vf.b()){var Oe=vf.c();if(""!==Oe){R();
var Xd=UC("resultPath"),Ff=Th(R(),Xd),rf=(new My).e(f.da),cf=rf.r,hg=rf.da,kg=(new pq).e(hg);R();var oe=Th(R(),"@id");R();var wf=Th(R(),Oe);qq(kg,oe,wf);T(cf,lq(R(),rq(sq(),kg.r,hg),O().ua));var ce=rf.r,jf=[Ff];if(0>ce.x)throw(new X).e("0");var Kf=jf.length|0,xf=ce.x+Kf|0;hC(ce,xf);Ca(ce.z,0,ce.z,Kf,ce.x);for(var Pe=ce.z,Ze=Pe.j.length,Oc=0,ke=0,Lf=jf.length|0,df=Lf<Ze?Lf:Ze,de=Pe.j.length,yg=df<de?df:de;Oc<yg;)Pe.j[ke]=jf[Oc],Oc=1+Oc|0,ke=1+ke|0;ce.x=xf;T(f.r,iC(jC(),rf.r))}}R();var Mf=UC("resultMessage"),
pe=Th(R(),Mf);R();var Qe=a.Ad,$e=Th(R(),Qe);qq(f,pe,$e);R();var kf=UC("sourceShape"),Re=Th(R(),kf),le=(new My).e(f.da),Se=le.r,Nf=le.da,Gf=(new pq).e(Nf);R();var yf=Th(R(),"@id");R();var ef=a.Us,lf=Th(R(),ef);qq(Gf,yf,lf);T(Se,lq(R(),rq(sq(),Gf.r,Nf),O().ua));var mf=le.r,zg=[Re];if(0>mf.x)throw(new X).e("0");var yh=zg.length|0,Ag=mf.x+yh|0;hC(mf,Ag);Ca(mf.z,0,mf.z,yh,mf.x);for(var zh=mf.z,Hf=zh.j.length,Sf=0,ig=0,Wf=zg.length|0,Kg=Wf<Hf?Wf:Hf,Bg=zh.j.length,Xg=Kg<Bg?Kg:Bg;Sf<Xg;)zh.j[ig]=zg[Sf],Sf=
1+Sf|0,ig=1+ig|0;mf.x=Ag;T(f.r,iC(jC(),le.r));var If=a.og;if(!If.b()){var lg=If.c();R();var Cg=WC("lexicalPosition"),mg=Th(R(),Cg),Lg=(new My).e(f.da);VC();var bh=Lg.r,ch=Lg.da,Mg=(new pq).e(ch);R();var Hj=Th(R(),"@type");R();var Ah=WC("Position"),Of=Th(R(),Ah);qq(Mg,Hj,Of);R();var dh=WC("start"),Xf=Th(R(),dh),Ng=(new My).e(Mg.da),wi=Ng.r,Hi=Ng.da,Yf=(new pq).e(Hi);R();var ji=Th(R(),"@type");R();var mj=WC("Location"),xi=Th(R(),mj);qq(Yf,ji,xi);R();var Og=WC("line"),Ij=Th(R(),Og),nj=(new My).e(Yf.da);
kq(Cq(),nj,""+lg.cc.Dd.Ne,O().Oi);var oj=nj.r,zk=[Ij];if(0>oj.x)throw(new X).e("0");var ng=zk.length|0,gh=oj.x+ng|0;hC(oj,gh);Ca(oj.z,0,oj.z,ng,oj.x);for(var ki=oj.z,Zi=ki.j.length,li=0,$i=0,pj=zk.length|0,Tf=pj<Zi?pj:Zi,mi=ki.j.length,aj=Tf<mi?Tf:mi;li<aj;)ki.j[$i]=zk[li],li=1+li|0,$i=1+$i|0;oj.x=gh;T(Yf.r,iC(jC(),nj.r));R();var Ii=WC("column"),qj=Th(R(),Ii),Pl=(new My).e(Yf.da);kq(Cq(),Pl,""+lg.cc.Dd.eg,O().Oi);var ni=Pl.r,Ak=[qj];if(0>ni.x)throw(new X).e("0");var Jj=Ak.length|0,$k=ni.x+Jj|0;hC(ni,
$k);Ca(ni.z,0,ni.z,Jj,ni.x);for(var wl=ni.z,Am=wl.j.length,ip=0,xo=0,kw=Ak.length|0,Cu=kw<Am?kw:Am,Nq=wl.j.length,Tr=Cu<Nq?Cu:Nq;ip<Tr;)wl.j[xo]=Ak[ip],ip=1+ip|0,xo=1+xo|0;ni.x=$k;T(Yf.r,iC(jC(),Pl.r));T(wi,lq(R(),rq(sq(),Yf.r,Hi),O().ua));var yo=Ng.r,Wm=[Xf];if(0>yo.x)throw(new X).e("0");var Ur=Wm.length|0,gt=yo.x+Ur|0;hC(yo,gt);Ca(yo.z,0,yo.z,Ur,yo.x);for(var Vr=yo.z,Oq=Vr.j.length,jp=0,Pq=0,ht=Wm.length|0,it=ht<Oq?ht:Oq,jt=Vr.j.length,Qq=it<jt?it:jt;jp<Qq;)Vr.j[Pq]=Wm[jp],jp=1+jp|0,Pq=1+Pq|0;yo.x=
gt;T(Mg.r,iC(jC(),Ng.r));R();var lw=WC("end"),zo=Th(R(),lw),Ao=(new My).e(Mg.da),kt=Ao.r,Wr=Ao.da,kp=(new pq).e(Wr);R();var Du=Th(R(),"@type");R();var lt=WC("Location"),mt=Th(R(),lt);qq(kp,Du,mt);R();var nt=WC("line"),Eu=Th(R(),nt),Rq=(new My).e(kp.da);kq(Cq(),Rq,""+lg.cc.Lo.Ne,O().Oi);var Wn=Rq.r,Fu=[Eu];if(0>Wn.x)throw(new X).e("0");var mw=Fu.length|0,nw=Wn.x+mw|0;hC(Wn,nw);Ca(Wn.z,0,Wn.z,mw,Wn.x);for(var Sq=Wn.z,ot=Sq.j.length,Tq=0,Uq=0,pt=Fu.length|0,Vq=pt<ot?pt:ot,ow=Sq.j.length,pw=Vq<ow?Vq:
ow;Tq<pw;)Sq.j[Uq]=Fu[Tq],Tq=1+Tq|0,Uq=1+Uq|0;Wn.x=nw;T(kp.r,iC(jC(),Rq.r));R();var qw=WC("column"),ty=Th(R(),qw),vy=(new My).e(kp.da);kq(Cq(),vy,""+lg.cc.Lo.eg,O().Oi);var Bm=vy.r,Gu=[ty];if(0>Bm.x)throw(new X).e("0");var rw=Gu.length|0,sw=Bm.x+rw|0;hC(Bm,sw);Ca(Bm.z,0,Bm.z,rw,Bm.x);for(var Hu=Bm.z,wy=Hu.j.length,Xr=0,Iu=0,xy=Gu.length|0,yy=xy<wy?xy:wy,zy=Hu.j.length,IA=yy<zy?yy:zy;Xr<IA;)Hu.j[Iu]=Gu[Xr],Xr=1+Xr|0,Iu=1+Iu|0;Bm.x=sw;T(kp.r,iC(jC(),vy.r));T(kt,lq(R(),rq(sq(),kp.r,Wr),O().ua));var Cm=
Ao.r,Ju=[zo];if(0>Cm.x)throw(new X).e("0");var tw=Ju.length|0,qt=Cm.x+tw|0;hC(Cm,qt);Ca(Cm.z,0,Cm.z,tw,Cm.x);for(var rt=Cm.z,Ay=rt.j.length,Yr=0,Ku=0,By=Ju.length|0,lp=By<Ay?By:Ay,st=rt.j.length,JA=lp<st?lp:st;Yr<JA;)rt.j[Ku]=Ju[Yr],Yr=1+Yr|0,Ku=1+Ku|0;Cm.x=qt;T(Mg.r,iC(jC(),Ao.r));T(bh,lq(R(),rq(sq(),Mg.r,ch),O().ua));var mp=Lg.r,Lu=[mg];if(0>mp.x)throw(new X).e("0");var Cy=Lu.length|0,Xq=mp.x+Cy|0;hC(mp,Xq);Ca(mp.z,0,mp.z,Cy,mp.x);for(var Mu=mp.z,uw=Mu.j.length,tt=0,vw=0,KA=Lu.length|0,Zr=KA<uw?
KA:uw,LA=Mu.j.length,ZG=Zr<LA?Zr:LA;tt<ZG;)Mu.j[vw]=Lu[tt],tt=1+tt|0,vw=1+vw|0;mp.x=Xq;T(f.r,iC(jC(),Lg.r))}T(c,lq(R(),rq(sq(),f.r,e),O().ua))}}(a,I)));R();FC();a=Py(vq(),y);a=lq(0,(new GC).mc(a,I.r),O().Nc);T(l,a);a=b.r;k=[k];if(0>a.x)throw(new X).e("0");p=k.length|0;l=a.x+p|0;hC(a,l);Ca(a.z,0,a.z,p,a.x);p=a.z;V=p.j.length;y=I=0;da=k.length|0;V=da<V?da:V;da=p.j.length;for(V=V<da?V:da;I<V;)p.j[y]=k[I],I=1+I|0,y=1+y|0;a.x=l;T(h.r,iC(jC(),b.r))}T(f,lq(R(),rq(sq(),h.r,g),O().ua));return(new Oy).mc(Py(vq(),
c.Dh),e.r)}function WC(a){VC();var b=C().oD;return Gc(D(new F,b,a))}function UC(a){VC();var b=C().cb;return Gc(D(new F,b,a))}TC.prototype.$classData=q({k2a:0},!1,"amf.plugins.features.validation.emitters.ValidationReportJSONLDEmitter$",{k2a:1,f:1});var jta=void 0;function VC(){jta||(jta=(new TC).a());return jta}function XC(){}XC.prototype=new r;XC.prototype.constructor=XC;XC.prototype.a=function(){return this};
function kta(){lta||(lta=(new XC).a());var a=(new ph).e('\n      |#%Dialect 1.0\n      |\n      |dialect: Validation Profile\n      |version: 1.0\n      |usage: Dialect to describe validations over RAML documents\n      |external:\n      |  schema-org: "http://schema.org/"\n      |  shacl: "http://www.w3.org/ns/shacl#"\n      |  validation: "http://a.ml/vocabularies/amf-validation#"\n      |nodeMappings:\n      |  functionConstraintNode:\n      |    classTerm: shacl.JSConstraint\n      |    mapping:\n      |      message:\n      |        propertyTerm: shacl.message\n      |        range: string\n      |      code:\n      |        range: string\n      |        propertyTerm: validation.jsCode\n      |        #pattern: \'^function\\(.+\\)\\s*\\{.+\\}$\'\n      |      libraries:\n      |        propertyTerm: shacl.jsLibrary\n      |        range: string\n      |        allowMultiple: true\n      |      functionName:\n      |        propertyTerm: shacl.jsFunctionName\n      |        range: string\n      |  propertyConstraintNode:\n      |    classTerm: shacl.PropertyShape\n      |    mapping:\n      |      message:\n      |        propertyTerm: shacl.message\n      |        range: string\n      |      name:\n      |        propertyTerm: validation.ramlPropertyId\n      |        mandatory: true\n      |        range: string\n      |      pattern:\n      |        propertyTerm: shacl.pattern\n      |        range: string\n      |      maxCount:\n      |        propertyTerm: shacl.maxCount\n      |        range: integer\n      |      minCount:\n      |        propertyTerm: shacl.minCount\n      |        range: integer\n      |      minExclusive:\n      |        propertyTerm: shacl.minExclusive\n      |        range: number\n      |      maxExclusive:\n      |        propertyTerm: shacl.maxExclusive\n      |        range: number\n      |      minInclusive:\n      |        propertyTerm: shacl.minInclusive\n      |        range: number\n      |      maxInclusive:\n      |        propertyTerm: shacl.maxInclusive\n      |        range: number\n      |      datatype:\n      |         propertyTerm: shacl.datatype\n      |         range: string\n      |      in:\n      |        propertyTerm: shacl.in\n      |        allowMultiple: true\n      |        range: string\n      |  functionValidationNode:\n      |    classTerm: validation.FunctionValidation\n      |    mapping:\n      |      name:\n      |        propertyTerm: schema-org.name\n      |        range: string\n      |      message:\n      |        propertyTerm: shacl.message\n      |        range: string\n      |      targetClass:\n      |        propertyTerm: validation.ramlClassId\n      |        range: string\n      |        allowMultiple: true\n      |      functionConstraint:\n      |        mandatory: true\n      |        propertyTerm: shacl.js\n      |        range: functionConstraintNode\n      |  shapeValidationNode:\n      |    classTerm: validation.ShapeValidation\n      |    mapping:\n      |      name:\n      |        propertyTerm: schema-org.name\n      |        range: string\n      |      message:\n      |        propertyTerm: shacl.message\n      |        range: string\n      |      targetClass:\n      |        propertyTerm: validation.ramlClassId\n      |        range: string\n      |        allowMultiple: true\n      |      propertyConstraints:\n      |        mandatory: true\n      |        propertyTerm: shacl.property\n      |        mapKey: name\n      |        range: propertyConstraintNode\n      |  queryValidationNode:\n      |    classTerm: validation.QueryValidation\n      |    mapping:\n      |      name:\n      |        propertyTerm: schema-org.name\n      |        range: string\n      |      message:\n      |        propertyTerm: shacl.message\n      |        range: string\n      |      targetClass:\n      |        propertyTerm: validation.ramlClassId\n      |        range: string\n      |        allowMultiple: true\n      |      propertyConstraints:\n      |        propertyTerm: shacl.property\n      |        mapKey: name\n      |        range: propertyConstraintNode\n      |      targetQuery:\n      |        mandatory: true\n      |        propertyTerm: validation.targetQuery\n      |        range: string\n      |\n      |  ramlPrefixNode:\n      |    classTerm: validation.RamlPrefix\n      |    mapping:\n      |      prefix:\n      |        propertyTerm: validation.ramlPrefixName\n      |        range: string\n      |      uri:\n      |        propertyTerm: validation.ramlPrefixUri\n      |        range: string\n      |\n      |  profileNode:\n      |    classTerm: validation.Profile\n      |    mapping:\n      |      prefixes:\n      |        propertyTerm: validation.ramlPrefixes\n      |        mapKey: prefix\n      |        mapValue: uri\n      |        range: ramlPrefixNode\n      |      profile:\n      |        propertyTerm: schema-org.name\n      |        mandatory: true\n      |        range: string\n      |      description:\n      |        propertyTerm: schema-org.description\n      |        range: string\n      |      extends:\n      |        propertyTerm: validation.extendsProfile\n      |        range: string\n      |      violation:\n      |        propertyTerm: validation.setSeverityViolation\n      |        range: string\n      |        allowMultiple: true\n      |      info:\n      |        propertyTerm: validation.setSeverityInfo\n      |        range: string\n      |        allowMultiple: true\n      |      warning:\n      |        propertyTerm: validation.setSeverityWarning\n      |        range: string\n      |        allowMultiple: true\n      |      disabled:\n      |        propertyTerm: validation.disableValidation\n      |        range: string\n      |        allowMultiple: true\n      |      validations:\n      |        propertyTerm: validation.validations\n      |        mapKey: name\n      |        range: [ shapeValidationNode, queryValidationNode,functionValidationNode]\n      |documents:\n      |  fragments:\n      |    encodes:\n      |      ShapeValidation: queryValidationNode\n      |      FunctionValidation: functionValidationNode\n      |\n      |  library:\n      |    declares:\n      |      shapes: queryValidationNode\n      |      functions: functionValidationNode\n      |\n      |  root:\n      |    encodes: profileNode\n    ');return Zz(a)}
XC.prototype.$classData=q({p2a:0},!1,"amf.plugins.features.validation.model.ValidationDialectText$",{p2a:1,f:1});var lta=void 0;function YC(){this.iU=null}YC.prototype=new r;YC.prototype.constructor=YC;
YC.prototype.a=function(){mta=this;for(var a=(new P).N("pathParameterRequiredProperty",qd(function(){return function(a,b){var c=kr(a.ca(),Ej().df);c.b()?c=w():(c=c.c(),c=(new A).d(c.t));a=kr(a.ca(),Ej().kj);a.b()?a=w():(a=a.c(),a=(new A).d(a.t));a:{if(x(c)&&"path"===c.i&&x(a)){var e=a.i;if(ub(vb(),!1,e)){c=!0;break a}}c=x(c)&&"path"===c.i&&w()===a?!0:!1}c&&b.R(w())}}(this))),b=(new P).N("fileParameterMustBeInFormData",qd(function(){return function(a,b){var c=a.ca(),e=Ej().Fc,c=c.Pb.Ta(e);c.b()||(c=
c.c().t,Si(c)&&(a=kr(a.ca(),Ej().df),a.b()?a=w():(a=a.c(),a=(new A).d(a.t)),a.b()?a=!0:(a=a.c(),a=!(null!==a&&pa(a,"formData"))),a&&b.R(w())))}}(this))),c=(new P).N("minimumMaximumValidation",qd(function(){return function(a,b){var c=kr(a.ca(),xh().jj);c.b()||(c=c.c(),a=kr(a.ca(),xh().ij),a.b()||(a=a.c(),c=c.u(),c=(new ph).e(c),c=rC(wa(),c.ia),a=a.u(),a=(new ph).e(a),a=rC(wa(),a.ia),c>a&&b.R(w()),(new A).d(void 0)))}}(this))),e=(new P).N("minMaxItemsValidation",qd(function(){return function(a,b){var c=
kr(a.ca(),Wh().Bq);c.b()||(c=c.c(),a=kr(a.ca(),Wh().rr),a.b()||(a=a.c(),c=c.u(),c=(new ph).e(c),c=rC(wa(),c.ia),a=a.u(),a=(new ph).e(a),a=rC(wa(),a.ia),c>a&&b.R(w()),(new A).d(void 0)))}}(this))),f=(new P).N("minMaxPropertiesValidation",qd(function(){return function(a,b){var c=kr(a.ca(),ci().Dw);c.b()||(c=c.c(),a=kr(a.ca(),ci().Cw),a.b()||(a=a.c(),c=c.u(),c=(new ph).e(c),c=rC(wa(),c.ia),a=a.u(),a=(new ph).e(a),a=rC(wa(),a.ia),c>a&&b.R(w()),(new A).d(void 0)))}}(this))),g=(new P).N("minMaxLengthValidation",
qd(function(){return function(a,b){var c=kr(a.ca(),xh().Cq);c.b()||(c=c.c(),a=kr(a.ca(),xh().Aq),a.b()||(a=a.c(),c=(new ph).e(ja(c.t)),c=rC(wa(),c.ia),a=(new ph).e(ja(a.t)),a=rC(wa(),a.ia),c>a&&b.R(w()),(new A).d(void 0)))}}(this))),h=(new P).N("xmlWrappedScalar",qd(function(a){return function(b,c){if(di(b)&&(b=kr(b.ea,th().wn),x(b))){b=b.i.ca().Pb;var e=zx(),e=Va(e),f=Ce().s;b=De(b,e,f).Ib(t(new u,function(){return function(a){return re(ta(),Gc(a.xc.t),"xmlWrapped")}}(a)));b.b()||Cj(b.c().t.t)&&
c.R(w())}}}(this))),k=(new P).N("xmlNonScalarAttribute",qd(function(){return function(a,b){var c=a.ca(),e=th().wn,c=c.Pb.Ta(e);if(x(c)){if(c=c.i.t,Yl(c)&&(c=kr(c.ca(),ho().JF),!c.b())){c=Cj(c.c());a:{for(a=a.rc().ec();!a.b();){if("ScalarShape"===a.fa().ba){a=!0;break a}a=a.sa()}a=!1}c&&!a&&b.R(w())}}else if(w()!==c)throw(new v).d(c);}}(this))),l=(new P).N("patternValidation",qd(function(){return function(a,b){a=kr(a.ca(),xh().vl);if(!a.b()){a=a.c();try{var c=Tg(),e=a.u(),f=(new Au).e(e),g=$v(ta(),
f.zd,"\\[\\^\\]","[\\\\S\\\\s]");pu(c,g,0)}catch(h){if(null!==gi(Mb(),h))b.R(w());else throw h;}}}}(this))),a=[a,b,c,e,f,g,h,k,l,(new P).N("nonEmptyListOfProtocols",qd(function(){return function(a,b){a=a.ca();var c=Jn().yk;a=a.Pb.Ta(c);a.b()?c=w():(c=a.c(),c=(new A).d(c.t));c.b()||(c=c.c(),es(c)&&c.Tb.b()&&(a.b()?a=w():(a=a.c(),a=(new A).d(a.E)),b.R((new A).d((new P).N(a.b()?(M(),(new N).a()):a.c(),Jn().yk)))))}}(this)))],b=Ry(new Sy,Xs()),c=0,e=a.length|0;c<e;)Ty(b,a[c]),c=1+c|0;this.iU=b.gb;return this};
YC.prototype.$classData=q({w2a:0},!1,"amf.validations.CustomShaclFunctions$",{w2a:1,f:1});var mta=void 0;function ZC(){this.k2=this.d2=null}ZC.prototype=new r;ZC.prototype.constructor=ZC;function nta(a,b,c){a.d2=b;a.k2=c;return a}ZC.prototype.$classData=q({G2a:0},!1,"java.math.BigInteger$QuotAndRem",{G2a:1,f:1});function $C(){}$C.prototype=new r;$C.prototype.constructor=$C;$C.prototype.a=function(){return this};
function ota(a,b,c,e){a=0;var f=-1+e|0;if(!(0>=e))for(var g=0;;){var h=g,k=c.j[h];b.j[h]=k<<1|a;a=k>>>31|0;if(g===f)break;g=1+g|0}0!==a&&(b.j[e]=a)}function pta(a,b,c){a=c>>5;c&=31;var e=(b.Mf+a|0)+(0===c?0:1)|0,f=ia(La(Ra),[e]);qta(0,f,b.ne,a,c);b=aD(new bD,b.ff,e,f);cD(b);return b}
function rta(a,b,c){a=c>>5;var e=31&c;if(a>=b.Mf)return 0>b.ff?dD().YY:dD().Nz;c=b.Mf-a|0;var f=ia(La(Ra),[1+c|0]);sta(0,f,c,b.ne,a,e);if(0>b.ff){for(var g=0;g<a&&0===b.ne.j[g];)g=1+g|0;var h=0!==b.ne.j[g]<<(32-e|0);if(g<a||0<e&&h){for(g=0;g<c&&-1===f.j[g];)f.j[g]=0,g=1+g|0;g===c&&(c=1+c|0);a=g;f.j[a]=1+f.j[a]|0}}b=aD(new bD,b.ff,c,f);cD(b);return b}function eD(a,b){if(0===b.ff)return 0;a=b.Mf<<5;var c=b.ne.j[-1+b.Mf|0];0>b.ff&&tta(b)===(-1+b.Mf|0)&&(c=-1+c|0);return a=a-fa(c)|0}
function sta(a,b,c,e,f,g){for(a=0;a<f;)a=1+a|0;if(0===g)Ca(e,f,b,0,c);else{var h=32-g|0;for(a=0;a<(-1+c|0);)b.j[a]=e.j[a+f|0]>>>g|0|e.j[1+(a+f|0)|0]<<h,a=1+a|0;b.j[a]=e.j[a+f|0]>>>g|0}}function qta(a,b,c,e,f){if(0===f)Ca(c,0,b,e,b.j.length-e|0);else{a=32-f|0;b.j[-1+b.j.length|0]=0;for(var g=-1+b.j.length|0;g>e;){var h=g;b.j[h]=b.j[h]|c.j[-1+(g-e|0)|0]>>>a|0;b.j[-1+g|0]=c.j[-1+(g-e|0)|0]<<f;g=-1+g|0}}c=-1+e|0;if(!(0>=e))for(e=0;;){b.j[e]=0;if(e===c)break;e=1+e|0}}
$C.prototype.$classData=q({H2a:0},!1,"java.math.BitLevel$",{H2a:1,f:1});var uta=void 0;function fD(){uta||(uta=(new $C).a());return uta}function gD(){this.Wga=this.$ga=null}gD.prototype=new r;gD.prototype.constructor=gD;
gD.prototype.a=function(){vta=this;var a=(new J).aa([-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),b=a.z.length|0,b=ia(La(Ra),[b]),c;c=0;for(a=hD(new iD,a,0,a.z.length|0);a.Qa();){var e=a.Sa();b.j[c]=e|0;c=1+c|0}this.$ga=b;a=(new J).aa([-2147483648,1162261467,1073741824,1220703125,362797056,1977326743,1073741824,387420489,1E9,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128E7,1801088541,113379904,148035889,191102976,
244140625,308915776,387420489,481890304,594823321,729E6,887503681,1073741824,1291467969,1544804416,1838265625,60466176]);b=a.z.length|0;b=ia(La(Ra),[b]);c=0;for(a=hD(new iD,a,0,a.z.length|0);a.Qa();)e=a.Sa(),b.j[c]=e|0,c=1+c|0;this.Wga=b;return this};
function wta(a,b,c){if(0===b.Na&&0===b.$a)switch(c){case 0:return"0";case 1:return"0.0";case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return(0>c?"0E+":"0E")+(-2147483648===c?"2147483648":""+(-c|0))}else{a=0>b.$a;var e;e="";var f=18;if(a){var g=b.Na;b=b.$a;b=(new aq).La(-g|0,0!==g?~b:-b|0)}for(var g=b.Na,h=b.$a;;){b=g;var k=h,h=Fa(),g=jD(h,g,k,10,0),h=h.be,f=-1+f|0,k=h,l=g,p=l>>>16|0,l=ca(10,65535&l),p=ca(10,p),p=l+(p<<16)|0;ca(10,
k);e=""+(b-p|0)+e;b=h;if(0===g&&0===b)break}b=-1+((18-f|0)-c|0)|0;if(0<c&&-6<=b)if(c=1+b|0,0<c)e=e.substring(0,c)+"."+e.substring(c);else{f=-c|0;c=-1+f|0;if(!(0>=f))for(f=0;;){e="0"+e;if(f===c)break;f=1+f|0}e="0."+e}else 0!==c&&(c=""+b,0<b&&(c="+"+c),c="E"+c,e=1<(18-f|0)?e.substring(0,1)+"."+e.substring(1)+c:""+e+c);return a?"-"+e:e}}
function kD(a,b){a=b.ff;var c=b.Mf,e=b.ne;if(0===a)return"0";if(1===c)return b=(+(e.j[0]>>>0)).toString(10),0>a?"-"+b:b;b="";var f=ia(La(Ra),[c]);Ca(e,0,f,0,c);do{for(var g=0,e=-1+c|0;0<=e;){var h=g,g=f.j[e],k=xta(Fa(),g,h,1E9,0);f.j[e]=k;var h=k>>31,l=65535&k,k=k>>>16|0,p=ca(51712,l),l=ca(15258,l),y=ca(51712,k),p=p+((l+y|0)<<16)|0;ca(1E9,h);ca(15258,k);g=g-p|0;e=-1+e|0}e=""+g;for(b="000000000".substring(e.length|0)+e+b;0!==c&&0===f.j[-1+c|0];)c=-1+c|0}while(0!==c);f=0;for(c=b.length|0;;)if(f<c&&
48===(65535&(b.charCodeAt(f)|0)))f=1+f|0;else break;b=b.substring(f);return 0>a?"-"+b:b}gD.prototype.$classData=q({I2a:0},!1,"java.math.Conversion$",{I2a:1,f:1});var vta=void 0;function lD(){vta||(vta=(new gD).a());return vta}function mD(){}mD.prototype=new r;mD.prototype.constructor=mD;mD.prototype.a=function(){return this};
function yta(a,b,c,e,f,g,h){a=ia(La(Ra),[1+f|0]);var k=ia(La(Ra),[1+h|0]),l=fa(g.j[-1+h|0]);0!==l?(qta(fD(),k,g,0,l),qta(fD(),a,e,0,l)):(Ca(e,0,a,0,f),Ca(g,0,k,0,h));e=k.j[-1+h|0];for(c=-1+c|0;0<=c;){if(a.j[f]===e)g=-1;else{var p=a.j[f],y=a.j[-1+f|0];g=Fa();var I=xta(g,y,p,e,0),p=g.be;g=I;var E=65535&I,I=I>>>16|0,V=65535&e,da=e>>>16|0,sa=ca(E,V),V=ca(I,V),E=ca(E,da),E=sa+((V+E|0)<<16)|0;ca(p,e);ca(I,da);y=y-E|0;if(0!==g)a:for(g=1+g|0;;){I=g=-1+g|0;da=k.j[-2+h|0];p=65535&I;I=I>>>16|0;sa=65535&da;da=
da>>>16|0;E=ca(p,sa);sa=ca(I,sa);V=ca(p,da);p=E+((sa+V|0)<<16)|0;E=(E>>>16|0)+V|0;E=(ca(I,da)+(E>>>16|0)|0)+(((65535&E)+sa|0)>>>16|0)|0;da=y;I=a.j[-2+f|0];sa=y+e|0;if(0===((-2147483648^sa)<(-2147483648^y)?1:0)&&(y=sa,E^=-2147483648,da^=-2147483648,E===da?(-2147483648^p)>(-2147483648^I):E>da))continue a;break}}if(y=0!==g){zta();var y=a,p=f-h|0,da=k,I=h,E=g,ua;ua=0;var Ia;Ia=0;sa=-1+I|0;if(!(0>=I))for(V=0;;){var Pa=V;nD();var Za=da.j[Pa],db=65535&Za,Za=Za>>>16|0,Qb=65535&E,bc=E>>>16|0,rc=ca(db,Qb),
Qb=ca(Za,Qb),Fc=ca(db,bc),db=rc+((Qb+Fc|0)<<16)|0,rc=(rc>>>16|0)+Fc|0,bc=(ca(Za,bc)+(rc>>>16|0)|0)+(((65535&rc)+Qb|0)>>>16|0)|0,Za=db+ua|0;ua=(-2147483648^Za)<(-2147483648^db)?1+bc|0:bc;bc=y.j[p+Pa|0];Za=bc-Za|0;bc=(-2147483648^Za)>(-2147483648^bc)?-1:0;db=Ia;Ia=db>>31;db=Za+db|0;Ia=(-2147483648^db)<(-2147483648^Za)?1+(bc+Ia|0)|0:bc+Ia|0;y.j[p+Pa|0]=db;if(V===sa)break;V=1+V|0}E=y.j[p+I|0];da=E-ua|0;E=(-2147483648^da)>(-2147483648^E)?-1:0;V=Ia;sa=V>>31;V=da+V|0;y.j[p+I|0]=V;y=0!==((-2147483648^V)<
(-2147483648^da)?1+(E+sa|0)|0:E+sa|0)}if(y&&(g=-1+g|0,V=sa=0,y=-1+h|0,!(0>=h)))for(p=0;;){I=p;E=a.j[(f-h|0)+I|0];da=E+k.j[I]|0;E=(-2147483648^da)<(-2147483648^E)?1:0;da=sa+da|0;E=(-2147483648^da)<(-2147483648^sa)?1+(V+E|0)|0:V+E|0;sa=da;V=E;a.j[(f-h|0)+I|0]=sa;sa=V;V=0;if(p===y)break;p=1+p|0}null!==b&&(b.j[c]=g);f=-1+f|0;c=-1+c|0}return 0!==l?(sta(fD(),k,h,a,0,l),k):(Ca(a,0,k,0,h),a)}
function Ata(a,b,c,e,f){a=0;for(e=-1+e|0;0<=e;){var g=a;a=c.j[e];var h=Fa(),g=xta(h,a,g,f,0),h=h.be,k=65535&g,l=g>>>16|0,p=65535&f,y=f>>>16|0,I=ca(k,p),p=ca(l,p),k=ca(k,y),I=I+((p+k|0)<<16)|0;ca(h,f);ca(l,y);a=a-I|0;b.j[e]=g;e=-1+e|0}return a}mD.prototype.$classData=q({J2a:0},!1,"java.math.Division$",{J2a:1,f:1});var Bta=void 0;function zta(){Bta||(Bta=(new mD).a());return Bta}function oD(){}oD.prototype=new r;oD.prototype.constructor=oD;oD.prototype.a=function(){return this};
function Cta(a,b,c,e){for(var f=ia(La(Ra),[b]),g=0,h=0;g<e;){var k=a.j[g],l=k-c.j[g]|0,k=(-2147483648^l)>(-2147483648^k)?-1:0,p=h,h=p>>31,p=l+p|0,l=(-2147483648^p)<(-2147483648^l)?1+(k+h|0)|0:k+h|0;f.j[g]=p;h=l;g=1+g|0}for(;g<b;)c=a.j[g],l=h,e=l>>31,l=c+l|0,c=(-2147483648^l)<(-2147483648^c)?1+e|0:e,f.j[g]=l,h=c,g=1+g|0;return f}function Dta(a,b,c,e){for(a=-1+e|0;0<=a&&b.j[a]===c.j[a];)a=-1+a|0;return 0>a?0:(-2147483648^b.j[a])<(-2147483648^c.j[a])?-1:1}
function Eta(a,b,c,e){var f=ia(La(Ra),[1+b|0]),g=1,h=a.j[0],k=h+c.j[0]|0;f.j[0]=k;h=(-2147483648^k)<(-2147483648^h)?1:0;if(b>=e){for(;g<e;){var l=a.j[g],k=l+c.j[g]|0,l=(-2147483648^k)<(-2147483648^l)?1:0,h=k+h|0,k=(-2147483648^h)<(-2147483648^k)?1+l|0:l;f.j[g]=h;h=k;g=1+g|0}for(;g<b;)c=a.j[g],e=c+h|0,c=(-2147483648^e)<(-2147483648^c)?1:0,f.j[g]=e,h=c,g=1+g|0}else{for(;g<b;)l=a.j[g],k=l+c.j[g]|0,l=(-2147483648^k)<(-2147483648^l)?1:0,h=k+h|0,k=(-2147483648^h)<(-2147483648^k)?1+l|0:l,f.j[g]=h,h=k,g=
1+g|0;for(;g<e;)a=c.j[g],b=a+h|0,a=(-2147483648^b)<(-2147483648^a)?1:0,f.j[g]=b,h=a,g=1+g|0}0!==h&&(f.j[g]=h);return f}
function pD(a,b,c){a=b.ff;var e=c.ff,f=b.Mf,g=c.Mf;if(0===a)return c;if(0===e)return b;if(2===(f+g|0)){b=b.ne.j[0];c=c.ne.j[0];if(a===e){e=b+c|0;c=(-2147483648^e)<(-2147483648^b)?1:0;if(0===c)return(new bD).La(a,e);ye();return aD(new bD,a,2,qD(0,e,(new J).aa([c])))}e=dD();0>a?(a=b=c-b|0,c=(-2147483648^b)>(-2147483648^c)?-1:0):(a=c=b-c|0,c=(-2147483648^c)>(-2147483648^b)?-1:0);return rD(e,(new aq).La(a,c))}if(a===e)e=f>=g?Eta(b.ne,f,c.ne,g):Eta(c.ne,g,b.ne,f);else{var h=f!==g?f>g?1:-1:Dta(0,b.ne,c.ne,
f);if(0===h)return dD().Nz;1===h?e=Cta(b.ne,f,c.ne,g):(c=Cta(c.ne,g,b.ne,f),a=e,e=c)}a=aD(new bD,a|0,e.j.length,e);cD(a);return a}
function Fta(a,b,c){var e=b.ff;a=c.ff;var f=b.Mf,g=c.Mf;if(0===a)return b;if(0===e)return Gta(c);if(2===(f+g|0))return b=b.ne.j[0],f=0,c=c.ne.j[0],g=0,0>e&&(e=b,b=-e|0,f=0!==e?~f:-f|0),0>a&&(a=c,e=g,c=-a|0,g=0!==a?~e:-e|0),a=dD(),e=b,b=f,f=g,c=e-c|0,rD(a,(new aq).La(c,(-2147483648^c)>(-2147483648^e)?-1+(b-f|0)|0:b-f|0));var h=f!==g?f>g?1:-1:Dta(sD(),b.ne,c.ne,f);if(e===a&&0===h)return dD().Nz;-1===h?(c=e===a?Cta(c.ne,g,b.ne,f):Eta(c.ne,g,b.ne,f),a=-a|0):(c=e===a?Cta(b.ne,f,c.ne,g):Eta(b.ne,f,c.ne,
g),a=e);a=aD(new bD,a|0,c.j.length,c);cD(a);return a}oD.prototype.$classData=q({K2a:0},!1,"java.math.Elementary$",{K2a:1,f:1});var Hta=void 0;function sD(){Hta||(Hta=(new oD).a());return Hta}function tD(){this.EC=0;this.VH=null}tD.prototype=new r;tD.prototype.constructor=tD;tD.prototype.h=function(a){return a&&a.$classData&&a.$classData.v.Awa?this.EC===a.EC?this.VH===a.VH:!1:!1};tD.prototype.u=function(){return"precision\x3d"+this.EC+" roundingMode\x3d"+this.VH};
tD.prototype.y=function(){return this.EC<<3|this.VH.GX};tD.prototype.$classData=q({Awa:0},!1,"java.math.MathContext",{Awa:1,f:1});function uD(){this.Zga=null}uD.prototype=new r;uD.prototype.constructor=uD;uD.prototype.a=function(){Ita=this;Jta();var a=vD().TR,b=new tD;b.EC=34;b.VH=a;this.Zga=b;Jta();vD();Jta();vD();Jta();vD();return this};uD.prototype.$classData=q({L2a:0},!1,"java.math.MathContext$",{L2a:1,f:1});var Ita=void 0;function Jta(){Ita||(Ita=(new uD).a());return Ita}
function wD(){this.LF=this.MF=null}wD.prototype=new r;wD.prototype.constructor=wD;
wD.prototype.a=function(){Kta=this;Lta(10,10);Lta(14,5);this.MF=ia(La(xD),[32]);this.LF=ia(La(xD),[32]);var a,b;a=1;for(var c=b=0;;){var e=c;if(18>=e){nD().LF.j[e]=rD(dD(),(new aq).La(a,b));var f=nD().MF,g=dD(),h=a,k=b;f.j[e]=rD(g,(new aq).La(0===(32&e)?h<<e:0,0===(32&e)?(h>>>1|0)>>>(31-e|0)|0|k<<e:h<<e));e=a;a=e>>>16|0;e=ca(5,65535&e);f=ca(5,a);a=e+(f<<16)|0;e=(e>>>16|0)+f|0;b=ca(5,b)+(e>>>16|0)|0}else nD().LF.j[e]=yD(nD().LF.j[-1+e|0],nD().LF.j[1]),nD().MF.j[e]=yD(nD().MF.j[-1+e|0],dD().DJ);if(31===
c)break;c=1+c|0}return this};
function Mta(a,b,c){var e,f=-1+b|0;if(!(0>=b))for(var g=0;;){var h=g;e=0;var k=1+h|0,l=-1+b|0;if(!(k>=b))for(;;){var p=k;nD();var y=a.j[h],I=a.j[p],E=c.j[h+p|0],V=65535&y,y=y>>>16|0,da=65535&I,I=I>>>16|0,sa=ca(V,da),da=ca(y,da),ua=ca(V,I),V=sa+((da+ua|0)<<16)|0,sa=(sa>>>16|0)+ua|0,y=(ca(y,I)+(sa>>>16|0)|0)+(((65535&sa)+da|0)>>>16|0)|0,E=V+E|0,y=(-2147483648^E)<(-2147483648^V)?1+y|0:y;e=E+e|0;E=(-2147483648^e)<(-2147483648^E)?1+y|0:y;c.j[h+p|0]=e;e=E;if(k===l)break;k=1+k|0}c.j[h+b|0]=e;if(g===f)break;
g=1+g|0}ota(fD(),c,c,b<<1);for(g=f=e=0;f<b;)k=a.j[f],p=a.j[f],l=c.j[g],h=e,e=65535&k,k=k>>>16|0,y=65535&p,p=p>>>16|0,E=ca(e,y),y=ca(k,y),I=ca(e,p),e=E+((y+I|0)<<16)|0,E=(E>>>16|0)+I|0,k=(ca(k,p)+(E>>>16|0)|0)+(((65535&E)+y|0)>>>16|0)|0,l=e+l|0,k=(-2147483648^l)<(-2147483648^e)?1+k|0:k,h=l+h|0,l=(-2147483648^h)<(-2147483648^l)?1+k|0:k,c.j[g]=h,g=1+g|0,h=l+c.j[g]|0,l=(-2147483648^h)<(-2147483648^l)?1:0,c.j[g]=h,e=l,f=1+f|0,g=1+g|0;return c}
function Lta(a,b){var c;c=[];if(0<a){var e=1,f=1,g=e;for(c.push(null===g?0:g);f<a;)e=ca(e|0,b),f=1+f|0,g=e,c.push(null===g?0:g)}ha(La(Ra),c)}
function Nta(a,b,c){if(c.Mf>b.Mf)var e=c;else e=b,b=c;c=e;var f=b;if(63>f.Mf){var g=c.Mf,e=f.Mf;b=g+e|0;a=c.ff!==f.ff?-1:1;if(2===b){e=c.ne.j[0];b=f.ne.j[0];c=65535&e;var e=e>>>16|0,h=65535&b;b=b>>>16|0;var f=ca(c,h),h=ca(e,h),k=ca(c,b);c=f+((h+k|0)<<16)|0;f=(f>>>16|0)+k|0;e=(ca(e,b)+(f>>>16|0)|0)+(((65535&f)+h|0)>>>16|0)|0;0===e?a=(new bD).La(a,c):(ye(),a=aD(new bD,a,2,qD(0,c,(new J).aa([e]))))}else{c=c.ne;f=f.ne;h=ia(La(Ra),[b]);if(0!==g&&0!==e)if(1===g)h.j[e]=Ota(0,h,f,e,c.j[0]);else if(1===e)h.j[g]=
Ota(0,h,c,g,f.j[0]);else if(c===f&&g===e)Mta(c,g,h);else if(k=-1+g|0,!(0>=g))for(g=0;;){var l=g,p;p=0;var y=c.j[l],I=-1+e|0;if(!(0>=e))for(var E=0;;){var V=E;nD();var da=f.j[V],sa=h.j[l+V|0],ua=65535&y,Ia=y>>>16|0,Pa=65535&da,da=da>>>16|0,Za=ca(ua,Pa),Pa=ca(Ia,Pa),db=ca(ua,da),ua=Za+((Pa+db|0)<<16)|0,Za=(Za>>>16|0)+db|0,Ia=(ca(Ia,da)+(Za>>>16|0)|0)+(((65535&Za)+Pa|0)>>>16|0)|0,sa=ua+sa|0,Ia=(-2147483648^sa)<(-2147483648^ua)?1+Ia|0:Ia;p=sa+p|0;sa=(-2147483648^p)<(-2147483648^sa)?1+Ia|0:Ia;h.j[l+V|
0]=p;p=sa;if(E===I)break;E=1+E|0}h.j[l+e|0]=p;if(g===k)break;g=1+g|0}a=aD(new bD,a,b,h);cD(a)}return a}e=(-2&c.Mf)<<4;h=Pta(c,e);k=Pta(f,e);b=zD(h,e);g=Fta(sD(),c,b);b=zD(k,e);f=Fta(sD(),f,b);c=Nta(a,h,k);b=Nta(a,g,f);a=Nta(a,Fta(sD(),h,g),Fta(sD(),f,k));f=c;a=pD(sD(),a,f);a=pD(sD(),a,b);a=zD(a,e);e=c=zD(c,e<<1);a=pD(sD(),e,a);return pD(sD(),a,b)}
function Ota(a,b,c,e,f){var g;g=0;a=-1+e|0;if(!(0>=e))for(e=0;;){var h=e;nD();var k=c.j[h],l=65535&k,k=k>>>16|0,p=65535&f,y=f>>>16|0,I=ca(l,p),p=ca(k,p),E=ca(l,y),l=I+((p+E|0)<<16)|0,I=(I>>>16|0)+E|0,k=(ca(k,y)+(I>>>16|0)|0)+(((65535&I)+p|0)>>>16|0)|0;g=l+g|0;k=(-2147483648^g)<(-2147483648^l)?1+k|0:k;b.j[h]=g;g=k;if(e===a)break;e=1+e|0}return g}
function AD(a,b){var c=a.MF.j.length,e=c>>31,f=b.$a;if(f===e?(-2147483648^b.Na)<(-2147483648^c):f<e)return a.MF.j[b.Na];c=b.$a;if(0===c?-2147483598>=(-2147483648^b.Na):0>c)return Qta(dD().DJ,b.Na);c=b.$a;if(0===c?-1>=(-2147483648^b.Na):0>c)return zD(Qta(a.LF.j[1],b.Na),b.Na);for(var g=Qta(a.LF.j[1],2147483647),c=g,f=b.$a,h=-2147483647+b.Na|0,e=h,h=1>(-2147483648^h)?f:-1+f|0,f=BD(Fa(),b.Na,b.$a,2147483647,0);;){var k=e,l=h;if(0===l?-1<(-2147483648^k):0<l)c=yD(c,g),e=-2147483647+e|0,h=1>(-2147483648^
e)?h:-1+h|0;else break}c=yD(c,Qta(a.LF.j[1],f));c=zD(c,2147483647);a=b.$a;e=b=-2147483647+b.Na|0;for(h=1>(-2147483648^b)?a:-1+a|0;;)if(b=e,a=h,0===a?-1<(-2147483648^b):0<a)c=zD(c,2147483647),b=h,a=-2147483647+e|0,b=1>(-2147483648^a)?b:-1+b|0,e=a,h=b;else break;return zD(c,f)}wD.prototype.$classData=q({M2a:0},!1,"java.math.Multiplication$",{M2a:1,f:1});var Kta=void 0;function nD(){Kta||(Kta=(new wD).a());return Kta}function CD(){this.FF=this.hd=this.$e=this.iz=0}CD.prototype=new r;
CD.prototype.constructor=CD;function Rta(){}d=Rta.prototype=CD.prototype;d.gg=function(a){if(0>a||a>this.$e)throw(new rk).a();this.hd=a;this.FF>a&&(this.FF=-1);return this};d.u=function(){return dk(ka(this))+"[pos\x3d"+this.hd+" lim\x3d"+this.$e+" cap\x3d"+this.iz+"]"};d.xO=function(){this.FF=-1;this.$e=this.hd;this.hd=0;return this};d.Pya=function(){this.FF=-1;this.hd=0;this.$e=this.iz;return this};
d.C1=function(a){if(0>a||a>this.iz)throw(new rk).a();this.$e=a;this.hd>a&&(this.hd=a,this.FF>a&&(this.FF=-1));return this};d.$d=function(a){this.$e=this.iz=a;this.hd=0;this.FF=-1;return this};function DD(){}DD.prototype=new r;DD.prototype.constructor=DD;DD.prototype.a=function(){return this};
function Sta(a,b){a=ia(La(Oa),[b]);var c=a.j.length;Tta||(Tta=(new ED).a());b=a.j.length;if(0>b||(0+b|0)>a.j.length)throw(new X).a();var e=0+c|0;if(0>c||e>b)throw(new X).a();c=new Uta;c.bt=!1;FD.prototype.c6a.call(c,b,a,0);CD.prototype.gg.call(c,0);CD.prototype.C1.call(c,e);return c}DD.prototype.$classData=q({R2a:0},!1,"java.nio.ByteBuffer$",{R2a:1,f:1});var Vta=void 0;function Wta(){Vta||(Vta=(new DD).a());return Vta}function GD(){}GD.prototype=new r;GD.prototype.constructor=GD;GD.prototype.a=function(){return this};
function Xta(a,b,c){Yta||(Yta=(new HD).a());a=xa(b);c=c-0|0;if(0>a||(0+a|0)>xa(b))throw(new X).a();var e=0+c|0;if(0>c||e>a)throw(new X).a();return Zta(a,b,0,0,e)}GD.prototype.$classData=q({S2a:0},!1,"java.nio.CharBuffer$",{S2a:1,f:1});var $ta=void 0;function aua(){$ta||($ta=(new GD).a());return $ta}function ED(){}ED.prototype=new r;ED.prototype.constructor=ED;ED.prototype.a=function(){return this};ED.prototype.$classData=q({U2a:0},!1,"java.nio.HeapByteBuffer$",{U2a:1,f:1});var Tta=void 0;
function HD(){}HD.prototype=new r;HD.prototype.constructor=HD;HD.prototype.a=function(){return this};HD.prototype.$classData=q({Y2a:0},!1,"java.nio.StringCharBuffer$",{Y2a:1,f:1});var Yta=void 0;function JD(){this.RI=this.OI=this.PI=null;this.Cx=0}JD.prototype=new r;JD.prototype.constructor=JD;function bua(){}bua.prototype=JD.prototype;
function cua(a,b,c,e){if(4===a.Cx||!e&&3===a.Cx)throw(new fk).a();a.Cx=e?3:2;for(;;){try{var f=dua(b,c)}catch(k){if(k&&k.$classData&&k.$classData.v.x8)throw eua(k);if(k&&k.$classData&&k.$classData.v.y8)throw eua(k);throw k;}if(0===f.Fu){var g=b.$e-b.hd|0;if(e&&0<g){var h=KD();switch(g){case 1:g=h.ts;break;case 2:g=h.fV;break;case 3:g=h.YK;break;case 4:g=h.jca;break;default:g=fua(h,g)}}else g=f}else g=f;if(0===g.Fu||1===g.Fu)break;h=3===g.Fu?a.RI:a.OI;if(LD().yJ===h){if((c.$e-c.hd|0)<(a.PI.length|
0)){KD();break}gua(c,a.PI);h=b.hd;g=g.XK;if(0>g)throw(new Gt).a();CD.prototype.gg.call(b,h+g|0)}else{if(LD().zJ===h)break;if(LD().o6===h){h=b.hd;g=g.XK;if(0>g)throw(new Gt).a();CD.prototype.gg.call(b,h+g|0)}else throw(new v).d(h);}}}JD.prototype.Eba=function(){this.PI="\ufffd";this.OI=LD().zJ;this.RI=LD().zJ;this.Cx=1;return this};function MD(){this.Gga=0;this.RI=this.OI=this.PI=null;this.Cx=0}MD.prototype=new r;MD.prototype.constructor=MD;function hua(){}hua.prototype=MD.prototype;
function iua(a){if(0===a.iz)return Sta(Wta(),1);var b=Sta(Wta(),a.iz<<1);CD.prototype.xO.call(a);if(a===b)throw(new rk).a();if(b.bt)throw(new ND).a();var c=a.$e,e=a.hd,f=c-e|0,g=b.hd,h=g+f|0;if(h>b.$e)throw(new OD).a();b.hd=h;CD.prototype.gg.call(a,c);h=a.Ni;if(null!==h)Ca(h,a.wk+e|0,b.Ni,b.wk+g|0,f);else for(;e!==c;)b.Ni.j[b.wk+g|0]=a.Ni.j[a.wk+e|0]|0,e=1+e|0,g=1+g|0;return b}MD.prototype.Eba=function(a,b){ye();MD.prototype.q6a.call(this,0,b,0,jua());return this};
MD.prototype.q6a=function(a,b,c,e){this.Gga=b;this.PI=e;this.OI=LD().zJ;this.RI=LD().zJ;this.Cx=0;return this};function PD(){this.XK=this.Fu=0}PD.prototype=new r;PD.prototype.constructor=PD;PD.prototype.La=function(a,b){this.Fu=a;this.XK=b;return this};function kua(a){var b=a.Fu;switch(b){case 1:throw(new OD).a();case 0:throw(new QD).a();case 2:throw(new RD).$d(a.XK);case 3:throw(new SD).$d(a.XK);default:throw(new v).d(b);}}
PD.prototype.$classData=q({b3a:0},!1,"java.nio.charset.CoderResult",{b3a:1,f:1});function TD(){this.WGa=this.jca=this.YK=this.fV=this.ts=this.hu=this.ot=null}TD.prototype=new r;TD.prototype.constructor=TD;TD.prototype.a=function(){lua=this;this.ot=(new PD).La(1,-1);this.hu=(new PD).La(0,-1);this.ts=(new PD).La(2,1);this.fV=(new PD).La(2,2);this.YK=(new PD).La(2,3);this.jca=(new PD).La(2,4);this.WGa=(new ct).a();(new PD).La(3,1);(new PD).La(3,2);(new PD).La(3,3);(new PD).La(3,4);(new ct).a();return this};
function fua(a,b){return a.WGa.IO(b,jb(function(a,b){return function(){return(new PD).La(2,b)}}(a,b)))}TD.prototype.$classData=q({c3a:0},!1,"java.nio.charset.CoderResult$",{c3a:1,f:1});var lua=void 0;function KD(){lua||(lua=(new TD).a());return lua}function UD(){this.ba=null}UD.prototype=new r;UD.prototype.constructor=UD;UD.prototype.u=function(){return this.ba};UD.prototype.e=function(a){this.ba=a;return this};UD.prototype.$classData=q({d3a:0},!1,"java.nio.charset.CodingErrorAction",{d3a:1,f:1});
function VD(){this.zJ=this.yJ=this.o6=null}VD.prototype=new r;VD.prototype.constructor=VD;VD.prototype.a=function(){mua=this;this.o6=(new UD).e("IGNORE");this.yJ=(new UD).e("REPLACE");this.zJ=(new UD).e("REPORT");return this};VD.prototype.$classData=q({e3a:0},!1,"java.nio.charset.CodingErrorAction$",{e3a:1,f:1});var mua=void 0;function LD(){mua||(mua=(new VD).a());return mua}function WD(){}WD.prototype=new r;WD.prototype.constructor=WD;WD.prototype.a=function(){return this};
function nua(a,b,c,e){a=(new ck).a();try{var f=0,f=0,g=-1+e|0;if(!(c>=e))for(;;){var h=c;if(h<(b.length|0))var k=Ft(),l=65535&(b.charCodeAt(h)|0),p=oua(k,l,16);else p=-1;if(-1===p){var y=b.length|0;throw(new Ax).N(a,b.substring(h,e<y?e:y));}f=f<<4|p;if(c===g)break;c=1+c|0}ta();var I;Ft();b=f;if(!(0<=b&&1114111>=b))throw(new rk).a();I=65536<=b&&1114111>=b?pua(ye(),65535&(-64+(b>>10)|55296),(new J).aa([Dc(65535&(56320|1023&b))])):pua(ye(),65535&b,(new J).aa([]));return XD(0,I,0,I.j.length)}catch(E){if(Bx(E)&&
E.Da===a)return E.Qt();throw E;}}WD.prototype.$classData=q({h3a:0},!1,"org.mulesoft.common.core.package$",{h3a:1,f:1});var qua=void 0;function rua(){qua||(qua=(new WD).a());return qua}function YD(){}YD.prototype=new r;YD.prototype.constructor=YD;YD.prototype.a=function(){return this};function sua(a,b){return(+(b>>>0)).toString(16).toUpperCase()}YD.prototype.$classData=q({i3a:0},!1,"org.mulesoft.common.core.package$Chars$",{i3a:1,f:1});var tua=void 0;
function uua(){tua||(tua=(new YD).a());return tua}function ZD(){}ZD.prototype=new r;ZD.prototype.constructor=ZD;ZD.prototype.a=function(){return this};
function $D(a,b){a:{aE();if(null!==b){a=0;for(var c=b.length|0;a<c;){var e=65535&(b.charCodeAt(a)|0);if(32>e||127<=e||92===e||34===e)break a;a=1+a|0}}a=-1}if(-1===a)return b;c=(new lk).$d((b.length|0)<<1);for(bE(c,b.substring(0,a));a<(b.length|0);){e=65535&(b.charCodeAt(a)|0);if(32>e)switch(cE(c,92),e){case 8:cE(c,98);break;case 10:cE(c,110);break;case 9:cE(c,116);break;case 12:cE(c,102);break;case 13:cE(c,114);break;case 0:cE(c,48);break;default:bE(c,"u00"+(15<e?"":"0")+sua(uua(),e))}else 127>e?
(34!==e&&92!==e||cE(c,92),cE(c,e)):(bE(c,"\\u"),4095>=e&&(255<e?cE(c,48):bE(c,"00")),bE(c,sua(uua(),e)));a=1+a|0}return c.Be.Ue}
function vua(a,b){if(null===b)return b;a=b.length|0;if(0===a)return b;for(var c=(new lk).$d(a),e=0;e<a;){var f=65535&(b.charCodeAt(e)|0),e=1+e|0;if(92!==f||e>=a)dE(c.Be,f);else{f=65535&(b.charCodeAt(e)|0);e=1+e|0;switch(f){case 85:e=8+e|0;f=nua(rua(),b,-8+e|0,e);break;case 117:e=4+e|0;f=nua(rua(),b,-4+e|0,e);break;case 120:e=2+e|0;f=nua(rua(),b,-2+e|0,e);break;case 116:f="\t";break;case 114:f="\r";break;case 110:f="\n";break;case 102:f="\f";break;case 97:f=Dc(7);break;case 98:f="\b";break;case 118:f=
"\x0B";break;case 101:f=Dc(27);break;case 48:f=Dc(0);break;case 78:f="\u0085";break;case 95:f="\u00a0";break;case 76:f="\u2028";break;case 80:f="\u2029";break;default:f=ba.String.fromCharCode(f)}ok(c,f)}}return c.Be.Ue}ZD.prototype.$classData=q({j3a:0},!1,"org.mulesoft.common.core.package$Strings$",{j3a:1,f:1});var wua=void 0;function aE(){wua||(wua=(new ZD).a());return wua}function Xj(){this.oq=null}Xj.prototype=new r;Xj.prototype.constructor=Xj;Xj.prototype.d=function(a){this.oq=a;return this};
Xj.prototype.$classData=q({o3a:0},!1,"org.mulesoft.common.io.Output$OutputOps",{o3a:1,f:1});function eE(){}eE.prototype=new r;eE.prototype.constructor=eE;eE.prototype.a=function(){return this};eE.prototype.$classData=q({s3a:0},!1,"org.mulesoft.common.parse.ParseError$",{s3a:1,f:1});var xua=void 0;function fE(){}fE.prototype=new r;fE.prototype.constructor=fE;fE.prototype.a=function(){return this};
function yua(a,b){a=Fa();zua();var c=b.Ex,c=c.b()?gE().J9:c.c(),e=c.sL/1E6|0,f=b.Mx;if(w()===f)b=new ba.Date(b.ez,-1+b.Hy|0,b.my,c.KG,c.vH,c.eI,e);else if(x(f))f=f.i|0,b=+ba.Date.UTC(b.ez,-1+b.Hy|0,b.my,c.KG,c.vH,c.eI,e)+ca(1E3,f),b=new ba.Date(b);else throw(new v).d(f);b=+b.getTime();b=hE(a,b);(new iE).mU((new aq).La(b,a.be))}fE.prototype.$classData=q({v3a:0},!1,"org.mulesoft.common.time.package$DateTimes$",{v3a:1,f:1});var Aua=void 0;function zua(){Aua||(Aua=(new fE).a());return Aua}
function jE(){}jE.prototype=new r;jE.prototype.constructor=jE;jE.prototype.a=function(){return this};function Bua(a,b,c){a=xa(b);return(new kE).Oba(b,0,2147483647>a?a:2147483647,c)}jE.prototype.$classData=q({y3a:0},!1,"org.mulesoft.lexer.CharSequenceLexerInput$",{y3a:1,f:1});var Cua=void 0;function Dua(){Cua||(Cua=(new jE).a());return Cua}function lE(){this.ht=0}lE.prototype=new r;lE.prototype.constructor=lE;lE.prototype.a=function(){this.ht=-1;return this};
lE.prototype.$classData=q({B3a:0},!1,"org.mulesoft.lexer.LexerInput$",{B3a:1,f:1});var Eua=void 0;function mE(){Eua||(Eua=(new lE).a());return Eua}function nE(){this.xn=null}nE.prototype=new r;nE.prototype.constructor=nE;nE.prototype.a=function(){Fua=this;this.xn=(new oE).Zh(0,0,0);return this};function pE(a,b,c,e){return 0===b&&0===c&&0===e?a.xn:(new oE).Zh(b,c,e)}nE.prototype.$classData=q({C3a:0},!1,"org.mulesoft.lexer.Position$",{C3a:1,f:1});var Fua=void 0;
function qE(){Fua||(Fua=(new nE).a());return Fua}function rE(){this.Tf=null;this.qn=this.eC=0}rE.prototype=new r;rE.prototype.constructor=rE;rE.prototype.a=function(){this.Tf=(new pk).$d(1E4);this.qn=this.eC=0;return this};rE.prototype.b=function(){return this.qn<=this.eC};rE.prototype.lb=function(){return this.qn-this.eC|0};rE.prototype.$classData=q({D3a:0},!1,"org.mulesoft.lexer.Queue",{D3a:1,f:1});function sE(){this.Kxa=this.ba=null}sE.prototype=new r;sE.prototype.constructor=sE;
function Gua(){}Gua.prototype=sE.prototype;sE.prototype.tc=function(a,b){this.ba=a;this.Kxa=b;return this};sE.prototype.u=function(){return this.ba};function tE(){}tE.prototype=new r;tE.prototype.constructor=tE;tE.prototype.a=function(){return this};
function Hua(a,b,c){var e=new ba.XMLHttpRequest,f=(new uE).a();e.onreadystatechange=function(a,b){return function(){var c;Iua();4===(a.readyState|0)?200<=(a.status|0)&&300>(a.status|0)||304===(a.status|0)?c=gk(b,a):(c=new Jua,c.y3=a,vE.prototype.pe.call(c,null,null,0,!0),c=ek(b,c)):c=void 0;return c}}(e,f);e.open("GET",b);e.responseType="";e.timeout=0;e.withCredentials=!1;c.X(t(new u,function(a,b){return function(a){b.setRequestHeader(a.pa(),a.Ba())}}(a,e)));e.send();return f}
tE.prototype.$classData=q({F3a:0},!1,"org.scalajs.dom.ext.Ajax$",{F3a:1,f:1});var Kua=void 0;function Iua(){Kua||(Kua=(new tE).a());return Kua}function Lua(){}Lua.prototype=new r;Lua.prototype.constructor=Lua;function Mua(){}Mua.prototype=Lua.prototype;function Nua(){}Nua.prototype=new r;Nua.prototype.constructor=Nua;function Oua(){}Oua.prototype=Nua.prototype;function Oka(a,b,c){a.l0(b,wE(new xE,yE(),c))}function Pua(){}Pua.prototype=new r;Pua.prototype.constructor=Pua;function Qua(){}
Qua.prototype=Pua.prototype;Pua.prototype.$s=function(a){this.k5(wE(new xE,yE(),a))};function zE(){}zE.prototype=new r;zE.prototype.constructor=zE;zE.prototype.a=function(){return this};function AE(a,b,c){Zf();return(new $f).d(Rua(new BE,b,jb(function(a,b){return function(){return b}}(a,c))))}zE.prototype.$classData=q({U3a:0},!1,"org.yaml.convert.YRead$",{U3a:1,f:1});var Sua=void 0;function CE(){Sua||(Sua=(new zE).a());return Sua}function DE(){}DE.prototype=new r;DE.prototype.constructor=DE;
DE.prototype.a=function(){return this};function Tua(a,b){return 48<=b&&57>=b}DE.prototype.$classData=q({m4a:0},!1,"org.yaml.lexer.JsonLexer$",{m4a:1,f:1});var Uua=void 0;function EE(){Uua||(Uua=(new DE).a());return Uua}function FE(){}FE.prototype=new r;FE.prototype.constructor=FE;FE.prototype.a=function(){return this};function Vua(a,b){return-1!==Wua(ta(),"-?:,[]{}#\x26*!|\x3e'\"%@ `",b)}function Xua(a,b){return 91===b||93===b||123===b||125===b||44===b}function Yua(a,b){return 32===b||9===b}
function GE(a,b){return 10===b||13===b||b===mE().ht}function Zua(a,b){return 10===b||13===b}function $ua(a,b){return 48<=b&&57>=b||65<=b&&90>=b||97<=b&&122>=b||45===b}function HE(a,b){return 32<b&&126>=b||133===b||160<=b&&55295>=b||57344<=b&&65533>=b||65536<=b&&1114111>=b}
function ava(a,b){switch(b){case 48:return 0;case 97:return 7;case 98:return 11;case 116:case 9:return 9;case 110:return 10;case 118:return 11;case 102:return 12;case 114:return 13;case 101:return 27;case 32:return 32;case 34:return 34;case 47:return 47;case 92:return 92;case 78:return 133;case 95:return 160;case 76:return 8232;case 80:return 8233;case 120:return 120;case 117:return 117;case 85:return 85;default:return-1}}
function bva(a,b){return 9===b||32<=b&&126>=b||133===b||160<=b&&55295>=b||57344<=b&&65533>=b||65536<=b&&1114111>=b}FE.prototype.$classData=q({n4a:0},!1,"org.yaml.lexer.YamlCharRules$",{n4a:1,f:1});var cva=void 0;function IE(){cva||(cva=(new FE).a());return cva}function dva(){}dva.prototype=new r;dva.prototype.constructor=dva;function JE(){}JE.prototype=dva.prototype;function KE(){}KE.prototype=new r;KE.prototype.constructor=KE;KE.prototype.a=function(){return this};
KE.prototype.$classData=q({p4a:0},!1,"org.yaml.lexer.YamlLexer$",{p4a:1,f:1});var eva=void 0;function LE(){this.uw=this.NR=this.MR=this.ER=this.KB=this.Xga=this.as=this.ds=this.gt=this.sw=this.Tx=this.rD=this.zD=this.KF=this.W5=this.C5=this.dha=this.Tga=this.ZI=this.PM=this.gv=this.dv=this.UY=this.pJ=this.bha=this.aha=this.PF=this.ii=this.$5=this.G5=this.dY=this.MX=this.WM=this.QM=this.Z5=this.F5=this.Y5=this.E5=this.Iz=this.X5=this.D5=this.dDa=null}LE.prototype=new r;LE.prototype.constructor=LE;
LE.prototype.a=function(){fva=this;this.dDa=(new ct).a();this.D5=(new ME).tc("BeginAnchor","A");this.X5=(new ME).tc("EndAnchor","a");this.Iz=(new ME).tc("LineBreak","b");this.E5=(new ME).tc("BeginComment","C");this.Y5=(new ME).tc("EndComment","c");this.F5=(new ME).tc("BeginDirective","D");this.Z5=(new ME).tc("EndDirective","d");this.QM=(new ME).tc("BeginEscape","E");this.WM=(new ME).tc("EndScape","e");this.MX=(new ME).tc("BeginTag","G");this.dY=(new ME).tc("EndTag","g");this.G5=(new ME).tc("BeginHandle",
"H");this.$5=(new ME).tc("EndHandle","h");this.ii=(new ME).tc("Indicator","I");this.PF=(new ME).tc("Indent","i");this.aha=(new ME).tc("DirectivesEnd","K");this.bha=(new ME).tc("DocumentEnd","k");this.pJ=(new ME).tc("LineFeed","L");this.UY=(new ME).tc("LineFold","l");this.dv=(new ME).tc("BeginNode","N");this.gv=(new ME).tc("EndNode","n");this.PM=(new ME).tc("BeginDocument","O");this.ZI=(new ME).tc("EndDocument","o");this.Tga=(new ME).tc("BeginProperties","P");this.dha=(new ME).tc("EndProperties","p");
this.C5=(new ME).tc("BeginAlias","R");this.W5=(new ME).tc("EndAlias","r");this.KF=(new ME).tc("BeginSequence","Q");this.zD=(new ME).tc("EndSequence","q");this.rD=(new ME).tc("BeginMapping","M");this.Tx=(new ME).tc("EndMapping","m");this.sw=(new ME).tc("BeginScalar","S");this.gt=(new ME).tc("EndScalar","s");this.ds=(new ME).tc("Text","T");this.as=(new ME).tc("MetaText","t");this.Xga=(new ME).tc("Bom","U");this.KB=(new ME).tc("WhiteSpace","w");this.ER=(new ME).tc("BeginPair","X");this.MR=(new ME).tc("EndPair",
"x");this.NR=(new ME).tc("EndStream","");(new ME).tc("BeginStream","");this.uw=(new ME).tc("Error","!");(new ME).tc("UnParsed","-");return this};LE.prototype.$classData=q({r4a:0},!1,"org.yaml.lexer.YamlToken$",{r4a:1,f:1});var fva=void 0;function NE(){fva||(fva=(new LE).a());return fva}function OE(){this.fi=null}OE.prototype=new r;OE.prototype.constructor=OE;
OE.prototype.a=function(){gva=this;Ac();this.fi=(new PE).MO(t(new u,function(){return function(a){throw(new QE).f1(a);}}(this)));Ac();t(new u,function(){return function(){}}(this));return this};OE.prototype.$classData=q({u4a:0},!1,"org.yaml.model.IllegalTypeHandler$",{u4a:1,f:1});var gva=void 0;function Ac(){gva||(gva=(new OE).a());return gva}function RE(){this.qda=null}RE.prototype=new r;RE.prototype.constructor=RE;
RE.prototype.a=function(){hva=this;this.qda=iva(Eha(),qd(function(){return function(a,b){throw Lb(Mb(),(new Hg).FE(b.Ls+" at "+a.Of+": "+Af(Bf(),a.vf,a.Ef,a.ag,a.fg),b));}}(this)));(new SE).d(function(){return function(){}}(this));return this};function iva(a,b){return(new TE).d(function(a,b){return function(a,c){b.zf(a,c)}}(a,b))}RE.prototype.$classData=q({y4a:0},!1,"org.yaml.model.ParseErrorHandler$",{y4a:1,f:1});var hva=void 0;function Eha(){hva||(hva=(new RE).a());return hva}
function jva(a,b){var c=Dc(a.oO);b=$D(aE(),b);return""+c+b+Dc(a.oO)}function kva(a){return!!(a&&a.$classData&&a.$classData.v.Zwa)}function UE(){}UE.prototype=new r;UE.prototype.constructor=UE;UE.prototype.a=function(){return this};function lva(a,b){'"'===b?a=VE():"'"===b?a=mva():"|"===b?a=nva():"\x3e"===b?(ova||(ova=(new WE).a()),a=ova):a=""===b?wq():pva();return a}UE.prototype.$classData=q({B4a:0},!1,"org.yaml.model.ScalarMark$",{B4a:1,f:1});var qva=void 0;
function rva(){qva||(qva=(new UE).a());return qva}function XE(){}XE.prototype=new r;XE.prototype.constructor=XE;XE.prototype.a=function(){return this};function YE(a,b){ZE();a=(new fC).tc("","");return sva(a,b)}function Ly(){ZE();return(new fC).tc("","")}function tva(a,b){return(new Oy).mc(Py(vq(),b),a)}XE.prototype.$classData=q({E4a:0},!1,"org.yaml.model.YDocument$",{E4a:1,f:1});var uva=void 0;function ZE(){uva||(uva=(new XE).a());return uva}function $E(){this.r=null}$E.prototype=new r;
$E.prototype.constructor=$E;function vva(){}vva.prototype=$E.prototype;$E.prototype.a=function(){this.r=(new pk).a();return this};function Ny(a,b){b=kd(ta(),b,"\n",0);for(var c=0,e=b.j.length;c<e;){var f=b.j[c],g=a.r,h=Py(vq(),a.da);Zf();xq();yq();var k=(new zq).a();T(g,(new aF).aP(f,h,Bq(k)));c=1+c|0}}function fC(){this.Dh=this.xh=null}fC.prototype=new r;fC.prototype.constructor=fC;fC.prototype.tc=function(a,b){this.xh=a;this.Dh=b;return this};
function sva(a,b){var c=Py(vq(),a.Dh),e=a.xh;if(null===e)throw(new Rg).a();if(""===e)for(fc(),a=(new J).aa([b]),b=a.z.length|0,b=ia(La(wva),[b]),e=0,a=hD(new iD,a,0,a.z.length|0);a.Qa();){var f=a.Sa();b.j[e]=f;e=1+e|0}else for(fc(),e=a.xh,a=Py(vq(),a.Dh),Zf(),xq(),yq(),f=(new zq).a(),b=[(new aF).aP(e,a,Bq(f)),b],a=(new J).aa(b),b=a.z.length|0,b=ia(La(bF),[b]),e=0,a=hD(new iD,a,0,a.z.length|0);a.Qa();)f=a.Sa(),b.j[e]=f,e=1+e|0;b=vl(0,b);return(new Oy).mc(c,b)}
fC.prototype.$classData=q({K4a:0},!1,"org.yaml.model.YDocument$WithComment",{K4a:1,f:1});function BE(){this.Wp=this.Ea=null}BE.prototype=new r;BE.prototype.constructor=BE;BE.prototype.u=function(){return gc(this.Wp)+"@"+this.Ea};function Rua(a,b,c){a.Ea=b;a.Wp=c;return a}BE.prototype.$classData=q({L4a:0},!1,"org.yaml.model.YError",{L4a:1,f:1});function cF(){this.Td=null}cF.prototype=new r;cF.prototype.constructor=cF;
cF.prototype.a=function(){xva=this;sq();Zf();xq();yq();var a=(new zq).a();this.Td=rq(0,Bq(a),"");return this};function rq(a,b,c){return(new dF).mc(Py(vq(),c),b)}cF.prototype.$classData=q({O4a:0},!1,"org.yaml.model.YMap$",{O4a:1,f:1});var xva=void 0;function sq(){xva||(xva=(new cF).a());return xva}function eF(){}eF.prototype=new r;eF.prototype.constructor=eF;eF.prototype.a=function(){return this};
function iC(a,b){a=(new yva).a();var c=uv(),e=b.$b(a,c.gc);a=e.jb(0);var c=e.jb(1),f=vq(),e=e.jb(0);return zva(new fF,a,c,Py(f,e.ga.Of),b)}function gF(a,b,c){a=Py(vq(),b.ga.Of);fc();var e=(new J).aa([b,c]),f=e.z.length|0,f=ia(La(wva),[f]),g;g=0;for(e=hD(new iD,e,0,e.z.length|0);e.Qa();){var h=e.Sa();f.j[g]=h;g=1+g|0}return zva(new fF,b,c,a,vl(0,f))}eF.prototype.$classData=q({Q4a:0},!1,"org.yaml.model.YMapEntry$",{Q4a:1,f:1});var Ava=void 0;function jC(){Ava||(Ava=(new eF).a());return Ava}
function hF(){this.Qm=this.yd=null}hF.prototype=new r;hF.prototype.constructor=hF;hF.prototype.a=function(){Bva=this;this.yd=lq(R(),nq().yd,O().yd);R();var a=vq().Op;nq();var b=wq();nq();Zf();xq();yq();var c=Bq((new zq).a());this.Qm=lq(0,Cva(null,"",b,a,c),O().yd);Zf();xq();yq();Bq((new zq).a());return this};
function Dva(a,b,c,e,f){a=Py(vq(),f);fc();var g=(new J).aa([b]);f=g.z.length|0;f=ia(La(Eva),[f]);var h;h=0;for(g=hD(new iD,g,0,g.z.length|0);g.Qa();){var k=g.Sa();f.j[h]=k;h=1+h|0}f=vl(0,f);h=new iF;h.nq=b;h.yfa=c;h.PS=e;jF.prototype.mc.call(h,a,f);return h}function lq(a,b,c){a=c.Ct;c=b.ga.Of;R();var e=w();R();return Dva(R(),b,a,e,c)}function Th(a,b){return lq(R(),kF(nq(),b,""),O().Wa)}
function Fva(a,b){var c=(R(),"");b=kF(nq(),b,c);a=O().vq.Ct;c=Py(vq(),c);fc();var e=(new J).aa([a,b]),f=e.z.length|0,f=ia(La(bF),[f]),g;g=0;for(e=hD(new iD,e,0,e.z.length|0);e.Qa();){var h=e.Sa();f.j[g]=h;g=1+g|0}return Gva(new lF,b,a,c,vl(0,f))}function Hva(a,b,c){return lq(R(),kF(nq(),b,c),O().Wa)}hF.prototype.$classData=q({T4a:0},!1,"org.yaml.model.YNode$",{T4a:1,f:1});var Bva=void 0;function R(){Bva||(Bva=(new hF).a());return Bva}function sv(a,b){return b.Wv(a.hQ())}
function L(a,b,c){a=a.Gp(b);if(Hp(a))return a.i;if(Ep(a))return c.cC(a.i,b.ZJ());throw(new v).d(a);}function Iva(a){return!!(a&&a.$classData&&a.$classData.v.qJ)}function mF(){}mF.prototype=new r;mF.prototype.constructor=mF;mF.prototype.a=function(){return this};mF.prototype.$classData=q({V4a:0},!1,"org.yaml.model.YNonContent$",{V4a:1,f:1});var Jva=void 0;function nF(){this.ga=this.Uf=null}nF.prototype=new r;nF.prototype.constructor=nF;function oF(){}oF.prototype=nF.prototype;
nF.prototype.mc=function(a,b){this.Uf=b;Kva||(Kva=(new pF).a());if(b.b()||!a.zy())b=a;else{var c=vq().Op;(null===a?null===c:a.h(c))?b=Lva(b.fa().ga,b.Dy().ga):(vq(),a=a.Of,c=b.fa().ga,c=pE(qE(),c.vf,c.Ef,c.Mu),b=b.Dy().ga,b=Mva(0,a,c,pE(qE(),b.ag,b.fg,b.JA)))}this.ga=b;return this};var bF=q({kt:0},!1,"org.yaml.model.YPart",{kt:1,f:1});nF.prototype.$classData=bF;function pF(){}pF.prototype=new r;pF.prototype.constructor=pF;pF.prototype.a=function(){return this};
pF.prototype.$classData=q({X4a:0},!1,"org.yaml.model.YPart$",{X4a:1,f:1});var Kva=void 0;function qF(){this.yd=null}qF.prototype=new r;qF.prototype.constructor=qF;qF.prototype.a=function(){Nva=this;var a=vq().Op;nq();var b=wq();nq();Zf();xq();yq();var c=Bq((new zq).a());this.yd=Cva(null,"null",b,a,c);return this};function kF(a,b,c){a=""+b;c=Py(vq(),c);nq();var e=wq();nq();Zf();xq();yq();var f=Bq((new zq).a());return Cva(b,a,e,c,f)}
function mq(a,b){a=""+b;var c=vq().Op;nq();var e=wq();nq();Zf();xq();yq();var f=Bq((new zq).a());return Cva(b,a,e,c,f)}qF.prototype.$classData=q({Y4a:0},!1,"org.yaml.model.YScalar$",{Y4a:1,f:1});var Nva=void 0;function nq(){Nva||(Nva=(new qF).a());return Nva}function Aq(){this.so=this.Ze=this.jc=this.ga=this.jd=null}Aq.prototype=new r;Aq.prototype.constructor=Aq;
function Dha(a,b,c,e,f,g,h){a.jd=b;a.ga=f;a.jc=h;if(null!==c){h=c.nb;var k=O().Qm,k=h!==k?c.nb:O().Wa}else h=wq(),k=null!==e&&e===h?O().Op:O().Wa;Zf();h=(new ag).d(b);var l=k,p=O().Wa;l!==p&&(rF(),l=new sF,l.jd=b,l.qm=k,h=Ova(l),k=l.qm);h.KBa()?c=O().Wa.Ct:null===c?c=k.Ct:((l=c.b())||(l=c.nb,p=O().Op,l=l===p),c=l?Pva(new tF,c.ya,k,c.wca,c.rF):c);a.Ze=c;c=mva();null!==e&&e===c?c=b.split("''").join("'"):(c=h,c=Hp(c)?c.i:a.jd);b=Cva(c,b,e,f,g);e=(new Qx).wp(h).rh;Ep(e)&&a.jc.ps(a.ga,e.i);a.so=b;return a}
Aq.prototype.$classData=q({Z4a:0},!1,"org.yaml.model.YScalar$Builder",{Z4a:1,f:1});function uF(){this.Td=null}uF.prototype=new r;uF.prototype.constructor=uF;uF.prototype.a=function(){Qva=this;var a=vq().Op;Zf();xq();yq();var b=(new zq).a();this.Td=(new GC).mc(a,Bq(b));return this};uF.prototype.$classData=q({$4a:0},!1,"org.yaml.model.YSequence$",{$4a:1,f:1});var Qva=void 0;function FC(){Qva||(Qva=(new uF).a());return Qva}function vF(){}vF.prototype=new r;vF.prototype.constructor=vF;
vF.prototype.a=function(){return this};vF.prototype.$classData=q({b5a:0},!1,"org.yaml.model.YTag$",{b5a:1,f:1});var Rva=void 0;function wF(){this.xGa=!1;this.Ct=null}wF.prototype=new r;wF.prototype.constructor=wF;wF.prototype.u=function(){return this.Ct.ya};wF.prototype.rs=function(a){this.xGa=a;return this};wF.prototype.$classData=q({c5a:0},!1,"org.yaml.model.YType",{c5a:1,f:1});function xF(){this.vq=this.Qm=this.Op=this.yd=this.fy=this.ui=this.Oi=this.rg=this.Wa=this.ua=this.Nc=this.pca=null}
xF.prototype=new r;xF.prototype.constructor=xF;xF.prototype.a=function(){Sva=this;this.pca=(new ct).a();this.Nc=yF(this,"!!seq",!0);this.ua=yF(this,"!!map",!0);this.Wa=yF(this,"!!str",!0);this.rg=yF(this,"!!float",!0);this.Oi=yF(this,"!!int",!0);this.ui=yF(this,"!!bool",!0);this.fy=yF(this,"!!timestamp",!0);this.yd=yF(this,"!!null",!0);this.Op=yF(this,"?",!0);this.Qm=yF(this,"!",!0);this.vq=yF(this,"!include",!1);return this};
function yF(a,b,c){c=(new wF).rs(c);var e;Rva||(Rva=(new vF).a());e=vq().Op;Zf();xq();yq();var f=(new zq).a();e=Pva(new tF,b,c,e,Bq(f));c.Ct=e;a.pca.Oe(b,c);return c}xF.prototype.$classData=q({d5a:0},!1,"org.yaml.model.YType$",{d5a:1,f:1});var Sva=void 0;function O(){Sva||(Sva=(new xF).a());return Sva}function zF(){}zF.prototype=new r;zF.prototype.constructor=zF;zF.prototype.a=function(){return this};function Tva(a,b,c){a=new AF;EE();b=(new BF).bH(Bua(Dua(),b,""),qE().xn);return Uva(a,b,c)}
function CF(a,b,c,e,f){a=new AF;EE();b=(new BF).bH(Bua(Dua(),b,c),e);return Uva(a,b,f)}zF.prototype.$classData=q({f5a:0},!1,"org.yaml.parser.JsonParser$",{f5a:1,f:1});var Vva=void 0;function DF(){Vva||(Vva=(new zF).a());return Vva}function EF(){this.l=this.t=this.qo=this.az=this.dU=null}EF.prototype=new r;EF.prototype.constructor=EF;d=EF.prototype;d.Zp=function(){return Lva(this.dU,this.l.Vg.gj.cc)};
function Wva(a){var b=a.l.Vg,c=a.l.Vg.gj,b=ja(FF(b,b.gj));if(a.l.gda){a=a.az;var e=new GF,f=c.cc;e.jQ=c.Gx;e.jd=b;e.cc=f;T(a,e)}}function Xva(a){if(HF(a.az))return Zf(),xq(),yq(),Bq((new zq).a());var b=a.az,c=b.x,c=ia(La(IF),[c]);JF(b,c,0);KF(a.az,0);return vl(fc(),c)}d.ou=function(){this.Oz();if(HF(this.qo))return ia(La(bF),[0]);var a=this.qo,b=a.x,b=ia(La(bF),[b]);JF(a,b,0);KF(this.qo,0);return b};
d.$O=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;this.dU=a.Vg.gj.cc;this.az=(new pk).a();this.qo=(new pk).a();return this};d.Oz=function(){if(Tc(this.az)){var a=(new LF).mc(this.Zp(),Xva(this));T(this.qo,a)}};d.$classData=q({h5a:0},!1,"org.yaml.parser.JsonParser$JsonBuilder",{h5a:1,f:1});function sF(){this.qm=this.jd=null}sF.prototype=new r;sF.prototype.constructor=sF;
function Ova(a){try{var b=a.jd;if((""===b||"null"===b||"Null"===b||"NULL"===b||"~"===b)&&MF(a,O().yd))return a.qm=O().yd,Zf(),(new ag).d(null);if(("true"===b||"True"===b||"TRUE"===b)&&MF(a,O().ui))return a.qm=O().ui,Zf(),(new ag).d(!0);if(("false"===b||"False"===b||"FALSE"===b)&&MF(a,O().ui))return a.qm=O().ui,Zf(),(new ag).d(!1);var c=ss(rF().hDa,b);if(c.b())g=!1;else{if(null!==c.c())var e=c.c(),f=0===Ot(e,0);else f=!1;var g=f?MF(a,O().Oi):!1}if(g){a.qm=O().Oi;try{Zf();var h=(new ph).e(a.jd),k=tC(uC(),
h.ia,10);return(new ag).d((new aq).La(k.Na,k.$a))}catch($c){var l=gi(Mb(),$c);if(NF(l)){Zf();Yva();var p=(new OF).CE((new bD).e(a.jd)).bm,y=rC(wa(),kD(lD(),p));return(new ag).d(y)}if(hi(l)){Zf();var I=Zva(a.qm,a.jd,l);return(new $f).d(I)}throw $c;}}var E=ss(rF().fDa,b);if(E.b())da=!1;else if(null!==E.c())var V=E.c(),da=0===Ot(V,1);else da=!1;if(da){var sa=E.c(),ua=Pt(sa,0);if(MF(a,O().Oi)){a.qm=O().Oi;Zf();var Ia=tC(uC(),ua,16);return(new ag).d((new aq).La(Ia.Na,Ia.$a))}}var Pa=ss(rF().iDa,b);if(Pa.b())db=
!1;else if(null!==Pa.c())var Za=Pa.c(),db=0===Ot(Za,1);else db=!1;if(db){var Qb=Pa.c(),bc=Pt(Qb,0);if(MF(a,O().Oi)){a.qm=O().Oi;Zf();var rc=tC(uC(),bc,8);return(new ag).d((new aq).La(rc.Na,rc.$a))}}var Fc=ss(rF().eDa,b);if(Fc.b())ze=!1;else{if(null!==Fc.c())var Rd=Fc.c(),Ld=0===Ot(Rd,0);else Ld=!1;var ze=Ld?MF(a,O().rg):!1}if(ze){a.qm=O().rg;Zf();var Td=(new ph).e(a.jd),Je=rC(wa(),Td.ia);return(new ag).d(Je)}var $d=ss(rF().gDa,b);if($d.b())Hd=!1;else if(null!==$d.c())var te=$d.c(),Hd=0===Ot(te,1);
else Hd=!1;if(Hd){var ie=$d.c(),Nd=Pt(ie,0);if(MF(a,O().rg))return a.qm=O().rg,Zf(),(new ag).d("-"===Nd?-Infinity:Infinity)}if((".nan"===b||".NaN"===b||".NAN"===b)&&MF(a,O().rg))return a.qm=O().rg,Zf(),(new ag).d(NaN);var td=gE().cj(b);if(!td.b()){var yd=td.c();if(MF(a,O().fy))return a.qm=O().fy,Zf(),(new ag).d(yd)}var ud=a.qm,Ve=O().Op;if(ud===Ve)return a.qm=O().Wa,Zf(),(new ag).d(a.jd);var Me=a.qm,Rc=O().yd;if(Me===Rc)var me=!0;else var Ae=a.qm,We=O().ui,me=Ae===We;if(me)var od=!0;else var Ad=a.qm,
ue=O().Oi,od=Ad===ue;if(od)var Id=!0;else var gf=a.qm,Jd=O().rg,Id=gf===Jd;if(Id)var Vd=!0;else var je=a.qm,Wd=O().fy,Vd=je===Wd;if(Vd){Zf();var ve=Zva(a.qm,a.jd,null);return(new $f).d(ve)}Zf();return(new ag).d(a.jd)}catch($c){b=gi(Mb(),$c);if(hi(b))return Zf(),a=Zva(a.qm,a.jd,b),(new $f).d(a);throw $c;}}function MF(a,b){var c=a.qm,e=O().Op;return c===e?!0:a.qm===b}sF.prototype.$classData=q({i5a:0},!1,"org.yaml.parser.ScalarParser",{i5a:1,f:1});
function PF(){this.gDa=this.eDa=this.fDa=this.iDa=this.hDa=null}PF.prototype=new r;PF.prototype.constructor=PF;
PF.prototype.a=function(){$va=this;var a=(new ph).e("[-+]?\\d+"),b=G();this.hDa=(new qh).Di(a.ia,b);a=(new ph).e("0o([0-7]+)");b=G();this.iDa=(new qh).Di(a.ia,b);a=(new ph).e("0x([0-9a-fA-F]+)");b=G();this.fDa=(new qh).Di(a.ia,b);a=(new ph).e("-?(?:0|[1-9]\\d*)(?:\\.\\d*)?(?:[eE][-+]?\\d+)?");b=G();this.eDa=(new qh).Di(a.ia,b);a=(new ph).e("([-+])?(?:\\.inf|\\.Inf|\\.INF)");b=G();this.gDa=(new qh).Di(a.ia,b);a=["","null","Null","NULL","~"];if(0===(a.length|0))Yd();else for(var b=Zd(new ee,Yd()),c=
0,e=a.length|0;c<e;)fe(b,a[c]),c=1+c|0;a="true True TRUE false False FALSE".split(" ");if(0===(a.length|0))Yd();else for(b=Zd(new ee,Yd()),c=0,e=a.length|0;c<e;)fe(b,a[c]),c=1+c|0;return this};PF.prototype.$classData=q({j5a:0},!1,"org.yaml.parser.ScalarParser$",{j5a:1,f:1});var $va=void 0;function rF(){$va||($va=(new PF).a());return $va}function awa(){this.Vg=this.$Z=null;this.mCa=!1;this.sj=this.M1=this.jc=this.yK=null}awa.prototype=new r;awa.prototype.constructor=awa;
function QF(a){null===a.$Z&&null===a.$Z&&(a.$Z=(new RF).an(a));return a.$Z}function SF(a,b){a.sj.oi.fa().Oz();a=a.sj;a.oi=oz(new pz,b,a.oi)}function bwa(a,b){if(null===a)return b.Ct;var c=a.nb,e=O().Qm;return c===e?Pva(new tF,a.ya,b,a.wca,a.rF):a}function TF(a,b){cwa(a.sj);T(a.sj.oi.fa().qo,b)}awa.prototype.$classData=q({l5a:0},!1,"org.yaml.parser.YamlLoader",{l5a:1,f:1});function UF(){this.l=this.oi=null}UF.prototype=new r;UF.prototype.constructor=UF;
UF.prototype.an=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;Di();a=[(new VF).ix(a,WF(QF(a)))];a=(new J).aa(a);var b=Di().s;this.oi=Ei(a,b);return this};function cwa(a){var b=a.oi.fa();a.oi=a.oi.sa();return b}UF.prototype.$classData=q({w5a:0},!1,"org.yaml.parser.YamlLoader$Stack",{w5a:1,f:1});function VF(){this.Pv=this.qo=this.az=this.dU=null;this.O0=this.UT=!1;this.l=this.Ze=this.ur=this.r_=this.t=null}VF.prototype=new r;VF.prototype.constructor=VF;function XF(){}d=XF.prototype=VF.prototype;
d.Zp=function(){return Lva(this.dU,this.l.Vg.gj.cc)};d.TS=function(){};d.ix=function(a,b){this.dU=b;if(null===a)throw Lb(Mb(),null);this.l=a;this.az=(new pk).a();this.qo=(new pk).a();this.Pv=(new lk).a();this.O0=this.UT=!1;this.r_=w();this.ur="";return this};d.ou=function(){YF(this);this.Oz();var a=this.qo;if(HF(a))return ia(La(bF),[0]);var b=a.x,b=ia(La(bF),[b]);JF(a,b,0);KF(a,0);return b};
function dwa(a){fc();a=a.az;if(HF(a))a=ia(La(IF),[0]);else{var b=a.x,b=ia(La(IF),[b]);JF(a,b,0);KF(a,0);a=b}return vl(0,a)}function YF(a){var b=a.l.Vg.gj;if(a.l.mCa)var c=b.Gx,e=NE().NR,c=c!==e;else c=!1;if(c){e=a.l.Vg;a=a.az;var c=new GF,e=ja(FF(e,e.gj)),f=b.cc;c.jQ=b.Gx;c.jd=e;c.cc=f;T(a,c)}}d.ly=function(){};
d.Oz=function(){if(Tc(this.az)){var a=this.qo;Jva||(Jva=(new mF).a());fc();var b=this.az;if(HF(b))b=ia(La(IF),[0]);else{var c=b.x,c=ia(La(IF),[c]);JF(b,c,0);KF(b,0);b=c}b=vl(0,b);b=(new LF).mc(Lva(b.fa().cc,b.Dy().cc),b);T(a,b)}};d.JDa=function(){};d.a2=function(){if(this.UT||this.O0){var a=this.l.Vg;ok(this.Pv,FF(a,a.gj))}};d.$classData=q({by:0},!1,"org.yaml.parser.YamlLoader$YamlBuilder",{by:1,f:1});function RF(){this.l=null}RF.prototype=new r;RF.prototype.constructor=RF;
RF.prototype.an=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};function WF(a){return a.l.Vg.gj.cc}RF.prototype.$classData=q({y5a:0},!1,"org.yaml.parser.YamlLoader$YamlBuilder$",{y5a:1,f:1});function ZF(){}ZF.prototype=new r;ZF.prototype.constructor=ZF;ZF.prototype.a=function(){return this};function ewa(a,b,c){eva||(eva=(new KE).a());a=(new $F).bH(Bua(Dua(),b,""),qE().xn);return fwa(a,c)}
function gwa(a,b,c,e){eva||(eva=(new KE).a());a=(new $F).bH(Bua(Dua(),b,c),qE().xn);return fwa(a,e)}ZF.prototype.$classData=q({A5a:0},!1,"org.yaml.parser.YamlParser$",{A5a:1,f:1});var hwa=void 0;function iwa(){hwa||(hwa=(new ZF).a());return hwa}function aG(){this.qO=this.DM=null;this.yu=0}aG.prototype=new r;aG.prototype.constructor=aG;function jwa(a,b){var c=new aG;c.DM=a;c.qO=b;c.yu=0;return c}aG.prototype.YJ=function(){this.yu=-2+this.yu|0};aG.prototype.u=function(){return ja(this.DM)};
function kwa(a){if(0<a.yu){var b=(new Xj).d(a.DM),c=(new ph).e(" "),c=pha(c,a.yu);a.qO.Bv(b.oq,c)}return a}function bG(a,b){var c=(new Xj).d(a.DM);a.qO.Bv(c.oq,b);return a}aG.prototype.zK=function(){this.yu=2+this.yu|0};
function lwa(a,b){var c=b.we();if(Aw(c))if(c.Bb.b())bG(a,"{}");else{bG(a,"{\n");a.zK();b=c.Bb.lb();for(var e=0;e<b;){var f=c.Bb.jb(e),g;g=kwa(a);g=lwa(bG(lwa(g,f.Da),": "),f.i);bG(g,e<(-1+b|0)?",\n":"\n");e=1+e|0}a.YJ();bG(kwa(a),"}")}else if(Ew(c))if(c.Jn.b())bG(a,"[]");else{bG(a,"[\n");a.zK();b=c.Jn.lb();for(e=0;e<b;)g=c.Jn.jb(e),bG(lwa(kwa(a),g),e<(-1+b|0)?",\n":"\n"),e=1+e|0;a.YJ();bG(kwa(a),"]")}else if(rs(c))b=b.pb().nb,O().Oi===b||O().ui===b?c=ja(c.nq):O().rg===b?(c=ja(c.nq),-1===Wua(ta(),
c,46)?(b=(new ph).e(c),b=!Vs(b,Dc(101))):b=!1,b?(b=(new ph).e(c),b=!Vs(b,Dc(69))):b=!1,c=b?c+".0":c):O().yd===b?c="null":(b=c.nq,c=Lo(b)?""+Dc(34)+$D(aE(),b)+Dc(34):""+Dc(34)+c.ya+Dc(34)),bG(a,c);else throw(new v).d(c);return a}aG.prototype.$classData=q({B5a:0},!1,"org.yaml.render.JsonRender",{B5a:1,f:1});function cG(){}cG.prototype=new r;cG.prototype.constructor=cG;cG.prototype.a=function(){return this};
function mwa(a){var b=(new Rp).a(),c=Ufa();try{bG(lwa(jwa(b,c),a.Bd),"\n")}finally{(new Xj).d(b)}return b.u()}cG.prototype.$classData=q({C5a:0},!1,"org.yaml.render.JsonRender$",{C5a:1,f:1});var nwa=void 0;function owa(){nwa||(nwa=(new cG).a())}function dG(){}dG.prototype=new r;dG.prototype.constructor=dG;dG.prototype.a=function(){return this};
function pwa(a,b,c){var e=VE();null!==b&&b===e?e=!0:(e=mva(),e=null!==b&&b===e);if(e)return b;if(0===(a.length|0))return c||!b.HL()?VE():wq();e=(new ph).e(a);e=Wj(e);if(32===(null===e?0:e.t)||re(ta(),a,"\n\n"))return VE();var f=e=!0,g=!0,h=!1,k=(new eG).e(a);do switch(k.ac){case 10:e=!1;break;case 9:g=!1;break;case 13:return VE();default:IE();var l=k.ac;if(9===l||10===l||13===l||32<=l&&126>=l||133===l||160<=l&&55295>=l||57344<=l&&65533>=l||65536<=l&&1114111>=l)qwa(k)?h=!0:f=!1;else return VE()}while(rwa(k));
if(e){if(h)return VE();b.HL()&&g?(b=(new ph).e(a),b=ld(b),b=32!==(null===b?0:b.t)):b=!1;return b?c?(rF(),c=new sF,b=O().Op,c.jd=a,c.qm=b,Ova(c),a=c.qm,b=O().Wa,a===b?a=!0:(a=c.qm,c=O().fy,a=a===c),a?wq():VE()):wq():VE()}return f?VE():nva()}dG.prototype.$classData=q({D5a:0},!1,"org.yaml.render.ScalarRender$",{D5a:1,f:1});var swa=void 0;function eG(){this.jd=null;this.pI=this.ac=this.xm=0}eG.prototype=new r;eG.prototype.constructor=eG;
function twa(a){return a.xm===a.pI?0:65535&(a.jd.charCodeAt(1+a.xm|0)|0)}function uwa(a){return 0===a.xm?0:65535&(a.jd.charCodeAt(-1+a.xm|0)|0)}eG.prototype.e=function(a){this.jd=a;this.xm=0;var b=(new ph).e(a),b=Wj(b);this.ac=null===b?0:b.t;this.pI=-1+(a.length|0)|0;return this};
function qwa(a){if(0===a.xm)switch(a.ac){case 63:case 58:case 45:var b=twa(a);return vwa(Ft(),b)?!0:92===twa(a);default:return Vua(IE(),a.ac)}else switch(a.ac){case 35:return b=uwa(a),vwa(Ft(),b)?!0:92===uwa(a);case 58:return a.xm===a.pI?b=!0:(b=twa(a),b=vwa(Ft(),b)),b?!0:92===twa(a);default:return!1}}function rwa(a){if(a.xm===a.pI)return!1;a.xm=1+a.xm|0;a.ac=65535&(a.jd.charCodeAt(a.xm)|0);return!0}eG.prototype.$classData=q({E5a:0},!1,"org.yaml.render.ScalarRender$ScalarIterator",{E5a:1,f:1});
function fG(){this.DM=null;this.s0=!1;this.Tf=this.qO=null;this.yu=0;this.j0=this.I0=!1}fG.prototype=new r;fG.prototype.constructor=fG;function gG(a,b){nk(a.Tf,b);return a}function wwa(a){if(Tc(a.Tf)){var b=(new Xj).d(a.DM);a.qO.Bv(b.oq,a.Tf.Be.Ue);hG(a.Tf.Be,0)}}
function iG(a,b,c){xwa(a,b);if(jG(b))ywa(a,b.Bt,b.rF);else if(zwa(b))b.rF.X(t(new u,function(a){return function(b){gG(a,b.jd)}}(a)));else if(kG(b))Awa(a,b.Uf);else if(b&&b.$classData&&b.$classData.v.D8)Bwa(a,b);else if(Ew(b))Cwa(a,b);else if(Aw(b))Dwa(a,b);else if(Kr(b))Ewa(a,b.Uf,w());else if(rs(b))Fwa(a,b,c.Ja(O().Wa));else if(Gwa(b))Hwa(a,b);else if(b&&b.$classData&&b.$classData.v.axa)Iwa(a,b);else if(Ir(b))Jwa(a,b);else throw(new v).d(b);return a}
function Kwa(a,b){var c=Tc(b);c&&b.X(t(new u,function(a){return function(b){gG(a,b.jd)}}(a)));return c}
function Lwa(a,b){var c=b.Da,e=c.we();if(rs(e)){Hwa(a,c.pb());var f=c.PS;f.b()||(f=f.c(),iG(a,f,w()));if(-1!==(e.ya.indexOf("\n")|0))f=Dc(34),aE(),gG(a,""+f+$D(0,e.ya)+Dc(34));else{var f=c.pb().nb,g=O().Wa,f=f===g?Mwa(c.pb()):!1;Fwa(a,e,f)}gG(a,": ")}else e=gG(a,"?"),f=w(),gG(Nwa(lG(iG(e,c,f))),": ");e=b.i;b=b.Uf.Ck(t(new u,function(a,b){return function(a){return a!==b}}(a,c))).sa().Ck(t(new u,function(){return function(a){return zwa(a)?(a=a.rF.pc(),a.b()?!1:":"===a.c().jd):!1}}(a))).om(t(new u,function(a,
b){return function(a){return a!==b}}(a,e)));if(null===b)throw(new v).d(b);c=b.pa();b=b.Ba().sa();a.zK();c.X(t(new u,function(a){return function(b){return Nwa(iG(a,b,w()))}}(a)));a.YJ();c=e.pb().nb;f=O().yd;c!==f?c=!0:(c=e.u(),c=(new ph).e(c),c=Tc(c));c&&iG(a,e,w());Tc(b)&&(iG(a,b.fa(),w()),a.zK(),b.sa().X(t(new u,function(a){return function(b){var c=Nwa(a),e=w();return iG(c,b,e)}}(a))),a.YJ())}function Hwa(a,b){Kwa(a,b.rF)||Mwa(b)||gG(a,b.ya+" ")}
function Ewa(a,b,c){b.X(t(new u,function(a,b){return function(c){return iG(a,c,b)}}(a,c)))}function Cwa(a,b){Owa(a,b)||(b.Jn.b()?gG(a,"[]"):(a.zK(),b.Uf.X(t(new u,function(a){return function(b){if(Ir(b)){var f=gG(Nwa(lG(a)),"- "),g=w();return iG(f,b,g)}if(jG(b))return iG(a,b,w())}}(a))),a.YJ()))}fG.prototype.YJ=function(){this.yu=-2+this.yu|0};function Awa(a,b){Ewa(a,b,w());lG(a);a.j0=!0}function Bwa(a,b){Owa(a,b)||lG(gG(a,b.u()));a.I0=!0}
function Owa(a,b){b=b.Uf;var c=Tc(b)&&zwa(b.fa());c&&Ewa(a,b,w());return c}function xwa(a,b){if(a.j0&&(a.j0=!1,gG(a,"...\n"),kG(b))){b=b.eQ;var c=O().yd;b===c&&gG(a,"---\n")}}function Pwa(a,b){b.X(t(new u,function(a){return function(b){return iG(a,b,w())}}(a)));wwa(a)}
function Jwa(a,b){if(a.s0&&b&&b.$classData&&b.$classData.v.jxa||!Owa(a,b))if(a.I0&&(gG(a,"---\n"),a.I0=!1),b&&b.$classData&&b.$classData.v.hxa)a.s0?iG(a,b.cw,w()):gG(a,b.u()),void 0;else if(mG(b)&&a.s0&&b.cw.qa())iG(a,b.cw.c(),w());else{var c=b.Uf;b=b.pb();var e=O().Wa.Ct;Ewa(a,c,b===e?(new A).d(O().Wa):w())}}function Iwa(a,b){Kwa(a,b.rF)||gG(a,Qwa(nG(),b," "))}
function lG(a){if(!HF(a.Tf)){var b=-1+a.Tf.Be.Ka()|0;if(0<=b)var c=a.Tf.Be.Ow(b),c=Rwa(Ft(),c);else c=!1;c&&hG(a.Tf.Be,b);dE(a.Tf.Be,10);wwa(a)}return a}function Nwa(a){var b=a.yu,c=-1+b|0;if(!(0>=b))for(b=0;;){dE(a.Tf.Be,32);if(b===c)break;b=1+b|0}return a}
function Fwa(a,b,c){if(!Owa(a,b)){swa||(swa=(new dG).a());var e=b.ya,f=b.tH,g=a.yu;b=hd(b.Uf,new Swa);b=b.b()?"":b.c();c=pwa(e,f,c);if(wq()!==c)if(VE()===c)e=""+Dc(34)+$D(aE(),e)+Dc(34);else if(mva()===c)e="'"+e.split("\n").join("\n\n")+"'";else if(nva()===c){c=(new lk).a();g=0>g?2:2+g|0;cE(c,124);var f=e.length|0,h=(new ph).e(e),h=Wj(h);32===(null===h?0:h.t)&&bE(c,""+g);10!==(65535&(e.charCodeAt(-1+f|0)|0))?cE(c,45):1<f&&10===(65535&(e.charCodeAt(-2+f|0)|0))&&cE(c,43);bE(c,b);f=0;do{ta();b=e;var h=
f,k=Twa(10);b=b.indexOf(k,h)|0;f=-1===b?e.substring(f):e.substring(f,b);cE(c,10);h=(new ph).e(f);if(Tc(h)){h=-1+g|0;if(!(0>=g))for(k=0;;){cE(c,32);if(k===h)break;k=1+k|0}bE(c,f)}f=1+b|0}while(-1!==b);e=c}else throw(new v).d(c);gG(a,ja(e))}}function Dwa(a,b){Owa(a,b)||(b.Bb.b()?gG(a,"{}"):(a.zK(),b.Bb.X(t(new u,function(a){return function(b){Lwa(Nwa(lG(a)),b)}}(a))),a.YJ()))}function ywa(a,b,c){Kwa(a,c)||(Tc(a.Tf)?(c=ld(a.Tf),c=null===c?0:c.t,c=!Rwa(Ft(),c)):c=!1,c&&gG(a," "),lG(gG(a,"#"+b)))}
fG.prototype.zK=function(){this.yu=2+this.yu|0};fG.prototype.$classData=q({F5a:0},!1,"org.yaml.render.YamlRender",{F5a:1,f:1});function oG(){}oG.prototype=new r;oG.prototype.constructor=oG;oG.prototype.a=function(){return this};function gda(a,b){a=(new Rp).a();var c=Ufa(),e=z();Uwa(a,H(e,(new J).aa([b])),c);return a.u()}function Uwa(a,b,c){var e=new fG;e.DM=a;e.s0=!1;e.qO=c;e.Tf=(new lk).a();e.yu=-2;e.I0=!1;e.j0=!1;Pwa(e,b)}
oG.prototype.$classData=q({G5a:0},!1,"org.yaml.render.YamlRender$",{G5a:1,f:1});var Vwa=void 0;function hda(){Vwa||(Vwa=(new oG).a());return Vwa}function pG(){this.fp=null;this.eB=0;this.Do=this.jz=this.mz=this.hz=this.Hp=this.hB=this.lz=this.Wr=this.rw=this.fB=null;this.gB=this.at=0;this.kz=!1;this.Uq=this.$w=this.Nx=null;this.k=0;this.ba=null}pG.prototype=new r;pG.prototype.constructor=pG;
function qG(a,b,c,e,f,g,h,k,l,p,y,I,E,V,da,sa,ua){return(new pG).wBa(b,c,e,f,g,h,k,l,p,y,I,E,V,da,sa,ua,a.$w)}function Wwa(a,b){var c=a.fp,e=a.mz,f=z();b=e.hg(b,f.s);return rG(c,qG(a,a.fp,a.eB,a.fB,a.rw,a.Wr,a.lz,a.hB,a.Hp,a.hz,b,a.jz,a.Do,a.at,a.gB,a.kz,a.Nx))}
function Xwa(a,b,c){try{var e=a.$w.pW.R(b),f=Ywa(Zwa(),a.mz,e);if(Hp(f)){Zf();var g=a.hz.zf(e,c);return(new ag).d(g)}if(Ep(f)){var h=f.i;Zf();return(new $f).d(h)}throw(new v).d(f);}catch(k){c=gi(Mb(),k);if(null!==c){$wa();a=axa(a);a=(new ph).e(a);a=Kja(a);b=(new bxa).tc(a,b);if(b.yt(c))return a=sG().OT,b.pt(c,a);throw Lb(Mb(),c);}throw k;}}
function cxa(a,b,c){if(b>=c.Ka())var e=!0;else var e=a.Uq,f=tG(),e=!(null!==e&&e===f);if(e)return 0;b=c.jb(b);return 0<dxa(a,b)?dxa(a,b):0<exa(a,b)?exa(a,b):0}pG.prototype.u=function(){return uG(this)};function vG(a,b){return rG(a.fp,qG(a,a.fp,a.eB,a.fB,a.rw,a.Wr,a.lz,a.hB,a.Hp,qd(function(a,b){return function(f,g){return b.zf(f,a.hz.zf(f,g))}}(a,b)),a.mz,a.jz,a.Do,a.at,a.gB,a.kz,a.Nx))}function fxa(a){var b=a.lz;return(b.b()?wG().kza:b.c())+"\x3d"+gxa(a)}
function xG(a,b){return rG(a.fp,qG(a,a.fp,a.eB,a.fB,a.rw,a.Wr,a.lz,a.hB,b,a.hz,a.mz,a.jz,a.Do,a.at,a.gB,a.kz,a.Nx))}
function hxa(a){var b=!1,c=a.Uq;if(yG()===c||ixa()===c||zG()===c)return a.Hp;if(AG()===c)return"Command: "+jxa(a.fp,(new A).d(a))+wG().dy+a.Hp;if(BG()===c)return""+wG().ju+a.ba+wG().xS+a.Hp;if(tG()===c&&(b=!0,2===a.$w.Kw))return b=wG().ju,c=a.Wr,c.b()?c=w():(c=c.c(),c=(new A).d("-"+c+":"+fxa(a)+" | ")),""+b+(c.b()?"":c.c())+uG(a)+":"+fxa(a)+wG().xS+a.Hp;if(b&&1===a.$w.Kw)return b=wG().ju,c=a.Wr,c.b()?c=w():(c=c.c(),c=(new A).d("-"+c+" "+gxa(a)+" | ")),""+b+(c.b()?"":c.c())+uG(a)+" "+gxa(a)+wG().xS+
a.Hp;if(b)return b=wG().ju,c=a.Wr,c.b()?c=w():(c=c.c(),c=(new A).d("-"+c+" | ")),""+b+(c.b()?"":c.c())+uG(a)+wG().xS+a.Hp;throw(new v).d(c);}pG.prototype.wBa=function(a,b,c,e,f,g,h,k,l,p,y,I,E,V,da,sa,ua){this.fp=a;this.eB=b;this.fB=c;this.rw=e;this.Wr=f;this.lz=g;this.hB=h;this.Hp=k;this.hz=l;this.mz=p;this.jz=y;this.Do=I;this.at=E;this.gB=V;this.kz=da;this.Nx=sa;this.$w=ua;this.Uq=c;this.k=b;this.ba=e;return this};
function axa(a){var b=a.Uq;return tG()===b?"option "+uG(a):AG()===b?"command "+uG(a):"argument "+uG(a)}function CG(a,b){var c=a.fp;b=(new A).d(b);return rG(c,qG(a,a.fp,a.eB,a.fB,a.rw,b,a.lz,a.hB,a.Hp,a.hz,a.mz,a.jz,a.Do,a.at,a.gB,a.kz,a.Nx))}function gxa(a){a=a.hB;return a.b()?wG().lza:a.c()}function kxa(a){a=a.Wr;return a.b()?"":a.c()}
function lxa(a){var b=!1,c=a.Uq;if(yG()===c||ixa()===c||zG()===c)return"";if(AG()===c)return"Command: "+jxa(a.fp,(new A).d(a))+wG().dy;if(BG()===c)return""+wG().ju+a.ba;if(tG()===c&&(b=!0,2===a.$w.Kw))return b=wG().ju,c=a.Wr,c.b()?c=w():(c=c.c(),c=(new A).d("-"+c+", ")),""+b+(c.b()?"":c.c())+uG(a)+":"+fxa(a);if(b&&1===a.$w.Kw)return b=wG().ju,c=a.Wr,c.b()?c=w():(c=c.c(),c=(new A).d("-"+c+", ")),""+b+(c.b()?"":c.c())+uG(a)+" "+gxa(a);if(b)return b=wG().ju,c=a.Wr,c.b()?c=w():(c=c.c(),c=(new A).d("-"+
c+", ")),""+b+(c.b()?"":c.c())+uG(a);throw(new v).d(c);}function mxa(a,b){var c=!1,e=a.Uq;if(yG()===e||ixa()===e||zG()===e)return a.Hp;if(AG()===e)return""+lxa(a)+a.Hp;if(BG()===e||tG()===e&&(c=!0,2===a.$w.Kw)||c&&1===a.$w.Kw||c)return""+nxa(""+lxa(a)+wG().ju,b)+a.Hp;throw(new v).d(e);}function dxa(a,b){if(b===uG(a))return 1+(0===a.$w.Kw?0:1)|0;var c=uG(a)+":";0<=(b.length|0)&&b.substring(0,c.length|0)===c?b=!0:(a=uG(a)+"\x3d",b=0<=(b.length|0)&&b.substring(0,a.length|0)===a);return b?1:0}
function oxa(a){var b=a.fp,c=(new A).d("\x3cdialect_file1\x3e,\x3cdialect_file2\x3e...");return rG(b,qG(a,a.fp,a.eB,a.fB,a.rw,a.Wr,a.lz,c,a.Hp,a.hz,a.mz,a.jz,a.Do,a.at,a.gB,a.kz,a.Nx))}function pxa(a,b){var c=a.fp;b=(new A).d(b.k);rG(c,qG(a,a.fp,a.eB,a.fB,a.rw,a.Wr,a.lz,a.hB,a.Hp,a.hz,a.mz,a.jz,b,a.at,a.gB,a.kz,a.Nx))}function uG(a){var b=a.Uq;return tG()===b?"--"+a.ba:a.ba}
function qxa(a){var b=wG().Exa;return rG(a.fp,qG(a,a.fp,a.eB,a.fB,a.rw,a.Wr,a.lz,a.hB,a.Hp,a.hz,a.mz,a.jz,a.Do,a.at,b,a.kz,a.Nx))}function rxa(a,b,c,e){var f=new pG,g=wG().Bya,h=1+g.hV|0;g.hV=h;pG.prototype.wBa.call(f,a,h,b,c,w(),w(),w(),"",qd(function(a,b){return b}),H(z(),G()),H(z(),G()),w(),0,1,!1,w(),e);return f}
function nxa(a,b){if((a.length|0)<=b){var c=(new ph).e(" ");return""+a+pha(c,b-(a.length|0)|0)}a=(new ph).e(a);c=wG().ju.length|0;a=Lca(a,c);var c=wG().dy,e=(new ph).e(" ");return""+a+c+pha(e,b)}function exa(a,b){var c=!1;if(x(a.Wr)&&(c=!0,b==="-"+kxa(a)))return 1+(0===a.$w.Kw?0:1)|0;if(c)var e="-"+kxa(a)+":",e=0<=(b.length|0)&&b.substring(0,e.length|0)===e;else e=!1;if(e)return 1;c?(a="-"+kxa(a)+"\x3d",b=0<=(b.length|0)&&b.substring(0,a.length|0)===a):b=!1;return b?1:0}
function sxa(a,b,c){if(b>=c.Ka())var e=!0;else var e=a.Uq,f=tG(),e=!(null!==e&&e===f);if(e)return Zf(),(new $f).d("Option does not match");e=c.jb(b);if(2===dxa(a,e)||2===exa(a,e))return b=1+b|0,b>=c.Ka()?a=!0:(a=a.Uq,f=tG(),a=!(null!==a&&a===f)),c=a?w():(new A).d(c.jb(b)),c.b()?c=w():(c=c.c(),Zf(),c=(new A).d((new ag).d(c))),c.b()?(Zf(),(new $f).d("Missing value after "+e)):c.c();if(1===dxa(a,e)&&1===(0===a.$w.Kw?0:1))return Zf(),c=(new ph).e(e),e=(uG(a)+":").length|0,a=c.ia.length|0,c=Lh(Mh(),c.ia,
e,a),(new ag).d(c);if(1===exa(a,e)&&1===(0===a.$w.Kw?0:1))return Zf(),c=(new ph).e(e),e=("-"+kxa(a)+":").length|0,a=c.ia.length|0,c=Lh(Mh(),c.ia,e,a),(new ag).d(c);Zf();return(new ag).d("")}pG.prototype.$classData=q({O5a:0},!1,"scopt.OptionDef",{O5a:1,f:1});function DG(){this.Exa=0;this.P8=this.xS=this.Cxa=this.ju=this.dy=null;this.Uya=0;this.Bya=this.lza=this.kza=null}DG.prototype=new r;DG.prototype.constructor=DG;
DG.prototype.a=function(){txa=this;this.Exa=2147483647;this.dy=$wa().Fga;this.ju="  ";this.Cxa="        ";this.xS=""+this.dy+this.Cxa;this.P8=""+this.dy+this.dy;this.Uya=25+(this.ju.length|0)|0;this.kza="\x3ckey\x3e";this.lza="\x3cvalue\x3e";this.Bya=(new EG).a();return this};DG.prototype.$classData=q({P5a:0},!1,"scopt.OptionDef$",{P5a:1,f:1});var txa=void 0;function wG(){txa||(txa=(new DG).a());return txa}function FG(){this.Laa=this.fc=this.KDa=null}FG.prototype=new r;FG.prototype.constructor=FG;
function uxa(){}uxa.prototype=FG.prototype;
function vxa(a){var b=a.fc;Wg();a=Yg(new Zg,(new $g).a());for(b=b.Lb;!b.b();){var c=b.fa(),e=c,f=e.Uq,g=yG();null===f||f!==g?(f=e.Uq,g=zG(),f=!(null!==f&&f===g)):f=!1;!1!==(f&&!e.kz)&&ah(a,c);b=b.sa()}c=a.gb;Wg();b=Yg(new Zg,(new $g).a());Wg();a=Yg(new Zg,(new $g).a());for(c=c.Lb;!c.b();)e=c.fa(),ah(e.Do.qa()?b:a,e),c=c.sa();b=b.gb;c=a.gb;a=H(Wg(),G()).RJ().Cf(b);b=H(Wg(),G()).RJ().Cf(c);for(c=!0;!a.b()&&c;)for(c=!1,e=b.Lb;!e.b();){f=e.fa();Wg();for(var g=Yg(new Zg,(new $g).a()),h=a.Lb;!h.b();){var k=
h.fa(),l=k.Do,p=(new A).d(f.k);!1!==(null!==l&&l.h(p))&&ah(g,k);h=h.sa()}g=g.gb;g.Fa()&&(Zda(a,g),wxa(b,1+xxa(b.Lb,f,0)|0,g),c=!0);e=e.sa()}return b.wa()}function yxa(a){var b=a.fc.Lb;Di();for(a=(new $g).a();!b.b();){var c=b.fa(),e=c.Uq,f=zG();!1!==(null!==e&&e===f)&&vh(a,c);b=b.sa()}return a.wa()}function GG(a){bq(HG().m0.yo,"Error: "+a)}function zxa(a){var b=a.fc.Lb;Di();for(a=(new $g).a();!b.b();){var c=b.fa(),e=c.Uq,f=yG();!1!==(null!==e&&e===f)&&vh(a,c);b=b.sa()}return a.wa()}
function Axa(a){if(ft(a)){var b=a.Aj,c=a.ve;if(ft(c)){var e=c.Aj,c=c.ve;if(G().h(c))return b+" or "+e}}b=a.Lh().Ed();e=a;for(c=a.b0(2);!c.b();)b.Ic(e.fa()),e=e.sa(),c=c.sa();b=b.lc();a=ija(a);a=IG(a,"",", or ","");e=Di().s;return Ss(b,a,e).ng(", ")}function JG(a,b,c,e){return rG(a,rxa(a,b,c,e))}
function Kea(a,b,c){for(var e=0,e=0,f=H(Wg(),G()),g=Bxa(a).Ph(t(new u,function(){return function(a){return a.Do.qa()}}(a))),h=f.RJ().Cf(g.td()),k=H(Wg(),G()),l=Cxa(a).Ph(t(new u,function(){return function(a){return a.Do.qa()}}(a))),p=k.RJ().Cf(l.td()),y=H(Wg(),G()),I=Dxa(a).Ph(t(new u,function(){return function(a){return a.Do.qa()}}(a))),E=y.RJ().Cf(I.td()),V=pc(br(),G()).oHa(0),da=null,da=c,sa=!1,sa=!1;e<b.Ka();){a:{for(var ua=h.Lb;!ua.b();){if(0<cxa(ua.fa(),e,b)){var Ia=(new A).d(ua.fa());break a}ua=
ua.sa()}Ia=w()}if(x(Ia)){var Pa=Ia.i;Exa(Pa,h,V);var Za=sxa(Pa,e,b);if(Hp(Za)){var db=Xwa(Pa,Za.i,da);if(Hp(db))da=db.i,Fxa(a,Pa,h,p,E);else if(Ep(db)){var Qb=db.i,sa=!0;Qb.X(t(new u,function(){return function(a){GG(a)}}(a)))}else throw(new v).d(db);}else if(Ep(Za)){var bc=Za.i,sa=!0;GG(bc)}else throw(new v).d(Za);1<cxa(Pa,e,b)&&(e=e+(-1+cxa(Pa,e,b)|0)|0)}else if(w()===Ia){var rc=b.jb(e);if(0<=(rc.length|0)&&"--"===rc.substring(0,2)){var Fc="Unknown option "+rc,sa=!0;GG(Fc)}else if(0<=(rc.length|
0)&&"-"===rc.substring(0,1))if("-"===rc){var Rd="Unknown option "+rc,sa=!0;GG(Rd)}else{var Ld=(new ph).e(rc),ze=Ld.ia.length|0,Td=Lh(Mh(),Ld.ia,1,ze);a:for(;;){var Je=-1+((new ph).e(Td).ia.length|0)|0,$d=0>Je;if($d)var te=0;else var Hd=Je>>31,ie=1+Je|0,Nd=0===ie?1+Hd|0:Hd,te=(0===Nd?-1<(-2147483648^ie):0<Nd)?-1:ie;var td=Td;xq();uv();xq();yq();var yd=(new zq).a();0>te&&Gxa(KG(),0,Je,1,!0);if(!$d)for(var ud=0;;){var Ve=ud,Me=((new ph).e(td).ia.length|0)-Ve|0,Rc=td.substring(0,Me);LG(yd,Rc);if(ud===
Je)break;ud=1+ud|0}var me=Bq(yd);xq();uv();yq();for(var Ae=(new zq).a(),We=Hxa(me);We.JM;){for(var od=We.Sa(),Ad=Wg().s,ue=Rf(h,Ad),Id=h.Lb;!Id.b();){var gf=Id.fa();ue.Ic((new P).N(od,gf));Id=Id.sa()}var Jd=ue.lc();Yi(Ae,Jd)}var Vd=Hxa(Bq(Ae));b:{for(;Vd.JM;){var je=Vd.Sa(),Wd=je;if(null===Wd)throw(new v).d(Wd);var ve=Wd.pa();if(1===exa(Wd.Ba(),"-"+ve)){var $c=(new A).d(je);break b}}$c=w()}if(x($c)){var we=$c.i;if(null===we)throw(new v).d(we);var cd=we.pa(),ae=we.Ba();Exa(ae,h,V);var be=Xwa(ae,"",
da);if(Hp(be))da=be.i,Fxa(a,ae,h,p,E);else if(Ep(be)){var xe=be.i,sa=!0;xe.X(t(new u,function(){return function(a){GG(a)}}(a)))}else throw(new v).d(be);var ne=(new ph).e(Td),Ed=(new ph).e(cd).ia.length|0,Ne=ne.ia.length|0,hf=Lh(Mh(),ne.ia,Ed,Ne);if(null===hf||""!==hf){var Ef=(new ph).e(Td),Vf=(new ph).e(cd).ia.length|0,Xe=Ef.ia.length|0,Td=Lh(Mh(),Ef.ia,Vf,Xe);continue a}}else{if(w()!==$c)throw(new v).d($c);var Ye="Unknown option -"+Td,sa=!0;GG(Ye)}break}}else if(Ixa(rc,E).qa()){var vf=Ixa(rc,E).c();
Exa(vf,E,V);var Oe=Xwa(vf,"",da);if(Hp(Oe))da=Oe.i,Fxa(a,vf,h,p,E);else if(Ep(Oe)){var Xd=Oe.i,sa=!0;Xd.X(t(new u,function(){return function(a){GG(a)}}(a)))}else throw(new v).d(Oe);}else if(p.b()){var Ff="Unknown argument '"+rc+"'",sa=!0;GG(Ff)}else{var rf=p.Lb.fa();Exa(rf,p,V);var cf=Xwa(rf,rc,da);if(Hp(cf))da=cf.i,Fxa(a,rf,h,p,E);else if(Ep(cf)){var hg=cf.i,sa=!0;hg.X(t(new u,function(){return function(a){GG(a)}}(a)))}else throw(new v).d(cf);}}else throw(new v).d(Ia);e=1+e|0}Wg();for(var kg=Yg(new Zg,
(new $g).a()),oe=h.Lb;!oe.b();){var wf=oe.fa();!1!==wf.Nx.qa()&&ah(kg,wf);oe=oe.sa()}for(var ce=kg.gb.Lb;!ce.b();){var jf=ce.fa(),Kf=gc(jf.Nx.c());if(null!==Kf){Exa(jf,h,V);var xf=Xwa(jf,ja(Kf),da);if(Hp(xf))da=xf.i,Fxa(a,jf,h,p,E);else if(Ep(xf)){var Pe=xf.i,sa=!0;Pe.X(t(new u,function(){return function(a){GG(a)}}(a)))}else throw(new v).d(xf);}ce=ce.sa()}Wg();for(var Ze=Yg(new Zg,(new $g).a()),Oc=h.Lb;!Oc.b();){var ke=Oc.fa(),Lf=ke;!1!==Lf.at>(V.R(Lf)|0)&&ah(Ze,ke);Oc=Oc.sa()}for(var df=Ze.gb.Lb;!df.b();){var de=
df.fa();if(1===de.at)GG("Missing "+axa(de));else{var yg=axa(de),Mf=(new ph).e(yg);GG(Kja(Mf)+" must be given "+de.at+" times")}sa=!0;df=df.sa()}Wg();for(var pe=Yg(new Zg,(new $g).a()),Qe=p.Lb;!Qe.b();){var $e=Qe.fa(),kf=$e;!1!==kf.at>(V.R(kf)|0)&&ah(pe,$e);Qe=Qe.sa()}for(var Re=pe.gb.Lb;!Re.b();){var le=Re.fa();if(1===le.at)GG("Missing "+axa(le));else{var Se=axa(le),Nf=(new ph).e(Se);GG(Kja(Nf)+"' must be given "+le.at+" times")}sa=!0;Re=Re.sa()}var Gf=da,yf=Zwa(),ef=yxa(a),lf=t(new u,function(){return function(a){return a.jz}}(a)),
mf=z(),zg=Ywa(yf,ef.md(lf,mf.s),Gf);if(!Hp(zg))if(Ep(zg)){var yh=zg.i,sa=!0;yh.X(t(new u,function(){return function(a){GG(a)}}(a)))}else throw(new v).d(zg);return sa?(a.Laa.b()?bq(HG().m0.yo,Jxa(a)):Kxa(a),w()):(new A).d(da)}function Lxa(a,b){a=JG(a,zG(),"",Zj().uM);var c=a.fp,e=a.jz,f=z();b=e.hg(b,f.s);rG(c,qG(a,a.fp,a.eB,a.fB,a.rw,a.Wr,a.lz,a.hB,a.Hp,a.hz,a.mz,b,a.Do,a.at,a.gB,a.kz,a.Nx))}
function jxa(a,b){var c=(new $g).a();if(b.b())var e=w();else e=b.c(),e=(new A).d(Mxa(a,e));vh(c,e.b()?a.KDa:e.c());b.b()?e=w():(b=b.c(),e=(new A).d(b.k));b=Dxa(a).xb(t(new u,function(a,b){return function(a){a=a.Do;return null===a?null===b:a.h(b)}}(a,e)));if(b.Fa()){var f=t(new u,function(){return function(a){return a.ba}}(a)),g=z();vh(c,b.ka(f,g.s).Fk("[","|","]"))}g=a.fc.Lb;Di();for(f=(new $g).a();!g.b();){var h=g.fa(),k=h,l=k.Uq,p=tG();null!==l&&l===p?(k=k.Do,k=null===k?null===e:k.h(e)):k=!1;!1!==
k&&vh(f,h);g=g.sa()}f=f.wa();e=Cxa(a).xb(t(new u,function(a,b){return function(a){a=a.Do;return null===a?null===b:a.h(b)}}(a,e)));Tc(f)&&vh(c,"[options]");b.Cd(t(new u,function(a){return function(b){return Cxa(a).Cd(t(new u,function(a,b){return function(a){a=a.Do;var c=(new A).d(b.k);return null!==a&&a.h(c)}}(a,b)))}}(a)))?vh(c,"\x3cargs\x3e..."):e.Fa()&&(a=t(new u,function(){return function(a){var b=a.Uq;return BG()===b&&0===a.at?"["+uG(a)+"]":uG(a)}}(a)),b=z(),Er(c,e.ka(a,b.s)));return IG(c.Lb,
""," ","")}function Mxa(a,b){var c=b.Do;c.b()?a=w():(c=c.c()|0,c=Dxa(a).Ib(t(new u,function(a,b){return function(a){return a.k===b}}(a,c))),c.b()?a=w():(c=c.c(),a=(new A).d(Mxa(a,c))),a=(new A).d((a.b()?"":a.c())+" "));return""+(a.b()?"":a.c())+b.ba}function Dxa(a){var b=a.fc.Lb;Di();for(a=(new $g).a();!b.b();){var c=b.fa(),e=c.Uq,f=AG();!1!==(null!==e&&e===f)&&vh(a,c);b=b.sa()}return a.wa()}
function Fxa(a,b,c,e,f){f.PJ();wxa(c,0,Bxa(a).xb(t(new u,function(a,b,c){return function(a){var e=a.Do,f=(new A).d(c.k);return null!==e&&e.h(f)?!uh(b.Lb,a):!1}}(a,c,b))));wxa(e,0,Cxa(a).xb(t(new u,function(a,b,c){return function(a){var e=a.Do,f=(new A).d(c.k);return null!==e&&e.h(f)?!uh(b.Lb,a):!1}}(a,e,b))));wxa(f,0,Dxa(a).xb(t(new u,function(a,b,c){return function(a){var e=a.Do,f=(new A).d(c.k);return null!==e&&e.h(f)?!uh(b.Lb,a):!1}}(a,f,b))))}
function Ixa(a,b){for(b=b.Lb;!b.b();){if(b.fa().ba===a)return(new A).d(b.fa());b=b.sa()}return w()}function Kxa(a){var b=HG().m0.yo,c=a.Laa.wa();a=function(){return function(a){return uG(a)}}(a);var e=Di().s;if(e===Di().s)if(c===G())a=G();else{for(var e=c.fa(),f=e=oz(new pz,a(e),G()),c=c.sa();c!==G();)var g=c.fa(),g=oz(new pz,a(g),G()),f=f.ve=g,c=c.sa();a=e}else{for(e=Rf(c,e);!c.b();)f=c.fa(),e.Ic(a(f)),c=c.sa();a=e.lc()}bq(b,"Try "+Axa(a)+" for more information.")}
function Exa(a,b,c){c.Rl(a,1+(c.R(a)|0)|0);(c.R(a)|0)>=a.gB&&Nxa(b,a)}
function Oxa(a){var b=vxa(a),c=wG().Uya,e=function(){return function(a){a=lxa(a).length;var b=wG().ju;return(a|0)+(b.length|0)|0}}(a),f=Di().s;if(f===Di().s)if(b===G())e=G();else{for(var f=b.fa(),g=f=oz(new pz,e(f),G()),h=b.sa();h!==G();)var k=h.fa(),k=oz(new pz,e(k),G()),g=g.ve=k,h=h.sa();e=f}else{f=Rf(b,f);for(g=b;!g.b();)h=g.fa(),f.Ic(e(h)),g=g.sa();e=f.lc()}G().h(e)?e=0:(f=Ms(),e=Pxa(e,f)|0);c=function(a,b){return function(a){return mxa(a,b)}}(a,c<e?c:e);e=Di().s;if(e===Di().s)if(b===G())b=G();
else{e=b.fa();f=e=oz(new pz,c(e),G());for(b=b.sa();b!==G();)g=b.fa(),g=oz(new pz,c(g),G()),f=f.ve=g,b=b.sa();b=e}else{for(e=Rf(b,e);!b.b();)f=b.fa(),e.Ic(c(f)),b=b.sa();b=e.lc()}c=""===a.wu()?"":""+a.wu()+wG().dy;a=jxa(a,w());e=wG().P8;f=wG().dy;return c+"Usage: "+a+e+IG(b,"",f,"")}FG.prototype.wu=function(){var a=zxa(this),b=t(new u,function(){return function(a){return hxa(a)}}(this)),c=z();return a.ka(b,c.s).ng(wG().dy)};
FG.prototype.e=function(a){this.KDa=a;this.fc=(new $g).a();this.Laa=(new $g).a();return this};
function Qxa(a){var b=vxa(a),c=function(){return function(a){return hxa(a)}}(a),e=Di().s;if(e===Di().s)if(b===G())c=G();else{for(var e=b.fa(),f=e=oz(new pz,c(e),G()),b=b.sa();b!==G();)var g=b.fa(),g=oz(new pz,c(g),G()),f=f.ve=g,b=b.sa();c=e}else{for(e=Rf(b,e);!b.b();)f=b.fa(),e.Ic(c(f)),b=b.sa();c=e.lc()}b=""===a.wu()?"":""+a.wu()+wG().dy;a=jxa(a,w());e=wG().P8;f=wG().dy;return b+"Usage: "+a+e+IG(c,"",f,"")}
function Cxa(a){var b=a.fc.Lb;Di();for(a=(new $g).a();!b.b();){var c=b.fa(),e=c.Uq,f=BG();!1!==(null!==e&&e===f)&&vh(a,c);b=b.sa()}return a.wa()}function Bxa(a){var b=a.fc.Lb;Di();for(a=(new $g).a();!b.b();){var c=b.fa(),e=c,f=e.Uq,g=tG();null!==f&&f===g?e=!0:(e=e.Uq,f=ixa(),e=null!==e&&e===f);!1!==e&&vh(a,c);b=b.sa()}return a.wa()}function rG(a,b){a:{for(var c=0,e=Rxa(a.fc.Lb,0);;)if(Tc(e)){if(e.fa().k===b.k)break a;c=1+c|0;e=e.sa()}else break;c=-1}-1<c?a.fc.cz(c,b):vh(a.fc,b);return b}
function Sxa(a){var b=Zj().WC;a=JG(a,BG(),"\x3cfile_in\x3e [\x3cfile_out\x3e]",b);return rG(a.fp,qG(a,a.fp,a.eB,a.fB,a.rw,a.Wr,a.lz,a.hB,a.Hp,a.hz,a.mz,a.jz,a.Do,1,a.gB,a.kz,a.Nx))}function Jxa(a){var b=Txa();Uxa||(Uxa=(new Vxa).a());if(Uxa===b)return Qxa(a);if(Txa()===b)return Oxa(a);throw(new v).d(b);}function MG(){}MG.prototype=new r;MG.prototype.constructor=MG;MG.prototype.a=function(){return this};
function Ywa(a,b,c){c=t(new u,function(a,b){return function(a){return a.R(b)}}(a,c));var e=z();b=b.ka(c,e.s);wG();Zf();c=(new ag).d(void 0);return b.rl(c,qd(function(){return function(a,b){if(Hp(a))var c=H(z(),G());else{if(!Ep(a))throw(new v).d(a);c=a.i}if(Hp(b))b=H(z(),G());else{if(!Ep(b))throw(new v).d(b);b=b.i;b=H(z(),(new J).aa([b]))}var e=z(),c=c.la(b,e.s);z();b=(new A).d(c);if(null!==b.i&&0===b.i.Ge(0))return a;Zf();return(new $f).d(c)}}(a)))}
MG.prototype.$classData=q({X5a:0},!1,"scopt.Validation$",{X5a:1,f:1});var Wxa=void 0;function Zwa(){Wxa||(Wxa=(new MG).a());return Wxa}function NG(){this.Fga=null}NG.prototype=new r;NG.prototype.constructor=NG;NG.prototype.a=function(){Xxa=this;this.Fga=Faa.EOL;return this};NG.prototype.$classData=q({Y5a:0},!1,"scopt.platform$",{Y5a:1,f:1});var Xxa=void 0;function $wa(){Xxa||(Xxa=(new NG).a());return Xxa}function Ka(){this.lg=null}Ka.prototype=new r;Ka.prototype.constructor=Ka;
function dk(a){return a.lg.name}function Jt(a){return a.lg.getComponentType()}Ka.prototype.u=function(){return(this.lg.isInterface?"interface ":this.lg.isPrimitive?"":"class ")+dk(this)};function Bha(a,b){return!!a.lg.isInstance(b)}function rz(a){a=(new ph).e(a.lg.name);a=Ws(a,46);a=ld((new md).vc(a));a=(new ph).e(a);a=Ws(a,36);return ld((new md).vc(a))}Ka.prototype.$classData=q({I6a:0},!1,"java.lang.Class",{I6a:1,f:1});function Yxa(){this.Nya=0;this.PDa=OG();this.lDa=OG()}Yxa.prototype=new r;
Yxa.prototype.constructor=Yxa;Yxa.prototype.$classData=q({T6a:0},!1,"java.lang.Long$StringRadixInfo",{T6a:1,f:1});function PG(){}PG.prototype=new r;PG.prototype.constructor=PG;PG.prototype.a=function(){return this};function QG(a,b){a=aa.exitFunction;if(void 0===a)throw(new RG).e("Cannot terminate a JavaScript program. Define a JavaScript function `__ScalaJSEnv.exitFunction` to be called on exit.");a(b);throw(new fk).e("__ScalaJSEnv.exitFunction returned");}
PG.prototype.$classData=q({X6a:0},!1,"java.lang.Runtime",{X6a:1,f:1});function SG(){this.TJ=null}SG.prototype=new r;SG.prototype.constructor=SG;SG.prototype.a=function(){Zxa=this;this.TJ=(new PG).a();return this};SG.prototype.$classData=q({Y6a:0},!1,"java.lang.Runtime$",{Y6a:1,f:1});var Zxa=void 0;function TG(){Zxa||(Zxa=(new SG).a());return Zxa}function UG(){this.Zm=this.Wp=this.P1=null}UG.prototype=new r;UG.prototype.constructor=UG;
UG.prototype.a=function(){$xa=this;this.P1=aya(!1);this.Wp=aya(!0);this.Zm=null;return this};UG.prototype.$classData=q({d7a:0},!1,"java.lang.System$",{d7a:1,f:1});var $xa=void 0;function cq(){$xa||($xa=(new UG).a());return $xa}function VG(){this.yxa=null}VG.prototype=new r;VG.prototype.constructor=VG;VG.prototype.a=function(){bya=this;var a=new WG;a.ba="main";this.yxa=a;return this};VG.prototype.$classData=q({f7a:0},!1,"java.lang.Thread$",{f7a:1,f:1});var bya=void 0;
function XG(){this.yo=this.J0=null}XG.prototype=new r;XG.prototype.constructor=XG;XG.prototype.a=function(){this.J0=!1;return this};XG.prototype.c=function(){this.J0||YG(this,null);return this.yo};function YG(a,b){a.yo=b;a.J0=!0}XG.prototype.$classData=q({g7a:0},!1,"java.lang.ThreadLocal",{g7a:1,f:1});function dH(){}dH.prototype=new r;dH.prototype.constructor=dH;dH.prototype.a=function(){return this};function Ht(a,b,c){return b.lg.newArrayOfThisClass([c])}
dH.prototype.$classData=q({h7a:0},!1,"java.lang.reflect.Array$",{h7a:1,f:1});var cya=void 0;function It(){cya||(cya=(new dH).a());return cya}function eH(){}eH.prototype=new r;eH.prototype.constructor=eH;eH.prototype.a=function(){return this};function dya(a,b,c){a=0;var e=b.j.length;for(;;){if(a===e)return-1-a|0;var f=(a+e|0)>>>1|0,g=b.j[f];if(c<g)e=f;else{if(ub(vb(),c,g))return f;a=1+f|0}}}
function eya(a,b,c,e){c=c-b|0;if(2<=c){if(0<e.Ak(a.j[b],a.j[1+b|0])){var f=a.j[b];a.j[b]=a.j[1+b|0];a.j[1+b|0]=f}for(f=2;f<c;){var g=a.j[b+f|0];if(0>e.Ak(g,a.j[-1+(b+f|0)|0])){for(var h=b,k=-1+(b+f|0)|0;1<(k-h|0);){var l=(h+k|0)>>>1|0;0>e.Ak(g,a.j[l])?k=l:h=l}h=h+(0>e.Ak(g,a.j[h])?0:1)|0;for(k=b+f|0;k>h;)a.j[k]=a.j[-1+k|0],k=-1+k|0;a.j[h]=g}f=1+f|0}}}function fya(a,b){a=b.j.length;for(var c=0;c!==a;)b.j[c]=0,c=1+c|0}
function gya(a,b,c){var e=new fH;e.Sya=c;c=b.j.length;16<c?hya(a,b,ia(La(Ja),[b.j.length]),0,c,e):eya(b,0,c,e)}function hya(a,b,c,e,f,g){var h=f-e|0;if(16<h){var k=e+(h/2|0)|0;hya(a,b,c,e,k,g);hya(a,b,c,k,f,g);for(var l=a=e,p=k;a<f;)l<k&&(p>=f||g.SE(b.j[l],b.j[p]))?(c.j[a]=b.j[l],l=1+l|0):(c.j[a]=b.j[p],p=1+p|0),a=1+a|0;Ca(c,e,b,e,h)}else eya(b,e,f,g)}eH.prototype.$classData=q({i7a:0},!1,"java.util.Arrays$",{i7a:1,f:1});var iya=void 0;function gH(){iya||(iya=(new eH).a());return iya}
function hH(){this.VBa=null}hH.prototype=new r;hH.prototype.constructor=hH;hH.prototype.a=function(){jya=this;this.VBa=new ba.RegExp("(?:(\\d+)\\$)?([-#+ 0,\\(\x3c]*)(\\d+)?(?:\\.(\\d+))?[%A-Za-z]","g");return this};hH.prototype.$classData=q({o7a:0},!1,"java.util.Formatter$",{o7a:1,f:1});var jya=void 0;function kya(){this.Ei=null}kya.prototype=new r;kya.prototype.constructor=kya;
function iH(a,b,c,e,f){e=lya(a,c,e,f);if(null===e)throw(new v).d(e);a=e.Co;c=e.yg|0;e=e.th|0;f=z();return(new Be).Er(mya(a.Tr(b,f.s)),c,e)}function nya(a,b){a=lya(a,0,1,b).Co;if(G().h(a))return oya(jH(),"");z();b=(new A).d(a);return null!==b.i&&0===b.i.Ge(1)?b.i.jb(0):pya(jH(),a)}
function mya(a){a:for(;;){var b=a,c=qya(Zf().xR,b);if(!c.b()){var e=c.c().pa(),c=c.c().Ba(),e=rya().vF(e);if(!e.b()&&(e=e.c(),c=qya(Zf().xR,c),!c.b())){var f=c.c().pa(),c=c.c().Ba(),f=rya().vF(f);if(!f.b()&&(f=f.c(),!sya(tya(),e)&&"|"!==e&&!sya(tya(),f)&&"|"!==f)){a=oya(jH(),""+e+f);b=z();a=c.Tr(a,b.s);continue a}}}b=qya(Zf().xR,b);if(!b.b()&&(e=b.c().pa(),b=b.c().Ba(),b=qya(Zf().xR,b),!b.b()&&(c=b.c().pa(),b=b.c().Ba(),f=jH().vF(c),!f.b()&&(c=f.c().pa(),f=f.c().Ba(),kH(c)&&(c=uya(vya(),c),!c.b()&&
(c=c.c(),lH(f)&&""===f.SH)))))){a=jH().vF(e);if(!a.b()&&(f=a.c().pa(),a=a.c().Ba(),kH(f))){e=f;e=(new mH).tc(e.sC,""+e.LC+c);a=nH(new oH,e,a);e=z();a=b.Tr(a,e.s);continue a}a=jH().vF(e);if(!a.b()&&(a=a.c().pa(),pH(a))){a=(new mH).tc("",c);c=z();e=(new qH).ss(H(c,(new J).aa([e])));a=nH(new oH,a,e);e=z();a=b.Tr(a,e.s);continue a}throw(new v).d(e);}return a}}
function lya(a,b,c,e){if(b>=(e.length|0))return(new Be).Er(H(z(),G()),b,c);switch(65535&(e.charCodeAt(b)|0)){case 40:if((e.length|0)>=(3+b|0)&&63===(65535&(e.charCodeAt(1+b|0)|0))&&(61===(65535&(e.charCodeAt(2+b|0)|0))||33===(65535&(e.charCodeAt(2+b|0)|0)))){var f=lya(a,3+b|0,c,e);if(null===f)throw(new v).d(f);var g=f.Co;c=f.th|0;f=1+(f.yg|0)|0;b=65535&(e.charCodeAt(2+b|0)|0);b=(new mH).tc("(?"+Dc(b),")");g=wya(xya(),g);return iH(a,nH(new oH,b,g),f,c,e)}if((e.length|0)<(3+b|0)||63!==(65535&(e.charCodeAt(1+
b|0)|0))||58!==(65535&(e.charCodeAt(2+b|0)|0))){f=lya(a,1+b|0,1+c|0,e);if(null===f)throw(new v).d(f);g=f.Co;b=f.th|0;f=1+(f.yg|0)|0;c=(new rH).$d(c);g=wya(xya(),g);return iH(a,yya(nH(new oH,c,g)),f,b,e)}if((e.length|0)>=(3+b|0)&&63===(65535&(e.charCodeAt(1+b|0)|0))&&58===(65535&(e.charCodeAt(2+b|0)|0))){g=lya(a,3+b|0,c,e);if(null===g)throw(new v).d(g);c=g.Co;b=g.th|0;g=1+(g.yg|0)|0;return iH(a,yya(pya(jH(),c)),g,b,e)}return zya(a,e,b,c);case 41:return(new Be).Er(H(z(),G()),b,c);case 92:if((e.length|
0)>=(2+b|0)){g=65535&(e.charCodeAt(1+b|0)|0);if(Aya(Ft(),g))a:for(g=1+b|0;;)if(g<(e.length|0)?(f=65535&(e.charCodeAt(g)|0),f=Aya(Ft(),f)):f=!1,f)g=1+g|0;else break a;else g=2+b|0;b=e.substring(b,g);return iH(a,oya(jH(),b),g,c,e)}return zya(a,e,b,c);case 43:case 42:case 63:return g=(e.length|0)>=(2+b|0)&&63===(65535&(e.charCodeAt(1+b|0)|0))?2+b|0:1+b|0,b=e.substring(b,g),b=(new mH).tc("",b),f=(new sH).e(""),iH(a,nH(new oH,b,f),g,c,e);case 123:a:for(g=1+b|0;;){if((e.length|0)<=g)break a;if(125===(65535&
(e.charCodeAt(g)|0))){g=1+g|0;break a}g=1+g|0}b=e.substring(b,g);b=(new mH).tc("",b);f=(new sH).e("");return iH(a,nH(new oH,b,f),g,c,e);case 91:a:for(g=1+b|0;;){if((e.length|0)<=g)break a;if(92===(65535&(e.charCodeAt(g)|0))&&1<(e.length|0))g=2+g|0;else{if(93===(65535&(e.charCodeAt(g)|0))){g=1+g|0;break a}g=1+g|0}}b=e.substring(b,g);return iH(a,oya(jH(),b),g,c,e);default:return zya(a,e,b,c)}}
function Bya(a,b,c){var e=new kya,f=nya(e,c.mH.source),g=Cya(c);Dya(f,1);var h=Eya(f),k=t(new u,function(){return function(a){return(new tH).La(a.GM(),a.Ba().J1)}}(e)),l=Fqa(),l=vA(l);Fya(f,De(h,k,l));k=Gya(f);g=new ba.RegExp(k,g);g.lastIndex=b;k=g.exec(a);if(null===k)throw Lb(Mb(),(new Nb).e("[Internal error] Executed '"+g+"' on "+("'"+a+"' at position "+b)+", got an error.\n"+("Original pattern '"+c)+"' did match however."));Hya(f,t(new u,function(a,b){return function(a){a=b[a|0];return void 0===
a?null:a}}(e,k)));Iya(f,b);a=t(new u,function(){return function(a){return(new tH).La(a.GM(),a.Ba().Dd)}}(e));b=Fqa();b=vA(b);e.Ei=De(h,a,b);return e}function zya(a,b,c,e){var f=65535&(b.charCodeAt(c)|0);return iH(a,oya(jH(),""+Dc(f)),1+c|0,e,b)}kya.prototype.$classData=q({J7a:0},!1,"java.util.regex.GroupStartMap",{J7a:1,f:1});function uH(){}uH.prototype=new r;uH.prototype.constructor=uH;uH.prototype.a=function(){return this};
function sya(a,b){if(2<=(b.length|0)&&92===(65535&(b.charCodeAt(0)|0))){a=(new ph).e(b);a=tu(a);a=(new ph).e(a);for(b=0;;){if(b<(a.ia.length|0))var c=a.jb(b),c=null===c?0:c.t,c=!0===Aya(Ft(),c);else c=!1;if(c)b=1+b|0;else break}return b===(a.ia.length|0)}return!1}uH.prototype.$classData=q({K7a:0},!1,"java.util.regex.GroupStartMap$",{K7a:1,f:1});var Jya=void 0;function tya(){Jya||(Jya=(new uH).a());return Jya}function vH(){}vH.prototype=new r;vH.prototype.constructor=vH;vH.prototype.a=function(){return this};
function Kya(a){a=a.SH;if(sya(tya(),a)){a=a.substring(1);a=(new ph).e(a);var b=pC();return(new A).d(qC(b,a.ia,10))}return w()}vH.prototype.$classData=q({L7a:0},!1,"java.util.regex.GroupStartMap$BackReferenceLeaf$",{L7a:1,f:1});var Lya=void 0;function wH(){}wH.prototype=new r;wH.prototype.constructor=wH;wH.prototype.a=function(){return this};
function wya(a,b){var c=b.wa(),e=G(),f=G();a:for(;;){if(!G().h(c)){if(ft(c)){var g=c.Aj,c=c.ve,h=g.Ny,k=(new sH).e("|");if(null!==h&&h.h(k)){f=mv(f);e=oz(new pz,f,e);f=G();continue a}f=oz(new pz,g,f);continue a}throw(new v).d(c);}c=mv(f);e=mv(oz(new pz,c,e));break}if(1===Fp(e))return(new qH).ss(b);a=function(){return function(a){return pya(jH(),a)}}(a);b=Di().s;if(b===Di().s)if(e===G())a=G();else{b=e.fa();c=b=oz(new pz,a(b),G());for(e=e.sa();e!==G();)f=e.fa(),f=oz(new pz,a(f),G()),c=c.ve=f,e=e.sa();
a=b}else{for(b=Rf(e,b);!e.b();)c=e.fa(),b.Ic(a(c)),e=e.sa();a=b.lc()}return(new Mya).ss(a)}wH.prototype.$classData=q({M7a:0},!1,"java.util.regex.GroupStartMap$CreateParentNode$",{M7a:1,f:1});var Nya=void 0;function xya(){Nya||(Nya=(new wH).a());return Nya}function oH(){this.Ny=this.ZE=null;this.J1=0;this.kL=null;this.Dd=0}oH.prototype=new r;oH.prototype.constructor=oH;function Oya(a,b){var c=a.ZE;b=kH(c)&&Pya(Qya(),c)?b:null===a.kL?-1:b-(a.kL.length|0)|0;a.Dd=b;Rya(a);return a.Dd}
function Gya(a){var b=a.ZE;if(pH(b))b="(";else{if(!kH(b))throw(new v).d(b);b="((?:"+b.sC}var c=a.Ny;if(lH(c))c=c.SH;else if(xH(c))var c=c.Uf,e=t(new u,function(){return function(a){return Gya(a)}}(a)),f=z(),c="(?:"+c.ka(e,f.s).lm()+")";else{if(!yH(c))throw(new v).d(c);c=c.Uf;e=t(new u,function(){return function(a){return Gya(a)}}(a));f=z();c="(?:"+c.ka(e,f.s).ng("|")+")"}a=a.ZE;if(pH(a))a=")";else{if(!kH(a))throw(new v).d(a);a=")"+a.LC+")"}return b+c+a}
oH.prototype.u=function(){return"Node("+this.ZE+", "+this.Ny+")"};function Fya(a,b){var c=!1,e=null,f=a.Ny;a:{if(lH(f)&&(c=!0,e=f,Lya||(Lya=(new vH).a()),e=Kya(e),!e.b())){c=e.c()|0;b=b.Ta(c);a.Ny=(new sH).e("\\"+(b.b()?0:b.c()));break a}if(!c)if(xH(f))f.Uf.X(t(new u,function(a,b){return function(a){return Fya(a,b)}}(a,b)));else if(yH(f))f.Uf.X(t(new u,function(a,b){return function(a){return Fya(a,b)}}(a,b)));else throw(new v).d(f);}return a}
oH.prototype.Ww=function(){return this.Dd+(null===this.kL?0:this.kL.length|0)|0};function Hya(a,b){a.kL=b.R(a.J1);var c=a.Ny;if(!lH(c))if(xH(c))c.Uf.X(t(new u,function(a,b){return function(a){Hya(a,b)}}(a,b)));else if(yH(c))c.Uf.X(t(new u,function(a,b){return function(a){Hya(a,b)}}(a,b)));else throw(new v).d(c);}
function Eya(a){var b=a.ZE;if(pH(b)){for(var b=[(new P).N(b.AC,a)],c=Ry(new Sy,Xs()),e=0,f=b.length|0;e<f;)Ty(c,b[e]),e=1+e|0;b=c.gb}else{if(!kH(b))throw(new v).d(b);b=pc(fc().db,G())}c=a.Ny;if(lH(c))a=pc(fc().db,G());else{if(!xH(c)&&!yH(c))throw(new v).d(c);a=c.Uf.ae(pc(fc().db,G()),qd(function(){return function(a,b){return a.gr(Eya(b))}}(a)))}return b.gr(a)}
function Rya(a){var b=a.Ny;if(!lH(b))if(xH(b))b.Uf.ae(a.Dd,qd(function(){return function(a,b){return Iya(b,a|0)}}(a)))|0;else if(yH(b))b.Uf.X(t(new u,function(a){return function(b){return Iya(b,a.Dd)}}(a)));else throw(new v).d(b);}function nH(a,b,c){a.ZE=b;a.Ny=c;a.J1=0;a.kL="";a.Dd=0;return a}
function Dya(a,b){a.J1=b;var c=a.Ny;if(lH(c))return 1+b|0;if(xH(c))return c.Uf.ae(1+b|0,qd(function(){return function(a,b){return Dya(b,a|0)}}(a)))|0;if(!yH(c))throw(new v).d(c);return c.Uf.ae(1+b|0,qd(function(){return function(a,b){return Dya(b,a|0)}}(a)))|0}function Sya(a){var b=a.Ny;if(!lH(b))if(xH(b))b.Uf.Ar(a.Ww(),qd(function(){return function(a,b){return Oya(a,b|0)}}(a)))|0;else if(yH(b))b.Uf.X(t(new u,function(a){return function(b){return Oya(b,a.Ww())}}(a)));else throw(new v).d(b);}
function yya(a){var b=jH().vF(a);if(!b.b()){var c=b.c().pa(),b=b.c().Ba();if(pH(c)&&(c=c.AC,xH(b)&&(b=b.Uf,z(),b=(new A).d(b),null!==b.i&&0===b.i.Ge(1)&&(b=b.i.jb(0),b=rya().vF(b),!b.b()))))return a=b.c(),c=(new rH).$d(c),a=(new sH).e(a),nH(new oH,c,a)}return a}function Iya(a,b){a.Dd=null===a.kL?-1:b;var c=a.ZE;kH(c)&&!uya(vya(),c).b()?Sya(a):Rya(a);c=a.ZE;return kH(c)&&Pya(Qya(),c)?b:a.Ww()}oH.prototype.$classData=q({N7a:0},!1,"java.util.regex.GroupStartMap$Node",{N7a:1,f:1});function zH(){}
zH.prototype=new r;zH.prototype.constructor=zH;zH.prototype.a=function(){return this};function oya(a,b){return nH(new oH,(new mH).tc("",""),(new sH).e(b))}zH.prototype.vF=function(a){return(new A).d((new P).N(a.ZE,a.Ny))};function pya(a,b){return nH(new oH,(new mH).tc("",""),wya(xya(),b))}zH.prototype.$classData=q({O7a:0},!1,"java.util.regex.GroupStartMap$Node$",{O7a:1,f:1});var Tya=void 0;function jH(){Tya||(Tya=(new zH).a());return Tya}function AH(){}AH.prototype=new r;
AH.prototype.constructor=AH;AH.prototype.a=function(){return this};function Pya(a,b){return("(?!"===b.sC||"(?\x3d"===b.sC)&&")"===b.LC}AH.prototype.$classData=q({R7a:0},!1,"java.util.regex.GroupStartMap$OriginallyWrapped$Absolute$",{R7a:1,f:1});var Uya=void 0;function Qya(){Uya||(Uya=(new AH).a());return Uya}function BH(){}BH.prototype=new r;BH.prototype.constructor=BH;BH.prototype.a=function(){return this};
function uya(a,b){if(a=""===b.sC)Vya||(Vya=(new CH).a()),a=b.LC,a="?"===a||"??"===a||"*"===a||"+"===a||"*?"===a||"+?"===a||0<=(a.length|0)&&"{"===a.substring(0,1);return a?(new A).d(b.LC):w()}BH.prototype.$classData=q({S7a:0},!1,"java.util.regex.GroupStartMap$OriginallyWrapped$Repeater$",{S7a:1,f:1});var Wya=void 0;function vya(){Wya||(Wya=(new BH).a());return Wya}function DH(){}DH.prototype=new r;DH.prototype.constructor=DH;DH.prototype.a=function(){return this};
DH.prototype.vF=function(a){var b=jH().vF(a);if(!b.b()&&(a=b.c().pa(),b=b.c().Ba(),kH(a))){var c=a.LC;if(""===a.sC&&""===c&&lH(b))return(new A).d(b.SH)}return w()};DH.prototype.$classData=q({T7a:0},!1,"java.util.regex.GroupStartMap$UnwrappedRegexLeaf$",{T7a:1,f:1});var Xya=void 0;function rya(){Xya||(Xya=(new DH).a());return Xya}function Nt(){}Nt.prototype=new r;Nt.prototype.constructor=Nt;Nt.prototype.a=function(){return this};
Nt.prototype.$classData=q({V7a:0},!1,"java.util.regex.Matcher$",{V7a:1,f:1});var Nja=void 0;function Yya(){}Yya.prototype=new r;Yya.prototype.constructor=Yya;function Zya(){}Zya.prototype=Yya.prototype;function $ya(){}$ya.prototype=new r;$ya.prototype.constructor=$ya;function aza(){}aza.prototype=$ya.prototype;function bza(){}bza.prototype=new r;bza.prototype.constructor=bza;function cza(){}cza.prototype=bza.prototype;
function vl(a,b){null===b?a=null:0===b.j.length?(dza||(dza=(new EH).a()),a=dza.cha):a=(new FH).vc(b);return a}function GH(a,b){return t(new u,function(a,b){return function(f){f=a.Za(f,sG().PP);return!eza(sG(),f)&&(b.R(f),!0)}}(a,b))}function HH(a,b,c){return a.Xa(b)?a.R(b):c.R(b)}function IH(){this.OT=this.VEa=this.PP=null}IH.prototype=new r;IH.prototype.constructor=IH;
IH.prototype.a=function(){fza=this;this.PP=(new JH).a();this.VEa=t(new u,function(){return function(){return!1}}(this));this.OT=(new gza).a();return this};function eza(a,b){return a.PP===b}IH.prototype.$classData=q({i8a:0},!1,"scala.PartialFunction$",{i8a:1,f:1});var fza=void 0;function sG(){fza||(fza=(new IH).a());return fza}function KH(){}KH.prototype=new r;KH.prototype.constructor=KH;KH.prototype.a=function(){return this};
KH.prototype.$classData=q({r8a:0},!1,"scala.Predef$DummyImplicit",{r8a:1,f:1});function LH(){}LH.prototype=new r;LH.prototype.constructor=LH;LH.prototype.a=function(){return this};function Qwa(a,b,c){return""+b+c}LH.prototype.$classData=q({s8a:0},!1,"scala.Predef$any2stringadd$",{s8a:1,f:1});var hza=void 0;function nG(){hza||(hza=(new LH).a());return hza}function MH(){this.wT=null}MH.prototype=new r;MH.prototype.constructor=MH;MH.prototype.a=function(){iza=this;this.wT=(new XG).a();return this};
MH.prototype.$classData=q({y8a:0},!1,"scala.concurrent.BlockContext$",{y8a:1,f:1});var iza=void 0;function jza(){iza||(iza=(new MH).a());return iza}function NH(){this.jAa=null;this.ma=!1}NH.prototype=new r;NH.prototype.constructor=NH;NH.prototype.a=function(){return this};function um(){var a;kza||(kza=(new NH).a());a=kza;a.ma||a.ma||(lza||(lza=(new OH).a()),a.jAa=lza.ODa,a.ma=!0);return a.jAa}NH.prototype.$classData=q({A8a:0},!1,"scala.concurrent.ExecutionContext$Implicits$",{A8a:1,f:1});
var kza=void 0;function mza(a,b,c){a.KA(t(new u,function(a,b){return function(a){a.X(b)}}(a,b)),c)}function nza(a,b,c){return oza(a,t(new u,function(a,b){return function(c){if(Ge(c))return b.R(c.i);if(nf(c))return a;throw(new v).d(c);}}(a,b)),c)}function pza(a,b,c){return qza(a,t(new u,function(a,b){return function(a){return a.yCa(b)}}(a,b)),c)}
function rza(a,b,c,e){return a.ei(t(new u,function(a,b,c,e){return function(l){return b.Lf(t(new u,function(a,b,c){return function(a){return b.zf(c,a)}}(a,c,l)),e)}}(a,b,c,e)),Sda())}function sza(a,b,c){return qza(a,t(new u,function(a,b){return function(a){return a.TDa(b)}}(a,b)),c)}function tza(a,b,c){return oza(a,t(new u,function(a,b){return function(c){if(nf(c))return b.Za(c.ms,t(new u,function(a){return function(){return a}}(a)));if(Ge(c))return a;throw(new v).d(c);}}(a,b)),c)}
function uza(a){var b=t(new u,function(){return function(a){if(nf(a))return(new Ee).d(a.ms);if(Ge(a))return(new Fe).gm((new PH).e("Future.failed not completed with a throwable."));throw(new v).d(a);}}(a)),c=Sda();return qza(a,b,c)}function QH(){this.Od=null}QH.prototype=new r;QH.prototype.constructor=QH;
QH.prototype.a=function(){vza=this;for(var a=[(new P).N(n(Ma),n(maa)),(new P).N(n(Oa),n(gaa)),(new P).N(n(Na),n(wza)),(new P).N(n(Qa),n(iaa)),(new P).N(n(Ra),n(jaa)),(new P).N(n(Sa),n(naa)),(new P).N(n(Ta),n(kaa)),(new P).N(n(Ua),n(laa)),(new P).N(n(waa),n(na))],b=Ry(new Sy,Xs()),c=0,e=a.length|0;c<e;)Ty(b,a[c]),c=1+c|0;this.Od=HB(0,void 0);return this};
function lb(a,b,c,e){return b.ae(HB(0,c.Vn(b)),qd(function(a,b){return function(c,e){return c.xga(e,qd(function(){return function(a,b){return a.Ic(b)}}(a)),b)}}(a,e))).Lf(t(new u,function(){return function(a){return a.lc()}}(a)),Sda())}function HB(a,b){xza||(xza=(new RH).a());a=(new Ee).d(b);return yza(zza(),a)}function hb(a,b,c){return a.Od.Lf(t(new u,function(a,b){return function(){return gc(b)}}(a,b)),c)}function Efa(a,b){xza||(xza=(new RH).a());a=(new Fe).gm(b);return yza(zza(),a)}
QH.prototype.$classData=q({B8a:0},!1,"scala.concurrent.Future$",{B8a:1,f:1});var vza=void 0;function ib(){vza||(vza=(new QH).a());return vza}function RH(){}RH.prototype=new r;RH.prototype.constructor=RH;RH.prototype.a=function(){return this};RH.prototype.$classData=q({E8a:0},!1,"scala.concurrent.Promise$",{E8a:1,f:1});var xza=void 0;function SH(){}SH.prototype=new r;SH.prototype.constructor=SH;SH.prototype.a=function(){return this};
function Aza(a){return Bx(a)?(new Ee).d(a.Qt()):a&&a.$classData&&a.$classData.v.CW?(new Fe).gm((new TH).FE("Boxed ControlThrowable",a)):a&&a.$classData&&a.$classData.v.O6a?(new Fe).gm((new TH).FE("Boxed InterruptedException",a)):a&&a.$classData&&a.$classData.v.x1?(new Fe).gm((new TH).FE("Boxed Error",a)):(new Fe).gm(a)}SH.prototype.$classData=q({K8a:0},!1,"scala.concurrent.impl.Promise$",{K8a:1,f:1});var Bza=void 0;function UH(){}UH.prototype=new r;UH.prototype.constructor=UH;UH.prototype.a=function(){return this};
function yza(a,b){Bza||(Bza=(new SH).a());a=nf(b)?Aza(b.ms):b;if(Ge(a))return b=new Cza,b.Jt=a,b;if(nf(a))return b=new Dza,b.Jt=a,b;throw(new v).d(a);}UH.prototype.$classData=q({L8a:0},!1,"scala.concurrent.impl.Promise$KeptPromise$",{L8a:1,f:1});var Eza=void 0;function zza(){Eza||(Eza=(new UH).a());return Eza}function VH(){}VH.prototype=new r;VH.prototype.constructor=VH;VH.prototype.a=function(){return this};VH.prototype.$classData=q({W8a:0},!1,"scala.math.Ordered$",{W8a:1,f:1});var Fza=void 0;
function WH(){this.If=this.G9=this.xR=this.BB=this.q6=this.Nc=this.uHa=this.Uga=null;this.ma=0}WH.prototype=new r;WH.prototype.constructor=WH;
WH.prototype.a=function(){Gza=this;(new XH).a();Hza||(Hza=(new YH).a());pf();this.Nc=z();this.q6=uv();Uz();Di();this.BB=G();Iza||(Iza=(new ZH).a());Jza||(Jza=(new $H).a());this.xR=Jza;Kza||(Kza=(new aI).a());Js();Lza||(Lza=(new bI).a());this.G9=yq();Mza||(Mza=(new cI).a());this.If=KG();Nza||(Nza=(new dI).a());Oza||(Oza=(new eI).a());Pza||(Pza=(new fI).a());Qza||(Qza=(new gI).a());Fza||(Fza=(new VH).a());CB();Rza||(Rza=(new hI).a());Sza||(Sza=(new iI).a());Tza||(Tza=(new jI).a());return this};
function Yva(){var a=Zf();0===(2&a.ma)<<24>>24&&0===(2&a.ma)<<24>>24&&(a.uHa=kI(),a.ma=(2|a.ma)<<24>>24)}WH.prototype.$classData=q({c9a:0},!1,"scala.package$",{c9a:1,f:1});var Gza=void 0;function Zf(){Gza||(Gza=(new WH).a());return Gza}function lI(){this.yd=this.Xr=this.Xj=this.vi=this.rg=this.pr=this.Oi=this.Px=null}lI.prototype=new r;lI.prototype.constructor=lI;
lI.prototype.a=function(){Uza=this;this.Px=Vza();Wza();Xza();this.Oi=Yza();this.pr=Zza();this.rg=$za();this.vi=aAa();this.Xj=bAa();cAa();dAa||(dAa=(new mI).a());this.Xr=dAa;Pu();eAa||(eAa=(new nI).a());fAa();this.yd=gAa();return this};lI.prototype.$classData=q({e9a:0},!1,"scala.reflect.ClassManifestFactory$",{e9a:1,f:1});var Uza=void 0;function oI(){}oI.prototype=new r;oI.prototype.constructor=oI;oI.prototype.a=function(){return this};
oI.prototype.$classData=q({h9a:0},!1,"scala.reflect.ManifestFactory$",{h9a:1,f:1});var hAa=void 0;function pI(){}pI.prototype=new r;pI.prototype.constructor=pI;pI.prototype.a=function(){iAa=this;Uza||(Uza=(new lI).a());hAa||(hAa=(new oI).a());return this};pI.prototype.$classData=q({x9a:0},!1,"scala.reflect.package$",{x9a:1,f:1});var iAa=void 0;function qI(){this.yo=null}qI.prototype=new r;qI.prototype.constructor=qI;qI.prototype.u=function(){return"DynamicVariable("+this.yo+")"};
qI.prototype.d=function(a){this.yo=a;return this};qI.prototype.$classData=q({y9a:0},!1,"scala.util.DynamicVariable",{y9a:1,f:1});function rI(){}rI.prototype=new r;rI.prototype.constructor=rI;rI.prototype.a=function(){(new sI).a();return this};rI.prototype.$classData=q({E9a:0},!1,"scala.util.control.Breaks",{E9a:1,f:1});function tI(){}tI.prototype=new r;tI.prototype.constructor=tI;tI.prototype.a=function(){return this};
function uI(a,b){return b&&b.$classData&&b.$classData.v.Bfb||b&&b.$classData&&b.$classData.v.Afb||b&&b.$classData&&b.$classData.v.O6a||b&&b.$classData&&b.$classData.v.zfb||b&&b.$classData&&b.$classData.v.CW?w():(new A).d(b)}tI.prototype.$classData=q({G9a:0},!1,"scala.util.control.NonFatal$",{G9a:1,f:1});var jAa=void 0;function vI(){jAa||(jAa=(new tI).a());return jAa}function wI(){}wI.prototype=new r;wI.prototype.constructor=wI;function kAa(){}kAa.prototype=wI.prototype;
wI.prototype.qL=function(a,b){b=ca(-862048943,b);b=ca(461845907,b<<15|b>>>17|0);return a^b};wI.prototype.Ga=function(a,b){a=this.qL(a,b);return-430675100+ca(5,a<<13|a>>>19|0)|0};function Y(a){var b=xI(),c=a.H();if(0===c)return a=a.L(),ra(ta(),a);for(var e=-889275714,f=0;f<c;)e=b.Ga(e,yI(zI(),a.K(f))),f=1+f|0;return b.Wd(e,c)}
function lAa(a,b,c){var e=(new iA).$d(0),f=(new iA).$d(0),g=(new iA).$d(0),h=(new iA).$d(1);b.X(t(new u,function(a,b,c,e,f){return function(a){a=yI(zI(),a);b.ta=b.ta+a|0;c.ta^=a;0!==a&&(f.ta=ca(f.ta,a));e.ta=1+e.ta|0}}(a,e,f,g,h)));b=a.Ga(c,e.ta);b=a.Ga(b,f.ta);b=a.qL(b,h.ta);return a.Wd(b,g.ta)}wI.prototype.Wd=function(a,b){a^=b;a=ca(-2048144789,a^(a>>>16|0));a=ca(-1028477387,a^(a>>>13|0));return a^(a>>>16|0)};
function mAa(a,b,c){var e=(new iA).$d(0);c=(new iA).$d(c);b.X(t(new u,function(a,b,c){return function(e){c.ta=a.Ga(c.ta,yI(zI(),e));b.ta=1+b.ta|0}}(a,e,c)));return a.Wd(c.ta,e.ta)}function AI(){}AI.prototype=new r;AI.prototype.constructor=AI;AI.prototype.a=function(){return this};function nAa(a,b){a=ca(-1640532531,b);pC();return ca(-1640532531,a<<24|16711680&a<<8|65280&(a>>>8|0)|a>>>24|0)}AI.prototype.$classData=q({I9a:0},!1,"scala.util.hashing.package$",{I9a:1,f:1});var oAa=void 0;
function pAa(){oAa||(oAa=(new AI).a());return oAa}function aI(){}aI.prototype=new r;aI.prototype.constructor=aI;aI.prototype.a=function(){return this};aI.prototype.$classData=q({Q9a:0},!1,"scala.collection.$colon$plus$",{Q9a:1,f:1});var Kza=void 0;function $H(){}$H.prototype=new r;$H.prototype.constructor=$H;$H.prototype.a=function(){return this};function qya(a,b){if(b.b())return w();a=b.fa();b=b.sa();return(new A).d((new P).N(a,b))}
$H.prototype.$classData=q({R9a:0},!1,"scala.collection.$plus$colon$",{R9a:1,f:1});var Jza=void 0;function BI(){this.Td=null}BI.prototype=new r;BI.prototype.constructor=BI;BI.prototype.a=function(){qAa=this;this.Td=(new CI).a();return this};BI.prototype.$classData=q({b$a:0},!1,"scala.collection.Iterator$",{b$a:1,f:1});var qAa=void 0;function Uz(){qAa||(qAa=(new BI).a());return qAa}function rAa(){this.qn=this.eC=null}rAa.prototype=new r;rAa.prototype.constructor=rAa;
rAa.prototype.$classData=q({l$a:0},!1,"scala.collection.Iterator$ConcatIteratorCell",{l$a:1,f:1});function JF(a,b,c){a.$j(b,c,DI(W(),b)-c|0)}function EI(a,b){b=b.gs();b.Cf(a.td());return b.lc()}function IG(a,b,c,e){return a.vm((new lk).a(),b,c,e).Be.Ue}function pd(a,b,c){b=(new Qd).d(b);a.X(t(new u,function(a,b,c){return function(a){c.ta=b.zf(c.ta,a)}}(a,c,b)));return b.ta}function sAa(a,b,c){a=tAa(a);var e=b;for(b=a;!b.b();)a=e,e=b.fa(),e=c.zf(e,a),b=b.sa();return e}
function FI(a){var b=(new iA).$d(0);a.X(t(new u,function(a,b){return function(){b.ta=1+b.ta|0}}(a,b)));return b.ta}
function hd(a,b){var c=(new ck).a();try{if(a&&a.$classData&&a.$classData.v.pi)var e=a;else{if(!(a&&a.$classData&&a.$classData.v.$c))return a.X(b.QA(t(new u,function(a,b){return function(a){throw(new Ax).N(b,(new A).d(a));}}(a,c)))),w();e=a.pm()}for(var f=(new GI).VU(a);e.Qa();){var g=b.Za(e.Sa(),f);if(g!==f)return(new A).d(g)}return w()}catch(h){if(Bx(h)&&h.Da===c)return h.Qt();throw h;}}
function HI(a,b,c,e,f){var g=(new mk).rs(!0);nk(b,c);a.X(t(new u,function(a,b,c,e){return function(a){if(e.ta)ok(b,a),e.ta=!1;else return nk(b,c),ok(b,a)}}(a,b,e,g)));nk(b,f);return b}function Pxa(a,b){if(a.b())throw(new Gt).e("empty.max");return a.Sj(qd(function(a,b){return function(a,c){return b.tE(a,c)?a:c}}(a,b)))}function II(a,b){return a.ko()?(b=b.As(a.lb()),a.Yn(b,0),b):a.bj().Ql(b)}function Tc(a){return!a.b()}
function tAa(a){var b=G(),b=(new Qd).d(b);a.X(t(new u,function(a,b){return function(a){b.ta=oz(new pz,a,b.ta)}}(a,b)));return b.ta}function JI(a,b){if(a.b())throw(new Gt).e("empty.reduceLeft");var c=(new mk).rs(!0),e=(new Qd).d(0);a.X(t(new u,function(a,b,c,e){return function(a){c.ta?(e.ta=a,c.ta=!1):e.ta=b.zf(e.ta,a)}}(a,b,c,e)));return e.ta}function Rz(){this.bFa=null}Rz.prototype=new r;Rz.prototype.constructor=Rz;Rz.prototype.VU=function(a){this.bFa=a;return this};
Rz.prototype.$classData=q({Q$a:0},!1,"scala.collection.TraversableOnce$FlattenOps",{Q$a:1,f:1});function Qz(){this.OGa=null}Qz.prototype=new r;Qz.prototype.constructor=Qz;Qz.prototype.VU=function(a){this.OGa=a;return this};Qz.prototype.$classData=q({S$a:0},!1,"scala.collection.TraversableOnce$MonadOps",{S$a:1,f:1});function uAa(){}uAa.prototype=new r;uAa.prototype.constructor=uAa;function vAa(){}vAa.prototype=uAa.prototype;function pc(a,b){return a.Ed().Cf(b).lc()}
uAa.prototype.Ed=function(){return Ry(new Sy,this.zG())};function wAa(){}wAa.prototype=new r;wAa.prototype.constructor=wAa;function xAa(){}xAa.prototype=wAa.prototype;function H(a,b){if(b.b())return a.lA();a=a.Ed();a.Cf(b);return a.lc()}wAa.prototype.lA=function(){return this.Ed().lc()};function yAa(a,b){var c=a.Lh().Ed();a.td().X(t(new u,function(a,b,c){return function(a){return c.Cf(b.R(a).td())}}(a,b,c)));return c.lc()}
function zAa(a,b){a:for(;;){if(Tc(b)){a.uk(b.fa());b=b.sa();continue a}break}}function Yi(a,b){b&&b.$classData&&b.$classData.v.DW?zAa(a,b):b.X(t(new u,function(a){return function(b){return a.uk(b)}}(a)));return a}function KI(){this.pI=this.ek=0}KI.prototype=new r;KI.prototype.constructor=KI;function AAa(a){return a.pI-a.ek|0}KI.prototype.La=function(a,b){this.ek=a;this.pI=b;return this};KI.prototype.$classData=q({bab:0},!1,"scala.collection.generic.SliceInterval",{bab:1,f:1});function LI(){}
LI.prototype=new r;LI.prototype.constructor=LI;LI.prototype.a=function(){return this};function FAa(a,b,c){a=0<b?b:0;c=0<c?c:0;return c<=a?(new KI).La(a,a):(new KI).La(a,c)}LI.prototype.$classData=q({cab:0},!1,"scala.collection.generic.SliceInterval$",{cab:1,f:1});var GAa=void 0;function HAa(){GAa||(GAa=(new LI).a());return GAa}function IAa(){}IAa.prototype=new r;IAa.prototype.constructor=IAa;function JAa(){}JAa.prototype=IAa.prototype;function bI(){}bI.prototype=new r;bI.prototype.constructor=bI;
bI.prototype.a=function(){return this};bI.prototype.$classData=q({Xab:0},!1,"scala.collection.immutable.Stream$$hash$colon$colon$",{Xab:1,f:1});var Lza=void 0;function MI(){this.Ffa=null}MI.prototype=new r;MI.prototype.constructor=MI;MI.prototype.LO=function(a){this.Ffa=a;return this};function KAa(a,b){return NI(new OI,b,a.Ffa)}function LAa(a,b){return MAa(b,a.Ffa)}MI.prototype.$classData=q({Yab:0},!1,"scala.collection.immutable.Stream$ConsWrapper",{Yab:1,f:1});
function PI(){this.qfa=this.yo=null;this.ma=!1;this.l=null}PI.prototype=new r;PI.prototype.constructor=PI;function NAa(a,b,c){a.qfa=c;if(null===b)throw Lb(Mb(),null);a.l=b;return a}function OAa(a){a.ma||(a.ma||(a.yo=gc(a.qfa),a.ma=!0),a.qfa=null);return a.yo}PI.prototype.$classData=q({cbb:0},!1,"scala.collection.immutable.StreamIterator$LazyCell",{cbb:1,f:1});function QI(){}QI.prototype=new r;QI.prototype.constructor=QI;QI.prototype.a=function(){return this};
function Lh(a,b,c,e){a=0>c?0:c;return e<=a||a>=(b.length|0)?"":b.substring(a,e>(b.length|0)?b.length|0:e)}QI.prototype.$classData=q({pbb:0},!1,"scala.collection.immutable.StringOps$",{pbb:1,f:1});var PAa=void 0;function Mh(){PAa||(PAa=(new QI).a());return PAa}function RI(){}RI.prototype=new r;RI.prototype.constructor=RI;RI.prototype.a=function(){return this};RI.prototype.Ed=function(){var a=(new lk).a();return QAa(new SI,a,t(new u,function(){return function(a){return(new TI).e(a)}}(this)))};
RI.prototype.$classData=q({xbb:0},!1,"scala.collection.immutable.WrappedString$",{xbb:1,f:1});var RAa=void 0;function UI(){}UI.prototype=new r;UI.prototype.constructor=UI;UI.prototype.a=function(){return this};UI.prototype.$classData=q({Cbb:0},!1,"scala.collection.mutable.ArrayOps$ofBoolean$",{Cbb:1,f:1});var SAa=void 0;function VI(){}VI.prototype=new r;VI.prototype.constructor=VI;VI.prototype.a=function(){return this};
VI.prototype.$classData=q({Dbb:0},!1,"scala.collection.mutable.ArrayOps$ofByte$",{Dbb:1,f:1});var TAa=void 0;function WI(){}WI.prototype=new r;WI.prototype.constructor=WI;WI.prototype.a=function(){return this};WI.prototype.$classData=q({Ebb:0},!1,"scala.collection.mutable.ArrayOps$ofChar$",{Ebb:1,f:1});var UAa=void 0;function XI(){}XI.prototype=new r;XI.prototype.constructor=XI;XI.prototype.a=function(){return this};
XI.prototype.$classData=q({Fbb:0},!1,"scala.collection.mutable.ArrayOps$ofDouble$",{Fbb:1,f:1});var VAa=void 0;function YI(){}YI.prototype=new r;YI.prototype.constructor=YI;YI.prototype.a=function(){return this};YI.prototype.$classData=q({Gbb:0},!1,"scala.collection.mutable.ArrayOps$ofFloat$",{Gbb:1,f:1});var WAa=void 0;function ZI(){}ZI.prototype=new r;ZI.prototype.constructor=ZI;ZI.prototype.a=function(){return this};
ZI.prototype.$classData=q({Hbb:0},!1,"scala.collection.mutable.ArrayOps$ofInt$",{Hbb:1,f:1});var XAa=void 0;function $I(){}$I.prototype=new r;$I.prototype.constructor=$I;$I.prototype.a=function(){return this};$I.prototype.$classData=q({Ibb:0},!1,"scala.collection.mutable.ArrayOps$ofLong$",{Ibb:1,f:1});var YAa=void 0;function aJ(){}aJ.prototype=new r;aJ.prototype.constructor=aJ;aJ.prototype.a=function(){return this};
aJ.prototype.$classData=q({Jbb:0},!1,"scala.collection.mutable.ArrayOps$ofRef$",{Jbb:1,f:1});var ZAa=void 0;function bJ(){}bJ.prototype=new r;bJ.prototype.constructor=bJ;bJ.prototype.a=function(){return this};bJ.prototype.$classData=q({Kbb:0},!1,"scala.collection.mutable.ArrayOps$ofShort$",{Kbb:1,f:1});var $Aa=void 0;function cJ(){}cJ.prototype=new r;cJ.prototype.constructor=cJ;cJ.prototype.a=function(){return this};
cJ.prototype.$classData=q({Lbb:0},!1,"scala.collection.mutable.ArrayOps$ofUnit$",{Lbb:1,f:1});var aBa=void 0;function bBa(a){return dJ(pC(),-1+a.qe.j.length|0)}function cBa(a,b){b=eea(b);return dBa(a,b)}
function dBa(a,b){for(var c=qa(b),c=eBa(a,c),e=a.qe.j[c];null!==e;){if(ub(vb(),e,b))return!1;c=(1+c|0)%a.qe.j.length|0;e=a.qe.j[c]}a.qe.j[c]=b;a.Pl=1+a.Pl|0;null!==a.nn&&(b=c>>5,c=a.nn,c.j[b]=1+c.j[b]|0);if(a.Pl>=a.gw)for(b=a.qe,a.qe=ia(La(Ja),[a.qe.j.length<<1]),a.Pl=0,null!==a.nn&&(c=1+(a.qe.j.length>>5)|0,a.nn.j.length!==c?a.nn=ia(La(Ra),[c]):fya(gH(),a.nn)),a.Ax=bBa(a),a.gw=fBa().FV(a.Ox,a.qe.j.length),c=0;c<b.j.length;)e=b.j[c],null!==e&&dBa(a,e),c=1+c|0;return!0}
function eBa(a,b){var c=a.Ax;b=nAa(pAa(),b);a=-1+a.qe.j.length|0;return((b>>>c|0|b<<(-c|0))>>>(32-dJ(pC(),a)|0)|0)&a}
function gBa(a,b){b=eea(b);for(var c=qa(b),c=eBa(a,c),e=a.qe.j[c];null!==e;){if(ub(vb(),e,b)){b=c;for(c=(1+b|0)%a.qe.j.length|0;null!==a.qe.j[c];){var e=qa(a.qe.j[c]),e=eBa(a,e),f;if(f=e!==c)f=a.qe.j.length>>1,f=e<=b?(b-e|0)<f:(e-b|0)>f;f&&(a.qe.j[b]=a.qe.j[c],b=c);c=(1+c|0)%a.qe.j.length|0}a.qe.j[b]=null;a.Pl=-1+a.Pl|0;null!==a.nn&&(a=a.nn,b>>=5,a.j[b]=-1+a.j[b]|0);return!0}c=(1+c|0)%a.qe.j.length|0;e=a.qe.j[c]}return!1}
function hBa(a,b){b=eea(b);for(var c=qa(b),c=eBa(a,c),e=a.qe.j[c];null!==e&&!ub(vb(),e,b);)c=(1+c|0)%a.qe.j.length|0,e=a.qe.j[c];return e}function eJ(){}eJ.prototype=new r;eJ.prototype.constructor=eJ;eJ.prototype.a=function(){return this};
eJ.prototype.FV=function(a,b){if(!(500>a))throw(new fJ).d("assertion failed: loadFactor too large; must be \x3c 0.5");var c=b>>31,e=a>>31,f=65535&b,g=b>>>16|0,h=65535&a,k=a>>>16|0,l=ca(f,h),h=ca(g,h),p=ca(f,k),f=l+((h+p|0)<<16)|0,l=(l>>>16|0)+p|0;a=(((ca(b,e)+ca(c,a)|0)+ca(g,k)|0)+(l>>>16|0)|0)+(((65535&l)+h|0)>>>16|0)|0;return jD(Fa(),f,a,1E3,0)};eJ.prototype.$classData=q({Qbb:0},!1,"scala.collection.mutable.FlatHashTable$",{Qbb:1,f:1});var iBa=void 0;
function fBa(){iBa||(iBa=(new eJ).a());return iBa}function gJ(){}gJ.prototype=new r;gJ.prototype.constructor=gJ;gJ.prototype.a=function(){return this};gJ.prototype.u=function(){return"NullSentinel"};gJ.prototype.y=function(){return 0};gJ.prototype.$classData=q({Sbb:0},!1,"scala.collection.mutable.FlatHashTable$NullSentinel$",{Sbb:1,f:1});var jBa=void 0;function fea(){jBa||(jBa=(new gJ).a());return jBa}function kBa(a){return dJ(pC(),-1+a.qe.j.length|0)}
function lBa(a){for(var b=-1+a.qe.j.length|0;0<=b;)a.qe.j[b]=null,b=-1+b|0;a.jI(0);mBa(a,0)}function nBa(a,b,c){for(a=a.qe.j[c];;)if(null!==a?(c=a.Gu(),c=!ub(vb(),c,b)):c=!1,c)a=a.Sa();else break;return a}function hJ(a,b){var c=-1+a.qe.j.length|0,e=fa(c);a=a.Ax;b=nAa(pAa(),b);return((b>>>a|0|b<<(-a|0))>>>e|0)&c}function oBa(a){a.FX(750);iJ();var b=a.$U();a.YW(ia(La(hea),[pBa(0,b)]));a.jI(0);var b=a.Ox,c=iJ();iJ();a.aX(c.FV(b,pBa(0,a.$U())));a.QW(null);a.K2(kBa(a))}
function qBa(a,b){var c=yI(zI(),b),c=hJ(a,c),e=a.qe.j[c];if(null!==e){var f=e.Gu();if(ub(vb(),f,b))return a.qe.j[c]=e.Sa(),a.jI(-1+a.Pl|0),rBa(a,c),e.vL(null),e;for(f=e.Sa();;){if(null!==f)var g=f.Gu(),g=!ub(vb(),g,b);else g=!1;if(g)e=f,f=f.Sa();else break}if(null!==f)return e.vL(f.Sa()),a.jI(-1+a.Pl|0),rBa(a,c),f.vL(null),f}return null}function dC(a){for(var b=-1+a.qe.j.length|0;null===a.qe.j[b]&&0<b;)b=-1+b|0;return b}
function Vu(a,b,c){var e=yI(zI(),b),e=hJ(a,e),f=nBa(a,b,e);if(null!==f)return f;b=a.O$(b,c);sBa(a,b,e);return null}function tBa(a,b){var c=yI(zI(),b),c=hJ(a,c);return nBa(a,b,c)}
function sBa(a,b,c){b.vL(a.qe.j[c]);a.qe.j[c]=b;a.jI(1+a.Pl|0);uBa(a,c);if(a.Pl>a.gw){b=a.qe.j.length<<1;c=a.qe;a.YW(ia(La(hea),[b]));mBa(a,a.qe.j.length);for(var e=-1+c.j.length|0;0<=e;){for(var f=c.j[e];null!==f;){var g=f.Gu(),g=yI(zI(),g),g=hJ(a,g),h=f.Sa();f.vL(a.qe.j[g]);a.qe.j[g]=f;f=h;uBa(a,g)}e=-1+e|0}a.aX(iJ().FV(a.Ox,b))}}function rBa(a,b){null!==a.nn&&(a=a.nn,b>>=5,a.j[b]=-1+a.j[b]|0)}function mBa(a,b){null!==a.nn&&(b=1+(b>>5)|0,a.nn.j.length!==b?a.QW(ia(La(Ra),[b])):fya(gH(),a.nn))}
function uBa(a,b){null!==a.nn&&(a=a.nn,b>>=5,a.j[b]=1+a.j[b]|0)}function jJ(){}jJ.prototype=new r;jJ.prototype.constructor=jJ;jJ.prototype.a=function(){return this};function pBa(a,b){return 1<<(-fa(-1+b|0)|0)}jJ.prototype.FV=function(a,b){var c=b>>31,e=a>>31,f=65535&b,g=b>>>16|0,h=65535&a,k=a>>>16|0,l=ca(f,h),h=ca(g,h),p=ca(f,k),f=l+((h+p|0)<<16)|0,l=(l>>>16|0)+p|0;a=(((ca(b,e)+ca(c,a)|0)+ca(g,k)|0)+(l>>>16|0)|0)+(((65535&l)+h|0)>>>16|0)|0;return jD(Fa(),f,a,1E3,0)};
jJ.prototype.$classData=q({acb:0},!1,"scala.collection.mutable.HashTable$",{acb:1,f:1});var vBa=void 0;function iJ(){vBa||(vBa=(new jJ).a());return vBa}function EH(){this.cha=null}EH.prototype=new r;EH.prototype.constructor=EH;EH.prototype.a=function(){dza=this;this.cha=(new FH).vc(ia(La(Ja),[0]));return this};EH.prototype.$classData=q({Jcb:0},!1,"scala.collection.mutable.WrappedArray$",{Jcb:1,f:1});var dza=void 0;function OH(){this.ODa=null}OH.prototype=new r;OH.prototype.constructor=OH;
OH.prototype.a=function(){lza=this;wBa||(wBa=(new kJ).a());xBa||(xBa=(new lJ).a());this.ODa=void 0===ba.Promise?(new mJ).a():(new nJ).a();return this};OH.prototype.$classData=q({Lcb:0},!1,"scala.scalajs.concurrent.JSExecutionContext$",{Lcb:1,f:1});var lza=void 0;function lJ(){}lJ.prototype=new r;lJ.prototype.constructor=lJ;lJ.prototype.a=function(){return this};lJ.prototype.$classData=q({Mcb:0},!1,"scala.scalajs.concurrent.QueueExecutionContext$",{Mcb:1,f:1});var xBa=void 0;function oJ(){}
oJ.prototype=new r;oJ.prototype.constructor=oJ;oJ.prototype.a=function(){return this};function yBa(a,b,c,e,f){f.KA(t(new u,function(a,b,c){return function(a){if(Ge(a))return b(a.i);if(nf(a))return a=a.ms,c(pJ(a)?a.qy:a);throw(new v).d(a);}}(a,b,c)),e)}function qJ(a,b){a=um();return new ba.Promise(function(a,b){return function(f,g){yBa(rJ(),f,g,a,b)}}(a,b))}oJ.prototype.$classData=q({Qcb:0},!1,"scala.scalajs.js.JSConverters$JSRichFuture$",{Qcb:1,f:1});var zBa=void 0;
function rJ(){zBa||(zBa=(new oJ).a());return zBa}function sJ(){}sJ.prototype=new r;sJ.prototype.constructor=sJ;sJ.prototype.a=function(){return this};sJ.prototype.$classData=q({Rcb:0},!1,"scala.scalajs.js.JSConverters$JSRichGenMap$",{Rcb:1,f:1});var ABa=void 0;function BBa(){ABa||(ABa=(new sJ).a());return ABa}function tJ(){}tJ.prototype=new r;tJ.prototype.constructor=tJ;tJ.prototype.a=function(){return this};
function CBa(a,b){if(b&&b.$classData&&b.$classData.v.Bgb)return b.cgb;if(b&&b.$classData&&b.$classData.v.hGa)return b.z;var c=[];b.X(t(new u,function(a,b){return function(a){return b.push(a)|0}}(a,c)));return c}tJ.prototype.$classData=q({Scb:0},!1,"scala.scalajs.js.JSConverters$JSRichGenTraversableOnce$",{Scb:1,f:1});var DBa=void 0;function uJ(){}uJ.prototype=new r;uJ.prototype.constructor=uJ;uJ.prototype.a=function(){return this};
function EBa(a,b){a=(new uE).a();b.then(function(a){return function(b){FBa();gk(a,b)}}(a),function(a){return function(b){FBa();b=GBa(b)?b:(new vJ).d(b);ek(a,b)}}(a));return a}uJ.prototype.$classData=q({Tcb:0},!1,"scala.scalajs.js.Thenable$ThenableOps$",{Tcb:1,f:1});var HBa=void 0;function FBa(){HBa||(HBa=(new uJ).a());return HBa}function wJ(){this.MC=null}wJ.prototype=new r;wJ.prototype.constructor=wJ;wJ.prototype.a=function(){IBa=this;this.MC=ba.Object.prototype.hasOwnProperty;return this};
wJ.prototype.$classData=q({Vcb:0},!1,"scala.scalajs.js.WrappedDictionary$Cache$",{Vcb:1,f:1});var IBa=void 0;function xJ(){IBa||(IBa=(new wJ).a());return IBa}function yJ(){this.cI=!1;this.Faa=this.fP=this.ZS=null;this.t$=!1;this.xca=this.Maa=0}yJ.prototype=new r;yJ.prototype.constructor=yJ;
yJ.prototype.a=function(){JBa=this;this.ZS=(this.cI=!!(ba.ArrayBuffer&&ba.Int32Array&&ba.Float32Array&&ba.Float64Array))?new ba.ArrayBuffer(8):null;this.fP=this.cI?new ba.Int32Array(this.ZS,0,2):null;this.cI&&new ba.Float32Array(this.ZS,0,2);this.Faa=this.cI?new ba.Float64Array(this.ZS,0,1):null;if(this.cI)this.fP[0]=16909060,a=1===((new ba.Int8Array(this.ZS,0,8))[0]|0);else var a=!0;this.Maa=(this.t$=a)?0:1;this.xca=this.t$?1:0;return this};
function oaa(a,b){var c=b|0;if(c===b&&-Infinity!==1/b)return c;if(a.cI)a.Faa[0]=b,a=(new aq).La(a.fP[a.xca]|0,a.fP[a.Maa]|0);else{if(b!==b)a=!1,b=2047,c=+ba.Math.pow(2,51);else if(Infinity===b||-Infinity===b)a=0>b,b=2047,c=0;else if(0===b)a=-Infinity===1/b,c=b=0;else{var e=(a=0>b)?-b:b;if(e>=+ba.Math.pow(2,-1022)){b=+ba.Math.pow(2,52);var c=+ba.Math.log(e)/.6931471805599453,c=+ba.Math.floor(c)|0,c=1023>c?c:1023,f=+ba.Math.pow(2,c);f>e&&(c=-1+c|0,f/=2);f=e/f*b;e=+ba.Math.floor(f);f-=e;e=.5>f?e:.5<
f?1+e:0!==e%2?1+e:e;2<=e/b&&(c=1+c|0,e=1);1023<c?(c=2047,e=0):(c=1023+c|0,e-=b);b=c;c=e}else b=e/+ba.Math.pow(2,-1074),c=+ba.Math.floor(b),e=b-c,b=0,c=.5>e?c:.5<e?1+c:0!==c%2?1+c:c}c=+c;a=(new aq).La(c|0,(a?-2147483648:0)|(b|0)<<20|c/4294967296|0)}return a.Na^a.$a}
function KBa(a){var b=a.$a,c=0>b,e=2047&b>>20;a=4294967296*(1048575&b)+ +(a.Na>>>0);return 2047===e?0!==a?NaN:c?-Infinity:Infinity:0<e?(e=+ba.Math.pow(2,-1023+e|0)*(1+a/+ba.Math.pow(2,52)),c?-e:e):0!==a?(e=+ba.Math.pow(2,-1022)*(a/+ba.Math.pow(2,52)),c?-e:e):c?-0:0}yJ.prototype.$classData=q({edb:0},!1,"scala.scalajs.runtime.Bits$",{edb:1,f:1});var JBa=void 0;function paa(){JBa||(JBa=(new yJ).a());return JBa}function zJ(){this.ma=!1}zJ.prototype=new r;zJ.prototype.constructor=zJ;
function re(a,b,c){return b.substring((b.length|0)-(c.length|0)|0)===c}zJ.prototype.a=function(){return this};function Dt(a,b){a=b.length|0;for(var c=ia(La(Na),[a]),e=0;e<a;)c.j[e]=65535&(b.charCodeAt(e)|0),e=1+e|0;return c}
function kd(a,b,c,e){if(null===b)throw(new Rg).a();c=pu(Tg(),c,0);b=ja(b);if(""===b)for(a=(new J).aa([""]),e=a.z.length|0,e=ia(La(la),[e]),b=0,a=hD(new iD,a,0,a.z.length|0);a.Qa();)c=a.Sa(),e.j[b]=c,b=1+b|0;else{a=0<e?e:2147483647;var f=qu(new ru,c,b,b.length|0);c=[];for(var g=0,h=0;h<(-1+a|0)&&su(f);){if(0!==f.Ww()){var k=f.Ts(),g=b.substring(g,k);c.push(null===g?null:g);h=1+h|0}g=f.Ww()}b=b.substring(g);c.push(null===b?null:b);b=ha(La(la),c);if(0!==e)e=b;else{for(e=b.j.length;0!==e&&""===b.j[-1+
e|0];)e=-1+e|0;e===b.j.length?e=b:(a=ia(La(la),[e]),Ca(b,0,a,0,e),e=a)}}return e}function LBa(a,b,c,e){if(null===b)throw(new Rg).a();a=pu(Tg(),c,0);return nka(qu(new ru,a,b,b.length|0),e)}function mja(a,b,c){a=Twa(c);return b.lastIndexOf(a)|0}function pka(a,b){a=AJ();b=MBa(a,b);a=ia(La(Oa),[b.$e-b.hd|0]);var c=a.j.length;if(0>c||0>(a.j.length-c|0))throw(new X).a();var e=b.hd,f=e+c|0;if(f>b.$e)throw(new QD).a();b.hd=f;Ca(b.Ni,b.wk+e|0,a,0,c);return a}
function Wua(a,b,c){a=Twa(c);return b.indexOf(a)|0}function XD(a,b,c,e){a=c+e|0;if(0>c||a<c||a>b.j.length)throw(new uu).a();for(e="";c!==a;)e=""+e+ba.String.fromCharCode(b.j[c]),c=1+c|0;return e}function BJ(a,b,c){a=b.toLowerCase();c=c.toLowerCase();return a===c?0:a<c?-1:1}function Twa(a){if(0===(-65536&a))return ba.String.fromCharCode(a);if(0>a||1114111<a)throw(new rk).a();a=-65536+a|0;return ba.String.fromCharCode(55296|a>>10,56320|1023&a)}
function ra(a,b){a=0;for(var c=1,e=-1+(b.length|0)|0;0<=e;)a=a+ca(65535&(b.charCodeAt(e)|0),c)|0,c=ca(31,c),e=-1+e|0;return a}
function Qu(a,b){var c=(new CJ).a();if(c.gV)throw(new DJ).a();for(var e=0,f=0,g=a.length|0,h=0;h!==g;){var k=a.indexOf("%",h)|0;if(0>k){NBa(c,a.substring(h));break}NBa(c,a.substring(h,k));h=1+k|0;jya||(jya=(new hH).a());var l=jya.VBa;l.lastIndex=h;k=l.exec(a);if(null===k||(k.index|0)!==h)throw c=h===g?"%":a.substring(h,1+h|0),(new EJ).e(c);for(var h=l.lastIndex|0,l=65535&(a.charCodeAt(-1+h|0)|0),p,y=k[2],I=90>=l?256:0,E=y.length|0,V=0;V!==E;){p=65535&(y.charCodeAt(V)|0);switch(p){case 45:var da=1;
break;case 35:da=2;break;case 43:da=4;break;case 32:da=8;break;case 48:da=16;break;case 44:da=32;break;case 40:da=64;break;case 60:da=128;break;default:throw(new v).d(Dc(p));}if(0!==(I&da))throw(new FJ).e(ba.String.fromCharCode(p));I|=da;V=1+V|0}p=I;E=OBa(k[3],-1);I=OBa(k[4],-1);if(37===l||110===l)k=null;else{if(0!==(1&p)&&0>E)throw(new GJ).e("%"+k[0]);0!==(128&p)?y=f:(y=OBa(k[1],0),y=0===y?e=1+e|0:0>y?f:y);if(0>=y||y>b.j.length){c=ba.String.fromCharCode(l);if(0>("bBhHsHcCdoxXeEgGfn%".indexOf(c)|
0))throw(new EJ).e(c);throw(new HJ).e("%"+k[0]);}f=y;k=b.j[-1+y|0]}y=c;V=k;da=l;k=p;l=E;E=I;switch(da){case 98:case 66:0!==(126&k)&&IJ(k,da,126);JJ(y,k,l,E,!1===V||null===V?"false":"true");break;case 104:case 72:0!==(126&k)&&IJ(k,da,126);I=null===V?"null":(+(qa(V)>>>0)).toString(16);JJ(y,k,l,E,I);break;case 115:case 83:V&&V.$classData&&V.$classData.v.Cfb?(0!==(124&k)&&IJ(k,da,124),V.wfb(y,(0!==(1&k)?1:0)|(0!==(2&k)?4:0)|(0!==(256&k)?2:0),l,E)):(0!==(126&k)&&IJ(k,da,126),JJ(y,k,l,E,""+V));break;case 99:case 67:0!==
(126&k)&&IJ(k,da,126);if(0<=E)throw(new KJ).$d(E);if(hk(V))JJ(y,k,l,-1,ba.String.fromCharCode(null===V?0:V.t));else if(Da(V)){I=V|0;if(!(0<=I&&1114111>=I))throw(new LJ).$d(I);I=65536>I?ba.String.fromCharCode(I):ba.String.fromCharCode(-64+(I>>10)|55296,56320|1023&I);JJ(y,k,l,-1,I)}else MJ(y,V,da,k,l,E);break;case 100:0!==(2&k)&&IJ(k,da,2);17!==(17&k)&&12!==(12&k)||NJ(k);if(0<=E)throw(new KJ).$d(E);Da(V)?PBa(y,k,l,""+(V|0)):oa(V)?(E=Ea(V),I=E.Na,E=E.$a,PBa(y,k,l,QBa(Fa(),I,E))):MJ(y,V,da,k,l,E);break;
case 111:0!==(108&k)&&IJ(k,da,108);17===(17&k)&&NJ(k);if(0<=E)throw(new KJ).$d(E);I=0!==(2&k)?"0":"";Da(V)?(E=(+((V|0)>>>0)).toString(8),RBa(y,k,l,I,E)):oa(V)?(E=Ea(V),V=E.Na,p=E.$a,uC(),E=1073741823&V,da=1073741823&((V>>>30|0)+(p<<2)|0),V=p>>>28|0,0!==V?(V=(+(V>>>0)).toString(8),p=(+(da>>>0)).toString(8),da="0000000000".substring(p.length|0),E=(+(E>>>0)).toString(8),E=V+(""+da+p)+(""+"0000000000".substring(E.length|0)+E)):0!==da?(V=(+(da>>>0)).toString(8),E=(+(E>>>0)).toString(8),E=V+(""+"0000000000".substring(E.length|
0)+E)):E=(+(E>>>0)).toString(8),RBa(y,k,l,I,E)):MJ(y,V,da,k,l,E);break;case 120:case 88:0!==(108&k)&&IJ(k,da,108);17===(17&k)&&NJ(k);if(0<=E)throw(new KJ).$d(E);I=0===(2&k)?"":0!==(256&k)?"0X":"0x";Da(V)?(E=(+((V|0)>>>0)).toString(16),RBa(y,k,l,I,OJ(k,E))):oa(V)?(E=Ea(V),V=E.Na,p=E.$a,uC(),E=k,0!==p?(p=(+(p>>>0)).toString(16),V=(+(V>>>0)).toString(16),V=p+(""+"00000000".substring(V.length|0)+V)):V=(+(V>>>0)).toString(16),RBa(y,E,l,I,OJ(k,V))):MJ(y,V,da,k,l,E);break;case 101:case 69:0!==(32&k)&&IJ(k,
da,32);17!==(17&k)&&12!==(12&k)||NJ(k);"number"===typeof V?(I=+V,I!==I||Infinity===I||-Infinity===I?SBa(y,k,l,I):PBa(y,k,l,TBa(I,0<=E?E:6,0!==(2&k)))):MJ(y,V,da,k,l,E);break;case 103:case 71:0!==(2&k)&&IJ(k,da,2);17!==(17&k)&&12!==(12&k)||NJ(k);"number"===typeof V?(V=+V,V!==V||Infinity===V||-Infinity===V?SBa(y,k,l,V):(I=k,p=0<=E?E:6,k=0!==(2&k),E=+ba.Math.abs(V),p=0===p?1:p,1E-4<=E&&E<+ba.Math.pow(10,p)?(da=void 0!==ba.Math.log10?+ba.Math.log10(E):+ba.Math.log(E)/2.302585092994046,da=Ba(+ba.Math.ceil(da)),
E=+ba.Math.pow(10,da)<=E?1+da|0:da,E=p-E|0,k=UBa(V,0<E?E:0,k)):k=TBa(V,-1+p|0,k),PBa(y,I,l,k))):MJ(y,V,da,k,l,E);break;case 102:17!==(17&k)&&12!==(12&k)||NJ(k);"number"===typeof V?(I=+V,I!==I||Infinity===I||-Infinity===I?SBa(y,k,l,I):PBa(y,k,l,UBa(I,0<=E?E:6,0!==(2&k)))):MJ(y,V,da,k,l,E);break;case 37:if(0!==(254&k))throw(new PJ).e(VBa(k));if(0<=E)throw(new KJ).$d(E);if(0!==(1&k)&&0>l)throw(new GJ).e("%-%");WBa(y,k,l,"%");break;case 110:if(0!==(255&k))throw(new PJ).e(VBa(k));if(0<=E)throw(new KJ).$d(E);
if(0<=l)throw(new QJ).$d(l);NBa(y,"\n");break;default:throw(new EJ).e(ba.String.fromCharCode(da));}}a=c.u();c.nT();return a}function $v(a,b,c,e){if(null===b)throw(new Rg).a();a=pu(Tg(),c,0);b=qu(new ru,a,b,b.length|0);XBa(b);for(a=(new ik).a();su(b);)Gja(b,a,e);Wda(b,a);return a.u()}zJ.prototype.$classData=q({gdb:0},!1,"scala.scalajs.runtime.RuntimeString$",{gdb:1,f:1});var YBa=void 0;function ta(){YBa||(YBa=(new zJ).a());return YBa}
function RJ(){this.LBa=!1;this.Vya=this.iza=this.hza=null;this.ma=0}RJ.prototype=new r;RJ.prototype.constructor=RJ;RJ.prototype.a=function(){return this};
function ZBa(a){return(a.stack+"\n").replace(SJ("^[\\s\\S]+?\\s+at\\s+")," at ").replace(TJ("^\\s+(at eval )?at\\s+","gm"),"").replace(TJ("^([^\\(]+?)([\\n])","gm"),"{anonymous}() ($1)$2").replace(TJ("^Object.\x3canonymous\x3e\\s*\\(([^\\)]+)\\)","gm"),"{anonymous}() ($1)").replace(TJ("^([^\\(]+|\\{anonymous\\}\\(\\)) \\((.+)\\)$","gm"),"$1@$2").split("\n").slice(0,-1)}function $Ba(a){0===(8&a.ma)<<24>>24&&0===(8&a.ma)<<24>>24&&(a.Vya=ba.Object.keys(aCa(a)),a.ma=(8|a.ma)<<24>>24);return a.Vya}
function bCa(a){if(0===(2&a.ma)<<24>>24&&0===(2&a.ma)<<24>>24){for(var b={O:"java_lang_Object",T:"java_lang_String",V:"scala_Unit",Z:"scala_Boolean",C:"scala_Char",B:"scala_Byte",S:"scala_Short",I:"scala_Int",J:"scala_Long",F:"scala_Float",D:"scala_Double"},c=0;22>=c;)2<=c&&(b["T"+c]="scala_Tuple"+c),b["F"+c]="scala_Function"+c,c=1+c|0;a.hza=b;a.ma=(2|a.ma)<<24>>24}return a.hza}
function cCa(a,b){var c=SJ("^(?:Object\\.|\\[object Object\\]\\.)?(?:ScalaJS\\.c\\.|\\$c_)([^\\.]+)(?:\\.prototype)?\\.([^\\.]+)$"),e=SJ("^(?:Object\\.|\\[object Object\\]\\.)?(?:ScalaJS\\.(?:s|f)\\.|\\$(?:s|f)_)((?:_[^_]|[^_])+)__([^\\.]+)$"),f=SJ("^(?:Object\\.|\\[object Object\\]\\.)?(?:ScalaJS\\.m\\.|\\$m_)([^\\.]+)$"),g=!1,c=c.exec(b);null===c&&(c=e.exec(b),null===c&&(c=f.exec(b),g=!0));if(null!==c){b=c[1];if(void 0===b)throw(new PH).e("undefined.get");b=36===(65535&(b.charCodeAt(0)|0))?b.substring(1):
b;e=bCa(a);if(xJ().MC.call(e,b)){a=bCa(a);if(!xJ().MC.call(a,b))throw(new PH).e("key not found: "+b);a=a[b]}else a:for(f=0;;)if(f<($Ba(a).length|0)){e=$Ba(a)[f];if(0<=(b.length|0)&&b.substring(0,e.length|0)===e){a=aCa(a);if(!xJ().MC.call(a,e))throw(new PH).e("key not found: "+e);a=""+a[e]+b.substring(e.length|0);break a}f=1+f|0}else{a=0<=(b.length|0)&&"L"===b.substring(0,1)?b.substring(1):b;break a}a=a.split("_").join(".").split("$und").join("_");if(g)g="\x3cclinit\x3e";else{g=c[2];if(void 0===g)throw(new PH).e("undefined.get");
0<=(g.length|0)&&"init___"===g.substring(0,7)?g="\x3cinit\x3e":(c=g.indexOf("__")|0,g=0>c?g:g.substring(0,c))}return(new P).N(a,g)}return(new P).N("\x3cjscode\x3e",b)}function dCa(a){var b=TJ("Line (\\d+).*script (?:in )?(\\S+)","i");a=a.message.split("\n");for(var c=[],e=2,f=a.length|0;e<f;){var g=b.exec(a[e]);if(null!==g){var h=g[2];if(void 0===h)throw(new PH).e("undefined.get");g=g[1];if(void 0===g)throw(new PH).e("undefined.get");c.push("{anonymous}()@"+h+":"+g)}e=2+e|0}return c}
function aCa(a){0===(4&a.ma)<<24>>24&&0===(4&a.ma)<<24>>24&&(a.iza={sjsr_:"scala_scalajs_runtime_",sjs_:"scala_scalajs_",sci_:"scala_collection_immutable_",scm_:"scala_collection_mutable_",scg_:"scala_collection_generic_",sc_:"scala_collection_",sr_:"scala_runtime_",s_:"scala_",jl_:"java_lang_",ju_:"java_util_"},a.ma=(4|a.ma)<<24>>24);return a.iza}RJ.prototype.$classData=q({hdb:0},!1,"scala.scalajs.runtime.StackTrace$",{hdb:1,f:1});var eCa=void 0;function UJ(){}UJ.prototype=new r;
UJ.prototype.constructor=UJ;UJ.prototype.a=function(){return this};function TJ(a,b){fCa||(fCa=(new UJ).a());return new ba.RegExp(a,b)}function SJ(a){fCa||(fCa=(new UJ).a());return new ba.RegExp(a)}UJ.prototype.$classData=q({idb:0},!1,"scala.scalajs.runtime.StackTrace$StringRE$",{idb:1,f:1});var fCa=void 0;function VJ(){}VJ.prototype=new r;VJ.prototype.constructor=VJ;VJ.prototype.a=function(){return this};function Lb(a,b){return pJ(b)?b.qy:b}function gi(a,b){return GBa(b)?b:(new vJ).d(b)}
VJ.prototype.$classData=q({jdb:0},!1,"scala.scalajs.runtime.package$",{jdb:1,f:1});var gCa=void 0;function Mb(){gCa||(gCa=(new VJ).a());return gCa}function WJ(){}WJ.prototype=new r;WJ.prototype.constructor=WJ;WJ.prototype.a=function(){return this};function hCa(a,b){if(hk(b))return a.t===b.t;if(iCa(b)){if("number"===typeof b)return+b===a.t;if(oa(b)){b=Ea(b);var c=b.$a;a=a.t;return b.Na===a&&c===a>>31}return null===b?null===a:pa(b,a)}return null===a&&null===b}
function ub(a,b,c){if(b===c)c=!0;else if(iCa(b))a:if(iCa(c))c=jCa(0,b,c);else{if(hk(c)){if("number"===typeof b){c=+b===c.t;break a}if(oa(b)){a=Ea(b);b=a.$a;c=c.t;c=a.Na===c&&b===c>>31;break a}}c=null===b?null===c:pa(b,c)}else c=hk(b)?hCa(b,c):null===b?null===c:pa(b,c);return c}
function jCa(a,b,c){if("number"===typeof b)return a=+b,"number"===typeof c?a===+c:oa(c)?(b=Ea(c),c=b.Na,b=b.$a,a===sC(Fa(),c,b)):kCa(c)?c.h(a):!1;if(oa(b)){b=Ea(b);a=b.Na;b=b.$a;if(oa(c)){c=Ea(c);var e=c.$a;return a===c.Na&&b===e}return"number"===typeof c?(c=+c,sC(Fa(),a,b)===c):kCa(c)?c.h((new aq).La(a,b)):!1}return null===b?null===c:pa(b,c)}WJ.prototype.$classData=q({ndb:0},!1,"scala.runtime.BoxesRunTime$",{ndb:1,f:1});var lCa=void 0;function vb(){lCa||(lCa=(new WJ).a());return lCa}
var mCa=q({tdb:0},!1,"scala.runtime.Null$",{tdb:1,f:1});function XJ(){}XJ.prototype=new r;XJ.prototype.constructor=XJ;XJ.prototype.a=function(){return this};XJ.prototype.$classData=q({vdb:0},!1,"scala.runtime.RichLong$",{vdb:1,f:1});var nCa=void 0;function YJ(){nCa||(nCa=(new XJ).a())}function ZJ(){}ZJ.prototype=new r;ZJ.prototype.constructor=ZJ;ZJ.prototype.a=function(){return this};
function DI(a,b){if(Pda(b,1)||Baa(b,1)||Eaa(b,1)||Caa(b,1)||Daa(b,1)||yaa(b,1)||zaa(b,1)||Aaa(b,1)||xaa(b,1)||oCa(b))return b.j.length;if(null===b)throw(new Rg).a();throw(new v).d(b);}
function pCa(a,b,c,e){if(Pda(b,1))b.j[c]=e;else if(Baa(b,1))b.j[c]=e|0;else if(Eaa(b,1))b.j[c]=+e;else if(Caa(b,1))b.j[c]=Ea(e);else if(Daa(b,1))b.j[c]=+e;else if(yaa(b,1))b.j[c]=null===e?0:e.t;else if(zaa(b,1))b.j[c]=e|0;else if(Aaa(b,1))b.j[c]=e|0;else if(xaa(b,1))b.j[c]=!!e;else if(oCa(b))b.j[c]=void 0;else{if(null===b)throw(new Rg).a();throw(new v).d(b);}}function U(a,b){a=b.M();return IG(a,b.L()+"(",",",")")}
function qCa(a,b,c){if(Pda(b,1)||Baa(b,1)||Eaa(b,1)||Caa(b,1)||Daa(b,1))return b.j[c];if(yaa(b,1))return Dc(b.j[c]);if(zaa(b,1)||Aaa(b,1)||xaa(b,1)||oCa(b))return b.j[c];if(null===b)throw(new Rg).a();throw(new v).d(b);}ZJ.prototype.$classData=q({wdb:0},!1,"scala.runtime.ScalaRunTime$",{wdb:1,f:1});var rCa=void 0;function W(){rCa||(rCa=(new ZJ).a());return rCa}function sCa(){}sCa.prototype=new r;sCa.prototype.constructor=sCa;d=sCa.prototype;d.a=function(){return this};
d.qL=function(a,b){b=ca(-862048943,b);b=ca(461845907,b<<15|b>>>17|0);return a^b};function tCa(a,b){a=Ba(b);if(a===b)return a;var c=Fa();a=hE(c,b);c=c.be;return sC(Fa(),a,c)===b?a^c:oaa(paa(),b)}function yI(a,b){return null===b?0:"number"===typeof b?tCa(0,+b):oa(b)?(a=Ea(b),$J(0,(new aq).La(a.Na,a.$a))):qa(b)}d.Ga=function(a,b){a=this.qL(a,b);return-430675100+ca(5,a<<13|a>>>19|0)|0};function $J(a,b){a=b.Na;b=b.$a;return b===a>>31?a:a^b}
d.Wd=function(a,b){a^=b;a=ca(-2048144789,a^(a>>>16|0));a=ca(-1028477387,a^(a>>>13|0));return a^(a>>>16|0)};d.$classData=q({ydb:0},!1,"scala.runtime.Statics$",{ydb:1,f:1});var uCa=void 0;function zI(){uCa||(uCa=(new sCa).a());return uCa}function aK(){}aK.prototype=new r;aK.prototype.constructor=aK;aK.prototype.a=function(){return this};aK.prototype.Ap=function(){return yk()};aK.prototype.$classData=q({wHa:0},!1,"amf.AMFStyle$",{wHa:1,f:1,kha:1});var vCa=void 0;
function wk(){vCa||(vCa=(new aK).a());return vCa}function bK(){this.na=null}bK.prototype=new r;bK.prototype.constructor=bK;d=bK.prototype;d.wI=function(a,b){return Lk(Mk(),a,b)};d.a=function(){wCa=this;this.na=ju().na;return this};d.HQ=function(a,b,c,e){return Nk(Mk(),a,b,c,e,!1)};d.G3=function(a,b,c,e){return Nk(Mk(),a,b,c,e,!0)};d.A3=function(a,b){return(new jl).tc(a,b)};d.CQ=function(){return this.ZU()};d.B3=function(a,b){return(new kl).jx(a,b,w())};
d.IQ=function(a,b,c){var e=Ok(Pk());return Nk(Mk(),a,b,c,e,!1)};function zea(a,b,c){return C().Ku.Oe(b,(new cK).e(c)).qa()}d.DQ=function(a){var b=Ok(Pk());return Lk(Mk(),a,b)};d.FQ=function(a,b){return zea(0,a,b)};d.D3=function(a){pb(qb(),a)};d.vI=function(a){return Qk(Rk()).MT(a)};d.E3=function(a){return(new ll).e(a)};d.H3=function(a,b,c){var e=Ok(Pk());return Nk(Mk(),a,b,c,e,!0)};d.ZU=function(){afa||(afa=(new Jl).a());afa.JP(this.na);var a=Ab(),b=qb().cn(),c=Pfa();return tm(a,b,c).sb()};
bK.prototype.registerPlugin=function(a){return this.D3(a)};bK.prototype.registerNamespace=function(a,b){return this.FQ(a,b)};bK.prototype.emitShapesGraph=function(a){return this.vI(a)};bK.prototype.loadValidationProfile=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:return this.wI(a,e[0]);case 0:return this.DQ(a);default:throw"No matching overload";}};
bK.prototype.validateResolved=function(a,b,c){for(var e=arguments.length|0,f=3,g=[];f<e;)g.push(arguments[f]),f=f+1|0;switch(g.length|0){case 0:return this.H3(a,b,c);case 1:return this.G3(a,b,c,g[0]);default:throw"No matching overload";}};bK.prototype.validate=function(a,b,c){for(var e=arguments.length|0,f=3,g=[];f<e;)g.push(arguments[f]),f=f+1|0;switch(g.length|0){case 0:return this.IQ(a,b,c);case 1:return this.HQ(a,b,c,g[0]);default:throw"No matching overload";}};bK.prototype.resolver=function(a){return this.E3(a)};
bK.prototype.generator=function(a,b){return this.A3(a,b)};bK.prototype.parser=function(a,b){return this.B3(a,b)};bK.prototype.init=function(){return this.CQ()};bK.prototype.$classData=q({zHa:0},!1,"amf.Core$",{zHa:1,f:1,Fb:1});var wCa=void 0;function Kk(){wCa||(wCa=(new bK).a());return wCa}function dK(){this.na=null}dK.prototype=new r;dK.prototype.constructor=dK;dK.prototype.a=function(){xCa=this;this.na=ju().na;return this};function yCa(a,b){return(new eK).hC(a.na).VL(b)}
function zCa(a,b){bq(cq().Wp,"Exception");fK(cq().Wp,b+"\n");a=ba.process;b=gq().XZ;a.exit(b)}function ACa(a,b){return(new gK).hC(a.na).VL(b)}function BCa(a,b){return(new hK).hC(a.na).VL(b)}function CCa(a,b){return(new iK).hC(a.na).VL(b)}
function DCa(a,b){for(var c=b.length|0,c=ia(La(la),[c]),e=c.j.length,f=0,g=0,h=b.length|0,e=h<e?h:e,h=c.j.length,e=e<h?e:h;f<e;)c.j[g]=b[f],f=1+f|0,g=1+g|0;b=Jea(Pea(),c);if(x(b)){b=b.i;b.pl&&(fK(HG().VV.yo,"Enabling tracing!\n"),uha(xp()));c=!1;f=null;g=b.Gk;if(x(g)&&(c=!0,f=g,g=f.i,jK().vxa===g))throw fK(HG().VV.yo,"REPL not supported in the JS client yet\n"),ECa(),Lb(Mb(),(new Nb).e("Error executing AMF"));if(c&&(g=f.i,jK().NZ===g))return b=BCa(a,b),b.uO().CO(t(new u,function(){return function(a){zCa(FCa(),
a)}}(a)),um()),qJ(rJ(),b);if(c&&(g=f.i,jK().D9===g))return b=CCa(a,b),b.uO().CO(t(new u,function(){return function(a){zCa(FCa(),a)}}(a)),um()),qJ(rJ(),b);if(c&&(g=f.i,jK().X8===g))return b=yCa(a,b),b.uO().CO(t(new u,function(){return function(a){zCa(FCa(),a)}}(a)),um()),a=t(new u,function(){return function(a){fK(HG().VV.yo,"... composing...\n");tha(mha(xp()));return a}}(a)),c=um(),a=qza(b,a,c),qJ(rJ(),a);if(c&&(c=f.i,jK().oZ===c))return b=ACa(a,b),b.uO().CO(t(new u,function(){return function(a){zCa(FCa(),
a)}}(a)),um()),qJ(rJ(),b);ECa()}else a=ba.process,b=gq().XZ,a.exit(b);throw Lb(Mb(),(new Nb).e("Error executing AMF"));}function ECa(){bq(cq().Wp,"Wrong command");var a=ba.process,b=gq().XZ;a.exit(b)}dK.prototype.runPatch=function(a){return ACa(this,a)};dK.prototype.runParse=function(a){return yCa(this,a)};dK.prototype.runValidate=function(a){return CCa(this,a)};dK.prototype.runTranslate=function(a){return BCa(this,a)};dK.prototype.failPromise=function(a){zCa(0,a)};dK.prototype.failCommand=function(){ECa()};
dK.prototype.main=function(a){return DCa(this,a)};dK.prototype.$classData=q({AHa:0},!1,"amf.Main$",{AHa:1,f:1,Fb:1});var xCa=void 0;function FCa(){xCa||(xCa=(new dK).a());return xCa}function kK(){}kK.prototype=new r;kK.prototype.constructor=kK;kK.prototype.a=function(){return this};kK.prototype.Ap=function(){return Bk()};kK.prototype.$classData=q({CHa:0},!1,"amf.OASStyle$",{CHa:1,f:1,kha:1});var GCa=void 0;function tc(){GCa||(GCa=(new kK).a());return GCa}function lK(){}lK.prototype=new r;
lK.prototype.constructor=lK;lK.prototype.a=function(){return this};lK.prototype.Ap=function(){return Ek()};lK.prototype.$classData=q({JHa:0},!1,"amf.RAMLStyle$",{JHa:1,f:1,kha:1});var HCa=void 0;function sc(){HCa||(HCa=(new lK).a());return HCa}function ul(){FG.call(this)}ul.prototype=new uxa;ul.prototype.constructor=ul;
ul.prototype.a=function(){FG.prototype.e.call(this,"amf");var a=["Anything Modeling Framework","3.X"],b=JG(this,yG(),"",Zj().uM),c=(new lk).a(),e=!1,e=!0;nk(c,"");for(var f=0,g=a.length|0;f<g;){var h=a[f];e?(ok(c,h),e=!1):(nk(c," "),ok(c,h));f=1+f|0}nk(c,"");xG(b,c.Be.Ue);vG(xG(qxa(Sxa(this)),"Input file to parse and output where translation will be stored"),qd(function(){return function(a,b){if(b.Ya.b())return a=(new A).d(a),Bl(new xl,b.Gk,a,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,b.pl,b.Zk,b.Tl,
b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k);a=(new A).d(a);return Bl(new xl,b.Gk,b.Ya,b.Vi,b.Rj,a,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));a=ICa();vG(xG(CG(oxa(JG(this,tG(),"dialects",a)),"ds"),"List of dialects files that will loaded before parsing"),qd(function(){return function(a,b){return Bl(new xl,b.Gk,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,b.al,a,b.rk,b.uj,b.$k)}}(this)));a=Zj().WC;vG(Wwa(xG(CG(JG(this,tG(),"format-in",a),"in"),"Input format for the file to parse"),
t(new u,function(){return function(a){if(Oea(Pea(),a))return wG(),Zf(),(new ag).d(void 0);a="Invalid value "+a+", values supported: '"+nc().ba+"', '"+oc().ba+"', '"+wt().ba+"', '"+Cl().ba+"', '"+yt().ba+"'";Zf();return(new $f).d(a)}}(this))),qd(function(){return function(a,b){a=(new A).d(a);return Bl(new xl,b.Gk,b.Ya,a,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));a=Zj().WC;vG(xG(CG(JG(this,tG(),"media-type-in",a),"mime-in"),"Input media type for the file to parse"),
qd(function(){return function(a,b){a=(new A).d(a);return Bl(new xl,b.Gk,b.Ya,b.Vi,a,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));a=Zj().WC;vG(Wwa(xG(CG(JG(this,tG(),"validation-profile",a),"p"),"Standard validation profile to use"),t(new u,function(){return function(a){if(Oea(Pea(),a))return wG(),Zf(),(new ag).d(void 0);a="Invalid value "+a+", values supported: '"+nc().ba+"', '"+oc().ba+"', '"+wt().ba+"', '"+Cl().ba+"', '"+yt().ba+"'";Zf();return(new $f).d(a)}}(this))),
qd(function(){return function(a,b){return Bl(new xl,b.Gk,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,b.pl,b.Zk,a,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));a=Zj().WC;vG(xG(CG(JG(this,tG(),"custom-validation-profile",a),"cp"),"Custom validation profile location"),qd(function(){return function(a,b){a=(new A).d(a);return Bl(new xl,b.Gk,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,b.pl,b.Zk,b.Tl,a,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));a=vG(xG(JG(this,AG(),"parse",Zj().uM),"Parse the input file and generates the JSON-LD AMF model"),
qd(function(){return function(a,b){a=(new A).d(jK().X8);return Bl(new xl,a,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));b=Zj().ZD;vG(xG(CG(JG(this,tG(),"source-maps",b),"sm"),"Generate source maps in AMF output"),qd(function(){return function(a,b){return Bl(new xl,b.Gk,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,!!a,b.ql,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));b=Zj().ZD;vG(xG(CG(JG(this,tG(),"compacted",b),"ctx"),"Compact namespaces in context"),
qd(function(){return function(a,b){return Bl(new xl,b.Gk,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,!!a,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));b=Zj().ZD;vG(xG(CG(JG(this,tG(),"validate",b),"v"),"Perform validation"),qd(function(){return function(a,b){return Bl(new xl,b.Gk,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,!!a,b.pl,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));b=Zj().ZD;vG(xG(CG(JG(this,tG(),"resolve",b),"r"),"Resolve after parsing"),qd(function(){return function(a,b){return Bl(new xl,
b.Gk,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,!!a,b.Tk,b.rk,b.uj,b.$k)}}(this)));b=Zj().ZD;b=[vG(xG(CG(JG(this,tG(),"trace",b),"t"),"Trace execution"),qd(function(){return function(a,b){a="TRACING EXECUTION... "+!!a+" \x3d\x3e "+b;fK(HG().VV.yo,a+"\n");return Bl(new xl,b.Gk,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,!0,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)))];c=0;for(e=b.length|0;c<e;)pxa(b[c],a),c=1+c|0;a=vG(xG(JG(this,AG(),"translate",Zj().uM),"Translates the input file into a different format"),
qd(function(){return function(a,b){a=(new A).d(jK().NZ);return Bl(new xl,a,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));b=Zj().WC;vG(Wwa(xG(CG(JG(this,tG(),"format-out",b),"out"),"Output format for the file to generate"),t(new u,function(){return function(a){if(Oea(Pea(),a))return wG(),Zf(),(new ag).d(void 0);a="Invalid value "+a+", values supported: '"+nc().ba+"', '"+oc().ba+"', '"+wt().ba+"', '"+Cl().ba+"', '"+yt().ba+"'";Zf();return(new $f).d(a)}}(this))),
qd(function(){return function(a,b){a=(new A).d(a);return Bl(new xl,b.Gk,b.Ya,b.Vi,b.Rj,b.Hk,a,b.Gl,b.Vl,b.ql,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));b=Zj().WC;vG(xG(CG(JG(this,tG(),"media-type-out",b),"mime-out"),"Output media type for the file to generate"),qd(function(){return function(a,b){a=(new A).d(a);return Bl(new xl,b.Gk,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,a,b.Vl,b.ql,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));b=Zj().ZD;vG(xG(CG(JG(this,tG(),"source-maps",b),"sm"),
"Generate source maps in AMF output"),qd(function(){return function(a,b){return Bl(new xl,b.Gk,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,!!a,b.ql,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));b=Zj().ZD;vG(xG(CG(JG(this,tG(),"validate",b),"v"),"Perform validation"),qd(function(){return function(a,b){return Bl(new xl,b.Gk,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,!!a,b.pl,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));b=Zj().ZD;b=[vG(xG(CG(JG(this,tG(),"resolve",b),"r"),"Resolve after parsing"),
qd(function(){return function(a,b){return Bl(new xl,b.Gk,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,!!a,b.Tk,b.rk,b.uj,b.$k)}}(this)))];c=0;for(e=b.length|0;c<e;)pxa(b[c],a),c=1+c|0;a=vG(xG(JG(this,AG(),"patch",Zj().uM),"Apply a AML patch"),qd(function(){return function(a,b){a=(new A).d(jK().oZ);return Bl(new xl,a,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));b=Zj().WC;b=[vG(xG(CG(JG(this,tG(),"patch-target",b),"tg"),"Location of the file being patched"),
qd(function(){return function(a,b){a=(new A).d(a);return Bl(new xl,b.Gk,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,b.pl,a,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)))];c=0;for(e=b.length|0;c<e;)pxa(b[c],a),c=1+c|0;vG(xG(JG(this,AG(),"validate",Zj().uM),"Validates the spec and generates the validation report"),qd(function(){return function(a,b){a=(new A).d(jK().D9);return Bl(new xl,a,b.Ya,b.Vi,b.Rj,b.Hk,b.Yk,b.Gl,b.Vl,b.ql,b.Sl,b.pl,b.Zk,b.Tl,b.Pj,b.al,b.Tk,b.rk,b.uj,b.$k)}}(this)));Lxa(this,t(new u,
function(){return function(a){var b="";a.Ya.b()&&(b+="Missing \x3cfile_input\x3e\n");a.Rj.b()&&(b+="Missing \x3cfile_input\x3e\n");if(a.Gk.qa())var c=a.Gk.c(),e=jK().oZ,c=!(null===c?null===e:pa(c,e));else c=!1;c&&a.Vi.b()&&(b+="Missing --format-in\n");a.Rj.b()&&(b+="Missing --media-type-in\n");a.Gk.qa()?(c=a.Gk.c(),e=jK().NZ,c=null===c?null===e:pa(c,e)):c=!1;c&&(a.Yk.b()&&(b+="Missing --format-out\n"),a.Gl.b()&&(b+="Missing --media-type-out\n"));if(""===b)return wG(),Zf(),(new ag).d(void 0);a=b;Zf();
return(new $f).d(a)}}(this)));return this};ul.prototype.$classData=q({THa:0},!1,"amf.client.commands.CmdLineParser$$anon$1",{THa:1,ufb:1,f:1});function hK(){this.Tg=this.na=null}hK.prototype=new r;hK.prototype.constructor=hK;function JCa(){}JCa.prototype=hK.prototype;hK.prototype.hC=function(a){this.na=a;this.Tg=um();(new iK).hC(a);return this};
hK.prototype.VL=function(a){var b=Xaa(this).ei(t(new u,function(a,b){return function(){return Saa(a,b).ei(t(new u,function(a,b){return function(c){return KCa(a,b,c).ei(t(new u,function(a,b,c){return function(){return Laa(a,b,c).ei(t(new u,function(a,b){return function(c){return Vaa(a,b,c).Lf(t(new u,function(){return function(){}}(a)),a.Tg)}}(a,b)),a.Tg)}}(a,b,c)),a.Tg)}}(a,b)),a.Tg)}}(this,a)),this.Tg);b.KA(t(new u,function(a,b){return function(a){if(nf(a)){var c=a.ms;if(null!==c){b.uj.gW(c);a=gq().OR;
cq();QG(TG().TJ,a);return}}if(Ge(a))return a.i;throw(new v).d(a);}}(this,a)),this.Tg);return b};
function KCa(a,b,c){if(b.Pj.qa()){var e=Rk(),f=b.Pj.c();Rk();var g=bb(),e=Qk(e).rV(f,g).Lf(t(new u,function(){return function(a){return a}}(a)),a.Tg)}else e=hb(ib(),jb(function(a,b,c){return function(){if($A(b)){var a=LCa(kb().nm,b);if(x(a))return a=a.i,EB(FB(),mK(a))}return c.Hl}}(a,c,b)),a.Tg);return e.ei(t(new u,function(a,b,c){return function(e){var f=Rk();Rk();var g=wk();Rk();var E=bb();Rk();return Qk(f).sQ(b,e,g,E,!1).Lf(t(new u,function(a,b){return function(a){a.Pw||(b.uj.IL(hga(a,a.JR)),a=
gq().g6,cq(),QG(TG().TJ,a))}}(a,c)),a.Tg)}}(a,c,b)),a.Tg)}hK.prototype.$classData=q({U6:0},!1,"amf.client.commands.TranslateCommand",{U6:1,f:1,T6:1});function iK(){this.Tg=this.na=null}iK.prototype=new r;iK.prototype.constructor=iK;
function MCa(a,b,c){if(c.Pj.qa()){var e=Rk();c=c.Pj.c();Rk();var f=bb(),e=Qk(e).rV(c,f).Lf(t(new u,function(){return function(a){return a}}(a)),a.Tg)}else e=hb(ib(),jb(function(a,b,c){return function(){if($A(b)){var a=LCa(kb().nm,b);if(x(a))return a=a.i,EB(FB(),mK(a))}return c.Hl}}(a,b,c)),a.Tg);return e.ei(t(new u,function(a,b){return function(a){var c=Rk();Rk();var e=wk();Rk();var f=bb();Rk();return Qk(c).sQ(b,a,e,f,!1)}}(a,b)),a.Tg)}iK.prototype.hC=function(a){this.na=a;this.Tg=um();return this};
iK.prototype.VL=function(a){var b=Xaa(this).ei(t(new u,function(a,b){return function(){return Taa(a,b).ei(t(new u,function(a,b){return function(){return Saa(a,b).ei(t(new u,function(a,b){return function(c){return MCa(a,c,b).Lf(t(new u,function(a,b){return function(c){var e;e=VC();owa();e=ita(e,c);e=mwa(e);var f=b.Hk;if(x(f))bha(a.na,f.i,e);else if(w()===f)b.rk.IL(e);else throw(new v).d(f);c.Pw||(c=gq().g6,cq(),QG(TG().TJ,c))}}(a,b)),a.Tg)}}(a,b)),a.Tg)}}(a,b)),a.Tg)}}(this,a)),this.Tg);b.KA(t(new u,
function(a,b){return function(a){if(nf(a))b.uj.gW(a.ms),a=gq().OR,cq(),QG(TG().TJ,a);else if(Ge(a))a.i;else throw(new v).d(a);}}(this,a)),this.Tg);return b};iK.prototype.$classData=q({WHa:0},!1,"amf.client.commands.ValidateCommand",{WHa:1,f:1,T6:1});function nK(){this.q3=this.Nq=this.Vm=this.ra=null}nK.prototype=new r;nK.prototype.constructor=nK;nK.prototype.fca=function(a,b){var c=S();a=this.q3.isValid(a,b);b=S().NX();return qm(rm(new pm,c,a,b))};
nK.prototype.nX=function(a,b){var c=S();a=this.q3.validate(a,b);b=S().xv();return qm(rm(new pm,c,a,b))};nK.prototype.mX=function(a){var b=S(),c=this.q3;S();var e=S().zS();a=c.validate(gga(e,a));c=S().xv();return qm(rm(new pm,b,a,c))};nK.prototype.$classData=q({cIa:0},!1,"amf.client.convert.ClientPayloadPluginConverter$$anon$2$$anon$3",{cIa:1,f:1,qla:1});function oK(){}oK.prototype=new r;oK.prototype.constructor=oK;oK.prototype.a=function(){return this};
oK.prototype.Kd=function(a){var b=new pK;b.Haa=a;b.iv=a.ID;return b};oK.prototype.$classData=q({dIa:0},!1,"amf.client.convert.ClientPayloadPluginConverter$AMFPluginConverter$",{dIa:1,f:1,Pd:1});var NCa=void 0;function OCa(){NCa||(NCa=(new oK).a());return NCa}function pK(){this.Haa=this.iv=null}pK.prototype=new r;pK.prototype.constructor=pK;pK.prototype.wh=function(){return this.iv};pK.prototype.Sp=function(){return ml(nl(new ol,S(),this.Haa.dependencies(),OCa()))};
pK.prototype.cn=function(){return qm(rm(new pm,S(),this.Haa.init(),OCa()))};pK.prototype.$classData=q({eIa:0},!1,"amf.client.convert.ClientPayloadPluginConverter$AMFPluginConverter$$anon$1",{eIa:1,f:1,wq:1});function qK(){}qK.prototype=new r;qK.prototype.constructor=qK;qK.prototype.Br=function(){return this};qK.prototype.vd=function(a){var b=new rK;b.GN=a;b.fj=a.G;a=Ab();var c=b.fj,e=Ab().MM();b.G=Bb(a,c,e).sb();return b};
qK.prototype.$classData=q({QIa:0},!1,"amf.client.convert.FieldConverter$AnyFieldMatcher$",{QIa:1,f:1,Gd:1});function sK(){}sK.prototype=new r;sK.prototype.constructor=sK;sK.prototype.Br=function(){return this};sK.prototype.vd=function(a){return tK(a)};sK.prototype.$classData=q({RIa:0},!1,"amf.client.convert.FieldConverter$BoolFieldMatcher$",{RIa:1,f:1,Gd:1});function uK(){}uK.prototype=new r;uK.prototype.constructor=uK;uK.prototype.Br=function(){return this};uK.prototype.vd=function(a){return vK(a)};
uK.prototype.$classData=q({SIa:0},!1,"amf.client.convert.FieldConverter$DoubleFieldMatcher$",{SIa:1,f:1,Gd:1});function wK(){}wK.prototype=new r;wK.prototype.constructor=wK;wK.prototype.Br=function(){return this};wK.prototype.vd=function(a){return xK(a)};wK.prototype.$classData=q({TIa:0},!1,"amf.client.convert.FieldConverter$IntFieldMatcher$",{TIa:1,f:1,Gd:1});function yK(){}yK.prototype=new r;yK.prototype.constructor=yK;yK.prototype.Br=function(){return this};yK.prototype.vd=function(a){return Gb(a)};
yK.prototype.$classData=q({UIa:0},!1,"amf.client.convert.FieldConverter$StrFieldMatcher$",{UIa:1,f:1,Gd:1});function zK(){this.na=null}zK.prototype=new r;zK.prototype.constructor=zK;zK.prototype.a=function(){PCa=this;this.na=ju().na;return this};function Ok(a){var b=Ab();a=a.na.vca();var c=QCa(),b=Il(b,a,c).sb();return RCa((new AK).a(),b)}zK.prototype.apply=function(){return Ok(this)};zK.prototype.$classData=q({TJa:0},!1,"amf.client.environment.DefaultEnvironment$",{TJa:1,f:1,Fb:1});var PCa=void 0;
function Pk(){PCa||(PCa=(new zK).a());return PCa}function BK(){this.uca=null}BK.prototype=new r;BK.prototype.constructor=BK;BK.prototype.DF=function(a){return this.$B(a)};BK.prototype.$B=function(a){return this.uca.fetch(a)};BK.prototype.BQ=function(a){return this.hG(a)};BK.prototype.hG=function(a){return!!this.uca.accepts(a)};BK.prototype.accepts=function(a){return this.BQ(a)};BK.prototype.fetch=function(a){return this.DF(a)};
BK.prototype.$classData=q({UJa:0},!1,"amf.client.environment.Environment$$anon$1",{UJa:1,f:1,c7:1});function CK(){this.cEa=null}CK.prototype=new r;CK.prototype.constructor=CK;CK.prototype.DF=function(a){return this.$B(a)};CK.prototype.$B=function(a){return this.cEa.fetch(a)};CK.prototype.fetch=function(a){return this.DF(a)};CK.prototype.$classData=q({VJa:0},!1,"amf.client.environment.Environment$$anon$2",{VJa:1,f:1,Beb:1});function Do(){this.Ca=null}Do.prototype=new r;Do.prototype.constructor=Do;
Do.prototype.d=function(a){this.Ca=a;return this};Do.prototype.$Da=function(a,b,c,e,f,g,h){(0,this.Ca)(a,b,c,e,f,g,h)};Do.prototype.$classData=q({XJa:0},!1,"amf.client.handler.ErrorHandler$$$Lambda$1",{XJa:1,f:1,OKa:1});function DK(a,b){var c=a.p;Ab();Ab().et();b=b.Jd();var e=Ug().Mc;nh(c,e,b);return a}function EK(a){var b=Ab();a=a.p.ak();var c=Ab().et();return Il(b,a,c).sb()}function FK(a,b){var c=a.p,e=Ab(),f=Ab().et();b=ml(nl(new ol,e,b,f));e=Ug().Mc;Vg(c,e,b);return a}
function GK(a,b){var c=a.p;Ab();Ab().et();b=b.Jd();var e=Rl().ob;ff(c,e,b);return a}function SCa(a){Ab();a=a.p.ze();return Yea(Ab().et(),a)}function al(){kl.call(this)}al.prototype=new Io;al.prototype.constructor=al;al.prototype.a=function(){al.prototype.hm.call(this,w());return this};al.prototype.zu=function(a){al.prototype.hm.call(this,(new A).d(a));return this};al.prototype.hm=function(a){kl.prototype.jx.call(this,"AMF Graph","application/ld+json",a);rp(tb(),pp());return this};
al.prototype.$classData=q({pKa:0},!1,"amf.client.parse.AmfGraphParser",{pKa:1,sB:1,f:1});function HK(){kl.call(this)}HK.prototype=new Io;HK.prototype.constructor=HK;d=HK.prototype;d.a=function(){HK.prototype.Sq.call(this,"application/yaml",w());return this};d.e=function(a){HK.prototype.Sq.call(this,a,w());return this};d.s6a=function(a,b){HK.prototype.Sq.call(this,a,(new A).d(b));return this};d.Sq=function(a,b){kl.prototype.jx.call(this,"AML 1.0",a,b);rp(tb(),kb());return this};
d.$classData=q({qKa:0},!1,"amf.client.parse.Aml10Parser",{qKa:1,sB:1,f:1});function Tk(){kl.call(this)}Tk.prototype=new Io;Tk.prototype.constructor=Tk;Tk.prototype.a=function(){Tk.prototype.hm.call(this,w());return this};Tk.prototype.zu=function(a){Tk.prototype.hm.call(this,(new A).d(a));return this};Tk.prototype.hm=function(a){kl.prototype.jx.call(this,ih().ba,"application/amf+json",a);rp(tb(),IK());return this};
Tk.prototype.$classData=q({rKa:0},!1,"amf.client.parse.JsonPayloadParser",{rKa:1,sB:1,f:1});function cl(){kl.call(this)}cl.prototype=new Io;cl.prototype.constructor=cl;cl.prototype.a=function(){cl.prototype.hm.call(this,w());return this};cl.prototype.zu=function(a){cl.prototype.hm.call(this,(new A).d(a));return this};cl.prototype.hm=function(a){kl.prototype.jx.call(this,wt().ba,"application/json",a);rp(tb(),$aa());return this};
cl.prototype.$classData=q({sKa:0},!1,"amf.client.parse.Oas20Parser",{sKa:1,sB:1,f:1});function JK(){kl.call(this)}JK.prototype=new Io;JK.prototype.constructor=JK;JK.prototype.a=function(){JK.prototype.hm.call(this,w());return this};JK.prototype.zu=function(a){JK.prototype.hm.call(this,(new A).d(a));return this};JK.prototype.hm=function(a){kl.prototype.jx.call(this,wt().ba,"application/yaml",a);rp(tb(),$aa());return this};
JK.prototype.$classData=q({tKa:0},!1,"amf.client.parse.Oas20YamlParser",{tKa:1,sB:1,f:1});function el(){kl.call(this)}el.prototype=new Io;el.prototype.constructor=el;el.prototype.a=function(){el.prototype.hm.call(this,w());return this};el.prototype.zu=function(a){el.prototype.hm.call(this,(new A).d(a));return this};el.prototype.hm=function(a){kl.prototype.jx.call(this,oc().ba,"application/yaml",a);rp(tb(),rb());return this};
el.prototype.$classData=q({uKa:0},!1,"amf.client.parse.Raml08Parser",{uKa:1,sB:1,f:1});function hl(){kl.call(this)}hl.prototype=new Io;hl.prototype.constructor=hl;hl.prototype.a=function(){hl.prototype.hm.call(this,w());return this};hl.prototype.zu=function(a){hl.prototype.hm.call(this,(new A).d(a));return this};hl.prototype.hm=function(a){kl.prototype.jx.call(this,nc().ba,"application/yaml",a);rp(tb(),Zaa());return this};
hl.prototype.$classData=q({vKa:0},!1,"amf.client.parse.Raml10Parser",{vKa:1,sB:1,f:1});function gl(){kl.call(this)}gl.prototype=new Io;gl.prototype.constructor=gl;gl.prototype.a=function(){gl.prototype.hm.call(this,w());return this};gl.prototype.zu=function(a){gl.prototype.hm.call(this,(new A).d(a));return this};gl.prototype.hm=function(a){kl.prototype.jx.call(this,mc().ba,"application/yaml",a);rp(tb(),Zaa());rp(tb(),rb());return this};
gl.prototype.$classData=q({wKa:0},!1,"amf.client.parse.RamlParser",{wKa:1,sB:1,f:1});function Sk(){kl.call(this)}Sk.prototype=new Io;Sk.prototype.constructor=Sk;Sk.prototype.a=function(){Sk.prototype.hm.call(this,w());return this};Sk.prototype.zu=function(a){Sk.prototype.hm.call(this,(new A).d(a));return this};Sk.prototype.hm=function(a){kl.prototype.jx.call(this,ih().ba,"application/amf+yaml",a);rp(tb(),IK());return this};
Sk.prototype.$classData=q({xKa:0},!1,"amf.client.parse.YamlPayloadParser",{xKa:1,sB:1,f:1});function KK(){this.GC=0}KK.prototype=new r;KK.prototype.constructor=KK;function LK(){}LK.prototype=KK.prototype;KK.prototype.a=function(){this.GC=Hfa().$n;return this};KK.prototype.ECa=function(){return w()};KK.prototype.f0=function(a,b,c,e){if(b&&b.$classData&&b.$classData.v.B8){a=this.oI(a,c,e);if(a.b())return!1;a=a.c();b.IM=(new A).d(a);return!0}return!1};KK.prototype.Nda=function(){return this.GC};
function TCa(){}TCa.prototype=new r;TCa.prototype.constructor=TCa;function UCa(){}UCa.prototype=TCa.prototype;function VCa(){}VCa.prototype=new r;VCa.prototype.constructor=VCa;function WCa(){}WCa.prototype=VCa.prototype;function XCa(a,b){a=a.l3("application/json",b,(new Rp).a(),Ufa());if(a.b())return w();a=a.c();return(new A).d(a.u())}function MK(){}MK.prototype=new r;MK.prototype.constructor=MK;MK.prototype.a=function(){return this};
MK.prototype.$classData=q({zKa:0},!1,"amf.client.plugins.ScalarRelaxedValidationMode$",{zKa:1,f:1,BKa:1});var YCa=void 0;function NK(){YCa||(YCa=(new MK).a());return YCa}function OK(){}OK.prototype=new r;OK.prototype.constructor=OK;OK.prototype.a=function(){return this};OK.prototype.$classData=q({AKa:0},!1,"amf.client.plugins.StrictValidationMode$",{AKa:1,f:1,BKa:1});var ZCa=void 0;function AB(){ZCa||(ZCa=(new OK).a());return ZCa}function Zk(){jl.call(this)}Zk.prototype=new Ro;
Zk.prototype.constructor=Zk;Zk.prototype.a=function(){jl.prototype.tc.call(this,"AMF Graph","application/ld+json");rp(tb(),pp());return this};function $Ca(a,b,c,e){var f=Ab();c=Lfa(Mfa(),c);a=gha(To(new Uo,b.p,a.Bh,a.Qe,c,(new ob).a()),e);b=Pfa();return tm(f,a,b).sb()}
Zk.prototype.generateToBuilder=function(a,b){for(var c=arguments.length|0,e=2,f=[];e<c;)f.push(arguments[e]),e=e+1|0;switch(f.length|0){case 0:return $Ca(this,a,(new Po).a(),b);case 1:return $Ca(this,a,b,f[0]);default:throw"No matching overload";}};Zk.prototype.$classData=q({DKa:0},!1,"amf.client.render.AmfGraphRenderer",{DKa:1,DD:1,f:1});function PK(){jl.call(this)}PK.prototype=new Ro;PK.prototype.constructor=PK;PK.prototype.a=function(){PK.prototype.e.call(this,"application/yaml");return this};
PK.prototype.fz=function(){return this.Bh};PK.prototype.e=function(a){jl.prototype.tc.call(this,"AML 1.0",a);rp(tb(),kb());return this};Object.defineProperty(PK.prototype,"mediaType",{get:function(){return this.fz()},configurable:!0});PK.prototype.$classData=q({EKa:0},!1,"amf.client.render.Aml10Renderer",{EKa:1,DD:1,f:1});function QK(){jl.call(this)}QK.prototype=new Ro;QK.prototype.constructor=QK;
QK.prototype.a=function(){jl.prototype.tc.call(this,ih().ba,"application/payload+json");rp(tb(),IK());return this};QK.prototype.$classData=q({FKa:0},!1,"amf.client.render.JsonPayloadRenderer",{FKa:1,DD:1,f:1});function RK(){jl.call(this)}RK.prototype=new Ro;RK.prototype.constructor=RK;RK.prototype.a=function(){jl.prototype.tc.call(this,yt().ba,"application/ld+json");rp(tb(),pp());return this};RK.prototype.$classData=q({GKa:0},!1,"amf.client.render.JsonldRenderer",{GKa:1,DD:1,f:1});
function bl(){jl.call(this)}bl.prototype=new Ro;bl.prototype.constructor=bl;bl.prototype.a=function(){jl.prototype.tc.call(this,wt().ba,"application/json");rp(tb(),$aa());return this};bl.prototype.$classData=q({HKa:0},!1,"amf.client.render.Oas20Renderer",{HKa:1,DD:1,f:1});function dl(){jl.call(this)}dl.prototype=new Ro;dl.prototype.constructor=dl;dl.prototype.a=function(){jl.prototype.tc.call(this,oc().ba,"application/yaml");rp(tb(),rb());return this};
dl.prototype.$classData=q({IKa:0},!1,"amf.client.render.Raml08Renderer",{IKa:1,DD:1,f:1});function fl(){jl.call(this)}fl.prototype=new Ro;fl.prototype.constructor=fl;fl.prototype.a=function(){jl.prototype.tc.call(this,nc().ba,"application/yaml");rp(tb(),Zaa());return this};fl.prototype.$classData=q({JKa:0},!1,"amf.client.render.Raml10Renderer",{JKa:1,DD:1,f:1});function SK(){jl.call(this)}SK.prototype=new Ro;SK.prototype.constructor=SK;
SK.prototype.a=function(){jl.prototype.tc.call(this,ih().ba,"application/payload+yaml");rp(tb(),IK());return this};SK.prototype.$classData=q({MKa:0},!1,"amf.client.render.YamlPayloadRenderer",{MKa:1,DD:1,f:1});function Vk(){this.Qe=null}Vk.prototype=new Zfa;Vk.prototype.constructor=Vk;Vk.prototype.a=function(){ll.prototype.e.call(this,"AMF Graph");return this};Vk.prototype.$classData=q({NKa:0},!1,"amf.client.resolve.AmfGraphResolver",{NKa:1,bS:1,f:1});function Qo(){this.Rza=null}Qo.prototype=new r;
Qo.prototype.constructor=Qo;Qo.prototype.vb=function(a){this.Rza=a;return this};Qo.prototype.$Da=function(a,b,c,e,f,g,h){var k=this.Rza,l=Ab();c=aDa(Rea(l,c).ek);l=Ab();f=aDa(Rea(l,f).ek);f.b()?f=w():(f=f.c(),f=(new A).d((new uf).Ui(f)));l=Ab();k.Hc(a,b,c,e,f,g,aDa(Rea(l,h).ek))};Qo.prototype.$classData=q({QKa:0},!1,"amf.client.resolve.ClientErrorHandlerConverter$$anon$2",{QKa:1,f:1,OKa:1});function Wk(){this.Qe=null}Wk.prototype=new Zfa;Wk.prototype.constructor=Wk;
Wk.prototype.a=function(){ll.prototype.e.call(this,wt().ba);return this};Wk.prototype.$classData=q({SKa:0},!1,"amf.client.resolve.Oas20Resolver",{SKa:1,bS:1,f:1});function Xk(){this.Qe=null}Xk.prototype=new Zfa;Xk.prototype.constructor=Xk;Xk.prototype.a=function(){ll.prototype.e.call(this,oc().ba);return this};Xk.prototype.$classData=q({TKa:0},!1,"amf.client.resolve.Raml08Resolver",{TKa:1,bS:1,f:1});function Yk(){this.Qe=null}Yk.prototype=new Zfa;Yk.prototype.constructor=Yk;
Yk.prototype.a=function(){ll.prototype.e.call(this,nc().ba);return this};Yk.prototype.$classData=q({UKa:0},!1,"amf.client.resolve.Raml10Resolver",{UKa:1,bS:1,f:1});function TK(){}TK.prototype=new r;TK.prototype.constructor=TK;function bDa(){}bDa.prototype=TK.prototype;TK.prototype.BQ=function(a){return this.hG(a)};TK.prototype.hG=function(a){return Hia().cj(a).b()?!1:!0};TK.prototype.fetch=function(a){return this.DF(a)};TK.prototype.accepts=function(a){return this.BQ(a)};
function Mp(){this.Ca=null}Mp.prototype=new r;Mp.prototype.constructor=Mp;Mp.prototype.d=function(a){this.Ca=a;return this};function $ja(a,b,c,e,f,g,h,k,l,p){return(0,a.Ca)(b,c,e,f,g,h,k,l,p)}Mp.prototype.$classData=q({eLa:0},!1,"amf.core.AMFCompiler$$$Lambda$1",{eLa:1,f:1,Reb:1});function Zp(){}Zp.prototype=new r;Zp.prototype.constructor=Zp;Zp.prototype.a=function(){return this};Zp.prototype.eaa=function(a,b,c,e,f,g,h){return Wfa(To(new Uo,c,e,f,g,h),a,b)};
Zp.prototype.$classData=q({iLa:0},!1,"amf.core.AMFSerializer$$anon$1",{iLa:1,f:1,Seb:1});function Al(){}Al.prototype=new yha;Al.prototype.constructor=Al;Al.prototype.a=function(){return this};Al.prototype.$classData=q({KLa:0},!1,"amf.core.client.RuntimeProc$",{KLa:1,Deb:1,f:1});var Nea=void 0;function zl(){}zl.prototype=new Aha;zl.prototype.constructor=zl;zl.prototype.a=function(){return this};zl.prototype.IL=function(a){bq(cq().Wp,a)};zl.prototype.gW=function(a){fK(cq().Wp,a+"\n")};
zl.prototype.$classData=q({LLa:0},!1,"amf.core.client.StdErrWriter$",{LLa:1,JLa:1,f:1});var Mea=void 0;function cDa(a){var b=a.Ca.xc.ja,b=UK().h(b)?O().fy:Zc().h(b)?O().Oi:Yc().h(b)?O().ui:Ci().h(b)||bs().h(b)?O().rg:O().Wa;a.Sxa(b)}function dDa(){}dDa.prototype=new r;dDa.prototype.constructor=dDa;function eDa(){}eDa.prototype=dDa.prototype;function VK(){this.ja=null}VK.prototype=new r;VK.prototype.constructor=VK;
VK.prototype.a=function(){fDa=this;Di();var a=C().mj,a=(new J).aa([D(new F,a,"anyType")]),b=Di().s;this.ja=Ei(a,b);return this};VK.prototype.ec=function(){return this.ja};VK.prototype.$classData=q({aMa:0},!1,"amf.core.metamodel.Type$Any$",{aMa:1,f:1,ic:1});var fDa=void 0;function ad(){fDa||(fDa=(new VK).a());return fDa}function WK(){this.ja=this.Se=null}WK.prototype=new r;WK.prototype.constructor=WK;function gDa(){}gDa.prototype=WK.prototype;WK.prototype.Ld=function(a){this.Se=a;this.ja=a.ec();return this};
WK.prototype.ec=function(){return this.ja};function fs(a){return!!(a&&a.$classData&&a.$classData.v.Zja)}
function XK(a){var b=Pb(),c=C().Zd;a.NB(Rb(new Sb,b,D(new F,c,"raw"),Tb(new Ub,Vb().dg,"raw","Raw textual information that cannot be processed for the current model semantics.",G())));b=Xc();c=C().Zd;a.OB(Rb(new Sb,b,D(new F,c,"reference-id"),Tb(new Ub,Vb().dg,"reference id","Internal identifier for an inlined fragment",G())));b=Pb();c=C().Zd;a.MB(Rb(new Sb,b,D(new F,c,"location"),Tb(new Ub,Vb().dg,"location","Location of an inlined fragment",G())))}
function YK(a){var b=Xc(),c=C().Zd;a.qp(Rb(new Sb,b,D(new F,c,"link-target"),Tb(new Ub,Vb().dg,"link target","URI of the linked element",G())));b=Lc();c=C().Zd;a.pp(Rb(new Sb,b,D(new F,c,"effective-target"),Tb(new Ub,Vb().dg,"effective target","URI of the final element in a chain of linked elements",G())));b=Pb();c=C().Zd;a.np(Rb(new Sb,b,D(new F,c,"link-label"),Tb(new Ub,Vb().dg,"link label","Label for the type of link",G())));b=Yc();c=C().Zd;a.op(Rb(new Sb,b,D(new F,c,"recursive"),Tb(new Ub,Vb().dg,
"supports recursion","Indication taht this kind of linkable element can support recursive links",G())))}function ZK(){this.fb=null}ZK.prototype=new r;ZK.prototype.constructor=ZK;ZK.prototype.a=function(){hDa=this;Ob(this);return this};ZK.prototype.$l=function(a){this.fb=a};ZK.prototype.$classData=q({JMa:0},!1,"amf.core.metamodel.domain.common.DescriptionField$",{JMa:1,f:1,ul:1});var hDa=void 0;function $K(){this.gd=null}$K.prototype=new r;$K.prototype.constructor=$K;
$K.prototype.a=function(){iDa=this;fba(this);return this};$K.prototype.U9=function(a){this.gd=a};$K.prototype.$classData=q({KMa:0},!1,"amf.core.metamodel.domain.common.DisplayNameField$",{KMa:1,f:1,cka:1});var iDa=void 0;function aL(){this.$=null}aL.prototype=new r;aL.prototype.constructor=aL;aL.prototype.a=function(){jDa=this;Wb(this);return this};aL.prototype.Rp=function(a){this.$=a};aL.prototype.$classData=q({LMa:0},!1,"amf.core.metamodel.domain.common.NameFieldSchema$",{LMa:1,f:1,yq:1});
var jDa=void 0;function kDa(){jDa||(jDa=(new aL).a());return jDa}function bL(){this.$=null}bL.prototype=new r;bL.prototype.constructor=bL;bL.prototype.a=function(){lDa=this;var a=Pb(),b=C().cb;this.$=Rb(new Sb,a,D(new F,b,"name"),Tb(new Ub,Bi().cb,"name","Additional name for the shape",G()));return this};bL.prototype.$classData=q({MMa:0},!1,"amf.core.metamodel.domain.common.NameFieldShacl$",{MMa:1,f:1,Feb:1});var lDa=void 0;
function mDa(a){var b=Yc(),c=C().bb;a.h_(Rb(new Sb,b,D(new F,c,"optional"),Tb(new Ub,Vb().bb,"optional","Marks some information as optional",G())))}function nDa(a){return!!(a&&a.$classData&&a.$classData.v.EY)}function sd(a){return!!(a&&a.$classData&&a.$classData.v.uB)}function au(a){return!!(a&&a.$classData&&a.$classData.v.mr)}function cL(){}cL.prototype=new r;cL.prototype.constructor=cL;cL.prototype.a=function(){return this};
cL.prototype.$za=function(a){a=a.Pb;var b=zx(),b=Va(b),c=Ce().s;a=De(a,b,c);b=t(new u,function(){return function(a){return a.t.t}}(this));c=pf();return a.ka(b,c.s).wa()};cL.prototype.$classData=q({YMa:0},!1,"amf.core.model.document.FieldsFilter$All$",{YMa:1,f:1,XMa:1});var oDa=void 0;function dL(){}dL.prototype=new r;dL.prototype.constructor=dL;dL.prototype.a=function(){return this};dL.prototype.$za=function(a){a=a.Pb;var b=zx(),b=Va(b),c=Ce().s;a=De(a,b,c);b=(new eL).a();c=pf();return a.$b(b,c.s).wa()};
dL.prototype.$classData=q({ZMa:0},!1,"amf.core.model.document.FieldsFilter$Local$",{ZMa:1,f:1,XMa:1});var pDa=void 0;function Nz(){pDa||(pDa=(new dL).a());return pDa}function Yl(a){return!!(a&&a.$classData&&a.$classData.v.de)}function Jb(a,b){vj(a.ca(),Db().ef,b,(M(),(new N).a()));var c=Db().kg;return Eb(a,c,b.k)}function fL(a,b,c,e,f){e.Nt()&&(a=a.gk(b,c),f&&ns(a)&&(b=Db().Je,dj(a,b,f)));return a}
function gL(a,b,c){var e=a.El(),e=e.Uc(a.zk.os(e.k+"/linked"));a=Jb(e,a);e=Db().wd;b=Eb(a,e,b);return cc(b,c)}function hL(a){a.Hu(w());a.lu(!0);a.zt(!1);a.Zu("error");a.It("");a.Gt(w());a.Ht(w());a.ku((new Ie).a())}function qDa(a,b){return a.Qk().zf(ks(a.ca()),b)}
function Lia(a,b){var c=a.Jk;if(x(c))c=c.i,hba(c.Yh,a.Zi,rDa(new sDa,b,jb(function(a,b){return function(){if("warning"===a.Nk){var c=Bc().iu,h=a.k,k="Unresolved reference '"+a.Zi+"'",l=a.mk.c(),p=w();iL(b,c,h,p,k,l.ga)}else c=Bc().iu,h=a.k,k="Unresolved reference '"+a.Zi+"'",l=a.mk.c(),p=w(),Cc(b,c,h,p,k,l.ga)}}(a,c))));else throw Lb(Mb(),(new Nb).e("Cannot create unresolved reference with missing parsing context"));}function yb(a){return Wa().Ia(Xp(a.ca(),Db().ef))}
function dz(a,b,c,e){a.zt(!0);a.It(b);a.Gt((new A).d(c));a.Ht((new A).d(e));return a}function Px(a,b){var c=yb(a);if(c.b())b=w();else{c=c.c();if(ns(c)&&yb(a).qa())if(b.Ja(c.k))b=yb(c).c();else{var e=c.k,f=z();b=c.Up(b.Tr(e,f.s))}else b=c;b=(new A).d(b)}return b.b()?a:b.c()}function jda(a){var b=a.Qk(),c=ks(a.ca());a=a.ha();return b.zf(c,zj(M(),a))}function ns(a){return!!(a&&a.$classData&&a.$classData.v.Pi)}function nia(){this.jf=null}nia.prototype=new jia;nia.prototype.constructor=nia;d=nia.prototype;
d.a=function(){N.prototype.a.call(this);return this};d.Ur=function(){return this};d.Wb=function(){return this};d.FM=function(){return this};d.$classData=q({vNa:0},!1,"amf.core.parser.Annotations$$anon$1",{vNa:1,Aka:1,f:1});function tDa(a){return jL(a,t(new u,function(a,c){return function(a){return uDa(c,a)}}(a,t(new u,function(a){return function(c){var e=zc();return L(c,e,a.Ah).ya}}(a)))))}
function jL(a,b){var c=a.HV();if(null!==c){var e=c.pa(),c=c.Ba();a=t(new u,function(a,b){return function(a){return b.R(a)}}(a,b));b=z();e=e.ka(a,b.s);return gr(new hr,e,Lr(M(),c))}throw(new v).d(c);}function vDa(a){return jL(a,t(new u,function(a,c){return function(a){return uDa(c,a)}}(a,t(new u,function(a){return function(c){var e=kL();return!!L(c,e,a.Ah)}}(a)))))}
function wDa(a){return jL(a,t(new u,function(a,c){return function(a){return uDa(c,a)}}(a,t(new u,function(a){return function(c){var e=xDa();return L(c,e,a.Ah)|0}}(a)))))}function yDa(a){return jL(a,t(new u,function(a,c){return function(a){return uDa(c,a)}}(a,t(new u,function(a){return function(c){var e=kL();return!L(c,e,a.Ah)}}(a)))))}
function zDa(a){return jL(a,t(new u,function(a,c){return function(a){return uDa(c,a)}}(a,t(new u,function(a){return function(c){var e=qe();return L(c,e,a.Ah)}}(a)))))}function uDa(a,b){return Nh(new Oh,a.R(b),Ke(M(),b.we()))}function Np(){this.HC=null}Np.prototype=new r;Np.prototype.constructor=Np;Np.prototype.a=function(){this.HC=pc(Os(),G());return this};Np.prototype.$classData=q({CNa:0},!1,"amf.core.parser.EmptyFutureDeclarations$$anon$1",{CNa:1,f:1,Meb:1});
function ADa(a,b,c){a:{if(c&&c.$classData&&c.$classData.v.C8){var e=c.Xu;if(null===e)throw(new Rg).a();if(Sg(Tg(),"\\s+",e))break a}e=Bc().FS;c=c.Ls;var f=w();Cc(a,e,"",f,c,b)}}function BDa(a){a=Af(Bf(),a.vf,a.Ef,a.ag,a.fg);var b=Bf().xn;return(null===b?null===a:b.h(a))?w():(new A).d((new uf).Ui(zf(tf(),a)))}function CDa(a,b,c){var e=Bc().FS,f=gc(b.Wp);b=DDa(a,b);var g=w();Cc(a,e,"",g,f,b.ga);return c}
var DDa=function EDa(b,c){c=c.Ea;if(kG(c)||Ir(c))return c;if(c&&c.$classData&&c.$classData.v.nxa)return c.Bd;if(FDa(c))return EDa(b,c.n0);throw(new v).d(c);};function Cc(a,b,c,e,f,g){var h=BDa(g);g=(new Cf).e(g.Of).Nu();a.Hc(b.k,c,e,f,h,xc().tb,g)}function iL(a,b,c,e,f,g){var h=BDa(g);a.Vs(b,c,e,f,h,(new Cf).e(g.Of).Nu())}function GDa(a,b,c,e,f){var g=w(),h=w();f=(new Cf).e(f).Nu();a.Hc(b.k,c,g,e,h,xc().tb,f)}
function sz(a,b,c,e,f){var g=w(),h=Zb(f,n(Fd));f=Zb(f,n($b));f.b()?f=w():(f=f.c(),f=(new A).d(f.ga));a.Hc(b.k,c,g,e,h,xc().tb,f)}function lL(){}lL.prototype=new r;lL.prototype.constructor=lL;lL.prototype.a=function(){return this};lL.prototype.$classData=q({ENa:0},!1,"amf.core.parser.ExtensionReference$",{ENa:1,f:1,dS:1});var HDa=void 0;function mL(){}mL.prototype=new r;mL.prototype.constructor=mL;mL.prototype.a=function(){return this};
mL.prototype.$classData=q({HNa:0},!1,"amf.core.parser.InferredLinkReference$",{HNa:1,f:1,dS:1});var IDa=void 0;function JDa(){IDa||(IDa=(new mL).a());return IDa}function nL(){}nL.prototype=new r;nL.prototype.constructor=nL;nL.prototype.a=function(){return this};nL.prototype.$classData=q({INa:0},!1,"amf.core.parser.LibraryReference$",{INa:1,f:1,dS:1});var KDa=void 0;function oL(){KDa||(KDa=(new nL).a());return KDa}function pL(){}pL.prototype=new r;pL.prototype.constructor=pL;pL.prototype.a=function(){return this};
pL.prototype.$classData=q({JNa:0},!1,"amf.core.parser.LinkReference$",{JNa:1,f:1,dS:1});var LDa=void 0;function qL(){LDa||(LDa=(new pL).a());return LDa}function rL(){}rL.prototype=new r;rL.prototype.constructor=rL;rL.prototype.a=function(){return this};rL.prototype.$classData=q({TNa:0},!1,"amf.core.parser.SchemaReference$",{TNa:1,f:1,dS:1});var MDa=void 0;function NDa(){MDa||(MDa=(new rL).a());return MDa}function sL(){}sL.prototype=new r;sL.prototype.constructor=sL;sL.prototype.a=function(){return this};
sL.prototype.$classData=q({UNa:0},!1,"amf.core.parser.SearchScope$All$",{UNa:1,f:1,Pka:1});var ODa=void 0;function Nr(){ODa||(ODa=(new sL).a());return ODa}function tL(){}tL.prototype=new r;tL.prototype.constructor=tL;tL.prototype.a=function(){return this};tL.prototype.$classData=q({VNa:0},!1,"amf.core.parser.SearchScope$Fragments$",{VNa:1,f:1,Pka:1});var PDa=void 0;function Or(){PDa||(PDa=(new tL).a());return PDa}function uL(){}uL.prototype=new r;uL.prototype.constructor=uL;uL.prototype.a=function(){return this};
uL.prototype.$classData=q({WNa:0},!1,"amf.core.parser.SearchScope$Named$",{WNa:1,f:1,Pka:1});var QDa=void 0;function Pr(){QDa||(QDa=(new uL).a());return QDa}function vL(){}vL.prototype=new r;vL.prototype.constructor=vL;vL.prototype.a=function(){return this};vL.prototype.iX=function(a){return HB(ib(),a)};vL.prototype.bO=function(){return RDa()};vL.prototype.$classData=q({XNa:0},!1,"amf.core.parser.SimpleReferenceHandler$",{XNa:1,f:1,KY:1});var SDa=void 0;
function TDa(){SDa||(SDa=(new vL).a());return SDa}function wL(){}wL.prototype=new r;wL.prototype.constructor=wL;wL.prototype.a=function(){return this};wL.prototype.$classData=q({ZNa:0},!1,"amf.core.parser.UnspecifiedReference$",{ZNa:1,f:1,dS:1});var UDa=void 0;function ab(){UDa||(UDa=(new wL).a());return UDa}function xL(){}xL.prototype=new r;xL.prototype.constructor=xL;xL.prototype.a=function(){return this};
xL.prototype.Wv=function(a){var b=a.we();return rs(b)?(Zf(),(new ag).d(b)):AE(CE(),a,"Expected scalar but found: "+b)};xL.prototype.ZJ=function(){return nq().yd};xL.prototype.$classData=q({dOa:0},!1,"amf.core.parser.package$YScalarYRead$",{dOa:1,f:1,Jz:1});var VDa=void 0;function zc(){VDa||(VDa=(new xL).a());return VDa}function lc(){this.wm=null}lc.prototype=new r;lc.prototype.constructor=lc;
function lba(a,b,c){var e=new WDa;e.fc=c;if(null===a)throw Lb(Mb(),null);e.l=a;e.dr=(new yL).a();e.kea=w();e.mea(b)}lc.prototype.xU=function(a){this.wm=a;return this};lc.prototype.$classData=q({fOa:0},!1,"amf.core.rdf.RdfModelEmitter",{fOa:1,f:1,Rm:1});function XDa(){this.pD=this.gaa=this.yX=this.zX=this.bB=this.cB=this.UD=this.dD=this.dB=this.BF=this.mza=this.mb=this.dh=this.I$=this.RH=this.cD=this.Hx=this.m=null}XDa.prototype=new r;XDa.prototype.constructor=XDa;
function YDa(a){var b=mr().nL,c=fc().ci,e=Ry(new Sy,Xs());b.X(t(new u,function(a,b,c){return function(a){return c.Ic(a)}}(b,c,e)));b=e.gb.Ta(a);return b.b()?mr().A0(a):b}d=XDa.prototype;d.x5=function(){null===this.pD&&(this.pD=new hv)};
function ZDa(a,b,c){a.mb=(new A).d(b);b=b.sK(c);if(x(b))a:{if(b=$Da(a,b.i,!0),x(b)&&(b=b.i,bt(b))){var e=Ap().nc;c=kd(ta(),c,"#",0);c=Wj((new md).vc(c));c=Eb(b,e,c);break a}b=a.m;var e=Bc().xN,f="Unable to parse RDF model for location root node: "+c,g=w(),h=w(),k=w();b.Hc(e.k,c,g,f,h,xc().tb,k);M();c=(new N).a();c=(new Ig).P((new Q).a(),c)}else b=a.m,e=Bc().xN,f="Unable to parse RDF model for location root node: "+c,g=w(),h=w(),k=w(),b.Hc(e.k,c,g,f,h,xc().tb,k),M(),c=(new N).a(),c=(new Ig).P((new Q).a(),
c);b=a.I$;e=(new aEa).cba(a);f=Wg().s;for(b=Fr(b,e,f).Lb;!b.b();)bEa(b.fa(),a.dh),b=b.sa();return c}
function cEa(a,b,c){b=zL(a,b);if(x(b)){var e=b.i;b=C().yi;b=AL(e,Gc(D(new F,b,"next")));b=(b.b()?G():b.c()).pc();var f=C().yi,e=AL(e,Gc(D(new F,f,"first"))),e=(e.b()?G():e.c()).pc();a:if(x(e)&&(e=e.i,BL(e))){e=CL(a,e);x(e)&&(e=e.i,e=H(z(),(new J).aa([e])),f=z(),c=c.la(e,f.s));break a}return x(b)&&(b=b.i,BL(b)&&(e=b.t,f=C().yi,e!==Gc(D(new F,f,"nil"))))?cEa(a,b,c):c}if(w()===b)return c;throw(new v).d(b);}
function dEa(a){var b=new XDa;b.m=a;b.Hx=pc(Os(),G());b.cD=pc(Os(),G());b.RH=pc(Os(),G());b.I$=H(Wg(),G());b.dh=pc(fc().db,G());b.mb=w();a=C().Zd;a=Gc(D(new F,a,"Document"));var c=C().Zd,c=Gc(D(new F,c,"Fragment")),e=C().Zd,e=Gc(D(new F,e,"Module")),f=C().Zd,f=Gc(D(new F,f,"Unit")),g=C().cb,g=Gc(D(new F,g,"Shape")),h=C().Gb;a=[a,c,e,f,g,Gc(D(new F,h,"Shape"))];if(0===(a.length|0))a=Yd();else{c=Zd(new ee,Yd());e=0;for(f=a.length|0;e<f;)fe(c,a[e]),e=1+e|0;a=c.gb}b.mza=a;b.BF=qi().Mj;b.dB=qi().hj;b.dD=
qi().rg;b.UD=qi().jp;b.cB=qi().vi;b.bB=qi().Xj;b.zX=qi().Xl;b.yX=qi().uq;a=Gc(cia().rG);a=(new P).N(a,t(new u,function(){return function(a){return bia(cia(),"","",a)}}(b)));c=Gc(or().rG);c=(new P).N(c,t(new u,function(){return function(a){or();return(new DL).P((new Q).a(),a)}}(b)));e=Gc(xj().ja.fa());e=(new P).N(e,t(new u,function(){return function(a){return Ar(Dr(),"",w(),a)}}(b)));f=Gc(xr().rG);a=[a,c,e,(new P).N(f,t(new u,function(){return function(a){xr();return(new kA).P((new Q).a(),a)}}(b)))];
c=(new ct).a();e=0;for(f=a.length|0;e<f;)Gs(c,a[e]),e=1+e|0;b.gaa=c;return b}d.p$=function(a,b){b.X(t(new u,function(a,b){return function(a){a:{for(var c=Dca(b.ca());!c.b();){var h=c.fa(),k=B(a.g,bf().jr);if(Xb(k,Gc(h.t))){c=(new A).d(c.fa());break a}c=c.sa()}c=w()}if(!c.b()&&(c=c.c(),c=Dd(b.ca(),c),!c.b()))if(c=c.c(),null!==c)c.t.t.ha().Wb((new EL).WG(a));else throw(new v).d(c);}}(this,a)))};
function $Da(a,b,c){var e=b.YC;c=eEa(a,e,b,c);if(c.b())return w();var f=c.c(),g=fEa(a,b);c=gEa(a,f).R(FL(a,g,e));c.Uc(e);a.E$(c);if(uz(f))var f=f.sc(),h=z(),k=[$w(),lA()],h=H(h,(new J).aa(k)),k=Di(),f=f.la(h,k.s);else f=f.sc();for(;!f.b();){var h=f.fa(),k=Gc(h.t),l;l=AL(b,k);l=l.b()?G():l.c();hEa(a,c,h,l,g,k);f=f.sa()}if(Yl(c)&&ns(c)){g=AL(b,Gc(Db().kg.t));if(g.b())g=w();else b:{if(g=g.c().pc(),x(g)&&(g=g.i,BL(g))){g=(new A).d(g.t);break b}g=w()}g.b()||(g=g.c(),a.ffa(c,g));g=AL(b,Gc(Db().wd.t));if(g.b())g=
w();else b:{if(g=g.c().pc(),x(g)&&(g=g.i,GL(g))){g=(new A).d(g.t);break b}g=w()}g.b()||(g=g.c(),f=Db().wd,Eb(c,f,g))}else Xea(c)&&a.cD.Ta(c.k).qa()&&(g=a.cD.Ta(c.k),g.b()||(g=g.c(),f=B(c.g,Wl().Sd).G,f.b()||(f=f.c(),h=jh().Sd,Eb(g,h,f))),a.cD.Hs(c.k));Yl(c)&&iEa(a,b,c);a.dh=a.dh.Zb((new P).N(e,c));return(new A).d(c)}
function jEa(a,b){a=b.kT.jn(t(new u,function(a){return function(b){return a.mza.Ja(b)}}(a)));if(null!==a){b=a.pa();a=a.Ba();b=b.Ej(Kc());var c=z();return a.la(b,c.s)}throw(new v).d(a);}function kEa(a){if(GL(a))return a=(new ph).e(a.t).ia,Nh(new Oh,ea(rC(wa(),a)),(new N).a());if(BL(a))throw a=a.t,Lb(Mb(),(new Nb).e("Expecting Float literal found URI "+a));throw(new v).d(a);}
function lEa(a,b){if(GL(b)){var c=b.t,e=b.qP;b=!1;var f=null;return x(e)&&(b=!0,f=e,e=f.i,null!==e&&e===a.bB)?(a=(new ph).e(c),Nh(new Oh,HL(a.ia),(new N).a())):b&&(e=f.i,null!==e&&e===a.dB)?(a=(new ph).e(c),c=pC(),Nh(new Oh,qC(c,a.ia,10),(new N).a())):b&&(e=f.i,null!==e&&e===a.dD)?(a=(new ph).e(c).ia,Nh(new Oh,ea(rC(wa(),a)),(new N).a())):b&&(e=f.i,null!==e&&e===a.cB)?(a=(new ph).e(c),c=wa(),Nh(new Oh,rC(c,a.ia),(new N).a())):b&&(e=f.i,null!==e&&e===a.zX)||b&&(b=f.i,null!==b&&b===a.yX)?(a=IL(gE(),
c),Nh(new Oh,(new Ox).wp(a).c(),(new N).a())):Nh(new Oh,c,(new N).a())}if(BL(b))throw a=b.t,Lb(Mb(),(new Nb).e("Expecting String literal found URI "+a));throw(new v).d(b);}function gEa(a,b){var c=mr().nL.Ta(Gc(b.ec().fa()));if(x(c)&&(c=c.i)&&c.$classData&&c.$classData.v.Xc)return t(new u,function(a,b){return function(a){var c=b.Zc();c.ha().Ur(a);return c}}(a,c));a=mr().D_(b);if(x(a))return a.i;throw Lb(Mb(),(new Nb).e("Cannot find builder for node type "+b));}
function mEa(a,b){b=jEa(a,b).Ib(t(new u,function(a){return function(b){return a.gaa.Ta(b).qa()}}(a)));return x(b)?(new A).d(a.gaa.R(b.i)):w()}function nEa(a){if(GL(a)){a=(new ph).e(a.t);var b=wa();return Nh(new Oh,rC(b,a.ia),(new N).a())}if(BL(a))throw a=a.t,Lb(Mb(),(new Nb).e("Expecting Double literal found URI "+a));throw(new v).d(a);}function fEa(a,b){b=AL(b,Gc(Lc().Hb.t));b.b()?a=w():(b=b.c(),b.Fa()?(b=zL(a,b.fa()),a=x(b)?(new A).d(oEa(a,b.i)):w()):a=w());return a.b()?Qc().Td:a.c()}
d.y5=function(){null===this.pD&&this.x5();return this.pD};d.E$=function(a){if(Yl(a)&&ns(a)){this.RH.Ih((new P).N(a.k,a));var b=this.Hx.Ta(a.k);if(x(b))b=b.i;else{if(w()!==b)throw(new v).d(b);b=G()}b.X(t(new u,function(a,b){return function(a){if(ns(a))return Jb(a,b);if(JL(a))return pEa(a,b);throw Lb(Mb(),(new Nb).e("Only linkable elements can be linked"));}}(this,a)));this.Hx.Rl(a.k,G())}else if(qEa(a)){var b=this.cD,c=B(a.ca(),jh().Lj).G,c=c.b()?null:c.c();b.Ih((new P).N(c,a))}};
d.ffa=function(a,b){var c=this.RH.Ta(b);if(x(c))return Jb(a,c.i);if(w()===c){c=this.Hx.Ta(b);if(x(c))var e=c.i;else{if(w()!==c)throw(new v).d(c);e=G()}c=this.Hx;a=H(z(),(new J).aa([a]));var f=z();a=e.la(a,f.s);return c.Ih((new P).N(b,a))}throw(new v).d(c);};
function hEa(a,b,c,e,f,g){if(e.Fa()){var h=e.fa(),k=!1,l=null,p=c.ja;if(lm()===p)p=CL(a,h),x(p)&&(p=p.i,g=FL(a,f,g),Fh(b,c,p,g));else if(Jq(p))p=zL(a,h),x(p)?(p=$Da(a,p.i,!1),x(p)&&(p=p.i,g=FL(a,f,g),Fh(b,c,p,g))):(c=a.m,a=Bc().xN,f=b.k,b="Error parsing RDF graph node, unknown linked node for property "+g+" in node "+b.k,g=w(),p=w(),e=w(),c.Hc(a.k,f,g,b,p,xc().tb,e));else if(Xc().h(p))p=rEa(h),g=FL(a,f,g),Fh(b,c,p,g);else if(Pb().h(p)||Gba().h(p)||KL().h(p))p=sEa(h),g=FL(a,f,g),Fh(b,c,p,g);else if(Yc().h(p))p=
tEa(h),g=FL(a,f,g),Fh(b,c,p,g);else if(Zc().h(p))p=uEa(h),g=FL(a,f,g),Fh(b,c,p,g);else if(bs().h(p))p=kEa(h),g=FL(a,f,g),Fh(b,c,p,g);else if(Ci().h(p))p=nEa(h),g=FL(a,f,g),Fh(b,c,p,g);else if(LL().h(p))p=vEa(h),g=FL(a,f,g),Fh(b,c,p,g);else if(UK().h(p))p=vEa(h),g=FL(a,f,g),Fh(b,c,p,g);else if(ad()===p)p=lEa(a,h),g=FL(a,f,g),Fh(b,c,p,g);else{if(wEa(p)&&(k=!0,l=p,1===e.Ka())){p=xEa(a,l.Se,zL(a,e.fa()));g=FL(a,f,g);jr(b,c,p,g);return}if(k)c=a.m,a=Bc().xN,f=b.k,b="Error, more than one sorted array values found in node for property "+
g+" in node "+b.k,g=w(),p=w(),e=w(),c.Hc(a.k,f,g,b,p,xc().tb,e);else if(Wc(p)){h=p.Se;if(Jq(h))h=Gc(c.t),k=C().Zd,h=t(new u,function(a,b){return function(c){c=zL(a,c);return x(c)?$Da(a,c.i,b).wa():w().wa()}}(a,h===Gc(D(new F,k,"references")))),k=z(),e=e.md(h,k.s);else{if(!Pb().h(h)&&!Xc().h(h))throw(new v).d(h);h=t(new u,function(){return function(a){return rEa(a)}}(a));k=z();e=e.ka(h,k.s)}p=p.Se;nz(p)?(h=Nl().Mc,h=null===c?null===h:c.h(h)):h=!1;g=FL(a,f,g);ir(b,c,e,g)}else throw(new v).d(p);}}}
function tEa(a){if(GL(a))return a=(new ph).e(a.t),Nh(new Oh,HL(a.ia),(new N).a());if(BL(a))throw a=a.t,Lb(Mb(),(new Nb).e("Expecting Boolean literal found URI "+a));throw(new v).d(a);}function yEa(a){Dr();var b=w(),b=Ar(0,"",b,(M(),(new N).a())),c=a.qP;c.b()||(c=c.c(),iia(b,c));Pja(b,a.t,(M(),(new N).a()));return b}
function xEa(a,b,c){var e=H(Wg(),G());c.b()||(c=c.c(),ML(c).X(t(new u,function(a,b,c){return function(a){var e=C().un,e=Gc(D(new F,e,"_"));if(0<=(a.length|0)&&a.substring(0,e.length|0)===e)return Er(b,AL(c,a).c())}}(a,e,c))));c=Wg().s;c=Rf(e,c);for(e=e.Lb;!e.b();){var f=e.fa();if(lm()===b)var g=CL(a,f);else if(Jq(b))g=zL(a,f),g=x(g)?$Da(a,g.i,!1):w();else if(Pb().h(b)||Gba().h(b)||Xc().h(b))try{g=(new A).d(rEa(f))}catch(h){if(g=gi(Mb(),h),hi(g))g=w();else throw h;}else if(Yc().h(b))try{g=(new A).d(tEa(f))}catch(h){if(g=
gi(Mb(),h),hi(g))g=w();else throw h;}else if(Zc().h(b))try{g=(new A).d(uEa(f))}catch(h){if(g=gi(Mb(),h),hi(g))g=w();else throw h;}else if(bs().h(b))try{g=(new A).d(kEa(f))}catch(h){if(g=gi(Mb(),h),hi(g))g=w();else throw h;}else if(Ci().h(b))try{g=(new A).d(nEa(f))}catch(h){if(g=gi(Mb(),h),hi(g))g=w();else throw h;}else if(UK().h(b))try{g=(new A).d(vEa(f))}catch(h){if(g=gi(Mb(),h),hi(g))g=w();else throw h;}else{if(ad()!==b)throw Lb(Mb(),(new Nb).e("Unknown list element type: "+b));try{g=(new A).d(lEa(a,
f))}catch(h){if(g=gi(Mb(),h),hi(g))g=w();else throw h;}}c.Ic(g);e=e.sa()}b=c.lc();a=(new zEa).cba(a);c=Wg().s;return Fr(b,a,c)}
function eEa(a,b,c,e){c=jEa(a,c);e=c.Ib(t(new u,function(a,b){return function(a){var c=YDa(a);a=!1;var e=null;return x(c)&&(a=!0,e=c,c=e.i,!(b||c&&c.$classData&&c.$classData.v.tB||au(c)||sd(c)||AEa(c)))||a&&(a=e.i,b&&(a&&a.$classData&&a.$classData.v.tB||au(a)||sd(a)||AEa(a)))?!0:!1}}(a,e)));e=e.b()?c.Ib(t(new u,function(){return function(a){return YDa(a).qa()}}(a))):e;if(x(e))return YDa(e.i);if(w()===e){e=a.m;var f=Bc().QZ;GDa(e,f,b,"Error parsing JSON-LD node, unknown @types "+c,a.m.Xg);return w()}throw(new v).d(e);
}function uEa(a){if(GL(a)){a=(new ph).e(a.t);var b=pC();return Nh(new Oh,qC(b,a.ia,10),(new N).a())}if(BL(a))throw a=a.t,Lb(Mb(),(new Nb).e("Expecting Int literal found URI "+a));throw(new v).d(a);}function vEa(a){if(GL(a)){a=a.t;a=IL(gE(),a);if(Hp(a))return Nh(new Oh,a.i,(new N).a());if(Ep(a))throw a=a.i,Lb(Mb(),(new Nb).e(a.Dca()));throw(new v).d(a);}if(BL(a))throw a=a.t,Lb(Mb(),(new Nb).e("Expecting Date literal found URI "+a));throw(new v).d(a);}
function zL(a,b){return BL(b)?(b=b.t,a=a.mb,a.b()?w():a.c().sK(b)):w()}function oEa(a,b){var c=Hba();ML(b).X(t(new u,function(a,b,c){return function(h){var k=a.y5().cj(h);k.b()||(k=k.c(),k=Iba(b,k),h=AL(c,h),x(h)&&h.i.X(t(new u,function(a,b){return function(c){c=zL(a,c);if(x(c)){var e=c.i;c=AL(e,Gc(Mc().jr.t)).c().fa();e=AL(e,Gc(Mc().rf.t)).c().fa();b.zf(c.t,e.t)}}}(a,k))))}}(a,c,b)));return c}function rEa(a){return Nh(new Oh,""+a.t,(new N).a())}
function iEa(a,b,c){var e=AL(b,Gc(Lc().Pm().t)),e=(e.b()?G():e.c()).xb(t(new u,function(){return function(a){return BL(a)}}(a))),f=t(new u,function(){return function(a){return a.t}}(a)),g=z(),e=e.ka(f,g.s);b=t(new u,function(a,b){return function(c){var e=AL(b,c);if(e.b())e=w();else{var f=e.c();M();e=(new N).a();e=(new af).P((new Q).a(),e);if(f.Fa()){var g=zL(a,f.fa());if(x(g)){var g=g.i,E=AL(g,Gc(bf().$.t));if(x(E)){var V=E.i;if(V.Fa()&&GL(V.fa())){R();E=bf().$.ja;R();var V=V.fa().t,V=Th(R(),V),E=
Nc(a,E,V),V=a.m,da=qe(),E=L(E,da,V),V=bf().$;Eb(e,V,E)}}g=AL(g,Gc(bf().jr.t));x(g)&&(E=g.i,E.Fa()&&GL(E.fa())&&(R(),g=bf().jr.ja,R(),E=E.fa().t,E=Th(R(),E),g=Nc(a,g,E),E=a.m,V=qe(),g=L(g,V,E),E=bf().$,Eb(e,E,g)));M();g=(new N).a();g=(new Le).P((new Q).a(),g);g.k=c;c=bf().Rf;ff(e,c,g);c=CL(a,f.fa());c.b()||(c=c.c(),Te(e,c.k),f=bf().Zj,ff(e,f,c));c=fEa(a,b);e.E.Ur(FL(a,c,e.k))}}e=(new A).d(e)}return e.wa()}}(a,b));f=z();b=e.md(b,f.s);if(b.Fa())if(e=b.jn(t(new u,function(){return function(a){return BEa(a)}}(a))),
null!==e)b=e.pa(),e=e.Ba(),f=Lc().Pm(),qf(c,f,e),a.p$(c,b);else throw(new v).d(e);}
function CL(a,b){var c=zL(a,b);if(c.b())return w();var c=c.c(),e=fEa(a,c);b=mEa(a,c).c().R(FL(a,e,b.t));if(fm(b))Te(b,c.YC),ML(c).X(t(new u,function(a,b,c){return function(e){if("@type"!==e&&"@id"!==e&&e!==Gc(Lc().Hb.t))var f=C().dc,f=e!==Gc(D(new F,f,"name"));else f=!1;if(f){f=AL(b,e).c().fa();if(GL(f))f=yEa(f);else{var g;a:{if(BL(f)&&(g=zL(a,f),x(g))){g=g.i;var E=C().yi;if(AL(g,Gc(D(new F,E,"first"))).qa()){g=!0;break a}E=C().yi;g=AL(g,Gc(D(new F,E,"rest"))).qa();break a}g=!1}g?f=CEa(a,f):BL(f)?
(f=CL(a,f),f.b()?(xr(),M(),f=(new N).a(),f=(new kA).P((new Q).a(),f)):f=f.c()):(xr(),M(),f=(new N).a(),f=(new kA).P((new Q).a(),f))}return mA(c,e,f,(M(),(new N).a()))}}}(a,c,b)));else if(wj(b))Te(b,c.YC),ML(c).X(t(new u,function(a,b,c){return function(a){var e=AL(b,a).c();if(a===Gc(xj().rf.t)&&GL(e.fa())&&(a=yEa(e.fa()),e=B(a.ea,xj().rf).G,!e.b())){var f=e.c(),e=xj().rf;a=Nh(new Oh,f,B(a.ea,xj().rf).E);ff(c,e,a)}}}(a,c,b)));else if(JL(b))if(Te(b,c.YC),ML(c).X(t(new u,function(a,b,c){return function(a){var e=
AL(b,a).c();a===Gc(vr().Kp.t)&&GL(e.fa())?(a=B(yEa(e.fa()).ea,xj().rf).G,a.b()||(a=a.c(),e=vr().Kp,Eb(c,e,a))):a===Gc(vr().rf.t)&&GL(e.fa())&&(a=B(yEa(e.fa()).ea,xj().rf).G,a.b()||(a=a.c(),e=vr().rf,Eb(c,e,a)))}}(a,c,b))),c=a.RH,e=B(b.ea,vr().Kp).G,c=c.Ta(e.b()?null:e.c()),x(c))pEa(b,c.i);else{c=a.Hx;e=B(b.ea,vr().Kp).G;e=e.b()?null:e.c();c=c.Ta(e);if(x(c))c=c.i;else{if(w()!==c)throw(new v).d(c);c=G()}a=a.Hx;var e=B(b.ea,vr().Kp).G,e=e.b()?null:e.c(),f=H(z(),(new J).aa([b])),g=z(),c=c.la(f,g.s);a.Ih((new P).N(e,
c))}else if(jm(b))Te(b,c.YC),ML(c).X(t(new u,function(a,b,c){return function(e){if(e===Gc(im().du.t)){e=AL(c,e);e=e.b()?G():e.c();var f=t(new u,function(a){return function(b){return CL(a,b).wa()}}(a)),g=z();return DEa(b,e.md(f,g.s))}}}(a,b,c)));else throw Lb(Mb(),(new Nb).e("Cannot parse object data node from non object JSON structure "+b));return(new A).d(b)}
function sEa(a){if(GL(a))return Nh(new Oh,a.t,(new N).a());if(BL(a))throw a=a.t,Lb(Mb(),(new Nb).e("Expecting String literal found URI "+a));throw(new v).d(a);}function CEa(a,b){var c=zL(a,b);if(x(c))var c=c.i,e=fEa(a,c),c=FL(a,e,c.YC);else{if(w()!==c)throw(new v).d(c);M();c=(new N).a()}b=cEa(a,b,G());or();c=(new DL).P((new Q).a(),c);b.X(t(new u,function(a,b){return function(a){return esa(b,a)}}(a,c)));return c}
function FL(a,b,c){b=Sc(a.dh,b,c);a=a.I$;var e=b.jf;Wg();c=Yg(new Zg,(new $g).a());for(e=e.Lb;!e.b();){var f=e.fa();!1!==gia(f)&&ah(c,f);e=e.sa()}Er(a,c.gb);return b}d.$classData=q({hOa:0},!1,"amf.core.rdf.RdfModelParser",{hOa:1,f:1,mQa:1});function NL(){this.ba=null}NL.prototype=new r;NL.prototype.constructor=NL;NL.prototype.a=function(){this.ba="AMF Graph";return this};NL.prototype.te=function(){return this.ba};NL.prototype.$classData=q({oOa:0},!1,"amf.core.remote.Amf$",{oOa:1,f:1,ED:1});
var EEa=void 0;function yt(){EEa||(EEa=(new NL).a());return EEa}function OL(){this.ba=null}OL.prototype=new r;OL.prototype.constructor=OL;OL.prototype.a=function(){this.ba="AML 1.0";return this};OL.prototype.u=function(){return this.ba.trim()};OL.prototype.te=function(){return this.ba};OL.prototype.$classData=q({pOa:0},!1,"amf.core.remote.Aml$",{pOa:1,f:1,ED:1});var FEa=void 0;function Cl(){FEa||(FEa=(new OL).a());return FEa}function PL(){}PL.prototype=new r;PL.prototype.constructor=PL;
PL.prototype.a=function(){return this};PL.prototype.$classData=q({uOa:0},!1,"amf.core.remote.FileMediaType$",{uOa:1,f:1,Yka:1});var GEa=void 0;function Ip(){GEa||(GEa=(new PL).a())}function Gj(a){return ba.encodeURIComponent(a)}
function Uga(a){a=(new bk).e(ba.encodeURI(a));if(!a.zA&&void 0!==a.AA){var b=a.AA;if(void 0===b)throw(new PH).e("undefined.get");var c=kd(ta(),b,"/",-1),e=Di().s.gs(),f=c.j.length;switch(f){case -1:break;default:e.Gh(f)}e.Cf((new FH).vc(c));e=e.lc();Tc(e)?(c=e.fa(),c=null!==c&&pa(c,"")):c=!1;b:{var g=c?e.sa():e,e=G();c:for(;;){var h=!1,f=null;if(ft(g)){var h=!0,f=g,k=f.ve;if("."===f.Aj&&G().h(k)){f=G();e=oz(new pz,"",e);g=f;continue c}}if(h&&(k=f.ve,".."===f.Aj&&G().h(k)&&HEa(e))){f=G();e=e.sa();
e=oz(new pz,"",e);g=f;continue c}if(h&&(k=f.ve,"."===f.Aj)){g=k;continue c}if(h&&(k=f.ve,""===f.Aj&&Tc(k))){g=k;continue c}if(h&&(k=f.ve,".."===f.Aj&&HEa(e))){e=e.sa();g=k;continue c}if(h){e=oz(new pz,f.Aj,e);g=f.ve;continue c}if(G().h(g)){e=mv(e);break b}throw(new v).d(g);}}c?c=oz(new pz,"",e):(Tc(e)?(c=e.fa(),c=(new ph).e(c),c=Vs(c,Dc(58))):c=!1,c=c?oz(new pz,".",e):e);c=IG(c,"","/","");c!==b&&(b=new bk,e=a.BA,e=void 0===e?null:e,f=a.nC,f=void 0===f?null:f,h=a.pC,h=void 0===h?void 0:IEa(QL(),h),
h=void 0===h?null:h,a=a.yA,a=void 0===a?void 0:IEa(QL(),a),a=void 0===a?null:a,bk.prototype.e.call(b,JEa(QL(),e,f,c,h,a)),a=b)}a=a.N1;return 0<=(a.length|0)&&"file://"===a.substring(0,7)||0<=(a.length|0)&&"file:///"===a.substring(0,8)?a:0<=(a.length|0)&&"file:/"===a.substring(0,6)?a.split("file:/").join("file:///"):a}function RL(){this.ba=null}RL.prototype=new r;RL.prototype.constructor=RL;RL.prototype.a=function(){this.ba="JSON Schema";return this};RL.prototype.u=function(){return this.ba.trim()};
RL.prototype.te=function(){return this.ba};RL.prototype.$classData=q({xOa:0},!1,"amf.core.remote.JsonSchema$",{xOa:1,f:1,ED:1});var KEa=void 0;function rca(){KEa||(KEa=(new RL).a());return KEa}function SL(){this.ba=null}SL.prototype=new r;SL.prototype.constructor=SL;SL.prototype.a=function(){this.ba="AMF Payload";return this};SL.prototype.te=function(){return this.ba};SL.prototype.$classData=q({DOa:0},!1,"amf.core.remote.Payload$",{DOa:1,f:1,ED:1});var LEa=void 0;
function ih(){LEa||(LEa=(new SL).a());return LEa}function TL(){}TL.prototype=new r;TL.prototype.constructor=TL;TL.prototype.a=function(){return this};function MEa(){throw Lb(Mb(),(new Nb).e("Unsupported operation"));}TL.prototype.z_=function(){MEa()};TL.prototype.L2=function(){MEa()};TL.prototype.$classData=q({KOa:0},!1,"amf.core.remote.UnsupportedFileSystem$",{KOa:1,f:1,k3a:1});var NEa=void 0;function UL(){Rt.call(this);this.Gj=this.Eb=null}UL.prototype=new St;UL.prototype.constructor=UL;
UL.prototype.vb=function(a){Rt.prototype.vb.call(this,a);this.Eb=(new yz).vt(!1,this.ub);this.Gj=H(z(),(new J).aa([this.Eb]));return this};UL.prototype.VC=function(){return this.Gj};UL.prototype.$classData=q({VOa:0},!1,"amf.core.resolution.pipelines.BasicResolutionPipeline",{VOa:1,bu:1,f:1});function VL(){this.ub=null}VL.prototype=new cu;VL.prototype.constructor=VL;VL.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};VL.prototype.He=function(a){gs(a.ca(),Ap().qc);return a};
VL.prototype.$classData=q({XOa:0},!1,"amf.core.resolution.stages.CleanReferencesStage",{XOa:1,ji:1,f:1});function WL(){this.ub=null}WL.prototype=new cu;WL.prototype.constructor=WL;WL.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};function OEa(a,b){a=b.ak().xb(t(new u,function(){return function(a){return"http://a.ml/vocabularies/security#SecurityScheme"===Gc(a.rc().ec().fa())}}(a)));a.b()?gs(b.ca(),Nl().Mc):(b=kr(b.ca(),Nl().Mc),x(b)&&(b.i.Tb=a))}
WL.prototype.He=function(a){sd(a)&&au(a)&&OEa(this,a);return a};WL.prototype.$classData=q({YOa:0},!1,"amf.core.resolution.stages.DeclarationsRemovalStage",{YOa:1,ji:1,f:1});function XL(){this.Lx=this.ub=null}XL.prototype=new cu;XL.prototype.constructor=XL;function PEa(a,b,c){a.Lx=b;bu.prototype.vb.call(a,c);return a}XL.prototype.Hfa=function(a){qEa(a)&&gs(a.ca(),jh().Lj);return(new A).d(a)};
XL.prototype.He=function(a){var b=QEa(this.Lx);REa||(REa=(new YL).a());return a.Lm(SEa(b,REa),qd(function(a){return function(b,f){return a.Hfa(b,!!f)}}(this)),this.ub)};XL.prototype.$classData=q({ZOa:0},!1,"amf.core.resolution.stages.ExternalSourceRemovalStage",{ZOa:1,ji:1,f:1});function ZL(){this.ub=null;this.jm=!1;this.Iu=this.Lx=null}ZL.prototype=new cu;ZL.prototype.constructor=ZL;ZL.prototype.Hfa=function(a){return JL(a)?Sja(Wja(),a,this.Iu,this.jm):(new A).d(a)};
ZL.prototype.He=function(a){this.Iu=(new A).d((new $t).BK(a));var b=QEa(this.Lx),c=TEa(),b=SEa(b,c),c=UEa();return a.Lm(SEa(b,c),qd(function(a){return function(b,c){return a.Hfa(b,!!c)}}(this)),this.ub)};ZL.prototype.$classData=q({$Oa:0},!1,"amf.core.resolution.stages.LinkNodeResolutionStage",{$Oa:1,ji:1,f:1});function $L(){this.i_=this.XP=this.j9=this.ub=null}$L.prototype=new cu;$L.prototype.constructor=$L;
$L.prototype.vb=function(a){bu.prototype.vb.call(this,a);a=new aM;if(null===this.j9&&null===this.j9){var b=new bM;if(null===this)throw Lb(Mb(),null);b.Pa=this;this.j9=b}this.XP=VEa(a,this,pc(Os(),G()));this.i_="amf://id";return this};
function WEa(a,b,c){if(Kb(b)){if(XEa(a.XP,b.k)!==b.k){b.Uc(XEa(a.XP,b.k));var e=b.ca().Pb,f=zx(),f=Va(f),g=Ce().s;De(e,f,g).X(t(new u,function(a,b){return function(c){if(null!==c){var e=c.xc,f=c.t;if(null!==f){var g=Db().ef;if(null===e?null===g:e.h(g)){c=f.t;if(Kb(c))return c.Uc(XEa(a.XP,c.k));return}}}if(null!==c&&(f=c.xc,e=c.t,null!==e&&(f=f.ja,g=Xc(),null!==f&&f.h(g)))){YEa(a,e.E);c=e.t.u();b.Cd(t(new u,function(a,b){return function(a){return 0<=(b.length|0)&&b.substring(0,a.length|0)===a}}(a,
c)))&&(e.t=Nh(new Oh,XEa(a.XP,c),e.t.ha()));return}if(null!==c&&(e=c.t,null!==e)){WEa(a,e.t,b);YEa(a,e.E);return}throw(new v).d(c);}}(a,c)))}}else es(b)&&b.Tb.X(t(new u,function(a,b){return function(c){WEa(a,c,b)}}(a,c)));YEa(a,b.ha())}function YEa(a,b){for(var c=b.jf,e=Wg().s,e=Rf(c,e),c=c.Lb;!c.b();){var f=c.fa();e.Ic(f&&f.$classData&&f.$classData.v.dJ?f.cM(t(new u,function(a){return function(b){return XEa(a.XP,b)}}(a))):f);c=c.sa()}b.jf=e.lc()}
$L.prototype.He=function(a){var b=[a.k];if(0===(b.length|0))b=Yd();else{for(var c=Zd(new ee,Yd()),e=0,f=b.length|0;e<f;)fe(c,b[e]),e=1+e|0;b=c.gb}c=a.Pe();e=t(new u,function(){return function(a){return a.k}}(this));f=z();b=b.vk(c.ka(e,f.s));WEa(this,a,b);return Te(a,this.i_)};$L.prototype.$classData=q({cPa:0},!1,"amf.core.resolution.stages.UrlShortenerStage",{cPa:1,ji:1,f:1});function cM(){this.$N=null;this.jm=!1;this.$ya=this.BG=this.Iu=null}cM.prototype=new Yja;cM.prototype.constructor=cM;
function ZEa(a,b,c){if(eC(b)){var e=!1,f=null,g=B(b.ca(),b.Ch()).G;a:{if(x(g)&&(e=!0,f=g,Yh(b.ha(),n(dM)))){$Ea(a,b,c);break a}b:{if(x(g)){var h=g.i;if("schema"===h||"type"===h||"body"===h){g=!0;break b}}g=w()===g?!0:!1}g&&yb(b).qa()?$Ea(a,b,c):e&&(a=f.i,b=B(c.ca(),c.Ch()).E,Ue(c,a,b))}}}
cM.prototype.NGa=function(a){if(ns(a)&&yb(a).qa()){if(this.$N.Ja(yb(a).c().k))return(new A).d(this.$N.R(yb(a).c().k));var b=a.Up(a.Mq());if(null!==b&&this.$N.Ja(b.k))b=this.$N.R(b.k);else if(ns(b)&&Yh(a.ha(),n(Zt))){var c=b.ha(),c=zj(M(),c),e=c.jf;Wg();for(var f=Yg(new Zg,(new $g).a()),e=e.Lb;!e.b();){var g=e.fa();!1!==!(g&&g.$classData&&g.$classData.v.d7)&&ah(f,g);e=e.sa()}c.jf=f.gb;b=qDa(b,c).Uc(a.k);eC(a)&&B(a.ca(),a.Ch()).G.qa()&&(c=B(a.ca(),a.Ch()).G,c=c.b()?null:c.c(),f=B(a.ca(),a.Ch()).E,Ue(b,
c,f))}else if(null!==b){c=Zb(a.ha(),n(lB));if(!c.b())if(f=c.c(),null!==f){c=f.Fs;e=Zb(b.ha(),n(lB));e.b()?c=f:(f=e.c(),c=(new nB).Qj(c.vk(f.Fs)));f=b.ha();g=f.jf;Wg();e=Yg(new Zg,(new $g).a());for(g=g.Lb;!g.b();){var h=g.fa();!1!==!mB(h)&&ah(e,h);g=g.sa()}f.jf=e.gb;ac(b,c)}else throw(new v).d(f);Yh(a.ha(),n(dM))&&!Yh(b.ha(),n(Zt))&&(c=(new Zx).a(),ac(b,c))}else throw(new v).d(b);c=b;M();b=(new N).a();b=(new Ig).P((new Q).a(),b);vj(b.g,Nl().ob,c,(M(),(new N).a()));c=new ZL;f=H(xz(),G());e=this.BG;
c.jm=this.jm;c.Lx=f;bu.prototype.vb.call(c,e);c.Iu=w();b=c.He(b).ze();ns(b)&&(c=B(a.ca(),Db().Je).G,c.b()?0:c.c())&&(c=Db().Je,dj(b,c,!0));b=this.$ya.zf(aFa(this,b,a),a);b.ha().Wb((new Yt).a());this.jm&&(b.ha().Wb((new Wt).e(a.k)),c=yb(a),c.b()||(c=c.c(),(new A).d(b.ha().Wb((new Xt).e(c.k)))));c=H(xz(),G());a:for(;;){if(!c.Ja(a.k)&&(c.Om(a.k),f=a,ns(f)&&yb(f).qa())){e=b;for(g=a.ha().jf.Lb;!g.b();)(h=g.fa())&&h.$classData&&h.$classData.v.e7&&!Yh(e.ha(),ka(h))&&e.ha().Wb(h),g=g.sa();Yh(a.ha(),n(Zt))&&
this.$N.Oe(a.k,b);a=yb(f).c();continue a}break}return(new A).d(b)}return JL(a)?Sja(Wja(),a,this.Iu,this.jm):w()};
function aFa(a,b,c){if(eC(b)){var e=b.rc().ec(),e=Ps(e),f=C().Zd;e.Ja(D(new F,f,"Example"))?eC(c)&&B(c.ca(),c.Ch()).G.qa()&&(a=B(c.ca(),c.Ch()).G,a=a.b()?null:a.c(),e=B(b.ca(),b.Ch()).E,Ue(b,a,e)):(B(b.ca(),b.Ch()).G.b()?e=!0:(e=B(b.ca(),b.Ch()).G,e="schema"===(e.b()?null:e.c())),e?e=!0:(e=B(b.ca(),b.Ch()).G,e="type"===(e.b()?null:e.c())),e?e=!0:(e=B(b.ca(),b.Ch()).G,e="body"===(e.b()?null:e.c())),(e||Yh(b.ha(),n(dM)))&&ns(c)&&ZEa(a,c,b))}a:{if(eC(c)&&(a=B(c.ca(),c.Ch()),!eM(a))){a=Zb(b.ha(),n(Vra));
var e=a.b()?(new fM).fo(pc(qc(),G())):a.c(),f=e.xF,g=B(c.ca(),c.Ch()).G,g=g.b()?null:g.c(),f=f.Ta(g);if(x(f))f=f.i;else{if(w()!==f)throw(new v).d(f);f=G()}var g=e.xF,h=B(c.ca(),c.Ch()).G,h=h.b()?null:h.c();c=H(z(),(new J).aa([c]));var k=z();g.Oe(h,f.la(c,k.s));a.b()?b.ha().Wb(e):void 0;break a}if(ns(c)&&eC(c)&&B(c.ca(),Db().wd).G.qa()){a=Zb(b.ha(),n(Vra));e=a.b()?(new fM).fo(pc(qc(),G())):a.c();f=e.xF;g=B(c.ca(),Db().wd).G;g=g.b()?null:g.c();f=f.Ta(g);if(x(f))f=f.i;else{if(w()!==f)throw(new v).d(f);
f=G()}g=e.xF;h=B(c.ca(),Db().wd).G;h=h.b()?null:h.c();c=H(z(),(new J).aa([c]));k=z();g.Oe(h,f.la(c,k.s));a.b()?b.ha().Wb(e):void 0}}return b}function $Ea(a,b,c){b=yb(b);x(b)&&(b=b.i,ns(b)&&ZEa(a,b,c))}cM.prototype.$classData=q({fPa:0},!1,"amf.core.resolution.stages.elements.resolution.ReferenceResolution",{fPa:1,ePa:1,f:1});function gM(){this.Ke=0}gM.prototype=new r;gM.prototype.constructor=gM;gM.prototype.a=function(){this.Ke=-1;return this};gM.prototype.Bca=function(){return!1};
gM.prototype.$classData=q({mPa:0},!1,"amf.core.services.IgnoreValidationsMerger$",{mPa:1,f:1,sPa:1});var bFa=void 0;function Nra(){bFa||(bFa=(new gM).a());return bFa}function Mz(){}Mz.prototype=new r;Mz.prototype.constructor=Mz;Mz.prototype.a=function(){return this};Mz.prototype.PBa=function(a){return(new hM).SK(a)};Mz.prototype.$classData=q({uPa:0},!1,"amf.core.traversal.iterator.AmfElementStrategy$",{uPa:1,f:1,yPa:1});var Opa=void 0;function iM(){}iM.prototype=new r;iM.prototype.constructor=iM;
iM.prototype.a=function(){return this};iM.prototype.PBa=function(a){return(new jM).SK(a)};iM.prototype.$classData=q({xPa:0},!1,"amf.core.traversal.iterator.DomainElementStrategy$",{xPa:1,f:1,yPa:1});var cFa=void 0;function cA(){cFa||(cFa=(new iM).a());return cFa}function Cf(){this.na=this.zd=null}Cf.prototype=new r;Cf.prototype.constructor=Cf;function Hv(a){return"x-amf-"+a.zd}function dFa(a){a=a.zd;return 3>kd(ta(),a,"\\.",0).j.length}
function eFa(a){var b;a=a.zd;try{Zf();var c=ba.decodeURIComponent(a);b=(new ag).d(c)}catch(e){if(null!==gi(Mb(),e))Zf(),b=(new $f).d(a);else throw e;}if(Hp(b)||Ep(b))return b.i;throw(new v).d(b);}
function Gia(a){if(null===a.zd)var b=!0;else{b=a.zd;if(null===b)throw(new Rg).a();b=""===b}if(b)return"";b=a.zd;0<=(b.length|0)&&"http:"===b.substring(0,5)?b=!0:(b=a.zd,b=0<=(b.length|0)&&"https:"===b.substring(0,6));b?b=!0:(b=a.zd,b=0<=(b.length|0)&&"file:"===b.substring(0,5));if(b)return a.zd;b=a.zd;return 0<=(b.length|0)&&"/"===b.substring(0,1)?"file:/"+a.zd:"file://"+a.zd}function Kh(a){return"(amf-"+a.zd+")"}
Cf.prototype.Nu=function(){var a=this.zd;if(null===a)throw(new Rg).a();return""===a?w():Wa().Ia(this.zd)};Cf.prototype.e=function(a){this.zd=a;this.na=ju().na;return this};Cf.prototype.$classData=q({KPa:0},!1,"amf.core.utils.package$Strings",{KPa:1,f:1,Fb:1});function kM(){this.na=null}kM.prototype=new r;kM.prototype.constructor=kM;function mea(a,b){a=lM();b=Uaa(kb().nm,b,(kb(),bb()));var c=fFa();return tm(a,b,c).sb()}kM.prototype.a=function(){gFa=this;this.na=ju().na;return this};
kM.prototype.GQ=function(){this.tW()};kM.prototype.C3=function(a){return mea(0,a)};kM.prototype.tW=function(){Oqa||(Oqa=(new wA).a());Oqa.JP(this.na);Kk();var a=kb();pb(qb(),a)};
kM.prototype.registerDialect=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:return this.C3(a);case 2:return b=e[0],c=e[1],e=lM(),b=hFa(kb().nm,a,b,c.p),c=fFa(),tm(e,b,c).sb();case 1:if(Lo(e[0]))return b=e[0],e=lM(),b=hFa(kb().nm,a,b,bb()),c=fFa(),tm(e,b,c).sb();if(iFa(e[0]))return b=e[0],e=lM(),b=Uaa(kb().nm,a,b.p),c=fFa(),tm(e,b,c).sb();throw"No matching overload";default:throw"No matching overload";}};kM.prototype.register=function(){return this.GQ()};
kM.prototype.$classData=q({YPa:0},!1,"amf.plugins.document.Vocabularies$",{YPa:1,f:1,Fb:1});var gFa=void 0;function yea(){gFa||(gFa=(new kM).a());return gFa}function mM(){this.na=null}mM.prototype=new r;mM.prototype.constructor=mM;mM.prototype.a=function(){jFa=this;this.na=ju().na;return this};mM.prototype.GQ=function(){this.tW()};
mM.prototype.tW=function(){Yaa().JP(this.na);Kk();var a=kFa();pb(qb(),a);Kk();a=ufa();pb(qb(),a);Kk();a=$aa();pb(qb(),a);Kk();a=aba();pb(qb(),a);Kk();a=Zaa();pb(qb(),a);Kk();a=rb();pb(qb(),a);Kk();a=IK();pb(qb(),a);Kk();a=lFa();pb(qb(),a)};mM.prototype.register=function(){return this.GQ()};mM.prototype.$classData=q({ZPa:0},!1,"amf.plugins.document.WebApi$",{ZPa:1,f:1,Fb:1});var jFa=void 0;function Aea(){jFa||(jFa=(new mM).a());return jFa}function ev(){this.qh=this.m=this.fc=this.r=null}
ev.prototype=new r;ev.prototype.constructor=ev;ev.prototype.mea=function(a){var b=Dd(a.ca(),Ug().Mc);if(b.b())var c=w();else c=b.c(),c=(new A).d(c.t.t.Tb);c=c.b()?G():c.c();Yi(this.m.Bi,c);gs(a.ca(),Ug().Mc);this.r.tca(t(new u,function(a,b,c){return function(h){h.Gr(t(new u,function(a,b,c){return function(e){mFa(a,b,e);nFa(a,e,b.k,Vha(Qc(),b.k,b));if(!c.b()){var f=c.c();vj(b.ca(),Ug().Mc,f.t.t,(M(),(new N).a()))}Nka(a.m,e)}}(a,b,c)))}}(this,a,b)))};
function oFa(a,b,c){var e=a.qh.Ta(c.k);if(x(e))b.l5(e.i);else if(w()===e)b=b.Gr(t(new u,function(a,b){return function(c){mFa(a,b,c)}}(a,c))),b.b()||(b=b.c(),a.qh.Oe(c.k,b));else throw(new v).d(e);}
function pFa(a,b,c,e,f){Tc(f.ZB)&&(c.f2?e.Am("smaps",t(new u,function(a,b){return function(c){c.Gr(t(new u,function(a,b){return function(c){nM(a,c,b.ZB)}}(a,b)))}}(a,f))):e.Am(av(a.m,Gc(Lc().Hb.t)),t(new u,function(a,b,c){return function(e){e.xs(t(new u,function(a,b,c){return function(e){e.Gr(t(new u,function(a,b,c){return function(e){qFa(a,e,b);rFa(a,e,Mc(),w());nM(a,e,c.ZB)}}(a,b,c)))}}(a,b,c)))}}(a,b,f))))}
function sFa(a,b,c){var e=yb(c),f=yb(c);if(!f.b()){var f=f.c(),g=Db().kg;Eb(c,g,f.k);gs(c.ca(),Db().ef)}b.Gr(t(new u,function(a,b){return function(c){mFa(a,b,c)}}(a,c)));e.b()||(a=e.c(),vj(c.ca(),Db().ef,a,(M(),(new N).a())))}
function tFa(a,b,c,e){a.fc.NS&&Tc(c.E)?a.fc.f2?e.Am("smaps",t(new u,function(a,b){return function(c){c.Gr(t(new u,function(a,b){return function(c){nM(a,c,b.E);nM(a,c,b.ZB)}}(a,b)))}}(a,c))):e.Am(av(a.m,Gc(Lc().Hb.t)),t(new u,function(a,b,c){return function(e){e.xs(t(new u,function(a,b,c){return function(e){e.Gr(t(new u,function(a,b,c){return function(e){qFa(a,e,b);rFa(a,e,Mc(),w());nM(a,e,c.E);nM(a,e,c.ZB)}}(a,b,c)))}}(a,b,c)))}}(a,b,c))):pFa(a,b,a.fc,e,c)}
function rFa(a,b,c){b.Am("@type",t(new u,function(a,b){return function(c){c.xs(t(new u,function(a,b){return function(c){var e=b.ec(),f=function(){return function(a){return Gc(a)}}(a),g=Di().s;if(g===Di().s)if(e===G())f=G();else{for(var g=e.fa(),E=g=oz(new pz,f(g),G()),e=e.sa();e!==G();)var V=e.fa(),V=oz(new pz,f(V),G()),E=E.ve=V,e=e.sa();f=g}else{for(g=Rf(e,g);!e.b();)E=e.fa(),g.Ic(f(E)),e=e.sa();f=g.lc()}for(f=oM(f);!f.b();)e=f.fa(),e=av(a.m,e),c.$s(e),f=f.sa()}}(a,b)))}}(a,c)))}
function pM(a,b,c,e){e?uFa(a,b,c):b.xs(t(new u,function(a,b){return function(c){uFa(a,c,b)}}(a,c)))}
function nM(a,b,c){for(c=Uc(c.tf);c.Qa();){var e=c.Sa();if(null!==e){var f=e.pa(),e=e.Ba();if(a.m.fc.f2)b.Am(f,t(new u,function(a,b){return function(c){c.Gr(t(new u,function(a,b){return function(c){for(var e=Uc(b.tf);e.Qa();){var f=e.Sa();if(null!==f){var g=f.pa(),f=f.Ba();c.Am(Pka(a.m,av(a.m,g)),t(new u,function(a,b){return function(a){a.$s(b)}}(a,f)))}else throw(new v).d(f);}}}(a,b)))}}(a,e)));else{var g=a.m,h=C().HB;b.Am(av(g,Gc(D(new F,h,f))),t(new u,function(a,b){return function(c){c.xs(t(new u,
function(a,b){return function(c){for(var e=Uc(b.tf);e.Qa();){var f=e.Sa();vFa(a,c,f)}}}(a,b)))}}(a,e)))}}else throw(new v).d(e);}}function wFa(a,b,c){var e=yE();b.xs(t(new u,function(a,b,c){return function(e){qM(a,e,b,c)}}(a,c,e)))}
function xFa(a,b,c,e,f,g){rFa(a,g,f,(new A).d(c));var h;if(qEa(c)&&Dd(c.ca(),jh().Lj).qa()){var k=f.sc();Di();for(h=(new $g).a();!k.b();){var l=k.fa(),p=l,y=jh().Sd;!1!==!(null===p?null===y:p.h(y))&&vh(h,l);k=k.sa()}h=h.wa()}else h=f.sc();uz(f)?(f=z(),k=[$w(),lA()],f=H(f,(new J).aa(k))):f=G();k=Di();f=h.la(f,k.s);fm(c)&&a.fc.p3&&(h=C().BR.he+"/properties",g.Am(h,t(new u,function(a,b){return function(c){var e=Zc(),f=Nh(new Oh,sr(b).lb(),(new N).a());M();var g=(new N).a(),f=Ph(new Qh,f,g),g=function(){return function(){}}(a);
if(Xc().h(e))pM(a,c,f.t.u(),!1),g(f);else if(yFa().h(e))zFa(a,c,f.t.u(),!1),g(f);else if(KL().h(e))rM(a,c,f.t.u(),qi().ir,!1),g(f);else if(Pb().h(e))sM(a,c,f.t,yE()),g(f);else if(Yc().h(e))sM(a,c,f.t,tM()),g(f);else if(Zc().h(e))sM(a,c,f.t,uM()),g(f);else if(Ci().h(e))sM(a,c,f.t,vM()),g(f);else if(bs().h(e))sM(a,c,f.t,vM()),g(f);else if(LL().h(e))rM(a,c,Nu(Ru(f.t.t)),qi().Xl,!1),g(f);else if(UK().h(e)){e=f.t.t;e=wM(e)?(new A).d(e):IL(gE(),ja(e)).Mk();if(x(e)){var h=e.i;if(h.Ex.qa()||h.Mx.qa())rM(a,
c,Nu(Ru(h)),qi().Xl,!1);else{var e=h.ez,k=h.Hy,h=h.my,l=(new ph).e("%04d-%02d-%02d"),h=[e,k,h];ta();e=l.ia;z();Dl();for(var k=[],l=0,p=h.length|0;l<p;)k.push(Ou(h[l])),l=1+l|0;Pu();for(var h=k.length|0,h=ia(La(Ja),[h]),y=h.j.length,p=l=0,bc=k.length|0,y=bc<y?bc:y,bc=h.j.length,y=y<bc?y:bc;l<y;)h.j[p]=k[l],l=1+l|0,p=1+p|0;rM(a,c,Qu(e,h),qi().uq,!1)}}else sM(a,c,f.t,yE());g(f)}else if(ad()===e&&sj(f.t))f=f.t.t,"boolean"===typeof f?rM(a,c,""+!!f,qi().Xj,!0):Da(f)?rM(a,c,""+(f|0),qi().hj,!0):ma(f)?rM(a,
c,""+ +f,qi().rg,!0):"number"===typeof f?rM(a,c,""+ +f,qi().vi,!0):wM(f)?AFa(a,c,f,!0):qM(a,c,ja(f),yE());else throw(new v).d(e);}}(a,c,b))));for(;!f.b();)h=f.fa(),BFa(a,h,c,b,e,g),f=f.sa()}function zFa(a,b,c,e){e?CFa(a,b,c):b.xs(t(new u,function(a,b){return function(c){CFa(a,c,b)}}(a,c)))}
function DFa(a,b,c,e,f){b.Am(c,t(new u,function(a,b,c){return function(e){e.Gr(t(new u,function(a,b,c){return function(e){e.Am(av(a.m,Gc(bf().$.t)),t(new u,function(a,b){return function(c){var e=B(b.g,bf().$).G,e=e.b()?null:e.c();wFa(a,c,e)}}(a,b)));if(!c.b()){var f=c.c();e.Am(av(a.m,Gc(bf().jr.t)),t(new u,function(a,b){return function(c){wFa(a,c,Gc(b.t))}}(a,f)))}mFa(a,B(b.g,bf().Zj),e)}}(a,b,c)))}}(a,e,f)))}
function EFa(a,b,c,e){e?oFa(a,b,c):b.xs(t(new u,function(a,b){return function(c){oFa(a,c,b)}}(a,c)))}function rM(a,b,c,e,f){f?FFa(a,b,c,e):b.xs(t(new u,function(a,b,c){return function(e){FFa(a,e,b,c)}}(a,c,e)))}
function GFa(a,b,c){if(!a.m.Bi.Ja(b)){HFa(a.m.Bi,b);var e=B(b.ca(),Pg().$).G;e=x(e)&&"schema"===e.i?!0:x(e)&&"type"===e.i?!0:w()===e?!0:!1;if(e){e=a.m.Ifa.os("amf_inline_type");M();var f=(new N).a();Ue(b,e,f).ha().Wb((new xM).a())}else Yh(b.ha(),n(Zt))||(e=a.m.Ifa.os("amf_inline_type"),M(),f=(new N).a(),Ue(b,e,f).ha().Wb((new xM).a()))}no(b)?(e=(new Q).a(),M(),f=(new N).a(),e=(new bj).P(e,f),e=Te(e,b.k+"/linked"),e=Jb(e,b),b=B(b.ca(),Pg().$).G,b=b.b()?null:b.c(),f=Db().wd,b=Eb(e,f,b)):(e=B(b.ca(),
Pg().$).G,b=b.gk(e.b()?null:e.c(),(M(),(new N).a())));IFa(a,c,b,!1)}
function JFa(a,b,c,e,f,g,h){b.xs(t(new u,function(a,b,c,e,f,g){return function(h){h.Gr(t(new u,function(a,b,c,e,f,g){return function(h){qFa(a,h,b+"/list");var k=a.m,l=C().un;Oka(h,"@type",av(k,Gc(D(new F,l,"Seq"))));k=z();c.cg(k.s).X(t(new u,function(a,b,c){return function(e){if(null!==e){var f=e.pa();e=e.si();var g=a.m,h=C().un;b.Am(av(g,Gc(D(new F,h,"_"+(1+e|0)))),t(new u,function(a,b,c){return function(e){e.xs(t(new u,function(a,b,c){return function(e){if(Jq(b))if(Yl(c)&&ns(c)&&yb(c).qa())IFa(a,
e,c,!0);else if(Kb(c))EFa(a,e,c,!0);else throw(new v).d(c);else if(Pb().h(b)){var f=yE();qM(a,e,ja(c.t),f)}else if(yFa().h(b))zFa(a,e,c.u(),!0);else if(Xc().h(b))pM(a,e,c.u(),!0);else if(ad()===b)f=c.t,"boolean"===typeof f?rM(a,e,""+!!f,qi().Xj,!0):Lo(f)?rM(a,e,f,qi().Mj,!0):Da(f)?rM(a,e,""+(f|0),qi().hj,!0):ma(f)?rM(a,e,""+ +f,qi().rg,!0):"number"===typeof f?rM(a,e,""+ +f,qi().vi,!0):qM(a,e,ja(f),yE());else throw(new v).d(b);}}(a,b,c)))}}(a,c,f)))}else throw(new v).d(e);}}(a,h,e)));f.b()||g.R(f.c())}}(a,
b,c,e,f,g)))}}(a,e,c,f,h,g)))}function qFa(a,b,c){b.Am("@id",t(new u,function(a,b){return function(c){var h=Pka(a.m,b);c.$s(h)}}(a,c)))}
function KFa(a,b,c,e,f,g){if(uz(b)&&Yh(c.t.ha(),n(LFa))&&(a.m.ny?a.m.ny&&a.m.Bi.Ja(c.t)&&Kka(a.m,e):1))GFa(a,c.t,g);else if(Yl(b)&&ns(b)&&yb(b).qa())IFa(a,g,b,!1),f.R(c);else if(Jq(b))EFa(a,g,c.t,!1),f.R(c);else if(Xc().h(b))pM(a,g,c.t.u(),!1),f.R(c);else if(yFa().h(b))zFa(a,g,c.t.u(),!1),f.R(c);else if(KL().h(b))rM(a,g,c.t.u(),qi().ir,!1),f.R(c);else if(Pb().h(b))sM(a,g,c.t,yE()),f.R(c);else if(Yc().h(b))sM(a,g,c.t,tM()),f.R(c);else if(Zc().h(b))sM(a,g,c.t,uM()),f.R(c);else if(Ci().h(b))sM(a,g,c.t,
vM()),f.R(c);else if(bs().h(b))sM(a,g,c.t,vM()),f.R(c);else if(LL().h(b))rM(a,g,Nu(Ru(c.t.t)),qi().Xl,!1),f.R(c);else if(UK().h(b)){b=c.t.t;b=wM(b)?(new A).d(b):IL(gE(),ja(b)).Mk();if(x(b)){var h=b.i;if(h.Ex.qa()||h.Mx.qa())rM(a,g,Nu(Ru(h)),qi().Xl,!1);else{b=h.ez;e=h.Hy;var h=h.my,k=(new ph).e("%04d-%02d-%02d"),h=[b,e,h];ta();b=k.ia;z();Dl();e=[];for(var k=0,l=h.length|0;k<l;)e.push(Ou(h[k])),k=1+k|0;Pu();for(var h=e.length|0,h=ia(La(Ja),[h]),p=h.j.length,l=k=0,y=e.length|0,p=y<p?y:p,y=h.j.length,
p=p<y?p:y;k<p;)h.j[l]=e[k],k=1+k|0,l=1+l|0;rM(a,g,Qu(b,h),qi().uq,!1)}}else sM(a,g,c.t,yE());f.R(c)}else if(wEa(b))JFa(a,g,c.t.Tb,e,b.Se,f,(new A).d(c));else if(Wc(b))g.xs(t(new u,function(a,b,c,e,f){return function(g){var h=b.t;c.R(b);var k=e.Se;Jq(k)?h.Tb.X(t(new u,function(a,b,c){return function(e){os(e)&&Yh(e.ha(),n(LFa))&&(a.m.ny?a.m.ny&&a.m.Bi.Ja(e)&&Kka(a.m,b):1)?GFa(a,e,c):Yl(e)&&ns(e)&&yb(e).qa()?IFa(a,c,e,!0):EFa(a,c,e,!0)}}(a,f,g))):Pb().h(k)?h.Tb.X(t(new u,function(a,b){return function(c){c=
c.u();qM(a,b,c,yE())}}(a,g))):yFa().h(k)?h.Tb.X(t(new u,function(a,b){return function(c){zFa(a,b,c.u(),!0)}}(a,g))):Xc().h(k)?h.Tb.X(t(new u,function(a,b){return function(c){pM(a,b,c.u(),!0)}}(a,g))):KL().h(k)?rM(a,g,b.t.u(),qi().ir,!0):Zc().h(k)?h.Tb.X(t(new u,function(a,b){return function(c){qM(a,b,ja(c.t),uM())}}(a,g))):bs().h(k)?h.Tb.X(t(new u,function(a,b){return function(c){qM(a,b,ja(c.t),vM())}}(a,g))):Yc().h(k)?h.Tb.X(t(new u,function(a,b){return function(c){qM(a,b,ja(c.t),tM())}}(a,g))):
LL().h(k)?h.Tb.X(t(new u,function(a,b){return function(c){rM(a,b,Nu(Ru(c.t)),qi().Xl,!1)}}(a,g))):UK().h(k)?h.Tb.X(t(new u,function(a,b){return function(c){AFa(a,b,c.t,!1)}}(a,g))):ad()===k?h.Tb.X(t(new u,function(a,b){return function(c){c=c.t;"boolean"===typeof c?rM(a,b,""+!!c,qi().Xj,!0):Da(c)?rM(a,b,""+(c|0),qi().hj,!0):ma(c)?rM(a,b,""+ +c,qi().rg,!0):"number"===typeof c?rM(a,b,""+ +c,qi().vi,!0):wM(c)?AFa(a,b,c,!0):qM(a,b,ja(c),yE())}}(a,g))):h.Tb.X(t(new u,function(a,b){return function(c){pM(a,
b,c.u(),!0)}}(a,g)))}}(a,c,f,b,e)));else if(ad()===b&&sj(c.t))c=c.t.t,"boolean"===typeof c?rM(a,g,""+!!c,qi().Xj,!0):Da(c)?rM(a,g,""+(c|0),qi().hj,!0):ma(c)?rM(a,g,""+ +c,qi().rg,!0):"number"===typeof c?rM(a,g,""+ +c,qi().vi,!0):wM(c)?AFa(a,g,c,!0):qM(a,g,ja(c),yE());else throw(new v).d(b);}function CFa(a,b,c){b.Gr(t(new u,function(a,b){return function(c){c.Am("@id",t(new u,function(a,b){return function(c){var e=Pka(a.m,b);c.$s(e)}}(a,b)))}}(a,c)))}
function FFa(a,b,c,e){b.Gr(t(new u,function(a,b,c){return function(e){e.Am("@value",t(new u,function(a,b){return function(a){a.$s(b)}}(a,b)));e.Am("@type",t(new u,function(a,b){return function(c){var e=av(a.m,b);c.$s(e)}}(a,c)))}}(a,c,e)))}
function vFa(a,b,c){if(null!==c){var e=c.pa();c=c.Ba();b.Gr(t(new u,function(a,b,c){return function(e){e.Am(av(a.m,Gc(Mc().jr.t)),t(new u,function(a,b){return function(c){wFa(a,c,b)}}(a,b)));e.Am(av(a.m,Gc(Mc().rf.t)),t(new u,function(a,b){return function(c){wFa(a,c,b)}}(a,c)))}}(a,e,c)))}else throw(new v).d(c);}function sM(a,b,c,e){b.xs(t(new u,function(a,b,c){return function(e){qM(a,e,ja(b.t),c)}}(a,c,e)))}
function BFa(a,b,c,e,f,g){b=b.jV?Dd(c.ca(),b):w();a:{if(x(b)&&(c=b.i,null!==c)){b=c.xc;c=c.t;var h=av(a.m,Gc(b.t));g.Am(h,t(new u,function(a,b,c,e,f,g){return function(h){KFa(a,b.ja,c,e,t(new u,function(a,b,c){return function(a){Qha(b,c,a)}}(a,f,g)),h)}}(a,b,c,e,f,h)));break a}if(w()!==b)throw(new v).d(b);}}
function AFa(a,b,c,e){if(c.Ex.qa()||c.Mx.qa())rM(a,b,Nu(Ru(c)),qi().Xl,e);else{e=c.ez;var f=c.Hy;c=c.my;var g=(new ph).e("%04d-%02d-%02d");c=[e,f,c];ta();e=g.ia;z();Dl();for(var f=[],g=0,h=c.length|0;g<h;)f.push(Ou(c[g])),g=1+g|0;Pu();c=f.length|0;c=ia(La(Ja),[c]);for(var k=c.j.length,h=g=0,l=f.length|0,k=l<k?l:k,l=c.j.length,k=k<l?k:l;g<k;)c.j[h]=f[g],g=1+g|0,h=1+h|0;rM(a,b,Qu(e,c),qi().uq,!1)}}function IFa(a,b,c,e){e?sFa(a,b,c):b.xs(t(new u,function(a,b){return function(c){sFa(a,c,b)}}(a,c)))}
function mFa(a,b,c){var e=b.k;qFa(a,c,e);var f=Vha(Qc(),e,b),g=eba(b);xFa(a,e,b,f,g,c);MFa(a,b,c);b=re(ta(),e,"/")?e+"source-map":-1!==(e.indexOf("#")|0)||0<=(e.length|0)&&"null"===e.substring(0,4)?e+"/source-map":e+"#/source-map";tFa(a,b,f,c)}
function MFa(a,b,c){var e=H(Wg(),G()),f=Dd(b.ca(),Lc().Pm());if(!f.b())if(f=f.c(),null!==f)f=f.t.t,es(f)&&f.Tb.qi(t(new u,function(){return function(a){return a.k}}(a)),Kc()).X(t(new u,function(a,b,c){return function(e){if(bm(e)){var f=B(e.g,bf().Rf).k;vh(b,f);DFa(a,c,f,e,w())}else throw(new v).d(e);}}(a,e,c)));else throw(new v).d(f);f=(new iA).$d(1);b.ca().Pb.X(t(new u,function(a,b,c,e,f){return function(y){if(null!==y){var I=y.pa(),E=y.Ba().t.ha();y=new NFa;var E=E.jf,V=Wg().s;Fr(E,y,V).qi(t(new u,
function(){return function(a){return a.Xp.k}}(a)),Kc()).X(t(new u,function(a,b,c,e,f,g){return function(h){h=h.Xp;var k=b.k,l=c.ta,p=B(h.g,bf().$).G,k=k+"/scalar-valued/"+l+"/"+(p.b()?null:p.c());vh(e,k);qr(rr(),k,B(h.g,bf().Zj));DFa(a,f,k,h,(new A).d(g));c.ta=1+c.ta|0}}(a,b,c,e,f,I)))}else throw(new v).d(y);}}(a,b,f,e,c)));e.Fa()&&c.Am(av(a.m,Gc(Lc().Pm().t)),t(new u,function(a,b){return function(c){c.xs(t(new u,function(a,b){return function(c){for(var e=b.Lb;!e.b();){var f=e.fa();pM(a,c,f,!0);e=
e.sa()}}}(a,b)))}}(a,e)))}function uFa(a,b,c){b.Gr(t(new u,function(a,b){return function(c){c.Am("@id",t(new u,function(a,b){return function(c){var e=Pka(a.m,b);c.$s(e)}}(a,b)))}}(a,c)))}function qM(a,b,c,e){b.Gr(t(new u,function(a,b,c){return function(a){a.l0("@value",OFa(PFa(),b,c))}}(a,e,c)))}
function nFa(a,b,c,e){if(yM(a.m.Bi).Fa()){var f=gr(new hr,yM(a.m.Bi),(new N).a());M();var g=(new N).a(),f=Ph(new Qh,f,g),g=Ug().Mc,h=av(a.m,Gc(g.t));a.m.ny=!0;b.Am(h,t(new u,function(a,b,c,e,f,g){return function(h){KFa(a,b.ja,c,e,t(new u,function(a,b,c){return function(a){Qha(b,c,a)}}(a,f,g)),h)}}(a,g,f,c,e,h)))}a.m.ny=!1}ev.prototype.$classData=q({dQa:0},!1,"amf.plugins.document.graph.emitter.JsonLdEmitter",{dQa:1,f:1,Rm:1});function zM(){this.lAa=null}zM.prototype=new r;
zM.prototype.constructor=zM;zM.prototype.a=function(){QFa=this;var a=C().Zd;this.lAa=Gc(D(new F,a,"graphDependencies"));return this};zM.prototype.iX=function(a){return HB(ib(),a)};
function RFa(a,b){var c=b.i.pb().nb;if(O().Nc===c){b=b.i;var c=tv(),e=Ac().fi;b=L(b,c,e).Jn;c=t(new u,function(){return function(a){var b=a.pb().nb;return O().ua===b?SFa(TFa(),a):w()}}(a));e=uv();b=b.ka(c,e.gc);c=(new AM).a();b.X(t(new u,function(a,b){return function(a){if(x(a)){var c=a.i;null!==c&&(a=c.pa(),c=c.Ba(),BM(b,a,ab(),c))}}}(a,c)));return c}throw(new v).d(c);}
zM.prototype.bO=function(a){if(bd(a)){a=Ic(a.Vd.Bd);var b=Pc(),c=uv().gc;a=Hc(a,CM(c,b));a=a.b()?w():a.c().pc();if(x(a)&&(b=a.i,null!==b)){a=b.Bb.Ib(t(new u,function(){return function(a){a=a.Da;var b=qe(),c=Ac().fi;a=L(a,b,c);b=TFa().lAa;return null===a?null===b:pa(a,b)}}(this)));if(x(a))return RFa(this,a.i);if(w()===a)return RDa();throw(new v).d(a);}if(w()===a)return RDa();throw(new v).d(a);}return RDa()};
function SFa(a,b){var c=Pc(),e=Ac().fi;a=L(b,c,e).Bb.Ib(t(new u,function(){return function(a){a=a.Da;var b=qe(),c=Ac().fi;a=L(a,b,c);return null!==a&&pa(a,"@id")}}(a)));return x(a)?(a=a.i,b=a.i,c=qe(),e=Ac().fi,(new A).d((new P).N(L(b,c,e),a.i))):w()}zM.prototype.$classData=q({gQa:0},!1,"amf.plugins.document.graph.parser.GraphDependenciesReferenceHandler$",{gQa:1,f:1,KY:1});var QFa=void 0;function TFa(){QFa||(QFa=(new zM).a());return QFa}
function gv(){this.pD=this.YA=this.yX=this.zX=this.bB=this.cB=this.UD=this.dD=this.dB=this.BF=this.m=null}gv.prototype=new r;gv.prototype.constructor=gv;gv.prototype.x5=function(){null===this.pD&&(this.pD=new hv)};gv.prototype.Eda=function(a,b){var c=new UFa,e=pc(fc().db,G());c.dh=e;if(null===this)throw Lb(Mb(),null);c.l=this;c.Hx=pc(Os(),G());c.cD=pc(Os(),G());c.RH=pc(Os(),G());return c.Eda(a,b)};
function VFa(a,b){var c=b.pb().nb;O().ua===c&&(c=Pc(),c=L(b,c,a.m).Bb.Ib(t(new u,function(a){return function(b){b=b.Da;var c=qe();b=L(b,c,a.m);return null!==b&&pa(b,"@value")}}(a))),x(c)&&(b=c.i.i));c=zc();a=L(b,c,a.m).ya;a=(new ph).e(a);a=qC(pC(),a.ia,10);return Nh(new Oh,a,(new N).a())}
function WFa(a,b){var c=b.pb().nb;O().ua===c&&(c=Pc(),c=L(b,c,a.m).Bb.Ib(t(new u,function(a){return function(b){b=b.Da;var c=qe();b=L(b,c,a.m);return null!==b&&pa(b,"@value")}}(a))),x(c)&&(b=c.i.i));c=zc();a=L(b,c,a.m).ya;a=(new ph).e(a);a=rC(wa(),a.ia);return Nh(new Oh,a,(new N).a())}
function XFa(a,b){var c=b.pb().nb;if(O().ua===c)if(c=Pc(),c=L(b,c,a.m).Bb.Ib(t(new u,function(a){return function(b){b=b.Da;var c=qe();b=L(b,c,a.m);return null!==b&&pa(b,"@value")}}(a))),x(c)){c=c.i;b=gE();var c=c.i,e=zc();a=IL(b,L(c,e,a.m).ya)}else c=gE(),e=zc(),a=IL(c,L(b,e,a.m).ya);else c=gE(),e=zc(),a=IL(c,L(b,e,a.m).ya);a=(new Ox).wp(a).c();return Nh(new Oh,a,(new N).a())}
function YFa(a,b){var c=b.pb().nb;O().ua===c&&(c=Pc(),c=L(b,c,a.m).Bb.Ib(t(new u,function(a){return function(b){b=b.Da;var c=qe();b=L(b,c,a.m);return null!==b&&pa(b,"@value")}}(a))),x(c)&&(b=c.i.i));c=zc();a=L(b,c,a.m).ya;return Nh(new Oh,a,(new N).a())}function ZFa(a,b,c){b=yc((new K).Y(b),Ec(Gc(c.t),a.m));if(b.b())return w();b=b.c();c=Nc(a,c.ja,b.i);b=zc();return(new A).d(L(c,b,a.m).ya)}gv.prototype.y5=function(){null===this.pD&&this.x5();return this.pD};
function $Fa(a,b){a=a.YA.Ta(zba(b,a.m));return a.b()?mr().A0(b):a}function aGa(a,b){var c=b.pb().nb;O().ua===c&&(c=Pc(),c=L(b,c,a.m).Bb.Ib(t(new u,function(a){return function(b){b=b.Da;var c=qe();b=L(b,c,a.m);return null!==b&&pa(b,"@value")}}(a))),x(c)&&(b=c.i.i));c=zc();a=L(b,c,a.m).ya;a=(new ph).e(a);a=rC(wa(),a.ia);return Nh(new Oh,a,(new N).a())}
function bGa(a,b,c,e){var f=mr().nL.Ta(Gc(e.ec().fa()));if(x(f)&&(f=f.i)&&f.$classData&&f.$classData.v.Xc)return t(new u,function(a,b){return function(a){var c=b.Zc();c.ha().Ur(a);return(new A).d(c)}}(a,f));f=mr().D_(e);if(x(f))return t(new u,function(a,b){return function(a){return(new A).d(b.R(a))}}(a,f.i));var f=a.m,g=Bc().R8;e="Cannot find builder for node type "+e;var h=w();Cc(f,g,b,h,e,c.ga);return t(new u,function(){return function(){return w()}}(a))}
function cGa(a,b){var c=b.pb().nb;if(O().ua===c){c=Pc();c=L(b,c,a.m).Bb.Ib(t(new u,function(a){return function(b){b=b.Da;var c=qe();b=L(b,c,a.m);return null!==b&&pa(b,"@value")}}(a)));if(x(c))var c=c.i.i,e=zc(),c=L(c,e,a.m).ya;else c=zc(),c=L(b,c,a.m).ya;e=Pc();b=L(b,e,a.m).Bb.Ib(t(new u,function(a){return function(b){b=b.Da;var c=qe();b=L(b,c,a.m);return null!==b&&pa(b,"@type")}}(a)));if(x(b)){b=b.i.i;e=zc();b=L(b,e,a.m).ya;b=zba(b,a.m);if(null!==b&&b===a.bB)return a=(new ph).e(c),Nh(new Oh,HL(a.ia),
(new N).a());if(null!==b&&b===a.dB)return a=(new ph).e(c),b=pC(),Nh(new Oh,qC(b,a.ia,10),(new N).a());if(null!==b&&b===a.dD)return a=(new ph).e(c).ia,Nh(new Oh,ea(rC(wa(),a)),(new N).a());if(null!==b&&b===a.cB)return a=(new ph).e(c),b=wa(),Nh(new Oh,rC(b,a.ia),(new N).a());if(null!==b&&b===a.zX||null!==b&&b===a.yX)return a=IL(gE(),c),Nh(new Oh,(new Ox).wp(a).c(),(new N).a())}return Nh(new Oh,c,(new N).a())}c=zc();return Nh(new Oh,L(b,c,a.m).ya,(new N).a())}
function dGa(a,b){var c=b.pb().nb;O().ua===c&&(c=Pc(),c=L(b,c,a.m).Bb.Ib(t(new u,function(a){return function(b){b=b.Da;var c=qe();b=L(b,c,a.m);return null!==b&&pa(b,"@value")}}(a))),x(c)&&(b=c.i.i));c=zc();a=L(b,c,a.m).ya;a=(new ph).e(a);a=HL(a.ia);return Nh(new Oh,a,(new N).a())}gv.prototype.$classData=q({hQa:0},!1,"amf.plugins.document.graph.parser.GraphParser",{hQa:1,f:1,mQa:1});
function DM(a){var b=(new Ki).Ld(zd()),c=C().Kc;a.TD(Rb(new Sb,b,D(new F,c,"externals"),Tb(new Ub,Vb().tm,"","",G())))}function EM(){}EM.prototype=new qv;EM.prototype.constructor=EM;EM.prototype.a=function(){return this};EM.prototype.$classData=q({bSa:0},!1,"amf.plugins.document.vocabularies.model.domain.ExtensionPointProperty$",{bSa:1,gJ:1,f:1});var eGa=void 0;function fGa(){eGa||(eGa=(new EM).a());return eGa}function FM(){}FM.prototype=new qv;FM.prototype.constructor=FM;FM.prototype.a=function(){return this};
FM.prototype.$classData=q({cSa:0},!1,"amf.plugins.document.vocabularies.model.domain.LiteralProperty$",{cSa:1,gJ:1,f:1});var gGa=void 0;function hGa(){gGa||(gGa=(new FM).a());return gGa}function GM(){}GM.prototype=new qv;GM.prototype.constructor=GM;GM.prototype.a=function(){return this};GM.prototype.$classData=q({dSa:0},!1,"amf.plugins.document.vocabularies.model.domain.LiteralPropertyCollection$",{dSa:1,gJ:1,f:1});var iGa=void 0;function jGa(){iGa||(iGa=(new GM).a());return iGa}function HM(){}
HM.prototype=new qv;HM.prototype.constructor=HM;HM.prototype.a=function(){return this};HM.prototype.$classData=q({gSa:0},!1,"amf.plugins.document.vocabularies.model.domain.ObjectMapInheritanceProperty$",{gSa:1,gJ:1,f:1});var kGa=void 0;function IM(){}IM.prototype=new qv;IM.prototype.constructor=IM;IM.prototype.a=function(){return this};IM.prototype.$classData=q({hSa:0},!1,"amf.plugins.document.vocabularies.model.domain.ObjectMapProperty$",{hSa:1,gJ:1,f:1});var lGa=void 0;
function JM(){lGa||(lGa=(new IM).a());return lGa}function KM(){}KM.prototype=new qv;KM.prototype.constructor=KM;KM.prototype.a=function(){return this};KM.prototype.$classData=q({iSa:0},!1,"amf.plugins.document.vocabularies.model.domain.ObjectPairProperty$",{iSa:1,gJ:1,f:1});var mGa=void 0;function nGa(){mGa||(mGa=(new KM).a());return mGa}function LM(){}LM.prototype=new qv;LM.prototype.constructor=LM;LM.prototype.a=function(){return this};
LM.prototype.$classData=q({jSa:0},!1,"amf.plugins.document.vocabularies.model.domain.ObjectProperty$",{jSa:1,gJ:1,f:1});var oGa=void 0;function MM(){oGa||(oGa=(new LM).a());return oGa}function NM(){}NM.prototype=new qv;NM.prototype.constructor=NM;NM.prototype.a=function(){return this};NM.prototype.$classData=q({kSa:0},!1,"amf.plugins.document.vocabularies.model.domain.ObjectPropertyCollection$",{kSa:1,gJ:1,f:1});var pGa=void 0;function OM(){pGa||(pGa=(new NM).a());return pGa}
function PM(){this.Jq=this.jc=this.ZDa=null}PM.prototype=new r;PM.prototype.constructor=PM;function qGa(a,b){var c=b.we();if(rs(c))BM(a.Jq,c.ya,qL(),b);else{a=a.jc;var c=Bc().pY,e="Unexpected !include or dialect with "+b.we(),f=w();Cc(a,c,"",f,e,b.ga)}}function rGa(a,b){b=kd(ta(),b,"#",0);b=Wj((new md).vc(b));var c=(new ph).e(b);Tc(c)&&qGa(a,(R(),Th(R(),b)))}
PM.prototype.rca=function(a,b){var c=Pc();a=Iv(a).Gp(c);if(Hp(a)&&(a=yc((new K).Y(a.i),"uses"),!a.b())){a=a.c();var c=a.i,e=Pc(),c=sv(c,e);if(Hp(c))c.i.Bb.X(t(new u,function(a){return function(b){var c=a.Jq;R();var e=b.i,f=Ac().fi,y=qe();BM(c,L(e,y,f),oL(),b.i)}}(this)));else{c=of().YR;e="Expected map but found: "+a.i;a=a.i;var f=w();Cc(b,c,"",f,e,a.ga)}}};PM.prototype.iX=function(a){return HB(ib(),a)};
function sGa(a,b){a:if(Kr(b)){var c=b.Da,e=zc(),f=Ac().fi,c=L(c,e,f).ya;"$target"===c?qGa(a,b.i):"$dialect"===c?(b=b.i,c=a.ZDa,e=qe(),f=Ac().fi,tGa(c,"%"+L(b,e,f))||(R(),c=Ac().fi,e=qe(),rGa(a,L(b,e,c)))):"$include"===c?qGa(a,b.i):"$ref"===c?(b=id(b.i),b.b()?b=w():(b=b.c(),b=(new A).d(b.ya)),b.b()||(b=b.c(),rGa(a,b))):b.Uf.X(t(new u,function(a){return function(b){sGa(a,b)}}(a)))}else{if(Ir(b)&&(c=b.pb().nb,e=O().vq,c===e)){qGa(a,b);break a}b.Uf.X(t(new u,function(a){return function(b){sGa(a,b)}}(a)))}}
PM.prototype.bO=function(a,b){if(bd(a)){if(a.Cv.qa()){var c;c=a.Cv.c().Bt;var e=c.indexOf("|")|0;0<e?(e=c.substring(1+e|0),c=e.indexOf("\x3c")|0,e=e.lastIndexOf("\x3e")|0,c=0<c&&e>c):c=!1;if(c){c=this.Jq;var e=a.Cv.c().Bt,f=e.indexOf("|")|0;if(0<f)var e=e.substring(1+f|0),f=e.indexOf("\x3c")|0,g=e.lastIndexOf("\x3e")|0,e=e.substring(1+f|0,g);else e="";BM(c,e,NDa(),a.Vd.Bd)}}this.rca(a.Vd,b);sGa(this,a.Vd)}return this.Jq};
PM.prototype.$classData=q({sSa:0},!1,"amf.plugins.document.vocabularies.parser.common.SyntaxExtensionsReferenceHandler",{sSa:1,f:1,KY:1});function QM(){this.cf=this.W=this.m=this.Ff=null}QM.prototype=new r;QM.prototype.constructor=QM;
QM.prototype.pda=function(){var a=yc((new K).Y(this.W),"base");if(!a.b()){var b=a.c(),c=(new RM).Vb(b.i,this.m),a=this.cf,e=wd().uh,c=c.Pf(),b=Ke(M(),b);Fh(a,e,c,b)}a=yc((new K).Y(this.W),"vocabulary");a.b()||(b=a.c(),c=(new RM).Vb(b.i,this.m),a=this.cf,e=wd().$,c=c.Pf(),b=Ke(M(),b),Fh(a,e,c,b));a=yc((new K).Y(this.W),"usage");a.b()||(b=a.c(),c=(new RM).Vb(b.i,this.m),a=this.cf,e=wd().Ud,c=c.Pf(),b=Ke(M(),b),Fh(a,e,c,b));nca(this.m,"vocabulary",this.cf.k,this.W);a=uGa(this.W,this.Ff.U,this.m);e=B(this.cf.g,
wd().uh).G;a=vGa(a,e.b()?null:e.c());Tc(this.m.ad.Gn)&&(e=this.cf,b=(new dd).Qd(this.m.ad.Gn).Rb.gf().kd(),c=ge().ch,qf(e,c,b));wGa(this,this.W);xGa(this,this.W);var e=yGa(this.m),b=this.m.N0,c=t(new u,function(a){return function(b){if(null!==b){var c=b.pa();b=b.Ba();M();var e=(new N).a(),e=(new SM).P((new Q).a(),e),f=Sd().Kp,c=Eb(e,f,c),e=b.k,f=Sd().qN,c=Eb(c,f,e);b=B(b.g,wd().uh).G;b=b.b()?null:b.c();e=Sd().uh;b=Eb(c,e,b);c=a.cf.k;H(z(),G());return cj(b,c)}throw(new v).d(b);}}(this)),f=Ce().s,c=
De(b,c,f);Tc(c)&&(b=this.cf,c=c.ce(),f=wd().BD,qf(b,f,c));e.Fa()&&(b=this.cf,c=Ug().Mc,Vg(b,c,e));Tc(a.U)&&(e=this.cf,a=a.Mw(),b=Nl().qc,Vg(e,b,a));this.m.DC.X(t(new u,function(a){return function(b){if(null!==b){var c=b.Co,e=b.th;if(b.HM){b=a.m;var f=a.cf.k,y=of().sxa,c="Cannot find property vocabulary term "+c,I=w();iL(b,y,f,I,c,e.ga)}else Df(a.m,c,a.cf.k,e)}else throw(new v).d(b);}}(this)));return this.cf};
function zGa(a,b){var c=b.i.pb().nb;if(O().yd===c)c=Ke(M(),b),c=(new TM).P((new Q).a(),c);else{var c=b.i,e=Pc(),c=L(c,e,a.m),c=yc((new K).Y(c),"range");if(w()===c)c=Ke(M(),b),c=(new TM).P((new Q).a(),c);else{if(!x(c))throw(new v).d(c);c=c.i.i;e=zc();c=L(c,e,a.m).ya;"string"===c||"integer"===c||"float"===c||"double"===c||"long"===c||"boolean"===c||"uri"===c||"any"===c||"time"===c||"date"===c||"dateTime"===c?(c=Ke(M(),b),c=(new TM).P((new Q).a(),c)):(c=Ke(M(),b),c=(new UM).P((new Q).a(),c))}}var e=
b.Da,f=zc(),e=L(e,f,a.m).ya,f=FA().$;Eb(c,f,e);var f=a.m,g=B(a.cf.g,wd().uh).G,f=AGa(f,g.b()?null:g.c(),e,b.Da,!1);if(w()===f)Df(a.m,e,a.cf.k,b.Da);else if(x(f))c.k=f.i;else throw(new v).d(f);f=b.i.pb().nb;if(O().yd!==f){b=b.i;f=Pc();b=L(b,f,a.m);nca(a.m,"propertyTerm",c.k,b);f=yc((new K).Y(b),"displayName");f.b()||(f=f.c(),g=(new RM).Vb(f.i,a.m),f=zA().gd,g=g.Pf(),ff(c,f,g));f=yc((new K).Y(b),"description");f.b()||(f=f.c(),g=(new RM).Vb(f.i,a.m),f=zA().fb,g=g.Pf(),ff(c,f,g));f=yc((new K).Y(b),"range");
if(!f.b()){var f=f.c(),g=f.i,h=zc(),g=L(g,h,a.m).ya;if("guid"===g)f=C().Gb,g=(new A).d(Gc(D(new F,f,"guid")));else if("any"===g||"uri"===g||"string"===g||"integer"===g||"float"===g||"double"===g||"long"===g||"boolean"===g||"time"===g||"date"===g||"dateTime"===g)g=(new A).d(Vca(qi(),g));else{var h=a.m,k=B(a.cf.g,wd().uh).G,h=BGa(h,k.b()?null:k.c(),g,f.i,!0);if(x(h))g=(new A).d(h.i);else{if(w()!==h)throw(new v).d(h);Df(a.m,g,a.cf.k,f.i);g=w()}}a:{if(x(g)&&(f=g.i,null!==f)){g=FA().If;Eb(c,g,f);break a}if(w()!==
g)throw(new v).d(g);}}b=yc((new K).Y(b),"extends");if(!b.b()){b=b.c();f=b.i.pb().nb;if(O().Wa===f)f=z(),g=[(new RM).Vb(b.i,a.m).Pf().u()],f=H(f,(new J).aa(g));else{if(O().Nc!==f)throw(new v).d(f);f=(new Fw).Vb(b.i,a.m).HV().pa();g=t(new u,function(a){return function(b){var c=zc();return L(b,c,a.m).ya}}(a));h=z();f=f.ka(g,h.s)}b=t(new u,function(a,b){return function(c){var e=a.m,f=B(a.cf.g,wd().uh).G,e=AGa(e,f.b()?null:f.c(),c,b.i,!0);if(x(e))return(new A).d(e.i);if(w()===e)return Df(a.m,c,a.cf.k,
b.i),w();throw(new v).d(e);}}(a,b));g=z();b=f.ka(b,g.s).xb(t(new u,function(){return function(a){return a.qa()}}(a)));f=t(new u,function(){return function(a){return a.c()}}(a));g=z();b=b.ka(f,g.s);f=FA().IB;dr(c,f,b)}}CGa(a.m,e,c)}QM.prototype.Jo=function(){return this.m};function xGa(a,b){b=yc((new K).Y(b),"propertyTerms");if(!b.b()){b=b.c().i;var c=Pc();L(b,c,a.m).Bb.X(t(new u,function(a){return function(b){zGa(a,b)}}(a)))}}
function DGa(a,b,c){a.Ff=b;a.m=c;var e=b.Gg.Vd,f=Pc();a.W=L(e,f,c);c=Ke(M(),a.W);c=(new VM).P((new Q).a(),c);e=b.ga;f=Ap().nc;c=Eb(c,f,e);a.cf=Te(c,b.ga);return a}function wGa(a,b){b=yc((new K).Y(b),"classTerms");if(!b.b()){b=b.c().i;var c=Pc();L(b,c,a.m).Bb.X(t(new u,function(a){return function(b){EGa(a,b)}}(a)))}}
function EGa(a,b){var c=Ke(M(),b),c=(new WM).P((new Q).a(),c),e=b.Da,f=zc(),e=L(e,f,a.m).ya,f=zA().$;Eb(c,f,e);var f=a.m,g=B(a.cf.g,wd().uh).G,f=BGa(f,g.b()?null:g.c(),e,b.Da,!1);if(w()===f)Df(a.m,e,a.cf.k,b.Da);else if(x(f))c.k=f.i;else throw(new v).d(f);f=b.i.pb().nb;if(O().yd!==f){b=b.i;f=Pc();b=L(b,f,a.m);nca(a.m,"classTerm",c.k,b);f=yc((new K).Y(b),"displayName");f.b()||(f=f.c(),g=(new RM).Vb(f.i,a.m),f=zA().gd,g=g.Pf(),ff(c,f,g));f=yc((new K).Y(b),"description");f.b()||(f=f.c(),g=(new RM).Vb(f.i,
a.m),f=zA().fb,g=g.Pf(),ff(c,f,g));f=yc((new K).Y(b),"properties");if(!f.b()){f=f.c();g=f.i.pb().nb;if(O().Wa===g)var g=z(),h=[(new RM).Vb(f.i,a.m).Pf().u()],g=H(g,(new J).aa(h));else{if(O().Nc!==g)throw(new v).d(g);var g=(new Fw).Vb(f.i,a.m).HV().pa(),h=t(new u,function(){return function(a){return a.we().u()}}(a)),k=z(),g=g.ka(h,k.s)}f=t(new u,function(a,b){return function(c){var e=a.m,f=B(a.cf.g,wd().uh).G,e=AGa(e,f.b()?null:f.c(),c,b.i,!0);if(x(e))return(new A).d(e.i);if(w()===e)return Df(a.m,
c,a.cf.k,b.i),w();throw(new v).d(e);}}(a,f));h=z();f=g.ka(f,h.s).xb(t(new u,function(){return function(a){return a.qa()}}(a)));g=t(new u,function(){return function(a){return a.c()}}(a));h=z();f=f.ka(g,h.s);f.Fa()&&(g=zA().Rg,dr(c,g,f))}b=yc((new K).Y(b),"extends");if(!b.b()){b=b.c();f=b.i.pb().nb;if(O().Wa===f)f=z(),g=[(new RM).Vb(b.i,a.m).Pf().u()],f=H(f,(new J).aa(g));else{if(O().Nc!==f)throw(new v).d(f);f=(new Fw).Vb(b.i,a.m).HV().pa();g=t(new u,function(){return function(a){return a.we().u()}}(a));
h=z();f=f.ka(g,h.s)}b=t(new u,function(a,b){return function(c){var e=a.m,f=B(a.cf.g,wd().uh).G,e=BGa(e,f.b()?null:f.c(),c,b.i,!0);if(x(e))return(new A).d(e.i);if(w()===e)return Df(a.m,c,a.cf.k,b.i),w();throw(new v).d(e);}}(a,b));g=z();b=f.ka(b,g.s).xb(t(new u,function(){return function(a){return a.qa()}}(a)));f=t(new u,function(){return function(a){return a.c()}}(a));g=z();b=b.ka(f,g.s);f=zA().Mz;dr(c,f,b)}}FGa(a.m,e,c)}
QM.prototype.$classData=q({PSa:0},!1,"amf.plugins.document.vocabularies.parser.vocabularies.VocabulariesParser",{PSa:1,f:1,$r:1});function XM(){Mr.call(this);this.BG=this.n3=this.OH=this.tG=this.Gn=null}XM.prototype=new pia;XM.prototype.constructor=XM;function GGa(){}GGa.prototype=XM.prototype;
XM.prototype.Jaa=function(a){var b=this.ai.Ta(a);if(x(b)&&(b=b.i,HGa(b)))return b;var b=this.BG,c=(new Np).a(),e=pc(fc().db,G()),f=pc(fc().db,G()),g=pc(fc().db,G()),h=pc(fc().db,G()),k=pc(fc().db,G()),b=(new XM).m1(e,f,g,h,k,b,c);this.ai=this.ai.Zb((new P).N(a,b));return b};XM.prototype.m1=function(a,b,c,e,f,g,h){this.Gn=a;this.tG=b;this.OH=c;this.n3=e;this.BG=g;Mr.prototype.zBa.call(this,f,pc(fc().db,G()),pc(fc().db,G()),g,h);return this};
function IGa(a,b){var c=B(b.ca(),FA().$).G;if(-1===((c.b()?null:c.c()).indexOf(".")|0)){var c=a.OH,e=B(b.ca(),FA().$).G,e=e.b()?null:e.c();a.OH=c.Zb((new P).N(e,b))}}function JGa(a,b){a=a.OH.Ta(b);if(x(a))return(new A).d(a.i.k);if(w()===a)return w();throw(new v).d(a);}function KGa(a,b){var c=B(b.g,zA().$).G;if(-1===((c.b()?null:c.c()).indexOf(".")|0)){var c=a.tG,e=B(b.g,zA().$).G,e=e.b()?null:e.c();a.tG=c.Zb((new P).N(e,b))}}
function LGa(a,b){a=a.tG.Ta(b);if(x(a))return(new A).d(a.i.k);if(w()===a)return w();throw(new v).d(a);}function MGa(a,b,c){a.n3=a.n3.Zb((new P).N(b,c))}function dca(a,b){if(-1!==(b.indexOf(".")|0)){var c=kd(ta(),b,"\\.",0),c=Wj((new md).vc(c));b=kd(ta(),b,"\\.",0);b=ld((new md).vc(b));a=a.Gn.Ta(c);if(a.b())return w();a=B(a.c().g,zd().uh).G;return(new A).d(""+(a.b()?null:a.c())+b)}return w()}function HGa(a){return!!(a&&a.$classData&&a.$classData.v.NY)}
XM.prototype.$classData=q({NY:0},!1,"amf.plugins.document.vocabularies.parser.vocabularies.VocabularyDeclarations",{NY:1,eN:1,f:1});function YM(){Rt.call(this);this.Gj=null}YM.prototype=new St;YM.prototype.constructor=YM;YM.prototype.vb=function(a){Rt.prototype.vb.call(this,a);a=z();var b=[(new ZM).vb(this.ub),(new $M).vb(this.ub),(new VL).vb(this.ub),(new WL).vb(this.ub)];this.Gj=H(a,(new J).aa(b));return this};YM.prototype.VC=function(){return this.Gj};
YM.prototype.$classData=q({RSa:0},!1,"amf.plugins.document.vocabularies.resolution.pipelines.DialectInstancePatchResolutionPipeline",{RSa:1,bu:1,f:1});function aN(){Rt.call(this);this.Gj=null}aN.prototype=new St;aN.prototype.constructor=aN;aN.prototype.vb=function(a){Rt.prototype.vb.call(this,a);a=z();var b=[(new ZM).vb(this.ub),(new VL).vb(this.ub),(new WL).vb(this.ub)];this.Gj=H(a,(new J).aa(b));return this};aN.prototype.VC=function(){return this.Gj};
aN.prototype.$classData=q({SSa:0},!1,"amf.plugins.document.vocabularies.resolution.pipelines.DialectInstanceResolutionPipeline",{SSa:1,bu:1,f:1});function bN(){Rt.call(this);this.Gj=null}bN.prototype=new St;bN.prototype.constructor=bN;bN.prototype.vb=function(a){Rt.prototype.vb.call(this,a);a=z();var b=[(new cN).vb(this.ub),(new dN).vb(this.ub)];this.Gj=H(a,(new J).aa(b));return this};bN.prototype.VC=function(){return this.Gj};
bN.prototype.$classData=q({TSa:0},!1,"amf.plugins.document.vocabularies.resolution.pipelines.DialectResolutionPipeline",{TSa:1,bu:1,f:1});function ZM(){this.G1=this.Iu=this.ys=this.ub=null}ZM.prototype=new cu;ZM.prototype.constructor=ZM;ZM.prototype.vb=function(a){bu.prototype.vb.call(this,a);this.ys=w();this.Iu=w();this.G1=G();return this};ZM.prototype.h3=function(a,b){var c=!1,e=null;return ns(a)&&(c=!0,e=a,yb(e).qa()&&!b)?(new A).d(NGa(this,yb(e).c())):c&&yb(e).qa()?(new A).d(e):(new A).d(a)};
function NGa(a,b){if(a.G1.Ja(b.k))return b;M();var c=(new N).a(),c=(new eN).P((new Q).a(),c);vj(c.g,Nl().ob,b,(M(),(new N).a()));var e=(new ZM).vb(a.ub),f=a.Iu;a=a.G1;b=H(z(),(new J).aa([b.k]));var g=z();return B(OGa(e,c,f,a.la(b,g.s)).g,ZA().ob)}function OGa(a,b,c,e){a.G1=e;a.ys=(new A).d(b);a.Iu=(new A).d(c.b()?(new $t).BK(b):c.c());return b.Lm(TEa(),qd(function(a){return function(b,c){return a.h3(b,!!c)}}(a)),a.ub)}
ZM.prototype.He=function(a){this.ys=(new A).d(a);this.Iu=(new A).d((new $t).BK(a));return a.Lm(TEa(),qd(function(a){return function(c,e){return a.h3(c,!!e)}}(this)),this.ub)};ZM.prototype.$classData=q({USa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectInstanceReferencesResolutionStage",{USa:1,ji:1,f:1});function dN(){this.ub=null}dN.prototype=new cu;dN.prototype.constructor=dN;dN.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};
function PGa(a,b){var c=B(b.g,Lc().wi());if(ft(c)&&(c=c.Aj,he(c))){var e=PGa(a,c),f=B(e.g,Tj().Xx).G;if(x(f)){var f=f.i,g=B(b.g,Tj().Xx).G;w()===g&&(g=Tj().Xx,Eb(b,g,f))}a=QGa(a,b,e);c=H(z(),(new J).aa([c.k]));e=Tj().f9;dr(a,e,c);gs(a.g,Tj().wi())}return b}
function QGa(a,b,c){var e=pc(Os(),G());B(b.g,Tj().Qi).X(t(new u,function(a,b){return function(a){var c=B(a.g,sf().$).G,c=c.b()?null:c.c();return b.Ih((new P).N(c,a))}}(a,e)));B(c.g,Tj().Qi).X(t(new u,function(a,b){return function(a){var c=B(a.g,sf().$).G,c=b.Ta(c.b()?null:c.c());if(!x(c)){if(w()===c){var c=B(a.g,sf().$).G,c=c.b()?null:c.c(),e=ks(a.g),f=a.E,e=(new fN).P(e,zj(M(),f));a=Te(e,a.k);return b.Ih((new P).N(c,a))}throw(new v).d(c);}}}(a,e)));a=e.Rr().wa();c=Tj().Qi;return Vg(b,c,a)}
dN.prototype.He=function(a){sd(a)&&a.ak().X(t(new u,function(a){return function(c){if(he(c))return PGa(a,c)}}(this)));return a};dN.prototype.$classData=q({VSa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectNodeExtensionStage",{VSa:1,ji:1,f:1});function $M(){this.ub=null}$M.prototype=new cu;$M.prototype.constructor=$M;$M.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};function RGa(a){a=Zka(a).G;return a.b()?"update":a.c()}
function SGa(a,b,c,e){return a.qa()&&TGa(a.c(),b,c,e)?w():a}
function UGa(a,b,c,e,f,g,h){var k=VGa(f);if(hGa()===k)if(f=RGa(f),"insert"!==f||WGa(b.bf()).Ja(Gc(c.t)))if("delete"===f&&WGa(b.bf()).Ja(Gc(c.t)))try{if(ub(vb(),uj(b.g,c).t.t,e.t.t)){var l=b.bf();Bia(l.rh.ca(),Gc(c.t))}}catch(p){if(c=gi(Mb(),p),!hi(c))throw p;}else"update"===f&&WGa(b.bf()).Ja(Gc(c.t))?XGa(b.bf(),c,e):"upsert"===f?XGa(b.bf(),c,e):"ignore"!==f&&"fail"===f&&(e=a.ub,a=of().aN,f=b.k,g=w(),h="Property "+Gc(c.t)+" cannot be patched",c=Zb(uj(b.g,c).E,n(Fd)),b=w(),e.Hc(a.k,f,g,h,c,xc().tb,
b));else XGa(b.bf(),c,e);else if(jGa()===k){g=!1;h=null;l=b.g.Pb.Ta(c);a:{if(x(l)&&(g=!0,h=l,l=h.i,es(l.t))){g=l.t.Tb;break a}g?(g=h.i,g=H(z(),(new J).aa([g.t]))):g=G()}g=H(fc().Sg,g);h=e.t;h=es(h)?h.Tb:H(z(),(new J).aa([h]));h=H(fc().Sg,h);f=RGa(f);"insert"===f?gN(b.bf(),c,g.hX(h).ce()):"delete"===f?gN(b.bf(),c,g.kO(h).ce()):"update"===f?gN(b.bf(),c,xx(h)):"upsert"===f?gN(b.bf(),c,g.hX(h).ce()):"ignore"!==f&&"fail"===f&&(a=a.ub,f=of().aN,b=b.k,g=w(),c="Property "+Gc(c.t)+" cannot be patched",e=Zb(e.E,
n(Fd)),h=w(),a.Hc(f.k,b,g,c,e,xc().tb,h))}else if(MM()===k){if(e=e.t,xA(e))a:{if(f=kr(b.g,c),e=YGa(a,f,g,e,h),x(e)&&(e=e.i,null!==e)){a=b.bf();b=a.rh;a=ZGa(a,c);Fh(b,c,e,a);break a}b=b.bf();Bia(b.rh.ca(),Gc(c.t))}}else OM()!==k&&JM()!==k&&nGa()!==k||$Ga(a,b,c,e,f,g,h)}function aHa(a,b){return a.b()?(new A).d(b):a}
function bHa(a,b){var c=B(b.g,cHa().Jc).G;return x(c)&&(c=c.i,jd(b).qa()&&(a=B(b.g,ZA().qc).Ib(t(new u,function(a,b){return function(a){return $A(a)&&re(ta(),jd(a).c(),b)}}(a,c))),x(a)&&(a=a.i,$A(a)&&jd(a).qa())))?(new A).d(a):w()}function dHa(a){a=Sj(a);a=Zka(a).G;return a.b()?"update":a.c()}
function eHa(a,b,c,e,f){var g=Sj(e);if(b.qa()&&TGa(b.c(),c,e,f))for(var h=hN(e).g;!h.b();){var k=h.fa(),l=e.g.Pb.Ta(k);if(x(l)){var l=l.i,p=B(g.g,Tj().Qi).Ib(t(new u,function(a,b){return function(a){a=B(a.g,sf().Kh).G;return(a.b()?null:a.c())===Gc(b.t)}}(a,k)));x(p)&&(p=p.i,UGa(a,b.c(),k,l,p,c,f))}h=h.sa()}return b}function fHa(a,b,c,e,f){return b.b()?aHa(b,e):eHa(a,b,c,e,f)}
$M.prototype.He=function(a){var b;if(gHa(a))a:{b=bHa(this,a);if(x(b)&&(b=b.i,null!==b)){a=YGa(this,(new A).d(B(b.g,ZA().ob)),jd(b).c(),B(a.g,ZA().ob),jd(a).c());if(x(a)){a=a.i;var c=Rl().ob;b=ff(b,c,a)}else if(w()===a)Bia(b.g,Gc(ZA().ob.t));else throw(new v).d(a);break a}b=a}else b=a;return b};function TGa(a,b,c,e){return a.k.split(b).join("")===c.k.split(e).join("")}
function YGa(a,b,c,e,f){var g=dHa(e);if("insert"===g)return aHa(b,e);if("delete"===g)return SGa(b,c,e,f);if("update"===g)return eHa(a,b,c,e,f);if("upsert"===g)return fHa(a,b,c,e,f);if("ignore"===g)return b;if("fail"===g){b=a.ub;c=of().aN;f=e.k;var g=w(),h=hN(e).ja;a=function(){return function(a){return Gc(a)}}(a);var k=Di().s;if(k===Di().s)if(h===G())a=G();else{for(var k=h.fa(),l=k=oz(new pz,a(k),G()),h=h.sa();h!==G();)var p=h.fa(),p=oz(new pz,a(p),G()),l=l.ve=p,h=h.sa();a=k}else{for(k=Rf(h,k);!h.b();)l=
h.fa(),k.Ic(a(l)),h=h.sa();a=k.lc()}a="Node "+a.ng(",")+" cannot be patched";e=Zb(e.E,n(Fd));h=w();b.Hc(c.k,f,g,a,e,xc().tb,h);return w()}throw(new v).d(g);}
function $Ga(a,b,c,e,f,g,h){var k=!1,l=null,p=b.g.Pb.Ta(c);a:{if(x(p)&&(k=!0,l=p,p=l.i,es(p.t))){k=p.t.Tb;break a}k?(k=l.i,k=H(z(),(new J).aa([k.t]))):k=G()}var l=(new hHa).ex(a),p=z(),l=k.$b(l,p.s).ae(pc(fc().db,G()),qd(function(a,b){return function(a,c){var e=c.k.split(b).join("");return a.Zb((new P).N(e,c))}}(a,g))),p=e.t,p=es(p)?p.Tb:H(z(),(new J).aa([p])),y=(new iHa).ex(a),I=z(),p=p.$b(y,I.s).ae(pc(fc().db,G()),qd(function(a,b){return function(a,c){var e=c.k.split(b).join("");return a.Zb((new P).N(e,
c))}}(a,h)));f=RGa(f);"insert"===f?(g=(new jHa).BU(a,l,h),h=Ce().s,g=Fr(p,g,h),h=(new kHa).ex(a),l=Ce(),g=g.$b(h,l.s).ce(),a=(new lHa).ex(a),h=z(),a=k.$b(a,h.s),h=z(),a=a.Qr(g,h.s),gN(b.bf(),c,a)):"delete"===f?(g=(new mHa).BU(a,l,h),h=Ce().s,g=Fr(p,g,h),h=(new nHa).ex(a),l=Ce(),g=g.$b(h,l.s).ce(),a=(new oHa).ex(a),h=z(),a=k.$b(a,h.s).Tp(g),gN(b.bf(),c,a)):"update"===f?(k=(new pHa).BU(a,l,h),e=Ce().s,k=Fr(p,k,e),e=(new qHa).ex(a),f=Ce(),k=k.$b(e,f.s),h=t(new u,function(a,b,c){return function(e){if(null!==
e){var f=e.pa();e=e.Ba();return(new P).N(f,YGa(a,(new A).d(f),b,e,c))}throw(new v).d(e);}}(a,g,h)),e=Ce(),a=k.ka(h,e.s).ce().ae(l,qd(function(a,b){return function(a,c){c=(new P).N(a,c);a=c.ep;var e=c.rq;if(null!==e){c=e.pa();e=e.Ba();if(x(e))return e=e.i,a.Hh(c.k.split(b).join(""),e);if(w()===e)return a.Bo(c.k.split(b).join(""));throw(new v).d(e);}throw(new v).d(c);}}(a,g))),b=b.bf(),a=(new dd).Qd(a),gN(b,c,a.Rb.gf().kd())):"upsert"===f?(k=iN(p),e=t(new u,function(a,b,c){return function(a){if(null!==
a){var e=a.pa();a=a.Ba();e=b.Ta(e.split(c).join(""));if(x(e))return(new P).N((new A).d(e.i),a);if(w()===e)return(new P).N(w(),a);throw(new v).d(e);}throw(new v).d(a);}}(a,l,h)),f=z(),k=k.ka(e,f.s),e=t(new u,function(a,b,c){return function(e){if(null!==e){var f=e.pa();e=e.Ba();if(x(f))return f=f.i,(new P).N((new A).d(f),YGa(a,(new A).d(f),b,e,c));if(w()===f)return(new P).N(w(),(new A).d(e));throw(new v).d(f);}throw(new v).d(e);}}(a,g,h)),f=z(),a=k.ka(e,f.s).ae(l,qd(function(a,b,c){return function(a,
e){var f=(new P).N(a,e);a=f.ep;e=f.rq;if(null!==e){f=e.pa();e=e.Ba();if(x(f)){f=f.i;if(x(e))return e=e.i,a.Hh(f.k.split(b).join(""),e);if(w()===e)return a.Bo(f.k.split(b).join(""));throw(new v).d(e);}if(w()===f){if(x(e))return e=e.i,a.Hh(e.k.split(c).join(""),e);if(w()===e)return a;throw(new v).d(e);}}throw(new v).d(f);}}(a,g,h))),b=b.bf(),a=(new dd).Qd(a),gN(b,c,a.Rb.gf().kd())):"ignore"!==f&&"fail"===f&&(a=a.ub,g=of().aN,b=b.k,h=w(),c="Property "+Gc(c.t)+" cannot be patched",k=Zb(e.E,n(Fd)),l=w(),
a.Hc(g.k,b,h,c,k,xc().tb,l))}$M.prototype.$classData=q({WSa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectPatchApplicationStage",{WSa:1,ji:1,f:1});function cN(){this.ub=null}cN.prototype=new cu;cN.prototype.constructor=cN;cN.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};function rHa(a,b){for(var c=1,e=a;b.Ja(e);)c=1+c|0,e=""+a+c;return e}
function sHa(a,b,c){if(sd(b)){var e=b.ak(),f=(new tHa).rA(a),g=z();c=e.$b(f,g.s).ae(c,qd(function(){return function(a,b){return a.Hh(b.k,b)}}(a)))}b=b.Pe();e=(new uHa).rA(a);f=z();return b.$b(e,f.s).ae(c,qd(function(a){return function(b,c){return sHa(a,c,b)}}(a)))}
function vHa(a,b,c,e){if(b.Fa()){var f=b.fa(),g=c.Ta(f.k);if(x(g))vHa(a,b.sa(),c,e);else if(w()===g){if(yb(f).qa())var g=H(z(),G()),g=wHa(a,Px(f,g)),h=B(f.ca(),f.$).G,g=g.dga(h.b()?null:h.c()),f=Te(g,f.k);if(he(f)){g=f;b=b.sa();var g=B(g.g,Tj().Qi),h=t(new u,function(){return function(a){return B(a.g,cg().Jg)}}(a)),k=z(),g=g.md(h,k.s),h=t(new u,function(a,b){return function(a){a=a.G;return b.Ta(a.b()?null:a.c())}}(a,e)),k=z(),g=g.ka(h,k.s),h=(new xHa).rA(a)}else{if(!bg(f))throw(new v).d(f);g=f;b=
b.sa();g=B(g.g,cg().Jg);h=t(new u,function(a,b){return function(a){a=a.G;return b.Ta(a.b()?null:a.c())}}(a,e));k=z();g=g.ka(h,k.s);h=(new yHa).rA(a)}k=z();g=g.$b(h,k.s);h=z();b=b.la(g,h.s);g=B(f.ca(),Lc().wi()).pc();a:if(x(g)&&(h=g.i,Kd(h)&&yb(h).qa())){g=z();h=[yb(h).c()];g=H(g,(new J).aa(h));h=z();b=b.la(g,h.s);break a}g=B(f.ca(),f.$).G;-1!==((g.b()?null:g.c()).indexOf(".")|0)&&(g=B(f.ca(),f.$).G,g=g.b()?null:g.c(),g=kd(ta(),g,".",0),f.dga(rHa(ld((new md).vc(g)),e)));c.Ih((new P).N(f.k,f));vHa(a,
b,c,e)}else throw(new v).d(g);}}function zHa(a,b,c){c=b.Pe().ae(c,qd(function(a){return function(b,c){c=c.Pe();var e=(new AHa).rA(a),f=z();return b.vk(c.$b(e,f.s))}}(a)));b=b.Pe();var e=(new BHa).rA(a),f=z();return b.$b(e,f.s).ae(c,qd(function(a){return function(b,c){return zHa(a,c,b)}}(a)))}
function wHa(a,b){var c=(new Q).a(),e=b.ca().Pb,f=zx(),f=Va(f),g=Ce().s;De(e,f,g).X(t(new u,function(a,b){return function(a){return vj(b,a.xc,a.t.t,a.t.E)}}(a,c)));if(he(b))return(new jN).P(c,(M(),(new N).a()));if(bg(b))return(new kN).P(c,(M(),(new N).a()));throw(new v).d(b);}
cN.prototype.He=function(a){var b=sHa(this,a,pc(fc().db,G())),c=CHa(this,a,H(fc().Sg,G())),e=zHa(this,a,H(fc().Sg,G())),f=pc(Os(),G()),g=a.ak().xb(t(new u,function(){return function(a){return Kd(a)}}(this)));vHa(this,g,f,b);DHa(this,f);b=f.Rr().ce();f=Pf();f=Qf(f);e=EHa(e,f).ae(pc(fc().db,G()),qd(function(){return function(a,b){var c=(new P).N(a,b);a=c.ep;b=c.rq;if(null!==b)return c=b.pa(),b=b.si(),a.Hh("vocab"+b,(new P).N(c.k,c.k));throw(new v).d(c);}}(this)));c=xx(c);f=z();c=c.cg(f.s);f=t(new u,
function(a,b){return function(a){if(null!==a){var c=a.pa(),e=a.si();if(null!==c){M();a=(new N).a();a=(new lN).P((new Q).a(),a);var f=zd().uh,c=Eb(a,f,c);a="external"+e;f=zd().gd;c=Eb(c,f,a);a=jd(b);e=(a.b()?b.k:a.c())+"#/external/external"+e;return Te(c,e)}}throw(new v).d(a);}}(this,a));g=z();c=c.ka(f,g.s);if(TA(a)){M();var f=(new N).a(),f=(new mN).P((new Q).a(),f),f=Te(f,a.k),g=jd(a),g=g.b()?a.k:g.c(),h=Ap().nc,f=Eb(f,h,g),g=B(a.g,ed().vj),h=ed().vj,f=ff(f,h,g),g=Ug().Mc,b=Vg(f,g,b),f=ge().ch,c=
qf(b,f,c),b=B(a.g,ed().$).G,b=b.b()?null:b.c(),f=ed().$,c=Eb(c,f,b);a=B(a.g,ed().Tm).G;a=a.b()?null:a.c();b=ed().Tm;a=Eb(c,b,a)}else{if(XA(a))M(),f=(new N).a(),f=(new nN).P((new Q).a(),f),f=Te(f,a.k),g=jd(a),a=g.b()?a.k:g.c(),g=Ap().nc,a=Eb(f,g,a),f=Ug().Mc,a=Vg(a,f,b);else{if(!VA(a))throw(new v).d(a);M();b=(new N).a();b=(new oN).P((new Q).a(),b);b=Te(b,a.k);f=jd(a);f=f.b()?a.k:f.c();g=Ap().nc;b=Eb(b,g,f);a=B(a.g,ed().ob);f=ed().ob;a=ff(b,f,a)}b=ge().ch;a=qf(a,b,c)}c=a.ha();b=Pf();b=Qf(b);c.Wb((new kz).Qj(Ei(e,
b)));return a};
function CHa(a,b,c){if(XA(b)){var e=xd(b),f=t(new u,function(){return function(a){a=B(a.g,zd().uh).G;return a.b()?null:a.c()}}(a)),g=z();c=c.vk(e.ka(f,g.s))}else TA(b)?(e=xd(b),f=t(new u,function(){return function(a){a=B(a.g,zd().uh).G;return a.b()?null:a.c()}}(a)),g=z(),c=c.vk(e.ka(f,g.s))):VA(b)&&(e=xd(b),f=t(new u,function(){return function(a){a=B(a.g,zd().uh).G;return a.b()?null:a.c()}}(a)),g=z(),c=c.vk(e.ka(f,g.s)));return b.Pe().ae(c,qd(function(a){return function(b,c){return CHa(a,c,b)}}(a)))}
function DHa(a,b){b.Rr().X(t(new u,function(a,b){return function(a){var c=B(a.ca(),Lc().wi()).pc();if(x(c)&&(c=c.i,Kd(c)&&yb(c).qa()&&b.Ja(yb(c).c().k))){var h=b.R(yb(c).c().k),c=Tj().wi(),h=H(z(),(new J).aa([h]));return Vg(a,c,h)}}}(a,b)))}cN.prototype.$classData=q({gTa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectReferencesResolutionStage",{gTa:1,ji:1,f:1});function pN(){this.rb=null}pN.prototype=new r;pN.prototype.constructor=pN;
function FHa(a,b,c,e){Wg();var f=Yg(new Zg,(new $g).a()).gb,g=B(c.g,sf().jj).G;if(!g.b()){var h=+g.c(),k="Property '"+B(c.g,sf().$)+"' minimum inclusive value is "+h,l=B(c.g,sf().$).G,p=qN(b,l.b()?null:l.c(),"minimum"),y=(new A).d(k),I=(new A).d(k),E=H(z(),(new J).aa([b.k])),V=z(),da=B(c.g,sf().Kh).G,sa=da.b()?null:da.c(),ua=B(c.g,sf().$).G,Ia=qN(b,ua.b()?null:ua.c(),"minimum")+"/prop",Pa=(new A).d(k),Za=(new A).d(""+h),db=w(),Qb=w(),bc=w(),rc=w(),Fc=w(),Rd=w(),Ld=w(),ze=w(),Td=w(),Je=w(),$d=w(),
te=w(),Hd=H(z(),G());z();Oj();var ie=(new $g).a().wa(),Nd=w(),td=w(),yd=H(V,(new J).aa([rN(new sN,sa,Ia,Pa,db,Qb,bc,rc,Fc,Rd,Ld,ze,Za,Td,Je,$d,te,Hd,ie,Nd,td)]));Nj();z();Oj();var ud=(new $g).a().wa();Nj();z();Oj();var Ve=(new $g).a().wa();Nj();z();Oj();var Me=(new $g).a().wa();Nj();z();Oj();var Rc=(new $g).a().wa();Nj();z();Oj();var me=(new $g).a().wa();Nj();var Ae=w();Nj();z();Oj();var We=(new $g).a().wa();Nj();var od=w();Nj();var Ad=w();Nj();var ue=w();vh(f,Pj(new Qj,p,k,y,I,ud,E,Ve,Me,Rc,me,Ae,
yd,We,od,Ad,ue))}var Id=B(c.g,sf().ij).G;if(!Id.b()){var gf=+Id.c(),Jd="Property '"+B(c.g,sf().$)+"' maximum inclusive value is "+gf,Vd=B(c.g,sf().$).G,je=qN(b,Vd.b()?null:Vd.c(),"maximum"),Wd=(new A).d(Jd),ve=(new A).d(Jd),$c=H(z(),(new J).aa([b.k])),we=z(),cd=B(c.g,sf().Kh).G,ae=cd.b()?null:cd.c(),be=B(c.g,sf().$).G,xe=qN(b,be.b()?null:be.c(),"maximum")+"/prop",ne=(new A).d(Jd),Ed=(new A).d(""+gf),Ne=w(),hf=w(),Ef=w(),Vf=w(),Xe=w(),Ye=w(),vf=w(),Oe=w(),Xd=w(),Ff=w(),rf=w(),cf=w(),hg=H(z(),G());
z();Oj();var kg=(new $g).a().wa(),oe=w(),wf=w(),ce=H(we,(new J).aa([rN(new sN,ae,xe,ne,Ne,hf,Ef,Vf,Xe,Ye,vf,Oe,Xd,Ed,Ff,rf,cf,hg,kg,oe,wf)]));Nj();z();Oj();var jf=(new $g).a().wa();Nj();z();Oj();var Kf=(new $g).a().wa();Nj();z();Oj();var xf=(new $g).a().wa();Nj();z();Oj();var Pe=(new $g).a().wa();Nj();z();Oj();var Ze=(new $g).a().wa();Nj();var Oc=w();Nj();z();Oj();var ke=(new $g).a().wa();Nj();var Lf=w();Nj();var df=w();Nj();var de=w();vh(f,Pj(new Qj,je,Jd,Wd,ve,jf,$c,Kf,xf,Pe,Ze,Oc,ce,ke,Lf,df,de))}if(B(c.g,
sf().Uh).G.qa())var yg=B(c.g,sf().Uh),Mf=0<GHa(yg);else Mf=!1;if(Mf){var pe="Property '"+B(c.g,sf().$)+"' is mandatory",Qe=B(c.g,sf().$).G,$e=qN(b,Qe.b()?null:Qe.c(),"required"),kf=(new A).d(pe),Re=(new A).d(pe),le=H(z(),(new J).aa([b.k])),Se=z(),Nf=B(c.g,sf().Kh).G,Gf=Nf.b()?null:Nf.c(),yf=B(c.g,sf().$).G,ef=qN(b,yf.b()?null:yf.c(),"required")+"/prop",lf=(new A).d(pe),mf=(new A).d("1"),zg=w(),yh=w(),Ag=w(),zh=w(),Hf=w(),Sf=w(),ig=w(),Wf=w(),Kg=w(),Bg=w(),Xg=w(),If=w(),lg=H(z(),G());z();Oj();var Cg=
(new $g).a().wa(),mg=w(),Lg=w(),bh=H(Se,(new J).aa([rN(new sN,Gf,ef,lf,zg,yh,Ag,mf,zh,Hf,Sf,ig,Wf,Kg,Bg,Xg,If,lg,Cg,mg,Lg)]));Nj();z();Oj();var ch=(new $g).a().wa();Nj();z();Oj();var Mg=(new $g).a().wa();Nj();z();Oj();var Hj=(new $g).a().wa();Nj();z();Oj();var Ah=(new $g).a().wa();Nj();z();Oj();var Of=(new $g).a().wa();Nj();var dh=w();Nj();z();Oj();var Xf=(new $g).a().wa();Nj();var Ng=w();Nj();var wi=w();Nj();var Hi=w();vh(f,Pj(new Qj,$e,pe,kf,Re,ch,le,Mg,Hj,Ah,Of,dh,bh,Xf,Ng,wi,Hi))}var Yf=B(c.g,
sf().oz);if(gd(Yf))mj=!1;else var ji=B(c.g,sf().qr),mj=eM(ji);if(mj){var xi="Property '"+B(c.g,sf().$)+"' cannot have more than 1 value",Og=B(c.g,sf().$).G,Ij=qN(b,Og.b()?null:Og.c(),"notCollection"),nj=(new A).d(xi),oj=(new A).d(xi),zk=H(z(),(new J).aa([b.k])),ng=z(),gh=B(c.g,sf().Kh).G,ki=gh.b()?null:gh.c(),Zi=B(c.g,sf().$).G,li=qN(b,Zi.b()?null:Zi.c(),"notCollection")+"/prop",$i=(new A).d(xi),pj=(new A).d("1"),Tf=w(),mi=w(),aj=w(),Ii=w(),qj=w(),Pl=w(),ni=w(),Ak=w(),Jj=w(),$k=w(),wl=w(),Am=w(),
ip=H(z(),G());z();Oj();var xo=(new $g).a().wa(),kw=w(),Cu=w(),Nq=H(ng,(new J).aa([rN(new sN,ki,li,$i,Tf,mi,pj,aj,Ii,qj,Pl,ni,Ak,Jj,$k,wl,Am,ip,xo,kw,Cu)]));Nj();z();Oj();var Tr=(new $g).a().wa();Nj();z();Oj();var yo=(new $g).a().wa();Nj();z();Oj();var Wm=(new $g).a().wa();Nj();z();Oj();var Ur=(new $g).a().wa();Nj();z();Oj();var gt=(new $g).a().wa();Nj();var Vr=w();Nj();z();Oj();var Oq=(new $g).a().wa();Nj();var jp=w();Nj();var Pq=w();Nj();var ht=w();vh(f,Pj(new Qj,Ij,xi,nj,oj,Tr,zk,yo,Wm,Ur,gt,Vr,
Nq,Oq,jp,Pq,ht))}var it=B(c.g,sf().vl).G;if(x(it)){var jt=it.i,Qq="Property '"+B(c.g,sf().$)+"' must match pattern "+jt,lw=B(c.g,sf().$).G,zo=qN(b,lw.b()?null:lw.c(),"pattern"),Ao=(new A).d(Qq),kt=(new A).d(Qq),Wr=H(z(),(new J).aa([b.k])),kp=z(),Du=B(c.g,sf().Kh).G,lt=Du.b()?null:Du.c(),mt=B(c.g,sf().$).G,nt=qN(b,mt.b()?null:mt.c(),"pattern"),Eu=(new A).d(Qq),Rq=(new A).d(jt),Wn=w(),Fu=w(),mw=w(),nw=w(),Sq=w(),ot=w(),Tq=w(),Uq=w(),pt=w(),Vq=w(),ow=w(),pw=w(),qw=H(z(),G());z();Oj();var ty=(new $g).a(),
vy=[rN(new sN,lt,nt+"/prop",Eu,Rq,Wn,Fu,mw,nw,Sq,ot,Tq,Uq,pt,Vq,ow,pw,qw,ty.wa(),w(),w())],Bm=H(kp,(new J).aa(vy));Nj();z();Oj();var Gu=(new $g).a().wa();Nj();z();Oj();var rw=(new $g).a().wa();Nj();z();Oj();var sw=(new $g).a().wa();Nj();z();Oj();var Hu=(new $g).a().wa();Nj();z();Oj();var wy=(new $g).a().wa();Nj();var Xr=w();Nj();z();Oj();var Iu=(new $g).a().wa();Nj();var xy=w();Nj();var yy=w();Nj();var zy=w();vh(f,Pj(new Qj,zo,Qq,Ao,kt,Gu,Wr,rw,sw,Hu,wy,Xr,Bm,Iu,xy,yy,zy))}if(B(c.g,sf().$I).Fa()){var IA=
B(c.g,sf().$I),Cm=t(new u,function(){return function(a){a=a.G;return a.b()?null:a.c()}}(a)),Ju=z(),tw=IA.ka(Cm,Ju.s),qt="Property '"+B(c.g,sf().$)+"' must match some value in "+tw.ng(","),rt=B(c.g,sf().$).G,Ay=qN(b,rt.b()?null:rt.c(),"enum"),Yr=(new A).d(qt),Ku=(new A).d(qt),By=H(z(),(new J).aa([b.k])),lp=z(),st=B(c.g,sf().Kh).G,JA=st.b()?null:st.c(),mp=B(c.g,sf().$).G,Lu=qN(b,mp.b()?null:mp.c(),"enum")+"/prop",Cy=(new A).d(qt),Xq=t(new u,function(){return function(a){return""+a}}(a)),Mu=z(),uw=tw.ka(Xq,
Mu.s),tt=w(),vw=w(),KA=w(),Zr=w(),LA=w(),ZG=w(),k0=w(),dP=w(),l0=w(),$G=w(),eP=w(),m0=w(),n0=w(),o0=H(z(),G()),nea=w(),p0=w(),oea=H(lp,(new J).aa([rN(new sN,JA,Lu,Cy,tt,vw,KA,Zr,LA,ZG,k0,dP,l0,$G,eP,m0,n0,o0,uw,nea,p0)]));Nj();z();Oj();var pea=(new $g).a().wa();Nj();z();Oj();var qea=(new $g).a().wa();Nj();z();Oj();var rea=(new $g).a().wa();Nj();z();Oj();var sea=(new $g).a().wa();Nj();z();Oj();var tea=(new $g).a().wa();Nj();var uea=w();Nj();z();Oj();var aH=(new $g).a().wa();Nj();var vea=w();Nj();var q0=
w();Nj();var r0=w();vh(f,Pj(new Qj,Ay,qt,Yr,Ku,pea,By,qea,rea,sea,tea,uea,oea,aH,vea,q0,r0))}if(B(c.g,sf().xf).G.qa()){var s0=B(c.g,sf().xf).G,ww=s0.b()?null:s0.c();if(re(ta(),ww,"number")||re(ta(),ww,"float")||re(ta(),ww,"double")){var bH="Property '"+B(c.g,sf().$)+"'  value must be of type "+qi().hj+" or "+qi().rg,t0=B(c.g,sf().$).G,wea=qN(b,t0.b()?null:t0.c(),"dialectRange"),xw=(new A).d(bH),fP=(new A).d(bH),u0=H(z(),(new J).aa([b.k])),v0=z(),cH=B(c.g,sf().Kh).G,w0=cH.b()?null:cH.c(),ID=B(c.g,
sf().$).G,gP=qN(b,ID.b()?null:ID.c(),"dialectRange")+"/prop",x0=(new A).d(bH),y0=(new A).d(qd(function(){return function(a){R();var b=C().cb,b=Gc(D(new F,b,"or")),c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f);R();var h=Th(R(),"@list"),k=(new My).e(g.da),l=k.r,p=k.da,y=(new My).e(p),I=y.r,E=y.da,V=(new pq).e(E);R();var da=C().cb,da=Gc(D(new F,da,"datatype")),sa=Th(R(),da),da=(new My).e(V.da),ua=da.r,Ia=da.da,Pa=(new pq).e(Ia);R();var Za=Th(R(),"@id");R();var db=qi().hj.trim(),db=Th(R(),
db);qq(Pa,Za,db);T(ua,lq(R(),rq(sq(),Pa.r,Ia),O().ua));ua=da.r;sa=[sa];if(0>ua.x)throw(new X).e("0");Pa=sa.length|0;Ia=ua.x+Pa|0;hC(ua,Ia);Ca(ua.z,0,ua.z,Pa,ua.x);for(var Pa=ua.z,Qb=Pa.j.length,db=Za=0,bc=sa.length|0,Qb=bc<Qb?bc:Qb,bc=Pa.j.length,Qb=Qb<bc?Qb:bc;Za<Qb;)Pa.j[db]=sa[Za],Za=1+Za|0,db=1+db|0;ua.x=Ia;T(V.r,iC(jC(),da.r));T(I,lq(R(),rq(sq(),V.r,E),O().ua));I=y.r;E=y.da;V=(new pq).e(E);R();da=C().cb;da=Gc(D(new F,da,"datatype"));sa=Th(R(),da);da=(new My).e(V.da);ua=da.r;Ia=da.da;Pa=(new pq).e(Ia);
R();Za=Th(R(),"@id");R();db=qi().vi.trim();db=Th(R(),db);qq(Pa,Za,db);T(ua,lq(R(),rq(sq(),Pa.r,Ia),O().ua));ua=da.r;sa=[sa];if(0>ua.x)throw(new X).e("0");Pa=sa.length|0;Ia=ua.x+Pa|0;hC(ua,Ia);Ca(ua.z,0,ua.z,Pa,ua.x);Pa=ua.z;Qb=Pa.j.length;db=Za=0;bc=sa.length|0;Qb=bc<Qb?bc:Qb;bc=Pa.j.length;for(Qb=Qb<bc?Qb:bc;Za<Qb;)Pa.j[db]=sa[Za],Za=1+Za|0,db=1+db|0;ua.x=Ia;T(V.r,iC(jC(),da.r));T(I,lq(R(),rq(sq(),V.r,E),O().ua));R();FC();p=Py(vq(),p);y=lq(0,(new GC).mc(p,y.r),O().Nc);T(l,y);l=k.r;h=[h];if(0>l.x)throw(new X).e("0");
p=h.length|0;y=l.x+p|0;hC(l,y);Ca(l.z,0,l.z,p,l.x);p=l.z;V=p.j.length;E=I=0;da=h.length|0;V=da<V?da:V;da=p.j.length;for(V=V<da?V:da;I<V;)p.j[E]=h[I],I=1+I|0,E=1+E|0;l.x=y;T(g.r,iC(jC(),k.r));T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;h=k=0;y=c.length|0;l=y<l?y:l;y=g.j.length;for(l=l<y?l:y;k<l;)g.j[h]=c[k],k=1+k|0,h=1+h|0;e.x=f;T(a.r,iC(jC(),b.r))}}(a))),z0=(new A).d(qd(function(){return function(a,
b){var c=Qia(a),e=c+"_ointdoub1",c=c+"_ointdoub2",f=C().cb;QC(a,b,Gc(D(new F,f,"or")),e);b=C().yi;QC(a,e,Gc(D(new F,b,"first")),e+"_v");b=C().cb;b=Gc(D(new F,b,"datatype"));f=qi().hj;QC(a,e+"_v",b,f.trim());b=C().yi;QC(a,e,Gc(D(new F,b,"rest")),c);e=C().yi;QC(a,c,Gc(D(new F,e,"first")),c+"_v");e=C().cb;e=Gc(D(new F,e,"datatype"));b=qi().vi;QC(a,c+"_v",e,b.trim());e=C().yi;e=Gc(D(new F,e,"rest"));b=C().yi;return QC(a,c,e,Gc(D(new F,b,"nil")))}}(a))),xea=w(),sMa=w(),tMa=w(),uMa=w(),vMa=w(),wMa=w(),
xMa=w(),yMa=w(),zMa=w(),DMa=w(),EMa=w(),FMa=w(),AMa=w(),BMa=H(z(),G());z();Oj();var CMa=(new $g).a().wa(),xQa=H(v0,(new J).aa([rN(new sN,w0,gP,x0,xea,sMa,tMa,uMa,vMa,wMa,xMa,yMa,zMa,DMa,EMa,FMa,AMa,BMa,CMa,y0,z0)]));Nj();z();Oj();var yQa=(new $g).a().wa();Nj();z();Oj();var zQa=(new $g).a().wa();Nj();z();Oj();var AQa=(new $g).a().wa();Nj();z();Oj();var BQa=(new $g).a().wa();Nj();z();Oj();var CQa=(new $g).a().wa();Nj();var DQa=w();Nj();z();Oj();var EQa=(new $g).a().wa();Nj();var FQa=w();Nj();var GQa=
w();Nj();var HQa=w();vh(f,Pj(new Qj,wea,bH,xw,fP,yQa,u0,zQa,AQa,BQa,CQa,DQa,xQa,EQa,FQa,GQa,HQa))}else if(re(ta(),ww,"link")){var m4="Property '"+B(c.g,sf().$)+"'  value must be of a link",BAa=B(c.g,sf().$).G,IQa=qN(b,BAa.b()?null:BAa.c(),"dialectRange"),JQa=(new A).d(m4),KQa=(new A).d(m4),LQa=H(z(),(new J).aa([b.k])),apb=z(),I9a=B(c.g,sf().Kh).G,bpb=I9a.b()?null:I9a.c(),J9a=B(c.g,sf().$).G,cpb=qN(b,J9a.b()?null:J9a.c(),"dialectRange")+"/prop",dpb=(new A).d(m4),epb=(new A).d(qd(function(){return function(a){R();
var b=C().cb,b=Gc(D(new F,b,"nodeKind")),c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f);R();var h=Th(R(),"@id");R();var k=C().cb,k=Gc(D(new F,k,"IRI")),k=Th(R(),k);qq(g,h,k);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,k=h=0,p=c.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),b.r))}}(a))),fpb=(new A).d(qd(function(){return function(a,
b){Qia(a);var c=C().cb,c=Gc(D(new F,c,"nodeKind")),e=C().cb;return QC(a,b,c,Gc(D(new F,e,"IRI")))}}(a))),gpb=w(),hpb=w(),ipb=w(),jpb=w(),kpb=w(),lpb=w(),mpb=w(),npb=w(),opb=w(),ppb=w(),qpb=w(),rpb=w(),spb=w(),tpb=H(z(),G());z();Oj();var upb=(new $g).a().wa(),vpb=H(apb,(new J).aa([rN(new sN,bpb,cpb,dpb,gpb,hpb,ipb,jpb,kpb,lpb,mpb,npb,opb,ppb,qpb,rpb,spb,tpb,upb,epb,fpb)]));Nj();z();Oj();var wpb=(new $g).a().wa();Nj();z();Oj();var xpb=(new $g).a().wa();Nj();z();Oj();var ypb=(new $g).a().wa();Nj();z();
Oj();var zpb=(new $g).a().wa();Nj();z();Oj();var Apb=(new $g).a().wa();Nj();var Bpb=w();Nj();z();Oj();var Cpb=(new $g).a().wa();Nj();var Dpb=w();Nj();var Epb=w();Nj();var Fpb=w();vh(f,Pj(new Qj,IQa,m4,JQa,KQa,wpb,LQa,xpb,ypb,zpb,Apb,Bpb,vpb,Cpb,Dpb,Epb,Fpb))}else if(re(ta(),ww,"guid")){var CAa="Property '"+B(c.g,sf().$)+"'  value must be of type xsd:string \x3e "+ww,K9a=B(c.g,sf().$).G,Gpb=qN(b,K9a.b()?null:K9a.c(),"dataRange"),Hpb=(new A).d(CAa),Ipb=(new A).d(CAa),Jpb=H(z(),(new J).aa([b.k])),Kpb=
z(),L9a=B(c.g,sf().Kh).G,Lpb=L9a.b()?null:L9a.c(),M9a=B(c.g,sf().$).G,Mpb=qN(b,M9a.b()?null:M9a.c(),"dataRange")+"/prop",Npb=(new A).d(CAa),Opb=C().mj,Ppb=(new A).d(Gc(D(new F,Opb,"string"))),Qpb=w(),Rpb=w(),Spb=w(),Tpb=w(),Upb=w(),Vpb=w(),Wpb=w(),Xpb=w(),Ypb=w(),Zpb=w(),$pb=w(),aqb=w(),bqb=H(z(),G());z();Oj();var cqb=(new $g).a().wa(),dqb=w(),eqb=w(),fqb=H(Kpb,(new J).aa([rN(new sN,Lpb,Mpb,Npb,Qpb,Rpb,Spb,Tpb,Upb,Vpb,Wpb,Xpb,Ypb,Zpb,$pb,aqb,Ppb,bqb,cqb,dqb,eqb)]));Nj();z();Oj();var gqb=(new $g).a().wa();
Nj();z();Oj();var hqb=(new $g).a().wa();Nj();z();Oj();var iqb=(new $g).a().wa();Nj();z();Oj();var jqb=(new $g).a().wa();Nj();z();Oj();var kqb=(new $g).a().wa();Nj();var lqb=w();Nj();z();Oj();var mqb=(new $g).a().wa();Nj();var nqb=w();Nj();var oqb=w();Nj();var pqb=w();vh(f,Pj(new Qj,Gpb,CAa,Hpb,Ipb,gqb,Jpb,hqb,iqb,jqb,kqb,lqb,fqb,mqb,nqb,oqb,pqb))}else{var DAa="Property '"+B(c.g,sf().$)+"'  value must be of type "+ww,N9a=B(c.g,sf().$).G,qqb=qN(b,N9a.b()?null:N9a.c(),"dataRange"),rqb=(new A).d(DAa),
sqb=(new A).d(DAa),tqb=H(z(),(new J).aa([b.k])),uqb=z(),O9a=B(c.g,sf().Kh).G,vqb=O9a.b()?null:O9a.c(),P9a=B(c.g,sf().$).G,wqb=qN(b,P9a.b()?null:P9a.c(),"dataRange")+"/prop",xqb=(new A).d(DAa),yqb=(new A).d(ww),zqb=w(),Aqb=w(),Bqb=w(),Cqb=w(),Dqb=w(),Eqb=w(),Fqb=w(),Gqb=w(),Hqb=w(),Iqb=w(),Jqb=w(),Kqb=w(),Lqb=H(z(),G());z();Oj();var Mqb=(new $g).a().wa(),Nqb=w(),Oqb=w(),Pqb=H(uqb,(new J).aa([rN(new sN,vqb,wqb,xqb,zqb,Aqb,Bqb,Cqb,Dqb,Eqb,Fqb,Gqb,Hqb,Iqb,Jqb,Kqb,yqb,Lqb,Mqb,Nqb,Oqb)]));Nj();z();Oj();
var Qqb=(new $g).a().wa();Nj();z();Oj();var Rqb=(new $g).a().wa();Nj();z();Oj();var Sqb=(new $g).a().wa();Nj();z();Oj();var Tqb=(new $g).a().wa();Nj();z();Oj();var Uqb=(new $g).a().wa();Nj();var Vqb=w();Nj();z();Oj();var Wqb=(new $g).a().wa();Nj();var Xqb=w();Nj();var Yqb=w();Nj();var Zqb=w();vh(f,Pj(new Qj,qqb,DAa,rqb,sqb,Qqb,tqb,Rqb,Sqb,Tqb,Uqb,Vqb,Pqb,Wqb,Xqb,Yqb,Zqb))}}if(B(c.g,cg().Jg).Fa())var $qb=B(c.g,cg().Jg),arb=t(new u,function(){return function(a){a=a.G;return a.b()?null:a.c()}}(a)),brb=
z(),crb=$qb.ka(arb,brb.s),drb=C().Kc,Q9a=!crb.Ja(Gc(D(new F,drb,"anyNode")));else Q9a=!1;if(Q9a){var erb=B(c.g,cg().Jg),frb=t(new u,function(a){return function(b){b=b.G;b=b.b()?null:b.c();b=Md(a,b);if(null!==b){var c=b.Ba();if(he(c))return H(z(),(new J).aa([c.k]))}if(null!==b&&(c=b.Ba(),bg(c))){b=B(c.g,cg().Jg);var c=t(new u,function(){return function(a){a=a.G;return a.b()?null:a.c()}}(a)),e=z();return b.ka(c,e.s)}throw(new v).d(b);}}(a)),grb=z(),R9a=erb.md(frb,grb.s).pg(),EAa="Property '"+B(c.g,
sf().$)+"'  value must be of type "+B(c.g,cg().Jg),S9a=B(c.g,sf().$).G,hrb=qN(b,S9a.b()?null:S9a.c(),"objectRange"),irb=(new A).d(EAa),jrb=(new A).d(EAa),krb=H(z(),(new J).aa([b.k])),lrb=z(),T9a=B(c.g,sf().Kh).G,mrb=T9a.b()?null:T9a.c(),U9a=B(c.g,sf().$).G,nrb=qN(b,U9a.b()?null:U9a.c(),"objectRange")+"/prop",orb=(new A).d(EAa),prb=xx(R9a),qrb=w(),rrb=w(),srb=w(),trb=w(),urb=w(),vrb=w(),wrb=w(),xrb=w(),yrb=w(),zrb=w(),Arb=w(),Brb=w(),Crb=w();z();Oj();var Drb=(new $g).a().wa(),Erb=w(),Frb=w(),Grb=H(lrb,
(new J).aa([rN(new sN,mrb,nrb,orb,qrb,rrb,srb,trb,urb,vrb,wrb,xrb,yrb,zrb,Arb,Brb,Crb,prb,Drb,Erb,Frb)]));Nj();z();Oj();var Hrb=(new $g).a().wa();Nj();z();Oj();var Irb=(new $g).a().wa();Nj();z();Oj();var Jrb=(new $g).a().wa();Nj();z();Oj();var Krb=(new $g).a().wa();Nj();z();Oj();var Lrb=(new $g).a().wa();Nj();var Mrb=w();Nj();z();Oj();var Nrb=(new $g).a().wa();Nj();var Orb=w();Nj();var Prb=w();Nj();var Qrb=w();vh(f,Pj(new Qj,hrb,EAa,irb,jrb,Hrb,krb,Irb,Jrb,Krb,Lrb,Mrb,Grb,Nrb,Orb,Prb,Qrb));R9a.X(t(new u,
function(a,b,c){return function(e){e=aca(a.rb,e);e.b()||(e=e.c(),b.Ja(e.k)||Er(c,HHa(a,e,b.Om(e.k))))}}(a,e,f)))}return f.wa()}
function IHa(a){var b=JHa(a),c=EB(FB(),mK(a.rb)),e=w();a=function(){return function(a){return a.ba}}(a);var f=Di().s;if(f===Di().s)if(b===G())a=G();else{for(var f=b.fa(),g=f=oz(new pz,a(f),G()),h=b.sa();h!==G();)var k=h.fa(),k=oz(new pz,a(k),G()),g=g.ve=k,h=h.sa();a=f}else{f=Rf(b,f);for(g=b;!g.b();)h=g.fa(),f.Ic(a(h)),g=g.sa();a=f.lc()}f=tN().qf;g=Di();b=b.la(f,g.s);z();Oj();f=(new $g).a().wa();z();Oj();g=(new $g).a().wa();z();Oj();h=(new $g).a().wa();k=(new ct).a();return KHa(new uN,c,e,a,f,g,h,
b,k)}function qN(a,b,c){a=Wa().Ia(a.k);if(x(a))return a=a.i,b=(new Cf).e(b),a+"_"+Gj(b.zd)+"_"+c+"_validation";if(w()===a)throw Lb(Mb(),(new Nb).e("Cannot generate validation for dialect node without ID"));throw(new v).d(a);}function HHa(a,b,c){var e=B(b.g,Tj().Qi);a=t(new u,function(a,b,c){return function(e){return FHa(a,b,e,c.Om(b.k))}}(a,b,c));b=z();return e.md(a,b.s).wa()}
function JHa(a){var b=Wa().Ia(B(a.rb.g,ed().vj));b.b()?b=w():(b=b.c(),b=Wa().Ia(B(b.g,fd().cs)));b=b.b()?w():B(b.c().g,OA().ft).G;if(b.b())a=w();else{var c=b.c(),b=!1,e=null,c=Wa().Ia(Md(a,c));a:{if(x(c)&&(b=!0,e=c,c=e.i,null!==c&&(c=c.Ba(),he(c)))){a=HHa(a,c,H(xz(),G()));break a}if(b&&(b=e.i,null!==b&&(b=b.Ba(),bg(b)))){a=LHa(a,b);break a}a=G()}a=(new A).d(a)}return a.b()?G():a.c()}
function LHa(a,b){var c=H(xz(),G());Wg();var e=Yg(new Zg,(new $g).a()).gb;b=B(b.g,cg().Jg);var f=t(new u,function(){return function(a){a=a.G;return a.b()?null:a.c()}}(a)),g=z();b.ka(f,g.s).X(t(new u,function(a,b,c){return function(e){e=Md(a,e);if(null!==e&&(e=e.Ba(),he(e)))return Er(b,HHa(a,e,c.Om(e.k)))}}(a,e,c)));return e.wa()}pN.prototype.HK=function(a){this.rb=a;return this};pN.prototype.$classData=q({nTa:0},!1,"amf.plugins.document.vocabularies.validation.AMFDialectValidations",{nTa:1,f:1,Cz:1});
function vN(){this.g2=this.U=null}vN.prototype=new r;vN.prototype.constructor=vN;vN.prototype.a=function(){this.U=(new AM).a();this.g2=H(fc().Sg,G());return this};function MHa(a,b,c){b=b.eb.R((R(),Th(R(),"$ref")));var e=b.pb().nb;if(O().Wa===e)c=qe(),e=Ac().fi,b=L(b,c,e),0<=(b.length|0)&&"#"===b.substring(0,1)||(c=a.g2,b=kd(ta(),b,"#",0),a.g2=c.Ij(Wj((new md).vc(b))));else{a=Bc().iu;e="Unexpected $ref with "+b;b=b.we();var f=w();Cc(c,a,"",f,e,b.ga)}}vN.prototype.iX=function(a){return HB(ib(),a)};
vN.prototype.bO=function(a,b){bd(a)&&(NHa(this,a.Vd,b),this.g2.X(t(new u,function(a){return function(b){0<=(b.length|0)&&"http:"===b.substring(0,5)||0<=(b.length|0)&&"https:"===b.substring(0,6)?BM(a.U,b,qL(),(R(),Th(R(),b))):BM(a.U,b,JDa(),(R(),Th(R(),b)))}}(this))));return this.U};
function NHa(a,b,c){Aw(b)&&b.eb.Ta((R(),Th(R(),"$ref"))).qa()?(MHa(a,b,c),b=b.Uf.xb(t(new u,function(a,b){return function(c){var h=b.Bb.Ib(t(new u,function(){return function(a){a=a.Da;var b=wN(),c=Ac().fi;return"$ref"===L(a,b,c).ya}}(a))).c();return!(null===c?null===h:c.h(h))}}(a,b)))):b=b.Uf;b.X(t(new u,function(a,b){return function(c){NHa(a,c,b)}}(a,c)))}vN.prototype.$classData=q({pTa:0},!1,"amf.plugins.document.webapi.JsonRefsReferenceHandler",{pTa:1,f:1,KY:1});function xN(){}xN.prototype=new r;
xN.prototype.constructor=xN;xN.prototype.a=function(){return this};xN.prototype.VDa=function(a,b){var c=b.r;b=b.da;var e=(new pq).e(b);Bv(new Cv,"$ref",a,O().Wa,Gd()).Va(e);T(c,lq(R(),rq(sq(),e.r,b),O().ua))};xN.prototype.$classData=q({LTa:0},!1,"amf.plugins.document.webapi.contexts.OasRefEmitter$",{LTa:1,f:1,gUa:1});var OHa=void 0;function yN(){OHa||(OHa=(new xN).a());return OHa}function zN(){zv.call(this);this.sya=this.PGa=null}zN.prototype=new pla;zN.prototype.constructor=zN;function PHa(){}
PHa.prototype=zN.prototype;zN.prototype.gL=function(a){return ax(this.of.pF(),a,B(a.ca(),Db().wd).G,G())};zN.prototype.Ci=function(a,b,c){zv.prototype.Ci.call(this,a,b,c);pc(Os(),G());QHa||(QHa=(new AN).a());this.PGa=QHa;this.sya=Hv((new Cf).e("union"));return this};zN.prototype.RGa=function(){return this.PGa};zN.prototype.uya=function(){return this.sya};function BN(){this.Q=null}BN.prototype=new r;BN.prototype.constructor=BN;function RHa(){}d=RHa.prototype=BN.prototype;
d.pF=function(){return vv(function(a){return function(b,c,e){return CN(new DN,b,c,e,a.tj())}}(this))};d.uaa=function(){return qd(function(a){return function(b,c){return(new SHa).FK(b,c,a.tj())}}(this))};d.RN=function(){return qd(function(a){return function(b,c){return(new THa).Xaa(b,c,a.tj())}}(this))};d.QS=function(){return qd(function(a){return function(b,c){return(new UHa).EK(b,c,a.tj())}}(this))};d.L_=function(){return vv(function(a){return function(b,c,e){return(new VHa).qA(b,c,e,a.tj())}}(this))};
d.Kaa=function(){return vv(function(a){return function(b,c,e){return WHa(b,c,e,a.tj())}}(this))};d.nda=function(){return qd(function(){return function(a,b){var c=new XHa;c.Hr=a;c.Ma=b;return c}}(this))};d.sA=function(a){this.Q=a;return this};function YHa(a){return vv(function(a){return function(c,e,f){return ZHa(new EN,c,e,f,a.tj())}}(a))}function $Ha(){this.dh=null}$Ha.prototype=new r;$Ha.prototype.constructor=$Ha;
$Ha.prototype.$classData=q({PTa:0},!1,"amf.plugins.document.webapi.contexts.PayloadContext$$anon$1",{PTa:1,f:1,PY:1});function FN(){Hw.call(this);this.lW=this.Pa=this.gI=null}FN.prototype=new Kma;FN.prototype.constructor=FN;FN.prototype.NT=function(){Zf();return(new $f).d(this.gI)};FN.prototype.$classData=q({UTa:0},!1,"amf.plugins.document.webapi.contexts.Raml08EmitterVersionFactory$$anon$4",{UTa:1,Qna:1,f:1});function GN(){}GN.prototype=new r;GN.prototype.constructor=GN;GN.prototype.a=function(){return this};
GN.prototype.VDa=function(a,b){a=Fva(R(),a);T(b.r,a)};GN.prototype.$classData=q({aUa:0},!1,"amf.plugins.document.webapi.contexts.RamlRefEmitter$",{aUa:1,f:1,gUa:1});var aIa=void 0;function HN(){aIa||(aIa=(new GN).a());return aIa}function IN(){zv.call(this)}IN.prototype=new pla;IN.prototype.constructor=IN;function bIa(){}bIa.prototype=IN.prototype;IN.prototype.gL=function(a){var b=new cIa;b.Eh=a;return b};IN.prototype.Si=function(){return this.jc};
function gla(a){var b=a.pCa();a.cya(b.b()?a.EGa().k:b.c())}function AN(){}AN.prototype=new r;AN.prototype.constructor=AN;AN.prototype.a=function(){return this};AN.prototype.zCa=function(a){return oca(a)};AN.prototype.$classData=q({uUa:0},!1,"amf.plugins.document.webapi.parser.CommonOasTypeDefMatcher$",{uUa:1,f:1,JUa:1});var QHa=void 0;function JN(){}JN.prototype=new r;JN.prototype.constructor=JN;JN.prototype.a=function(){return this};
JN.prototype.zCa=function(a){var b=og();return null!==a&&a===b?"number":oca(a)};JN.prototype.$classData=q({vUa:0},!1,"amf.plugins.document.webapi.parser.JsonSchemaTypeDefMatcher$",{vUa:1,f:1,JUa:1});var dIa=void 0;function KN(){Ev.call(this)}KN.prototype=new Fv;KN.prototype.constructor=KN;KN.prototype.a=function(){Ev.prototype.tc.call(this,Jv().sE,"2.0 AnnotationTypeDeclaration");return this};
KN.prototype.$classData=q({xUa:0},!1,"amf.plugins.document.webapi.parser.OasHeader$Oas20AnnotationTypeDeclaration$",{xUa:1,xB:1,f:1});var eIa=void 0;function Bla(){eIa||(eIa=(new KN).a());return eIa}function LN(){Ev.call(this)}LN.prototype=new Fv;LN.prototype.constructor=LN;LN.prototype.a=function(){Ev.prototype.tc.call(this,Jv().sE,"2.0 DataType");return this};LN.prototype.$classData=q({yUa:0},!1,"amf.plugins.document.webapi.parser.OasHeader$Oas20DataType$",{yUa:1,xB:1,f:1});var fIa=void 0;
function xla(){fIa||(fIa=(new LN).a());return fIa}function MN(){Ev.call(this)}MN.prototype=new Fv;MN.prototype.constructor=MN;MN.prototype.a=function(){Ev.prototype.tc.call(this,Jv().sE,"2.0 DocumentationItem");return this};MN.prototype.$classData=q({zUa:0},!1,"amf.plugins.document.webapi.parser.OasHeader$Oas20DocumentationItem$",{zUa:1,xB:1,f:1});var gIa=void 0;function wla(){gIa||(gIa=(new MN).a());return gIa}function NN(){Ev.call(this)}NN.prototype=new Fv;NN.prototype.constructor=NN;
NN.prototype.a=function(){Ev.prototype.tc.call(this,Jv().u0,"2.0 Extension");return this};NN.prototype.$classData=q({AUa:0},!1,"amf.plugins.document.webapi.parser.OasHeader$Oas20Extension$",{AUa:1,xB:1,f:1});var hIa=void 0;function Dla(){hIa||(hIa=(new NN).a());return hIa}function ON(){Ev.call(this)}ON.prototype=new Fv;ON.prototype.constructor=ON;ON.prototype.a=function(){Ev.prototype.tc.call(this,Jv().Y2,"2.0");return this};
ON.prototype.$classData=q({BUa:0},!1,"amf.plugins.document.webapi.parser.OasHeader$Oas20Header$",{BUa:1,xB:1,f:1});var iIa=void 0;function vla(){iIa||(iIa=(new ON).a());return iIa}function PN(){Ev.call(this)}PN.prototype=new Fv;PN.prototype.constructor=PN;PN.prototype.a=function(){Ev.prototype.tc.call(this,Jv().sE,"2.0 NamedExample");return this};PN.prototype.$classData=q({CUa:0},!1,"amf.plugins.document.webapi.parser.OasHeader$Oas20NamedExample$",{CUa:1,xB:1,f:1});var jIa=void 0;
function yla(){jIa||(jIa=(new PN).a());return jIa}function QN(){Ev.call(this)}QN.prototype=new Fv;QN.prototype.constructor=QN;QN.prototype.a=function(){Ev.prototype.tc.call(this,Jv().u0,"2.0 Overlay");return this};QN.prototype.$classData=q({DUa:0},!1,"amf.plugins.document.webapi.parser.OasHeader$Oas20Overlay$",{DUa:1,xB:1,f:1});var kIa=void 0;function Ela(){kIa||(kIa=(new QN).a());return kIa}function RN(){Ev.call(this)}RN.prototype=new Fv;RN.prototype.constructor=RN;
RN.prototype.a=function(){Ev.prototype.tc.call(this,Jv().sE,"2.0 ResourceType");return this};RN.prototype.$classData=q({EUa:0},!1,"amf.plugins.document.webapi.parser.OasHeader$Oas20ResourceType$",{EUa:1,xB:1,f:1});var lIa=void 0;function zla(){lIa||(lIa=(new RN).a());return lIa}function SN(){Ev.call(this)}SN.prototype=new Fv;SN.prototype.constructor=SN;SN.prototype.a=function(){Ev.prototype.tc.call(this,Jv().sE,"2.0 SecurityScheme");return this};
SN.prototype.$classData=q({FUa:0},!1,"amf.plugins.document.webapi.parser.OasHeader$Oas20SecurityScheme$",{FUa:1,xB:1,f:1});var mIa=void 0;function Cla(){mIa||(mIa=(new SN).a());return mIa}function TN(){Ev.call(this)}TN.prototype=new Fv;TN.prototype.constructor=TN;TN.prototype.a=function(){Ev.prototype.tc.call(this,Jv().sE,"2.0 Trait");return this};TN.prototype.$classData=q({GUa:0},!1,"amf.plugins.document.webapi.parser.OasHeader$Oas20Trait$",{GUa:1,xB:1,f:1});var nIa=void 0;
function Ala(){nIa||(nIa=(new TN).a());return nIa}function UN(){Ev.call(this)}UN.prototype=new Fv;UN.prototype.constructor=UN;UN.prototype.a=function(){Ev.prototype.tc.call(this,Jv().$ca,"3\\.0\\.[0-9]+");return this};UN.prototype.$classData=q({HUa:0},!1,"amf.plugins.document.webapi.parser.OasHeader$Oas30Header$",{HUa:1,xB:1,f:1});var oIa=void 0;function Kv(){oIa||(oIa=(new UN).a());return oIa}
function jw(){Mr.call(this);this.ida=this.fAa=this.BG=this.NJ=this.eL=this.uE=this.QL=this.nK=this.Cp=this.Fp=this.wo=this.Gs=this.Es=this.ro=this.dA=this.to=this.mA=this.CA=this.Lxa=null}jw.prototype=new pia;jw.prototype.constructor=jw;function pIa(){}pIa.prototype=jw.prototype;function qIa(a,b){var c=b.zr,e=(new zi).a();ac(c,e);Ai(a,b.zr)}
function cz(a,b,c,e){var f=!1,g=null;a=a.bo(b,t(new u,function(){return function(a){return a.to}}(a)),c);if(x(a)&&(f=!0,g=a,a=g.i,Xh(a)))return(new A).d(a);f&&(f=g.i,g=Or(),null!==c&&c===g&&(e.b()||e.c().R("Fragment of type "+rz(ka(f))+" does not conform to the expected type DataType")));return w()}function rIa(a,b){var c=Pr();b=a.bo(b,t(new u,function(){return function(a){return a.eL}}(a)),c);a=(new sIa).Bu(a);if(b.b())return w();a=Qr(a);b=b.c();return a.Ia(b)}d=jw.prototype;d.bC=function(){return this.fAa};
d.Baa=function(a){return On(a)?(a=B(a.ea,VN().$).G,tIa(this,a.b()?null:a.c(),Nr())):Mn(a)?(a=B(a.ea,VN().$).G,uIa(this,a.b()?null:a.c(),Nr())):os(a)?(a=B(a.ca(),Pg().$).G,cz(this,a.b()?null:a.c(),Nr(),w())):dn(a)?(a=B(a.g,Ej().$).G,vIa(this,a.b()?null:a.c(),Nr())):tn(a)?(a=B(a.g,vi().$).G,WN(this,a.b()?null:a.c(),Nr())):Cn(a)?(a=B(a.g,Bn().$).G,wIa(this,a.b()?null:a.c(),Nr())):Mr.prototype.Baa.call(this,a)};
function tIa(a,b,c){var e=w(),f=!1,g=null;a=a.bo(b,t(new u,function(){return function(a){return a.ro}}(a)),c);if(x(a)&&(f=!0,g=a,a=g.i,On(a)))return(new A).d(a);f&&(f=g.i,g=Or(),null!==c&&c===g&&(e.b()||e.c().R("Fragment of type "+rz(ka(f))+" does not conform to the expected type ResourceType")));return w()}function xIa(a,b){var c=Pr();b=a.bo(b,t(new u,function(){return function(a){return a.uE}}(a)),c);a=(new yIa).Bu(a);if(b.b())return w();a=Qr(a);b=b.c();return a.Ia(b)}
function zIa(a,b){var c=Pr();b=a.bo(b,t(new u,function(){return function(a){return a.NJ}}(a)),c);a=(new AIa).Bu(a);if(b.b())return w();a=Qr(a);b=b.c();return a.Ia(b)}function BIa(a,b,c,e){var f=!1,g=null;a=a.bo(b,pc(fc().db,G()),c);if(x(a)&&(f=!0,g=a,a=g.i,Xn(a)))return(new A).d(a);f&&(f=g.i,g=Or(),null!==c&&c===g&&(e.b()||e.c().R("Fragment of type "+rz(ka(f))+" does not conform to the expected type DocumentationItem")));return w()}
d.qu=function(){var a=Mr.prototype.qu.call(this).wa(),b=(new dd).Qd(this.to),c=(new dd).Qd(this.ro),e=pf().s,b=vp(b,c,e),c=(new dd).Qd(this.wo),e=pf(),b=b.la(c,e.s),c=(new dd).Qd(this.Es),e=pf(),b=b.la(c,e.s),c=(new dd).Qd(this.Gs),e=pf(),b=b.la(c,e.s),c=(new dd).Qd(this.Fp),e=pf(),b=b.la(c,e.s),c=(new dd).Qd(this.Cp),e=pf(),b=b.la(c,e.s),c=(new dd).Qd(this.nK),e=pf(),b=b.la(c,e.s),c=(new dd).Qd(this.QL),e=pf(),b=b.la(c,e.s),c=(new dd).Qd(this.eL),e=pf(),b=b.la(c,e.s),c=(new dd).Qd(this.NJ),e=pf(),
b=b.la(c,e.s),c=(new dd).Qd(this.uE),e=pf(),b=b.la(c,e.s).wa(),c=Di();return a.la(b,c.s)};function uIa(a,b,c){var e=w(),f=!1,g=null;a=a.bo(b,t(new u,function(){return function(a){return a.wo}}(a)),c);if(x(a)&&(f=!0,g=a,a=g.i,Mn(a)))return(new A).d(a);f&&(f=g.i,g=Or(),null!==c&&c===g&&(e.b()||e.c().R("Fragment of type "+rz(ka(f))+" does not conform to the expected type Trait")));return w()}
function CIa(a,b){var c=a.ai.Ta(b);if(x(c)&&(c=c.i)&&c.$classData&&c.$classData.v.iS)return c;var c=(new A).d(b),e=a.CG(),f=(new Np).a(),g=pc(fc().db,G()),h=pc(fc().db,G()),k=pc(fc().db,G()),l=pc(fc().db,G()),p=pc(fc().db,G()),y=pc(fc().db,G()),I=pc(fc().db,G()),E=pc(fc().db,G()),V=pc(fc().db,G()),da=pc(fc().db,G()),sa=pc(fc().db,G()),ua=pc(fc().db,G()),Ia=pc(fc().db,G()),Pa=pc(fc().db,G()),Za=pc(fc().db,G()),db=pc(fc().db,G()),c=(new jw).TU(c,g,h,k,l,p,y,I,E,V,da,sa,ua,Ia,Pa,Za,e,f,db);a.ai=a.ai.Zb((new P).N(b,
c));return c}function wIa(a,b,c){b=a.bo(b,t(new u,function(){return function(a){return a.Cp}}(a)),c);a=(new DIa).Bu(a);if(b.b())return w();a=Qr(a);b=b.c();return a.Ia(b)}function EIa(a,b,c,e){e=uIa(a,c,e);if(x(e))return e.i;sia(a,"Trait "+c+" not found",b);return(new FIa).Rq(c,b)}
function Ai(a,b){var c=!1,e=null;a:if(On(b))e=a.ro,c=B(b.ea,VN().$).G,c=c.b()?null:c.c(),a.ro=e.Zb((new P).N(c,b));else if(Mn(b))e=a.wo,c=B(b.ea,VN().$).G,c=c.b()?null:c.c(),a.wo=e.Zb((new P).N(c,b));else if(os(b)){e=a.bC();c=B(b.ca(),Pg().$).G;var c=c.b()?null:c.c(),f=a.iG();if(x(f))c=f.i+"."+c;else if(w()!==f)throw(new v).d(f);dc(e,c,b);e=a.to;c=B(b.ca(),Pg().$).G;c=c.b()?null:c.c();a.to=e.Zb((new P).N(c,b))}else{if(dn(b)&&(c=!0,e=b,Yh(e.E,n(GIa)))){b=a.uE;c=B(e.g,Ej().$).G;c=c.b()?null:c.c();a.uE=
b.Zb((new P).N(c,e));break a}c?(b=a.Es,c=B(e.g,Ej().$).G,c=c.b()?null:c.c(),a.Es=b.Zb((new P).N(c,e))):wn(b)?(e=a.Gs,c=B(b.g,vn().$).G,c=c.b()?null:c.c(),a.Gs=e.Zb((new P).N(c,b))):tn(b)?(e=a.Fp,c=B(b.g,vi().$).G,c=c.b()?null:c.c(),a.Fp=e.Zb((new P).N(c,b))):Cn(b)?(e=a.Cp,c=B(b.g,Bn().$).G,c=c.b()?null:c.c(),a.Cp=e.Zb((new P).N(c,b))):Zn(b)?(e=a.nK,c=B(b.g,lh().$).G,c=c.b()?null:c.c(),a.nK=e.Zb((new P).N(c,b))):zn(b)?(e=a.QL,c=B(b.g,kDa().$).G,c=c.b()?null:c.c(),a.QL=e.Zb((new P).N(c,b))):qo(b)?(e=
a.eL,c=B(b.g,po().$).G,c=c.b()?null:c.c(),a.eL=e.Zb((new P).N(c,b))):jn(b)?(e=a.NJ,c=B(b.g,hn().$).G,c=c.b()?null:c.c(),a.NJ=e.Zb((new P).N(c,b))):Mr.prototype.j5.call(a,b)}return a}function HIa(a,b){var c=Pr();b=a.bo(b,t(new u,function(){return function(a){return a.QL}}(a)),c);a=(new IIa).Bu(a);if(b.b())return w();a=Qr(a);b=b.c();return a.Ia(b)}function JIa(a,b,c){var e=Nr(),e=wIa(a,c,e);if(x(e))return e.i;sia(a,"Response '"+c+"' not found",b);return(new XN).Rq(c,b)}
function vIa(a,b,c){b=a.bo(b,t(new u,function(){return function(a){return a.Es}}(a)),c);a=(new KIa).Bu(a);if(b.b())return w();a=Qr(a);b=b.c();return a.Ia(b)}function LIa(a,b,c){var e=!1;a=a.Ti.Ta(b);a.b()?a=w():(a=a.c(),a=(new A).d(a.Vw));if(x(a)&&(e=!0,a=a.i,Zn(a)))return(new A).d(a);e&&(c.b()||c.c().R("Fragment defined in "+b+" does not conform to the expected type NamedExample"));return w()}
function MIa(a,b,c,e){e=tIa(a,c,e);if(x(e))return e.i;sia(a,"ResourceType "+c+" not found",b);return(new NIa).Rq(c,b)}d.CG=function(){return this.BG};function WN(a,b,c){var e=w(),f=!1,g=null;a=a.bo(b,t(new u,function(){return function(a){return a.Fp}}(a)),c);if(x(a)&&(f=!0,g=a,a=g.i,tn(a)))return(new A).d(a);f&&(f=g.i,g=Or(),null!==c&&c===g&&(e.b()||e.c().R("Fragment of type "+rz(ka(f))+" does not conform to the expected type SecurityScheme")));return w()}
d.TU=function(a,b,c,e,f,g,h,k,l,p,y,I,E,V,da,sa,ua,Ia,Pa){this.Lxa=a;this.CA=b;this.mA=c;this.to=e;this.dA=f;this.ro=g;this.Es=h;this.Gs=k;this.wo=l;this.Fp=p;this.Cp=y;this.nK=I;this.QL=E;this.uE=V;this.eL=da;this.NJ=sa;this.BG=ua;this.fAa=Ia;this.ida=Pa;Mr.prototype.zBa.call(this,b,c,f,ua,Ia);return this};function OIa(a,b,c){var e=LIa(a,c,w());if(x(e))return e.i;sia(a,"NamedExample '"+c+"' not found",b);return(new YN).Rq(c,b)}
function PIa(a,b){var c=Nr();b=a.bo(b,t(new u,function(){return function(a){return a.nK}}(a)),c);a=(new QIa).Bu(a);if(b.b())return w();a=Qr(a);b=b.c();return a.Ia(b)}d.iG=function(){return this.Lxa};function RIa(a,b){var c=Nr();b=a.bo(b,t(new u,function(){return function(a){return a.Gs}}(a)),c);a=(new SIa).Bu(a);if(b.b())return w();a=Qr(a);b=b.c();return a.Ia(b)}
d.ACa=function(a,b){this.CA.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.CA=b.CA.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));a.CA.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.CA=b.CA.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));this.mA.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.mA=b.mA.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));a.mA.X(t(new u,function(a,b){return function(a){if(null!==
a){var c=a.pa();a=a.Ba();b.mA=b.mA.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));this.ai.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.ai=b.ai.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));a.ai.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.ai=b.ai.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));this.Ti.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.Ti=b.Ti.Zb((new P).N(c,a))}else throw(new v).d(a);
}}(this,b)));a.Ti.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.Ti=b.Ti.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));this.to.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.to=b.to.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));a.to.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.to=b.to.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));this.dA.X(t(new u,function(a,b){return function(a){if(null!==
a){var c=a.pa();a=a.Ba();b.dA=b.dA.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));a.dA.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.dA=b.dA.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));this.E.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.E=b.E.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));a.E.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.E=b.E.Zb((new P).N(c,a))}else throw(new v).d(a);
}}(this,b)));this.ro.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.ro=b.ro.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));a.ro.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.ro=b.ro.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));this.Es.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.Es=b.Es.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));a.Es.X(t(new u,function(a,b){return function(a){if(null!==
a){var c=a.pa();a=a.Ba();b.Es=b.Es.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));this.Gs.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.Gs=b.Gs.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));a.Gs.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.Gs=b.Gs.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));this.wo.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.wo=b.wo.Zb((new P).N(c,a))}else throw(new v).d(a);
}}(this,b)));a.wo.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.wo=b.wo.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));this.Fp.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.Fp=b.Fp.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));a.Fp.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.Fp=b.Fp.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));this.Cp.X(t(new u,function(a,b){return function(a){if(null!==
a){var c=a.pa();a=a.Ba();b.Cp=b.Cp.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)));a.Cp.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.Cp=b.Cp.Zb((new P).N(c,a))}else throw(new v).d(a);}}(this,b)))};d.$classData=q({iS:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations",{iS:1,eN:1,f:1});function Ema(){this.oQ=this.rP=this.E=this.nj=this.Ah=this.xc=this.sk=null;this.bda=this.k$=this.Xw=this.lfa=!1;this.l=null}Ema.prototype=new r;
Ema.prototype.constructor=Ema;function TIa(a){a.oQ=(new A).d(t(new u,function(){return function(a){return a.DV()}}(a)));return a}d=Ema.prototype;d.R=function(a){ZN(this,a)};
function UIa(a,b,c){if(a.k$){b=tma(wma(),b,a.Ah);var e=a.sk;if(e&&e.$classData&&e.$classData.v.S7){var f=a.nj,e=VIa(a,e.ta.k+"/"+a.xc.t.ba,b),g=WIa(),h=z();f.FM(e.ka(g,h.s))}else if(a.l.Yj()===e)f=a.nj,e=VIa(a,null,b),g=WIa(),h=z(),f.FM(e.ka(g,h.s));else throw(new v).d(e);}else b=(new Eh).Vb(b,a.Ah);return a.oQ.qa()?a.oQ.c().R(b):Zc().h(c)?b.KE():Yc().h(c)?b.Ip():Ci().h(c)?b.t5():b.Hf()}function $N(a,b){a.E.Wb(b);return a}d.Tn=function(a){return(ZN(this,a),NaN)|0};d.u=function(){return"\x3cfunction1\x3e"};
function Uh(a){a.k$=!0;return a}d.rp=function(a){return!(ZN(this,a),!0)};function XIa(a){a.Xw=!0;return a}function aO(a){a.lfa=!0;return a}function VIa(a,b,c){if(c&&c.$classData&&c.$classData.v.R7)return YIa(ZIa(),b,c.sx,G(),a.Ah);if(c&&c.$classData&&c.$classData.v.l7)return G();throw(new v).d(c);}function ex(a,b){a.rP=(new A).d(b);return a}
function $Ia(a,b,c){a.lfa?b=Bma().w_(b,a.Ah):a.Xw?(rma||(rma=(new yw).a()),b=rma.w_(b,a.Ah)):b=(new Fw).Vb(b,a.Ah);return Jq(c)&&a.rP.qa()?b.Zca(a.rP.c()):a.oQ.qa()?a.oQ.c().R(b):Zc().h(c)?b.Sba():Yc().h(c)?b.s5():b.b3()}function ZN(a,b){var c=b.i,e=b.i.pb().nb;O().yd===e&&a.bda||(e=a.xc.ja,Jq(e)&&a.rP.qa()?c=a.rP.c().R(c):fs(e)?(e=(new A).d(e.Se).i,c=$Ia(a,c,e)):c=UIa(a,c,e),c.ha().Ur(a.nj),a.sk.X(t(new u,function(a,b,c){return function(e){var l=a.xc,p=Ke(M(),c).Ur(a.E);Fh(e,l,b,p)}}(a,c,b))))}
function aJa(a){a.bda=!0;return a}d.$classData=q({DVa:0},!1,"amf.plugins.document.webapi.parser.spec.common.SpecParserOps$ObjectField",{DVa:1,f:1,za:1});function bO(){this.sF=null}bO.prototype=new Mma;bO.prototype.constructor=bO;bO.prototype.a=function(){bJa=this;this.sF=Xv();return this};bO.prototype.$classData=q({GVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.AnyDefaultType$",{GVa:1,MVa:1,f:1});var bJa=void 0;function cO(){bJa||(bJa=(new bO).a());return bJa}
function dO(){this.ba=null}dO.prototype=new Pma;dO.prototype.constructor=dO;dO.prototype.a=function(){Ow.prototype.e.call(this,"draft-3");return this};dO.prototype.$classData=q({RVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.JSONSchemaDraft3SchemaVersion$",{RVa:1,QY:1,f:1});var cJa=void 0;function dJa(){cJa||(cJa=(new dO).a());return cJa}function eO(){this.ba=null}eO.prototype=new Pma;eO.prototype.constructor=eO;eO.prototype.a=function(){Ow.prototype.e.call(this,"draft-4");return this};
eO.prototype.$classData=q({SVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.JSONSchemaDraft4SchemaVersion$",{SVa:1,QY:1,f:1});var eJa=void 0;function fJa(){eJa||(eJa=(new eO).a());return eJa}function fO(){this.ba=null}fO.prototype=new Pma;fO.prototype.constructor=fO;fO.prototype.a=function(){Ow.prototype.e.call(this,"");return this};fO.prototype.$classData=q({TVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.JSONSchemaUnspecifiedVersion$",{TVa:1,QY:1,f:1});var gJa=void 0;
function gO(){this.Lda=this.ba=null}gO.prototype=new Pma;gO.prototype.constructor=gO;function hJa(){}hJa.prototype=gO.prototype;gO.prototype.xBa=function(a,b,c){this.Lda=b;Ow.prototype.e.call(this,a);if("schema"!==b&&"parameter"!==b){a=Bc().nh;b="Invalid schema position '"+b+"', only 'schema' and 'parameter' are valid";var e=w(),f=w(),g=w();c.Hc(a.k,"",e,b,f,xc().tb,g)}return this};function iJa(a){return!!(a&&a.$classData&&a.$classData.v.eoa)}
function hO(){Sw.call(this);this.Eb=this.Ma=this.Zf=null;this.q1=!1;this.ud=null}hO.prototype=new Zma;hO.prototype.constructor=hO;function iO(){}iO.prototype=hO.prototype;
hO.prototype.Ua=function(){var a=H(Wg(),G());if(this.ud.cda().OS){var b=Dd(this.Zf.ca(),th().Vc);if(!b.b()){var c=b.c(),b=this.ud,c=c.t.t.Tb,e=new jJa,f=z(),b=Cca(b,c.$b(e,f.s)).jn(t(new u,function(){return function(a){var b=Dca(a.g),c=lh().$;return uh(b,c)?!1:!yb(a).qa()}}(this)));a:{if(null!==b&&(c=b.pa(),e=b.Ba(),G().h(c)&&G().h(e))){b=G();break a}if(null!==b&&(c=b.pa(),e=b.Ba(),G().h(e))){b=kJa(this,c.pc(),c.sa(),this.q1);break a}if(null!==b&&(c=b.pa(),e=b.Ba(),G().h(c))){b=kJa(this,w(),e,this.q1);
break a}if(null!==b)e=b.pa(),b=b.Ba(),c=e.pc(),e=e.sa(),f=z(),b=kJa(this,c,e.la(b,f.s),this.q1);else throw(new v).d(b);}(new A).d(Er(a,b))}}b=Sw.prototype.Ua.call(this);c=z();return b.la(a,c.s)};hO.prototype.LK=function(a,b,c,e,f,g,h){this.Zf=a;this.Ma=b;this.Eb=c;this.q1=g;this.ud=h;Sw.prototype.yE.call(this,a,b,c,e,f,h);return this};
function kJa(a,b,c,e){var f=H(Wg(),G());e=e?"x-amf-example":"example";b.b()||(b=b.c(),vh(f,Fca(e,b,a.Ma,a.ud)));c.Fa()&&vh(f,(new wh).GE(Hv((new Cf).e("examples")),c,a.Ma,a.Eb,a.ud));return f}hO.prototype.$classData=q({iJ:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasAnyShapeEmitter",{iJ:1,gN:1,f:1});function jO(){bx.call(this);this.MV=null}jO.prototype=new hna;jO.prototype.constructor=jO;function kO(){}kO.prototype=jO.prototype;
function lJa(a){var b=zca(new sh,a.eb,Hv((new Cf).e("examples")),w(),t(new u,function(a){return function(b){return a.xa.AF(b)}}(a)),a.PV(),a.l.va).fh();if(b.Fa()){a=a.xa;var c=th().Vc;qf(a,c,b)}}jO.prototype.Hi=function(){bx.prototype.ZV.call(this);lJa(this);var a=yc((new K).Y(this.eb),"type");if(!a.b()){a.c();var a=this.xa,b=(new Xi).a();ac(a,b)}return this.xa};jO.prototype.PV=function(){return this.MV};
jO.prototype.uy=function(a){bx.prototype.n6a.call(this,a,a.va);this.MV=(new lO).wA(!0,!1,!1);return this};function mO(a){var b=mJa(a),c=b.TT;return x(c)?c.i:a.tDa(b)}function nJa(a){return mG(a)?(new A).d(a.TV.u()):w()}
function mJa(a){var b=a.i.pb().nb;if(O().ua===b){var b=a.i,c=Pc(),b=L(b,c,a.Jo()),b=nO.prototype.Lca.call(a,b);if(x(b)&&(b=b.i,null!==b&&Hc(Ic(b.i),zc()).qa())){var c=b.i,e=zc(),c=L(c,e,a.Jo()).ya;return oJa(new oO,a,c,b.i,nJa(b.i),(a.F9(),w()))}M();b=(new N).a();b=(new Ui).P((new Q).a(),b);a.Df.R(b);var c=a.Jo(),e=rh().oY,f=b.k,g="Cannot parse "+a.XT+" Schema expression out of a non string value",h=a.i,k=w();Cc(c,e,f,k,g,h.ga);return oJa(new oO,a,"",a.i,w(),(new A).d(b))}if(O().Nc===b)return M(),
b=(new N).a(),b=(new Ui).P((new Q).a(),b),a.Df.R(b),c=a.Jo(),e=rh().oY,f=b.k,g="Cannot parse "+a.XT+" Schema expression out of a non string value",h=a.i,k=w(),Cc(c,e,f,k,g,h.ga),oJa(new oO,a,"",a.i,w(),(new A).d(b));b=a.i;c=zc();b=L(b,c,a.Jo()).ya;return oJa(new oO,a,b,a.i,nJa(a.i),(a.F9(),w()))}function pO(){this.UJ=null;this.ma=!1;this.l=null}pO.prototype=new r;pO.prototype.constructor=pO;function pJa(){}pJa.prototype=pO.prototype;
pO.prototype.R$=function(){if(!this.ma){var a=(new A).d(this.xa.k);this.UJ=t(new u,function(a,c){return function(e){return ina(jna(),c,e,a.l.Mb())}}(this,a));this.ma=!0}return this.UJ};pO.prototype.AT=function(){return this.ma?this.UJ:this.R$()};function qJa(a){var b=a.l.sM(a.eb);b.b()||(b=b.c(),rJa(new qO,a.l,b,a.xa,(new A).d(a.eb),a.l.Mb()).Pc())}
pO.prototype.ZV=function(){qJa(this);var a=(new K).Y(this.eb),b=this.l,c=Pg().gd;Bh(a,"displayName",Uh(Ch(Dh(b,c,this.l.Mb()),this.xa)));a=(new K).Y(this.eb);b=this.l;c=Pg().fb;Bh(a,"description",Uh(Ch(Dh(b,c,this.l.Mb()),this.xa)));a=yc((new K).Y(this.eb),"default");if(!a.b()&&(a=a.c(),b=a.i.pb().nb,O().yd!==b&&(b=cx(dx(a.i,this.xa.k+"/default",!1,!1,!1,this.l.Mb())),fda(this.xa,a),b=b.xl,!b.b()))){var b=b.c(),c=this.xa,e=Pg().vh,a=Ke(M(),a);Fh(c,e,b,a)}a=(new K).Y(this.eb);b=this.l;c=Pg().Kg;Bh(a,
"enum",ex(Ch(Dh(b,c,this.l.Mb()),this.xa),this.AT()));a=(new K).Y(this.eb);b=this.l;c=Wh().Bq;Bh(a,"minItems",Uh(Ch(Dh(b,c,this.l.Mb()),this.xa)));a=(new K).Y(this.eb);b=this.l;c=Wh().rr;Bh(a,"maxItems",Uh(Ch(Dh(b,c,this.l.Mb()),this.xa)));a=(new K).Y(this.eb);b=Kh((new Cf).e("externalDocs"));c=this.l;e=th().bh;Bh(a,b,ex(Ch(Dh(c,e,this.l.Mb()),this.xa),t(new u,function(a){return function(b){return kna(lna(),b,a.l.Mb())}}(this))));a=yc((new K).Y(this.eb),"xml");a.b()||(a=a.c(),b=B(this.xa.ca(),Pg().$).G,
b=nna(ona(new gx,b.b()?null:b.c(),a.i,this.l.Mb())),c=this.xa,e=th().wn,a=Ke(M(),a),Fh(c,e,b,a));yc((new K).Y(this.eb),Kh((new Cf).e("or"))).qa()&&(new sJa).JK(this.l,this.eb,this.xa).Pc();yc((new K).Y(this.eb),Kh((new Cf).e("and"))).qa()&&(new tJa).JK(this.l,this.eb,this.xa).Pc();yc((new K).Y(this.eb),Kh((new Cf).e("xone"))).qa()&&(new uJa).JK(this.l,this.eb,this.xa).Pc();yc((new K).Y(this.eb),Kh((new Cf).e("not"))).qa()&&(new vJa).JK(this.l,this.eb,this.xa).Pc();a=yc((new K).Y(this.eb),"facets");
a.b()||(a=a.c(),b=this.l,c=a.i,e=Pc(),wJa(new rO,b,L(c,e,this.l.Mb()),t(new u,function(a,b){return function(c){var e=qna(a.xa,c);if(0<=(c.length|0)&&"("===c.substring(0,1)){var l=a.l.Mb(),p=rh().vz,y=e.k;c="User defined facet name '"+c+"' must not begin with open parenthesis";var I=w();Cc(l,p,y,I,c,b.ga)}return e}}(this,a))).fh());a=yc((new K).Y(this.eb),"type");a.b()||(b=a.c(),a=this.xa.ha(),tf(),b=b.Da.ga,a.Wb((new ix).Ui(zf(0,Af(Bf(),b.vf,b.Ef,b.ag,b.fg)))));return this.xa};
pO.prototype.iC=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};function sO(){this.sF=null}sO.prototype=new Mma;sO.prototype.constructor=sO;sO.prototype.a=function(){xJa=this;this.sF=gg();return this};sO.prototype.$classData=q({RWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.StringDefaultType$",{RWa:1,MVa:1,f:1});var xJa=void 0;function tO(){xJa||(xJa=(new sO).a());return xJa}function uO(){this.yb=this.m=this.Ea=null}uO.prototype=new r;uO.prototype.constructor=uO;
uO.prototype.Dr=function(a,b){this.Ea=a;this.m=b;return this};uO.prototype.Yj=function(){null===this.yb&&this.Ig();return this.yb};function yJa(a){zJa||(zJa=(new vO).a());var b;b=a.Ea;b=Lr(M(),b);b=(new wO).P((new Q).a(),b);var c=a.Ea,e=Pc(),c=L(c,e,a.m),e=(new K).Y(c),f=Xm().Jf;Bh(e,"url",Ch(Dh(a,f,a.m),b));e=(new K).Y(c);f=Xm().$;Bh(e,"name",Ch(Dh(a,f,a.m),b));jx(new kx,b,c,G(),a.m).Pc();xO(a.m,b.k,c,"license");return b}uO.prototype.Ig=function(){null===this.yb&&(this.yb=yO())};
uO.prototype.$classData=q({WWa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.LicenseParser",{WWa:1,f:1,ig:1});function zO(){Ux.call(this);this.ud=null}zO.prototype=new eoa;zO.prototype.constructor=zO;function AJa(){}AJa.prototype=zO.prototype;zO.prototype.PO=function(a,b,c,e,f){this.ud=f;Ux.prototype.PO.call(this,a,b,c,e,f);return this};zO.prototype.XN=function(a,b,c){Fy(this.ud.of)&&Ux.prototype.XN.call(this,a,b,c)};function AO(){this.yb=this.m=this.xc=this.ta=this.W=null}AO.prototype=new r;
AO.prototype.constructor=AO;function BJa(){}BJa.prototype=AO.prototype;AO.prototype.Yj=function(){null===this.yb&&this.yD();return this.yb};AO.prototype.yD=function(){null===this.yb&&(this.yb=yO())};AO.prototype.cH=function(a,b,c,e){this.W=a;this.ta=b;this.xc=c;this.m=e;return this};
function CJa(a,b){b=yc((new K).Y(a.W),b);if(!b.b()){b=b.c().i;var c=Pc(),e=uv().gc;b=L(b,CM(e,c),a.Sb());c=t(new u,function(a){return function(b){return DJa(EJa(new BO,a.ta.k,b,a.Sb()))}}(a));e=z();b.ka(c,e.s).X(t(new u,function(a){return function(b){return nh(a.ta,a.xc,b)}}(a)))}}function CO(){this.yb=this.m=this.Ea=null}CO.prototype=new r;CO.prototype.constructor=CO;CO.prototype.Dr=function(a,b){this.Ea=a;this.m=b;return this};CO.prototype.Yj=function(){null===this.yb&&this.Ig();return this.yb};
CO.prototype.Ig=function(){null===this.yb&&(this.yb=yO())};function FJa(a){GJa||(GJa=(new DO).a());var b;b=a.Ea;b=Lr(M(),b);b=(new EO).P((new Q).a(),b);var c=a.Ea,e=Pc(),c=L(c,e,a.m),e=(new K).Y(c),f=bn().Jf;Bh(e,"url",Ch(Dh(a,f,a.m),b));e=(new K).Y(c);f=bn().$;Bh(e,"name",Ch(Dh(a,f,a.m),b));e=(new K).Y(c);f=bn().XI;Bh(e,"email",Ch(Dh(a,f,a.m),b));jx(new kx,b,c,G(),a.m).Pc();xO(a.m,b.k,c,"contact");return b}
CO.prototype.$classData=q({hXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OrganizationParser",{hXa:1,f:1,ig:1});function FO(){this.Jq=this.Rd=this.Nb=this.zb=null;this.uda=!1;this.yb=this.m=null}FO.prototype=new r;FO.prototype.constructor=FO;function HJa(){}HJa.prototype=FO.prototype;function IJa(a){var b=a.Rd;b.b()?b=w():(b=B(b.c().g,Tm().$f).G,b=(new A).d(b.b()?null:b.c()));var b=b.b()?"":b.c(),c=a.zb.Da,e=zc();return""+b+L(c,e,a.m).ya}
FO.prototype.Yj=function(){null===this.yb&&this.Ig();return this.yb};FO.prototype.WO=function(a,b,c,e,f,g){this.zb=a;this.Nb=b;this.Rd=c;this.Jq=e;this.uda=f;this.m=g;return this};
function JJa(a,b,c,e,f){var g=a.Rd;g.b()?g=w():(g=g.c(),g=(new A).d(B(g.g,Tm().Pn).xb(t(new u,function(){return function(a){a=B(a.g,Ej().df).G;return"path"===(a.b()?null:a.c())}}(a))).ae(pc(fc().db,G()),qd(function(){return function(a,b){var c=B(b.g,Ej().$).G;return a.Hh(c.b()?null:c.c(),b)}}(a)))));var h=g.b()?pc(fc().db,G()):g.c(),g=Aka(Uu(),IJa(a));e=g.xb(e);var h=t(new u,function(a,b,c,e){return function(f){var g=b.Ta(f);if(x(g))f=KJa(g.i,c.k),f.E.Wb((new GO).a());else{if(w()!==g)throw(new v).d(g);
g=e.Ib(t(new u,function(a,b){return function(a){var c=B(a.g,Ej().$).G;return(c.b()?null:c.c())===b?(a=B(a.g,Ej().df).G,"path"===(a.b()?null:a.c())):!1}}(a,f)));if(x(g))f=g.i;else{if(w()!==g)throw(new v).d(g);var g=LJa(c,f),h=Ej().df,g=Eb(g,h,"path"),h=Ej().kj,g=dj(g,h,!0);f=g.wX(f);var h=qi().Mj,k=xh().af;Eb(f,k,h);g.E.Wb((new GO).a());f=g}}return f}}(a,h,b,f)),k=z();e=e.ka(h,k.s);c||MJa(a,b,g,f);a=f.xb(t(new u,function(a,b){return function(a){return!b.Ja(a)}}(a,e)));b=z();return e.la(a,b.s)}
function NJa(a,b,c){var e=Wa().Ia(B(b.ca(),Pg().vh));e.b()||(e=e.c(),OJa(a,e,c));B(b.ca(),Pg().Kg).X(t(new u,function(a,b){return function(c){OJa(a,c,b)}}(a,c)));di(b)&&B(b.ea,th().Vc).X(t(new u,function(a,b){return function(c){c=Wa().Ia(B(c.g,lh().Ho));c.b()||(c=c.c(),OJa(a,c,b))}}(a,c)))}
function PJa(a,b,c){var e=a.m.Dv,f=py().e9,e=null===e?null===f:e.h(f);xO(a.m,b.k,c,e?"resourceType":"endPoint");var f=(new K).Y(c),g=Tm().$;Bh(f,"displayName",Uh(Ch(Dh(a,g,a.m),b)));f=(new K).Y(c);g=Tm().fb;Bh(f,"description",Uh(Ch(Dh(a,g,a.m),b)));f=(new K).Y(c);g=Tm().wi();g=Ch(Dh(a,g,a.m),b);Bh(f,"is",aJa(aO(ex(g,t(new u,function(a,b){return function(c){return QJa(RJa(),b,c,a.m)}}(a,t(new u,function(a,b){return function(a){return Bda(b,a)}}(a,b))))))));f=yc((new K).Y(c),"type");f.b()||(f=f.c(),
SJa(TJa(new HO,f.i,t(new u,function(a,b){return function(a){return Ada(b,a)}}(a,b)),qd(function(a,b){return function(c,e){return MIa(a.m.le(),b.i,c,e)}}(a,f)),a.m)));g=qs((new K).Y(c),"(get|patch|put|post|delete|options|head|connect|trace)"+(a.uda?"\\??":""));g.Fa()&&(f=H(Wg(),G()),g.X(t(new u,function(a,b,c){return function(e){if(UJa(a.m)){var f=a.m.Xg,g=a.m.yf;z();Oj();var h=(new $g).a(),f=(new mz).Vk(f,g,(new yp).co("",h.wa(),(new Np).a(),Op(),w()),(new A).d(a.m.le()),(new A).d(a.m.Xi),(new A).d(a.m),
a.m.Dv)}else f=a.m.Xg,g=a.m.yf,z(),Oj(),h=(new $g).a(),f=(new oy).Vk(f,g,(new yp).co("",h.wa(),(new Np).a(),Op(),w()),(new A).d(a.m.le()),(new A).d(a.m.Xi),(new A).d(a.m),a.m.Dv);g=(new IO).$m(e,t(new u,function(a,b){return function(a){return VJa(b,a)}}(a,b)),a.uda,f).W1();vh(c,g);e=a.m.YE;g=(new ph).e(g.k);return e.Oe(JO(g,"%3F"),f)}}(a,b,f))),g=Tm().xk,f=gr(new hr,f,(new N).a()),ff(b,g,f));var f=t(new u,function(a,b){return function(c){return WJa(XJa(),b,c,a.m)}}(a,t(new u,function(a,b){return function(a){return b.tI(a)}}(a,
b)))),g=(new K).Y(c),h=Tm().oc;Bh(g,"securedBy",aO(ex(Ch(Dh(a,h,a.m),b),f)));g=null;g=KO(new LO,G(),G(),G(),G(),G(),G());M();f=null;f=(new N).a();h=qs((new K).Y(c),a.$Ga());h=hd(h,new YJa);if(w()===h)h=JJa(a,b,e,ZJa(a),G());else{if(!x(h))throw(new v).d(h);var h=h.i,f=Ke(M(),h.i),h=h.i,k=Pc(),h=L(h,k,a.m).Bb,k=t(new u,function(a,b){return function(c){var e=ax(a.m.Oh.Q1(),c,t(new u,function(a,b){return function(a){var c=b.k;H(z(),G());cj(a,c)}}(a,b)),!1).BC(),f=Ej().df,e=Eb(e,f,"path"),f=kr(e.g,Ej().Fc);
f.b()||(f=f.c(),NJa(a,f,c));return e}}(a,b)),l=uv(),h=h.ka(k,l.gc),h=JJa(a,b,e,t(new u,function(a,b){return function(c){return!b.Cd(t(new u,function(a,b){return function(a){a=B(a.g,Ej().$);return Xb(a,b)}}(a,c)))}}(a,h)),h)}var k=G(),l=G(),p=G(),y=G(),I=G(),g=MO(g,KO(new LO,k,h,l,p,y,I)),h=(new K).Y(c),k=Kh((new Cf).e("parameters")),h=yc(h,k);h.b()||(f=h.c(),h=f.i,k=Jc(),h=$Ja(new NO,L(h,k,a.m),b.k,Lx(Jx(),a.m)),g=MO(g,aKa(h,!1)),f=Ke(M(),f.i));h=g;null!==h&&(k=h.Ft,l=h.Hg,h=h.Fg,g.Fa()&&(g=Tm().Pn,
p=z(),k=k.la(l,p.s),l=z(),h=gr(new hr,k.la(h,l.s),f),Fh(b,g,h,f)));f=(new K).Y(c);g=Kh((new Cf).e("payloads"));f=yc(f,g);f.b()||(g=f.c(),f=Tm().mf,h=z(),k=[(new OO).$m(g,t(new u,function(a,b){return function(a){return b.Sr(a)}}(a,b)),!1,a.m).Sv()],h=gr(new hr,H(h,(new J).aa(k)),Ke(M(),g.i)),g=Ke(M(),g),Fh(b,f,h,g));vh(a.Jq,b);e?(Di(),f=[Jw().eea]):(Di(),f=[Jw().ru]);f=(new J).aa(f);g=Di().s;f=Ei(f,g);jx(new kx,b,c,f,a.m).Pc();f=qs((new K).Y(c),"^/.*");f.Fa()&&(e?f.X(t(new u,function(a,b,c){return function(e){var f=
e.Da.u(),g=a.m,h=Bo().Q8,k=(new ph).e(b.k),k=JO(k,"/applied"),l=w(),f="Nested endpoint in resourceType: '"+f+"'";tf();e=e.Da.ga;e=(new A).d((new uf).Ui(zf(0,Af(Bf(),e.vf,e.Ef,e.ag,e.fg))));var p=(new A).d(c.ga.Of);g.Hc(h.k,k,l,f,e,xc().tb,p)}}(a,b,c))):f.X(t(new u,function(a,b){return function(c){$B(a.m.Oh.k0(),c,a.Nb,(new A).d(b),a.Jq,!1).Pc()}}(a,b))))}
FO.prototype.Pc=function(){var a=IJa(this),b=this.Nb.R(a),c=Ke(M(),this.zb),b=cc(b,c),c=this.Rd;if(!c.b()){c=c.c();bKa();var e=(new PO).e(c.k);e.Rd=(new A).d(c);(new A).d(ac(b,e))}var c=this.zb.i,e=b.k,f=Gc(Tm().$f.t);wca(a,c,e,f,this.m);c=Tm().$f;e=Nh(new Oh,a,Ke(M(),this.zb.Da));ff(b,c,e);if(!zka(Uu(),a)){var c=this.m,e=rh().XR,f=b.k,g=yka(Uu(),a),h=this.zb.i,k=w();Cc(c,e,f,k,g,h.ga)}a:{for(c=this.Jq.Lb;!c.b();){e=B(c.fa().g,Tm().$f);if(Xb(e,a)){c=!0;break a}c=c.sa()}c=!1}c?(c=this.m,e=rh().ZX,
b=b.k,a="Duplicated resource path "+a,f=this.zb,g=w(),Cc(c,e,b,g,a,f.ga)):(a=this.zb.i.pb().nb,O().yd===a?vh(this.Jq,b):(a=this.zb.i,c=Pc(),a=L(a,c,this.m),PJa(this,b,a)))};function ZJa(a){return t(new u,function(){return function(){return!0}}(a))}FO.prototype.Ig=function(){null===this.yb&&(this.yb=yO())};
function OJa(a,b,c){if(wj(b)){var e=B(b.ea,xj().rf).G;e.b()?e=!1:(e=e.c(),e=(new ph).e(e),e=Vs(e,Dc(47)));if(e){a=a.m;var e=rh().k9,f=b.k;b=B(b.ea,xj().rf).G;b="Value '"+(b.b()?null:b.c())+"' of uri parameter must not contain '/' character";c=c.i;var g=w();Cc(a,e,f,g,b,c.ga)}}}
function MJa(a,b,c,e){e.X(t(new u,function(a,b){return function(c){var e=B(c.g,Ej().$).G;e.b()?e=!1:(e=e.c(),e=b.Ja(e));if(!e){var e=a.m,f=rh().GJ,y=c.k,I=w(),E=B(c.g,Ej().$).G;e.Vs(f,y,I,"Unused uri parameter "+(E.b()?null:E.c()),Zb(c.E,n(Fd)),Yb(c))}}}(a,c)));b=B(b.g,Tm().xk);e=t(new u,function(){return function(a){return Wa().Ia(B(a.g,Zm().kp)).wa()}}(a));var f=z();b=b.md(e,f.s);e=t(new u,function(){return function(a){return B(a.g,yn().lp)}}(a));f=z();b.md(e,f.s).X(t(new u,function(a,b){return function(c){var e=
B(c.g,Ej().$).G;e.b()?e=!1:(e=e.c(),e=b.Ja(e));if(!e){var e=a.m,f=rh().GJ,y=c.k,I=w(),E=B(c.g,Ej().$).G;e.Vs(f,y,I,"Unused operation uri parameter "+(E.b()?null:E.c()),Zb(c.E,n(Fd)),Yb(c))}}}(a,c)))}function QO(){this.W=null;this.hn=!1;this.yb=this.Tj=this.m=null}QO.prototype=new r;QO.prototype.constructor=QO;function cKa(){}cKa.prototype=QO.prototype;
QO.prototype.wc=function(){var a=dKa(this),b=(new K).Y(this.W),c=yn().um,c=Dma(Dh(this,c,this.m),a);Bh(b,"queryParameters",aJa(XIa(ex(c,t(new u,function(a,b){return function(c){noa||(noa=(new dy).a());return noa.EL(b,a.hn,c,a.m)}}(this,t(new u,function(a){return function(b){var c=wu(a.Tj).k;H(z(),G());cj(b,c)}}(this))))))));b=(new K).Y(this.W);c=yn().Qg;c=Dma(Dh(this,c,this.m),a);Bh(b,"headers",aJa(XIa(ex(c,t(new u,function(a,b){return function(c){return koa().EL(b,a.hn,c,a.m)}}(this,t(new u,function(a){return function(b){var c=
wu(a.Tj).k;H(z(),G());cj(b,c)}}(this))))))));b=yc((new K).Y(this.W),this.C_);if(!b.b()){var b=b.c(),c=b.i,e=Pc(),c=L(c,e,this.m).Bb,e=t(new u,function(a){return function(b){b=(new RO).$m(b,t(new u,function(a){return function(b){var c=wu(a.Tj).k;H(z(),G());cj(b,c)}}(a)),a.hn,a.m).BC();var c=Ej().df;return Eb(b,c,"path")}}(this)),f=uv(),f=c.ka(e,f.gc),c=wu(this.Tj),e=yn().lp,f=gr(new hr,f,Ke(M(),b.i)),b=Ke(M(),b);Fh(c,e,f,b)}b=yc((new K).Y(this.W),"body");if(!b.b()){b=b.c();c=H(Wg(),G());e=b.i.pb().nb;
if(O().yd===e){if(e=this.m.Oh.uF().nu(b,t(new u,function(a){return function(b){M();var c=(new N).a();b=Ue(b,"default",c);var c=wu(a.Tj).k,e=b.Ub();return b.Qb(c,e)}}(this)),!1,this.Qw).wc(),!e.b()){var f=e.c(),g=wu(this.Tj).Sr(w());g.E.Wb((new SO).a());Yx($x(),f);e=Ke(M(),b);e=cc(g,e);f=oB(kB(),f,g.k,w());g=vn().Fc;vh(c,ff(e,g,f))}}else O().Wa===e?(e=this.m.Oh.uF().nu(b,t(new u,function(a){return function(b){M();var c=(new N).a();b=Ue(b,"default",c);var c=wu(a.Tj).k,e=b.Ub();return b.Qb(c,e)}}(this)),
!1,this.Qw).wc(),e.b()||(f=e.c(),g=wu(this.Tj).Sr(w()),Yx($x(),f),e=Ke(M(),b),e=cc(g,e),f=oB(kB(),f,g.k,w()),g=vn().Fc,vh(c,ff(e,g,f)))):(e=b.i,f=Pc(),e=sv(e,f),Hp(e)&&(e=e.i,f=qs((new K).Y(e),".*/.*"),f.Fa()&&f.X(t(new u,function(a,b){return function(c){var e=a.m.Oh.Hda(),f=wu(a.Tj);return vh(b,ax(e,c,t(new u,function(a,b){return function(a){return b.Sr(a)}}(a,f)),!1).Sv())}}(this,c))),f=e.Bb.xb(t(new u,function(a,b){return function(c){c=c.Da;var e=zc();c=L(c,e,a.m).ya;if(null===c)throw(new Rg).a();
return!Sg(Tg(),b,c)}}(this,".*/.*"))),e=rq(sq(),f,e.ga.Of),Tc(e.Bb)&&(c.b()?(e=this.m.Oh.uF().nu(b,t(new u,function(a){return function(b){M();var c=(new N).a();b=Ue(b,"default",c);var c=wu(a.Tj).k,e=b.Ub();return b.Qb(c,e)}}(this)),!1,this.Qw).wc(),e.b()||(f=e.c(),g=wu(this.Tj).Sr(w()),Yx($x(),f),e=Ke(M(),b),e=cc(g,e),f=oB(kB(),f,g.k,w()),g=vn().Fc,vh(c,ff(e,g,f)))):e.Bb.X(t(new u,function(a){return function(b){var c=a.m,e=rh().zN,f=wu(a.Tj).k,g=b.Da,E=zc(),g="Unexpected key '"+L(g,E,a.m).ya+"'. Expecting valid media types.",
E=w();Cc(c,e,f,E,g,b.ga)}}(this))))));c.Fa()&&(e=wu(this.Tj),f=yn().mf,c=gr(new hr,c,Ke(M(),b.i)),b=Ke(M(),b),Fh(e,f,c,b))}this.uDa(this.Tj,a);a=this.Tj.t;a.b()||(a=a.c().E,M(),R(),b=this.W,a.Ur(Ke(0,lq(R(),b,O().ua))));return this.Tj.t};QO.prototype.Yj=function(){null===this.yb&&this.Ig();return this.yb};QO.prototype.Ig=function(){null===this.yb&&(this.yb=yO())};QO.prototype.XO=function(a,b,c,e){this.W=a;this.hn=c;this.m=e;this.Tj=(new vu).LO(b);return this};function TO(){this.l=null}
TO.prototype=new r;TO.prototype.constructor=TO;TO.prototype.X=function(a){a.R(wu(this.l.Tj))};function dKa(a){var b=new TO;if(null===a)throw Lb(Mb(),null);b.l=a;return b}TO.prototype.$classData=q({IXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlRequestParser$$anon$1",{IXa:1,f:1,Kna:1});function UO(){this.qb=this.zb=null;this.hn=!1;this.yb=this.m=null}UO.prototype=new r;UO.prototype.constructor=UO;function eKa(){}eKa.prototype=UO.prototype;
UO.prototype.$m=function(a,b,c,e){this.zb=a;this.qb=b;this.hn=c;this.m=e;return this};
UO.prototype.KH=function(){var a=(new Eh).Vb(this.zb.Da,this.m).Hf(),b=this.zb.i.pb().nb;if(O().yd===b){var b=wra(yra(),this.zb),c=Bn().$,b=ff(b,c,a),c=Bn().vn,b=ff(b,c,a);this.qb.R(b)}else if(O().Wa===b||O().Oi===b){b=this.zb.i;c=zc();b=L(b,c,this.m).ya;c=JIa(this.m.le(),this.zb.i,b);M();var e=(new N).a(),b=gL(c,b,e),c=Bn().$;ff(b,c,a).E.Ur(Ke(M(),this.zb))}else{b=this.zb.i;c=Pc();b=L(b,c,this.m);c=wra(yra(),this.zb);e=Bn().$;c=ff(c,e,a);this.qb.R(c);var e=B(c.g,Bn().$).G,e=e.b()?null:e.c(),f=Bn().vn;
Eb(c,f,e);this.hn&&re(ta(),a.u(),"?")&&(e=Bn().Ew,dj(c,e,!0),a=a.u(),a=(new ph).e(a),a=JO(a,"?"),e=Bn().$,Eb(c,e,a),e=Bn().vn,Eb(c,e,a));a=(new K).Y(b);e=Bn().fb;Bh(a,"description",Uh(Ch(Dh(this,e,this.m),c)));a=(new K).Y(b);e=Bn().Qg;e=Ch(Dh(this,e,this.m),c);Bh(a,"headers",aJa(XIa(ex(e,t(new u,function(a,b){return function(c){return koa().EL(b,a.hn,c,a.m)}}(this,t(new u,function(a,b){return function(a){var c=b.k;H(z(),G());cj(a,c)}}(this,c))))))));a=yc((new K).Y(b),"body");if(!a.b()){var a=a.c(),
e=H(Wg(),G()),f=Ke(M(),a),f=(new VO).P((new Q).a(),f),g=c.k;H(z(),G());cj(f,g);g=a.i.pb().nb;if(O().yd===g){g=this.m.Oh.uF().nu(a,t(new u,function(a,b){return function(a){var c=kB();M();var e=(new N).a();a=Ue(a,"default",e);var e=b.k,f=a.Ub();return oB(c,a.Qb(e,f),b.k,w())}}(this,f)),!1,this.Qw).wc();if(!g.b()){g=g.c();g.ha().Wb((new GO).a());f.E.Wb((new SO).a());Yx($x(),g);var h=vn().Fc;vh(e,ff(f,h,g))}f=yn().mf;e=gr(new hr,e,Ke(M(),a.i));a=Ke(M(),a);Fh(c,f,e,a)}else O().Wa===g?(g=this.m.Oh.uF().nu(a,
t(new u,function(a,b){return function(a){var c=kB();M();var e=(new N).a();a=Ue(a,"default",e);var e=b.k,f=a.Ub();return oB(c,a.Qb(e,f),b.k,w())}}(this,f)),!1,this.Qw).wc(),g.b()||(g=g.c(),Yx($x(),g),h=vn().Fc,vh(e,ff(f,h,g))),f=yn().mf,e=gr(new hr,e,Ke(M(),a.i)),a=Ke(M(),a),Fh(c,f,e,a)):(g=a.i,h=Pc(),g=sv(g,h),Hp(g)&&(g=g.i,h=qs((new K).Y(g),".*/.*"),h.Fa()&&h.X(t(new u,function(a,b,c){return function(e){return vh(b,ax(a.m.Oh.Hda(),e,t(new u,function(a,b){return function(a){return b.Sr(a)}}(a,c)),
!1).Sv())}}(this,e,c))),g=g.Bb.xb(t(new u,function(a,b){return function(c){c=c.Da;var e=zc();c=L(c,e,a.m).ya;if(null===c)throw(new Rg).a();return!Sg(Tg(),b,c)}}(this,".*/.*"))),sq(),h=g.pc(),h.b()?h=w():(h=h.c(),h=(new A).d(h.ga.Of)),g=rq(0,g,h.b()?"":h.c()),Tc(g.Bb)&&(e.b()?(f=this.m.Oh.uF().nu(a,t(new u,function(a,b){return function(a){M();var c=(new N).a();a=Ue(a,"default",c);var c=b.k,e=a.Ub();return a.Qb(c,e)}}(this,f)),!1,this.Qw).wc(),f.b()||(g=f.c(),h=c.Sr(w()),Yx($x(),g),f=Ke(M(),a),f=cc(h,
f),g=oB(kB(),g,h.k,w()),h=vn().Fc,vh(e,ff(f,h,g)))):g.Bb.X(t(new u,function(a,b){return function(c){var e=a.m,f=rh().zN,g=b.k,h=c.Da,da=zc(),h="Unexpected key '"+L(h,da,a.m).ya+"'. Expecting valid media types.",da=w();Cc(e,f,g,da,h,c.ga)}}(this,c))))),e.Fa()&&(f=yn().mf,e=gr(new hr,e,Ke(M(),a.i)),a=Ke(M(),a),Fh(c,f,e,a)))}a=(new K).Y(b);e=Kh((new Cf).e("examples"));a=yc(a,e);a.b()||(e=a.c(),f=(new WO).jC(e,this.m).fh(),a=Bn().Vc,f=gr(new hr,f,Ke(M(),e.i)),e=Ke(M(),e),Fh(c,a,f,e));xO(this.m,c.k,b,
"response");this.rDa(c,b);b=c}b.E.Ur(Ke(M(),this.zb));return b};UO.prototype.Yj=function(){null===this.yb&&this.Ig();return this.yb};UO.prototype.Ig=function(){null===this.yb&&(this.yb=yO())};
function fKa(a,b){var c=Yh(a.Ca.t.t.ha(),n(gKa)),e=a.Tya(a.Ca.t.t.Tb);if(c){R();var c=a.ZK(),f=Th(R(),c),c=(new My).e(b.da);a.iaa(e.fa()).Ob(c);e=c.r;a=[f];if(0>e.x)throw(new X).e("0");var g=a.length|0,f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);var g=e.z,h=g.j.length,k=0,l=0,p=a.length|0}else{R();c=a.ZK();f=Th(R(),c);c=(new My).e(b.da);g=c.r;l=c.da;k=(new My).e(l);h=Cq();p=a.o;a=t(new u,function(a){return function(b){return a.iaa(b)}}(a));var y=z();tq(h,p.Cb(e.ka(a,y.s)),k);R();FC();e=Py(vq(),l);e=lq(0,
(new GC).mc(e,k.r),O().Nc);T(g,e);e=c.r;a=[f];if(0>e.x)throw(new X).e("0");g=a.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;h=g.j.length;l=k=0;p=a.length|0}h=p<h?p:h;p=g.j.length;for(h=h<p?h:p;k<h;)g.j[l]=a[k],k=1+k|0,l=1+l|0;e.x=f;T(b.r,iC(jC(),c.r))}function fy(){this.yb=this.m=this.qb=this.Ea=null}fy.prototype=new r;fy.prototype.constructor=fy;
function hKa(a){var b=a.Ea,c=Pc(),b=L(b,c,a.m);iKa||(iKa=(new XO).a());var c=jKa(a.Ea),e=(new K).Y(b),f=YO().$;Bh(e,"name",Ch(Dh(a,f,a.m),c));a.qb.R(c);e=(new K).Y(b);f=YO().fb;Bh(e,"description",Ch(Dh(a,f,a.m),c));e=(new K).Y(b);f=YO().bh;Bh(e,"externalDocs",ex(Ch(Dh(a,f,a.m),c),t(new u,function(a){return function(b){return kna(lna(),b,a.m)}}(a))));jx(new kx,c,b,G(),a.m).Pc();xO(a.m,c.k,b,"tag");return c}fy.prototype.Yj=function(){null===this.yb&&this.Ig();return this.yb};
fy.prototype.Iba=function(a,b,c){this.Ea=a;this.qb=b;this.m=c;return this};fy.prototype.Ig=function(){null===this.yb&&(this.yb=yO())};fy.prototype.$classData=q({PXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.TagsParser",{PXa:1,f:1,ig:1});function ZO(){this.dh=null}ZO.prototype=new r;ZO.prototype.constructor=ZO;
ZO.prototype.a=function(){kKa=this;var a=H(fc().Sg,G()),a=(new P).N("paths",a),b="swagger info host basePath schemes consumes produces paths definitions parameters responses securityDefinitions security tags externalDocs".split(" ");if(0===(b.length|0))b=Yd();else{for(var c=Zd(new ee,Yd()),e=0,f=b.length|0;e<f;)fe(c,b[e]),e=1+e|0;b=c.gb}b=(new P).N("webApi",b);c="title description termsOfService contact license version".split(" ");if(0===(c.length|0))c=Yd();else{for(var e=Zd(new ee,Yd()),f=0,g=c.length|
0;f<g;)fe(e,c[f]),f=1+f|0;c=e.gb}c=(new P).N("info",c);e=["name","url","email"];if(0===(e.length|0))e=Yd();else{for(var f=Zd(new ee,Yd()),g=0,h=e.length|0;g<h;)fe(f,e[g]),g=1+g|0;e=f.gb}e=(new P).N("contact",e);f=["name","url"];if(0===(f.length|0))f=Yd();else{for(var g=Zd(new ee,Yd()),h=0,k=f.length|0;h<k;)fe(g,f[h]),h=1+h|0;f=g.gb}f=(new P).N("license",f);g=["attribute","wrapped","name","namespace","prefix"];if(0===(g.length|0))g=Yd();else{for(var h=Zd(new ee,Yd()),k=0,l=g.length|0;k<l;)fe(h,g[k]),
k=1+k|0;g=h.gb}g=(new P).N("xmlSerialization",g);h="get put post delete options head patch connect trace parameters $ref".split(" ");if(0===(h.length|0))h=Yd();else{for(var k=Zd(new ee,Yd()),l=0,p=h.length|0;l<p;)fe(k,h[l]),l=1+l|0;h=k.gb}h=(new P).N("pathItem",h);k="tags summary description externalDocs operationId consumes produces parameters responses schemes deprecated security".split(" ");if(0===(k.length|0))k=Yd();else{for(var l=Zd(new ee,Yd()),p=0,y=k.length|0;p<y;)fe(l,k[p]),p=1+p|0;k=l.gb}k=
(new P).N("operation",k);l=["url"];if(0===(l.length|0))l=Yd();else{for(var p=Zd(new ee,Yd()),y=0,I=l.length|0;y<I;)fe(p,l[y]),y=1+y|0;l=p.gb}l=(new P).N("externalDoc",l);p="name in description required type format allowEmptyValue items collectionFormat default maximum exclusiveMaximum minimum exclusiveMinimum maxLength minLength pattern maxItems minItems uniqueItems enum multipleOf deprecated example".split(" ");if(0===(p.length|0))p=Yd();else{for(var y=Zd(new ee,Yd()),I=0,E=p.length|0;I<E;)fe(y,
p[I]),I=1+I|0;p=y.gb}p=(new P).N("parameter",p);y=["name","in","description","required","schema"];if(0===(y.length|0))y=Yd();else{for(var I=Zd(new ee,Yd()),E=0,V=y.length|0;E<V;)fe(I,y[E]),E=1+E|0;y=I.gb}y=(new P).N("bodyParameter",y);I=["description","schema","headers","examples"];if(0===(I.length|0))I=Yd();else{for(var E=Zd(new ee,Yd()),V=0,da=I.length|0;V<da;)fe(E,I[V]),V=1+V|0;I=E.gb}I=(new P).N("response",I);E="description type items collectionFormat default maximum exclusiveMaximum minimum exclusiveMinimum maxLength minLength pattern maxItems minItems uniqueItems enum multipleOf".split(" ");
if(0===(E.length|0))E=Yd();else{for(var V=Zd(new ee,Yd()),da=0,sa=E.length|0;da<sa;)fe(V,E[da]),da=1+da|0;E=V.gb}E=(new P).N("headerParameter",E);V=["name","description","externalDocs"];if(0===(V.length|0))V=Yd();else{for(var da=Zd(new ee,Yd()),sa=0,ua=V.length|0;sa<ua;)fe(da,V[sa]),sa=1+sa|0;V=da.gb}V=(new P).N("tag",V);da="$ref $schema format title description maximum exclusiveMaximum minimum exclusiveMinimum maxLength minLength pattern maxItems minItems uniqueItems maxProperties minProperties required enum type items collectionFormat allOf properties additionalProperties discriminator readOnly xml externalDocs allOf anyOf dependencies multipleOf default example id name patternProperties".split(" ");
if(0===(da.length|0))da=Yd();else{for(var sa=Zd(new ee,Yd()),ua=0,Ia=da.length|0;ua<Ia;)fe(sa,da[ua]),ua=1+ua|0;da=sa.gb}a=[a,b,c,e,f,g,h,k,l,p,y,I,E,V,(new P).N("schema",da)];b=Ry(new Sy,Xs());c=0;for(e=a.length|0;c<e;)Ty(b,a[c]),c=1+c|0;this.dh=b.gb;return this};ZO.prototype.$classData=q({SXa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.Oas2Syntax$",{SXa:1,f:1,PY:1});var kKa=void 0;function lKa(){kKa||(kKa=(new ZO).a());return kKa}function $O(){this.dh=null}$O.prototype=new r;
$O.prototype.constructor=$O;
$O.prototype.a=function(){mKa=this;var a=fc().db,b=H(fc().Sg,G()),b=(new P).N("paths",b),c=H(fc().Sg,(new J).aa("openapi info servers paths components security tags externalDocs".split(" "))),c=(new P).N("webApi",c),e=H(fc().Sg,(new J).aa("title description termsOfService contact license version".split(" "))),e=(new P).N("info",e),f=H(fc().Sg,(new J).aa(["name","url","email"])),f=(new P).N("contact",f),g=H(fc().Sg,(new J).aa(["name","url"])),g=(new P).N("license",g),h=H(fc().Sg,(new J).aa(["attribute",
"wrapped","name","namespace","prefix"])),h=(new P).N("xmlSerialization",h),k=H(fc().Sg,(new J).aa("get put post delete options head patch connect trace parameters servers summary \\$ref".split(" "))),k=(new P).N("pathItem",k),l=H(fc().Sg,(new J).aa("tags summary description externalDocs operationId parameters requestBody responses callbacks deprecated security servers".split(" "))),l=(new P).N("operation",l),p=H(fc().Sg,(new J).aa("operationRef operationId description server parameters requestBody".split(" "))),
p=(new P).N("link",p),y=H(fc().Sg,(new J).aa(["url"])),y=(new P).N("externalDoc",y),I=H(fc().Sg,(new J).aa("name in description required deprecated allowEmptyValue style explode allowReserved schema example examples content".split(" "))),I=(new P).N("parameter",I),E=H(fc().Sg,(new J).aa("description required schema format allowEmptyValue items collectionFormat default maximum exclusiveMaximum minimum exclusiveMinimum maxLength minLength pattern maxItems minItems multipleOf uniqueItems enum multipleOf items example".split(" "))),
E=(new P).N("header",E),V=H(fc().Sg,(new J).aa(["description","content","required"])),V=(new P).N("request",V),da=H(fc().Sg,(new J).aa(["name","in","description","required","schema"])),da=(new P).N("bodyParameter",da),sa=H(fc().Sg,(new J).aa(["description","content","headers","links"])),sa=(new P).N("response",sa),ua=H(fc().Sg,(new J).aa(["schema","example","examples","encoding"])),ua=(new P).N("content",ua),Ia=H(fc().Sg,(new J).aa(["contentType","headers","style","explode","allowReserved"])),Ia=
(new P).N("encoding",Ia),Pa=H(fc().Sg,(new J).aa("description type items collectionFormat default maximum exclusiveMaximum minimum exclusiveMinimum maxLength minLength pattern maxItems minItems uniqueItems enum multipleOf".split(" "))),Pa=(new P).N("headerParameter",Pa),Za=H(fc().Sg,(new J).aa(["name","description","externalDocs"])),Za=(new P).N("tag",Za),db=H(fc().Sg,(new J).aa(["propertyName","mapping"])),db=(new P).N("discriminator",db),Qb=H(fc().Sg,(new J).aa("$ref $schema format title description maximum exclusiveMaximum minimum exclusiveMinimum maxLength minLength nullable pattern maxItems minItems uniqueItems maxProperties minProperties required enum type items collectionFormat allOf properties additionalProperties discriminator readOnly writeOnly xml deprecated externalDocs allOf anyOf oneOf dependencies multipleOf default example id name patternProperties".split(" "))),
b=[b,c,e,f,g,h,k,l,p,y,I,E,V,da,sa,ua,Ia,Pa,Za,db,(new P).N("schema",Qb)];this.dh=pc(a,(new J).aa(b));return this};$O.prototype.$classData=q({UXa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.Oas3Syntax$",{UXa:1,f:1,PY:1});var mKa=void 0;function aP(){mKa||(mKa=(new $O).a());return mKa}function bP(){}bP.prototype=new r;bP.prototype.constructor=bP;bP.prototype.a=function(){return this};
bP.prototype.$classData=q({VXa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentEmitter$",{VXa:1,f:1,RY:1});var nKa=void 0;function cP(){this.Q=null}cP.prototype=new r;cP.prototype.constructor=cP;function oKa(){}oKa.prototype=cP.prototype;cP.prototype.sA=function(a){this.Q=a;return this};function hP(){this.sCa=this.U=this.Kda=this.Qe=null}hP.prototype=new r;hP.prototype.constructor=hP;
function pKa(a,b){var c=b.nq;if(uka(kh(),c))for(c=Mt(a.sCa,c);c.Qa();){var e=c.My();try{var f=kd(ta(),e,'"',0),g=ld((new md).vc(f)),h=kd(ta(),g,"#",0),k=Wj((new md).vc(h));-1===(k.indexOf("\x3c\x3c")|0)&&-1===(k.indexOf("\x3e\x3e")|0)&&BM(a.U,k,JDa(),lq(R(),b,O().Wa))}catch(l){if(e=gi(Mb(),l),!hi(e))throw l;}}}function qKa(a){a=a.Da.we();return rs(a)?"$ref"===a.ya:!1}
function rKa(a,b,c){b=b.Bb.fa();var e=b.i.pb().nb;if(O().Wa===e){c=a.U;a=b.i;var e=qe(),f=Ac().fi;BM(c,L(a,e,f),qL(),b.i)}else a=rh().TZ,e="Unexpected $ref with "+b,b=b.i,f=w(),Cc(c,a,"",f,e,b.ga)}
hP.prototype.rca=function(a,b){var c=Pc();a=Iv(a).Gp(c);if(Hp(a)&&(a=a.i,c=this.Qe,c=nc().ba===c?(new A).d("uses"):wt().ba===c||xt().ba===c?(new A).d("x-amf-uses"):w(),!c.b()&&(c=c.c(),a=yc((new K).Y(a),c),!a.b()))){var e=a.c();a=e.i.pb().nb;if(O().ua===a)a=e.i,c=Pc(),e=Ac().fi,L(a,c,e).Bb.X(t(new u,function(a,b){return function(c){var e=sKa(tKa(),c,b);if(x(e))BM(a.U,e.i,oL(),c.i);else{var e=rh().O8,f=w();Cc(b,e,"",f,"Missing library location",c.ga)}}}(this,b)));else if(O().yd!==a){a=of().YR;var c=
"Expected map but found: "+e.i,e=e.i,f=w();Cc(b,a,"",f,c,e.ga)}}};hP.prototype.iX=function(a,b,c,e,f){var g=this.Qe;return nc().ba!==g&&oc().ba!==g&&mc().ba!==g||!Ul(a.Od)?HB(ib(),a):uKa(this,a,b,c,e,f)};function vKa(a,b,c){var e=b.we();if(rs(e))BM(a.U,e.ya,qL(),b);else{a=rh().TZ;var e="Unexpected !include with "+b.we(),f=w();Cc(c,a,"",f,e,b.ga)}}function wKa(a,b,c){Aw(b)&&1===b.Bb.lb()&&qKa(b.Bb.fa())?rKa(a,b,c):b.Uf.X(t(new u,function(a,b){return function(c){wKa(a,c,b)}}(a,c)))}
function xKa(a,b,c){a:{if(Ir(b)){var e=b.pb().nb,f=O().vq;if(e===f){vKa(a,b,c);break a}}rs(b)&&Lo(b.nq)?pKa(a,b):b.Uf.X(t(new u,function(a,b){return function(c){xKa(a,c,b)}}(a,c)))}}
hP.prototype.bO=function(a,b){var c=a.Vd;this.rca(c,b);var e=this.Qe;nc().ba===e||oc().ba===e||mc().ba===e?xKa(this,c,b):wt().ba!==e&&xt().ba!==e||wKa(this,c,b);a:if(e=this.Qe,a=a.Cv,x(a)){a=a.i;a=yKa(zKa(),a.Bt);if(x(a)&&(a=a.i,(Tv().h(a)||Uv().h(a))&&e===nc().ba)){e=!0;break a}e=!1}else if(w()===a)e=!1;else throw(new v).d(a);if(e&&(c=c.Bd,e=Pc(),c=sv(c,e),Hp(c)&&(c=c.i,e=this.Qe,e=nc().ba===e?(new A).d("extends"):wt().ba===e||xt().ba===e?(new A).d("x-extends"):w(),!e.b()&&(e=e.c(),c=yc((new K).Y(c),
e),!c.b()))))if(c=c.c(),e=c.i.pb().nb,O().ua===e||O().Nc===e||O().yd===e){e=rh().E6;a="Expected scalar but found: "+c.i;var c=c.i,f=w();Cc(b,e,"",f,a,c.ga)}else b=this.U,e=c.i,a=zc(),f=Ac().fi,e=L(e,a,f).ya,HDa||(HDa=(new lL).a()),BM(b,e,HDa,c.i);return this.U};
function uKa(a,b,c,e,f,g){var h=AKa(a,b,c);if(Hp(h)){var h=h.i,k=Vp(new Wp,h,w()),k=BKa(a.Qe,a.Kda).bO(k,c),l=Vga(e,b.Od.k);e=k.yf.Rr().ce();c=t(new u,function(a,b,c,e,f,g){return function(h){var k=h.yf,l=t(new u,function(){return function(a){return a.Ea}}(a)),Pa=z();return Oga(h,b,c,e,f,k.ka(l,Pa.s),!0).ei(t(new u,function(a,b,c,e,f,g,h){return function(k){if(null!==k){var l=k.rO;k=k.Od;if(w()===l&&x(k))return uKa(a,Jp(new Kp,k.i,b,w()),c,e,f,g).Lf(t(new u,function(a,b,c,e){return function(f){var g=
b.Od.Pe(),h=f.Od,k=z(),g=g.hg(h,k.s),h=b.Od,k=Nl().qc;Vg(h,k,g);c.yf.X(t(new u,function(a,b,c){return function(e){e=e.Ea;if(mG(e))b.Od.Pe().X(t(new u,function(a,b){return function(a){return CKa(b,a)}}(a,c))),e.cw=b.Lc;else{var f=rh().vz,g=w();Cc(c,f,"",g,"Cannot inline a fragment in a not mutable node",e.ga)}}}(a,f,e)))}}(a,h,b,c)),um())}return hb(ib(),jb(function(){return function(){return G()}}(a)),um())}}(a,h,e,b,f,c,g)),um())}}(a,l,g,c,f,b));f=z();c=e.ka(c,f.s);f=ib();g=z();return lb(f,c,g.s,
um()).Lf(t(new u,function(a,b,c){return function(){var a=(new A).d(b.Bd);return Jp(new Kp,c.Od,c.oo,a)}}(a,h,b)),um())}if(Ep(h))return h=h.i,ib(),b.Od.Pe().X(t(new u,function(a,b){return function(a){return CKa(b,a)}}(a,c))),R(),a=jd(b.Od),a=(new A).d(Hva(0,h,a.b()?"":a.c())),HB(0,Jp(new Kp,b.Od,b.oo,a));throw(new v).d(h);}
function AKa(a,b,c){var e=!1,f=null;b=b.Od;if(Ul(b)){var e=!0,f=b,g=Xp(f.g,Rl().ob);a=a.Kda.py();g=B(g.g,Wl().Md).G;if(a.Ja(g.b()?null:g.c()))return Zf(),iwa(),b=B(Xp(f.g,Rl().ob).g,Wl().Sd).G,b=b.b()?null:b.c(),f=jd(f),c=DKa(gwa(0,b,f.b()?"":f.c(),c)).PA(!0),c=hd(c,new EKa),c.b()?(c=R().yd,c=YE(ZE(),c)):c=c.c(),(new ag).d(c)}if(e)return Zf(),c=B(Xp(f.g,Rl().ob).g,Wl().Sd).G,c=c.b()?null:c.c(),(new $f).d(c);c=Zb(b.ha(),n(Lt));c.b()?c=!1:(c=c.c(),c=kG(c.Lc));if(c)return Zf(),c=Zb(b.ha(),n(Lt)),c.b()?
c=w():(c=c.c(),c=(new A).d(c.Lc)),c=c.c(),(new ag).d(c);Zf();return(new $f).d("")}function BKa(a,b){var c=new hP;c.Qe=a;c.Kda=b;c.U=(new AM).a();a=(new ph).e('("\\$ref":\\s*".*")');b=G();c.sCa=(new qh).Di(a.ia,b);return c}hP.prototype.$classData=q({CYa:0},!1,"amf.plugins.document.webapi.references.WebApiReferenceHandler",{CYa:1,f:1,KY:1});function iP(){Rt.call(this);this.vg=this.Gj=null;this.mi=!1}iP.prototype=new St;iP.prototype.constructor=iP;function FKa(){}FKa.prototype=iP.prototype;
iP.prototype.vb=function(a){Rt.prototype.vb.call(this,a);this.vg=fb().WI;return this};iP.prototype.VC=function(){if(!this.mi&&!this.mi){var a=z(),b=this.cF(),c=(new jP).Iv(this.Ap(),!0,this.ub),e=(new kP).Iv(this.Ap(),!0,this.ub),f=(new lP).vb(this.ub),g=(new mP).VG(this.Ap(),this.ub),h=(new nP).VG(this.Ap(),this.ub),k=this.Ap(),b=[b,c,e,f,g,h,GKa(new oP,k,!1,!0,this.ub),(new pP).vb(this.ub),(new $L).vb(this.ub)];this.Gj=H(a,(new J).aa(b));this.mi=!0}return this.Gj};
function qP(){Rt.call(this);this.Gj=null}qP.prototype=new St;qP.prototype.constructor=qP;function HKa(){}HKa.prototype=qP.prototype;
qP.prototype.vb=function(a){Rt.prototype.vb.call(this,a);a=z();var b=[this.cF(),PEa(new XL,H(xz(),G()),this.ub),(new jP).Iv(this.Ap(),!1,this.ub),(new kP).Iv(this.Ap(),!1,this.ub),(new lP).vb(this.ub),(new mP).VG(this.Ap(),this.ub),(new nP).VG(this.Ap(),this.ub),GKa(new oP,this.Ap(),!1,!1,this.ub),(new pP).vb(this.ub),(new VL).vb(this.ub),(new WL).vb(this.ub)];this.Gj=H(a,(new J).aa(b));return this};qP.prototype.VC=function(){return this.Gj};function pA(){Rt.call(this);this.Gj=this.Lr=null}
pA.prototype=new St;pA.prototype.constructor=pA;pA.prototype.VC=function(){return this.Gj};pA.prototype.VG=function(a,b){this.Lr=a;Rt.prototype.vb.call(this,b);b=z();a=[(new yz).vt(!1,this.ub),PEa(new XL,H(xz(),G()),this.ub),(new jP).Iv(a,!1,this.ub),(new kP).Iv(a,!1,this.ub),GKa(new oP,a,!0,!1,this.ub),(new pP).vb(this.ub)];this.Gj=H(b,(new J).aa(a));return this};pA.prototype.$classData=q({MYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.ValidationResolutionPipeline",{MYa:1,bu:1,f:1});
function rP(){Rt.call(this);this.Gj=this.DGa=null}rP.prototype=new St;rP.prototype.constructor=rP;function IKa(a,b,c){a.DGa=c;Rt.prototype.vb.call(a,b);c=a.DGa;if(Ek().h(c)||Fk().h(c)||Gk().h(c))b=(new sP).vb(b).Gj;else if(Bk().h(c)||Ck().h(c)||Dk().h(c))b=(new tP).vb(b).Gj;else{c=Bc().nh;var e=w(),f=w(),g=w();b.Hc(c.k,"",e,"No compatibility pipeline registered to target profile",f,xc().tb,g);b=G()}a.Gj=b;return a}rP.prototype.VC=function(){return this.Gj};
rP.prototype.$classData=q({PYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.CompatibilityPipeline",{PYa:1,bu:1,f:1});function tP(){Rt.call(this);this.Gj=this.xW=null}tP.prototype=new St;tP.prototype.constructor=tP;
tP.prototype.vb=function(a){Rt.prototype.vb.call(this,a);this.xW=(new uP).vb(a);a=this.xW.Gj;var b=z(),c=[(new vP).vb(this.ub),(new JKa).vb(this.ub),(new wP).vb(this.ub),(new xP).vb(this.ub),(new yP).vb(this.ub),(new zP).vb(this.ub),(new AP).vb(this.ub)],b=H(b,(new J).aa(c)),c=z();this.Gj=a.la(b,c.s);return this};tP.prototype.VC=function(){return this.Gj};tP.prototype.$classData=q({QYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.OasCompatibilityPipeline",{QYa:1,bu:1,f:1});
function sP(){Rt.call(this);this.Gj=this.xW=null}sP.prototype=new St;sP.prototype.constructor=sP;
sP.prototype.vb=function(a){Rt.prototype.vb.call(this,a);this.xW=(new BP).vb(a);a=this.xW.Gj;var b=z(),c=[(new CP).vb(this.ub),(new DP).vb(this.ub),(new EP).vb(this.ub),(new FP).vb(this.ub),(new GP).vb(this.ub),(new HP).vb(this.ub),(new IP).vb(this.ub),(new KKa).vb(this.ub),(new JP).vb(this.ub),(new KP).vb(this.ub),(new LP).vb(this.ub),(new MP).vb(this.ub)],b=H(b,(new J).aa(c)),c=z();this.Gj=a.la(b,c.s);return this};sP.prototype.VC=function(){return this.Gj};
sP.prototype.$classData=q({RYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.RamlCompatibilityPipeline",{RYa:1,bu:1,f:1});function zP(){this.ub=null}zP.prototype=new cu;zP.prototype.constructor=zP;zP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};
zP.prototype.He=function(a){try{for(var b=cA(),c=Nz(),e=Oz(a,b,c);e.Qa();){var f=e.cq();if($m(f)){var b=f,g=(new mk).rs(!1),h=B(b.g,Zm().oc).xb(t(new u,function(a,b){return function(a){return Yh(a.E,n(LKa))?(b.ta=!0,!1):!0}}(this,g))),k=Zm().oc;qf(b,k,h);if(g.ta){M();var l=(new N).a(),p=(new af).P((new Q).a(),l),y=bf().$,I=Eb(p,y,"optionalSecurity");Dr();var E=(new A).d(qi().Xj),V=Ar(0,"true",E,(M(),(new N).a())),da=bf().Zj,sa=ff(I,da,V),ua=Lc().Pm();nh(b,ua,sa)}}}return a}catch(Ia){if(null!==gi(Mb(),
Ia))return a;throw Ia;}};zP.prototype.$classData=q({SYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.oas.CleanNullSecurity",{SYa:1,ji:1,f:1});function AP(){this.ub=null}AP.prototype=new cu;AP.prototype.constructor=AP;AP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};
AP.prototype.He=function(a){try{for(var b=cA(),c=Nz(),e=Oz(a,b,c);e.Qa();){var f=e.cq();if(dn(f)){var b=f,g=B(b.g,Ej().df).G,h=g.b()||"body"!==g.c().toLowerCase()?g:w();if(h.b())var k=w();else h.c(),k=Wa().Ia(B(b.g,Ej().Fc));if(!k.b()){var l=k.c();(new A).d(gs(l.ca(),th().Vc))}}}return a}catch(p){if(null!==gi(Mb(),p))return a;throw p;}};AP.prototype.$classData=q({TYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.oas.CleanParameterExamples",{TYa:1,ji:1,f:1});
function vP(){this.ub=null}vP.prototype=new cu;vP.prototype.constructor=vP;vP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};vP.prototype.He=function(a){if(Ol(a)&&Kn(a.ze()))try{var b=a.ze();this.jT(b,B(b.g,Jn().yk),Jn().yk);for(var c=cA(),e=Nz(),f=Oz(a,c,e);f.Qa();){var g=f.cq();$m(g)&&(b=g,this.jT(b,B(b.g,Zm().yk),Zm().yk))}}catch(h){if(null===gi(Mb(),h))throw h;}return a};
vP.prototype.jT=function(a,b,c){var e=H(z(),(new J).aa(["HTTP","HTTPS"])),f=t(new u,function(){return function(a){return a.G.wa()}}(this)),g=z();b=b.md(f,g.s).xb(t(new u,function(a,b){return function(c){return b.Cd(t(new u,function(a,b){return function(a){return b.toLowerCase()===(null===a?null:a.toLowerCase())}}(a,c)))}}(this,e)));e=t(new u,function(){return function(a){return a.toLowerCase()}}(this));f=z();b=b.ka(e,f.s);gs(a.ca(),c);return b.Fa()?dr(a,c,b):void 0};
vP.prototype.$classData=q({UYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.oas.LowercaseSchemes",{UYa:1,ji:1,f:1});function wP(){this.ub=null;this.dQ=0}wP.prototype=new cu;wP.prototype.constructor=wP;wP.prototype.vb=function(a){bu.prototype.vb.call(this,a);this.dQ=0;return this};function MKa(a,b){B(b.g,Jn().tw).X(t(new u,function(){return function(a){var b=B(a.g,Gi().Jf);if(eM(b))return b=Gi().Jf,Eb(a,b,"http://")}}(a)))}
wP.prototype.He=function(a){if(Ol(a)&&Kn(a.ze()))try{MKa(this,a.ze())}catch(b){if(null===gi(Mb(),b))throw b;}return a};wP.prototype.$classData=q({VYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.oas.MandatoryDocumentationUrl",{VYa:1,ji:1,f:1});function yP(){this.ub=null}yP.prototype=new cu;yP.prototype.constructor=yP;yP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};
yP.prototype.He=function(a){try{for(var b=cA(),c=Nz(),e=Oz(a,b,c);e.Qa();){var f=e.cq();if(dn(f)){var b=f,g=B(b.g,Ej().df);if(Xb(g,"path")){var h=Ej().kj;dj(b,h,!0)}}}return a}catch(k){e=gi(Mb(),k);if(hi(e))return a;throw k;}};yP.prototype.$classData=q({WYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.oas.MandatoryPathParameters",{WYa:1,ji:1,f:1});function xP(){this.ub=null}xP.prototype=new cu;xP.prototype.constructor=xP;
xP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};xP.prototype.He=function(a){try{for(var b=cA(),c=Nz(),e=Oz(a,b,c);e.Qa();){var f=e.cq();if($m(f)&&(b=f,B(b.g,Zm().Zl).b())){var g=z();M();var h=(new N).a(),k=(new LB).P((new Q).a(),h);M();var l=(new N).a(),p=Ue(k,"200",l),y=Bn().vn,I=Eb(p,y,"200"),E=Bn().fb,V=[Eb(I,E,"")],da=H(g,(new J).aa(V)),sa=Zm().Zl;qf(b,sa,da)}}return a}catch(ua){e=gi(Mb(),ua);if(hi(e))return a;throw ua;}};
xP.prototype.$classData=q({XYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.oas.MandatoryResponses",{XYa:1,ji:1,f:1});function JKa(){this.ub=null}JKa.prototype=new cu;JKa.prototype.constructor=JKa;d=JKa.prototype;d.vb=function(a){bu.prototype.vb.call(this,a);return this};
d.B0=function(a,b){if(B(a.g,vi().um).Fa()){var c=NP().uz;Eb(b,c,"query");a=B(a.g,vi().um).fa();a=B(a.ca(),a.Ch()).G;a=a.b()?null:a.c();c=NP().$;Eb(b,c,a)}else B(a.g,vi().Qg).Fa()?(c=NP().uz,Eb(b,c,"header"),a=B(a.g,vi().Qg).fa(),a=B(a.ca(),a.Ch()).G,a=a.b()?null:a.c(),c=NP().$,Eb(b,c,a)):(a=NP().uz,Eb(b,a,"query"),a=NP().$,Eb(b,a,""))};d.Daa=function(a){a.ak().X(t(new u,function(a){return function(c){tn(c)&&a.Eaa(c)}}(this)))};
d.Eaa=function(a){var b=B(a.g,vi().li);OP(b)?this.Caa(b):PP(b)?this.B0(a,b):(null===b?(b=B(a.g,vi().Nj).G,b=b.b()?"":b.c(),b=null!==b&&pa(b,"x-amf-apiKey")):b=!1,b&&this.B0(a,a.uQ()))};
d.Caa=function(a){if(B(a.g,QP().Wx).G.b()){var b=B(a.g,QP().pz).fa().Nu(),b=b.b()?"implicit":b.c(),b="authorization_code"===b?"accessCode":"password"===b?"password":"implicit"===b?"implicit":"client_credentials"===b?"application":"implicit",c=QP().Wx;Eb(a,c,b)}b=B(a.g,QP().Wx).G;b=b.b()?null:b.c();"implicit"===b?(B(a.g,QP().rm).G.b()&&(b=QP().rm,Eb(a,b,"http://")),gs(a.g,QP().sq)):"accessCode"===b?(B(a.g,QP().rm).G.b()&&(b=QP().rm,Eb(a,b,"http://")),B(a.g,QP().sq).G.b()&&(b=QP().sq,Eb(a,b,"http://"))):
"password"===b?(B(a.g,QP().sq).G.b()&&(b=QP().sq,Eb(a,b,"http://")),gs(a.g,QP().rm)):"application"===b&&(B(a.g,QP().sq).G.b()&&(b=QP().sq,Eb(a,b,"http://")),gs(a.g,QP().rm));if(B(a.g,QP().sr).b()){b=z();M();var c=(new N).a(),c=(new RP).P((new Q).a(),c),e=En().$,c=Eb(c,e,"*"),e=En().fb,c=[Eb(c,e,"")],b=H(b,(new J).aa(c)),c=QP().sr;qf(a,c,b)}};d.He=function(a){if(sd(a))try{this.Daa(a)}catch(b){if(null===gi(Mb(),b))throw b;}return a};
d.$classData=q({YYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.oas.SecuritySettingsMapper",{YYa:1,ji:1,f:1});function IP(){this.ub=null}IP.prototype=new cu;IP.prototype.constructor=IP;IP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};
IP.prototype.He=function(a){if(Ol(a)&&Kn(a.ze()))try{var b=a.ze();this.jT(b,B(b.g,Jn().yk),Jn().yk);for(var c=cA(),e=Nz(),f=Oz(a,c,e);f.Qa();){var g=f.cq();$m(g)&&(b=g,this.jT(b,B(b.g,Zm().yk),Zm().yk))}}catch(h){if(null===gi(Mb(),h))throw h;}return a};
IP.prototype.jT=function(a,b,c){var e=H(z(),(new J).aa(["http","https"])),f=t(new u,function(){return function(a){return a.G.wa()}}(this)),g=z();b=b.md(f,g.s).xb(t(new u,function(a,b){return function(c){return b.Cd(t(new u,function(a,b){return function(a){return b.toLowerCase()===(null===a?null:a.toLowerCase())}}(a,c)))}}(this,e)));e=t(new u,function(){return function(a){return a.toUpperCase()}}(this));f=z();b=b.ka(e,f.s);gs(a.ca(),c);return b.Fa()?dr(a,c,b):void 0};
IP.prototype.$classData=q({ZYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.raml.CapitalizeSchemes",{ZYa:1,ji:1,f:1});function KP(){this.ub=null}KP.prototype=new cu;KP.prototype.constructor=KP;KP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};
KP.prototype.He=function(a){try{var b=Bw().Wda,c=t(new u,function(){return function(a){M();var b=(new N).a(),b=(new Le).P((new Q).a(),b);a="amf-"+a;M();var c=(new N).a(),b=Ue(b,a,c);M();a=(new N).a();c=(new Q).a();a=(new oi).P(c,a);c=Zl().Fc;return ff(b,c,a)}}(this)),e=Pf(),f=Qf(e),g=De(b,c,f);return sd(a)?(g.X(t(new u,function(a,b){return function(a){var c=Ug().Mc;return nh(b,c,a)}}(this,a))),a):a}catch(h){if(null!==gi(Mb(),h))return a;throw h;}};
KP.prototype.$classData=q({$Ya:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.raml.CustomAnnotationDeclaration",{$Ya:1,ji:1,f:1});function FP(){this.ub=null}FP.prototype=new cu;FP.prototype.constructor=FP;FP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};FP.prototype.He=function(a){try{for(var b=cA(),c=Nz(),e=Oz(a,b,c);e.Qa();){var f=e.cq();if(wn(f)){var b=f,g=B(b.g,vn().Md);if(eM(g)){var h=vn().Md;Eb(b,h,"*/*")}}}}catch(k){if(null===gi(Mb(),k))throw k;}return a};
FP.prototype.$classData=q({aZa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.raml.DefaultPayloadMediaType",{aZa:1,ji:1,f:1});function GP(){this.ub=null}GP.prototype=new cu;GP.prototype.constructor=GP;GP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};
function NKa(a,b){var c=B(b.g,Zm().Zl).Ib(t(new u,function(){return function(a){a=B(a.g,Bn().vn).G;return"default"===(a.b()?null:a.c())}}(a)));if(x(c))if(c=c.i,b=B(b.g,Zm().Zl).ae(pc(fc().db,G()),qd(function(){return function(a,b){var c=B(b.g,Bn().vn).G;return a.Hh(c.b()?null:c.c(),b)}}(a))),a=H(z(),(new J).aa(["200","500"])).Ib(t(new u,function(a,b){return function(a){return b.Ta(a).b()}}(a,b))),x(a))b=a.i,a=Bn().vn,Eb(c,a,b);else{a=501;for(var e=!1;!e&&600>a;)if(b.Ta(""+a).b()){var e=!0,f=""+a,
g=Bn().vn;Eb(c,g,f)}else a=1+a|0}}GP.prototype.He=function(a){try{for(var b=cA(),c=Nz(),e=Oz(a,b,c);e.Qa();){var f=e.cq();$m(f)&&NKa(this,f)}}catch(g){if(null===gi(Mb(),g))throw g;}return a};GP.prototype.$classData=q({bZa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.raml.DefaultToNumericDefaultResponse",{bZa:1,ji:1,f:1});function HP(){this.ub=null}HP.prototype=new cu;HP.prototype.constructor=HP;HP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};
HP.prototype.He=function(a){try{for(var b=cA(),c=Nz(),e=Oz(a,b,c);e.Qa();){var f=e.cq();if(Zn(f)){var b=f,g=lh().Fq;dj(b,g,!1)}}}catch(h){if(null===gi(Mb(),h))throw h;}return a};HP.prototype.$classData=q({cZa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.raml.MakeExamplesOptional",{cZa:1,ji:1,f:1});function EP(){this.ub=null;this.u_=0}EP.prototype=new cu;EP.prototype.constructor=EP;EP.prototype.vb=function(a){bu.prototype.vb.call(this,a);this.u_=0;return this};
function OKa(a){if(Wa().Ia(B(a.g,Zl().Fc)).b()){M();var b=(new N).a(),c=(new Q).a(),b=(new oi).P(c,b),c=Zl().Fc;ff(a,c,b)}return a}
EP.prototype.He=function(a){try{if(Ol(a))for(var b=cA(),c=Nz(),e=Oz(a,b,c);e.Qa();){var f=e.cq();if(bm(f)){var b=f,g=Wa().Ia(B(b.g,bf().Rf));if(x(g))var h=OKa(g.i);else{if(w()!==g)throw(new v).d(g);this.u_=1+this.u_|0;M();var k=(new N).a(),l=(new Le).P((new Q).a(),k);nG();var p=jd(a),y=Te(l,""+p+("#genAnnotation"+this.u_)),I=B(b.g,bf().$).G,E=I.b()?null:I.c();M();var V=(new N).a(),da=Ue(y,E,V);M();var sa=(new N).a(),ua=(new Q).a(),Ia=(new oi).P(ua,sa),Pa=Zl().Fc,Za=ff(da,Pa,Ia),db=bf().Rf;ff(b,db,
Za);h=Za}if(!Xp(a.ca(),Nl().Mc).Cd(t(new u,function(a,b){return function(a){return a.k===b.k}}(this,h)))){var Qb=Ug().Mc;nh(a,Qb,h)}}}}catch(bc){if(null===gi(Mb(),bc))throw bc;}return a};EP.prototype.$classData=q({dZa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.raml.MandatoryAnnotationType",{dZa:1,ji:1,f:1});function CP(){this.ub=null;this.dQ=0}CP.prototype=new cu;CP.prototype.constructor=CP;CP.prototype.vb=function(a){bu.prototype.vb.call(this,a);this.dQ=0;return this};
function PKa(a,b){B(b.g,Jn().$).G.b()&&QKa(b);B(b.g,Jn().tw).X(t(new u,function(){return function(a){var b=B(a.g,Gi().fu);if(eM(b))if(b=B(a.g,Gi().Jf).G,x(b)){var b=b.i,f=Gi().fu;Eb(a,f,b)}else b=Gi().fu,Eb(a,b,"generated");return gs(a.g,Gi().Jf)}}(a)));Xp(b.g,Jn().wv).X(t(new u,function(a){return function(b){if(Wa().Ia(Xp(b.g,YO().bh)).qa()){var f=B(b.g,YO().$).G;f.b()?(a.dQ=1+a.dQ|0,f="Tag "+a.dQ+" documentation"):f=f.c();b=Xp(b.g,YO().bh);var g=Gi().fu;Eb(b,g,f)}}}(a)))}
CP.prototype.He=function(a){if(Ol(a)&&Kn(a.ze()))try{PKa(this,a.ze())}catch(b){if(null===gi(Mb(),b))throw b;}return a};function QKa(a){var b=B(a.g,Jn().$);eM(b)&&(M(),b=(new N).a(),Ue(a,"generated",b))}CP.prototype.$classData=q({eZa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.raml.MandatoryDocumentationTitle",{eZa:1,ji:1,f:1});function LP(){this.ub=null}LP.prototype=new cu;LP.prototype.constructor=LP;LP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};
function RKa(a,b){if(1===B(b.g,Tm().xk).lb())var c=Wa(),e=B(b.g,Tm().xk).fa(),c=c.Ia(B(e.g,Zm().kp)).qa();else c=!1;c&&(e=B(b.g,Tm().xk).fa(),c=B(B(e.g,Zm().kp).g,yn().lp),c.Fa()&&(gs(B(e.g,Zm().kp).g,yn().lp),a=t(new u,function(){return function(a){var b=Ej().kj;return dj(a,b,!0)}}(a)),e=z(),a=c.ka(a,e.s),c=Tm().Pn,qf(b,c,a)))}LP.prototype.He=function(a){try{for(var b=cA(),c=Nz(),e=Oz(a,b,c);e.Qa();){var f=e.cq();Um(f)&&RKa(this,f)}}catch(g){if(null===gi(Mb(),g))throw g;}return a};
LP.prototype.$classData=q({fZa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.raml.PushSingleOperationPathParams",{fZa:1,ji:1,f:1});function DP(){this.ub=null}DP.prototype=new cu;DP.prototype.constructor=DP;DP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};DP.prototype.He=function(a){return a};DP.prototype.$classData=q({gZa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.raml.SanitizeCustomTypeNames",{gZa:1,ji:1,f:1});
function KKa(){this.ub=null}KKa.prototype=new cu;KKa.prototype.constructor=KKa;d=KKa.prototype;d.vb=function(a){bu.prototype.vb.call(this,a);return this};d.B0=function(a,b){var c=B(b.g,NP().uz).G,c=c.b()?null:c.c();if("query"===c){b=B(b.g,NP().$).G;b=a.x3(b.b()?"default":b.c());M();var c=(new N).a(),e=(new Q).a(),c=(new oi).P(e,c),e=Ej().Fc;ff(b,e,c)}else"header"===c&&(b=B(b.g,NP().$).G,b=a.sI(b.b()?"default":b.c()),M(),c=(new N).a(),e=(new Q).a(),c=(new oi).P(e,c),e=Ej().Fc,ff(b,e,c));gs(a.g,vi().li)};
d.Daa=function(a){a.ak().X(t(new u,function(a){return function(c){tn(c)&&a.Eaa(c)}}(this)))};d.Eaa=function(a){var b=B(a.g,vi().li);OP(b)?this.Caa(b):PP(b)&&this.B0(a,b)};d.Caa=function(a){if(B(a.g,QP().pz).b()){var b=H(z(),(new J).aa(["implicit"])),c=QP().pz;dr(a,c,b)}B(a.g,QP().sq).G.b()&&(b=QP().sq,Eb(a,b,""));B(a.g,QP().rm).G.b()&&(b=QP().rm,Eb(a,b,""))};d.He=function(a){if(sd(a))try{this.Daa(a)}catch(b){if(null===gi(Mb(),b))throw b;}return a};
d.$classData=q({hZa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.raml.SecuritySettingsMapper",{hZa:1,ji:1,f:1});function JP(){this.ub=null}JP.prototype=new cu;JP.prototype.constructor=JP;JP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};
JP.prototype.He=function(a){try{for(var b=cA(),c=Nz(),e=Oz(a,b,c);e.Qa();){var f=e.cq();if(di(f)){var b=f,g=Li(b);if(!eM(g)){vx();var h=B(b.ea,xh().af).G,k=Mna(0,h.b()?null:h.c()),l=tg();if(null===k||k!==l)var p=ug(),y=!(null!==k&&k===p);else y=!1;if(y)var I=vg(),E=!(null!==k&&k===I);else E=!1;if(E){var V=sg(),da=null!==k&&k===V?H(z(),(new J).aa(["rfc3339","rfc2616"])):H(z(),(new J).aa("int32 int64 int long float double int16 int8".split(" "))),sa=Li(b).G;da.Ja(sa.b()?null:sa.c())||gs(b.ea,xh().sn)}else gs(b.ea,
xh().sn)}}}}catch(ua){if(null===gi(Mb(),ua))throw ua;}return a};JP.prototype.$classData=q({iZa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.raml.ShapeFormatAdjuster",{iZa:1,ji:1,f:1});function MP(){this.ub=null}MP.prototype=new cu;MP.prototype.constructor=MP;MP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};
MP.prototype.He=function(a){try{var b=H(Wg(),G()),c=(new Qd).d(b);a.ak().X(t(new u,function(a,b){return function(a){return vh(b.ta,a)}}(this,c)));for(var e=(new iA).$d(1),f=cA(),g=Nz(),h=Oz(a,f,g);h.Qa();){var k=h.cq();if(Ni(k)){var b=k,l=B(b.ea,lo().Ee),p=t(new u,function(a,b,c){return function(a){a:{for(var e=b.ta.Lb;!e.b();){if(e.fa().k===a.k){e=(new A).d(e.fa());break a}e=e.sa()}e=w()}if(x(e)&&(e=e.i,os(e)&&B(e.ca(),Pg().$).G.qa()))return a=B(e.ca(),Pg().$).G,a.b()?null:a.c();if(B(a.ca(),Pg().$).G.b()){e=
"GenShape"+c.ta;c.ta=1+c.ta|0;M();var f=(new N).a();Ue(a,e,f)}vh(b.ta,a);return B(a.ca(),Pg().$)}}(this,c,e)),y=z(),I=l.ka(p,y.s);b.ab.Wb((new bz).e(I.ng(" | ")))}}var E=c.ta,V=Ug().Mc;Vg(a,V,E)}catch(da){if(null===gi(Mb(),da))throw da;}return a};MP.prototype.$classData=q({jZa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.compatibility.raml.UnionsAsTypeExpressions",{jZa:1,ji:1,f:1});function SP(){hz.call(this);this.OP=null}SP.prototype=new gpa;SP.prototype.constructor=SP;
SP.prototype.Iv=function(a,b,c){hz.prototype.Iv.call(this,a,b,c);this.OP=Ipa().XGa;return this};SP.prototype.eGa=function(a,b,c,e,f){c.Tb.X(t(new u,function(a,b,c,e,f){return function(y){a.lo&&y.ha().Wb((new iz).Sq(b,c));return nh(e,f,y)}}(this,e,f,a,b)))};SP.prototype.Zw=function(){return this.ub};SP.prototype.$classData=q({sZa:0},!1,"amf.plugins.document.webapi.resolution.stages.ExtensionResolutionStage",{sZa:1,pZa:1,f:1});function Cz(){}Cz.prototype=new Gpa;Cz.prototype.constructor=Cz;
Cz.prototype.a=function(){return this};Cz.prototype.Q9=function(){return!0};Cz.prototype.Rxa=function(){return!0};Cz.prototype.$classData=q({wZa:0},!1,"amf.plugins.document.webapi.resolution.stages.MergingRestrictions$$anon$1",{wZa:1,uZa:1,f:1});function Dz(){this.Gya=this.Qxa=this.e_=null}Dz.prototype=new Gpa;Dz.prototype.constructor=Dz;
Dz.prototype.a=function(){var a=z();lDa||(lDa=(new bL).a());var b=lDa.$,c=kDa().$;iDa||(iDa=(new $K).a());var e=iDa.gd,f=Pg().gd;hDa||(hDa=(new ZK).a());var g=hDa.fb;SKa||(SKa=(new TP).a());var h=SKa.bh,k=YO().bh,l=Jn().tw,p=Ap().Ud;TKa||(TKa=(new UP).a());b=[b,c,e,f,g,h,k,l,p,TKa.Vc,Lc().Pm()];this.e_=H(a,(new J).aa(b));a=z();b=[Tm().$f,Zm().nt,Bn().vn,vn().Md];this.Qxa=H(a,(new J).aa(b));a=z();b=[Jn().Wh];this.Gya=H(a,(new J).aa(b));return this};Dz.prototype.Q9=function(a){return this.e_.Ja(a)};
Dz.prototype.Rxa=function(a){return tz(a.ja)?this.e_.Ja(a)||this.Qxa.Ja(a):this.e_.Ja(a)||!this.Gya.Ja(a)};Dz.prototype.$classData=q({xZa:0},!1,"amf.plugins.document.webapi.resolution.stages.MergingRestrictions$$anon$2",{xZa:1,uZa:1,f:1});function VP(){hz.call(this);this.OP=null}VP.prototype=new gpa;VP.prototype.constructor=VP;VP.prototype.Iv=function(a,b,c){hz.prototype.Iv.call(this,a,b,c);this.OP=Ipa().ZCa;return this};
VP.prototype.eGa=function(a,b,c,e,f){c=c.Tb;e=t(new u,function(a,b,c){return function(e){a.lo&&e.ha().Wb((new iz).Sq(b,c));return e}}(this,e,f));f=z();c=c.ka(e,f.s);qf(a,b,c)};VP.prototype.Zw=function(){return this.ub};VP.prototype.$classData=q({yZa:0},!1,"amf.plugins.document.webapi.resolution.stages.OverlayResolutionStage",{yZa:1,pZa:1,f:1});function WP(){}WP.prototype=new r;WP.prototype.constructor=WP;WP.prototype.a=function(){return this};
function UKa(a,b,c,e){a=c.WV.c();var f=c.Ad,g=w(),h=w(),k=w(),l=w(),p=w(),y=w(),I=w(),E=w(),V=w(),da=w(),sa=w(),ua=w(),Ia=w(),Pa=H(z(),G());z();Oj();var Za=(new $g).a();b=rN(new sN,a,b,f,g,h,k,l,p,y,I,E,V,da,sa,ua,Ia,Pa,Za.wa(),w(),w());e=Gc(e);if("http://www.w3.org/ns/shacl#minCount"===e)return c=(new A).d(c.t),rN(new sN,b.Dj,b.ba,b.Ad,b.gh,b.Jr,b.Fr,c,b.yp,b.aq,b.jk,b.hk,b.kk,b.ik,b.bq,b.Ea,b.oj,b.Um,b.Zm,b.nj,b.Kq);if("http://www.w3.org/ns/shacl#maxCount"===e)return c=(new A).d(c.t),rN(new sN,
b.Dj,b.ba,b.Ad,b.gh,b.Jr,c,b.Xk,b.yp,b.aq,b.jk,b.hk,b.kk,b.ik,b.bq,b.Ea,b.oj,b.Um,b.Zm,b.nj,b.Kq);if("http://www.w3.org/ns/shacl#pattern"===e)return c=(new A).d(c.t),rN(new sN,b.Dj,b.ba,b.Ad,c,b.Jr,b.Fr,b.Xk,b.yp,b.aq,b.jk,b.hk,b.kk,b.ik,b.bq,b.Ea,b.oj,b.Um,b.Zm,b.nj,b.Kq);if("http://www.w3.org/ns/shacl#minExclusive"===e)return c=(new A).d(c.t),rN(new sN,b.Dj,b.ba,b.Ad,b.gh,b.Jr,b.Fr,b.Xk,b.yp,b.aq,c,b.hk,b.kk,b.ik,b.bq,b.Ea,b.oj,b.Um,b.Zm,b.nj,b.Kq);if("http://www.w3.org/ns/shacl#maxExclusive"===
e)return c=(new A).d(c.t),rN(new sN,b.Dj,b.ba,b.Ad,b.gh,b.Jr,b.Fr,b.Xk,b.yp,b.aq,b.jk,c,b.kk,b.ik,b.bq,b.Ea,b.oj,b.Um,b.Zm,b.nj,b.Kq);if("http://www.w3.org/ns/shacl#minInclusive"===e)return c=(new A).d(c.t),rN(new sN,b.Dj,b.ba,b.Ad,b.gh,b.Jr,b.Fr,b.Xk,b.yp,b.aq,b.jk,b.hk,c,b.ik,b.bq,b.Ea,b.oj,b.Um,b.Zm,b.nj,b.Kq);if("http://www.w3.org/ns/shacl#maxInclusive"===e)return c=(new A).d(c.t),rN(new sN,b.Dj,b.ba,b.Ad,b.gh,b.Jr,b.Fr,b.Xk,b.yp,b.aq,b.jk,b.hk,b.kk,c,b.bq,b.Ea,b.oj,b.Um,b.Zm,b.nj,b.Kq);if("http://www.w3.org/ns/shacl#minLength"===
e)return c=(new A).d(c.t),rN(new sN,b.Dj,b.ba,b.Ad,b.gh,b.Jr,b.Fr,b.Xk,c,b.aq,b.jk,b.hk,b.kk,b.ik,b.bq,b.Ea,b.oj,b.Um,b.Zm,b.nj,b.Kq);if("http://www.w3.org/ns/shacl#maxLength"===e)return c=(new A).d(c.t),rN(new sN,b.Dj,b.ba,b.Ad,b.gh,b.Jr,b.Fr,b.Xk,b.yp,c,b.jk,b.hk,b.kk,b.ik,b.bq,b.Ea,b.oj,b.Um,b.Zm,b.nj,b.Kq);if("http://www.w3.org/ns/shacl#in"===e)return fc(),c=c.t,c=vl(0,kd(ta(),c,"\\s*,\\s*",0)),rN(new sN,b.Dj,b.ba,b.Ad,b.gh,b.Jr,b.Fr,b.Xk,b.yp,b.aq,b.jk,b.hk,b.kk,b.ik,b.bq,b.Ea,b.oj,b.Um,c,b.nj,
b.Kq);if("http://www.w3.org/ns/shacl#node"===e)return c=(new A).d(c.t),rN(new sN,b.Dj,b.ba,b.Ad,b.gh,b.Jr,b.Fr,b.Xk,b.yp,b.aq,b.jk,b.hk,b.kk,b.ik,b.bq,c,b.oj,b.Um,b.Zm,b.nj,b.Kq);if("http://www.w3.org/ns/shacl#datatype"===e)return c=(new A).d(c.t),rN(new sN,b.Dj,b.ba,b.Ad,b.gh,b.Jr,b.Fr,b.Xk,b.yp,b.aq,b.jk,b.hk,b.kk,b.ik,b.bq,b.Ea,c,b.Um,b.Zm,b.nj,b.Kq);if("http://www.w3.org/ns/shacl#class"===e)return c=H(z(),(new J).aa([c.t])),rN(new sN,b.Dj,b.ba,b.Ad,b.gh,b.Jr,b.Fr,b.Xk,b.yp,b.aq,b.jk,b.hk,b.kk,
b.ik,b.bq,b.Ea,b.oj,c,b.Zm,b.nj,b.Kq);throw Lb(Mb(),(new Nb).e("Unsupported constraint "+c.pu));}
function VKa(a,b){a=t(new u,function(){return function(a){var b=a.Mfa;if(x(b))b=b.i.trim();else if(XP(),b=a.Mfa,x(b))b=b.i,b=Gc(Wu(C(),b.trim()));else if(w()===b)var b=$ca(a.kda,"domain"),c=$ca(a.WV,"property"),h=(new A).d(a.pu),h=$ca(h,"constraint"),b=""+C().oD.he+b+"-"+c.trim()+"-"+h.trim();else throw(new v).d(b);var c=a.Ad,c=c.b()?"":c.c(),h=(new A).d(a.QDa),k=(new A).d(a.$Ca),l=z(),p=a.kda;p.b()?(p=C().Zd,p=Gc(D(new F,p,"DomainElement"))):p=p.c();l=H(l,(new J).aa([p]));Nj();z();Oj();p=(new $g).a().wa();
Nj();z();Oj();var y=(new $g).a().wa();Nj();z();Oj();var I=(new $g).a().wa();Nj();z();Oj();var E=(new $g).a().wa();Nj();z();Oj();var V=(new $g).a().wa();Nj();var da=w();Nj();z();Oj();var sa=(new $g).a().wa();Nj();z();Oj();var ua=(new $g).a().wa();Nj();var Ia=w();Nj();var Pa=w();Nj();var Za=w(),c=Pj(new Qj,b,c,h,k,p,l,y,I,E,V,da,sa,ua,Ia,Pa,Za),h=Gc(Wu(C(),a.sk.trim()));if("http://www.w3.org/ns/shacl#path"===h)return-1!==(a.pu.trim().indexOf("#")|0)?(h=a.pu.trim(),h=kd(ta(),h,"#",0),k=C(),l=Wj((new md).vc(h)),
k=("http://a.ml/vocabularies/document"===l?(new A).d(k.Zd):"http://a.ml/vocabularies/apiContract"===l?(new A).d(k.bb):"http://a.ml/vocabularies/security"===l?(new A).d(k.oc):"http://a.ml/vocabularies/shapes"===l?(new A).d(k.Gb):"http://a.ml/vocabularies/data"===l?(new A).d(k.zg):"http://a.ml/vocabularies/document-source-maps"===l?(new A).d(k.HB):"http://www.w3.org/ns/shacl"===l?(new A).d(k.cb):"http://a.ml/vocabularies/core#"===l?(new A).d(k.dc):"http://www.w3.org/2001/XMLSchema"===l?(new A).d(k.mj):
"http://a.ml/vocabularies/shapes/anon"===l?(new A).d(k.Sga):"http://www.w3.org/1999/02/22-rdf-syntax-ns"===l?(new A).d(k.yi):""===l?(new A).d(k.Jxa):"http://a.ml/vocabularies/meta"===l?(new A).d(k.Kc):"http://www.w3.org/2002/07/owl"===l?(new A).d(k.qv):"http://www.w3.org/2000/01/rdf-schema"===l?(new A).d(k.un):"http://a.ml/vocabularies/amf/parser"===l?(new A).d(k.oD):w()).c(),h=ld((new md).vc(h)),h=D(new F,k,h)):h=Wu(C(),a.pu),null!==h&&(k=h.Ku,l=C().cb,null===l?null===k:l.h(k))?(k=z(),a=[UKa(XP(),
b+"/prop",a,h)],a=H(k,(new J).aa(a)),Pj(new Qj,c.ba,c.Ad,c.Uv,c.Rv,c.Ot,c.dw,c.ew,c.bz,c.jy,c.dz,c.Oy,a,c.zC,c.fA,c.ax,c.nj)):null!==h&&(b=h.Ku,k=C().Gb,null===k?null===b:k.h(b))?(a=Wa().Ia(WKa(XP(),a,h)),Pj(new Qj,c.ba,c.Ad,c.Uv,c.Rv,c.Ot,c.dw,c.ew,c.bz,c.jy,c.dz,c.Oy,c.Qy,c.zC,c.fA,a,c.nj)):c;if("http://www.w3.org/ns/shacl#targetObjectsOf"===h&&a.WV.qa())return b=z(),h=[a.WV.c()],b=H(b,(new J).aa(h)),h=z(),a=[(new XKa).tc(a.pu,a.t)],a=H(h,(new J).aa(a)),Pj(new Qj,c.ba,c.Ad,c.Uv,c.Rv,c.Ot,c.dw,b,
c.bz,c.jy,c.dz,c.Oy,c.Qy,a,c.fA,c.ax,c.nj);throw Lb(Mb(),(new Nb).e("Unknown validation target "+a.sk));}}(a));var c=z();return b.ka(a,c.s)}function WKa(a,b,c){a=b.Ad;b=w();Spa||(Spa=(new Yz).a());var e=Spa.iU.Ta(c.ba);c=(new A).d(c.ba);var f=H(z(),G()),g=H(z(),G()),h=new YP;h.Ad=a;h.dE=e;h.ai=f;h.JG=b;h.Wg=g;h.gP=c;return h}
function oqa(){var a=XP();Jpa||(Jpa=(new Ez).a());var b=Jpa.W,a=t(new u,function(a){return function(b){if(null!==b){var c=b.pa(),h=b.Ba();b=VKa(XP(),h.xb(t(new u,function(){return function(a){return a.RC===xc().tb}}(a))));var k=VKa(XP(),h.xb(t(new u,function(){return function(a){return a.RC===xc().vw}}(a)))),h=VKa(XP(),h.xb(t(new u,function(){return function(a){return a.RC===xc().Eg}}(a)))),l=tN().qf;Di();for(var p=(new $g).a();!l.b();){var y=l.fa(),I=y;ZP(tN(),I.k,c)===xc().tb!==!1&&vh(p,y);l=l.sa()}l=
p.wa();p=function(){return function(a){return a.ba}}(a);y=Di().s;if(y===Di().s)if(l===G())p=G();else{y=l.fa();I=y=oz(new pz,p(y),G());for(l=l.sa();l!==G();)var E=l.fa(),E=oz(new pz,p(E),G()),I=I.ve=E,l=l.sa();p=y}else{for(y=Rf(l,y);!l.b();)I=l.fa(),y.Ic(p(I)),l=l.sa();p=y.lc()}y=tN().qf;Di();for(l=(new $g).a();!y.b();)E=I=y.fa(),ZP(tN(),E.k,c)===xc().vw!==!1&&vh(l,I),y=y.sa();y=l.wa();l=function(){return function(a){return a.ba}}(a);I=Di().s;if(I===Di().s)if(y===G())y=G();else{I=y.fa();E=I=oz(new pz,
l(I),G());for(y=y.sa();y!==G();)var V=y.fa(),V=oz(new pz,l(V),G()),E=E.ve=V,y=y.sa();y=I}else{for(I=Rf(y,I);!y.b();)E=y.fa(),I.Ic(l(E)),y=y.sa();y=I.lc()}I=tN().qf;Di();for(l=(new $g).a();!I.b();)V=E=I.fa(),ZP(tN(),V.k,c)===xc().Eg!==!1&&vh(l,E),I=I.sa();I=l.wa();l=function(){return function(a){return a.ba}}(a);E=Di().s;if(E===Di().s)if(I===G())I=G();else{E=I.fa();V=E=oz(new pz,l(E),G());for(I=I.sa();I!==G();)var da=I.fa(),da=oz(new pz,l(da),G()),V=V.ve=da,I=I.sa();I=E}else{for(E=Rf(I,E);!I.b();)V=
I.fa(),E.Ic(l(V)),I=I.sa();I=E.lc()}l=yk();l=null!==c&&c.h(l)?w():(new A).d(yk());E=t(new u,function(){return function(a){return a.ba}}(a));V=z();E=k.ka(E,V.s);V=Di();y=y.la(E,V.s);E=t(new u,function(){return function(a){return a.ba}}(a));V=z();E=h.ka(E,V.s);V=Di();I=I.la(E,V.s);E=t(new u,function(){return function(a){return a.ba}}(a));V=z();E=b.ka(E,V.s);V=Di();p=p.la(E,V.s);E=z();k=k.la(h,E.s);h=z();b=k.la(b,h.s);k=tN().qf;h=z();b=b.la(k,h.s);z();Oj();k=(new $g).a().wa();h=(new ct).a();return KHa(new uN,
c,l,p,y,I,k,b,h)}throw(new v).d(b);}}(a)),c=Ce().s;return De(b,a,c).wa()}WP.prototype.$classData=q({CZa:0},!1,"amf.plugins.document.webapi.validation.DefaultAMFValidations$",{CZa:1,f:1,afb:1});var YKa=void 0;function XP(){YKa||(YKa=(new WP).a());return YKa}function $P(){}$P.prototype=new r;$P.prototype.constructor=$P;$P.prototype.a=function(){return this};$P.prototype.hW=function(){return!1};function ZKa(a,b){return!b.Cd(t(new u,function(){return function(a){return a.km===xc().tb}}(a)))}
$P.prototype.JL=function(a){return ZKa(this,a)};$P.prototype.$classData=q({SZa:0},!1,"amf.plugins.document.webapi.validation.remote.BooleanValidationProcessor$",{SZa:1,f:1,ZZa:1});var $Ka=void 0;function aLa(){$Ka||($Ka=(new $P).a());return $Ka}function aQ(){this.Vm=this.ra=null;this.Zba=!1;this.Pea=this.Nq=null}aQ.prototype=new r;aQ.prototype.constructor=aQ;function bLa(){}bLa.prototype=aQ.prototype;
function cLa(a,b,c,e){if(bba().NH.Ja(b))try{var f;if(a.Zba)f=(new P).N(w(),w());else{if("application/json"===b)var g=a.Qfa,h=NK(),k=!(null!==g&&g===h);else k=!1;var l;if(k)l=(new P).N((new A).d(dLa(c)),w());else{var p,y=(new eLa).zba(a),I=new ap,E;a:{var V=G();z();Oj();var da=(new $g).a(),sa=(new bQ).Vk("",V,(new yp).co("",da.wa(),(new Np).a(),Op(),w()),w(),w(),w(),py().On),ua=("application/json"===b?Tva(DF(),c,y):ewa(iwa(),c,y)).PA(!0),Ia=(new fLa).zba(a),Pa=hd(ua,Ia);if(x(Pa)){var Za=Pa.i;if(null!==
Za){E=fh(hh(),Nv(new Ov,Za,(new Mv).a(),w(),(new Ie).a(),sa).Ir(),b);break a}}if(w()===Pa){hh();Dr();var db=w();E=fh(0,Ar(0,c,db,(M(),(new N).a())),b)}else throw(new v).d(Pa);}p=fga(I,E,y.pE.wa());if(Tc(p.nk))rc=!1;else var Qb=a.Qfa,bc=NK(),rc=null!==Qb&&Qb===bc;if(rc){var Fc;a:{var Rd=Cqa(),Ld=p.mg,ze=a.ra;if(Bqa(0,ze)||Aqa(Rd,ze)){var Td=Xp(Ld.g,Dm().ob);if(wj(Td)){var Je=B(Td.ea,xj().af).G;if(Je.b())Hd=!1;else var $d=Je.c(),te=qi().Mj,Hd=$d===te;if(!Hd){hh();Dr();var ie=B(Td.ea,xj().rf).G,Nd=Ar(0,
ie.b()?null:ie.c(),(new A).d(qi().Mj),Td.ab),td=B(Ld.g,Dm().Md).G;Fc=fh(0,Nd,td.b()?null:td.c());break a}}}Fc=Ld}var yd=fga(new ap,Fc,p.nk)}else yd=p;l=Tc(yd.nk)?(new P).N(w(),(new A).d(yd)):(new P).N(gLa(yd.mg),(new A).d(yd))}f=l}return hLa(a,f,e)}catch(ud){if(iLa(ud))return e.hW(ud,w());throw ud;}else return a=z(),b="Unsupported payload media type '"+b+"', only "+bba().NH.u()+" supported",c=xc().tb,f=w(),g=vo().AD.k,h=w(),k=w(),b=[vc(new wc,b,c,"",f,g,h,k,null)],e.JL(H(a,(new J).aa(b)))}
aQ.prototype.fca=function(a,b){return hb(ib(),jb(function(a,b,f){return function(){return!!cLa(a,b,f,aLa())}}(this,a,b)),um())};aQ.prototype.nX=function(a,b){return hb(ib(),jb(function(a,b,f){return function(){var g=Dda().hr;return cLa(a,b,f,(new cQ).S0(g))}}(this,a,b)),um())};aQ.prototype.j6a=function(a){this.ra=a;this.Vm=xc().tb;this.Zba=Si(a);this.Nq=bb();this.Pea=pc(Os(),G());return this};
aQ.prototype.mX=function(a){return hb(ib(),jb(function(a,c){return function(){var e=Dda().hr,f;e=(new cQ).S0(e);try{var g;g=a.Zba?(new P).N(w(),w()):(new P).N(gLa(c),(new A).d(fga(new ap,c,G())));f=hLa(a,g,e)}catch(h){if(iLa(h))f=e.hW(h,(new A).d(Xp(c.g,Dm().ob)));else throw h;}return f}}(this,a)),um())};
function hLa(a,b,c){if(null!==b){var e=b.Ba();if(x(e)&&(e=e.i,Tc(e.nk)))return c.JL(e.nk)}if(null!==b&&(e=b.pa(),b=b.Ba(),x(e))){e=e.i;b.b()?b=w():(b=b.c(),b=(new A).d(b.mg));try{if(Xh(a.ra)){var f;var g=a.ra,h=a.Pea.Ta(g.k);if(x(h)){var k=h.i;Zf();var l=(new A).d(k);f=(new ag).d(l)}else{var p;M();var y=(new N).a(),I=(new dQ).P((new Q).a(),y);vj(I.g,efa().ob,g,(M(),(new N).a()));var E=op(),V=new Wp,da=new eQ,sa=(new fQ).uU(Wo(Xo(),I),Lha());da.C0=I;gQ.prototype.Uaa.call(da,I,sa);var ua=XCa(E,Vp(V,
da.cK(),w()));if(x(ua)){var Ia=dLa(ja(ua.i));xJ().MC.call(Ia,"x-amf-fragmentType")&&delete Ia["x-amf-fragmentType"];xJ().MC.call(Ia,"example")&&delete Ia.example;xJ().MC.call(Ia,"examples")&&delete Ia.examples;xJ().MC.call(Ia,"x-amf-examples")&&delete Ia["x-amf-examples"];Zf();var Pa=(new A).d(Ia);p=(new ag).d(Pa)}else if(w()===ua){Zf();var Za=w();p=(new ag).d(Za)}else throw(new v).d(ua);if(Hp(p)){var db=p.i;if(!db.b()){var Qb=db.c();a.Pea.Oe(g.k,Qb)}Zf();f=(new ag).d(db)}else if(Ep(p)){var bc=p.i;
Zf();f=(new $f).d(bc)}else throw(new v).d(p);}}else{Zf();var rc=z(),Fc=a.Vm,Rd=(new A).d(a.ra.k),Ld=vo().AD.k,ze=Zb(a.ra.ha(),n(Fd)),Td=a.ra.Yb(),Je=[vc(new wc,"Cannot validate shape that is not an any shape",Fc,"",Rd,Ld,ze,Td,null)],$d=c.JL(H(rc,(new J).aa(Je)));f=(new $f).d($d)}if(Hp(f)){var te=f.i;if(x(te)){var Hd;var ie=te.i;a=b;var Nd=c===aLa(),td;if(Nd)td=yqa().waa();else{var yd=yqa();if(0===(1&yd.ma)<<24>>24&&0===(1&yd.ma)<<24>>24){var ud,Ve=vqa(),Me=(new (qqa())(pqa(Ve))).addMetaSchema(sqa());
ud=tqa(Me);yd.$n=ud;yd.ma=(1|yd.ma)<<24>>24}td=yd.$n}try{var Rc=!!td.validate(ie,e);if(Nd)Hd=Rc;else{if(Rc)ae=G();else{for(var me=td.errors,ie=void 0===me?[]:me,Nd=[],Rc=0,Ae=ie.length|0;Rc<Ae;){var We=ie[Rc],od,me=We,Ad=me.dataPath;td=Ad;0<=(td.length|0)&&"."===td.substring(0,1)&&(Ad=LBa(ta(),Ad,"\\.",""));od=(Ad+" "+me.message).trim();var ue=xc().tb;if(a.b())var Id=w();else var gf=a.c(),Id=(new A).d(Xp(gf.g,Dm().ob).k);var Jd=Id.b()?"":Id.c();if(a.b())var Vd=w();else var je=a.c(),Vd=(new A).d(Xp(je.g,
Dm().ob).k);var Wd=vo().AD.k,ve=a.b()?w():Zb(Xp(a.c().g,Dm().ob).ha(),n(Fd));if(a.b())var $c=w();else var we=Xp(a.c().g,Dm().ob),$c=Yb(we);var cd=vc(new wc,od,ue,Jd,Vd,Wd,ve,$c,We);Nd.push(cd);Rc=1+Rc|0}var ae=(new J).aa(Nd)}Hd=c.JL(ae)}}catch(Ed){var be=gi(Mb(),Ed);if(pJ(be)){if(a.b())var xe=w();else var ne=a.c(),xe=(new A).d(Xp(ne.g,Dm().ob));Hd=c.hW(be,xe)}else throw Ed;}return Hd}}return Ep(f)?f.i:c.JL(G())}catch(Ed){if(Ed&&Ed.$classData&&Ed.$classData.v.YZa)return b.b()?Hd=w():(Hd=b.c(),Hd=(new A).d(Xp(Hd.g,
Dm().ob))),c.hW(Ed,Hd);throw Ed;}}return c.JL(G())}function TP(){this.bh=null}TP.prototype=new r;TP.prototype.constructor=TP;TP.prototype.a=function(){SKa=this;Fi(this);return this};TP.prototype.QB=function(a){this.bh=a};TP.prototype.$classData=q({s_a:0},!1,"amf.plugins.domain.shapes.metamodel.common.DocumentationField$",{s_a:1,f:1,Ez:1});var SKa=void 0;function UP(){this.Vc=null}UP.prototype=new r;UP.prototype.constructor=UP;UP.prototype.a=function(){TKa=this;Ji(this);return this};
UP.prototype.hy=function(a){this.Vc=a};UP.prototype.$classData=q({t_a:0},!1,"amf.plugins.domain.shapes.metamodel.common.ExamplesField$",{t_a:1,f:1,Aw:1});var TKa=void 0;function hQ(){}hQ.prototype=new r;hQ.prototype.constructor=hQ;hQ.prototype.a=function(){return this};hQ.prototype.$classData=q({H_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$AnyType$",{H_a:1,f:1,sm:1});var jLa=void 0;function Xv(){jLa||(jLa=(new hQ).a());return jLa}function iQ(){}iQ.prototype=new r;iQ.prototype.constructor=iQ;
iQ.prototype.a=function(){return this};iQ.prototype.$classData=q({I_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$ArrayType$",{I_a:1,f:1,sm:1});var kLa=void 0;function wg(){kLa||(kLa=(new iQ).a());return kLa}function jQ(){}jQ.prototype=new r;jQ.prototype.constructor=jQ;jQ.prototype.a=function(){return this};jQ.prototype.$classData=q({T_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$JSONSchemaType$",{T_a:1,f:1,sm:1});var lLa=void 0;function $la(){lLa||(lLa=(new jQ).a());return lLa}
function kQ(){}kQ.prototype=new r;kQ.prototype.constructor=kQ;kQ.prototype.a=function(){return this};kQ.prototype.$classData=q({U_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$LinkType$",{U_a:1,f:1,sm:1});var mLa=void 0;function nLa(){mLa||(mLa=(new kQ).a());return mLa}function lQ(){}lQ.prototype=new r;lQ.prototype.constructor=lQ;lQ.prototype.a=function(){return this};lQ.prototype.$classData=q({W_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$MultipleMatch$",{W_a:1,f:1,sm:1});var oLa=void 0;
function pLa(){oLa||(oLa=(new lQ).a());return oLa}function mQ(){}mQ.prototype=new r;mQ.prototype.constructor=mQ;mQ.prototype.a=function(){return this};mQ.prototype.$classData=q({Y_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$NilUnionType$",{Y_a:1,f:1,sm:1});var qLa=void 0;function rLa(){qLa||(qLa=(new mQ).a());return qLa}function nQ(){}nQ.prototype=new r;nQ.prototype.constructor=nQ;nQ.prototype.a=function(){return this};
nQ.prototype.$classData=q({$_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$ObjectType$",{$_a:1,f:1,sm:1});var sLa=void 0;function xg(){sLa||(sLa=(new nQ).a());return sLa}function oQ(){}oQ.prototype=new r;oQ.prototype.constructor=oQ;oQ.prototype.a=function(){return this};oQ.prototype.$classData=q({d0a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$TypeExpressionType$",{d0a:1,f:1,sm:1});var tLa=void 0;function Tca(){tLa||(tLa=(new oQ).a());return tLa}function pQ(){}pQ.prototype=new r;
pQ.prototype.constructor=pQ;pQ.prototype.a=function(){return this};pQ.prototype.$classData=q({e0a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$UndefinedType$",{e0a:1,f:1,sm:1});var uLa=void 0;function Gg(){uLa||(uLa=(new pQ).a());return uLa}function qQ(){}qQ.prototype=new r;qQ.prototype.constructor=qQ;qQ.prototype.a=function(){return this};qQ.prototype.$classData=q({f0a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$UnionType$",{f0a:1,f:1,sm:1});var vLa=void 0;
function Yv(){vLa||(vLa=(new qQ).a());return vLa}function rQ(){}rQ.prototype=new r;rQ.prototype.constructor=rQ;rQ.prototype.a=function(){return this};rQ.prototype.$classData=q({g0a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$XMLSchemaType$",{g0a:1,f:1,sm:1});var wLa=void 0;function ama(){wLa||(wLa=(new rQ).a());return wLa}function sQ(){this.UDa=this.dO=null}sQ.prototype=new Yja;sQ.prototype.constructor=sQ;sQ.prototype.EU=function(a){this.dO=a;this.UDa=(new xLa).a();return this};
sQ.prototype.NGa=function(a){return yLa(this,a)};function yLa(a,b){return(new A).d(zLa(ALa(),BLa(CLa(),b,a.dO,a.UDa),a.dO))}sQ.prototype.$classData=q({o0a:0},!1,"amf.plugins.domain.shapes.resolution.stages.ShapeTransformer",{o0a:1,ePa:1,f:1});function xB(){this.k3=this.M9=this.sf=null;this.lo=!1}xB.prototype=new r;xB.prototype.constructor=xB;
function DLa(a,b,c){var e=B(c.ea,ci().Rg),f=B(b.ea,ci().Rg),g=pc(qc(),G());e.X(t(new u,function(a,b){return function(a){a=B(a.ea,rj().$f).G;return b.Oe(a.b()?null:a.c(),!1)}}(a,g)));f.X(t(new u,function(a,b){return function(a){var c=B(a.ea,rj().$f).G;if(b.Ta(c.b()?null:c.c()).qa())return a=B(a.ea,rj().$f).G,b.Oe(a.b()?null:a.c(),!0);a=B(a.ea,rj().$f).G;return b.Oe(a.b()?null:a.c(),!1)}}(a,g)));for(var h=aqa().s,h=Rf(g,h),k=g.qe,g=dC(g),l=k.j[g];null!==l;){var p=l.Sa(),l=(new P).N(l.oa,l.t);var y=
l.ep;if(!0===!!l.rq)l=e.Ib(t(new u,function(a,b){return function(a){a=B(a.ea,rj().$f);return Xb(a,b)}}(a,y))).c(),y=f.Ib(t(new u,function(a,b){return function(a){a=B(a.ea,rj().$f);return Xb(a,b)}}(a,y))).c(),l=yB(a.sf,y,l);else if(y=l.ep,!1===!!l.rq){var I=e.Ib(t(new u,function(a,b){return function(a){a=B(a.ea,rj().$f);return Xb(a,b)}}(a,y))),l=f.Ib(t(new u,function(a,b){return function(a){a=B(a.ea,rj().$f);return Xb(a,b)}}(a,y)));if(a.lo)if(I.b()?y=w():(y=I.c(),y=(new A).d(ELa(a,c,y))),y.b())var l=
l.c(),y=(new A).d(a.sf.ub),I=w(),E=(new yL).a(),l=FLa(l,y,I,E);else l=y.c();else I.b()?y=w():(y=I.c(),y=(new A).d(FLa(y,(new A).d(a.sf.ub),w(),(new yL).a()))),y.b()?(l=l.c(),y=(new A).d(a.sf.ub),I=w(),E=(new yL).a(),l=FLa(l,y,I,E)):l=y.c()}else throw(new v).d(l);h.Ic(l);for(l=p;null===l&&0<g;)g=-1+g|0,l=k.j[g]}e=h.lc();f=Wa().Ia(uj(b.ea,ci().Rg));if(x(f))f=f.i.E;else{if(w()!==f)throw(new v).d(f);M();f=(new N).a()}vj(b.ea,ci().Rg,gr(new hr,e.ce(),(new N).a()),f);e=ci().g;f=z();h=[ci().Rg,ci().Vc];
f=H(f,(new J).aa(h));yj(a,e,b,c,f);a.sf.bca&&(a=Zb(c.ab,n(Zh)),a.b()||(a=a.c(),b.ab.Wb(a)));return b}xB.prototype.EU=function(a){this.sf=a;var b=xh().g,c=Wh().g,e=Di(),b=b.la(c,e.s),c=ci().g,e=Di(),b=b.la(c,e.s),c=th().g,e=Di();this.M9=b.la(c,e.s).Ri();this.k3=(new GLa).DU(this);this.lo=a.lo;return this};function HLa(a,b,c){b.ca().Pb.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();null!==c&&null!==a&&(b.ea.Pb.Ja(c)||Fh(b,c,a.t,a.E))}}}(a,c)));return c}
function ILa(a,b,c){c.Mg.X(t(new u,function(a,b){return function(c){b.Mg.Om(c);var h=a.sf.qh,k=z();JLa(h,H(k,(new J).aa([c])),b)}}(a,b)))}function KLa(a,b,c){var e=LLa(a.k3,a.sf),f=B(b.ea,lo().Ee),e=t(new u,function(a,b,c){return function(a){return yB(b,a,c)}}(a,e,c)),g=z(),f=f.ka(e,g.s);vj(b.ea,lo().Ee,gr(new hr,f,(new N).a()),uj(b.ea,lo().Ee).E);f=lo().g;e=z();g=[lo().Ee];e=H(e,(new J).aa(g));yj(a,f,b,c,e);return b}
function MLa(a,b,c){var e=LLa(a.k3,a.sf);if(B(b.ea,lo().Ee).b()||B(c.ea,lo().Ee).b())var f=B(b.ea,lo().Ee),e=B(c.ea,lo().Ee),g=z(),f=f.la(e,g.s);else if(f=B(b.ea,lo().Ee),e=t(new u,function(a,b,c){return function(e){var f=B(b.ea,lo().Ee);e=t(new u,function(a,b,c){return function(a){try{return(new A).d(yB(b,c,a))}catch(e){a=gi(Mb(),e);if(hi(a))return w();throw e;}}}(a,c,e));var g=z();return f.ka(e,g.s)}}(a,c,e)),g=z(),f=f.md(e,g.s),e=(new NLa).DU(a),g=z(),f=f.$b(e,g.s),f.b())throw ij(new jj,"Cannot compute inheritance for union",
w(),$h(b),Zb(b.ab,n(Fd)),!1);vj(b.ea,lo().Ee,gr(new hr,f,(new N).a()),uj(b.ea,lo().Ee).E);f=lo().g;e=z();g=[lo().Ee];e=H(e,(new J).aa(g));yj(a,f,b,c,e);return b}function OLa(a,b,c){var e=xh().g;z();Oj();var f=(new $g).a().wa();yj(a,e,b,c,f);return b}
function ira(a,b,c){if(Xh(c)){var e=Qg.prototype.vG.call(c);c=Te(e,c.k)}else no(c)&&(e=Qg.prototype.vG.call(c),e=Te(e,c.k),c=c.dn,c.b()||(c=c.c(),fj(e,c)),c=e);b=b.aO((new A).d(a.sf.ub),b.G$(),b.H_(),!1);ILa(a,b,c);try{var e=!1,f=null,g=!1,h=null;if(di(b)&&di(c)){var k=B(b.ea,xh().af).G,l=k.b()?null:k.c(),p=B(c.ea,xh().af).G,y=p.b()?null:p.c();if(l===y)return OLa(a,b,c);if(l!==qi().hj||y!==qi().rg&&y!==qi().vi&&y!==qi().jp){var I=a.sf.ub,E=Bo().bN,V=(new A).d(Gc(Pg().ld.t)),da="Resolution error: Invalid scalar inheritance base type "+
l+" \x3c "+y+" ",sa=b.k,ua=Zb(b.ha(),n(Fd)),Ia=b.Yb();I.Hc(E.k,sa,V,da,ua,xc().tb,Ia);return b}var Pa=qi().hj,Za=xh().af;return OLa(a,b,Eb(c,Za,Pa))}if(Vh(b)&&Vh(c)){var I=c,da=Wa().Ia(B(I.ea,Wh().wf)),db=Wa().Ia(B(b.ea,Wh().wf));if(db.b())var Qb=w();else var bc=db.c(),rc=x(da)?yB(a.sf,bc,da.i):bc,Qb=(new A).d(rc);var Fc=Qb.b()?da:Qb;if(!Fc.b()){var Rd=Fc.c();Wy(b,Rd)}var Ld=Wh().g,ze=z(),Td=[Wh().wf],Je=H(ze,(new J).aa(Td));yj(a,Ld,b,I,Je);return b}if(Oi(b)&&Oi(c)){var I=c,$d=B(I.ea,Wh().wf),te=
B(b.ea,Wh().wf);if(Wa().Ia($d).qa()&&Wa().Ia(te).qa()){var Hd=yB(a.sf,te,$d);vj(b.ea,Wh().wf,Hd,(M(),(new N).a()));var ie=Wh().g,Nd=z(),td=[Wh().wf],yd=H(Nd,(new J).aa(td));yj(a,ie,b,I,yd)}else Wa().Ia($d).qa()&&vj(b.ea,Wh().wf,$d,(M(),(new N).a()));return b}if(Qi(b)&&Qi(c))return PLa(a,b,c);if(bi(b)&&(e=!0,f=b,bi(c)))return DLa(a,f,c);if(Ni(b)&&(g=!0,h=b,Ni(c)))return MLa(a,h,c);if(g&&bi(c))return KLa(a,h,c);if(null!==b&&Ni(c))return QLa(a,b,c);if(dm(b)&&dm(c)){var I=c,ud=yB(a.sf,B(b.ea,rj().If),
B(I.ea,rj().If));vj(b.ea,rj().If,ud,uj(b.ea,rj().If).E);var Ve=rj().sc(),Me=z(),Rc=[rj().If],me=H(Me,(new J).aa(Rc));yj(a,Ve,b,I,me);return b}if(Si(b)&&Si(c)){var I=c,Ae=ao().g;z();Oj();var We=(new $g).a().wa();yj(a,Ae,b,I,We);return b}if(Ti(b)&&Ti(c))return b;if(no(c))return wda(a,b,c);var od=b.rc(),Ad=th();if(null!==od&&od===Ad)var ue=!0;else var Id=c.rc(),gf=th(),ue=null!==Id&&Id===gf;if(ue){var Jd;if(Xh(b))Jd=wda(a,b,c);else{var I=c,Vd=a.M9;z();Oj();var je=(new $g).a().wa();yj(a,Vd,b,I,je);Jd=
b}return Jd}if(e&&bi(f)&&B(f.ea,ci().Rg).b()&&bi(c))return wda(a,f,c);if(ai(b)){var Wd=c.rc(),ve=fo();if(null!==Wd&&Wd===ve)return HLa(a,c,b)}var $c=a.sf.ub,we=Bo().bN,cd=(new A).d(Gc(Pg().ld.t)),ae="Resolution error: Incompatible types ["+Tla(Vla(),b.Vv())+", "+Tla(Vla(),c.Vv())+"]",be=b.k,xe=Zb(b.ha(),n(Fd)),ne=b.Yb();$c.Hc(we.k,be,cd,ae,xe,xc().tb,ne);return b}catch(Ed){if(Ed&&Ed.$classData&&Ed.$classData.v.i8)return Ed.NBa?(a=a.sf.ub,I=Bo().bN,E=b.k,V=Ed.c2,V=V.b()?(new A).d(Gc(Pg().ld.t)):V,
sa=Ed.Ls,ua=Ed.$1,ua=ua.b()?Zb(b.ha(),n(Fd)):ua,Ia=Ed.E1,Ia=Ia.b()?b.Yb():Ia,a.Hc(I.k,E,V,sa,ua,xc().tb,Ia)):(a=a.sf.ub,I=Bo().$R,E=b.k,V=Ed.c2,V=V.b()?(new A).d(Gc(Pg().ld.t)):V,sa=Ed.Ls,ua=Ed.$1,ua=ua.b()?Zb(b.ha(),n(Fd)):ua,Ia=Ed.E1,a.Vs(I,E,V,sa,ua,Ia.b()?b.Yb():Ia)),b;throw Ed;}}
function PLa(a,b,c){var e=B(b.ea,Un().Np),f=B(c.ea,Un().Np);if(e.Ka()!==f.Ka()){if(a.sf.bca&&f.b())return vj(b.ea,Un().wf,gr(new hr,e,(new N).a()),hs(b.ea,Un().wf).ha()),b;throw ij(new jj,"Cannot inherit from a tuple shape with different number of elements",w(),$h(b),Zb(b.ab,n(Fd)),!1);}f=f.Kx().cg((new tQ).a());f=RLa(f,t(new u,function(){return function(a){return null!==a}}(a)));e=t(new u,function(a,b){return function(c){if(null!==c){var e=c.pa();c=c.si();return yB(a.sf,e,b.jb(c))}throw(new v).d(c);
}}(a,e));(new tQ).a();e=f.VE(e);vj(b.ea,Un().wf,gr(new hr,e,(new N).a()),hs(b.ea,Un().wf).ha());var e=Un().ea,f=z(),g=[Un().wf],f=H(f,(new J).aa(g));yj(a,e,b,c,f);return b}
function QLa(a,b,c){var e=LLa(a.k3,a.sf),f=B(c.ea,lo().Ee),e=t(new u,function(a,b,c){return function(a){try{var e=yB(b,c,a),f=B(a.ca(),Pg().$).G;if(!f.b()){var g=f.c();M();var h=(new N).a();Ue(e,g,h)}if(bi(e)&&bi(a)){var k=e.ea,ua=ci().Pk,Ia=k.Pb.Ta(ua);if(!Ia.b()){var Pa=Ia.c(),Za=ci().Pk,db=B(a.ea,ci().Pk);(new A).d(Fh(e,Za,Nh(new Oh,gd(db),Pa.t.ha()),Pa.E))}}return(new A).d(e)}catch(Qb){a=gi(Mb(),Qb);if(hi(a))return w();throw Qb;}}}(a,e,b)),g=z(),f=f.ka(e,g.s),e=(new SLa).DU(a),g=z(),e=f.$b(e,
g.s);if(e.b())throw ij(new jj,"Cannot compute inheritance from union",w(),b.Yb(),Zb(b.ha(),n(Fd)),!1);f=G();f=(new Qd).d(f);g=z();e.cg(g.s).X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.si();c.k=c.k+"_"+a;if(Xh(c)){a=b.ta;var e=B(c.ca(),th().Vc),f=Di();b.ta=a.la(e,f.s);gs(c.ca(),th().Vc);gs(c.ca(),th().Jj);gs(c.ca(),th().vh)}return c}throw(new v).d(a);}}(a,f)));vj(c.ea,lo().Ee,gr(new hr,e,(new N).a()),uj(c.ea,lo().Ee).E);var e=a.M9,g=z(),h=[lo().Ee],g=H(g,(new J).aa(h));
yj(a,e,b,c,g);b.ca().Pb.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();var e=lo().Ee;(null===c?null===e:c.h(e))||vj(b.ea,c,a.t,a.E)}else throw(new v).d(a);}}(a,c)));Tc(f.ta)&&(a=c.ea,e=th().Vc,vj(a,e,gr(new hr,oM(f.ta),(new N).a()),(M(),(new N).a())));return Te(c,b.k)}function ELa(a,b,c){a=FLa(c,(new A).d(a.sf.ub),w(),(new yL).a());Zb(a.ab,n(Aj)).b()&&a.ab.Wb((new Bj).e(b.k));return a}
xB.prototype.$classData=q({r0a:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.MinShapeAlgorithm",{r0a:1,f:1,gfb:1});function pP(){this.ub=null}pP.prototype=new cu;pP.prototype.constructor=pP;pP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};
function TLa(a,b){var c=B(b.g,Jn().kr),e=t(new u,function(){return function(a){return B(a.g,Tm().xk)}}(a)),f=z(),c=c.md(e,f.s),e=t(new u,function(){return function(a){return B(a.g,Zm().Zl)}}(a)),f=z(),c=c.md(e,f.s),e=z();c.cg(e.s).X(t(new u,function(a){return function(b){if(null!==b){var c=b.pa();b=b.si();var e=B(c.g,Bn().Vc),f=t(new u,function(){return function(a){var b=B(a.g,lh().Md).G,b=b.b()?null:b.c();return(new P).N(b,a)}}(a)),y=z(),e=e.ka(f,y.s).$g(fc().ci);gs(c.g,Bn().Vc);e.X(t(new u,function(a,
b,c){return function(e){if(null!==e){var f=e.pa();e=e.Ba();var g=B(b.g,Bn().mf).Ib(t(new u,function(a,b){return function(a){a=B(a.g,vn().Md).G;return(a.b()?null:a.c())===b}}(a,f)));if(x(g)){g=g.i;f=B(g.g,vn().Fc);if(Xh(f)){g=Zqa($qa(),g.k);ac(e,g);if(B(f.ca(),th().Vc).Cd(t(new u,function(a,b){return function(a){return a.k===b.k}}(a,e))))return;g=B(e.g,lh().Md).G;g=""+(g.b()?null:g.c())+c;M();var h=(new N).a();Ue(e,g,h);g=B(f.ca(),th().Vc);e=H(z(),(new J).aa([e]));h=z();e=g.la(e,h.s);g=th().Vc;return qf(f,
g,e)}f=B(b.g,Bn().Vc);e=H(z(),(new J).aa([e]));g=z();e=f.la(e,g.s);f=Bn().Vc;return qf(b,f,e)}ULa(a,e,f,B(b.g,Bn().mf));f=B(b.g,Bn().Vc);e=H(z(),(new J).aa([e]));g=z();e=f.la(e,g.s);f=Bn().Vc;return qf(b,f,e)}throw(new v).d(e);}}(a,c,b)))}else throw(new v).d(b);}}(a)));return b}
function ULa(a,b,c,e){e.b()?(c=a.ub,a=Bo().c6,sz(c,a,b.k,"When schema is undefined, 'examples' facet is invalid as no content is returned as part of the response",b.E)):(a=a.ub,e=Bo().b6,sz(a,e,b.k,"Mime type '"+c+"' defined in examples must be present in a 'produces' property",b.E))}pP.prototype.He=function(a){if(Ol(a)&&Kn(a.ze())){var b=TLa(this,a.ze()),c=Rl().ob;return ff(a,c,b)}return a};
pP.prototype.$classData=q({K1a:0},!1,"amf.plugins.domain.webapi.resolution.stages.ExamplesResolutionStage",{K1a:1,ji:1,f:1});function oP(){this.Lr=this.ub=null;this.jm=this.u1=!1}oP.prototype=new cu;oP.prototype.constructor=oP;
function VLa(a,b){B(b.g,yn().mf).xb(t(new u,function(a){return function(b){b=B(b.g,vn().Fc);return bi(b)?B(b.ea,ci().Rg).Cd(t(new u,function(){return function(a){return Si(B(a.ea,rj().If))}}(a))):!1}}(a))).xb(t(new u,function(){return function(a){a=B(a.g,vn().Md).G;a=x(a)&&"multipart/form-data"===a.i?!0:x(a)&&"application/x-www-form-urlencoded"===a.i?!0:!1;return!a}}(a))).X(t(new u,function(a){return function(b){b=B(b.g,vn().Fc);(bi(b)?B(b.ea,ci().Rg).xb(t(new u,function(){return function(a){return Si(B(a.ea,
rj().If))}}(a))):G()).X(t(new u,function(a){return function(b){var c=a.ub,e=Bo().y6,l=b.k;b=B(b.ea,rj().If).ha();sz(c,e,l,"Consumes must be either 'multipart/form-data', 'application/x-www-form-urlencoded', or both when a file parameter is present",b)}}(a)))}}(a)))}
function WLa(a,b,c,e){var f=b.jn(t(new u,function(){return function(a){return Dd(a.g,vn().Md).b()}}(a)));if(null===f)throw(new v).d(f);b=f.pa();f=f.Ba();f=(new Qd).d(f);b.X(t(new u,function(a,b,c,e){return function(f){b.X(t(new u,function(a,b,c,e){return function(a){var f=b.ta,g=c.E,g=(new VO).P((new Q).a(),g),h=vn().Md;a=Eb(g,h,a);H(z(),G());a=cj(a,e);if(Wa().Ia(B(c.g,vn().Fc)).qa()){var g=a.g,h=vn().Fc,k=a.k;vj(g,h,Wqa(kB(),B(c.g,vn().Fc),k,c.k),(M(),(new N).a()))}g=z();b.ta=f.hg(a,g.s)}}(a,c,f,
e)));c.ta.X(t(new u,function(a,b){return function(a){var c=b.k;Yqa(kB(),B(a.g,vn().Fc),c)}}(a,f)))}}(a,c,f,e)));return f.ta}
function XLa(a,b){B(b.g,Jn().kr).X(t(new u,function(a){return function(b){var f=B(b.g,Tm().mf);gs(b.g,Tm().mf);f.Fa()&&B(b.g,Tm().xk).X(t(new u,function(a,b){return function(c){var e=Wa().Ia(B(c.g,Zm().kp));if(x(e))b.X(t(new u,function(a,b){return function(a){var c=yn().mf;return nh(b,c,a)}}(a,e.i)));else{if(w()===e)return c=YLa(c),e=yn().mf,qf(c,e,b);throw(new v).d(e);}}}(a,f)))}}(a)))}
oP.prototype.HG=function(a,b){var c=Dd(a.ca(),b);if(c.b())c=w();else var c=c.c().t.t.Tb,e=t(new u,function(){return function(a){return a.u()}}(this)),f=z(),c=(new A).d(c.ka(e,f.s));this.u1||this.jm||gs(a.ca(),b);return c};oP.prototype.He=function(a){Ol(a)&&Kn(a.ze())&&(XLa(this,a.ze()),ZLa(this,a.ze()));return a};
function ZLa(a,b){var c=a.HG(b,Jn().Jp),e=a.HG(b,Jn().tl);B(b.g,Jn().kr).X(t(new u,function(a,b,c){return function(e){B(e.g,Tm().xk).X(t(new u,function(a,b,c){return function(e){var f=a.HG(e,Zm().Jp),g=a.HG(e,Zm().tl),h=$La(b,f),g=$La(c,g),f=Wa().Ia(B(e.g,Zm().kp));if(!f.b()){f=f.c();if(x(h)){h=h.i;if(a.u1)k=!1;else var k=a.Lr,ua=Bk(),k=null!==k&&k.h(ua);k&&(k=Zm().Jp,dr(e,k,h));k=yn().mf;h=WLa(a,B(f.g,yn().mf),h,f.k);qf(f,k,h)}else if(w()!==h)throw(new v).d(h);h=a.Lr;k=Ck();null!==h&&h.h(k)&&VLa(a,
f)}B(e.g,Zm().Zl).X(t(new u,function(a,b,c){return function(e){if(x(b)){var f=b.i;if(a.u1)g=!1;else var g=a.Lr,h=Bk(),g=null!==g&&g.h(h);g&&(g=Zm().tl,dr(c,g,f));g=yn().mf;f=WLa(a,B(e.g,Bn().mf),f,e.k);return qf(e,g,f)}if(w()!==b)throw(new v).d(b);}}(a,g,e)))}}(a,b,c)))}}(a,c,e)))}function GKa(a,b,c,e,f){a.Lr=b;a.u1=c;a.jm=e;bu.prototype.vb.call(a,f);return a}function $La(a,b){a=b.b()?a:b;return a.b()||a.c().Fa()?a:w()}
oP.prototype.$classData=q({L1a:0},!1,"amf.plugins.domain.webapi.resolution.stages.MediaTypeResolutionStage",{L1a:1,ji:1,f:1});function mP(){this.Lr=this.ub=null}mP.prototype=new cu;mP.prototype.constructor=mP;
function aMa(a,b){if(Ol(b)&&Kn(b.ze())){var c=b.ze(),e=bMa(a,c),f=G(),g=G(),h=G(),k=G(),l=G(),e=(new Qd).d(KO(new LO,f,e,g,h,k,l));B(c.g,Jn().kr).X(t(new u,function(a,b){return function(c){var e=b.ta,f=cMa(),g=B(c.g,Tm().$f).G;b.ta=dMa(e,eMa(f,g.b()?null:g.c(),B(c.g,Tm().Pn),G()));gs(c.g,Tm().Pn);b.ta.Fa()&&B(c.g,Tm().xk).X(t(new u,function(a,b){return function(a){return fMa(a,b.ta)}}(a,b)))}}(a,e)))}return b}
function gMa(a,b){Ol(b)&&Kn(b.ze())&&B(b.ze().g,Jn().kr).X(t(new u,function(a){return function(b){var f=B(b.g,Tm().Pn).jn(t(new u,function(){return function(a){a=B(a.g,Ej().df);return Xb(a,"path")}}(a)));if(null===f)throw(new v).d(f);var g=f.pa(),f=f.Ba(),h=cMa(),k=B(b.g,Tm().$f).G,f=eMa(h,k.b()?null:k.c(),f,G());f.Fa()&&B(b.g,Tm().xk).Fa()&&(gs(b.g,Tm().Pn),g.Fa()&&vj(b.g,Tm().Pn,gr(new hr,g,(new N).a()),(M(),(new N).a())),B(b.g,Tm().xk).X(t(new u,function(a,b){return function(a){return fMa(a,b)}}(a,
f))))}}(a)));return b}function hMa(a,b){Ol(b)&&Kn(b.ze())&&B(b.ze().g,Jn().kr).X(t(new u,function(a){return function(b){var f=cMa(),g=B(b.g,Tm().$f).G,f=eMa(f,g.b()?null:g.c(),B(b.g,Tm().Pn),G());f.Fa()&&B(b.g,Tm().xk).Fa()&&(gs(b.g,Tm().Pn),B(b.g,Tm().xk).X(t(new u,function(a,b){return function(a){return fMa(a,b)}}(a,f))))}}(a)));return b}
function fMa(a,b){var c=Wa().Ia(B(a.g,Zm().kp));a=c.b()?YLa(a):c.c();b=dMa(b,KO(new LO,B(a.g,yn().um),B(a.g,yn().lp),B(a.g,yn().Qg),G(),G(),G()));b.Ft.Fa()&&vj(a.g,yn().um,gr(new hr,b.Ft,(new N).a()),(M(),(new N).a()));b.Fg.Fa()&&vj(a.g,yn().Qg,gr(new hr,b.Fg,(new N).a()),(M(),(new N).a()));return b.Hg.Fa()?vj(a.g,yn().lp,gr(new hr,b.Hg,(new N).a()),(M(),(new N).a())):void 0}
function bMa(a,b){a=B(b.g,Jn().Wh).Ib(t(new u,function(){return function(a){return Zb(a.E,n(uQ)).qa()}}(a)));a.b()?a=w():(a=a.c(),b=B(a.g,fn().lj),gs(a.g,fn().lj),a=(new A).d(b));return a.b()?G():a.c()}mP.prototype.VG=function(a,b){this.Lr=a;bu.prototype.vb.call(this,b);return this};
mP.prototype.He=function(a){var b=this.Lr;if(Ek().h(b))return gMa(this,a);if(Bk().h(b)||Dk().h(b)||Gk().h(b))return hMa(this,a);if(yk().h(b))return aMa(this,a);var b=this.ub,c=Bc().nh,e=a.k,f=w(),g="Unknown profile "+this.Lr.Fi,h=w(),k=w();b.Hc(c.k,e,f,g,h,xc().tb,k);return a};mP.prototype.$classData=q({N1a:0},!1,"amf.plugins.domain.webapi.resolution.stages.ParametersNormalizationStage",{N1a:1,ji:1,f:1});function lP(){this.ub=null}lP.prototype=new cu;lP.prototype.constructor=lP;
lP.prototype.vb=function(a){bu.prototype.vb.call(this,a);return this};
function iMa(a,b,c){if(OP(b)&&OP(c)){b=B(b.g,QP().sr);var e=t(new u,function(){return function(a){return B(a.g,En().$).G.wa()}}(a)),f=z();b=b.md(e,f.s);var e=B(c.g,QP().sr),f=t(new u,function(){return function(a){return B(a.g,En().$).G.wa()}}(a)),g=z(),g=e.md(f,g.s).xb(t(new u,function(a,b){return function(a){return!b.Ja(a)}}(a,b)));if(g.Fa()){a=a.ub;b=Bc().nh;var e=c.k,f=QP().sr.t,f=(new A).d(U(W(),f)),g="Follow scopes are not defined in root: "+g.u(),h=Zb(c.ha(),n(Fd));c=Yb(c);a.Hc(b.k,e,f,g,h,
xc().tb,c)}}}
function jMa(a,b){var c=a.HG(b,Jn().oc);B(b.g,Jn().kr).X(t(new u,function(a,b){return function(c){var h=kMa(b,a.HG(c,Tm().oc));B(c.g,Tm().xk).X(t(new u,function(a,b){return function(c){var e=a.HG(c,Zm().oc),e=kMa(b,e);if(!e.b()&&(e=e.c(),e.X(t(new u,function(a){return function(b){if(null!==b){if(Wa().Ia(B(b.g,rn().li)).qa()){var c=Wa().Ia(B(b.g,rn().Eq));c.b()?c=w():(c=c.c(),c=(new A).d(B(c.g,vi().li)));c=c.qa()}else c=!1;c&&(c=B(b.g,rn().Eq),iMa(a,B(c.g,vi().li),B(b.g,rn().li)))}}}(a))),e.Fa())){var f=
Zm().oc;qf(c,f,e)}}}(a,h)))}}(a,c)))}function kMa(a,b){a=b.b()?a:b;return a.b()||a.c().Fa()?a:w()}lP.prototype.HG=function(a,b){var c=Dd(a.ca(),b);if(c.b())c=w();else var c=c.c().t.t.Tb,e=t(new u,function(){return function(a){return a}}(this)),f=z(),c=(new A).d(c.ka(e,f.s));gs(a.ca(),b);return c};lP.prototype.He=function(a){Ol(a)&&Kn(a.ze())&&jMa(this,a.ze());return a};lP.prototype.$classData=q({O1a:0},!1,"amf.plugins.domain.webapi.resolution.stages.SecurityResolutionStage",{O1a:1,ji:1,f:1});
function nP(){this.Lr=this.ub=null}nP.prototype=new cu;nP.prototype.constructor=nP;function lMa(a,b){if(Ol(b)&&Kn(b.ze())){var c=b.ze(),e=B(c.g,Jn().kr);mMa(a,c,e);e.X(t(new u,function(a){return function(b){mMa(a,b,B(b.g,Tm().xk))}}(a)))}return b}function mMa(a,b,c){if(c.Fa()){var e=B(b.ca(),Jn().Wh);gs(b.ca(),Jn().Wh);c.X(t(new u,function(a,b){return function(a){var c=a.ca(),e=Jn().Wh;if(!c.Pb.Ja(e))return c=Jn().Wh,qf(a,c,b)}}(a,e)))}}
nP.prototype.VG=function(a,b){this.Lr=a;bu.prototype.vb.call(this,b);return this};nP.prototype.He=function(a){var b=this.Lr;return Dk().h(b)?lMa(this,a):a};nP.prototype.$classData=q({P1a:0},!1,"amf.plugins.domain.webapi.resolution.stages.ServersNormalizationStage",{P1a:1,ji:1,f:1});function vQ(){this.qf=this.Cm=this.nh=this.pN=this.M8=this.I8=this.u9=this.S8=this.R8=this.xN=this.QZ=this.pY=this.PR=this.GS=this.FS=this.vD=this.F6=this.C9=this.iu=this.z6=this.K5=this.Iy=this.Zy=null;this.ma=!1}
vQ.prototype=new r;vQ.prototype.constructor=vQ;
vQ.prototype.a=function(){nMa=this;this.Zy=Nj().Yga;this.Iy=C().u5;var a=w(),b=w();this.K5=Mj(this,"cycle-reference","Cycle in references",a,b);a=w();b=w();this.z6=Mj(this,"invalid-cross-spec","Cross spec file usage is not allowed",a,b);a=w();b=w();this.iu=Mj(this,"unresolved-reference","Unresolved reference",a,b);a=w();b=w();this.C9=Mj(this,"uri-syntax-error","invalid uri syntax",a,b);a=w();b=w();this.F6=Mj(this,"invalid-fragment-ref","References with # in RAML are not allowed",a,b);a=w();b=w();
this.vD=Mj(this,"declaration-not-found","Declaration not found",a,b);a=w();b=w();this.FS=Mj(this,"syaml-error","Syaml error",a,b);a=w();b=w();this.GS=Mj(this,"syaml-warning","Syaml warning",a,b);a=w();b=w();this.PR=Mj(this,"expected-module","Expected Module",a,b);a=w();b=w();this.pY=Mj(this,"invalid-include","Invalid !include value",a,b);a=w();b=w();this.QZ=Mj(this,"parse-node-fail","JsonLD @types failed to parse in node",a,b);a=w();b=w();this.xN=Mj(this,"parse-rdf-document-fail","Unable to parse rdf document",
a,b);a=w();b=w();this.R8=Mj(this,"node-not-found","Builder for model not found",a,b);a=w();b=w();this.S8=Mj(this,"not-linkable","Only linkable elements can be linked",a,b);a=w();b=w();this.u9=Mj(this,"parse-document-fail","Unable to parse document",a,b);a=w();b=w();this.I8=Mj(this,"missing-id-in-node","Missing @id in json-ld node",a,b);a=w();b=w();this.M8=Mj(this,"missing-type-in-node","Missing @type in json-ld node",a,b);a=(new A).d("Recursive type");b=(new A).d("Recursive schema");this.pN=Mj(this,
"recursive-shape","Recursive shape",a,b);a=w();b=w();this.nh=Mj(this,"resolution-validation","Default resolution validation",a,b);for(var a=this.GS.k,b=xc().Eg,b=Lj(this,b),a=(new P).N(a,b),b=this.pN.k,c=Ek(),e=xc().tb,c=(new P).N(c,e),e=Fk(),f=xc().tb,e=(new P).N(e,f),f=Gk(),g=xc().tb,f=(new P).N(f,g),g=Bk(),h=xc().tb,g=(new P).N(g,h),h=Ck(),k=xc().tb,h=(new P).N(h,k),k=Dk(),l=xc().tb,k=(new P).N(k,l),l=yk(),p=xc().vw,c=[c,e,f,g,h,k,(new P).N(l,p)],e=Ry(new Sy,Xs()),f=0,g=c.length|0;f<g;)Ty(e,c[f]),
f=1+f|0;a=[a,(new P).N(b,e.gb)];b=Ry(new Sy,Xs());c=0;for(e=a.length|0;c<e;)Ty(b,a[c]),c=1+c|0;this.Cm=b.gb;Di();a=(new J).aa([this.K5,this.S8,this.iu,this.FS,this.GS,this.R8,this.u9,this.QZ,this.PR,this.I8,this.M8,this.C9,this.xN,this.vD,this.pY,this.z6,this.F6,this.pN,this.nh]);b=Di().s;this.qf=Ei(a,b);return this};vQ.prototype.$classData=q({S1a:0},!1,"amf.plugins.features.validation.CoreValidations$",{S1a:1,f:1,lS:1});var nMa=void 0;function Bc(){nMa||(nMa=(new vQ).a());return nMa}
function wQ(){this.faa=this.BW=null}wQ.prototype=new r;wQ.prototype.constructor=wQ;wQ.prototype.SK=function(a){this.BW=a;this.faa=H(xz(),G());return this};wQ.prototype.TL=function(){return this.BW};wQ.prototype.K_=function(){for(var a=this.BW;!a.b();){if(a.fa().M2()===xc().tb)return!0;a=a.sa()}return!1};function psa(a,b){var c=""+b.aw()+b.S2()+b.yO();if(!a.faa.Ja(c)){a.faa.Om(c);c=a.BW;b=H(z(),(new J).aa([b]));var e=Di();a.BW=c.la(b,e.s)}}
wQ.prototype.$classData=q({U1a:0},!1,"amf.plugins.features.validation.CustomValidationReport",{U1a:1,f:1,xla:1});function xQ(){this.aB=null}xQ.prototype=new r;xQ.prototype.constructor=xQ;d=xQ.prototype;d.Zo=function(){return Gka(this)};d.u=function(){return Gka(this)};d.pR=function(){return this.TL()};d.JE=function(a){this.aB=a;return this};d.C4=function(){return this.K_()};
d.TL=function(){for(var a=this.aB.results(),b=[],c=0,e=a.length|0;c<e;){var f=(new yQ).JE(a[c]);b.push(f);c=1+c|0}a=Di().s.gs();c=b.length|0;switch(c){case -1:break;default:a.Gh(c)}a.Cf((new J).aa(b));return a.lc()};d.K_=function(){return!!this.aB.conforms()};xQ.prototype.toString=function(){return this.Zo()};Object.defineProperty(xQ.prototype,"results",{get:function(){return this.pR()},configurable:!0});Object.defineProperty(xQ.prototype,"conforms",{get:function(){return this.C4()},configurable:!0});
xQ.prototype.$classData=q({W1a:0},!1,"amf.plugins.features.validation.JSValidationReport",{W1a:1,f:1,xla:1});function yQ(){this.aB=null}yQ.prototype=new r;yQ.prototype.constructor=yQ;d=yQ.prototype;d.M2=function(){return Hsa(wC(),this.aB.severity(),"Violation")};d.CC=function(){return Hsa(wC(),this.aB.path(),"")};d.mL=function(){wC();var a=this.aB.message();return void 0===a?w():Wa().Ia(a).b()?w():(new A).d(a)};d.S2=function(){return Hsa(wC(),this.aB.sourceConstraintComponent(),"")};d.P4=function(){return this.mL()};
d.yO=function(){return Hsa(wC(),this.aB.focusNode(),"")};d.JE=function(a){this.aB=a;return this};d.aw=function(){var a=Hsa(wC(),this.aB.sourceShape(),""),b=C().oD.he;return 0<=(a.length|0)&&a.substring(0,b.length|0)===b&&re(ta(),a,"#property")?(a=kd(ta(),a,"#",0),Wj((new md).vc(a))):a};d.nR=function(){return this.CC()};Object.defineProperty(yQ.prototype,"sourceShape",{get:function(){return this.aw()},configurable:!0});
Object.defineProperty(yQ.prototype,"severity",{get:function(){return this.M2()},configurable:!0});Object.defineProperty(yQ.prototype,"focusNode",{get:function(){return this.yO()},configurable:!0});Object.defineProperty(yQ.prototype,"sourceConstraintComponent",{get:function(){return this.S2()},configurable:!0});Object.defineProperty(yQ.prototype,"path",{get:function(){return this.nR()},configurable:!0});Object.defineProperty(yQ.prototype,"message",{get:function(){return this.P4()},configurable:!0});
yQ.prototype.$classData=q({X1a:0},!1,"amf.plugins.features.validation.JSValidationResult",{X1a:1,f:1,RPa:1});function zQ(){}zQ.prototype=new r;zQ.prototype.constructor=zQ;zQ.prototype.TL=function(){return G()};zQ.prototype.K_=function(){return!1};zQ.prototype.$classData=q({Y1a:0},!1,"amf.plugins.features.validation.ParserSideValidationPlugin$$anon$1",{Y1a:1,f:1,xla:1});function ic(){this.SS=0;this.CH=this.ys=this.RDa=null;this.mi=0}ic.prototype=new Pia;ic.prototype.constructor=ic;
ic.prototype.sK=function(a){var b=this.CH.Ta(a);if(x(b))return(new A).d(b.i);var b="\x3c"+a+"\x3e",c=this.ys.subjectIndex,c=xJ().MC.call(c,b)?(new A).d(c[b]):w();if(x(c)){var e=c.i,f=null,f=pc(fc().db,G()),g=null,g=H(z(),G()),h=(new AQ).Q0(qd(function(){return function(a,b){a=a.predicate.uri;b=b.predicate.uri;return 0<(a===b?0:a<b?-1:1)}}(this))),k=e.length|0,c=[];if(1===k)for(h=0,k=e.length|0;h<k;)c.push(e[h]),h=1+h|0;else if(1<k){for(var k=ia(La(Ja),[k]),l=0,p=l=0,y=e.length|0;p<y;)k.j[l]=e[p],
l=1+l|0,p=1+p|0;gya(gH(),k,h);for(l=0;l<k.j.length;)c.push(k.j[l]),l=1+l|0}e=0;for(h=c.length|0;e<h;){l=c[e];k=l.predicate.uri;p=l.object;l=f.vu(k,jb(function(){return function(){return G()}}(this)));y=C().yi;if(k===Gc(D(new F,y,"type")))k=H(z(),(new J).aa([p.uri])),l=z(),g=g.la(k,l.s);else{if("Literal"===p.termType)y=z(),p=[(new oMa).Sq(""+p.value,Wa().Ia(p.datatype).qa()?(new A).d(p.datatype.uri):w())];else var y=z(),I=Wa().Ia(p.uri),p=[(new pMa).e(""+(I.b()?p.toCanonical():I.c()))];p=H(y,(new J).aa(p));
y=z();f=f.Hh(k,l.la(p,y.s))}e=1+e|0}a=qMa(a,g,f);this.CH=this.CH.Hh(b,a);return(new A).d(a)}if(w()===c)return w();throw(new v).d(c);};function jc(a){0===(1&a.mi)<<24>>24&&0===(1&a.mi)<<24>>24&&(a.RDa=Lsa(),a.mi=(1|a.mi)<<24>>24);return a.RDa}function QC(a,b,c,e){a.CH=a.CH.Bo(b);b=jc(a).namedNode(b);c=jc(a).namedNode(c);e=jc(a).namedNode(e);a.ys.add(b,c,e);return a}ic.prototype.JE=function(a){this.ys=a;us.prototype.a.call(this);this.CH=pc(fc().db,G());return this};
function rMa(){throw Lb(Mb(),(new Nb).e("Sync rdf serialization to writer not supported yet"));}function PC(a,b,c,e,f){a.CH=a.CH.Bo(b);b=jc(a).namedNode(b);c=jc(a).namedNode(c);x(f)?(f=f.i,e=jc(a).literal(e,f)):e=jc(a).literal(e);a.ys.add(b,c,e);return a}ic.prototype.$classData=q({a2a:0},!1,"amf.plugins.features.validation.RdflibRdfModel",{a2a:1,Peb:1,f:1});function BQ(){this.na=this.Cm=this.qf=this.$n=this.Nxa=null;this.ma=0}BQ.prototype=new r;BQ.prototype.constructor=BQ;
BQ.prototype.a=function(){GMa=this;this.na=ju().na;var a=this.na.qf,b=Di().s;this.qf=Ei(a,b);var a=this.na.Cm,b=fc().ci,c=Ry(new Sy,Xs());a.X(t(new u,function(a,b,c){return function(a){return c.Ic(a)}}(a,b,c)));this.Cm=c.gb;return this};function ZP(a,b,c){return HMa(a).vu(b,jb(function(){return function(){return IMa()}}(a))).vu(c,jb(function(){return function(){return xc().tb}}(a)))}
function IMa(){var a=tN();0===(2&a.ma)<<24>>24&&0===(2&a.ma)<<24>>24&&(a.$n=JMa(a),a.ma=(2|a.ma)<<24>>24);return a.$n}function HMa(a){if(0===(1&a.ma)<<24>>24&&0===(1&a.ma)<<24>>24){for(var b=a.Cm,c=a.qf;!c.b();){var e=c.fa();if(!b.Ja(e.k))var e=e.k,f=IMa(),b=b.Zb((new P).N(e,f));c=c.sa()}a.Nxa=b;a.ma=(1|a.ma)<<24>>24}return a.Nxa}function JMa(a){var b=xc().tb,c=Cda(Dda());a=t(new u,function(a,b){return function(a){return(new P).N(a,b)}}(a,b));b=z();return c.ka(a,b.s).$g(fc().ci)}
BQ.prototype.$classData=q({d2a:0},!1,"amf.plugins.features.validation.Validations$",{d2a:1,f:1,Fb:1});var GMa=void 0;function tN(){GMa||(GMa=(new BQ).a());return GMa}function CQ(){}CQ.prototype=new r;CQ.prototype.constructor=CQ;CQ.prototype.a=function(){return this};function KMa(a,b){var c=new YP,e=Vj(a,b,"message"),f=Vj(a,b,"code"),g=Rj(a,b,"libraries");a=Vj(a,b,"functionName");b=H(z(),G());var h=w();c.Ad=e;c.dE=f;c.ai=g;c.JG=a;c.Wg=b;c.gP=h;return c}
CQ.prototype.$classData=q({l2a:0},!1,"amf.plugins.features.validation.model.ParsedFunctionConstraint$",{l2a:1,f:1,v8:1});var LMa=void 0;function MMa(){LMa||(LMa=(new CQ).a());return LMa}function DQ(){}DQ.prototype=new r;DQ.prototype.constructor=DQ;DQ.prototype.a=function(){return this};DQ.prototype.$classData=q({m2a:0},!1,"amf.plugins.features.validation.model.ParsedPropertyConstraint$",{m2a:1,f:1,v8:1});var NMa=void 0;function EQ(){}EQ.prototype=new r;EQ.prototype.constructor=EQ;EQ.prototype.a=function(){return this};
function OMa(a){var b=PMa,c=Ida(b,a);FB();var e=Vj(b,a,"profile"),e=EB(0,Fda("profile in validation profile",e)),f=Vj(b,a,"extends");f.b()?f=w():(f=f.c(),f=(new A).d(EB(FB(),f)));var g=Rj(b,a,"violation"),h=Rj(b,a,"info"),k=Rj(b,a,"warning"),l=Rj(b,a,"disabled");return KHa(new uN,e,f,g,h,k,l,Kda(b,a,"validations",t(new u,function(a,b){return function(a){return QMa(RMa(),a,b)}}(b,c))),c)}
EQ.prototype.$classData=q({n2a:0},!1,"amf.plugins.features.validation.model.ParsedValidationProfile$",{n2a:1,f:1,v8:1});var PMa=void 0;function FQ(){}FQ.prototype=new r;FQ.prototype.constructor=FQ;FQ.prototype.a=function(){return this};
function QMa(a,b,c){var e=Vj(a,b,"name"),e=Fda("name in validation specification",e),f=Vj(a,b,"message"),f=Fda("message in validation specification",f),g=Rj(a,b,"targetClass"),h=t(new u,function(a,b){return function(a){RMa();return Hda(a,b)}}(a,c)),k=z(),g=g.ka(h,k.s);c=Kda(a,b,"propertyConstraints",t(new u,function(a,b){return function(a){NMa||(NMa=(new DQ).a());var c=NMa,e=Vj(c,a,"name"),e=Fda("ramlID in property constraint",e),e=Hda(e,b),f=Vj(c,a,"name"),f=Fda("name in property constraint",f),
g=Vj(c,a,"message"),h=Vj(c,a,"pattern"),k=Vj(c,a,"maxCount"),l=Vj(c,a,"minCount"),p=Vj(c,a,"maxLength"),y=Vj(c,a,"minLength"),I=Vj(c,a,"maxExclusive"),E=Vj(c,a,"minExclusive"),V=Vj(c,a,"maxInclusive"),da=Vj(c,a,"minInclusive");a=Rj(c,a,"in");var c=w(),sa=w(),ua=w(),Nd=w(),td=H(z(),G()),yd=w(),ud=w();return rN(new sN,e,f,g,h,c,k,l,y,p,E,I,da,V,sa,ua,Nd,td,a,yd,ud)}}(a,c)));a=B(Sj(b).g,Tj().Qi).Ib(t(new u,function(a,b){return function(a){a=B(a.g,sf().$).G;return(a.b()?null:a.c())===b}}(a,"functionConstraint")));
a.b()?b=w():(a=a.c(),b=SMa(b,Uj(a)),b.b()?b=w():(b=b.c(),b=(new A).d(KMa(MMa(),b))));Nj();a=w();Nj();h=w();Nj();z();Oj();k=(new $g).a().wa();Nj();z();Oj();var l=(new $g).a().wa();Nj();z();Oj();var p=(new $g).a().wa();Nj();z();Oj();var y=(new $g).a().wa();Nj();z();Oj();var I=(new $g).a().wa();Nj();var E=w();Nj();z();Oj();var V=(new $g).a().wa();Nj();var da=w();Nj();var sa=w();return Pj(new Qj,e,f,a,h,k,g,l,p,y,I,E,c,V,da,b,sa)}
FQ.prototype.$classData=q({o2a:0},!1,"amf.plugins.features.validation.model.ParsedValidationSpecification$",{o2a:1,f:1,v8:1});var TMa=void 0;function RMa(){TMa||(TMa=(new FQ).a());return TMa}function GQ(){this.qf=this.Cm=this.h6=this.aN=this.fha=this.cN=this.UX=this.YR=this.J8=this.SI=this.p6=this.Q5=this.aZ=this.H8=this.sxa=this.L8=this.N8=this.hf=this.Iy=this.Zy=null;this.ma=!1}GQ.prototype=new r;GQ.prototype.constructor=GQ;
GQ.prototype.a=function(){UMa=this;this.Zy=Nj().Kga;this.Iy=C().Rga;var a=w(),b=w();this.hf=Mj(this,"dialect-error","Dialect error",a,b);a=w();b=w();this.N8=Mj(this,"missing-vocabulary","Missing vocabulary",a,b);a=w();b=w();this.L8=Mj(this,"missing-vocabulary-term","Missing vocabulary term",a,b);a=w();b=w();this.sxa=Mj(this,"missing-property-vocabulary-term","Missing property vocabulary term",a,b);a=w();b=w();this.H8=Mj(this,"missing-dialect-fragment","Missing dialect fragment",a,b);a=w();b=w();this.aZ=
Mj(this,"missing-node-mapping-range-term","Missing property range term",a,b);a=w();b=w();this.Q5=Mj(this,"different-terms-in-mapkey","Different terms in map key",a,b);a=w();b=w();this.p6=Mj(this,"inconsistent-property-range-value","Range value does not match the expected type",a,b);a=w();b=w();this.SI=Mj(this,"closed-shape","Invalid property for node",a,b);a=w();b=w();this.J8=Mj(this,"mandatory-property-shape","Missing mandatory property",a,b);a=w();b=w();this.YR=Mj(this,"invalid-module-type","Invalid module type",
a,b);a=w();b=w();this.UX=Mj(this,"dialect-ambiguous-range","Ambiguous entity range",a,b);a=w();b=w();this.cN=Mj(this,"invalid-union-type","Union should be a sequence",a,b);a=w();b=w();this.fha=Mj(this,"expected-vocabulary-module","Expected vocabulary module",a,b);a=w();b=w();this.aN=Mj(this,"invalid-dialect-patch","Invalid dialect patch",a,b);a=w();b=w();this.h6=Mj(this,"guid-scalar-non-unique","GUID scalar type declared without unique constraint",a,b);this.Cm=pc(fc().db,G());Di();a=(new J).aa([this.SI,
this.UX,this.p6,this.aZ,this.L8,this.Q5,this.H8,this.J8,this.YR,this.N8,this.cN,this.aN,this.hf,this.h6]);b=Di().s;this.qf=Ei(a,b);return this};GQ.prototype.$classData=q({v2a:0},!1,"amf.validation.DialectValidations$",{v2a:1,f:1,lS:1});var UMa=void 0;function of(){UMa||(UMa=(new GQ).a());return UMa}
function HQ(){this.qf=this.Cm=this.k9=this.Fxa=this.Gxa=this.K8=this.iha=this.R6=this.tY=this.ZY=this.zZ=this.TZ=this.QF=this.O8=this.E6=this.u6=this.C6=this.vY=this.vz=this.v6=this.$M=this.FJ=this.JS=this.KR=this.sZ=this.S6=this.RZ=this.sY=this.D6=this.ZZ=this.cJ=this.y9=this.z9=this.U5=this.A9=this.bZ=this.IS=this.zN=this.hZ=this.jZ=this.aY=this.iZ=this.gZ=this.b9=this.a6=this.YM=this.e6=this.d6=this.w9=this.GR=this.$X=this.TM=this.H6=this.v9=this.WR=this.fZ=this.UZ=this.nY=this.rY=this.mY=this.xY=
this.I6=this.N6=this.Q6=this.t6=this.M6=this.L6=this.bJ=this.B6=this.t9=this.K6=this.qY=this.wY=this.oY=this.J6=this.HZ=this.EZ=this.T5=this.ZX=this.XR=this.O6=this.ZR=this.s6=this.P6=this.Z8=this.$8=this.GJ=this.x6=this.w6=this.A6=this.uY=this.G6=this.fY=this.Iy=this.Zy=null;this.ma=!1}HQ.prototype=new r;HQ.prototype.constructor=HQ;
HQ.prototype.a=function(){VMa=this;this.Zy=Nj().Y8;this.Iy=C().oD;var a=w(),b=w();this.fY=Mj(this,"exclusive-link-target-error","operationRef and operationId are mutually exclusive in a OAS 3.0.0 Link Object",a,b);var c=w(),e=w();this.G6=Mj(this,"invalid-json-schema-type","Invalid json schema definition type",c,e);var f=w(),g=w();this.uY=Mj(this,"invalid-shape-format","Invalid shape format",f,g);var h=w(),k=w();this.A6=Mj(this,"invalid-datetime-format","Invalid format value for datetime",h,k);var l=
w(),p=w();this.w6=Mj(this,"invalid-base-path","Invalid base path",l,p);var y=w(),I=w();this.x6=Mj(this,"invalid-base-uri-parameters-type","Invalid baseUriParameters type",y,I);var E=w(),V=w();this.GJ=Mj(this,"unused-base-uri-parameter","Unused base uri parameter",E,V);var da=w(),sa=w();this.$8=Mj(this,"parameters-without-base-uri","'baseUri' not defined and 'baseUriParameters' defined.",da,sa);var ua=w(),Ia=w();this.Z8=Mj(this,"parameter-name-required","Parameter name is required",ua,Ia);var Pa=w(),
Za=w();this.P6=Mj(this,"invalid-server-path","Invalid server path",Pa,Za);var db=w(),Qb=w();this.s6=Mj(this,"invalid-abstract-declaration-parameter-in-type","Trait/Resource Type parameter in type",db,Qb);var bc=w(),rc=w();this.ZR=Mj(this,"invalid-secured-by-type","Invalid 'securedBy' type",bc,rc);var Fc=w(),Rd=w();this.O6=Mj(this,"invalid-security-scheme-described-by-type","Invalid 'describedBy' type, map expected",Fc,Rd);var Ld=w(),ze=w();this.XR=Mj(this,"invalid-endpoint-path","Invalid endpoint path (invalid template uri)",
Ld,ze);var Td=w(),Je=w();this.ZX=Mj(this,"duplicated-endpoint-path","Duplicated endpoint path",Td,Je);var $d=w(),te=w();this.T5=Mj(this,"duplicated-operation-id","Duplicated operation id",$d,te);var Hd=w(),ie=w();this.EZ=Mj(this,"schema-deprecated","'schema' keyword it's deprecated for 1.0 version, should use 'type' instead",Hd,ie);var Nd=w(),td=w();this.HZ=Mj(this,"schemas-deprecated","'schemas' keyword it's deprecated for 1.0 version, should use 'types' instead",Nd,td);var yd=w(),ud=w();this.J6=
Mj(this,"invalid-operation-type","Invalid operation type",yd,ud);var Ve=w(),Me=w();this.oY=Mj(this,"invalid-external-type-type","Invalid external type type",Ve,Me);var Rc=w(),me=w();this.wY=Mj(this,"invalid-xml-schema-type","Invalid xml schema type",Rc,me);var Ae=w(),We=w();this.qY=Mj(this,"invalid-json-schema-expression","Invalid json schema expression",Ae,We);var od=w(),Ad=w();this.K6=Mj(this,"invalid-property-type","Invalid property key type. Should be string",od,Ad);var ue=w(),Id=w();this.t9=
Mj(this,"unable-to-parse-array","Unable to parse array definition",ue,Id);var gf=w(),Jd=w();this.B6=Mj(this,"invalid-decimal-point","Invalid decimal point",gf,Jd);var Vd=w(),je=w();this.bJ=Mj(this,"invalid-type-definition","Invalid type definition",Vd,je);var Wd=w(),ve=w();this.L6=Mj(this,"invalid-required-array-for-schema-version","Required arrays of properties not supported in JSON Schema below version draft-4",Wd,ve);var $c=w(),we=w();this.M6=Mj(this,"invalid-required-boolean-for-schema-version",
"Required property boolean value is only supported in JSON Schema draft-3",$c,we);var cd=w(),ae=w();this.t6=Mj(this,"invalid-additional-properties-type","additionalProperties should be a boolean or a map",cd,ae);var be=w(),xe=w();this.Q6=Mj(this,"invalid-tuple-type","Tuple should be a sequence",be,xe);var ne=w(),Ed=w();this.N6=Mj(this,"invalid-schema-type","Schema should be a string",ne,Ed);var Ne=w(),hf=w();this.I6=Mj(this,"invalid-media-type-type","Media type should be a string",Ne,hf);var Ef=w(),
Vf=w();this.xY=Mj(this,"invalid-xone-type","Xone should be a sequence",Ef,Vf);var Xe=w(),Ye=w();this.mY=Mj(this,"invalid-and-type","And should be a sequence",Xe,Ye);var vf=w(),Oe=w();this.rY=Mj(this,"invalid-or-type","Or should be a sequence",vf,Oe);var Xd=w(),Ff=w();this.nY=Mj(this,"invalid-disjoint-union-type","Invalid type for disjoint union",Xd,Ff);var rf=w(),cf=w();this.UZ=Mj(this,"unexpected-vendor","Unexpected vendor",rf,cf);var hg=w(),kg=w();this.fZ=Mj(this,"null-abstract-declaration","Generating abstract declaration (resource type / trait)  with null value",
hg,kg);var oe=w(),wf=w();this.WR=Mj(this,"invalid-abstract-declaration-type","Invalid type for declaration node",oe,wf);var ce=w(),jf=w();this.v9=Mj(this,"unable-to-parse-shape-extensions","Unable to parse shape extensions",ce,jf);var Kf=w(),xf=w();this.H6=Mj(this,"invalid-json-schema-version","Invalid Json Schema version",Kf,xf);var Pe=w(),Ze=w();this.TM=Mj(this,"cross-security-warning","Using a security scheme type from raml in oas or from oas in raml",Pe,Ze);var Oc=w(),ke=w();this.$X=Mj(this,"duplicated-operation-status-code",
"Status code for the provided operation response must not be duplicated",Oc,ke);var Lf=w(),df=w();this.GR=Mj(this,"chained-reference-error","References cannot be chained",Lf,df);var de=w(),yg=w();this.w9=Mj(this,"unable-to-set-default-type","Unable to set default type",de,yg);var Mf=w(),pe=w();this.d6=Mj(this,"exclusive-schema-type","'schema' and 'type' properties are mutually exclusive",Mf,pe);var Qe=w(),$e=w();this.e6=Mj(this,"exclusive-schemas-type","'schemas' and 'types' properties are mutually exclusive",
Qe,$e);var kf=w(),Re=w();this.YM=Mj(this,"exclusive-properties-error","Exclusive properties declared together",kf,Re);var le=w(),Se=w();this.a6=Mj(this,"examples-must-be-map","Examples value should be a map",le,Se);var Nf=w(),Gf=w();this.b9=Mj(this,"path-template-unbalanced-parameters","Nested parameters are not allowed in path templates",Nf,Gf);var yf=w(),ef=w();this.gZ=Mj(this,"oas-not-body-and-form-data-parameters","Operation cannot have a body parameter and a formData parameter",yf,ef);var lf=
w(),mf=w();this.iZ=Mj(this,"oas-invalid-body-parameter","Only one body parameter is allowed",lf,mf);var zg=w(),yh=w();this.aY=Mj(this,"duplicate-parameters","Sibling parameters must have unique 'name' and 'in' values",zg,yh);var Ag=w(),zh=w();this.jZ=Mj(this,"oas-invalid-parameter-binding","Parameter has invalid binding",Ag,zh);var Hf=w(),Sf=w();this.hZ=Mj(this,"oas-file-not-form-data-parameters","Parameters with type file must be in formData",Hf,Sf);var ig=w(),Wf=w();this.zN=Mj(this,"unsupported-example-media-type",
"Cannot validate example with unsupported media type",ig,Wf);var Kg=w(),Bg=w();this.IS=Mj(this,"unknown-security-scheme","Cannot find the security scheme",Kg,Bg);var Xg=w(),If=w();this.bZ=Mj(this,"missing-security-scheme-type","Missing security scheme type",Xg,If);var lg=w(),Cg=w();this.A9=Mj(this,"unknown-scope","Cannot find the scope in the security settings",lg,Cg);var mg=w(),Lg=w();this.U5=Mj(this,"duplicated-property","Duplicated property in node",mg,Lg);var bh=w(),ch=w();this.z9=Mj(this,"unexpected-raml-scalar-key",
"Unexpected key. Options are 'value' or annotations \\(.+\\)",bh,ch);var Mg=w(),Hj=w();this.y9=Mj(this,"unexpected-file-types-syntax","Unexpected 'fileTypes' syntax. Options are string or sequence",Mg,Hj);var Ah=w(),Of=w();this.cJ=Mj(this,"json-schema-inheritance","Inheriting from JSON Schema",Ah,Of);var dh=w(),Xf=w();this.ZZ=Mj(this,"xml-schema-inheritance","Inheriting from XML Schema",dh,Xf);var Ng=w(),wi=w();this.D6=Mj(this,"invalid-endpoint-type","Invalid endpoint type",Ng,wi);var Hi=w(),Yf=w();
this.sY=Mj(this,"invalid-parameter-type","Invalid parameter type",Hi,Yf);var ji=w(),mj=w();this.RZ=Mj(this,"unable-to-parse-shape","Unable to parse shape",ji,mj);var xi=w(),Og=w();this.S6=Mj(this,"json-schema-fragment-not-found","Json schema fragment not found",xi,Og);var Ij=w(),nj=w();this.sZ=Mj(this,"pattern-properties-on-closed-node","Closed node cannot define pattern properties",Ij,nj);var oj=w(),zk=w();this.KR=Mj(this,"discriminator-on-extended-union","Property 'discriminator' not supported in a node extending a unionShape",
oj,zk);var ng=w(),gh=w();this.JS=Mj(this,"unresolved-parameter","Unresolved parameter",ng,gh);var ki=w(),Zi=w();this.FJ=Mj(this,"unable-to-parse-json-schema","Unable to parse json schema",ki,Zi);var li=w(),$i=w();this.$M=Mj(this,"invalid-annotation-type","Invalid annotation type",li,$i);var pj=w(),Tf=w();this.v6=Mj(this,"invalid-annotation-target","Annotation not allowed in used target",pj,Tf);var mi=w(),aj=w();this.vz=Mj(this,"invalid-fragment-type","Invalid fragment type",mi,aj);var Ii=w(),qj=w();
this.vY=Mj(this,"invalid-types-type","Invalid types type",Ii,qj);var Pl=w(),ni=w();this.C6=Mj(this,"invalid-documentation-type","Invalid documentation type",Pl,ni);var Ak=w(),Jj=w();this.u6=Mj(this,"invalid-allowed-targets-type","Invalid allowedTargets type",Ak,Jj);var $k=w(),wl=w();this.E6=Mj(this,"invalid-extension-type","Invalid extension type",$k,wl);var Am=w(),ip=w();this.O8=Mj(this,"module-not-found","Module not found",Am,ip);var xo=w(),kw=w();this.QF=Mj(this,"invalid-type-expression","Invalid type expression",
xo,kw);var Cu=w(),Nq=w();this.TZ=Mj(this,"unexpected-reference","Unexpected reference",Cu,Nq);var Tr=w(),yo=w();this.zZ=Mj(this,"read-only-property-marked-required","Read only property should not be marked as required by a schema",Tr,yo);var Wm=w(),Ur=w();this.ZY=Mj(this,"missing-discriminator-property","Type is missing property marked as discriminator",Wm,Ur);var gt=w(),Vr=w();this.tY=Mj(this,"invalid-payload","Invalid payload",gt,Vr);var Oq=w(),jp=w();this.R6=Mj(this,"invalid-value-in-properties-facet",
"Properties facet must be a map of key and values",Oq,jp);var Pq=w(),ht=w();this.iha=Mj(this,"invalid-user-defined-facet-name","User defined facets must not begin with open parenthesis",Pq,ht);var it=w(),jt=w();this.K8=Mj(this,"missing-user-defined-facet","Type is missing required user defined facet",it,jt);var Qq=w(),lw=w();this.Gxa=Mj(this,"user-defined-facets-matches-built-in","User defined facet name matches built in facet of type",Qq,lw);var zo=w(),Ao=w();Mj(this,"invalid-endpoint-declaration",
"Invalid endpoint declaration",zo,Ao);var kt=w(),Wr=w();this.Fxa=Mj(this,"user-defined-facets-matches-ancestor","User defined facet name matches ancestor type facet",kt,Wr);var kp=w(),Du=w();this.k9=Mj(this,"slash-in-uri-parameter-value","Values of uri parameter must not contain '/' character",kp,Du);var lt=fc().db,mt=this.fY.k,nt=xc().tb,Eu=Lj(this,nt),Rq=(new P).N(mt,Eu),Wn=this.gZ.k,Fu=fc().db,mw=Bk(),nw=xc().tb,Sq=(new P).N(mw,nw),ot=Ck(),Tq=xc().tb,Uq=[Sq,(new P).N(ot,Tq)],pt=pc(Fu,(new J).aa(Uq)),
Vq=(new P).N(Wn,pt),ow=this.iZ.k,pw=xc().tb,qw=Lj(this,pw),ty=(new P).N(ow,qw),vy=this.jZ.k,Bm=xc().tb,Gu=Lj(this,Bm),rw=(new P).N(vy,Gu),sw=this.hZ.k,Hu=fc().db,wy=Bk(),Xr=xc().tb,Iu=(new P).N(wy,Xr),xy=Ck(),yy=xc().tb,zy=[Iu,(new P).N(xy,yy)],IA=pc(Hu,(new J).aa(zy)),Cm=(new P).N(sw,IA),Ju=this.cJ.k,tw=xc().Eg,qt=Lj(this,tw),rt=(new P).N(Ju,qt),Ay=this.sZ.k,Yr=fc().db,Ku=Ek(),By=xc().tb,lp=(new P).N(Ku,By),st=Fk(),JA=xc().tb,mp=(new P).N(st,JA),Lu=Gk(),Cy=xc().tb,Xq=(new P).N(Lu,Cy),Mu=Bk(),uw=
xc().Eg,tt=(new P).N(Mu,uw),vw=Ck(),KA=xc().Eg,Zr=(new P).N(vw,KA),LA=Dk(),ZG=xc().Eg,k0=(new P).N(LA,ZG),dP=yk(),l0=xc().Eg,$G=[lp,mp,Xq,tt,Zr,k0,(new P).N(dP,l0)],eP=pc(Yr,(new J).aa($G)),m0=(new P).N(Ay,eP),n0=this.KR.k,o0=fc().db,nea=Ek(),p0=xc().tb,oea=(new P).N(nea,p0),pea=Fk(),qea=xc().tb,rea=(new P).N(pea,qea),sea=Gk(),tea=xc().tb,uea=(new P).N(sea,tea),aH=Bk(),vea=xc().Eg,q0=(new P).N(aH,vea),r0=Ck(),s0=xc().Eg,ww=(new P).N(r0,s0),bH=Dk(),t0=xc().Eg,wea=(new P).N(bH,t0),xw=yk(),fP=xc().Eg,
u0=[oea,rea,uea,q0,ww,wea,(new P).N(xw,fP)],v0=pc(o0,(new J).aa(u0)),cH=(new P).N(n0,v0),w0=this.fZ.k,ID=xc().Eg,gP=Lj(this,ID),x0=(new P).N(w0,gP),y0=this.EZ.k,z0=xc().Eg,xea=Lj(this,z0),sMa=(new P).N(y0,xea),tMa=this.HZ.k,uMa=xc().Eg,vMa=Lj(this,uMa),wMa=(new P).N(tMa,vMa),xMa=this.GJ.k,yMa=xc().Eg,zMa=Lj(this,yMa),DMa=(new P).N(xMa,zMa),EMa=this.uY.k,FMa=xc().Eg,AMa=Lj(this,FMa),BMa=(new P).N(EMa,AMa),CMa=this.TM.k,xQa=xc().Eg,yQa=Lj(this,xQa),zQa=(new P).N(CMa,yQa),AQa=this.zZ.k,BQa=xc().Eg,CQa=
Lj(this,BQa),DQa=(new P).N(AQa,CQa),EQa=this.ZY.k,FQa=xc().tb,GQa=Lj(this,FQa),HQa=(new P).N(EQa,GQa),m4=this.tY.k,BAa=xc().tb,IQa=Lj(this,BAa),JQa=[Rq,Vq,ty,rw,Cm,rt,m0,cH,x0,sMa,wMa,DMa,BMa,zQa,DQa,HQa,(new P).N(m4,IQa)];this.Cm=pc(lt,(new J).aa(JQa));Di();var KQa=(new J).aa([this.$X,this.GR,this.YM,this.b9,this.IS,this.bZ,this.A9,this.cJ,this.ZZ,this.U5,this.a6,this.zN,this.iZ,this.aY,this.sZ,this.KR,this.hZ,this.gZ,this.jZ,this.FJ,this.z9,this.v9,this.WR,this.fZ,this.UZ,this.nY,this.rY,this.mY,
this.xY,this.t6,this.L6,this.M6,this.N6,this.w9,this.bJ,this.Q6,this.t9,this.B6,this.K6,this.S6,this.qY,this.wY,this.oY,this.s6,this.d6,this.EZ,this.JS,this.Z8,this.ZR,this.O6,this.XR,this.ZX,this.T5,this.J6,this.P6,this.$8,this.GJ,this.x6,this.w6,this.sY,this.I6,this.H6,this.D6,this.RZ,this.$M,this.v6,this.vz,this.vY,this.HZ,this.e6,this.C6,this.u6,this.QF,this.E6,this.O8,this.TZ,this.uY,this.y9,this.G6,this.TM,this.zZ,this.ZY,this.tY,this.R6,this.iha,this.K8,this.k9,this.A6]),LQa=Di().s;this.qf=
Ei(KQa,LQa);return this};HQ.prototype.$classData=q({x2a:0},!1,"amf.validations.ParserSideValidations$",{x2a:1,f:1,lS:1});var VMa=void 0;function rh(){VMa||(VMa=(new HQ).a());return VMa}function IQ(){this.qf=this.Cm=this.FZ=this.AD=this.KS=this.Iy=this.Zy=null;this.ma=!1}IQ.prototype=new r;IQ.prototype.constructor=IQ;
IQ.prototype.a=function(){WMa=this;this.Zy=Nj().txa;this.Iy=C().BR;var a=w(),b=w();this.KS=Mj(this,"unsupported-example-media-type-warning","Cannot validate example with unsupported media type",a,b);a=w();b=w();this.AD=Mj(this,"example-validation-error","Example does not validate type",a,b);a=w();b=w();this.FZ=Mj(this,"schema-exception","Schema exception",a,b);for(var a=this.KS.k,b=xc().Eg,b=Lj(this,b),a=(new P).N(a,b),b=this.AD.k,c=Ek(),e=xc().tb,c=(new P).N(c,e),e=Fk(),f=xc().tb,e=(new P).N(e,f),
f=Gk(),g=xc().tb,f=(new P).N(f,g),g=Bk(),h=xc().Eg,g=(new P).N(g,h),h=Ck(),k=xc().Eg,h=(new P).N(h,k),k=Dk(),l=xc().Eg,k=(new P).N(k,l),l=yk(),p=xc().tb,c=[c,e,f,g,h,k,(new P).N(l,p)],e=Ry(new Sy,Xs()),f=0,g=c.length|0;f<g;)Ty(e,c[f]),f=1+f|0;b=(new P).N(b,e.gb);c=this.FZ.k;e=xc().tb;e=Lj(this,e);a=[a,b,(new P).N(c,e)];b=Ry(new Sy,Xs());c=0;for(e=a.length|0;c<e;)Ty(b,a[c]),c=1+c|0;this.Cm=b.gb;Di();a=(new J).aa([this.KS,this.AD,this.FZ]);b=Di().s;this.qf=Ei(a,b);return this};
IQ.prototype.$classData=q({y2a:0},!1,"amf.validations.PayloadValidations$",{y2a:1,f:1,lS:1});var WMa=void 0;function vo(){WMa||(WMa=(new IQ).a());return WMa}function JQ(){this.qf=this.Cm=this.ey=this.Iy=this.Zy=null;this.ma=!1}JQ.prototype=new r;JQ.prototype.constructor=JQ;
JQ.prototype.a=function(){XMa=this;this.Zy=Nj().uxa;this.Iy=C().v5;var a=w(),b=w();this.ey=Mj(this,"render-validation","Default render validation",a,b);this.Cm=pc(fc().db,G());Di();a=(new J).aa([this.ey]);b=Di().s;this.qf=Ei(a,b);return this};JQ.prototype.$classData=q({z2a:0},!1,"amf.validations.RenderSideValidations$",{z2a:1,f:1,lS:1});var XMa=void 0;function wo(){XMa||(XMa=(new JQ).a());return XMa}
function KQ(){this.qf=this.Cm=this.c6=this.b6=this.y6=this.a9=this.SZ=this.Q8=this.bN=this.$R=this.$Y=this.B9=this.Iy=this.Zy=null;this.ma=!1}KQ.prototype=new r;KQ.prototype.constructor=KQ;
KQ.prototype.a=function(){YMa=this;this.Zy=Nj().wxa;this.Iy=C().w5;var a=w(),b=w();this.B9=Mj(this,"unsupported-pipeline","Unsupported pipeline",a,b);a=w();b=w();this.$Y=Mj(this,"missing-extension","Missing extension in reference",a,b);a=w();b=w();this.$R=Mj(this,"invalid-type-inheritance-warning","Invalid inheritance relationship",a,b);a=w();b=w();this.bN=Mj(this,"invalid-type-inheritance","Invalid inheritance relationship",a,b);a=w();b=w();this.Q8=Mj(this,"nested-endpoint","Nested endpoints",a,
b);a=w();b=w();this.SZ=Mj(this,"unequal-media-type-definitions-in-extends-payloads","Cannot merge payloads with explicit and implicit media types",a,b);a=w();b=w();this.a9=Mj(this,"parse-resource-type-fail","Failed while parsing an endpoint from a resource type",a,b);a=w();b=w();this.y6=Mj(this,"invalid-consumes-with-file-parameter","File parameters must have specific consumes property defined",a,b);a=w();b=w();this.b6=Mj(this,"examples-with-invalid-mime-type","Mime type defined in 'examples' must be present in a 'produces' property",
a,b);a=w();b=w();this.c6=Mj(this,"examples-with-no-schema-defined","When schema is undefined, 'examples' facet is invalid as no content is returned as part of the response",a,b);for(var a=this.$R.k,b=xc().Eg,b=Lj(this,b),a=[(new P).N(a,b)],b=Ry(new Sy,Xs()),c=0,e=a.length|0;c<e;)Ty(b,a[c]),c=1+c|0;this.Cm=b.gb;Di();a=(new J).aa([this.$Y,this.bN,this.$R,this.Q8,this.SZ,this.a9,this.B9,this.y6,this.b6,this.c6]);b=Di().s;this.qf=Ei(a,b);return this};
KQ.prototype.$classData=q({A2a:0},!1,"amf.validations.ResolutionSideValidations$",{A2a:1,f:1,lS:1});var YMa=void 0;function Bo(){YMa||(YMa=(new KQ).a());return YMa}function LQ(){this.OJ=this.Kya=null;this.ma=0}LQ.prototype=new r;LQ.prototype.constructor=LQ;function ZMa(){}d=ZMa.prototype=LQ.prototype;d.r6a=function(a){this.OJ=a;return this};d.h=function(a){return a&&a.$classData&&a.$classData.v.$2a?this.OJ===a.OJ:!1};d.Wn=function(a){return BJ(ta(),this.OJ,a.OJ)};d.u=function(){return this.OJ};
function MBa(a,b){b=Xta(aua(),b,b.length|0);var c;if(0===(4&a.ma)<<24>>24&&0===(4&a.ma)<<24>>24){var e=(new MQ).a(),f=LD().yJ;if(null===f)throw(new rk).e("null CodingErrorAction");e.OI=f;f=LD().yJ;if(null===f)throw(new rk).e("null CodingErrorAction");e.RI=f;a.Kya=e;a.ma=(4|a.ma)<<24>>24}a=a.Kya;if(0===(b.$e-b.hd|0))c=Sta(Wta(),0);else{a.Cx=0;e=Ba(ea(ea(b.$e-b.hd|0)*a.Gga));e=Sta(Wta(),e);b:for(;;){c:{var f=a,g=b,h=e;if(3===f.Cx)throw(new fk).a();f.Cx=2;for(;;){try{c=$Ma(g,h)}catch(V){if(V&&V.$classData&&
V.$classData.v.x8)throw eua(V);if(V&&V.$classData&&V.$classData.v.y8)throw eua(V);throw V;}if(0===c.Fu){var k=g.$e-g.hd|0;if(0<k){var l=KD();switch(k){case 1:k=l.ts;break;case 2:k=l.fV;break;case 3:k=l.YK;break;case 4:k=l.jca;break;default:k=fua(l,k)}}else k=c}else k=c;if(0===k.Fu||1===k.Fu){f=k;break c}l=3===k.Fu?f.RI:f.OI;if(LD().yJ===l){if((h.$e-h.hd|0)<f.PI.j.length){f=KD().ot;break c}var p=f.PI,l=h,y=p,p=p.j.length;if(l.bt)throw(new ND).a();if(0>p||0>(y.j.length-p|0))throw(new X).a();var I=l.hd,
E=I+p|0;if(E>l.$e)throw(new OD).a();l.hd=E;Ca(y,0,l.Ni,l.wk+I|0,p);l=g.hd;k=k.XK;if(0>k)throw(new Gt).a();CD.prototype.gg.call(g,l+k|0)}else{if(LD().zJ===l){f=k;break c}if(LD().o6===l){l=g.hd;k=k.XK;if(0>k)throw(new Gt).a();CD.prototype.gg.call(g,l+k|0)}else throw(new v).d(l);}}}if(0!==f.Fu){if(1===f.Fu){e=iua(e);continue b}kua(f);throw(new fJ).d("should not get here");}aNa(fc(),b.hd===b.$e);c=e;break}b:for(;;){c:switch(b=a,b.Cx){case 2:e=KD().hu;0===e.Fu&&(b.Cx=3);b=e;break c;case 3:b=KD().hu;break c;
default:throw(new fk).a();}if(0!==b.Fu){if(1===b.Fu){c=iua(c);continue b}kua(b);throw(new fJ).d("should not get here");}break}CD.prototype.xO.call(c)}return c}d.y=function(){return yI(zI(),this.OJ)};function NQ(){this.Hg=null}NQ.prototype=new r;NQ.prototype.constructor=NQ;function bNa(){}bNa.prototype=NQ.prototype;NQ.prototype.u=function(){return this.Hg};NQ.prototype.Fba=function(a,b){this.Hg=b;0===(b.length|0)||(b.charCodeAt(0),a.L2());return this};function OQ(){}OQ.prototype=new r;
OQ.prototype.constructor=OQ;function cNa(){}cNa.prototype=OQ.prototype;OQ.prototype.z_=function(a){return null===a?null:(new PQ).Fba(this,a)};OQ.prototype.L2=function(){return 65535&(Gaa.sep.charCodeAt(0)|0)};function QQ(){}QQ.prototype=new r;QQ.prototype.constructor=QQ;QQ.prototype.a=function(){return this};QQ.prototype.mG=function(a,b){dE(a.dT.r,b)};QQ.prototype.Bv=function(a,b){dNa(a.dT,b)};QQ.prototype.$classData=q({p3a:0},!1,"org.mulesoft.common.io.Output$OutputWriter$",{p3a:1,f:1,n3a:1});
var eNa=void 0;function Ufa(){eNa||(eNa=(new QQ).a());return eNa}function So(){}So.prototype=new r;So.prototype.constructor=So;So.prototype.a=function(){return this};So.prototype.mG=function(a,b){this.Bv(a,ba.String.fromCharCode(b))};So.prototype.Bv=function(a,b){fNa(a,b)};So.prototype.$classData=q({q3a:0},!1,"org.mulesoft.common.io.Output$StringBufferWriter$",{q3a:1,f:1,n3a:1});var Nfa=void 0;function RQ(){this.gj=this.Of=this.iL=this.iQ=this.DDa=this.Ya=null}RQ.prototype=new r;
RQ.prototype.constructor=RQ;function gNa(){}gNa.prototype=RQ.prototype;function hNa(a){var b=a.Ya.Db,b=pE(qE(),b.Ne,b.eg,b.rj);a=a.DDa;return b.zy()?a:a.zy()?b:pE(qE(),b.Ne+a.Ne|0,b.eg+a.eg|0,b.rj+a.rj|0)}function SQ(a,b){var c=hNa(a),e=a.iQ,f=new iNa,g=Cha(a.Of,a.iL.rj,c.rj,a.iL.Ne,a.iL.eg,c.Ne,c.eg);f.Gx=b;f.cc=g;if(e.Tf.x<=e.qn)T(e.Tf,f);else{b=e.Tf;g=e.qn;if(g>=b.x)throw(new X).e(""+g);b.z.j[g]=f}e.qn=1+e.qn|0;a.iL=c;return!0}
function TQ(a){for(;a.iQ.b();)if(a.Ya.Db.ac!==mE().ht){var b=a.Ya.Db.rj;a.aAa(a.Ya.Db.ac);b===a.Ya.Db.rj&&TQ(a)}else a.IDa();b=a.iQ;b.eC=1+b.eC|0;b=UQ(b.Tf,-1+b.eC|0);a.gj=b}RQ.prototype.bH=function(a,b){this.Ya=a;this.DDa=b;this.iQ=(new rE).a();this.iL=hNa(this);this.Of=this.Ya.Of;this.DBa();return this};function FF(a,b){return a.Ya.XC(b.cc.Mu,b.cc.JA)}function VQ(a,b,c){return 0>=b||(WQ(a.Ya,b),SQ(a,c))}function XQ(a,b){return a.Ya.Db.ac===b?(a=a.Ya,YQ(a.Db,a.lg,a.zj),!0):!1}
function jNa(a,b){var c=b.length|0;if(0<c){for(var e=(new ZQ).Zh(0,c,1),e=hD(new iD,e,0,e.Ka()),f=!0;f&&e.Qa();)f=e.Sa()|0,f=(65535&(b.charCodeAt(f)|0))===$Q(a.Ya,f);a=f}else a=!1;return a?c:0}function kNa(a,b){b=jNa(a,b);return 0!==b&&(WQ(a.Ya,b),!0)}RQ.prototype.aAa=function(){};function aR(a,b){var c=a.Ya;YQ(c.Db,c.lg,c.zj);return SQ(a,b)}function kE(){this.lg=null;this.zj=this.pGa=0;this.Db=this.Of=null}kE.prototype=new r;kE.prototype.constructor=kE;
kE.prototype.Oba=function(a,b,c,e){this.lg=a;this.pGa=b;this.zj=c;this.Of=e;e=mE().ht;b=lNa(0,1,b,b,e);0!==c&&(b.eg=-1,b.rj=-1,YQ(b,a,c));this.Db=b;return this};kE.prototype.XC=function(a,b){if(a<this.pGa||b>this.zj||b<a)throw(new rk).e("Invalid sub-sequence");return za(this.lg,a,b)};function bR(a,b){var c=0;b=-1+(a.Db.Bs+b|0)|0;if(0>b)return 0;for(;b<a.zj;){var e=ya(a.lg,b);if(32!==e&&9!==e)break;c=1+c|0;b=1+b|0}return c}
function cR(a,b){var c=0,e=-1+(a.Db.Bs+0|0)|0;if(0>e)return 0;for(;c<b&&e<a.zj&&32===ya(a.lg,e);)c=1+c|0,e=1+e|0;return c}function mNa(a){a=a.Db;return lNa(a.eg,a.Ne,a.rj,a.Bs,a.ac)}function WQ(a,b){var c=-1+b|0;if(!(0>=b))for(b=0;;){YQ(a.Db,a.lg,a.zj);if(b===c)break;b=1+b|0}}
function $Q(a,b){if(0===b)return a.Db.ac;var c=-1+(a.Db.Bs+b|0)|0;if(0>c||c>=a.zj)return mE().ht;var e=ya(a.lg,c);return 0<b?55296===(64512&e)&&(1+c|0)<a.zj&&56320===(64512&ya(a.lg,1+c|0))?(a=ya(a.lg,1+c|0),65536+(((1023&e)<<10)+(1023&a)|0)|0):e:56320===(64512&e)&&0<(-1+c|0)&&55296===(64512&ya(a.lg,-1+c|0))?65536+(((1023&ya(a.lg,-1+c|0))<<10)+(1023&e)|0)|0:e}kE.prototype.$classData=q({x3a:0},!1,"org.mulesoft.lexer.CharSequenceLexerInput",{x3a:1,f:1,qfb:1});
function dR(){this.Xs=null;this.GDa=!1;this.AK=this.o0=null}dR.prototype=new Mua;dR.prototype.constructor=dR;function nNa(){}nNa.prototype=dR.prototype;dR.prototype.Jba=function(a,b,c){this.Xs=a;this.GDa=b;this.o0=c;this.AK="";return this};dR.prototype.tca=function(a){oNa(this,a);a=(new Xj).d(this.Xs);this.o0.mG(a.oq,10);return this.Xs};function Mda(a){var b=(new Xj).d(a.Xs);a.o0.Bv(b.oq,"\n");a.GDa?(b=(new ph).e(a.AK),b=Tc(b)):b=!1;b&&(b=(new Xj).d(a.Xs),a.o0.Bv(b.oq,a.AK))}
function eR(){this.DH=null}eR.prototype=new Mua;eR.prototype.constructor=eR;eR.prototype.a=function(){return this};eR.prototype.qa=function(){return null===this.DH};function pNa(a,b){var c=(0,ba.Object)(),e=new fR;if(null===a)throw Lb(Mb(),null);e.Pa=a;e.Wca=c;b.R(e);return c}function qNa(a,b){a.DH=rNa(a,b);return a.DH}eR.prototype.tca=function(a){return qNa(this,a)};
function sNa(a){var b=a.iM;if(yE()===b)return ja(a.t);if(tM()===b)return!!a.t;if(vM()===b)return+a.t;if(uM()===b)return b=Ea(a.t),a=b.Na,b=b.$a,sC(Fa(),a,b);throw(new v).d(b);}function rNa(a,b){var c=[],e=new tNa;if(null===a)throw Lb(Mb(),null);e.Pa=a;e.AW=c;b.R(e);return c}eR.prototype.doc=function(a){return this.DH=rNa(this,a)[0]};eR.prototype.obj=function(a){return this.DH=pNa(this,a)};eR.prototype.list=function(a){return qNa(this,a)};
Object.defineProperty(eR.prototype,"result",{get:function(){return this.DH},configurable:!0});Object.defineProperty(eR.prototype,"isDefined",{get:function(){return this.qa()},configurable:!0});eR.prototype.$classData=q({L3a:0},!1,"org.yaml.builder.JsOutputBuilder",{L3a:1,Swa:1,f:1});function tNa(){this.AW=this.Pa=null}tNa.prototype=new Qua;tNa.prototype.constructor=tNa;d=tNa.prototype;d.xs=function(a){a=rNa(this.Pa,a);this.AW.push(a);return(new A).d(a)};d.k5=function(a){this.AW.push(sNa(a))};
d.l5=function(a){this.AW.push(a)};d.Gr=function(a){a=pNa(this.Pa,a);this.AW.push(a);return(new A).d(a)};d.$classData=q({M3a:0},!1,"org.yaml.builder.JsOutputBuilder$$anon$1",{M3a:1,Uwa:1,f:1});function fR(){this.Wca=this.Pa=null}fR.prototype=new Oua;fR.prototype.constructor=fR;fR.prototype.l0=function(a,b){this.Wca[a]=sNa(b)};fR.prototype.Am=function(a,b){this.Wca[a]=rNa(this.Pa,b)[0]};fR.prototype.$classData=q({N3a:0},!1,"org.yaml.builder.JsOutputBuilder$$anon$2",{N3a:1,Twa:1,f:1});
function Up(){this.IM=null}Up.prototype=new Mua;Up.prototype.constructor=Up;Up.prototype.a=function(){this.IM=w();return this};function uNa(a){var b=a.iM;if(yE()===b)return R(),a=ja(a.t),Th(R(),a);if(tM()===b)return R(),a=!!a.t,R(),lq(R(),kF(nq(),a,""),O().ui);if(vM()===b)return R(),a=+a.t,R(),lq(R(),kF(nq(),a,""),O().rg);if(uM()===b)return R(),b=Ea(a.t),a=b.Na,b=b.$a,R(),a=(new aq).La(a,b),lq(R(),kF(nq(),a,""),O().Oi);throw(new v).d(b);}
function vNa(a,b){var c=(new pk).a();a=(new wNa).Gba(a,c);b.R(a);return c}Up.prototype.tca=function(a){ZE();a=xNa(this,a);var b;ZE();b=(new fC).tc("",a.ga.Of);a=sva(b,a);this.IM=(new A).d(a);return a};function xNa(a,b){R();FC();a=vNa(a,b);return lq(0,(new GC).mc(vq().Op,a),O().Nc)}Up.prototype.$classData=q({B8:0},!1,"org.yaml.builder.YDocumentBuilder",{B8:1,Swa:1,f:1});function wNa(){this.fT=this.Pa=null}wNa.prototype=new Qua;wNa.prototype.constructor=wNa;d=wNa.prototype;
d.xs=function(a){a=xNa(this.Pa,a);T(this.fT,a);return(new A).d(a)};d.k5=function(a){T(this.fT,uNa(a))};d.Gba=function(a,b){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.fT=b;return this};d.l5=function(a){Ir(a)&&T(this.fT,a)};d.Gr=function(a){var b=this.Pa,c=(new pk).a(),b=(new gR).Gba(b,c);a.R(b);a=lq(R(),rq(sq(),c,""),O().ua);T(this.fT,a);return(new A).d(a)};d.$classData=q({S3a:0},!1,"org.yaml.builder.YDocumentBuilder$$anon$1",{S3a:1,Uwa:1,f:1});function gR(){this.C$=this.Pa=null}gR.prototype=new Oua;
gR.prototype.constructor=gR;gR.prototype.l0=function(a,b){b=uNa(b);T(this.C$,gF(jC(),Th(R(),a),b))};gR.prototype.Gba=function(a,b){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.C$=b;return this};gR.prototype.Am=function(a,b){b=vNa(this.Pa,b);b=UQ(b,0);T(this.C$,gF(jC(),Th(R(),a),b))};gR.prototype.$classData=q({T3a:0},!1,"org.yaml.builder.YDocumentBuilder$$anon$2",{T3a:1,Twa:1,f:1});function hR(){this.Hza=this.raa=null}hR.prototype=new r;hR.prototype.constructor=hR;function iR(){}iR.prototype=hR.prototype;
hR.prototype.ZO=function(a,b){this.raa=a;this.Hza=b;return this};hR.prototype.Wv=function(a){var b=a.pb().nb;if(b!==this.raa)return AE(CE(),a,"Expecting "+this.raa+" and "+b+" provided");b=id(a);if(x(b)){b=b.i;try{return Zf(),(new ag).d(b.nq)}catch(c){if(yNa(c))return AE(CE(),a,c.Xm());throw c;}}else return AE(CE(),a,"Scalar expected")};hR.prototype.ZJ=function(){return this.Hza};function jR(){this.SDa=this.z$=null}jR.prototype=new r;jR.prototype.constructor=jR;
function zNa(a,b){var c=a.z$.gs();ANa(c,b);b.X(t(new u,function(a,b){return function(c){c=a.SDa.Wv(c);if(!Hp(c)){if(Ep(c))throw(new QE).f1(c.i);throw(new v).d(c);}return b.Ic(c.i)}}(a,c)));return c.lc()}jR.prototype.Wv=function(a){try{var b=Jc().Wv(a);return Hp(b)?(new ag).d(zNa(this,b.i)):b}catch(c){if(c&&c.$classData&&c.$classData.v.dxa)return Zf(),(new $f).d(c.tHa);throw c;}};function CM(a,b){var c=new jR;c.z$=a;c.SDa=b;return c}jR.prototype.ZJ=function(){return this.z$.gs().lc()};
jR.prototype.$classData=q({V3a:0},!1,"org.yaml.convert.YRead$$anon$1",{V3a:1,f:1,Jz:1});function kR(){}kR.prototype=new r;kR.prototype.constructor=kR;kR.prototype.a=function(){return this};kR.prototype.Wv=function(a){var b=a.we();return Ew(b)?(Zf(),(new ag).d(b.Jn)):AE(CE(),a,"YAML sequence expected")};kR.prototype.ZJ=function(){Zf();xq();yq();return Bq((new zq).a())};kR.prototype.$classData=q({a4a:0},!1,"org.yaml.convert.YRead$SeqNodeYRead$",{a4a:1,f:1,Jz:1});var BNa=void 0;
function Jc(){BNa||(BNa=(new kR).a());return BNa}function lR(){}lR.prototype=new r;lR.prototype.constructor=lR;lR.prototype.a=function(){return this};lR.prototype.Wv=function(a){var b=a.we();return Aw(b)?(Zf(),(new ag).d(b)):AE(CE(),a,"YAML map expected")};lR.prototype.ZJ=function(){return sq().Td};lR.prototype.$classData=q({c4a:0},!1,"org.yaml.convert.YRead$YMapYRead$",{c4a:1,f:1,Jz:1});var CNa=void 0;function Pc(){CNa||(CNa=(new lR).a());return CNa}function mR(){}mR.prototype=new r;
mR.prototype.constructor=mR;mR.prototype.a=function(){return this};mR.prototype.Wv=function(a){var b=a.we();return rs(b)?(Zf(),(new ag).d(b)):AE(CE(),a,"YAML scalar expected")};mR.prototype.ZJ=function(){return nq().yd};mR.prototype.$classData=q({d4a:0},!1,"org.yaml.convert.YRead$YScalarYRead$",{d4a:1,f:1,Jz:1});var DNa=void 0;function wN(){DNa||(DNa=(new mR).a());return DNa}function nR(){}nR.prototype=new r;nR.prototype.constructor=nR;nR.prototype.a=function(){return this};
nR.prototype.Wv=function(a){var b=a.we();return Ew(b)?(Zf(),(new ag).d(b)):AE(CE(),a,"YAML sequence expected")};nR.prototype.ZJ=function(){return FC().Td};nR.prototype.$classData=q({e4a:0},!1,"org.yaml.convert.YRead$YSeqYRead$",{e4a:1,f:1,Jz:1});var ENa=void 0;function tv(){ENa||(ENa=(new nR).a());return ENa}function ME(){sE.call(this)}ME.prototype=new Gua;ME.prototype.constructor=ME;ME.prototype.tc=function(a,b){sE.prototype.tc.call(this,a,b);NE().dDa.Oe(this.Kxa,this);return this};
ME.prototype.$classData=q({q4a:0},!1,"org.yaml.lexer.YamlToken",{q4a:1,sfb:1,f:1});function WE(){}WE.prototype=new r;WE.prototype.constructor=WE;WE.prototype.a=function(){return this};WE.prototype.uH=function(a){return a};WE.prototype.HL=function(){return!1};WE.prototype.$classData=q({t4a:0},!1,"org.yaml.model.FoldedMark$",{t4a:1,f:1,pS:1});var ova=void 0;function PE(){this.Hv=null}PE.prototype=new r;PE.prototype.constructor=PE;PE.prototype.cC=function(a,b){this.Hv.R(a);return b};
PE.prototype.MO=function(a){this.Hv=a;return this};PE.prototype.$classData=q({v4a:0},!1,"org.yaml.model.IllegalTypeHandler$$anon$1",{v4a:1,f:1,Lp:1});function oR(){}oR.prototype=new r;oR.prototype.constructor=oR;oR.prototype.a=function(){return this};oR.prototype.uH=function(a){return a};oR.prototype.HL=function(){return!1};oR.prototype.$classData=q({w4a:0},!1,"org.yaml.model.MultilineMark$",{w4a:1,f:1,pS:1});var FNa=void 0;function nva(){FNa||(FNa=(new oR).a());return FNa}function pR(){}
pR.prototype=new r;pR.prototype.constructor=pR;pR.prototype.a=function(){return this};pR.prototype.uH=function(a){return a};pR.prototype.HL=function(){return!0};pR.prototype.$classData=q({x4a:0},!1,"org.yaml.model.NoMark$",{x4a:1,f:1,pS:1});var GNa=void 0;function wq(){GNa||(GNa=(new pR).a());return GNa}function TE(){this.Ca=null}TE.prototype=new r;TE.prototype.constructor=TE;TE.prototype.ps=function(a,b){(0,this.Ca)(a,b)};TE.prototype.d=function(a){this.Ca=a;return this};
TE.prototype.$classData=q({z4a:0},!1,"org.yaml.model.ParseErrorHandler$$$Lambda$1",{z4a:1,f:1,ip:1});function SE(){this.Ca=null}SE.prototype=new r;SE.prototype.constructor=SE;SE.prototype.ps=function(a,b){(0,this.Ca)(a,b)};SE.prototype.d=function(a){this.Ca=a;return this};SE.prototype.$classData=q({A4a:0},!1,"org.yaml.model.ParseErrorHandler$$$Lambda$2",{A4a:1,f:1,ip:1});function qR(){}qR.prototype=new r;qR.prototype.constructor=qR;qR.prototype.a=function(){return this};qR.prototype.uH=function(a){return a};
qR.prototype.HL=function(){return!1};qR.prototype.$classData=q({D4a:0},!1,"org.yaml.model.UnknownMark$",{D4a:1,f:1,pS:1});var HNa=void 0;function pva(){HNa||(HNa=(new qR).a());return HNa}function rR(){nF.call(this);this.XS=this.Xd=null}rR.prototype=new oF;rR.prototype.constructor=rR;rR.prototype.h=function(a){if(a&&a.$classData&&a.$classData.v.D8&&this.Xd===a.Xd){var b=this.XS;a=a.XS;return null===b?null===a:b.h(a)}return!1};rR.prototype.u=function(){return"%"+this.Xd+" "+this.XS.ng(" ")};
rR.prototype.y=function(){var a=this.Xd;return ra(ta(),a)+ca(31,this.XS.y())|0};rR.prototype.$classData=q({D8:0},!1,"org.yaml.model.YDirective",{D8:1,kt:1,f:1});function My(){this.da=this.r=null}My.prototype=new vva;My.prototype.constructor=My;My.prototype.e=function(a){this.da=a;$E.prototype.a.call(this);return this};My.prototype.$s=function(a){T(this.r,Hva(R(),a,this.da))};My.prototype.$classData=q({J4a:0},!1,"org.yaml.model.YDocument$PartBuilder",{J4a:1,H4a:1,f:1});
function fF(){nF.call(this);this.i=this.Da=null}fF.prototype=new oF;fF.prototype.constructor=fF;fF.prototype.u=function(){return""+Qwa(nG(),this.Da,": ")+this.i};function zva(a,b,c,e,f){a.Da=b;a.i=c;nF.prototype.mc.call(a,e,f);return a}function Kr(a){return!!(a&&a.$classData&&a.$classData.v.gxa)}var INa=q({gxa:0},!1,"org.yaml.model.YMapEntry",{gxa:1,kt:1,f:1});fF.prototype.$classData=INa;function sR(){nF.call(this);this.rF=null}sR.prototype=new oF;sR.prototype.constructor=sR;function JNa(){}
JNa.prototype=sR.prototype;sR.prototype.mc=function(a,b){this.rF=b;Zf();xq();yq();b=(new zq).a();nF.prototype.mc.call(this,a,Bq(b));return this};function AF(){this.jc=this.Vg=null;this.gda=!1;this.ZP=this.gn=null}AF.prototype=new r;AF.prototype.constructor=AF;function KNa(a,b){return tR(a)!==b?!LNa(a):!1}function MNa(a,b,c){return NNa(a,b,c)||(ONa(a,c),!1)}
AF.prototype.PA=function(a){this.gda=a;Zf();PNa(this);QNa(this,NE().PM)&&(RNa(this),QNa(this,NE().ZI));a=this.gn.ou();var b=this.gn.Zp();SNa(this);a=[(new Oy).mc(b,vl(fc(),a))];if(0===(a.length|0))return xq(),yq(),Bq((new zq).a());xq();yq();for(var b=(new zq).a(),c=0,e=a.length|0;c<e;)LG(b,a[c]),c=1+c|0;return Bq(b)};function Uva(a,b,c){a.Vg=b;a.jc=c;a.gda=!1;a.gn=(new EF).$O(a);Di();b=(new J).aa([a.gn]);c=Di().s;a.ZP=Ei(b,c);return a}function QNa(a,b){return TNa(a,b)&&uR(a)}
function UNa(a,b){SNa(a);T(a.gn.qo,b)}function VNa(a){var b=NE().uw;WNa(a,b)&&TQ(a.Vg)}function XNa(a){var b=a.Vg,b="Unexpected '"+ja(FF(b,b.gj))+"'";a.jc.ps(a.Vg.gj.cc,(new vR).EE(b,null))}function uR(a){Wva(a.gn);var b=a.Vg.gj.Gx,c=NE().uw;b===c&&(b=a.Vg,a.jc.ps(a.Vg.gj.cc,(new wR).EE(ja(FF(b,b.gj)),null)));TQ(a.Vg);return!0}
function RNa(a){var b=tR(a);if(NE().KF===b){PNa(a);var b=YNa(a,NE().KF,NE().zD,(new ZNa).$O(a)),c=a.gn.Zp();b&&uR(a);FC();var e=vl(fc(),a.gn.ou()),c=(new GC).mc(c,e),e=O().Nc;UNa(a,$Na(a,c,e.Ct));return b}if(NE().rD===b)return PNa(a),b=YNa(a,NE().rD,NE().Tx,(new aOa).$O(a)),c=a.gn.Zp(),b&&uR(a),e=a.gn.ou(),sq(),e=vl(fc(),e),c=(new dF).mc(c,e),e=O().ua,UNa(a,$Na(a,c,e.Ct)),b;if(NE().sw===b)return bOa(a);XNa(a);return!1}
function YNa(a,b,c,e){aNa(fc(),WNa(a,b));uR(a);for(a.gn.Oz();KNa(a,c);)e.Pc(),KNa(a,c)&&MNa(a,NE().ii,",")&&(uR(a),cOa(a),a.gn.Oz(),tR(a)===c&&ONa(a,"value"));return TNa(a,c)}function ONa(a,b){var c=a.Vg,c=ja(FF(c,c.gj));if(null===c)throw(new Rg).a();""===c?b="Missing '"+b+"'":(c=a.Vg,b="Expecting '"+b+"' but '"+ja(FF(c,c.gj))+"' found");a.jc.ps(a.Vg.gj.cc,(new vR).EE(b,null))}
function bOa(a){if(TNa(a,NE().sw)){PNa(a);a.gn.Oz();for(var b=(new lk).a(),c="";KNa(a,NE().gt);){var e=tR(a);if(NE().QM===e){var e=b,f;f=a;for(var g=(new lk).a();KNa(f,NE().WM);){var h=tR(f);NE().ii===h?(h=f.Vg,nk(g,ja(FF(h,h.gj)))):NE().Iz===h?hG(g.Be,0):NE().as===h&&(h=f.Vg,nk(g,ja(FF(h,h.gj))));uR(f)}f=vua(aE(),g.Be.Ue);nk(e,f)}else NE().ii===e?(c=a.Vg,c=ja(FF(c,c.gj))):NE().ds===e&&(e=a.Vg,ok(b,FF(e,e.gj)));uR(a)}e=a.gn.Zp();QNa(a,NE().gt);a.gn.Oz();f=c;g=VE().oO;f=f===ba.String.fromCharCode(g)?
O().Wa.Ct:null;b=Dha(new Aq,b.Be.Ue,f,lva(rva(),c),e,vl(fc(),a.gn.ou()),a.jc);UNa(a,$Na(a,b.so,b.Ze));return!0}return!1}function NNa(a,b,c){return WNa(a,b)?(a=a.Vg,ja(FF(a,a.gj))===c):!1}function $Na(a,b,c){a=a.Vg.Of;R();var e=w();R();return Dva(R(),b,c,e,a)}function tR(a){cOa(a);return a.Vg.gj.Gx}function WNa(a,b){return tR(a)===b}function LNa(a){a=tR(a);var b=NE().ZI;return a===b}function SNa(a){a.ZP=a.ZP.sa();a.gn=a.ZP.fa()}
function dOa(a,b){var c=b.Ba();return x(c)?MNa(a,b.pa(),c.i):WNa(a,b.pa())}function TNa(a,b){var c;(c=WNa(a,b))||(NE().sw===b?ONa(a,'"'):NE().Tx===b?ONa(a,"}"):NE().zD===b?ONa(a,"]"):XNa(a),c=!1);return c}function cOa(a){for(;;){var b=a.Vg.gj.Gx,c=NE().KB;b===c?b=!0:(b=a.Vg.gj.Gx,c=NE().Iz,b=b===c);if(b)Wva(a.gn),TQ(a.Vg);else break}}function PNa(a){a.gn=(new EF).$O(a);a.ZP=oz(new pz,a.gn,a.ZP)}AF.prototype.$classData=q({e5a:0},!1,"org.yaml.parser.JsonParser",{e5a:1,f:1,k5a:1});
function xR(){VF.call(this)}xR.prototype=new XF;xR.prototype.constructor=xR;xR.prototype.an=function(a){VF.prototype.ix.call(this,a,WF(QF(a)));return this};xR.prototype.ly=function(){var a=this.Pv.Be.Ue;YF(this);var b=this.l,c=this.Zp(),e=dwa(this);TF(b,(new yR).aP(a,c,e));this.l.sj.oi.fa().ur=a};xR.prototype.$classData=q({m5a:0},!1,"org.yaml.parser.YamlLoader$AliasBuilder",{m5a:1,by:1,f:1});function zR(){VF.call(this)}zR.prototype=new XF;zR.prototype.constructor=zR;
zR.prototype.an=function(a){VF.prototype.ix.call(this,a,WF(QF(a)));return this};zR.prototype.ly=function(){YF(this);var a=this.Pv.Be.Ue,b=this.Zp(),c=dwa(this),a=(new yR).aP(a,b,c);TF(this.l,a);this.l.sj.oi.fa().r_=(new A).d(a)};zR.prototype.$classData=q({n5a:0},!1,"org.yaml.parser.YamlLoader$AnchorBuilder",{n5a:1,by:1,f:1});function AR(){VF.call(this)}AR.prototype=new XF;AR.prototype.constructor=AR;AR.prototype.an=function(a){VF.prototype.ix.call(this,a,WF(QF(a)));return this};
AR.prototype.ly=function(){YF(this);var a=this.l,b=this.Pv.Be.Ue,c=this.Zp(),e=dwa(this);TF(a,(new aF).aP(b,c,e))};AR.prototype.$classData=q({o5a:0},!1,"org.yaml.parser.YamlLoader$CommentBuilder",{o5a:1,by:1,f:1});function BR(){VF.call(this);this.SV=null}BR.prototype=new XF;BR.prototype.constructor=BR;BR.prototype.an=function(a){VF.prototype.ix.call(this,a,WF(QF(a)));Wg();this.SV=Yg(new Zg,(new $g).a()).gb;return this};
BR.prototype.ly=function(){eOa(this);var a=this.ou(),b=new fOa;if(null===this)throw Lb(Mb(),null);b.Pa=this;var c=(new ck).a();try{for(var e=0,f=a.j.length;e<f;){var g=a.j[e],h=sG().PP,k=b.ph(g,h);if(!eza(sG(),k))throw(new Ax).N(c,(new A).d(k));e=1+e|0}w()}catch(l){if(Bx(l))if(l.Da===c)l.Qt();else throw l;else throw l;}b=this.l;c=this.SV.Lb.fa();fc();e=Cw(this.SV).Lb;f=Fp(e);f=ia(La(la),[f]);JF(e,f,0);e=vl(0,f);f=this.Zp();a=vl(fc(),a);g=new rR;g.Xd=c;g.XS=e;nF.prototype.mc.call(g,f,a);TF(b,g)};
function eOa(a){Tc(a.Pv)&&(vh(a.SV,a.Pv.Be.Ue),hG(a.Pv.Be,0))}BR.prototype.JDa=function(){eOa(this)};BR.prototype.$classData=q({p5a:0},!1,"org.yaml.parser.YamlLoader$DirectiveBuilder",{p5a:1,by:1,f:1});function CR(){VF.call(this)}CR.prototype=new XF;CR.prototype.constructor=CR;CR.prototype.an=function(a){VF.prototype.ix.call(this,a,WF(QF(a)));a.M1.PJ();return this};CR.prototype.ly=function(){TF(this.l,(new Oy).mc(this.Zp(),vl(fc(),this.ou())))};
CR.prototype.$classData=q({r5a:0},!1,"org.yaml.parser.YamlLoader$DocBuilder",{r5a:1,by:1,f:1});function DR(){VF.call(this)}DR.prototype=new XF;DR.prototype.constructor=DR;DR.prototype.an=function(a){VF.prototype.ix.call(this,a,WF(QF(a)));return this};
DR.prototype.ly=function(){for(var a=this.ou(),b=this.l,c=H(xz(),G()),e=0,f=a.j.length;e<f;){var g=a.j[e];if(Kr(g)){var h=g.Da.u();c.Pz(h)||b.jc.ps(g.Da.ga,(new gOa).EE(h,null))}e=1+e|0}sq();b=this.Zp();a=vl(fc(),a);a=(new dF).mc(b,a);TF(this.l,a);this.l.sj.oi.fa().t=a;this.l.sj.oi.fa().Ze=bwa(this.l.sj.oi.fa().Ze,O().ua)};DR.prototype.$classData=q({s5a:0},!1,"org.yaml.parser.YamlLoader$MapBuilder",{s5a:1,by:1,f:1});function ER(){VF.call(this)}ER.prototype=new XF;ER.prototype.constructor=ER;
ER.prototype.an=function(a){VF.prototype.ix.call(this,a,WF(QF(a)));return this};
ER.prototype.ly=function(){var a=this.ou(),b=(new ph).e(this.ur);if(Tc(b)){var b=this.Zp(),c=this.l.M1.Ta(this.ur),e=new FR,f=c.b()?R().yd:c.c(),g=this.Zp(),a=vl(fc(),a);e.ICa=this.ur;e.cw=f;GR.prototype.mc.call(e,g,a);c.b()&&this.l.jc.ps(b,(new hOa).EE(this.ur,null));TF(this.l,e)}else b=(new ph).e(this.l.yK),Tc(b)&&this.Ze.ya===this.l.yK?a=Gva(new lF,this.t,this.Ze,this.Zp(),vl(fc(),a)):(b=new iF,c=this.Ze,e=this.r_,f=this.Zp(),a=vl(fc(),a),b.nq=this.t,b.yfa=c,b.PS=e,jF.prototype.mc.call(b,f,a),
a=b),b=this.r_,b.b()||(b=b.c(),this.l.M1.Ih((new P).N(b.wH,a))),TF(this.l,a)};ER.prototype.$classData=q({rxa:0},!1,"org.yaml.parser.YamlLoader$NodeBuilder",{rxa:1,by:1,f:1});function HR(){VF.call(this)}HR.prototype=new XF;HR.prototype.constructor=HR;HR.prototype.an=function(a){VF.prototype.ix.call(this,a,WF(QF(a)));return this};HR.prototype.ly=function(){var a=this.l,b;jC();b=this.Zp();var c=vl(fc(),this.ou()),e=(new iOa).a(),f=uv(),e=c.$b(e,f.gc);b=zva(new fF,e.jb(0),e.jb(1),b,c);TF(a,b)};
HR.prototype.$classData=q({t5a:0},!1,"org.yaml.parser.YamlLoader$PairBuilder",{t5a:1,by:1,f:1});function jOa(){VF.call(this);this.jL=this.Bfa=null}jOa.prototype=new XF;jOa.prototype.constructor=jOa;d=jOa.prototype;d.TS=function(a){var b=this.jL,c=pva();null!==b&&b===c&&(this.jL=wq());ok(this.Bfa,a)};d.an=function(a){VF.prototype.ix.call(this,a,WF(QF(a)));this.Bfa=(new lk).a();this.jL=pva();return this};
d.ly=function(){var a=this.Bfa.Be.Ue,b=this.l.sj.oi.sa().fa().Ze,c=this.jL,e=pva(),a=Dha(new Aq,a,b,null!==c&&c===e?wq():this.jL,this.Zp(),vl(fc(),this.ou()),this.l.jc);TF(this.l,a.so);this.l.sj.oi.fa().t=a.so;this.l.sj.oi.fa().Ze=a.Ze};d.a2=function(){var a=this.jL,b=pva();null!==a&&a===b&&(rva(),a=this.l.Vg,this.jL=lva(0,ja(FF(a,a.gj))));VF.prototype.a2.call(this)};d.$classData=q({u5a:0},!1,"org.yaml.parser.YamlLoader$ScalarBuilder",{u5a:1,by:1,f:1});function IR(){VF.call(this)}IR.prototype=new XF;
IR.prototype.constructor=IR;IR.prototype.an=function(a){VF.prototype.ix.call(this,a,WF(QF(a)));return this};IR.prototype.ly=function(){FC();var a=this.Zp(),b=vl(fc(),this.ou()),a=(new GC).mc(a,b);TF(this.l,a);this.l.sj.oi.fa().t=a;this.l.sj.oi.fa().Ze=bwa(this.l.sj.oi.fa().Ze,O().Nc)};IR.prototype.$classData=q({v5a:0},!1,"org.yaml.parser.YamlLoader$SeqBuilder",{v5a:1,by:1,f:1});function JR(){VF.call(this)}JR.prototype=new XF;JR.prototype.constructor=JR;
JR.prototype.an=function(a){VF.prototype.ix.call(this,a,WF(QF(a)));return this};JR.prototype.ly=function(){YF(this);Rva||(Rva=(new vF).a());var a=this.Pv.Be.Ue,b=this.Zp(),c=dwa(this.l.sj.oi.fa()),e=new tF,f;f=O().pca.Ta(a);if(x(f))f=f.i;else{if(w()!==f)throw(new v).d(f);f=O().Op}a=Pva(e,a,f,b,c);TF(this.l,a);(b=this.l.sj.oi.fa())&&b.$classData&&b.$classData.v.rxa&&(b.Ze=a)};JR.prototype.a2=function(){var a=this.l.Vg;ok(this.Pv,FF(a,a.gj))};
JR.prototype.$classData=q({x5a:0},!1,"org.yaml.parser.YamlLoader$TagBuilder",{x5a:1,by:1,f:1});function KR(){this.yK=this.jc=this.Vg=null}KR.prototype=new r;KR.prototype.constructor=KR;
KR.prototype.PA=function(a){var b=this.yK,c=this.jc,e=new awa;e.Vg=this.Vg;e.mCa=a;e.yK=b;e.jc=c;e.M1=(new ct).a();e.sj=(new UF).an(e);a=e.sj;b=(new VF).ix(e,WF(QF(e)));for(a.oi=oz(new pz,b,a.oi);;)if(a=e.Vg.gj.Gx,b=NE().NR,a!==b){a:{a=e;b=a.Vg.gj.Gx;if(NE().PM===b)SF(a,(new CR).an(a));else if(NE().dv===b)SF(a,(new ER).an(a));else if(NE().sw===b)SF(a,(new jOa).an(a));else if(NE().KF===b)SF(a,(new IR).an(a));else if(NE().ER===b)SF(a,(new HR).an(a));else if(NE().rD===b)SF(a,(new DR).an(a));else if(NE().F5===
b)SF(a,(new BR).an(a));else if(NE().E5===b)SF(a,(new AR).an(a));else if(NE().C5===b)SF(a,(new xR).an(a));else if(NE().D5===b)SF(a,(new zR).an(a));else if(NE().MX===b)SF(a,(new JR).an(a));else{if(NE().gt===b||NE().Z5===b||NE().Tx===b||NE().zD===b||NE().ZI===b||NE().gv===b||NE().MR===b||NE().Y5===b||NE().W5===b||NE().X5===b||NE().dY===b){a.sj.oi.fa().ly();break a}NE().ds===b?(b=a.sj.oi.fa(),c=a.Vg,b.TS(FF(c,c.gj))):NE().UY===b?a.sj.oi.fa().TS(" "):NE().pJ===b?a.sj.oi.fa().TS("\n"):NE().QM===b?a.sj.oi.fa().UT=
!0:NE().G5===b?a.sj.oi.fa().O0=!0:NE().$5===b?a.sj.oi.fa().O0=!1:NE().as===b?(b=a.sj.oi.fa(),c=b.l.Vg,ok(b.Pv,FF(c,c.gj))):NE().ii===b?a.sj.oi.fa().a2():NE().WM===b?(b=a.sj.oi.fa(),aE(),b.TS(vua(0,b.Pv.Be.Ue)),hG(b.Pv.Be,0),b.UT=!1):NE().Iz===b?(b=a.sj.oi.fa(),b.UT&&hG(b.l.sj.oi.fa().Pv.Be,0)):NE().KB===b?a.sj.oi.fa().JDa():NE().uw===b&&(b=a.Vg,a.jc.ps(a.Vg.gj.cc,(new wR).EE(ja(FF(b,b.gj)),null)))}YF(a.sj.oi.fa())}TQ(e.Vg)}else break;return vl(fc(),cwa(e.sj).ou())};
function fwa(a,b){var c=new KR;c.Vg=a;c.jc=b;c.yK="";return c}function DKa(a){a.yK="!include";return a}KR.prototype.$classData=q({z5a:0},!1,"org.yaml.parser.YamlParser",{z5a:1,f:1,k5a:1});function LR(){this.zdb=this.ZFa=this.uM=this.ZD=this.WC=null}LR.prototype=new r;LR.prototype.constructor=LR;
LR.prototype.a=function(){kOa=this;Oda(this);this.WC=(new ak).MO(t(new u,function(){return function(a){return a}}(this)));t(new u,function(){return function(a){a=pka(ta(),a);var b=se(ye(),a);if(b.b()||null===b.c()||0!==b.c().Ge(1))throw(new rk).e("'"+a+"' is not a char.");a=65535&(b.c().jb(0)|0);return Dc(a)}}(this));t(new u,function(){return function(a){a=(new ph).e(a);return rC(wa(),a.ia)}}(this));this.ZD=(new ak).MO(t(new u,function(){return function(a){a=a.toLowerCase();if("true"===a)return!0;
if("false"!==a){if("yes"===a)return!0;if("no"!==a){if("1"===a)return!0;if("0"===a)return!1;throw(new rk).e("'"+a+"' is not a boolean.");}}return!1}}(this)));t(new u,function(){return function(a){var b=lOa(Zj(),a);if(null===b)throw(new v).d(b);a=b.pa();b=b.si();return qC(pC(),a,b)}}(this));t(new u,function(){return function(a){var b=lOa(Zj(),a);if(null===b)throw(new v).d(b);a=b.pa();b=b.si();return tC(uC(),a,b)}}(this));t(new u,function(){return function(a){var b=lOa(Zj(),a);if(null===b)throw(new v).d(b);
a=b.pa();b=b.si();Yva();return(new OF).CE((new bD).bn(a,b))}}(this));t(new u,function(){return function(a){var b=Zf();0===(1&b.ma)<<24>>24&&0===(1&b.ma)<<24>>24&&(b.Uga=mOa(),b.ma=(1|b.ma)<<24>>24);b=b.Uga;a=(new MR).e(a);if(NR(a)<=b.hO.EC)b=b.hO;else{var b=new tD,c=NR(a),e=vD().TR;b.EC=c;b.VH=e}return nOa(new OR,a,b)}}(this));oOa(this);this.uM=(new PR).a();this.ZFa=",";return this};
function oOa(a){try{t(new u,function(){return function(a){return pOa(QR(),a)}}(a))}catch(b){if(NF(b))throw $wa(),(new RR).bn(b.Ls,-1);throw b;}}function lOa(a,b){a=b.toLowerCase();return 0<=(a.length|0)&&"0x"===a.substring(0,2)?(a=(new ph).e(a),(new P).N(Zo(a,"0x"),16)):(new P).N(a,10)}
function ICa(){var a=Zj(),b=Zj().WC;return(new ak).MO(t(new u,function(a,b){return function(a){var c=Zj().ZFa;a=kd(ta(),a,c,0);c=b.pW;ye();(new KH).a();var h=qOa().Ed(),k=a.j.length;switch(k){case -1:break;default:h.Gh(k)}for(var k=0,l=a.j.length;k<l;)h.Ic(c.R(a.j[k])),k=1+k|0;return h.lc()}}(a,b)))}LR.prototype.$classData=q({R5a:0},!1,"scopt.Read$",{R5a:1,f:1,vfb:1});var kOa=void 0;function Zj(){kOa||(kOa=(new LR).a());return kOa}function ak(){this.Kw=0;this.pW=null}ak.prototype=new r;
ak.prototype.constructor=ak;ak.prototype.MO=function(a){this.Kw=1;this.pW=a;return this};ak.prototype.$classData=q({S5a:0},!1,"scopt.Read$$anon$2",{S5a:1,f:1,Q5a:1});function PR(){this.Kw=0;this.pW=null}PR.prototype=new r;PR.prototype.constructor=PR;PR.prototype.a=function(){this.Kw=0;this.pW=t(new u,function(){return function(){}}(this));return this};PR.prototype.$classData=q({T5a:0},!1,"scopt.Read$$anon$4",{T5a:1,f:1,Q5a:1});function rOa(){}rOa.prototype=new r;rOa.prototype.constructor=rOa;
function SR(){}SR.prototype=rOa.prototype;function iCa(a){return!!(a&&a.$classData&&a.$classData.v.By||"number"===typeof a)}function TR(){this.bU=this.zV=this.gO=null;this.qT=this.oV=0}TR.prototype=new r;TR.prototype.constructor=TR;TR.prototype.h=function(a){return a&&a.$classData&&a.$classData.v.cCa?this.bU===a.bU&&this.oV===a.oV&&this.gO===a.gO&&this.zV===a.zV:!1};
TR.prototype.u=function(){var a="";"\x3cjscode\x3e"!==this.gO&&(a=""+a+this.gO+".");a=""+a+this.zV;null===this.bU?a+="(Unknown Source)":(a=a+"("+this.bU,0<=this.oV&&(a=a+":"+this.oV,0<=this.qT&&(a=a+":"+this.qT)),a+=")");return a};TR.prototype.y=function(){var a=this.gO,a=ra(ta(),a),b=this.zV;return a^ra(ta(),b)};TR.prototype.setColumnNumber=function(a){this.qT=a|0};TR.prototype.getColumnNumber=function(){return this.qT};var sOa=q({cCa:0},!1,"java.lang.StackTraceElement",{cCa:1,f:1,n:1});
TR.prototype.$classData=sOa;function WG(){this.ba=null}WG.prototype=new r;WG.prototype.constructor=WG;WG.prototype.eF=function(){};WG.prototype.$classData=q({e7a:0},!1,"java.lang.Thread",{e7a:1,f:1,bCa:1});function vE(){this.rh=this.Ls=null;this.rHa=!1;this.$P=null}vE.prototype=new r;vE.prototype.constructor=vE;function UR(){}d=UR.prototype=vE.prototype;
d.cU=function(){if(void 0===ba.Error.captureStackTrace){try{var a={}.undef()}catch(b){if(a=gi(Mb(),b),null!==a)if(pJ(a))a=a.qy;else throw Lb(Mb(),a);else throw b;}this.stackdata=a}else ba.Error.captureStackTrace(this),this.stackdata=this;return this};d.Xm=function(){return this.Ls};d.u=function(){var a=dk(ka(this)),b=this.Xm();return null===b?a:a+": "+b};
function tOa(a){if(null===a.$P){var b;if(a.rHa){eCa||(eCa=(new RJ).a());b=eCa;var c=a.stackdata,e;if(c){if(0===(1&b.ma)<<24>>24&&0===(1&b.ma)<<24>>24){a:try{ba.Packages.org.mozilla.javascript.JavaScriptException,e=!0}catch(E){e=gi(Mb(),E);if(null!==e){if(pJ(e)){e=!1;break a}throw Lb(Mb(),e);}throw E;}b.LBa=e;b.ma=(1|b.ma)<<24>>24}if(b.LBa)e=c.stack,e=(void 0===e?"":e).replace(TJ("^\\s+at\\s+","gm"),"").replace(TJ("^(.+?)(?: \\((.+)\\))?$","gm"),"$2@$1").replace(TJ("\\r\\n?","gm"),"\n").split("\n");
else if(c.arguments&&c.stack)e=ZBa(c);else if(c.stack&&c.sourceURL)e=c.stack.replace(TJ("\\[native code\\]\\n","m"),"").replace(TJ("^(?\x3d\\w+Error\\:).*$\\n","m"),"").replace(TJ("^@","gm"),"{anonymous}()@").split("\n");else if(c.stack&&c.number)e=c.stack.replace(TJ("^\\s*at\\s+(.*)$","gm"),"$1").replace(TJ("^Anonymous function\\s+","gm"),"{anonymous}() ").replace(TJ("^([^\\(]+|\\{anonymous\\}\\(\\))\\s+\\((.+)\\)$","gm"),"$1@$2").split("\n").slice(1);else if(c.stack&&c.fileName)e=c.stack.replace(TJ("(?:\\n@:0)?\\s+$",
"m"),"").replace(TJ("^(?:\\((\\S*)\\))?@","gm"),"{anonymous}($1)@").split("\n");else if(c.message&&c["opera#sourceloc"])if(c.stacktrace)if(-1<c.message.indexOf("\n")&&c.message.split("\n").length>c.stacktrace.split("\n").length)e=dCa(c);else{e=TJ("Line (\\d+).*script (?:in )?(\\S+)(?:: In function (\\S+))?$","i");for(var c=c.stacktrace.split("\n"),f=[],g=0,h=c.length|0;g<h;){var k=e.exec(c[g]);if(null!==k){var l=k[3],l=void 0===l?"{anonymous}":l,p=k[2];if(void 0===p)throw(new PH).e("undefined.get");
k=k[1];if(void 0===k)throw(new PH).e("undefined.get");f.push(l+"()@"+p+":"+k)}g=2+g|0}e=f}else e=dCa(c);else if(c.message&&c.stack&&c.stacktrace){if(0>c.stacktrace.indexOf("called from line"))for(e=SJ("^(.*)@(.+):(\\d+)$"),c=c.stacktrace.split("\n"),f=[],g=0,h=c.length|0;g<h;){k=e.exec(c[g]);if(null!==k){l=k[1];l=void 0===l?"global code":l+"()";p=k[2];if(void 0===p)throw(new PH).e("undefined.get");k=k[3];if(void 0===k)throw(new PH).e("undefined.get");f.push(l+"@"+p+":"+k)}g=1+g|0}else for(e=SJ("^.*line (\\d+), column (\\d+)(?: in (.+))? in (\\S+):$"),
c=c.stacktrace.split("\n"),f=[],g=0,h=c.length|0;g<h;){k=e.exec(c[g]);if(null!==k){l=k[4];if(void 0===l)throw(new PH).e("undefined.get");p=k[1];if(void 0===p)throw(new PH).e("undefined.get");var y=k[2];if(void 0===y)throw(new PH).e("undefined.get");l=l+":"+p+":"+y;k=k[2];k=(void 0===k?"global code":k).replace(SJ("\x3canonymous function: (\\S+)\x3e"),"$1").replace(SJ("\x3canonymous function\x3e"),"{anonymous}");f.push(k+"@"+l)|0}g=2+g|0}e=f}else e=c.stack&&!c.fileName?ZBa(c):[]}else e=[];f=e;g=SJ("^([^\\@]*)\\@(.*):([0-9]+)$");
h=SJ("^([^\\@]*)\\@(.*):([0-9]+):([0-9]+)$");c=[];for(e=0;e<(f.length|0);){k=f[e];if(null===k)throw(new Rg).a();if(""!==k)if(l=h.exec(k),null!==l){k=l[1];if(void 0===k)throw(new PH).e("undefined.get");p=cCa(b,k);if(null===p)throw(new v).d(p);k=p.pa();p=p.Ba();y=l[2];if(void 0===y)throw(new PH).e("undefined.get");var I=l[3];if(void 0===I)throw(new PH).e("undefined.get");I=(new ph).e(I);I=qC(pC(),I.ia,10);l=l[4];if(void 0===l)throw(new PH).e("undefined.get");l=(new ph).e(l);l=qC(pC(),l.ia,10);c.push({declaringClass:k,
methodName:p,fileName:y,lineNumber:I,columnNumber:void 0===l?void 0:l})}else if(l=g.exec(k),null!==l){k=l[1];if(void 0===k)throw(new PH).e("undefined.get");p=cCa(b,k);if(null===p)throw(new v).d(p);k=p.pa();p=p.Ba();y=l[2];if(void 0===y)throw(new PH).e("undefined.get");l=l[3];if(void 0===l)throw(new PH).e("undefined.get");l=(new ph).e(l);l=qC(pC(),l.ia,10);c.push({declaringClass:k,methodName:p,fileName:y,lineNumber:l,columnNumber:void 0})}else c.push({declaringClass:"\x3cjscode\x3e",methodName:k,fileName:null,
lineNumber:-1,columnNumber:void 0})|0;e=1+e|0}b=aa.sourceMapper;b=void 0===b?c:b(c);c=ia(La(sOa),[b.length|0]);for(e=0;e<(b.length|0);)f=b[e],g=f.methodName,h=f.fileName,k=f.lineNumber|0,l=new TR,l.gO=f.declaringClass,l.zV=g,l.bU=h,l.oV=k,l.qT=-1,g=l,f=f.columnNumber,void 0!==f&&g.setColumnNumber(f|0),c.j[e]=g,e=1+e|0;b=c}else b=ia(La(sOa),[0]);a.$P=b}return a.$P}d.e=function(a){vE.prototype.pe.call(this,a,null,0,!0);return this};
function VR(a){var b=cq().Wp,b=function(a,b){return function(a){bq(b,a)}}(a,b);tOa(a);var c=a.u();b(c);if(0!==a.$P.j.length)for(c=0;c<a.$P.j.length;)b("  at "+a.$P.j[c]),c=1+c|0;else b("  \x3cno stack trace available\x3e");for(;;)if(a!==a.rh&&null!==a.rh){var e=tOa(a);a=a.rh;var c=tOa(a),f=c.j.length,g=e.j.length,h="Caused by: "+a.u();b(h);if(0!==f){for(h=0;;){if(h<f&&h<g)var k=c.j[-1+(f-h|0)|0],l=e.j[-1+(g-h|0)|0],k=null===k?null===l:k.h(l);else k=!1;if(k)h=1+h|0;else break}0<h&&(h=-1+h|0);e=f-h|
0;for(f=0;f<e;)b("  at "+c.j[f]),f=1+f|0;0<h&&b("  ... "+h+" more")}else b("  \x3cno stack trace available\x3e")}else break}d.pe=function(a,b,c,e){this.Ls=a;this.rh=b;(this.rHa=e)&&this.cU();return this};function GBa(a){return!!(a&&a.$classData&&a.$classData.v.Fe)}d.$classData=q({Fe:0},!1,"java.lang.Throwable",{Fe:1,f:1,n:1});function ru(){this.EBa=this.Gda=null;this.XDa=this.YDa=0;this.rC=this.iH=this.j2=null;this.F_=!1;this.SN=0;this.VW=null}ru.prototype=new r;ru.prototype.constructor=ru;
function su(a){if(a.F_){a.rC=a.j2.exec(a.iH);if(null!==a.rC){var b=a.rC[0];if(void 0===b)throw(new PH).e("undefined.get");if(null===b)throw(new Rg).a();""===b&&(b=a.j2,b.lastIndex=1+(b.lastIndex|0)|0)}else a.F_=!1;a.VW=w();return null!==a.rC}return!1}function uOa(a){if(null===a.rC)throw(new fk).e("No match available");return a.rC}function vOa(a,b){a=uOa(a)[b];return void 0===a?null:a}d=ru.prototype;
d.gM=function(a){if(0===a)a=this.Ts();else{var b;b=this.VW;b.b()?(tya(),b=this.Ts(),b=Bya(this.iH,b,this.Gda).Ei,this.VW=(new A).d(b)):b=b.c();a=b.Tn(a)}return a};function Rv(a){XBa(a);su(a);null===a.rC||0===a.Ts()&&a.Ww()===(a.iH.length|0)||XBa(a);return null!==a.rC}function wOa(a){return-1+(uOa(a).length|0)|0}function Wda(a,b){xOa(b,a.iH.substring(a.SN));a.SN=a.iH.length|0}d.Ww=function(){var a=this.Ts(),b=yOa(this);return a+(b.length|0)|0};
function qu(a,b,c,e){a.Gda=b;a.EBa=c;a.YDa=0;a.XDa=e;b=a.Gda;c=new ba.RegExp(b.mH);b=c!==b.mH?c:new ba.RegExp(b.mH.source,Cya(b));a.j2=b;a.iH=ja(za(a.EBa,a.YDa,a.XDa));a.rC=null;a.F_=!0;a.SN=0;a.VW=w();return a}
function Gja(a,b,c){var e=a.iH,f=a.SN,g=a.Ts();xOa(b,e.substring(f,g));e=c.length|0;for(f=0;f<e;)switch(g=65535&(c.charCodeAt(f)|0),g){case 36:for(g=f=1+f|0;;){if(f<e)var h=65535&(c.charCodeAt(f)|0),h=48<=h&&57>=h;else h=!1;if(h)f=1+f|0;else break}h=pC();g=c.substring(g,f);g=qC(h,g,10);xOa(b,vOa(a,g));break;case 92:f=1+f|0;f<e&&(g=65535&(c.charCodeAt(f)|0),dE(b.r,g));f=1+f|0;break;default:dE(b.r,g),f=1+f|0}a.SN=a.Ww()}
function nka(a,b){XBa(a);if(su(a)){var c=(new ik).a();Gja(a,c,b);Wda(a,c);return c.u()}return a.iH}function yOa(a){a=uOa(a)[0];if(void 0===a)throw(new PH).e("undefined.get");return a}d.Ts=function(){return uOa(this).index|0};d.QT=function(a){var b=this.gM(a);if(-1===b)return-1;a=vOa(this,a);return b+(a.length|0)|0};function XBa(a){a.j2.lastIndex=0;a.rC=null;a.F_=!0;a.SN=0;a.VW=w()}d.$classData=q({U7a:0},!1,"java.util.regex.Matcher",{U7a:1,f:1,Efb:1});function WR(){}WR.prototype=new r;
WR.prototype.constructor=WR;WR.prototype.gs=function(){xq();yq();return(new zq).a()};WR.prototype.Vn=function(){xq();yq();return(new zq).a()};WR.prototype.$classData=q({c8a:0},!1,"scala.LowPriorityImplicits$$anon$4",{c8a:1,f:1,YL:1});function XR(){}XR.prototype=new r;XR.prototype.constructor=XR;XR.prototype.a=function(){return this};XR.prototype.gs=function(){return(new lk).a()};XR.prototype.Vn=function(){return(new lk).a()};XR.prototype.$classData=q({p8a:0},!1,"scala.Predef$$anon$3",{p8a:1,f:1,YL:1});
function YR(){this.MI=null}YR.prototype=new r;YR.prototype.constructor=YR;d=YR.prototype;d.XC=function(a,b){return(new ZR).NG(this.MI,a,b)};d.u=function(){var a=this.MI,b=(new lk).a(),c;c=!0;nk(b,"");for(var e=0,f=a.j.length;e<f;){var g=Dc(a.j[e]);c?(ok(b,g),c=!1):(nk(b,""),ok(b,g));e=1+e|0}nk(b,"");return b.Be.Ue};d.dx=function(a){this.MI=a;return this};d.Ka=function(){return this.MI.j.length};d.Ow=function(a){return this.MI.j[a]};
d.$classData=q({q8a:0},!1,"scala.Predef$ArrayCharSequence",{q8a:1,f:1,kH:1});function zOa(a,b){switch(b){case 0:return a.Co;case 1:return a.yg;case 2:return a.th;case 3:return a.HM;default:throw(new X).e(""+b);}}function $R(){}$R.prototype=new r;$R.prototype.constructor=$R;$R.prototype.a=function(){return this};$R.prototype.$classData=q({z8a:0},!1,"scala.concurrent.BlockContext$DefaultBlockContext$",{z8a:1,f:1,oEa:1});var AOa=void 0;function XH(){}XH.prototype=new r;XH.prototype.constructor=XH;
XH.prototype.a=function(){return this};XH.prototype.u=function(){return"object AnyRef"};XH.prototype.$classData=q({d9a:0},!1,"scala.package$$anon$1",{d9a:1,f:1,Rfb:1});function aS(){this.gfa=this.yca=this.Bx=0}aS.prototype=new kAa;aS.prototype.constructor=aS;aS.prototype.a=function(){BOa=this;this.Bx=ra(ta(),"Seq");this.yca=ra(ta(),"Map");this.gfa=ra(ta(),"Set");return this};
function bS(a,b){if(COa(b)){for(var c=0,e=a.Bx,f=b;!f.b();)b=f.fa(),f=f.sa(),e=a.Ga(e,yI(zI(),b)),c=1+c|0;a=a.Wd(e,c)}else a=mAa(a,b,a.Bx);return a}aS.prototype.$classData=q({H9a:0},!1,"scala.util.hashing.MurmurHash3$",{H9a:1,Yfb:1,f:1});var BOa=void 0;function xI(){BOa||(BOa=(new aS).a());return BOa}function DOa(){this.xV=this.Yy=this.Oza=this.qGa=null;this.ma=this.Lo=this.Dd=0}DOa.prototype=new r;DOa.prototype.constructor=DOa;function EOa(a){FOa(a);GOa(a);return a}
function HOa(a,b){var c=new DOa;c.Yy=a;c.xV=b;c.Dd=b.Ts();c.Lo=b.Ww();return c}d=DOa.prototype;d.gM=function(a){return FOa(this).j[a]};d.u=function(){return 0<=this.Ts()?ja(za(this.pfa(),this.Ts(),this.Ww())):null};d.Ww=function(){return this.Lo};
function GOa(a){if(0===(2&a.ma)<<24>>24&&0===(2&a.ma)<<24>>24){var b=wOa(a.xV),c=0>b;if(c)var e=0;else var e=b>>31,f=1+b|0,e=0===f?1+e|0:e,e=(0===e?-1<(-2147483648^f):0<e)?-1:f;xq();uv();xq();yq();f=(new zq).a();0>e&&Gxa(KG(),0,b,1,!0);if(!c)for(c=0;;){e=a.xV.QT(c);LG(f,e);if(c===b)break;c=1+c|0}b=Bq(f);c=b.Ka();c=ia(La(Ra),[c]);JF(b,c,0);a.Oza=c;a.ma=(2|a.ma)<<24>>24}return a.Oza}d.pfa=function(){return this.Yy};d.Ts=function(){return this.Dd};d.QT=function(a){return GOa(this).j[a]};
function FOa(a){if(0===(1&a.ma)<<24>>24&&0===(1&a.ma)<<24>>24){var b=wOa(a.xV),c=0>b;if(c)var e=0;else var e=b>>31,f=1+b|0,e=0===f?1+e|0:e,e=(0===e?-1<(-2147483648^f):0<e)?-1:f;xq();uv();xq();yq();f=(new zq).a();0>e&&Gxa(KG(),0,b,1,!0);if(!c)for(c=0;;){e=a.xV.gM(c);LG(f,e);if(c===b)break;c=1+c|0}b=Bq(f);c=b.Ka();c=ia(La(Ra),[c]);JF(b,c,0);a.qGa=c;a.ma=(1|a.ma)<<24>>24}return a.qGa}d.$classData=q({M9a:0},!1,"scala.util.matching.Regex$Match",{M9a:1,f:1,N9a:1});
function IOa(a,b){for(var c=!1;!c&&a.Qa();)c=!!b.R(a.Sa());return c}function cS(a,b){for(var c=!0;c&&a.Qa();)c=!!b.R(a.Sa());return c}function dS(a){return(a.Qa()?"non-empty":"empty")+" iterator"}function JOa(a,b,c){b=0<b?b:0;c=0>c?-1:c<=b?0:c-b|0;if(0===c)a=Uz().Td;else{var e=new eS;e.pQ=a;e.NC=c;e.aK=b;a=e}return a}function fS(a,b){for(;a.Qa();)b.R(a.Sa())}function KOa(a,b){var c=new LOa;c.ac=a;c.qn=null;c.nV=null;c.wG=!1;return c.KI(b)}
function MOa(a,b){for(;a.Qa();){var c=a.Sa();if(b.R(c))return(new A).d(c)}return w()}function Tu(a){if(a.Qa()){var b=a.Sa();return NI(new OI,b,jb(function(a){return function(){return a.kd()}}(a)))}Js();return gS()}function NOa(a,b,c,e){var f=c,g=DI(W(),b)-c|0;for(c=c+(e<g?e:g)|0;f<c&&a.Qa();)pCa(W(),b,f,a.Sa()),f=1+f|0}function OOa(a,b){for(var c=0;c<b&&a.Qa();)a.Sa(),c=1+c|0;return a}function tQ(){}tQ.prototype=new r;tQ.prototype.constructor=tQ;tQ.prototype.a=function(){return this};
tQ.prototype.gs=function(){return(new hS).a()};tQ.prototype.Vn=function(){return(new hS).a()};tQ.prototype.$classData=q({u$a:0},!1,"scala.collection.SeqView$$anon$1",{u$a:1,f:1,YL:1});function JC(){this.l=this.Fi=null}JC.prototype=new r;JC.prototype.constructor=JC;JC.prototype.X=function(a){this.l.X(t(new u,function(a,c){return function(e){return a.Fi.R(e)?c.R(e):void 0}}(this,a)))};
JC.prototype.ka=function(a,b){b=b.Vn(this.l.Ji());this.l.X(t(new u,function(a,b,f){return function(g){return a.Fi.R(g)?f.Ic(b.R(g)):void 0}}(this,a,b)));return b.lc()};function IC(a,b,c){a.Fi=c;if(null===b)throw Lb(Mb(),null);a.l=b;return a}JC.prototype.$classData=q({O$a:0},!1,"scala.collection.TraversableLike$WithFilter",{O$a:1,f:1,uc:1});function iS(){this.l=null}iS.prototype=new r;iS.prototype.constructor=iS;iS.prototype.gs=function(){return this.l.Ed()};iS.prototype.Vn=function(){return this.l.Ed()};
function vA(a){var b=new iS;if(null===a)throw Lb(Mb(),null);b.l=a;return b}iS.prototype.$classData=q({Z$a:0},!1,"scala.collection.generic.GenMapFactory$MapCanBuildFrom",{Z$a:1,f:1,YL:1});function POa(){}POa.prototype=new xAa;POa.prototype.constructor=POa;function QOa(){}QOa.prototype=POa.prototype;function jS(){this.l=null}jS.prototype=new r;jS.prototype.constructor=jS;jS.prototype.gs=function(){return this.l.Ed()};
jS.prototype.Vn=function(a){return a&&a.$classData&&a.$classData.v.Pr?a.Lh().Ed():this.l.Ed()};function Qf(a){var b=new jS;if(null===a)throw Lb(Mb(),null);b.l=a;return b}jS.prototype.$classData=q({$$a:0},!1,"scala.collection.generic.GenSetFactory$$anon$1",{$$a:1,f:1,YL:1});function kS(){this.s=null}kS.prototype=new xAa;kS.prototype.constructor=kS;function lS(){}lS.prototype=kS.prototype;kS.prototype.a=function(){this.s=(new mS).WU(this);return this};function nS(){this.l=null}nS.prototype=new r;
nS.prototype.constructor=nS;function ROa(){}ROa.prototype=nS.prototype;nS.prototype.gs=function(){return this.l.Ed()};nS.prototype.Vn=function(a){return a.Lh().Ed()};nS.prototype.WU=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};function SOa(){}SOa.prototype=new vAa;SOa.prototype.constructor=SOa;function TOa(){}TOa.prototype=SOa.prototype;function oS(){this.Cca=null}oS.prototype=new JAa;oS.prototype.constructor=oS;
oS.prototype.Q0=function(a){this.Cca=a;a=new pS;if(null===this)throw Lb(Mb(),null);a.Pa=this;return this};oS.prototype.s$=function(a,b){return this.Cca.zf(a,b)};oS.prototype.$classData=q({gab:0},!1,"scala.collection.immutable.HashMap$$anon$2",{gab:1,lab:1,f:1});function pS(){this.Pa=null}pS.prototype=new JAa;pS.prototype.constructor=pS;pS.prototype.s$=function(a,b){return this.Pa.Cca.zf(b,a)};pS.prototype.$classData=q({hab:0},!1,"scala.collection.immutable.HashMap$$anon$2$$anon$3",{hab:1,lab:1,f:1});
function UOa(){}UOa.prototype=new r;UOa.prototype.constructor=UOa;d=UOa.prototype;d.a=function(){return this};d.R=function(){return this};d.Tn=function(){return this|0};d.u=function(){return"\x3cfunction1\x3e"};d.rp=function(){return!!this};d.$classData=q({sab:0},!1,"scala.collection.immutable.List$$anon$1",{sab:1,f:1,za:1});function qS(){this.Ls=this.Fi=this.Aaa=null;this.ma=!1}qS.prototype=new r;qS.prototype.constructor=qS;qS.prototype.X=function(a){(this.ma?this.Aaa:VOa(this)).X(a)};
function WOa(a,b,c){a.Fi=c;a.Ls=gc(b);return a}function VOa(a){if(!a.ma){var b=rS(a.Ls,a.Fi,!1);a.Ls=null;a.Aaa=b;a.ma=!0}return a.Aaa}qS.prototype.$classData=q({abb:0},!1,"scala.collection.immutable.Stream$StreamWithFilter",{abb:1,f:1,uc:1});function ANa(a,b){b=b.Ol();switch(b){case -1:break;default:a.Gh(b)}}function XOa(a,b,c){b=b.Ol();switch(b){case -1:break;default:a.Gh(b+c|0)}}function sS(a,b,c){c=c.Ol();switch(c){case -1:break;default:a.Gh(b<c?b:c)}}function tS(){JD.call(this)}
tS.prototype=new bua;tS.prototype.constructor=tS;tS.prototype.a=function(){JD.prototype.Eba.call(this,AJ(),1,1);return this};
function dua(a,b){if(null===a.Ni||a.bt||null===b.Ni||b.jH())for(;;){var c=a.hd;if(a.hd===a.$e)return KD().hu;var e=YOa(a);if(0<=e){if(b.hd===b.$e)return b=KD().ot,CD.prototype.gg.call(a,c),b;b.HP(65535&e)}else{var f=AJ().Mea.j[127&e];if(-1===f)return b=KD().ts,CD.prototype.gg.call(a,c),b;if(a.hd!==a.$e){var g=YOa(a);if(128!==(192&g))var e=KD().ts,h=g=0;else 2===f?(e=(31&e)<<6|63&g,128>e?(e=KD().ts,g=0):(g=65535&e,e=null),h=0):a.hd!==a.$e?(h=YOa(a),128!==(192&h)?(e=KD().fV,h=g=0):3===f?(e=(15&e)<<
12|(63&g)<<6|63&h,2048>e?(e=KD().ts,g=0):55296<=e&&57343>=e?(e=KD().YK,g=0):(g=65535&e,e=null),h=0):a.hd!==a.$e?(f=YOa(a),128!==(192&f)?(e=KD().YK,h=g=0):(e=(7&e)<<18|(63&g)<<12|(63&h)<<6|63&f,65536>e||1114111<e?(e=KD().ts,h=g=0):(e=-65536+e|0,g=65535&(55296|e>>10),h=65535&(56320|1023&e),e=null))):(e=KD().hu,h=g=0)):(e=KD().hu,h=g=0)}else e=KD().hu,h=g=0;if(null!==e)return b=e,CD.prototype.gg.call(a,c),b;if(0===h){if(b.hd===b.$e)return b=KD().ot,CD.prototype.gg.call(a,c),b;b.HP(g)}else{if(2>(b.$e-
b.hd|0))return b=KD().ot,CD.prototype.gg.call(a,c),b;b.HP(g);b.HP(h)}}}else return ZOa(a,b)}
function ZOa(a,b){var c=a.Ni;if(null===c)throw(new Gt).a();if(a.bt)throw(new ND).a();var e=a.wk;if(-1===e)throw(new Gt).a();if(a.bt)throw(new ND).a();var f=a.hd+e|0,g=a.$e+e|0,h=b.Ni;if(null===h)throw(new Gt).a();if(b.jH())throw(new ND).a();var k=b.wk;if(-1===k)throw(new Gt).a();if(b.jH())throw(new ND).a();var l=b.$e+k|0,p=b.hd+k|0;for(;;){if(f===g)return c=KD().hu,CD.prototype.gg.call(a,f-e|0),CD.prototype.gg.call(b,p-k|0),c;var y=c.j[f];if(0<=y){if(p===l)return c=KD().ot,CD.prototype.gg.call(a,
f-e|0),CD.prototype.gg.call(b,p-k|0),c;h.j[p]=65535&y;p=1+p|0;f=1+f|0}else{var I=AJ().Mea.j[127&y];if(-1===I)return c=KD().ts,CD.prototype.gg.call(a,f-e|0),CD.prototype.gg.call(b,p-k|0),c;if((1+f|0)>=g)var y=KD().hu,E=0,V=0;else if(E=c.j[1+f|0],128!==(192&E))y=KD().ts,V=E=0;else if(2===I)y=(31&y)<<6|63&E,128>y?(y=KD().ts,E=0):(E=65535&y,y=null),V=0;else if((2+f|0)>=g)y=KD().hu,V=E=0;else if(V=c.j[2+f|0],128!==(192&V))y=KD().fV,V=E=0;else if(3===I)y=(15&y)<<12|(63&E)<<6|63&V,2048>y?(y=KD().ts,E=0):
55296<=y&&57343>=y?(y=KD().YK,E=0):(E=65535&y,y=null),V=0;else if((3+f|0)>=g)y=KD().hu,V=E=0;else{var da=c.j[3+f|0];128!==(192&da)?(y=KD().YK,V=E=0):(y=(7&y)<<18|(63&E)<<12|(63&V)<<6|63&da,65536>y||1114111<y?(y=KD().ts,V=E=0):(y=-65536+y|0,E=65535&(55296|y>>10),V=65535&(56320|1023&y),y=null))}if(null!==y)return c=y,CD.prototype.gg.call(a,f-e|0),CD.prototype.gg.call(b,p-k|0),c;if(0===V){if(p===l)return c=KD().ot,CD.prototype.gg.call(a,f-e|0),CD.prototype.gg.call(b,p-k|0),c;h.j[p]=E;p=1+p|0}else{if((2+
p|0)>l)return c=KD().ot,CD.prototype.gg.call(a,f-e|0),CD.prototype.gg.call(b,p-k|0),c;h.j[p]=E;h.j[1+p|0]=V;p=2+p|0}f=f+I|0}}}tS.prototype.$classData=q({Xcb:0},!1,"scala.scalajs.niocharset.UTF_8$Decoder",{Xcb:1,jfb:1,f:1});function MQ(){MD.call(this)}MQ.prototype=new hua;MQ.prototype.constructor=MQ;MQ.prototype.a=function(){MD.prototype.Eba.call(this,AJ(),1.100000023841858,4);return this};
function $Ma(a,b){if(null===a.Ni||a.jH()||null===b.Ni||b.bt)for(;;){if(a.hd===a.$e)return KD().hu;var c=a.JO();if(128>c){if(b.hd===b.$e)return b=KD().ot,CD.prototype.gg.call(a,-1+a.hd|0),b;uS(b,c<<24>>24)}else if(2048>c){if(2>(b.$e-b.hd|0))return b=KD().ot,CD.prototype.gg.call(a,-1+a.hd|0),b;uS(b,(192|c>>6)<<24>>24);uS(b,(128|63&c)<<24>>24)}else if(AJ(),55296!==(63488&c)){if(3>(b.$e-b.hd|0))return b=KD().ot,CD.prototype.gg.call(a,-1+a.hd|0),b;uS(b,(224|c>>12)<<24>>24);uS(b,(128|63&c>>6)<<24>>24);
uS(b,(128|63&c)<<24>>24)}else if(55296===(64512&c)){if(a.hd===a.$e)return b=KD().hu,CD.prototype.gg.call(a,-1+a.hd|0),b;var e=a.JO();if(56320!==(64512&e))return b=KD().ts,CD.prototype.gg.call(a,-2+a.hd|0),b;if(4>(b.$e-b.hd|0))return b=KD().ot,CD.prototype.gg.call(a,-2+a.hd|0),b;c=65536+(((1023&c)<<10)+(1023&e)|0)|0;uS(b,(240|c>>18)<<24>>24);uS(b,(128|63&c>>12)<<24>>24);uS(b,(128|63&c>>6)<<24>>24);uS(b,(128|63&c)<<24>>24)}else return b=KD().ts,CD.prototype.gg.call(a,-1+a.hd|0),b}else return $Oa(a,
b)}
function $Oa(a,b){var c=a.Ni;if(null===c)throw(new Gt).a();if(a.jH())throw(new ND).a();var e=a.wk;if(-1===e)throw(new Gt).a();if(a.jH())throw(new ND).a();var f=a.hd+e|0,g=a.$e+e|0,h=b.Ni;if(null===h)throw(new Gt).a();if(b.bt)throw(new ND).a();var k=b.wk;if(-1===k)throw(new Gt).a();if(b.bt)throw(new ND).a();var l=b.$e+k|0,p=b.hd+k|0;for(;;){if(f===g)return c=KD().hu,CD.prototype.gg.call(a,f-e|0),CD.prototype.gg.call(b,p-k|0),c;var y=c.j[f];if(128>y){if(p===l)return c=KD().ot,CD.prototype.gg.call(a,f-
e|0),CD.prototype.gg.call(b,p-k|0),c;h.j[p]=y<<24>>24;p=1+p|0;f=1+f|0}else if(2048>y){if((2+p|0)>l)return c=KD().ot,CD.prototype.gg.call(a,f-e|0),CD.prototype.gg.call(b,p-k|0),c;h.j[p]=(192|y>>6)<<24>>24;h.j[1+p|0]=(128|63&y)<<24>>24;p=2+p|0;f=1+f|0}else if(AJ(),55296!==(63488&y)){if((3+p|0)>l)return c=KD().ot,CD.prototype.gg.call(a,f-e|0),CD.prototype.gg.call(b,p-k|0),c;h.j[p]=(224|y>>12)<<24>>24;h.j[1+p|0]=(128|63&y>>6)<<24>>24;h.j[2+p|0]=(128|63&y)<<24>>24;p=3+p|0;f=1+f|0}else if(55296===(64512&
y)){if((1+f|0)===g)return c=KD().hu,CD.prototype.gg.call(a,f-e|0),CD.prototype.gg.call(b,p-k|0),c;var I=c.j[1+f|0];if(56320!==(64512&I))return c=KD().ts,CD.prototype.gg.call(a,f-e|0),CD.prototype.gg.call(b,p-k|0),c;if((4+p|0)>l)return c=KD().ot,CD.prototype.gg.call(a,f-e|0),CD.prototype.gg.call(b,p-k|0),c;y=65536+(((1023&y)<<10)+(1023&I)|0)|0;h.j[p]=(240|y>>18)<<24>>24;h.j[1+p|0]=(128|63&y>>12)<<24>>24;h.j[2+p|0]=(128|63&y>>6)<<24>>24;h.j[3+p|0]=(128|63&y)<<24>>24;p=4+p|0;f=2+f|0}else return c=KD().ts,
CD.prototype.gg.call(a,f-e|0),CD.prototype.gg.call(b,p-k|0),c}}MQ.prototype.$classData=q({Ycb:0},!1,"scala.scalajs.niocharset.UTF_8$Encoder",{Ycb:1,kfb:1,f:1});function aPa(){}aPa.prototype=new r;aPa.prototype.constructor=aPa;function bPa(){}bPa.prototype=aPa.prototype;aPa.prototype.u=function(){return"\x3cfunction0\x3e"};function vS(){}vS.prototype=new r;vS.prototype.constructor=vS;function wS(){}wS.prototype=vS.prototype;vS.prototype.Tn=function(a){return this.R(a)|0};vS.prototype.u=function(){return"\x3cfunction1\x3e"};
vS.prototype.rp=function(a){return!!this.R(a)};function cPa(){}cPa.prototype=new r;cPa.prototype.constructor=cPa;function dPa(){}dPa.prototype=cPa.prototype;cPa.prototype.u=function(){return"\x3cfunction2\x3e"};function ePa(){}ePa.prototype=new r;ePa.prototype.constructor=ePa;function fPa(){}fPa.prototype=ePa.prototype;ePa.prototype.u=function(){return"\x3cfunction3\x3e"};function gPa(){}gPa.prototype=new r;gPa.prototype.constructor=gPa;function hPa(){}hPa.prototype=gPa.prototype;
gPa.prototype.u=function(){return"\x3cfunction4\x3e"};function iPa(){}iPa.prototype=new r;iPa.prototype.constructor=iPa;function jPa(){}jPa.prototype=iPa.prototype;iPa.prototype.u=function(){return"\x3cfunction5\x3e"};function ZR(){this.AQ=null;this.Lo=this.Dd=0}ZR.prototype=new r;ZR.prototype.constructor=ZR;d=ZR.prototype;
d.XC=function(a,b){if(0>a)throw(new xS).$d(a);if(b>this.Ka())throw(new xS).$d(b);if(b<=a)return(new ZR).NG(this.AQ,0,0);var c=this.Dd+a|0;return(new ZR).NG(this.AQ,c,c+(b-a|0)|0)};d.u=function(){var a=this.Dd,a=0<a?a:0,b=this.AQ.j.length,c=a+this.Ka()|0,b=b<c?b:c;return a>=b?"":XD(ta(),this.AQ,a,b-a|0)};d.Ka=function(){var a=this.Lo-this.Dd|0;return 0>a?0:a};d.NG=function(a,b,c){this.AQ=a;this.Dd=b;this.Lo=c;return this};
d.Ow=function(a){if(0<=a&&a<this.Ka())return this.AQ.j[this.Dd+a|0];throw(new xS).$d(a);};d.$classData=q({ldb:0},!1,"scala.runtime.ArrayCharSequence",{ldb:1,f:1,kH:1});function mk(){this.ta=!1}mk.prototype=new r;mk.prototype.constructor=mk;mk.prototype.u=function(){return""+this.ta};mk.prototype.rs=function(a){this.ta=a;return this};mk.prototype.$classData=q({mdb:0},!1,"scala.runtime.BooleanRef",{mdb:1,f:1,n:1});
function oCa(a){return!!(a&&a.$classData&&1===a.$classData.WN&&a.$classData.VN.v.mGa)}var na=q({mGa:0},!1,"scala.runtime.BoxedUnit",{mGa:1,f:1,n:1},void 0,void 0,function(a){return void 0===a});function iA(){this.ta=0}iA.prototype=new r;iA.prototype.constructor=iA;iA.prototype.u=function(){return""+this.ta};iA.prototype.$d=function(a){this.ta=a;return this};iA.prototype.$classData=q({odb:0},!1,"scala.runtime.IntRef",{odb:1,f:1,n:1});function dq(){this.ta=OG()}dq.prototype=new r;
dq.prototype.constructor=dq;dq.prototype.mU=function(a){this.ta=a;return this};dq.prototype.u=function(){var a=this.ta,b=a.Na,a=a.$a;return QBa(Fa(),b,a)};dq.prototype.$classData=q({pdb:0},!1,"scala.runtime.LongRef",{pdb:1,f:1,n:1});function Qd(){this.ta=null}Qd.prototype=new r;Qd.prototype.constructor=Qd;Qd.prototype.u=function(){return""+this.ta};Qd.prototype.d=function(a){this.ta=a;return this};Qd.prototype.$classData=q({udb:0},!1,"scala.runtime.ObjectRef",{udb:1,f:1,n:1});function yS(){}
yS.prototype=new r;yS.prototype.constructor=yS;yS.prototype.a=function(){return this};function EB(a,b){return yt().ba===b?yk():vt().ba===b?Bk():wt().ba===b?Ck():xt().ba===b?Dk():mc().ba===b?Ek():oc().ba===b?Gk():nc().ba===b?Fk():(new zS).e(b)}yS.prototype.$classData=q({HHa:0},!1,"amf.ProfileName$",{HHa:1,f:1,q:1,n:1});var kPa=void 0;function FB(){kPa||(kPa=(new yS).a());return kPa}function eK(){hK.call(this)}eK.prototype=new JCa;eK.prototype.constructor=eK;
eK.prototype.hC=function(a){hK.prototype.hC.call(this,a);return this};
eK.prototype.VL=function(a){var b=(new A).d("AMF Graph"),c=(new A).d("application/ld+json");a=Bl(new xl,a.Gk,a.Ya,a.Vi,a.Rj,a.Hk,b,c,a.Vl,a.ql,a.Sl,a.pl,a.Zk,a.Tl,a.Pj,a.al,a.Tk,a.rk,a.uj,a.$k);b=Xaa(this).ei(t(new u,function(a,b){return function(){return Taa(a,b).ei(t(new u,function(a,b){return function(){return Saa(a,b).ei(t(new u,function(a,b){return function(c){return KCa(a,b,c).ei(t(new u,function(a,b,c){return function(){return Laa(a,b,c).ei(t(new u,function(a,b){return function(c){return Vaa(a,
b,c).Lf(t(new u,function(){return function(){}}(a)),a.Tg)}}(a,b)),a.Tg)}}(a,b,c)),a.Tg)}}(a,b)),a.Tg)}}(a,b)),a.Tg)}}(this,a)),this.Tg);b.KA(t(new u,function(a,b){return function(a){a:{if(nf(a)){var c=a.ms;if(null!==c){b.uj.gW(c);a=gq().OR;cq();QG(TG().TJ,a);break a}}if(!Ge(a))throw(new v).d(a);}}}(this,a)),this.Tg);return b};eK.prototype.$classData=q({UHa:0},!1,"amf.client.commands.ParseCommand",{UHa:1,U6:1,f:1,T6:1});function gK(){hK.call(this)}gK.prototype=new JCa;gK.prototype.constructor=gK;
gK.prototype.hC=function(a){hK.prototype.hC.call(this,a);return this};
gK.prototype.VL=function(a){var b=(new A).d("AML 1.0"),c=(new A).d("application/yaml");a=Bl(new xl,a.Gk,a.Ya,a.Vi,a.Rj,a.Hk,b,c,a.Vl,a.ql,a.Sl,a.pl,a.Zk,a.Tl,a.Pj,!0,a.Tk,a.rk,a.uj,a.$k);b=Xaa(this).ei(t(new u,function(a,b){return function(){return Taa(a,b).ei(t(new u,function(a,b){return function(){return Saa(a,b).ei(t(new u,function(a,b){return function(c){return KCa(a,b,c).ei(t(new u,function(a,b,c){return function(){return lPa(a,b,c).ei(t(new u,function(a,b){return function(c){return Laa(a,b,
c).ei(t(new u,function(a,b){return function(c){return Vaa(a,b,c).Lf(t(new u,function(){return function(){}}(a)),a.Tg)}}(a,b)),a.Tg)}}(a,b)),a.Tg)}}(a,b,c)),a.Tg)}}(a,b)),a.Tg)}}(a,b)),a.Tg)}}(this,a)),this.Tg);b.KA(t(new u,function(a,b){return function(a){a:{if(nf(a)){var c=a.ms;if(null!==c){b.uj.gW(c);a=gq().OR;cq();QG(TG().TJ,a);break a}}if(!Ge(a))throw(new v).d(a);}}}(this,a)),this.Tg);return b};
function lPa(a,b,c){return hb(ib(),jb(function(a,b,c){return function(){if(gHa(b)){var h=c.Zk;if(x(h)){var h=a.na.SL(h.i),k=cHa().Jc;return Eb(b,k,h)}}return b}}(a,c,b)),a.Tg)}gK.prototype.$classData=q({VHa:0},!1,"amf.client.commands.PatchCommand",{VHa:1,U6:1,f:1,T6:1});function Cea(){this.lT=this.iv=this.NH=null}Cea.prototype=new r;Cea.prototype.constructor=Cea;d=Cea.prototype;
d.tQ=function(a,b,c){var e=this.lT;S();var f=S().wj();a=e.validator(AS(f,a),(new AK).YG(b),c);b=new nK;b.q3=a;S();c=a.shape;S().wj();b.ra=c.qg();b.Vm=a.defaultSeverity;b.Nq=a.env.p;return b};d.D$=function(a,b){return!!this.lT.canValidate(AS(S().wj(),a),(new AK).YG(b))};d.wh=function(){return this.iv};d.Sp=function(){return ml(nl(new ol,S(),this.lT.dependencies(),OCa()))};d.cn=function(){return qm(rm(new pm,S(),this.lT.init(),OCa()))};
d.$classData=q({bIa:0},!1,"amf.client.convert.ClientPayloadPluginConverter$$anon$2",{bIa:1,f:1,u7:1,wq:1});function BS(a,b){var c=Ab();a=a.p;b=Gc(Kz(C(),b));b=uba(a,b);a=Ab().et();return Bb(c,b,a).sb()}function CS(a,b){var c=a.p,e=Ap().nc;Eb(c,e,b);return a}function DS(a){var b=Ab();a=a.p.Pe();var c=Mo();return Il(b,a,c).sb()}function ES(a,b){var c=a.p,e=Ap().Ud;Eb(c,e,b);return a}function FS(a,b){var c=a.p,e=Ab(),f=Mo();b=ml(nl(new ol,e,b,f));e=Nl().qc;Vg(c,e,b);return a}
function GS(a){Ab();a=B(a.p.ca(),Ap().Ud);Ab().wb();return Gb(a)}function HS(a){var b=Ab();a=Pga(a.p);var c;c=Ab();null===Ab().EN&&null===Ab().EN&&(Ab().EN=(new IS).vp(c));c=Ab().EN;return Bb(b,a,c).sb()}function JS(a,b){yga(a.p,b);return a}function KS(a){var b=Ab();a=a.p.ue;var c=Ab().oh();return Bb(b,a,c).sb()}function LS(a){a=jd(a.p);return a.b()?"":a.c()}function MS(a){Ab();a=B(a.p.ca(),Ap().jg);Ab().wb();return Gb(a)}
function NS(a,b){var c=Ab();a=a.p;b=Gc(Wu(C(),b));b=mPa(a,b);a=Ab().et();return Il(c,b,a).sb()}function OS(a){var b=Ab();a=B(a.Jd().ca(),Lc().wi());var c=Ab().et();return Il(b,a,c).sb()}function PS(a){var b=Ab();a=B(a.Jd().ca(),Lc().Pm());var c=nPa();return Il(b,a,c).sb()}function QS(a){a=Zb(a.Jd().ha(),n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc));return a.b()?null:a.c()}function RS(a,b){a.Jd().Uc(b);return a}
function SS(a){Ab();a=a.Jd().bf();Ab();null===Ab().SR&&null===Ab().SR&&(Ab().SR=new TS);Ab();return oPa(a)}function US(a,b){var c=a.Jd(),e=Ab(),f;f=Ab();null===Ab().mN&&null===Ab().mN&&(Ab().mN=(new VS).Raa(f));f=Ab().mN;b=ml(nl(new ol,e,b,f));e=Lc().wi();qf(c,e,b);return a}function WS(a,b){var c=a.Jd(),e=Ab(),f=nPa();b=ml(nl(new ol,e,b,f));e=Lc().Pm();qf(c,e,b);return a}function pPa(a){return!!(a&&a.$classData&&a.$classData.v.Re)}function XS(){}XS.prototype=new r;XS.prototype.constructor=XS;
XS.prototype.a=function(){return this};function Lga(a,b,c,e,f,g,h){return Sga(new Lp,b,Gia((new Cf).e(c)),e,f,g,h)}XS.prototype.$classData=q({jLa:0},!1,"amf.core.Root$",{jLa:1,f:1,q:1,n:1});var qPa=void 0;function Mga(){qPa||(qPa=(new XS).a());return qPa}function YS(){this.oZ=this.D9=this.vxa=this.NZ=this.X8=null}YS.prototype=new r;YS.prototype.constructor=YS;YS.prototype.a=function(){this.X8="parse";this.NZ="translate";this.vxa="repl";this.D9="validate";this.oZ="patch";return this};
YS.prototype.$classData=q({ILa:0},!1,"amf.core.client.ParserConfig$",{ILa:1,f:1,q:1,n:1});var rPa=void 0;function jK(){rPa||(rPa=(new YS).a());return rPa}function yl(){this.hh=null}yl.prototype=new Aha;yl.prototype.constructor=yl;yl.prototype.a=function(){Lea=this;this.hh=ju().na;return this};yl.prototype.IL=function(a){bq(cq().P1,a)};yl.prototype.gW=function(a){fK(cq().P1,a+"\n")};yl.prototype.$classData=q({MLa:0},!1,"amf.core.client.StdOutWriter$",{MLa:1,JLa:1,f:1,Fb:1});var Lea=void 0;
function ZS(){}ZS.prototype=new r;ZS.prototype.constructor=ZS;ZS.prototype.a=function(){return this};function Jy(a,b,c){a=Zb(c,n($S));return x(a)&&(a=a.i,null!==a&&(a=a.Qe,c=yt(),null!==a&&a===c||(sja(a)?sja(b):zja(a)&&zja(b))))?gC():Yra()}ZS.prototype.$classData=q({VLa:0},!1,"amf.core.emitter.SpecOrdering$",{VLa:1,f:1,q:1,n:1});var sPa=void 0;function Ky(){sPa||(sPa=(new ZS).a());return sPa}function aT(){this.P_=null;this.naa=this.sfa=0;this.da=null;this.Kr=0}aT.prototype=new eDa;
aT.prototype.constructor=aT;d=aT.prototype;d.Oba=function(a,b,c,e){this.P_=a;this.sfa=b;this.naa=c;this.da=e;this.Kr=b;return this};d.XC=function(a,b){if(!(a>=this.sfa&&b<=this.naa&&a<=b))throw(new rk).e("Invalid sub-sequence start: "+a+", end: "+b);return za(this.P_,a,b)};d.u=function(){return ja(this.P_)};d.Ka=function(){return this.naa-this.sfa|0};d.Ow=function(a){return ya(this.P_,a)};function tPa(a,b){var c=new aT;aT.prototype.Oba.call(c,b,0,xa(b),a);return c}
d.$classData=q({$La:0},!1,"amf.core.lexer.CharSequenceStream",{$La:1,Eeb:1,f:1,kH:1});
function bT(a){var b=Pb(),c=C().Zd;a.zn(Rb(new Sb,b,D(new F,c,"location"),Tb(new Ub,Vb().dg,"location","Location of the metadata document that generated this base unit",G())));b=(new Ki).Ld(Ap());c=C().Zd;a.Bn(Rb(new Sb,b,D(new F,c,"references"),Tb(new Ub,Vb().dg,"references","references across base units",G())));var b=Pb(),c=C().Zd,c=D(new F,c,"usage"),e=Vb().dg,f=z(),g=C().dc;a.Cn(Rb(new Sb,b,c,Tb(new Ub,e,"usage","Human readable description of the unit",H(f,(new J).aa([Gc(D(new F,g,"description"))])))));
b=Xc();c=C().Kc;a.yn(Rb(new Sb,b,D(new F,c,"describedBy"),Tb(new Ub,Vb().dg,"described by","Link to the AML dialect describing a particular subgraph of information",G())));b=Pb();c=C().Zd;a.An(Rb(new Sb,b,D(new F,c,"version"),Tb(new Ub,Vb().dg,"version","Version of the current model",G())))}function AEa(a){return!!(a&&a.$classData&&a.$classData.v.tn)}function uPa(){this.Aa=this.ja=this.g=this.rf=this.jr=null}uPa.prototype=new r;uPa.prototype.constructor=uPa;d=uPa.prototype;
d.a=function(){vPa=this;Iq(this);var a=Pb(),b=C().HB;this.jr=Rb(new Sb,a,D(new F,b,"element"),Tb(new Ub,Vb().dg,"element","Label indicating the type of source map information",G()));a=Pb();b=C().HB;this.rf=Rb(new Sb,a,D(new F,b,"value"),Tb(new Ub,Vb().dg,"value","Value for the source map.",G()));this.g=G();Di();a=C().HB;a=(new J).aa([D(new F,a,"SourceMap")]);b=Di().s;this.ja=Ei(a,b);this.Aa=Tb(new Ub,Vb().dg,"Source Map","SourceMaps include tags with syntax specific information obtained when parsing a particular specification syntax like RAML or OpenAPI.\nIt can be used to re-generate the document from the RDF model with a similar syntax",
G());return this};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.ec=function(){return this.ja};d.$classData=q({uMa:0},!1,"amf.core.metamodel.document.SourceMapModel$",{uMa:1,f:1,Oc:1,ic:1});var vPa=void 0;function Mc(){vPa||(vPa=(new uPa).a());return vPa}
function wPa(){var a=(new Ki).Ld(Lc()),b=C().Zd;return Rb(new Sb,a,D(new F,b,"extends"),Tb(new Ub,Vb().dg,"extends","Entity that is going to be extended overlaying or adding additional information\nThe type of the relationship provide the semantics about thow the referenced and referencer elements must be combined when generating the domain model from the document model.",G()))}
function xPa(){var a=(new Ki).Ld(bf()),b=C().Zd;return Rb(new Sb,a,D(new F,b,"customDomainProperties"),Tb(new Ub,Vb().dg,"custom domain properties","Extensions provided for a particular domain element.",G()))}function cT(a){var b=Mc(),c=C().HB;a.Ce(Rb(new Sb,b,D(new F,c,"sources"),Tb(new Ub,Vb().dg,"source","Indicates that this parsing Unit has SourceMaps",G())))}function nz(a){return!!(a&&a.$classData&&a.$classData.v.se)}
function eM(a){a=a.G;if(a.b())return!0;a=a.c();if(null===a)throw(new Rg).a();return""===a}function dT(){}dT.prototype=new r;dT.prototype.constructor=dT;dT.prototype.a=function(){return this};function fh(a,b,c){a=(new dA).P((new Q).a(),(M(),(new N).a()));a=Te(a,"http://test.com/payload");var e=Rl().ob;a=ff(a,e,b);b=Zb(b.ha(),n($b));b.b()||(b=b.c().ga,e=Ap().nc,Eb(a,e,b));return Ypa(a,c)}dT.prototype.$classData=q({aNa:0},!1,"amf.core.model.document.PayloadFragment$",{aNa:1,f:1,q:1,n:1});var yPa=void 0;
function hh(){yPa||(yPa=(new dT).a());return yPa}function zPa(a){return!!(a&&a.$classData&&a.$classData.v.pka)}function $h(a){var b=B(a.ca(),jh().nc);return b.G.qa()?b.G:Yb(a)}function qEa(a){return!!(a&&a.$classData&&a.$classData.v.yw)}function Ue(a,b,c){var e=a.Ch();return ff(a,e,Nh(new Oh,b,c))}function eC(a){return!!(a&&a.$classData&&a.$classData.v.Jh)}function eT(){}eT.prototype=new r;eT.prototype.constructor=eT;eT.prototype.a=function(){return this};
function APa(a,b){a=Ke(M(),b);return(new Le).P((new Q).a(),a)}eT.prototype.$classData=q({pNa:0},!1,"amf.core.model.domain.extensions.CustomDomainProperty$",{pNa:1,f:1,q:1,n:1});var BPa=void 0;function CPa(){BPa||(BPa=(new eT).a());return BPa}function fT(){}fT.prototype=new r;fT.prototype.constructor=fT;fT.prototype.a=function(){return this};fT.prototype.$classData=q({rNa:0},!1,"amf.core.model.domain.extensions.ShapeExtension$",{rNa:1,f:1,q:1,n:1});var DPa=void 0;function gT(){}gT.prototype=new r;
gT.prototype.constructor=gT;gT.prototype.a=function(){return this};gT.prototype.$classData=q({tNa:0},!1,"amf.core.model.domain.templates.VariableValue$",{tNa:1,f:1,q:1,n:1});var EPa=void 0;function hT(){}hT.prototype=new r;hT.prototype.constructor=hT;hT.prototype.a=function(){return this};
function iT(a,b){a=(new ph).e("\\[\\(([0-9]*),([0-9]*)\\)-\\(([0-9]*),([0-9]*)\\)\\]");var c=G();a=ss((new qh).Di(a.ia,c),b);a.b()?c=!1:null!==a.c()?(c=a.c(),c=0===Ot(c,4)):c=!1;if(c){b=a.c();c=Pt(b,0);b=a.c();var e=Pt(b,1);b=a.c();b=Pt(b,2);a=a.c();a=Pt(a,3);c=(new ph).e(c);c=qC(pC(),c.ia,10);e=(new ph).e(e);e=qC(pC(),e.ia,10);b=(new ph).e(b);b=qC(pC(),b.ia,10);a=(new ph).e(a);a=qC(pC(),a.ia,10);return(new jT).wU((new kT).La(c,e),(new kT).La(b,a))}throw(new v).d(b);}
function zf(a,b){return(new jT).wU((new kT).La(b.vf,b.Ef),(new kT).La(b.ag,b.fg))}hT.prototype.$classData=q({MNa:0},!1,"amf.core.parser.Range$",{MNa:1,f:1,q:1,n:1});var FPa=void 0;function tf(){FPa||(FPa=(new hT).a());return FPa}function lT(){}lT.prototype=new r;lT.prototype.constructor=lT;lT.prototype.a=function(){return this};lT.prototype.$classData=q({ONa:0},!1,"amf.core.parser.Reference$",{ONa:1,f:1,q:1,n:1});var GPa=void 0;
function mT(a,b,c,e,f,g,h,k){var l=Rk(),p=a.Xi;a=k.b()?(new A).d(a.hA):k;HPa(Qk(l),h,b,c,e,f,g,p,a)}function IPa(){vE.call(this)}IPa.prototype=new UR;IPa.prototype.constructor=IPa;function JPa(){}JPa.prototype=IPa.prototype;function KPa(){this.ba=null}KPa.prototype=new r;KPa.prototype.constructor=KPa;d=KPa.prototype;d.a=function(){LPa=this;rja(this);return this};d.u=function(){return this.ba.trim()};d.te=function(){return this.ba};d.a$=function(a){this.ba=a};d.vM=function(){return""};
d.$classData=q({zOa:0},!1,"amf.core.remote.Oas$",{zOa:1,f:1,r7:1,ED:1});var LPa=void 0;function vt(){LPa||(LPa=(new KPa).a());return LPa}function MPa(){this.ba=null}MPa.prototype=new r;MPa.prototype.constructor=MPa;d=MPa.prototype;d.a=function(){NPa=this;rja(this);return this};d.u=function(){return this.ba.trim()};d.te=function(){return this.ba};d.a$=function(a){this.ba=a};d.vM=function(){return"2.0"};d.$classData=q({AOa:0},!1,"amf.core.remote.Oas20$",{AOa:1,f:1,r7:1,ED:1});var NPa=void 0;
function wt(){NPa||(NPa=(new MPa).a());return NPa}function OPa(){this.ba=null}OPa.prototype=new r;OPa.prototype.constructor=OPa;d=OPa.prototype;d.a=function(){PPa=this;rja(this);return this};d.u=function(){return this.ba.trim()};d.te=function(){return this.ba};d.a$=function(a){this.ba=a};d.vM=function(){return"3.0"};d.$classData=q({BOa:0},!1,"amf.core.remote.Oas30$",{BOa:1,f:1,r7:1,ED:1});var PPa=void 0;function xt(){PPa||(PPa=(new OPa).a());return PPa}function QPa(){this.ba=null}QPa.prototype=new r;
QPa.prototype.constructor=QPa;d=QPa.prototype;d.a=function(){RPa=this;yja(this);return this};d.b$=function(a){this.ba=a};d.u=function(){return this.ba.trim()};d.te=function(){return this.ba};d.vM=function(){return""};d.$classData=q({GOa:0},!1,"amf.core.remote.Raml$",{GOa:1,f:1,s7:1,ED:1});var RPa=void 0;function mc(){RPa||(RPa=(new QPa).a());return RPa}function SPa(){this.ba=null}SPa.prototype=new r;SPa.prototype.constructor=SPa;d=SPa.prototype;d.a=function(){TPa=this;yja(this);return this};
d.b$=function(a){this.ba=a};d.u=function(){return this.ba.trim()};d.te=function(){return this.ba};d.vM=function(){return"0.8"};d.$classData=q({HOa:0},!1,"amf.core.remote.Raml08$",{HOa:1,f:1,s7:1,ED:1});var TPa=void 0;function oc(){TPa||(TPa=(new SPa).a());return TPa}function UPa(){this.ba=null}UPa.prototype=new r;UPa.prototype.constructor=UPa;d=UPa.prototype;d.a=function(){VPa=this;yja(this);return this};d.b$=function(a){this.ba=a};d.u=function(){return this.ba.trim()};d.te=function(){return this.ba};
d.vM=function(){return"1.0"};d.$classData=q({IOa:0},!1,"amf.core.remote.Raml10$",{IOa:1,f:1,s7:1,ED:1});var VPa=void 0;function nc(){VPa||(VPa=(new UPa).a());return VPa}function yz(){this.ub=null;this.jm=!1;this.Iu=null}yz.prototype=new cu;yz.prototype.constructor=yz;function WPa(){}WPa.prototype=yz.prototype;function XPa(a,b){M();var c=(new N).a(),c=(new Ig).P((new Q).a(),c),c=Te(c,"http://resolutionstage.com/test#"),e=Ug().Mc;Vg(c,e,b);return Xp(a.He(c).ca(),Nl().Mc)}d=yz.prototype;
d.vt=function(a,b){this.jm=a;bu.prototype.vb.call(this,b);this.Iu=w();return this};d.Zw=function(){return this.ub};d.aza=function(){return qd(function(){return function(a){return a}}(this))};d.He=function(a){this.Iu=(new A).d((new $t).BK(a));var b=TEa(),c=UEa();return a.Lm(SEa(b,c),qd(function(a){return function(b){var c=a.jm,h=a.Iu,k=a.Zw(),l=a.aza(),p=pc(Os(),G()),y=new cM;y.$N=p;y.jm=c;y.Iu=h;y.BG=k;y.$ya=l;return y.NGa(b)}}(this)),this.Zw())};
function Pra(a,b){M();var c=(new N).a(),c=(new Ig).P((new Q).a(),c),c=Te(c,"http://resolutionstage.com/test#");if(null!==b.k)vj(c.ca(),Nl().ob,b,(M(),(new N).a()));else{var e=Rl().ob;ff(c,e,b)}return a.He(c).ze()}d.$classData=q({ela:0},!1,"amf.core.resolution.stages.ReferenceResolutionStage",{ela:1,ji:1,f:1,hla:1});function nT(){this.Qm=null}nT.prototype=new r;nT.prototype.constructor=nT;nT.prototype.a=function(){YPa=this;this.Qm=(new oT).tc("","");return this};
function uia(a,b){var c=(new Cf).e(b),c=Wa().Ia(c.zd),c=(c.b()?"":c.c()).trim(),c=(new ph).e(c);if(Tc(c))switch(a=mja(ta(),b,46),a){case -1:return(new oT).tc("",b);default:return c=b.substring(0,a),(new oT).tc(c,b.substring(1+a|0))}else return a.Qm}nT.prototype.$classData=q({GPa:0},!1,"amf.core.utils.package$QName$",{GPa:1,f:1,q:1,n:1});var YPa=void 0;function via(){YPa||(YPa=(new nT).a());return YPa}function pT(){}pT.prototype=new r;pT.prototype.constructor=pT;pT.prototype.a=function(){return this};
function ZPa(a,b,c){return dp(new ep,!c.Cd(t(new u,function(){return function(a){return a.km===xc().tb}}(a))),"",b,c)}pT.prototype.$classData=q({MPa:0},!1,"amf.core.validation.AMFValidationReport$",{MPa:1,f:1,q:1,n:1});var $Pa=void 0;function aQa(){$Pa||($Pa=(new pT).a());return $Pa}function uc(){}uc.prototype=new r;uc.prototype.constructor=uc;uc.prototype.a=function(){return this};
function vba(a,b,c){if(Wa().Ia(c.CC()).qa()&&""!==c.CC()){var e=!1,f=null,g=b.ca().Pb,h=zx(),h=Va(h),k=Ce().s;a=De(g,h,k).Ib(t(new u,function(a,b){return function(a){return Gc(a.xc.t)===b.CC()}}(a,c)));a:{if(x(a)&&(e=!0,f=a,a=f.i,Yh(a.t.t.ha(),n(Fd)))){e=a.t.t.ha();break a}if(e&&(a=f.i,Yh(a.t.E,n(Fd)))){e=a.t.E;break a}if(e&&(e=f.i.t.t,es(e)&&e.Tb.Fa())){e=e.Tb.fa().ha();break a}e=b.ha()}}else e=b.ha();b=Zb(e,n(Fd));e=Zb(e,n($b));e.b()?e=w():(e=e.c(),e=(new A).d(e.ga));return(new P).N(b,e)}
uc.prototype.$classData=q({NPa:0},!1,"amf.core.validation.AMFValidationResult$",{NPa:1,f:1,q:1,n:1});var tba=void 0;function qT(){this.wxa=this.uxa=this.txa=this.Y8=this.Kga=this.Yga=null}qT.prototype=new r;qT.prototype.constructor=qT;
qT.prototype.a=function(){bQa=this;var a=C().Gb;this.Yga=Gc(D(new F,a,"CoreShape"));a=C().Gb;this.Kga=Gc(D(new F,a,"AmlShape"));a=C().Gb;this.Y8=Gc(D(new F,a,"ParserShape"));a=C().Gb;this.txa=Gc(D(new F,a,"PayloadShape"));a=C().Gb;this.uxa=Gc(D(new F,a,"RenderShape"));a=C().Gb;this.wxa=Gc(D(new F,a,"ResolutionShape"));return this};qT.prototype.$classData=q({SPa:0},!1,"amf.core.validation.core.ValidationSpecification$",{SPa:1,f:1,q:1,n:1});var bQa=void 0;
function Nj(){bQa||(bQa=(new qT).a());return bQa}function rT(){this.Ku=this.v5=this.BR=this.w5=this.oD=this.Rga=this.u5=this.un=this.qv=this.Kc=this.Jxa=this.yi=this.Sga=this.mj=this.dc=this.cb=this.HB=this.zg=this.Gb=this.oc=this.bb=this.Zd=null}rT.prototype=new r;rT.prototype.constructor=rT;
rT.prototype.a=function(){cQa=this;this.Zd=(new cK).e("http://a.ml/vocabularies/document#");this.bb=(new cK).e("http://a.ml/vocabularies/apiContract#");this.oc=(new cK).e("http://a.ml/vocabularies/security#");this.Gb=(new cK).e("http://a.ml/vocabularies/shapes#");this.zg=(new cK).e("http://a.ml/vocabularies/data#");this.HB=(new cK).e("http://a.ml/vocabularies/document-source-maps#");this.cb=(new cK).e("http://www.w3.org/ns/shacl#");this.dc=(new cK).e("http://a.ml/vocabularies/core#");this.mj=(new cK).e("http://www.w3.org/2001/XMLSchema#");
this.Sga=(new cK).e("http://a.ml/vocabularies/shapes/anon#");this.yi=(new cK).e("http://www.w3.org/1999/02/22-rdf-syntax-ns#");this.Jxa=(new cK).e("");this.Kc=(new cK).e("http://a.ml/vocabularies/meta#");this.qv=(new cK).e("http://www.w3.org/2002/07/owl#");this.un=(new cK).e("http://www.w3.org/2000/01/rdf-schema#");this.u5=(new cK).e("http://a.ml/vocabularies/amf/core#");this.Rga=(new cK).e("http://a.ml/vocabularies/amf/aml#");this.oD=(new cK).e("http://a.ml/vocabularies/amf/parser#");this.w5=(new cK).e("http://a.ml/vocabularies/amf/resolution#");
this.BR=(new cK).e("http://a.ml/vocabularies/amf/validation#");this.v5=(new cK).e("http://a.ml/vocabularies/amf/render#");for(var a=(new P).N("rdf",this.yi),b=(new P).N("sh",this.cb),c=(new P).N("shacl",this.cb),e=(new P).N("security",this.oc),f=(new P).N("core",this.dc),g=(new P).N("raml-doc",this.Zd),h=(new P).N("doc",this.Zd),k=(new P).N("xsd",this.mj),l=(new P).N("amf-parser",this.oD),p=(new P).N("amf-core",this.u5),y=(new P).N("apiContract",this.bb),I=(new P).N("amf-resolution",this.w5),E=(new P).N("amf-validation",
this.BR),V=(new P).N("amf-render",this.v5),da=(new P).N("raml-shapes",this.Gb),sa=(new P).N("data",this.zg),ua=(new P).N("sourcemaps",this.HB),Ia=(new P).N("meta",this.Kc),Pa=(new P).N("owl",this.qv),a=[a,b,c,e,f,g,h,k,l,p,y,I,E,V,da,sa,ua,Ia,Pa,(new P).N("rdfs",this.un)],b=(new ct).a(),c=0,e=a.length|0;c<e;)Gs(b,a[c]),c=1+c|0;this.Ku=b;return this};
function dQa(a,b){a=a.Ku.kb();a:{for(;a.Qa();){var c=a.Sa(),e=c;if(null===e)throw(new v).d(e);e=e.Ba().he;if(0===(b.indexOf(e)|0)){c=(new A).d(c);break a}}c=w()}if(x(c)&&(a=c.i,null!==a))return c=a.pa(),e=a.Ba(),a=(new ph).e(c),b=b.split(e.he).join(":"),b=(new ph).e(b),c=fc().wN,vp(a,b,c);if(w()===c)return b;throw(new v).d(c);}
function Kz(a,b){if(-1<(b.indexOf(":")|0))return Wu(a,b);a=(new up).fo(a.Ku).Rb.gf();a:{for(;a.Qa();){var c=a.Sa();if(0===(b.indexOf(c.he)|0)){a=(new A).d(c);break a}}a=w()}return x(a)?(a=a.i,c=a.he,b=kd(ta(),b,c,0),b=ld((new md).vc(b)),D(new F,a,b)):sT(tT(),b)}function Wu(a,b){if(!(0<=(b.length|0)&&"http://"===b.substring(0,7))){var c=kd(ta(),b,":",0),e=se(ye(),c);if(!e.b()&&null!==e.c()&&0===e.c().Ge(2)&&(c=e.c().jb(0),e=e.c().jb(1),a=a.Ku.Ta(c),x(a)))return D(new F,a.i,e)}return sT(tT(),b)}
rT.prototype.$classData=q({TPa:0},!1,"amf.core.vocabulary.Namespace$",{TPa:1,f:1,q:1,n:1});var cQa=void 0;function C(){cQa||(cQa=(new rT).a());return cQa}function uT(){}uT.prototype=new r;uT.prototype.constructor=uT;uT.prototype.a=function(){return this};
function sT(a,b){return-1!==(b.indexOf("#")|0)?(a=kd(ta(),b,"#",0),b=ld((new md).vc(a)),a=Wj((new md).vc(a))+"#",D(new F,(new cK).e(a),b)):-1!==(b.split("://").join("_").indexOf("/")|0)?(a=kd(ta(),b,"/",0),a=ld((new md).vc(a)),b=b.split(a).join(""),D(new F,(new cK).e(b),a)):D(new F,(new cK).e(b),"")}uT.prototype.$classData=q({VPa:0},!1,"amf.core.vocabulary.ValueType$",{VPa:1,f:1,q:1,n:1});var eQa=void 0;function tT(){eQa||(eQa=(new uT).a());return eQa}
function fQa(){this.na=this.qf=this.Gm=this.W=null}fQa.prototype=new r;fQa.prototype.constructor=fQa;d=fQa.prototype;d.sK=function(a){var b=(new dd).Qd(this.W).Rb.gf();a:{for(;b.Qa();){var c=b.Sa();if(-1!==(a.indexOf(c.k)|0)){b=(new A).d(c);break a}}b=w()}b.b()?a=w():(b=b.c(),a=(new A).d((new P).N(b,B(b.g,ed().Mc).Ib(t(new u,function(a,b){return function(a){return a.k===b}}(this,a))))));a=a.wa();return hd(a,(new gQa).yU(this))};function hFa(a,b,c,e){return Uaa(a,b,Bfa(e,(new Ko).tc(b,c)))}
d.a=function(){this.na=ju().na;this.W=pc(fc().db,G());this.Gm=H(fc().Sg,G());this.qf=pc(fc().db,G());return this};
function hQa(a,b,c){var e=B(b.g,Tj().ov),f=B(b.g,Tj().Qi),g=t(new u,function(){return function(a){return Uj(a)}}(a)),h=z(),f=f.ka(g,h.s);c=B(c.g,ed().Mc);g=(new iQa).yU(a);h=z();c=c.$b(g,h.s).tu(fc().ci).xb(t(new u,function(a,b){return function(c){return B(c.g,cg().Jg).Cd(t(new u,function(a,b){return function(a){a=a.G;return(a.b()?null:a.c())===b.k}}(a,b)))}}(a,b)));g=t(new u,function(){return function(a){return B(a.g,sf().qr)}}(a));h=z();c=c.ka(g,h.s).Ri();a=t(new u,function(){return function(a){var b=
Pb();tT();var c=a.G,c=sT(0,c.b()?null:c.c()),e=Vb().tm;a=a.G;return Rb(new Sb,b,c,Tb(new Ub,e,"custom",a.b()?null:a.c(),G()))}}(a));g=z();a=c.ka(a,g.s);e=e.G;e.b()?e=w():(e=e.c(),c=z(),e=(new A).d(H(c,(new J).aa([e]))));e=e.b()?G():e.c();c=z();return jQa(new vT,e,f.la(a,c.s),(new A).d(b))}
d.D_=function(a){return a&&a.$classData&&a.$classData.v.x7?(new A).d(t(new u,function(a,c){return function(a){var b=c.NCa;if(x(b)){b=b.i;a=(new wT).P((new Q).a(),a);var g=c.Kfa,h=b.k,k=z();return xT(yT(a,g.hg(h,k.s)),b)}throw Lb(Mb(),(new Nb).e("Cannot find node mapping for dialectModel "+c));}}(this,a))):w()};
d.A0=function(a){var b;b=(new dd).Qd(this.W).Rb.gf().kd();b=kQa(b,H(Pf(),G()),b);var c=new zT;c.SGa=a;a=z();a=b.$b(c,a.s);a=hd(a,(new lQa).yU(this));return x(a)&&(b=a.i,null!==b&&(a=b.pa(),b=b.Ba(),null!==a&&he(b)))?(new A).d(hQa(this,b,a)):w()};function mQa(a,b){var c=(new bN).vb(Wo(Xo(),b)).He(b);nQa(b).X(t(new u,function(a,b){return function(c){a.W=a.W.Zb((new P).N(c,b))}}(a,c)));a.Gm=a.Gm.Ij(b.wu());return c}
function LCa(a,b){b=b.S_().G;if(!b.b())for(b=b.c(),a=(new dd).Qd(a.W).Rb.gf();a.Qa();){var c=a.Sa();if(c.k===b)return(new A).d(c)}return w()}function oQa(a,b){nQa(b).X(t(new u,function(a,b){return function(f){a.W=a.W.Zb((new P).N(f,b))}}(a,b)));a.Gm=a.Gm.Zs(b.wu());a.qf=a.qf.Bo(b.wu())}
function Uaa(a,b,c){var e=a.W.Ta(b);if(x(e))return b=e.i,hb(ib(),jb(function(a,b){return function(){return b}}(a,b)),um());e=Rk();a=function(a,b,c){return function(e){var l=(new A).d("application/yaml"),p=(new A).d(Cl().ba),y=Paa(Xa(),a.na),I=(new Ya).a();$a();var E=ab();$a();var V=w();$a();var da=(new cb).a();return eb($a(),b,l,p,y,E,I,V,c,da).Lf(t(new u,function(a,b){return function(c){if(TA(c))return gc(b),oQa(a,c),c;throw(new v).d(c);}}(a,e)),um())}}(a,b,c);b=Qk(e);if(b.Uw){b.Uw=!1;try{return a(jb(function(a){return function(){a.Uw=
!0}}(b)))}catch(f){a=gi(Mb(),f);if(hi(a))throw b.Uw=!0,Lb(Mb(),a);throw f;}}else return a(jb(function(){return function(){}}(b)))}function tGa(a,b){return"%Vocabulary 1.0"===b||"%Dialect 1.0"===b||"%Library / Dialect 1.0"===b||a.W.Ja(b.trim().split(" ").join(""))}d.$classData=q({qQa:0},!1,"amf.plugins.document.vocabularies.DialectsRegistry",{qQa:1,f:1,Qeb:1,Fb:1});function Bd(){this.yL=this.l=null}Bd.prototype=new r;Bd.prototype.constructor=Bd;
Bd.prototype.Va=function(a){R();var b=Th(R(),"external"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f),h=Cq(),k=this.yL,l=xd(this.l.rb),p=t(new u,function(a){return function(b){return pQa(b,a.yL)}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=b.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=b[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),c.r))};
Bd.prototype.Oa=function(){var a=xd(this.l.rb),b=t(new u,function(){return function(a){a=Zb(a.E,n(Fd));if(a.b())return w();a=a.c();return(new A).d(a.cc.Dd)}}(this)),c=z(),a=a.ka(b,c.s).xb(t(new u,function(){return function(a){return a.qa()}}(this))),b=t(new u,function(){return function(a){return a.c()}}(this)),c=z(),a=a.ka(b,c.s).qi(t(new u,function(){return function(a){return a.Ne}}(this)),Ms()).pc();return a.b()?Gd():a.c()};
Bd.prototype.$classData=q({IQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.DialectDocumentsEmitters$$anon$6",{IQa:1,f:1,ib:1,Ra:1});function AT(){this.Mxa=this.zL=this.oza=this.Tca=null}AT.prototype=new r;AT.prototype.constructor=AT;function Pba(a,b,c,e){var f=new AT;f.Tca=a;f.oza=b;f.zL=c;f.Mxa=e;return f}
AT.prototype.Va=function(a){R();var b=Th(R(),"nodeMappings"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f),h=this.Tca,k=t(new u,function(a){return function(b){var c=a.zL,e=a.Mxa,f=new qQa;f.rb=a.oza;f.mm=b;f.o=c;f.Xb=e;return f}}(this)),l=z(),h=h.ka(k,l.s);iq(Cq(),this.zL.Cb(h),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,k=h=0,p=b.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=
b[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),c.r))};AT.prototype.Oa=function(){var a=this.Tca,b=t(new u,function(){return function(a){a=Zb(a.ha(),n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()}}(this)),c=z(),a=a.ka(b,c.s).xb(t(new u,function(){return function(a){var b=Gd();return!(null!==a&&a.h(b))}}(this)));CB();b=fc().ci;a=a.Ej(DB(b)).pc();return a.b()?Gd():a.c()};
AT.prototype.$classData=q({JQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.DialectDocumentsEmitters$$anon$7",{JQa:1,f:1,ib:1,Ra:1});function BT(){this.l=null}BT.prototype=new r;BT.prototype.constructor=BT;BT.prototype.Va=function(a){var b=B(this.l.rb.g,Ap().Ud).G;Bv(new Cv,"usage",b.b()?null:b.c(),O().Wa,Gd()).Va(a)};BT.prototype.zU=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};
BT.prototype.Oa=function(){var a=Zb(Dd(this.l.rb.g,ed().Ud).c().t.E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};BT.prototype.$classData=q({LQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.DialectEmitter$$anon$10",{LQa:1,f:1,ib:1,Ra:1});function CT(){this.l=null}CT.prototype=new r;CT.prototype.constructor=CT;CT.prototype.Va=function(a){var b=B(this.l.rb.g,ed().$).G;Bv(new Cv,"dialect",b.b()?null:b.c(),O().Wa,Gd()).Va(a)};
CT.prototype.zU=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};CT.prototype.Oa=function(){var a=Zb(Dd(this.l.rb.g,ed().$).c().t.E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};CT.prototype.$classData=q({MQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.DialectEmitter$$anon$8",{MQa:1,f:1,ib:1,Ra:1});function DT(){this.l=null}DT.prototype=new r;DT.prototype.constructor=DT;
DT.prototype.Va=function(a){var b=B(this.l.rb.g,ed().Tm).G;Bv(new Cv,"version",b.b()?null:b.c(),O().Wa,Gd()).Va(a)};DT.prototype.zU=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};DT.prototype.Oa=function(){var a=Zb(Dd(this.l.rb.g,ed().Tm).c().t.E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};DT.prototype.$classData=q({NQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.DialectEmitter$$anon$9",{NQa:1,f:1,ib:1,Ra:1});
function rQa(a,b){var c;c=H(z(),G());var e=Dd(b.ca(),cg().OD);if(!e.b()){var e=e.c().xc,e=Cd(b,e),f=ET(b),g=z(),h=new FT;if(null===a)throw Lb(Mb(),null);h.l=a;h.UGa=f;h.ADa=e;a=H(g,(new J).aa([h]));e=z();c=c.la(a,e.s)}a=Dd(b.ca(),cg().gu);a.b()||(e=a.c(),a=ja(e.t.t.t),e=Cd(b,e.xc),b=c,c=z(),a=[Bv(new Cv,"typeDiscriminatorName",a,O().Wa,e)],c=H(c,(new J).aa(a)),a=z(),c=b.la(c,a.s));return c}function FT(){this.ADa=this.UGa=this.l=null}FT.prototype=new r;FT.prototype.constructor=FT;
FT.prototype.Va=function(a){R();var b=Th(R(),"typeDiscriminator"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f);this.UGa.X(t(new u,function(a,b){return function(c){if(null!==c){var e=c.pa();c=c.Ba();var f=lv(a.l,c);x(f)&&(c=f.i);R();e=Th(R(),e);R();c=Th(R(),c);qq(b,e,c)}else throw(new v).d(c);}}(this,g)));T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,h=g.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=g.j.length,
h=h<p?h:p;k<h;)g.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),c.r))};FT.prototype.Oa=function(){return this.ADa};FT.prototype.$classData=q({PQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.DiscriminatorEmitter$$anon$1",{PQa:1,f:1,ib:1,Ra:1});function GT(){this.nfa=null}GT.prototype=new r;GT.prototype.constructor=GT;
GT.prototype.Va=function(a){R();var b=Th(R(),"declares"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f);iq(Cq(),this.nfa,g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,h=g.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=g.j.length,h=h<p?h:p;k<h;)g.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),c.r))};function sQa(a){var b=new GT;b.nfa=a;return b}GT.prototype.Oa=function(){return this.nfa.fa().og};
GT.prototype.$classData=q({SQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.LibraryDocumentModelEmitter$$anon$2",{SQa:1,f:1,ib:1,Ra:1});function HT(){this.CDa=this.GGa=null}HT.prototype=new r;HT.prototype.constructor=HT;
HT.prototype.Va=function(a){R();var b=Th(R(),"union"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new My).e(f);this.GGa.X(t(new u,function(a,b){return function(a){IT(new JT,Nh(new Oh,a,(new N).a()),O().Wa).Ob(b)}}(this,g)));R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=c.r;b=[b];if(0>e.x)throw(new X).e("0");f=b.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),
c.r))};function tQa(a,b){var c=new HT;c.GGa=a;c.CDa=b;return c}HT.prototype.Oa=function(){return this.CDa};HT.prototype.$classData=q({UQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.NodeMappingEmitter$$anon$5",{UQa:1,f:1,ib:1,Ra:1});function KT(){this.BDa=this.FGa=null}KT.prototype=new r;KT.prototype.constructor=KT;
KT.prototype.Va=function(a){R();var b=Th(R(),"range"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new My).e(f);this.FGa.X(t(new u,function(a,b){return function(a){IT(new JT,Nh(new Oh,a,(new N).a()),O().Wa).Ob(b)}}(this,g)));R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=c.r;b=[b];if(0>e.x)throw(new X).e("0");f=b.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),
c.r))};function uQa(a,b){var c=new KT;c.FGa=a;c.BDa=b;return c}KT.prototype.Oa=function(){return this.BDa};KT.prototype.$classData=q({XQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.PropertyMappingEmitter$$anon$4",{XQa:1,f:1,ib:1,Ra:1});function LT(){this.l=null}LT.prototype=new r;LT.prototype.constructor=LT;LT.prototype.Va=function(a){var b=B(this.l.rb.g,Ap().Ud).G;Bv(new Cv,"usage",b.b()?null:b.c(),O().Wa,Gd()).Va(a)};
LT.prototype.Oa=function(){var a=Zb(Dd(this.l.rb.g,ed().Ud).c().t.E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};LT.prototype.$classData=q({ZQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.RamlDialectLibraryEmitter$$anon$11",{ZQa:1,f:1,ib:1,Ra:1});function MT(){this.ofa=null}MT.prototype=new r;MT.prototype.constructor=MT;function vQa(a){var b=new MT;b.ofa=a;return b}
MT.prototype.Va=function(a){R();var b=Th(R(),"declares"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f);iq(Cq(),this.ofa,g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,h=g.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=g.j.length,h=h<p?h:p;k<h;)g.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),c.r))};MT.prototype.Oa=function(){return this.ofa.fa().og};
MT.prototype.$classData=q({aRa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.RootDocumentModelEmitter$$anon$3",{aRa:1,f:1,ib:1,Ra:1});function NT(){this.Gca=this.yL=null}NT.prototype=new r;NT.prototype.constructor=NT;function Uba(a,b){var c=new NT;c.yL=a;c.Gca=b;return c}
NT.prototype.Va=function(a){R();var b=Th(R(),"$external"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f),h=Cq(),k=this.yL,l=xd(this.Gca),p=t(new u,function(a){return function(b){return pQa(b,a.yL)}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=b.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=b[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),c.r))};
NT.prototype.Oa=function(){var a=xd(this.Gca),b=t(new u,function(){return function(a){a=Zb(a.E,n(Fd));if(a.b())return w();a=a.c();return(new A).d(a.cc.Dd)}}(this)),c=z(),a=a.ka(b,c.s).xb(t(new u,function(){return function(a){return a.qa()}}(this))),b=t(new u,function(){return function(a){return a.c()}}(this)),c=z(),a=a.ka(b,c.s).qi(t(new u,function(){return function(a){return a.Ne}}(this)),Ms()).pc();return a.b()?Gd():a.c()};
NT.prototype.$classData=q({bRa:0},!1,"amf.plugins.document.vocabularies.emitters.instances.DialectEmitterHelper$$anon$1",{bRa:1,f:1,ib:1,Ra:1});function OT(){this.BH=null}OT.prototype=new r;OT.prototype.constructor=OT;
OT.prototype.Ob=function(a){if(Yh(this.BH.E,n(wQa))){var b=a.r;a=a.da;var c=(new pq).e(a);R();var e=Th(R(),"$include");R();var f=MQa(this.BH),f=Th(R(),f);qq(c,e,f);T(b,lq(R(),rq(sq(),c.r,a),O().ua))}else Yh(this.BH.E,n(NQa))?(b=a.r,a=a.da,c=(new pq).e(a),R(),e=Th(R(),"$ref"),R(),f=B(this.BH.g,Db().wd).G,f=f.b()?yb(this.BH).c().k:f.c(),f=Th(R(),f),qq(c,e,f),T(b,lq(R(),rq(sq(),c.r,a),O().ua))):(b=Fva(R(),MQa(this.BH)),T(a.r,b))};function OQa(a){var b=new OT;b.BH=a;return b}
OT.prototype.Oa=function(){var a=Zb(this.BH.E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};OT.prototype.$classData=q({eRa:0},!1,"amf.plugins.document.vocabularies.emitters.instances.DialectNodeEmitter$$anon$2",{eRa:1,f:1,lh:1,Ra:1});function PT(){this.pza=this.Lza=this.LDa=this.l=this.vs=this.PCa=null;this.GBa=!1;this.CGa=this.qya=this.z1=null}PT.prototype=new r;PT.prototype.constructor=PT;
function PQa(a,b,c){R();var e=a.z1,f=Th(R(),e),e=(new My).e(b.da),g=e.r,h=e.da,k=(new My).e(h),l=a.l.o;c=Pd(c);l.Cb(xx(c)).X(t(new u,function(a,b){return function(a){a.Ob(b)}}(a,k)));R();FC();a=Py(vq(),h);a=lq(0,(new GC).mc(a,k.r),O().Nc);T(g,a);g=e.r;f=[f];if(0>g.x)throw(new X).e("0");k=f.length|0;a=g.x+k|0;hC(g,a);Ca(g.z,0,g.z,k,g.x);for(var k=g.z,l=k.j.length,h=c=0,p=f.length|0,l=p<l?p:l,p=k.j.length,l=l<p?l:p;c<l;)k.j[h]=f[c],c=1+c|0,h=1+h|0;g.x=a;T(b.r,iC(jC(),e.r))}
PT.prototype.Va=function(a){var b=this.Lza.ae(pc(fc().db,G()),qd(function(a){return function(b,f){if(null!==f){var g=a.PCa.Ib(t(new u,function(a,b){return function(c){var e=hN(b).ja,f=function(){return function(a){return Gc(a)}}(a),g=Di().s;if(g===Di().s)if(e===G())f=G();else{for(var g=e.fa(),h=g=oz(new pz,f(g),G()),e=e.sa();e!==G();)var k=e.fa(),k=oz(new pz,f(k),G()),h=h.ve=k,e=e.sa();f=g}else{for(g=Rf(e,g);!e.b();)h=e.fa(),g.Ic(f(h)),e=e.sa();f=g.lc()}c=B(c.g,Tj().ov).G;c=c.b()?null:c.c();return uh(f,
c)}}(a,f)));if(x(g)){var g=g.i,h=a.l.Og,k=a.l.rb,l=a.l.o,p=a.l.Xb,y=QQa(a.pza,f),I=a.vs,E=a.l.Ro,V=w(),da=G();return b.Zb((new P).N(RQa(f,g,h,k,l,p,I,!1,V,y,!1,da,E),f))}}return b}}(this)));this.vs.qa()?SQa(this,a,b):this.GBa?PQa(this,a,b):TQa(this,a,b)};
function SQa(a,b,c){R();var e=a.z1,f=Th(R(),e),e=(new My).e(b.da),g=e.r,h=e.da,k=(new pq).e(h),l=a.l.o,p=Pd(c);l.Cb(xx(p)).X(t(new u,function(a,b,c){return function(e){var f=b.R(e);a:{for(var g=hN(f).g;!g.b();){var h=Gc(g.fa().t),k=B(a.LDa.g,sf().qr).G;if(h===(k.b()?null:k.c())){g=(new A).d(g.fa());break a}g=g.sa()}g=w()}g=g.c();f=uj(f.g,g).t.u();Vw(new Ww,f,e,O().Wa,Gd()).Va(c)}}(a,c,k)));T(g,lq(R(),rq(sq(),k.r,h),O().ua));a=e.r;c=[f];if(0>a.x)throw(new X).e("0");g=c.length|0;f=a.x+g|0;hC(a,f);Ca(a.z,
0,a.z,g,a.x);g=a.z;l=g.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;a.x=f;T(b.r,iC(jC(),e.r))}function TQa(a,b,c){c=Pd(c);c=Ps(c);c.b()||(c=c.c(),Vw(new Ww,a.z1,c,O().Wa,Gd()).Va(b))}PT.prototype.Oa=function(){var a=this.qya,a=a.b()?w():Zb(a.c(),n(Fd)),a=a.b()?Zb(this.CGa.ha(),n(Fd)):a;a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};
function UQa(a,b,c,e,f,g,h,k){var l=new PT;if(null===a)throw Lb(Mb(),null);l.l=a;l.LDa=b;l.Lza=c;l.pza=e;l.GBa=f;l.z1=g;l.qya=h;l.CGa=k;a=B(b.g,cg().Jg);c=t(new u,function(a){return function(b){b=b.G;return VQa(a.l,b.b()?null:b.c())}}(l));e=z();l.PCa=a.md(c,e.s);l.vs=B(b.g,sf().qr).G;return l}PT.prototype.$classData=q({fRa:0},!1,"amf.plugins.document.vocabularies.emitters.instances.DialectNodeEmitter$$anon$3",{fRa:1,f:1,ib:1,Ra:1});function QT(){this.rya=this.iHa=this.oCa=this.u$=this.nCa=null}
QT.prototype=new r;QT.prototype.constructor=QT;
QT.prototype.Va=function(a){R();var b=this.nCa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=this.u$.Tb,k=t(new u,function(){return function(a){a=Zb(a.ha(),n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()}}(this));CB();var l=fc().ci;h.qi(k,DB(l)).X(t(new u,function(a,b){return function(c){if(xA(c)){a:{for(var e=hN(c).g;!e.b();){if(Gc(e.fa().t)===a.oCa){var f=(new A).d(e.fa());break a}e=e.sa()}f=w()}a:{for(e=hN(c).g;!e.b();){if(Gc(e.fa().t)===a.iHa){e=(new A).d(e.fa());
break a}e=e.sa()}e=w()}if(f.qa()&&e.qa()){var g=c.g,f=f.c(),f=g.Pb.Ta(f);f.b()?f=w():(f=f.c(),f=(new A).d(f.t));c=c.g;e=e.c();c=c.Pb.Ta(e);c.b()?c=w():(c=c.c(),c=(new A).d(c.t));a:{if(x(f)&&(e=f.i,sj(e)&&x(c)&&(c=c.i,sj(c)))){Bv(new Cv,ja(e.t),ja(c.t),O().Wa,Gd()).Va(b);break a}throw Lb(Mb(),(new Nb).e("Cannot generate object pair without scalar values for key and value"));}}else throw Lb(Mb(),(new Nb).e("Cannot generate object pair with undefined key or value"));}}}(this,g)));T(e,lq(R(),rq(sq(),
g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,k=h=0,p=c.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),b.r))};function WQa(a,b,c,e,f){var g=new QT;g.nCa=a;g.u$=b;g.oCa=c;g.iHa=e;g.rya=f;return g}QT.prototype.Oa=function(){var a=this.rya,a=a.b()?w():Zb(a.c(),n(Fd)),a=a.b()?Zb(this.u$.E,n(Fd)):a;a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};
QT.prototype.$classData=q({gRa:0},!1,"amf.plugins.document.vocabularies.emitters.instances.DialectNodeEmitter$$anon$4",{gRa:1,f:1,ib:1,Ra:1});function RT(){this.l=null}RT.prototype=new r;RT.prototype.constructor=RT;
RT.prototype.Va=function(a){if(1===B(this.l.qt.g,zA().Mz).Ka()){R();var b=Th(R(),"extends");R();var c=B(this.l.qt.g,zA().Mz).fa().G,c=c.b()?null:c.c(),c=Od(c,this.l.mp),c=Th(R(),c);qq(a,b,c)}else{R();var e=Th(R(),"extends"),b=(new My).e(a.da),c=b.r,f=b.da,g=(new My).e(f);B(this.l.qt.g,zA().Mz).X(t(new u,function(a,b){return function(c){c=c.G;c=c.b()?null:c.c();b.$s(Od(c,a.l.mp))}}(this,g)));R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(c,g);c=b.r;e=[e];if(0>c.x)throw(new X).e("0");f=e.length|
0;g=c.x+f|0;hC(c,g);Ca(c.z,0,c.z,f,c.x);for(var f=c.z,h=f.j.length,k=0,l=0,p=e.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=e[k],k=1+k|0,l=1+l|0;c.x=g;T(a.r,iC(jC(),b.r))}};RT.prototype.eba=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};RT.prototype.Oa=function(){var a=Zb(hs(this.l.qt.g,zA().Mz).ha(),n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};
RT.prototype.$classData=q({lRa:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.ClassTermEmitter$$anon$1",{lRa:1,f:1,ib:1,Ra:1});function ST(){this.l=null}ST.prototype=new r;ST.prototype.constructor=ST;
ST.prototype.Va=function(a){R();var b=Th(R(),"properties"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new My).e(f);B(this.l.qt.g,zA().Rg).X(t(new u,function(a,b){return function(c){c=c.G;c=c.b()?null:c.c();b.$s(Od(c,a.l.mp))}}(this,g)));R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=c.r;b=[b];if(0>e.x)throw(new X).e("0");f=b.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=
g;T(a.r,iC(jC(),c.r))};ST.prototype.eba=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};ST.prototype.Oa=function(){var a=Zb(hs(this.l.qt.g,zA().Mz).ha(),n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};ST.prototype.$classData=q({mRa:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.ClassTermEmitter$$anon$2",{mRa:1,f:1,ib:1,Ra:1});function TT(){this.l=null}TT.prototype=new r;TT.prototype.constructor=TT;
TT.prototype.fba=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};
TT.prototype.Va=function(a){if(1===B(this.l.Et.ca(),FA().IB).lb()){R();var b=Th(R(),"extends");R();var c=B(this.l.Et.ca(),FA().IB).fa().G,c=c.b()?null:c.c(),c=Od(c,this.l.mp),c=Th(R(),c);qq(a,b,c)}else{R();var e=Th(R(),"extends"),b=(new My).e(a.da),c=b.r,f=b.da,g=(new My).e(f);B(this.l.Et.ca(),FA().IB).X(t(new u,function(a,b){return function(c){c=c.G;c=c.b()?null:c.c();b.$s(Od(c,a.l.mp))}}(this,g)));R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(c,g);c=b.r;e=[e];if(0>c.x)throw(new X).e("0");
f=e.length|0;g=c.x+f|0;hC(c,g);Ca(c.z,0,c.z,f,c.x);for(var f=c.z,h=f.j.length,k=0,l=0,p=e.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=e[k],k=1+k|0,l=1+l|0;c.x=g;T(a.r,iC(jC(),b.r))}};TT.prototype.Oa=function(){var a=Zb(hs(this.l.Et.ca(),FA().IB).ha(),n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};TT.prototype.$classData=q({nRa:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.PropertyTermEmitter$$anon$3",{nRa:1,f:1,ib:1,Ra:1});
function UT(){this.l=null}UT.prototype=new r;UT.prototype.constructor=UT;UT.prototype.fba=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};UT.prototype.Va=function(a){R();var b=Th(R(),"range");R();var c=B(this.l.Et.ca(),FA().If).G,c=c.b()?null:c.c(),c=Od(c,this.l.mp),c=Th(R(),c);qq(a,b,c)};UT.prototype.Oa=function(){var a=Zb(hs(this.l.Et.ca(),FA().If).ha(),n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};
UT.prototype.$classData=q({oRa:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.PropertyTermEmitter$$anon$4",{oRa:1,f:1,ib:1,Ra:1});function VT(){this.F$=this.eda=this.l=null}VT.prototype=new r;VT.prototype.constructor=VT;
VT.prototype.Va=function(a){R();var b=Th(R(),"classTerms"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f),h=Cq(),k=this.eda,l=this.F$,p=t(new u,function(a){return function(b){var c=a.eda,e=a.l.mp,f=new XQa;f.qt=b;f.o=c;f.mp=e;return f}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=b.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=b[h],h=1+h|
0,k=1+k|0;e.x=f;T(a.r,iC(jC(),c.r))};VT.prototype.hba=function(a,b,c){if(null===a)throw Lb(Mb(),null);this.l=a;this.eda=b;this.F$=c;return this};VT.prototype.Oa=function(){var a=this.F$,b=t(new u,function(){return function(a){a=Zb(a.E,n(Fd));if(a.b())return w();a=a.c();return(new A).d(a.cc.Dd)}}(this)),c=z(),a=a.ka(b,c.s).Ib(t(new u,function(){return function(a){return a.qa()}}(this))),a=a.b()?w():a.c();return a.b()?Gd():a.c()};
VT.prototype.$classData=q({pRa:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.VocabularyEmitter$$anon$10",{pRa:1,f:1,ib:1,Ra:1});function WT(){this.Qda=this.fda=this.l=null}WT.prototype=new r;WT.prototype.constructor=WT;
WT.prototype.Va=function(a){R();var b=Th(R(),"propertyTerms"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f),h=Cq(),k=this.fda,l=this.Qda,p=t(new u,function(a){return function(b){var c=a.fda,e=a.l.mp,f=new YQa;f.Et=b;f.o=c;f.mp=e;return f}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=b.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=b[h],h=
1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),c.r))};WT.prototype.hba=function(a,b,c){if(null===a)throw Lb(Mb(),null);this.l=a;this.fda=b;this.Qda=c;return this};WT.prototype.Oa=function(){var a=this.Qda,b=t(new u,function(){return function(a){a=Zb(a.ha(),n(Fd));if(a.b())return w();a=a.c();return(new A).d(a.cc.Dd)}}(this)),c=z(),a=a.ka(b,c.s).Ib(t(new u,function(){return function(a){return a.qa()}}(this))),a=a.b()?w():a.c();return a.b()?Gd():a.c()};
WT.prototype.$classData=q({qRa:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.VocabularyEmitter$$anon$11",{qRa:1,f:1,ib:1,Ra:1});function XT(){this.zL=this.l=null}XT.prototype=new r;XT.prototype.constructor=XT;XT.prototype.gba=function(a,b){if(null===a)throw Lb(Mb(),null);this.l=a;this.zL=b;return this};
XT.prototype.Va=function(a){R();var b=Th(R(),"external"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f),h=Cq(),k=this.zL,l=xd(this.l.cf),p=t(new u,function(a){return function(b){return pQa(b,a.zL)}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=b.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=b[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),c.r))};
XT.prototype.Oa=function(){var a=xd(this.l.cf),b=t(new u,function(){return function(a){a=Zb(a.E,n(Fd));if(a.b())return w();a=a.c();return(new A).d(a.cc.Dd)}}(this)),c=z(),a=a.ka(b,c.s).xb(t(new u,function(){return function(a){return a.qa()}}(this))),b=t(new u,function(){return function(a){return a.c()}}(this)),c=z(),a=a.ka(b,c.s).qi(t(new u,function(){return function(a){return a.Ne}}(this)),Ms()).pc();return a.b()?Gd():a.c()};
XT.prototype.$classData=q({rRa:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.VocabularyEmitter$$anon$5",{rRa:1,f:1,ib:1,Ra:1});function YT(){this.dda=this.l=null}YT.prototype=new r;YT.prototype.constructor=YT;YT.prototype.gba=function(a,b){if(null===a)throw Lb(Mb(),null);this.l=a;this.dda=b;return this};
YT.prototype.Va=function(a){R();var b=Th(R(),"uses"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f),h=Cq(),k=this.dda,l=B(this.l.cf.g,wd().BD),p=t(new u,function(a){return function(b){var c=a.l.cf,e=a.dda,f=new ZQa;f.yM=b;f.cf=c;f.o=e;return f}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=b.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=b[h],
h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),c.r))};YT.prototype.Oa=function(){var a=B(this.l.cf.g,wd().BD),b=t(new u,function(){return function(a){a=Zb(a.E,n(Fd));if(a.b())return w();a=a.c();return(new A).d(a.cc.Dd)}}(this)),c=z(),a=a.ka(b,c.s).xb(t(new u,function(){return function(a){return a.qa()}}(this))),b=t(new u,function(){return function(a){return a.c()}}(this)),c=z(),a=a.ka(b,c.s).qi(t(new u,function(){return function(a){return a.Ne}}(this)),Ms()).pc();return a.b()?Gd():a.c()};
YT.prototype.$classData=q({sRa:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.VocabularyEmitter$$anon$6",{sRa:1,f:1,ib:1,Ra:1});function ZT(){this.l=null}ZT.prototype=new r;ZT.prototype.constructor=ZT;ZT.prototype.Va=function(a){var b=B(this.l.cf.g,wd().uh).G;Bv(new Cv,"base",b.b()?null:b.c(),O().Wa,Gd()).Va(a)};ZT.prototype.AU=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};ZT.prototype.Oa=function(){return Gd()};
ZT.prototype.$classData=q({tRa:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.VocabularyEmitter$$anon$7",{tRa:1,f:1,ib:1,Ra:1});function $T(){this.l=null}$T.prototype=new r;$T.prototype.constructor=$T;$T.prototype.Va=function(a){var b=B(this.l.cf.g,wd().$).G;Bv(new Cv,"vocabulary",b.b()?null:b.c(),O().Wa,Gd()).Va(a)};$T.prototype.AU=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};
$T.prototype.Oa=function(){var a=Zb(hs(this.l.cf.g,wd().$).ha(),n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};$T.prototype.$classData=q({uRa:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.VocabularyEmitter$$anon$8",{uRa:1,f:1,ib:1,Ra:1});function aU(){this.l=null}aU.prototype=new r;aU.prototype.constructor=aU;aU.prototype.Va=function(a){var b=B(this.l.cf.g,Ap().Ud).G;Bv(new Cv,"usage",b.b()?null:b.c(),O().Wa,Gd()).Va(a)};
aU.prototype.AU=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};aU.prototype.Oa=function(){var a=Zb(hs(this.l.cf.g,wd().Ud).ha(),n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};aU.prototype.$classData=q({vRa:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.VocabularyEmitter$$anon$9",{vRa:1,f:1,ib:1,Ra:1});function bU(){}bU.prototype=new r;bU.prototype.constructor=bU;bU.prototype.a=function(){return this};
function cU(a,b){a=Ke(M(),b);return(new wT).P((new Q).a(),a)}bU.prototype.$classData=q({URa:0},!1,"amf.plugins.document.vocabularies.model.domain.DialectDomainElement$",{URa:1,f:1,q:1,n:1});var $Qa=void 0;function dU(){$Qa||($Qa=(new bU).a());return $Qa}function eU(){}eU.prototype=new r;eU.prototype.constructor=eU;eU.prototype.a=function(){return this};function aRa(a,b){a=Ke(M(),b);return(new fU).P((new Q).a(),a)}
eU.prototype.$classData=q({aSa:0},!1,"amf.plugins.document.vocabularies.model.domain.DocumentMapping$",{aSa:1,f:1,q:1,n:1});var bRa=void 0;function cRa(){bRa||(bRa=(new eU).a());return bRa}function gU(){}gU.prototype=new r;gU.prototype.constructor=gU;gU.prototype.a=function(){return this};function hU(a,b){a=Ke(M(),b);return(new jN).P((new Q).a(),a)}gU.prototype.$classData=q({eSa:0},!1,"amf.plugins.document.vocabularies.model.domain.NodeMapping$",{eSa:1,f:1,q:1,n:1});var dRa=void 0;
function iU(){dRa||(dRa=(new gU).a());return dRa}function eRa(a,b){var c=cg().OD,e=t(new u,function(){return function(a){if(null!==a){var b=a.pa();a=a.Ba();return b+"-\x3e"+a}throw(new v).d(a);}}(a)),f=Ce().s;b=De(b,e,f).ng(",");return Eb(a,c,b)}
function ET(a){a=Wa().Ia(Xp(a.ca(),cg().OD));if(a.b())a=w();else{a=a.c();a=kd(ta(),a,",",0);var b=pc(fc().db,G()),c=a.j.length,e=0,f=b;a:for(;;){if(e!==c){b=1+e|0;e=a.j[e];e=kd(ta(),e,"-\x3e",0);f=f.Zb((new P).N(e.j[1],e.j[0]));e=b;continue a}break}a=(new A).d(f)}return a.b()?null:a.c()}function jU(){}jU.prototype=new r;jU.prototype.constructor=jU;jU.prototype.a=function(){return this};function fRa(a,b){a=Ke(M(),b);return(new fN).P((new Q).a(),a)}
jU.prototype.$classData=q({lSa:0},!1,"amf.plugins.document.vocabularies.model.domain.PropertyMapping$",{lSa:1,f:1,q:1,n:1});var gRa=void 0;function hRa(){gRa||(gRa=(new jU).a());return gRa}function kU(){}kU.prototype=new r;kU.prototype.constructor=kU;kU.prototype.a=function(){return this};function iRa(a,b){a=Ke(M(),b);return(new lU).P((new Q).a(),a)}kU.prototype.$classData=q({mSa:0},!1,"amf.plugins.document.vocabularies.model.domain.PublicNodeMapping$",{mSa:1,f:1,q:1,n:1});var jRa=void 0;
function kRa(){jRa||(jRa=(new kU).a());return jRa}function mU(){}mU.prototype=new r;mU.prototype.constructor=mU;mU.prototype.a=function(){return this};function lRa(a,b){a=Ke(M(),b);return(new kN).P((new Q).a(),a)}mU.prototype.$classData=q({nSa:0},!1,"amf.plugins.document.vocabularies.model.domain.UnionNodeMapping$",{nSa:1,f:1,q:1,n:1});var mRa=void 0;function nRa(){mRa||(mRa=(new mU).a());return mRa}function nU(){XM.call(this);this.uu=this.su=this.xL=null}nU.prototype=new GGa;
nU.prototype.constructor=nU;nU.prototype.Jaa=function(a){return oRa(this,a)};function pRa(a,b){var c=a.xL,e=B(b.ca(),b.$).G,e=e.b()?null:e.c();a.xL=c.Zb((new P).N(e,b));b.$h||(c=a.uu,e=B(b.ca(),b.$).G,e=e.b()?null:e.c(),dc(c,e,b));return a}function oU(a,b,c){a=a.bo(b,t(new u,function(){return function(a){return a.xL}}(a)),c);b=new qRa;if(a.b())return w();b=Qr(b);a=a.c();return b.Ia(a)}
function rRa(a,b){var c=Nr(),c=a.bo(b,t(new u,function(){return function(a){return a.tG}}(a)),c);if(x(c)&&(c=c.i,AA(c)))return(new A).d(c);a=dca(a,b);if(a.b())return w();a=a.c();M();b=(new N).a();b=(new WM).P((new Q).a(),b);return(new A).d(Te(b,a))}nU.prototype.qu=function(){return(new dd).Qd(this.xL).Rb.gf().kd()};
function oRa(a,b){var c=a.ai.Ta(b);if(x(c)&&(c=c.i)&&c.$classData&&c.$classData.v.Bma)return c;var c=a.su,e=(new Np).a(),f=pc(fc().db,G()),c=(new nU).XU(f,c,e);a.ai=a.ai.Zb((new P).N(b,c));return c}nU.prototype.XU=function(a,b,c){this.xL=a;this.su=b;this.uu=c;XM.prototype.m1.call(this,pc(fc().db,G()),pc(fc().db,G()),pc(fc().db,G()),pc(fc().db,G()),pc(fc().db,G()),b,c);return this};
function sRa(a,b){var c=Nr(),c=a.bo(b,t(new u,function(){return function(a){return a.OH}}(a)),c);if(x(c)&&(c=c.i,tRa(c)))return(new A).d(c);a=dca(a,b);if(a.b())return w();a=a.c();M();b=(new N).a();b=(new TM).P((new Q).a(),b);return(new A).d(Te(b,a))}nU.prototype.$classData=q({Bma:0},!1,"amf.plugins.document.vocabularies.parser.dialects.DialectDeclarations",{Bma:1,NY:1,eN:1,f:1});function pU(){this.rb=this.W=this.m=this.Ff=null}pU.prototype=new r;pU.prototype.constructor=pU;
function uRa(a,b,c,e){var f=(new ph).e("(\\{[^}]+\\})"),g=G();for(b=Mt((new qh).Di(f.ia,g),b);b.Qa();)if(f=b.My().split("{").join("").split("}").join(""),g=e.Ib(t(new u,function(a,b){return function(a){a=B(a.g,sf().$).G;return(a.b()?null:a.c())===b}}(a,f))),x(g)){var h=g.i,g=B(h.g,sf().Uh).G;if(1!==((g.b()?0:g.c())|0)){var g=a.m,k=of().hf,h=h.k,f="PropertyMapping for idTemplate variable '"+f+"' must be mandatory",l=w();Cc(g,k,h,l,f,c.ga)}}else if(w()===g)g=a.m,k=of().hf,f="Missing propertyMapping for idTemplate variable '"+
f+"'",h=w(),Cc(g,k,"",h,f,c.ga);else throw(new v).d(g);}function vRa(a,b,c){a.Ff=b;a.m=c;var e=b.Gg.Vd,f=Pc();a.W=L(e,f,c);c=Ke(M(),a.W);c=(new mN).P((new Q).a(),c);e=b.ga;f=Ap().nc;c=Eb(c,f,e);a.rb=Te(c,b.ga);return a}
function wRa(a){var b=yc((new K).Y(a.W),"usage");if(!b.b()){var c=b.c(),e=(new RM).Vb(c.i,a.m),b=a.rb,f=ed().Ud,e=e.Pf(),c=Ke(M(),c);Fh(b,f,e,c)}Jf(a.m,"library",a.rb.k,a.W);b=xRa(a.rb,a.W,a.Ff.U,a.m);f=jd(a.rb);b=yRa(b,f.b()?a.rb.k:f.c());Tc(a.m.ad.Gn)&&(f=a.rb,c=(new dd).Qd(a.m.ad.Gn).Rb.gf().kd(),e=ge().ch,qf(f,e,c));a.MA(a.Ff,a.W);f=a.m.ad.qu();f.X(t(new u,function(a){return function(b){if(bg(b))return zRa(a,b);if(he(b))B(b.g,Tj().Qi).X(t(new u,function(a){return function(b){return zRa(a,b)}}(a)));
else throw(new v).d(b);}}(a)));f.Fa()&&(c=a.rb,e=Ug().Mc,Vg(c,e,f));b.Mw().Fa()&&(f=a.rb,b=b.Mw(),c=Nl().qc,Vg(f,c,b));B(a.rb.g,ed().Mc).X(t(new u,function(a){return function(b){if(he(b)&&!b.$h){var c=a.m.Yh,e=B(b.g,b.$).G,e=e.b()?null:e.c();dc(c,e,b)}}}(a)));ec(a.m.Yh);return ARa(a.rb)}d=pU.prototype;
d.pda=function(){var a=yc((new K).Y(this.W),"dialect");if(!a.b()){var b=a.c(),c=(new RM).Vb(b.i,this.m),a=this.rb,e=ed().$,c=c.Pf(),b=Ke(M(),b);Fh(a,e,c,b)}a=yc((new K).Y(this.W),"usage");a.b()||(b=a.c(),c=(new RM).Vb(b.i,this.m),a=this.rb,e=ed().Ud,c=c.Pf(),b=Ke(M(),b),Fh(a,e,c,b));a=yc((new K).Y(this.W),"version");a.b()||(b=a.c(),c=ja((new RM).Vb(b.i,this.m).Hf().t),a=this.rb,e=ed().Tm,c=Nh(new Oh,c,Ke(M(),b.i)),b=Ke(M(),b),Fh(a,e,c,b));Jf(this.m,"dialect",this.rb.k,this.W);a=xRa(this.rb,this.W,
this.Ff.U,this.m);e=jd(this.rb);a=yRa(a,e.b()?this.rb.k:e.c());Tc(this.m.ad.Gn)&&(e=this.rb,b=(new dd).Qd(this.m.ad.Gn).Rb.gf().kd(),c=ge().ch,qf(e,c,b));this.MA(this.Ff,this.W);e=this.m.ad.qu();e.X(t(new u,function(a){return function(b){if(bg(b))return zRa(a,b);if(he(b))B(b.g,Tj().Qi).X(t(new u,function(a){return function(b){return zRa(a,b)}}(a)));else throw(new v).d(b);}}(this)));e.Fa()&&(b=this.rb,c=Ug().Mc,Vg(b,c,e));a.Mw().Fa()&&(e=this.rb,a=a.Mw(),b=Nl().qc,Vg(e,b,a));BRa(this,this.W,this.rb.k);
B(this.rb.g,ed().Mc).X(t(new u,function(a){return function(b){if(he(b)&&!b.$h){var c=a.m.Yh,e=B(b.g,b.$).G,e=e.b()?null:e.c();dc(c,e,b)}}}(this)));ec(this.m.Yh);return this.rb};
function CRa(a,b,c){var e=Pc();b=L(b,e,a.m);b=yc((new K).Y(b),"library");if(x(b)&&(e=b.i,null!==e)){b=B(a.rb.g,ed().$).G;b=b.b()?null:b.c();var f=B(a.rb.g,ed().Tm).G;b=b+" "+(f.b()?null:f.c())+" / Library";cRa();R();f=a.W;R();var f=aRa(0,lq(R(),f,O().ua)),g=OA().Sx;b=Eb(f,g,b);b=Te(b,c+"/modules");e=e.i;f=Pc();e=L(e,f,a.m);e=yc((new K).Y(e),"declares");if(x(e))return e=e.i,f=e.i,g=Pc(),f=L(f,g,a.m).Bb,c=t(new u,function(a,b,c){return function(e){var f=e.i,g=zc(),f=L(f,g,a.m).ya,g=e.Da,E=zc(),g=L(g,
E,a.m).ya;e=iRa(kRa(),e);E=MA().$;e=Eb(e,E,g);g=(new Cf).e(g);g=b+"/modules/"+Gj(g.zd);e=Te(e,g);g=oU(a.m.ad,f,Nr());if(x(g))return f=g.i.k,g=MA().mv,(new A).d(Eb(e,g,f));Df(a.m,f,b,c);return w()}}(a,c,e)),e=uv(),c=f.ka(c,e.gc),a=(new DRa).ZG(a),e=z(),a=c.$b(a,e.s),c=OA().$t,(new A).d(Vg(b,c,a))}return w()}
function zRa(a,b){var c=B(b.ca(),cg().Jg),e=t(new u,function(a,b){return function(c){var e=c.G,e=e.b()?null:e.c(),f=C().Kc;if(e===Gc(D(new F,f,"anyNode")))return c=c.G,(new A).d(c.b()?null:c.c());var e=!1,f=null,y=c.G,y=oU(a.m.ad,y.b()?null:y.c(),Nr());if(x(y)&&(e=!0,f=y,y=f.i,he(y)&&Gqa(b)))return ERa(a,b,y),FRa(a,b,y),(new A).d(y.k);if(e)return(new A).d(f.i.k);f=c.G;e=a.m;f=f.b()?null:f.c();f=uia(via(),f);f.aca?(e=e.sW.Ta(f.IP),e=x(e)?(new A).d(e.i.k+"#/declarations/"+f.ba):w()):e=w();if(x(e))return(new A).d(e.i);
e=a.m;c=c.G;c=c.b()?null:c.c();f=b.k;y=Dd(b.ca(),sf().Jg);y.b()?y=w():(y=y.c(),y=(new A).d(y.t.E));y=y.b()?b.ha():y.c();lca(e,c,f,y);return w()}}(a,b)),f=z(),c=c.ka(e,f.s),e=(new GRa).ZG(a),f=z(),c=c.$b(e,f.s);c.Fa()&&(e=cg().Jg,dr(b,e,c));c=Wa().Ia(ET(b));if(x(c))return c=c.i,e=pc(fc().db,G()),a=pd(c,e,qd(function(a,b){return function(c,e){e=(new P).N(c,e);c=e.ep;var f=e.rq;if(null!==f){e=f.pa();var f=f.Ba(),y=oU(a.m.ad,e,Nr());if(x(y))return c.Hh(y.i.k,f);var f=a.m,y=b.k,I=Dd(b.ca(),sf().OD);I.b()?
I=w():(I=I.c(),I=(new A).d(I.t.E));I=I.b()?b.ha():I.c();lca(f,e,y,I);return c}throw(new v).d(e);}}(a,b))),eRa(b,a)}function HRa(a,b,c){var e=b.i.pb().nb;if(O().Wa===e)return e=fd().qz,a=(new RM).Vb(b.i,a.m).Pf(),b=Ke(M(),b),Fh(c,e,a,b);e=a.m;a=of().hf;c=c.k;var f=w();Cc(e,a,c,f,"'declarationsPath' Option for a documents mapping must be a String",b.ga)}
function IRa(a,b,c){var e=Pc();b=L(b,e,a.m);b=yc((new K).Y(b),"fragments");return x(b)&&(b=b.i,null!==b&&(b=b.i,e=Pc(),b=L(b,e,a.m),b=yc((new K).Y(b),"encodes"),x(b)&&(b=b.i,null!==b)))?(b=b.i,e=Pc(),b=L(b,e,a.m).Bb,c=t(new u,function(a,b){return function(c){var e=c.Da,l=zc(),l=L(e,l,a.m).ya,e=c.i,p=zc(),e=L(e,p,a.m).ya,p=aRa(cRa(),c.i),y=OA().Sx,p=Eb(p,y,l),l=(new Cf).e(l),l=b+"/fragments/"+Gj(l.zd),l=Te(p,l),p=oU(a.m.ad,e,Nr());if(x(p))return c=p.i.k,e=OA().ft,(new A).d(Eb(l,e,c));Df(a.m,e,b,c);
return w()}}(a,c)),e=uv(),c=b.ka(c,e.gc).xb(t(new u,function(){return function(a){return a.qa()}}(a))),a=t(new u,function(){return function(a){return a.c()}}(a)),b=uv(),(new A).d(c.ka(a,b.gc))):w()}
function BRa(a,b,c){M();var e=(new N).a(),e=(new qU).P((new Q).a(),e);c=Te(e,c+"#/documents");b=yc((new K).Y(b),"documents");if(!b.b()){b=b.c();var e=a.m,f=c.k,g=b.i,h=Pc(),g=L(g,h,a.m);Jf(e,"documentsMapping",f,g);e=JRa(a,b.i,c.k);e.b()||(e=e.c(),f=fd().cs,ff(c,f,e));e=IRa(a,b.i,c.k);e.b()||(e=e.c(),f=fd().tz,(new A).d(Vg(c,f,e)));e=CRa(a,b.i,c.k);e.b()||(e=e.c(),f=fd().ay,ff(c,f,e));b=b.i;e=Pc();b=L(b,e,a.m);b=yc((new K).Y(b),"options");x(b)&&(g=b.i,null!==g&&(b=Hc(Ic(g.i),Pc()),x(b)?(b=b.i,Jf(a.m,
"documentsMappingOptions",c.k,b),e=yc((new K).Y(b),"selfEncoded"),e.b()||(e=e.c(),(new A).d(KRa(a,e,c))),e=yc((new K).Y(b),"declarationsPath"),e.b()||(e=e.c(),(new A).d(HRa(a,e,c))),e=yc((new K).Y(b),"keyProperty"),e.b()||(e=e.c(),(new A).d(LRa(a,e,c))),b=yc((new K).Y(b),"referenceStyle"),b.b()?w():(b=b.c(),(new A).d(MRa(a,b,c)))):(b=a.m,e=of().hf,f=c.k,g=g.i,h=w(),Cc(b,e,f,h,"Options for a documents mapping must be a map",g.ga))))}a=a.rb;b=ed().vj;ff(a,b,c)}
function NRa(a,b,c){var e=yc((new K).Y(b),"mapKey"),f=yc((new K).Y(b),"mapTermKey");if(!e.b()&&(e.c(),!f.b())){f.c();var g=a.m,h=of().hf,k=c.k,l=w();Cc(g,h,k,l,"mapKey and mapTermKey are mutually exclusive",b.ga);(new A).d(void 0)}f.b()?e.b()||(b=e.c(),a=(new RM).Vb(b.i,a.m).Pf().u(),b=sf().cu,Eb(c,b,a)):(b=f.c(),e=(new RM).Vb(b.i,a.m).Pf().u(),a=ORa(a,e,c.k,b.i),a.b()||(a=a.c(),b=sf().qr,Eb(c,b,a)))}
function ARa(a){var b=a.E,b=(new nN).P((new Q).a(),b),b=Te(b,a.k),c=jd(a),c=c.b()?a.k:c.c(),e=Ap().nc,b=Eb(b,e,c),c=B(a.g,ed().qc),e=Nl().qc,b=Vg(b,e,c),c=B(a.g,Ap().Ud).G;c.b()||(c=c.c(),e=Ap().Ud,Eb(b,e,c));c=B(a.g,ed().Mc);c.Fa()&&(e=Ug().Mc,Vg(b,e,c));a=xd(a);a.Fa()&&(c=ge().ch,qf(b,c,a));return b}
function PRa(a){var b=a.E,b=(new oN).P((new Q).a(),b),b=Te(b,a.k),c=jd(a),c=c.b()?a.k:c.c(),e=Ap().nc,b=Eb(b,e,c),c=B(a.g,ed().qc),e=Nl().qc,b=Vg(b,e,c),c=B(a.g,Ap().Ud).G;c.b()||(c=c.c(),e=Ap().Ud,Eb(b,e,c));xd(a).Fa()&&(a=xd(a),c=ge().ch,qf(b,c,a));return b}function KRa(a,b,c){var e=b.i.pb().nb;if(O().ui===e)return a=(new RM).Vb(b.i,a.m).Ip(),e=fd().Lz,b=Ke(M(),b),Fh(c,e,a,b);a=a.m;e=of().hf;c=c.k;var f=w();Cc(a,e,c,f,"'selfEncoded' Option for a documents mapping must be a boolean",b.ga)}
function LRa(a,b,c){var e=b.i.pb().nb;if(O().ui===e)return a=(new RM).Vb(b.i,a.m).Ip(),e=fd().wz,b=Ke(M(),b),Fh(c,e,a,b);a=a.m;e=of().hf;c=c.k;var f=w();Cc(a,e,c,f,"'keyProperty' Option for a documents mapping must be a boolean",b.ga)}
function QRa(a,b,c){var e=yc((new K).Y(b),"mapValue"),f=yc((new K).Y(b),"mapTermValue");if(!e.b()&&(e.c(),!f.b())){f.c();var g=a.m,h=of().hf,k=c.k,l=w();Cc(g,h,k,l,"mapValue and mapTermValue are mutually exclusive",b.ga);(new A).d(void 0)}f.b()?e.b()||(b=e.c(),a=(new RM).Vb(b.i,a.m).Pf().u(),b=sf().Bw,Eb(c,b,a)):(b=f.c(),e=(new RM).Vb(b.i,a.m).Pf().u(),a=ORa(a,e,c.k,b.i),a.b()||(a=a.c(),b=sf().cy,Eb(c,b,a)))}
function ERa(a,b,c){var e=B(b.g,sf().cu).G;if(!e.b())if(e=e.c(),c=B(c.g,Tj().Qi).Ib(t(new u,function(a,b){return function(a){a=B(a.g,sf().$).G;return(a.b()?null:a.c())===b}}(a,e))),x(c)){c=c.i;var f=B(c.g,sf().Kh).G;f.b()?(f=C().zg,f=Gc(D(new F,f,e))):f=f.c();c=B(c.g,sf().qr).G;x(c)&&f!==c.i?(gs(b.g,sf().qr),gs(b.g,sf().cu),a=a.m,c=b.k,f=Gc(sf().cu.t),b=B(b.g,sf().cu).E,jca(a,c,f,e,b)):(e=sf().qr,Eb(b,e,f))}else gs(b.g,sf().cu),a=a.m,c=b.k,f=Gc(sf().cu.t),b=B(b.g,sf().cu).E,kca(a,c,f,e,b)}
function MRa(a,b,c){var e=b.i.pb().nb;if(O().Wa===e){Xka||(Xka=(new kv).a());var e=Xka.zv,f=id(b.i);f.b()?f=w():(f=f.c(),f=(new A).d(f.ya));e=e.Ja(f.b()?"":f.c())}else e=!1;if(e)return e=fd().AS,a=(new RM).Vb(b.i,a.m).Pf(),b=Ke(M(),b),Fh(c,e,a,b);a=a.m;e=of().hf;c=c.k;f=w();Cc(a,e,c,f,"'referenceStyle' Option for a documents mapping must be a String [RamlStyle, JsonSchemaStyle]",b.ga)}d.MA=function(a,b){RRa(this,b,a.ga+"#/declarations")};
function FRa(a,b,c){var e=B(b.g,sf().Bw).G;if(!e.b())if(e=e.c(),c=B(c.g,Tj().Qi).Ib(t(new u,function(a,b){return function(a){a=B(a.g,sf().$).G;return(a.b()?null:a.c())===b}}(a,e))),x(c)){c=c.i;var f=B(c.g,sf().Kh).G;f.b()?(f=C().zg,f=Gc(D(new F,f,e))):f=f.c();var g=B(c.g,sf().cy).G;x(g)&&f!==g.i?(gs(c.g,sf().cy),gs(b.g,sf().Bw),a=a.m,c=b.k,f=Gc(sf().Bw.t),b=B(b.g,sf().Bw).E,jca(a,c,f,e,b)):(e=sf().cy,Eb(b,e,f))}else gs(b.g,sf().Bw),a=a.m,c=b.k,f=Gc(sf().Bw.t),b=B(b.g,sf().Bw).E,kca(a,c,f,e,b)}
d.Jo=function(){return this.m};
function RRa(a,b,c){b=yc((new K).Y(b),"nodeMappings");if(!b.b()){var e=b.c(),f=e.i.pb().nb;if(O().ua===f)b=e.i,e=Pc(),L(b,e,a.m).Bb.X(t(new u,function(a,b){return function(c){var e=!1,f=null,g=function(a,b,c){return function(e){if(he(e)){R();var f=b.Da,g=a.m,h=qe(),f=L(f,h,g);e=Eb(e,e.$,f);H(z(),G());return cj(e,c)}if(bg(e))return R(),f=b.Da,g=a.m,h=qe(),f=L(f,h,g),e=Eb(e,e.$,f),H(z(),G()),cj(e,c);e=a.m;f=of().hf;g=w();Cc(e,f,c,g,"Error only valid node mapping or union mapping can be declared",b.ga);
return w()}}(a,c,b),E=c.i.pb().nb;if(O().ua===E){var V=c.i,da=Pc(),sa=L(V,da,a.m);if(yc((new K).Y(sa),"union").qa()){var ua=lRa(nRa(),sa);g(ua);var Ia=yc((new K).Y(sa),"union");if(!Ia.b()){var Pa=Ia.c(),Za=Pa.i.pb().nb;if(O().Nc===Za)try{var db=Pa.i,Qb=qe(),bc=uv().gc,rc=L(db,CM(bc,Qb),a.m),Fc=cg().Jg;dr(ua,Fc,rc)}catch($k){var Rd=gi(Mb(),$k);if(hi(Rd)){var Ld=a.m,ze=of().hf,Td=ua.k,Je=Pa.i,$d=w();Cc(Ld,ze,Td,$d,"Union node mappings must be declared as lists of node mapping references",Je.ga)}else throw $k;
}else{var te=a.m,Hd=of().hf,ie=ua.k,Nd=Pa.i,td=w();Cc(te,Hd,ie,td,"Union node mappings must be declared as lists of node mapping references",Nd.ga)}}var yd=yc((new K).Y(sa),"typeDiscriminator");if(!yd.b()){var ud=yd.c().i,Ve=Pc(),Me=L(ud,Ve,a.m).Bb.ae(pc(fc().db,G()),qd(function(a){return function(b,c){var e=c.i,f=zc(),e=L(e,f,a.m).ya;c=c.Da;f=zc();c=L(c,f,a.m).ya;return b.Zb((new P).N(c,e))}}(a)));eRa(ua,Me)}var Rc=yc((new K).Y(sa),"typeDiscriminatorName");if(!Rc.b()){var me=Rc.c(),Ae=(new RM).Vb(me.i,
a.m).Pf().u(),We=cg().gu;Eb(ua,We,Ae)}var od=(new A).d(ua)}else{var Ad=hU(iU(),sa);g(Ad);Jf(a.m,"nodeMapping",Ad.k,sa);var ue=yc((new K).Y(sa),"classTerm");if(!ue.b()){var Id=ue.c(),gf=(new RM).Vb(Id.i,a.m).Pf().u(),Jd=rRa(a.m.ad,gf);if(x(Jd)){var Vd=Jd.i.k,je=Tj().ov;Eb(Ad,je,Vd)}else{var Wd=a.m,ve=of().hf,$c=Ad.k,we="Cannot find class term with alias "+gf,cd=Id.i,ae=w();Cc(Wd,ve,$c,ae,we,cd.ga)}}var be=yc((new K).Y(sa),"patch");if(!be.b()){var xe=be.c(),ne=(new RM).Vb(xe.i,a.m).Pf().u();if(Tj().ct.Ja(ne))$ka(Ad,
ne);else{var Ed=a.m,Ne=of().hf,hf=Ad.k,Ef="Unsupported node mapping patch operation '"+ne+"'",Vf=xe.i,Xe=w();Cc(Ed,Ne,hf,Xe,Ef,Vf.ga)}}var Ye=yc((new K).Y(sa),"mapping");if(!Ye.b()){var vf=Ye.c().i,Oe=Pc(),Xd=L(vf,Oe,a.m).Bb,Ff=t(new u,function(a,b){return function(c){var e=c.i,f=Pc(),g=L(e,f,a.m),h=fRa(hRa(),g);R();var k=c.Da,l=a.m,p=qe(),y=L(k,p,l),I=sf().$,E=Eb(h,I,y),V=b.k,da=c.Da,sa=zc(),ua=L(da,sa,a.m).ya,Ia=(new Cf).e(ua),Pa=V+"/property/"+Gj(Ia.zd);H(z(),G());cj(E,Pa);Jf(a.m,"propertyMapping",
h.k,g);var Za=yc((new K).Y(g),"propertyTerm");if(x(Za)){var db=Za.i,Qb=(new RM).Vb(db.i,a.m).Pf().u(),bc=sRa(a.m.ad,Qb);if(x(bc)){var rc=bc.i.k,mf=sf().Kh;Eb(h,mf,rc)}else{var Fc=a.m,Ld=of().hf,$c=h.k,td="Cannot find property term with alias "+Qb,cd=db.i,$d=w();Cc(Fc,Ld,$c,$d,td,cd.ga)}}else{var Rd=C().zg,Td=c.Da,Nd=zc(),te=L(Td,Nd,a.m).ya,yd=(new Cf).e(te),ud=Gj(yd.zd),od=Gc(D(new F,Rd,ud)),lf=sf().Kh;Eb(h,lf,od)}var zg=yc((new K).Y(g),"range");if(!zg.b()){var Hd=zg.c(),Ad=Hd.i.pb().nb;if(O().Nc===
Ad){var ze=Hd.i,Ed=qe(),Id=uv().gc,Jd=L(ze,CM(Id,Ed),a.m),Oc=cg().Jg;dr(h,Oc,Jd)}else{var Rc=(new RM).Vb(Hd.i,a.m).Pf().u();if("guid"===Rc){var ng=C().Gb,Je=Gc(D(new F,ng,"guid")),Vd=sf().xf;Eb(h,Vd,Je)}else if("string"===Rc||"integer"===Rc||"boolean"===Rc||"float"===Rc||"decimal"===Rc||"double"===Rc||"duration"===Rc||"dateTime"===Rc||"time"===Rc||"date"===Rc||"anyType"===Rc){var Wd=C().mj,Xd=Gc(D(new F,Wd,Rc)),ie=sf().xf;Eb(h,ie,Xd)}else if("anyUri"===Rc){var ae=qi().ir,be=sf().xf;Eb(h,be,ae)}else if("link"===
Rc){var ce=C().Gb,de=Gc(D(new F,ce,"link")),yh=sf().xf;Eb(h,yh,de)}else if("number"===Rc){var je=qi().jp,ke=sf().xf;Eb(h,ke,je)}else if("uri"===Rc){var le=qi().ir,Ag=sf().xf;Eb(h,Ag,le)}else if("any"===Rc){var me=qi().Xr,ne=sf().xf;Eb(h,ne,me)}else if("anyNode"===Rc){var oe=z(),ve=C().Kc,we=H(oe,(new J).aa([Gc(D(new F,ve,"anyNode"))])),Hf=cg().Jg;dr(h,Hf,we)}else{var Ae=H(z(),(new J).aa([Rc])),ue=cg().Jg;dr(h,ue,Ae)}}}NRa(a,g,h);QRa(a,g,h);var xe=yc((new K).Y(g),"patch");if(!xe.b()){var pe=xe.c(),
Tf=(new RM).Vb(pe.i,a.m).Pf().u();if(sf().ct.Ja(Tf))$ka(h,Tf);else{var Me=a.m,Oe=of().hf,Pe=h.k,Ve="Unsupported property mapping patch operation '"+Tf+"'",Xe=pe.i,Ye=w();Cc(Me,Oe,Pe,Ye,Ve,Xe.ga)}}var Qe=yc((new K).Y(g),"mandatory");if(!Qe.b()){var $e=Qe.c(),Se=Cj((new RM).Vb($e.i,a.m).Ip())?1:0,mi=sf().Uh;lr(h,mi,Se)}var Ne=yc((new K).Y(g),"pattern");if(!Ne.b()){var cf=Ne.c(),Ze=(new RM).Vb(cf.i,a.m).Pf().u(),Re=sf().vl;Eb(h,Re,Ze)}var If=yc((new K).Y(g),"minimum");if(!If.b()){var We=If.c(),gf=We.i.pb().nb;
if(O().Oi===gf){var hf=(new RM).Vb(We.i,a.m).KE().t|0,rf=sf().jj;er(h,rf,hf)}else{var jf=+SRa((new RM).Vb(We.i,a.m)).t,df=sf().jj;er(h,df,jf)}}var kf=yc((new K).Y(g),"unique");if(!kf.b()){var ef=kf.c(),Sf=ef.i.pb().nb;if(O().ui===Sf){var lg=Cj((new RM).Vb(ef.i,a.m).Ip()),li=sf().eG;dj(h,li,lg)}else{var pj=a.m,xf=of().hf;R();var yf=ef.i,Wf=a.m,Gf=qe(),zh=L(yf,Gf,Wf),Bg=w(),Ef=w(),vf=w();pj.Hc(xf.k,"Unique property in a property mapping must be a boolean value",Bg,zh,Ef,xc().tb,vf)}}var Ff=yc((new K).Y(g),
"maximum");if(!Ff.b()){var wf=Ff.c(),Kf=wf.i.pb().nb;if(O().Oi===Kf){var Lf=(new RM).Vb(wf.i,a.m).KE().t,Nf=ea(Lf|0),ig=sf().ij;er(h,ig,Nf)}else{var Kg=+SRa((new RM).Vb(wf.i,a.m)).t,Mf=sf().ij;er(h,Mf,Kg)}}var Of=yc((new K).Y(g),"allowMultiple");if(!Of.b()){var Xf=Of.c(),Yf=Cj((new RM).Vb(Xf.i,a.m).Ip()),Ii=sf().oz;dj(h,Ii,Yf)}var Vf=yc((new K).Y(g),"sorted");if(!Vf.b()){var Xg=Vf.c(),Cg=Cj((new RM).Vb(Xg.i,a.m).Ip()),aj=sf().CJ;dj(h,aj,Cg)}var hg=yc((new K).Y(g),"enum");if(!hg.b()){var kg=hg.c().i,
mg=tv(),yg=L(kg,mg,a.m).Jn,gh=t(new u,function(a){return function(b){var c=b.we();if(rs(c))return(new A).d(c.nq);var c=a.m,e=of().hf;R();var f=a.m,g=qe();b=L(b,g,f);var f=w(),g=w(),h=w();c.Hc(e.k,"Cannot create enumeration constraint from not scalar value",f,b,g,xc().tb,h);return w()}}(a)),Lg=uv(),Ng=yg.ka(gh,Lg.gc),$i=(new rU).ZG(a),Mg=uv();TRa(h,Ng.$b($i,Mg.gc))}var Og=yc((new K).Y(g),"typeDiscriminator");if(!Og.b()){var qj=Og.c().i,dh=Pc(),bh=L(qj,dh,a.m).Bb.ae(pc(fc().db,G()),qd(function(a){return function(b,
c){var e=c.i,f=zc(),e=L(e,f,a.m).ya;c=c.Da;f=zc();c=L(c,f,a.m).ya;return b.Zb((new P).N(c,e))}}(a)));eRa(h,bh)}var ch=yc((new K).Y(g),"typeDiscriminatorName");if(!ch.b()){var ki=ch.c(),Zi=(new RM).Vb(ki.i,a.m).Pf().u(),Ah=cg().gu;Eb(h,Ah,Zi)}bca(a,g,h,a.m.ad,a.m);URa(a,h,g);return h}}(a,Ad)),rf=uv(),cf=Xd.ka(Ff,rf.gc).jn(t(new u,function(){return function(a){return B(a.g,sf().Kh).G.qa()}}(a)));if(null===cf)throw(new v).d(cf);var hg=cf.pa(),kg=cf.Ba(),oe=hg.xb(t(new u,function(){return function(a){return B(a.g,
sf().Kh).G.qa()}}(a))).Ym(t(new u,function(){return function(a){a=B(a.g,sf().Kh).G;return a.b()?null:a.c()}}(a))),wf=t(new u,function(a){return function(b){if(null!==b){var c=b.pa(),e=b.Ba();if(1<e.Ka()){b=a.m;var f=of().hf,g=e.fa().k,c="Property term value must be unique in a node mapping. Term "+c+" repeated",h=e.fa().E;sz(b,f,g,c,h);return e.pc().wa()}}return b.Ba().pc().wa()}}(a)),ce=Ce().s,jf=eA(oe,wf,ce).ce(),Kf=uv(),xf=kg.la(jf,Kf.gc),Pe=Tj().Qi;Vg(Ad,Pe,xf)}var Ze=yc((new K).Y(sa),"extends");
if(!Ze.b()){var Oc=Ze.c(),ke=Hc(Ic(Oc.i),zc());if(x(ke)){var Lf=Uf(Oc.i);if(Ep(Lf))var df=Lf.i,de=(new P).N(df,oU(a.m.ad,df,Or()));else var yg=Oc.i,Mf=zc(),pe=L(yg,Mf,a.m).ya,de=(new P).N(pe,oU(a.m.ad,pe,Pr()));a:{var Qe;if(null!==de){var $e=de.pa(),kf=de.Ba();if(null!==$e&&x(kf)){var Re=kf.i,le=Ke(M(),Oc.i),Se=gL(Re,$e,le);g(Se);Qe=(new A).d(Se);break a}}if(null!==de){var Nf=de.pa();if(null!==Nf){var Gf=hU(iU(),a.W);g(Gf);dz(Gf,Nf,a.W,a.m);Qe=(new A).d(Gf);break a}}throw(new v).d(de);}}else Qe=w();
a:{if(x(Qe)){var yf=Qe.i;if(null!==yf){var ef=H(z(),(new J).aa([yf])),lf=Lc().wi();qf(Ad,lf,ef);break a}}var mf=a.m,zg=of().hf,yh=Ad.k;if(ke.b())var Ag=w();else var zh=ke.c(),Ag=(new A).d(zh.tH.uH(zh.ya));var Hf="Cannot find extended node mapping with reference '"+(Ag.b()?"":Ag.c())+"'",Sf=Oc.i,ig=w();Cc(mf,zg,yh,ig,Hf,Sf.ga)}}var Wf=yc((new K).Y(sa),"idTemplate");if(!Wf.b()){var Kg=Wf.c().i,Bg=qe(),Xg=L(Kg,Bg,a.m);uRa(a,Xg,sa,B(Ad.g,Tj().Qi));var If=Tj().Xx;Eb(Ad,If,Xg)}bca(a,sa,Ad,a.m.ad,a.m);pRa(a.m.ad,
Ad);od=(new A).d(Ad)}}else if(O().Wa===E&&Hc(Ic(c.i),zc()).qa()){var lg=Uf(c.i);if(Ep(lg))var Cg=lg.i,mg=(new P).N(Cg,oU(a.m.ad,Cg,Or()));else var Lg=c.i,bh=zc(),ch=L(Lg,bh,a.m).ya,mg=(new P).N(ch,oU(a.m.ad,ch,Pr()));a:{if(null!==mg){var Mg=mg.pa(),Hj=mg.Ba();if(null!==Mg&&x(Hj)){var Ah=Hj.i,Of=Ke(M(),c.i),dh=gL(Ah,Mg,Of);g(dh);od=(new A).d(dh);break a}}if(null!==mg){var Xf=mg.pa();if(null!==Xf){var Ng=hU(iU(),a.W);g(Ng);dz(Ng,Xf,a.W,a.m);od=(new A).d(Ng);break a}}throw(new v).d(mg);}}else if(O().vq===
E&&Hc(Ic(c.i),zc()).qa()){var wi=Uf(c.i);if(Ep(wi))var Hi=wi.i,Yf=(new P).N(Hi,oU(a.m.ad,Hi,Or()));else var ji=c.i,mj=zc(),xi=L(ji,mj,a.m).ya,Yf=(new P).N(xi,oU(a.m.ad,xi,Pr()));a:{if(null!==Yf){var Og=Yf.pa(),Ij=Yf.Ba();if(null!==Og&&x(Ij)){var nj=Ij.i,oj=Ke(M(),c.i),zk=gL(nj,Og,oj),ng=Eb(zk,zk.$,Og);g(ng);od=(new A).d(ng);break a}}if(null!==Yf){var gh=Yf.pa();if(null!==gh){M();var ki=(new N).a(),Zi=(new jN).P((new Q).a(),ki),li=g(Zi),$i=li.k,pj=kd(ta(),$i,"#",0),Tf=Wj((new md).vc(pj)),mi=a.m,aj=
li.k.split(Tf).join("");hca(mi,gh,aj,c.i);od=w();break a}}throw(new v).d(Yf);}}else od=w();if(x(od)){var e=!0,f=od,Ii=f.i;if(he(Ii))return pRa(a.m.ad,Ii)}if(e){var qj=f.i;if(bg(qj))return pRa(a.m.ad,qj)}if(w()===od){var Pl=a.m,ni=of().hf,Ak="Error parsing shape '"+c+"'",Jj=w();Cc(Pl,ni,b,Jj,Ak,c.ga)}else throw(new v).d(od);}}(a,c)));else if(O().yd!==f){a=a.m;b=of().hf;var f="Invalid type "+f+" for 'nodeMappings' node.",e=e.i,g=w();Cc(a,b,c,g,f,e.ga)}}}
function ORa(a,b,c,e){var f=(new cK).e(b).he;if(C().zg.he===f)return(new A).d(b);f=sRa(a.m.ad,b);if(x(f))return(new A).d(f.i.k);a=a.m;f=of().hf;b="Cannot find property term with alias "+b;var g=w();Cc(a,f,c,g,b,e.ga);return w()}
function JRa(a,b,c){var e=Pc();b=L(b,e,a.m);b=yc((new K).Y(b),"root");if(x(b)&&(e=b.i,null!==e)){b=e.i.pb().nb;var f=O().ua;if(b===f){b=B(a.rb.g,ed().$).G;b=b.b()?null:b.c();f=B(a.rb.g,ed().Tm).G;b=b+" "+(f.b()?null:f.c());e=e.i;f=Pc();e=L(e,f,a.m);cRa();R();f=a.W;R();var f=aRa(0,lq(R(),f,O().ua)),g=OA().Sx;b=Eb(f,g,b);b=Te(b,c+"/root");f=yc((new K).Y(e),"encodes");f.b()||(f=f.c().i,g=zc(),f=L(f,g,a.m).ya,f=oU(a.m.ad,f,Nr()),x(f)&&(f=f.i.k,g=OA().ft,(new A).d(Eb(b,g,f))));e=yc((new K).Y(e),"declares");
e.b()||(e=e.c().i,f=Pc(),e=L(e,f,a.m).Bb,c=t(new u,function(a,b){return function(c){var e=c.i,f=zc(),e=L(e,f,a.m).ya,f=c.Da,g=zc(),f=L(f,g,a.m).ya;c=iRa(kRa(),c);g=MA().$;c=Eb(c,g,f);f=(new Cf).e(f);f=b+"/declaration/"+Gj(f.zd);c=Te(c,f);e=oU(a.m.ad,e,Nr());return x(e)?(e=e.i.k,f=MA().mv,(new A).d(Eb(c,f,e))):w()}}(a,c)),f=uv(),c=e.ka(c,f.gc),a=(new VRa).ZG(a),e=z(),a=c.$b(a,e.s),c=OA().$t,Vg(b,c,a));return(new A).d(b)}}return w()}
d.U1=function(){var a=yc((new K).Y(this.W),"usage");if(!a.b()){var b=a.c(),c=(new RM).Vb(b.i,this.m),e=this.rb,f=ed().Ud,g=c.Pf(),h=Ke(M(),b);Fh(e,f,g,h)}Jf(this.m,"fragment",this.rb.k,this.W);var k=xRa(this.rb,this.W,this.Ff.U,this.m),l=jd(this.rb),p=yRa(k,l.b()?this.rb.k:l.c());if(Tc(this.m.ad.Gn)){var y=this.rb,I=(new dd).Qd(this.m.ad.Gn).Rb.gf().kd(),E=ge().ch;qf(y,E,I)}this.MA(this.Ff,this.W);if(p.Mw().Fa()){var V=this.rb,da=p.Mw(),sa=Nl().qc;Vg(V,sa,da)}var ua=PRa(this.rb);jC();var Ia=Th(R(),
"fragment");R();var Pa=this.W;R();var Za=gF(0,Ia,lq(R(),Pa,O().ua)),db=function(a,b){return function(a){if(he(a)||bg(a))return a=Te(a,b.k+"/fragment"),Eb(a,a.$,"fragment");throw(new v).d(a);}}(this,ua),Qb=Za.i.pb().nb;if(O().ua===Qb){var bc=Za.i,rc=Pc(),Fc=L(bc,rc,this.m);if(yc((new K).Y(Fc),"union").qa()){var Rd=lRa(nRa(),Fc);db(Rd);var Ld=yc((new K).Y(Fc),"union");if(!Ld.b()){var ze=Ld.c(),Td=ze.i.pb().nb;if(O().Nc===Td)try{var Je=ze.i,$d=qe(),te=uv().gc,Hd=L(Je,CM(te,$d),this.m),ie=cg().Jg;dr(Rd,
ie,Hd)}catch(xo){var Nd=gi(Mb(),xo);if(hi(Nd)){var td=this.m,yd=of().hf,ud=Rd.k,Ve=ze.i,Me=w();Cc(td,yd,ud,Me,"Union node mappings must be declared as lists of node mapping references",Ve.ga)}else throw xo;}else{var Rc=this.m,me=of().hf,Ae=Rd.k,We=ze.i,od=w();Cc(Rc,me,Ae,od,"Union node mappings must be declared as lists of node mapping references",We.ga)}}var Ad=yc((new K).Y(Fc),"typeDiscriminator");if(!Ad.b()){var ue=Ad.c().i,Id=Pc(),gf=L(ue,Id,this.m).Bb.ae(pc(fc().db,G()),qd(function(a){return function(b,
c){var e=c.i,f=zc(),e=L(e,f,a.m).ya;c=c.Da;f=zc();c=L(c,f,a.m).ya;return b.Zb((new P).N(c,e))}}(this)));eRa(Rd,gf)}var Jd=yc((new K).Y(Fc),"typeDiscriminatorName");if(!Jd.b()){var Vd=Jd.c(),je=(new RM).Vb(Vd.i,this.m).Pf().u(),Wd=cg().gu;Eb(Rd,Wd,je)}var ve=(new A).d(Rd)}else{var $c=hU(iU(),Fc);db($c);var we=yc((new K).Y(Fc),"classTerm");if(!we.b()){var cd=we.c(),ae=(new RM).Vb(cd.i,this.m).Pf().u(),be=rRa(this.m.ad,ae);if(x(be)){var xe=be.i.k,ne=Tj().ov;Eb($c,ne,xe)}else{var Ed=this.m,Ne=of().hf,
hf=$c.k,Ef="Cannot find class term with alias "+ae,Vf=cd.i,Xe=w();Cc(Ed,Ne,hf,Xe,Ef,Vf.ga)}}var Ye=yc((new K).Y(Fc),"patch");if(!Ye.b()){var vf=Ye.c(),Oe=(new RM).Vb(vf.i,this.m).Pf().u();if(Tj().ct.Ja(Oe))$ka($c,Oe);else{var Xd=this.m,Ff=of().hf,rf=$c.k,cf="Unsupported node mapping patch operation '"+Oe+"'",hg=vf.i,kg=w();Cc(Xd,Ff,rf,kg,cf,hg.ga)}}var oe=yc((new K).Y(Fc),"mapping");if(!oe.b()){var wf=oe.c().i,ce=Pc(),jf=L(wf,ce,this.m).Bb,Kf=t(new u,function(a,b){return function(c){var e=c.i,f=Pc(),
g=L(e,f,a.m),h=fRa(hRa(),g);R();var k=c.Da,l=a.m,p=qe(),y=L(k,p,l),I=sf().$,E=Eb(h,I,y),V=b.k,da=c.Da,sa=zc(),ua=L(da,sa,a.m).ya,Ia=(new Cf).e(ua),Pa=V+"/property/"+Gj(Ia.zd);H(z(),G());cj(E,Pa);Jf(a.m,"propertyMapping",h.k,g);var Za=yc((new K).Y(g),"propertyTerm");if(x(Za)){var db=Za.i,Qb=(new RM).Vb(db.i,a.m).Pf().u(),bc=sRa(a.m.ad,Qb);if(x(bc)){var rc=bc.i.k,mf=sf().Kh;Eb(h,mf,rc)}else{var Fc=a.m,Rc=of().hf,Ld=h.k,$c="Cannot find property term with alias "+Qb,td=db.i,cd=w();Cc(Fc,Rc,Ld,cd,$c,td.ga)}}else{var $d=
C().zg,Rd=c.Da,Td=zc(),Nd=L(Rd,Td,a.m).ya,te=(new Cf).e(Nd),Hd=Gj(te.zd),zg=Gc(D(new F,$d,Hd)),yd=sf().Kh;Eb(h,yd,zg)}var ud=yc((new K).Y(g),"range");if(!ud.b()){var od=ud.c(),lf=od.i.pb().nb;if(O().Nc===lf){var Ad=od.i,ze=qe(),Ed=uv().gc,Id=L(Ad,CM(Ed,ze),a.m),Jd=cg().Jg;dr(h,Jd,Id)}else{var Oc=(new RM).Vb(od.i,a.m).Pf().u();if("guid"===Oc){var ng=C().Gb,Je=Gc(D(new F,ng,"guid")),Vd=sf().xf;Eb(h,Vd,Je)}else if("string"===Oc||"integer"===Oc||"boolean"===Oc||"float"===Oc||"decimal"===Oc||"double"===
Oc||"duration"===Oc||"dateTime"===Oc||"time"===Oc||"date"===Oc||"anyType"===Oc){var Wd=C().mj,Xd=Gc(D(new F,Wd,Oc)),ie=sf().xf;Eb(h,ie,Xd)}else if("anyUri"===Oc){var ae=qi().ir,be=sf().xf;Eb(h,be,ae)}else if("link"===Oc){var ce=C().Gb,de=Gc(D(new F,ce,"link")),yh=sf().xf;Eb(h,yh,de)}else if("number"===Oc){var je=qi().jp,ke=sf().xf;Eb(h,ke,je)}else if("uri"===Oc){var le=qi().ir,Ag=sf().xf;Eb(h,Ag,le)}else if("any"===Oc){var me=qi().Xr,ne=sf().xf;Eb(h,ne,me)}else if("anyNode"===Oc){var oe=z(),ve=C().Kc,
we=H(oe,(new J).aa([Gc(D(new F,ve,"anyNode"))])),Hf=cg().Jg;dr(h,Hf,we)}else{var Tf=H(z(),(new J).aa([Oc])),Ae=cg().Jg;dr(h,Ae,Tf)}}}NRa(a,g,h);QRa(a,g,h);var ue=yc((new K).Y(g),"patch");if(!ue.b()){var xe=ue.c(),pe=(new RM).Vb(xe.i,a.m).Pf().u();if(sf().ct.Ja(pe))$ka(h,pe);else{var Me=a.m,Oe=of().hf,Pe=h.k,Qe="Unsupported property mapping patch operation '"+pe+"'",Ve=xe.i,We=w();Cc(Me,Oe,Pe,We,Qe,Ve.ga)}}var Ne=yc((new K).Y(g),"mandatory");if(!Ne.b()){var Xe=Ne.c(),Ye=Cj((new RM).Vb(Xe.i,a.m).Ip())?
1:0,$e=sf().Uh;lr(h,$e,Ye)}var Se=yc((new K).Y(g),"pattern");if(!Se.b()){var If=Se.c(),mi=(new RM).Vb(If.i,a.m).Pf().u(),cf=sf().vl;Eb(h,cf,mi)}var Ze=yc((new K).Y(g),"minimum");if(!Ze.b()){var Re=Ze.c(),ef=Re.i.pb().nb;if(O().Oi===ef){var gf=(new RM).Vb(Re.i,a.m).KE().t|0,hf=sf().jj;er(h,hf,gf)}else{var kf=+SRa((new RM).Vb(Re.i,a.m)).t,rf=sf().jj;er(h,rf,kf)}}var jf=yc((new K).Y(g),"unique");if(!jf.b()){var df=jf.c(),Sf=df.i.pb().nb;if(O().ui===Sf){var lg=Cj((new RM).Vb(df.i,a.m).Ip()),li=sf().eG;
dj(h,li,lg)}else{var pj=a.m,wf=of().hf;R();var xf=df.i,yf=a.m,Wf=qe(),Ff=L(xf,Wf,yf),Gf=w(),zh=w(),Bg=w();pj.Hc(wf.k,"Unique property in a property mapping must be a boolean value",Gf,Ff,zh,xc().tb,Bg)}}var Ef=yc((new K).Y(g),"maximum");if(!Ef.b()){var vf=Ef.c(),Kf=vf.i.pb().nb;if(O().Oi===Kf){var Lf=(new RM).Vb(vf.i,a.m).KE().t,Nf=ea(Lf|0),ig=sf().ij;er(h,ig,Nf)}else{var Kg=+SRa((new RM).Vb(vf.i,a.m)).t,Of=sf().ij;er(h,Of,Kg)}}var Mf=yc((new K).Y(g),"allowMultiple");if(!Mf.b()){var Vf=Mf.c(),Xf=
Cj((new RM).Vb(Vf.i,a.m).Ip()),Yf=sf().oz;dj(h,Yf,Xf)}var Ii=yc((new K).Y(g),"sorted");if(!Ii.b()){var hg=Ii.c(),Xg=Cj((new RM).Vb(hg.i,a.m).Ip()),Cg=sf().CJ;dj(h,Cg,Xg)}var aj=yc((new K).Y(g),"enum");if(!aj.b()){var kg=aj.c().i,mg=tv(),yg=L(kg,mg,a.m).Jn,gh=t(new u,function(a){return function(b){var c=b.we();if(rs(c))return(new A).d(c.nq);var c=a.m,e=of().hf;R();var f=a.m,g=qe();b=L(b,g,f);var f=w(),g=w(),h=w();c.Hc(e.k,"Cannot create enumeration constraint from not scalar value",f,b,g,xc().tb,h);
return w()}}(a)),Lg=uv(),Ng=yg.ka(gh,Lg.gc),Og=(new rU).ZG(a),$i=uv();TRa(h,Ng.$b(Og,$i.gc))}var Mg=yc((new K).Y(g),"typeDiscriminator");if(!Mg.b()){var qj=Mg.c().i,ch=Pc(),dh=L(qj,ch,a.m).Bb.ae(pc(fc().db,G()),qd(function(a){return function(b,c){var e=c.i,f=zc(),e=L(e,f,a.m).ya;c=c.Da;f=zc();c=L(c,f,a.m).ya;return b.Zb((new P).N(c,e))}}(a)));eRa(h,dh)}var bh=yc((new K).Y(g),"typeDiscriminatorName");if(!bh.b()){var ki=bh.c(),Zi=(new RM).Vb(ki.i,a.m).Pf().u(),Ah=cg().gu;Eb(h,Ah,Zi)}bca(a,g,h,a.m.ad,
a.m);URa(a,h,g);return h}}(this,$c)),xf=uv(),Pe=jf.ka(Kf,xf.gc).jn(t(new u,function(){return function(a){return B(a.g,sf().Kh).G.qa()}}(this)));if(null===Pe)throw(new v).d(Pe);var Ze=Pe.pa(),Oc=Pe.Ba(),ke=Ze.xb(t(new u,function(){return function(a){return B(a.g,sf().Kh).G.qa()}}(this))).Ym(t(new u,function(){return function(a){a=B(a.g,sf().Kh).G;return a.b()?null:a.c()}}(this))),Lf=t(new u,function(a){return function(b){if(null!==b){var c=b.pa(),e=b.Ba();if(1<e.Ka()){b=a.m;var f=of().hf,g=e.fa().k,
c="Property term value must be unique in a node mapping. Term "+c+" repeated",h=e.fa().E;sz(b,f,g,c,h);return e.pc().wa()}}return b.Ba().pc().wa()}}(this)),df=Ce().s,de=eA(ke,Lf,df).ce(),yg=uv(),Mf=Oc.la(de,yg.gc),pe=Tj().Qi;Vg($c,pe,Mf)}var Qe=yc((new K).Y(Fc),"extends");if(!Qe.b()){var $e=Qe.c(),kf=Hc(Ic($e.i),zc());if(x(kf)){var Re=Uf($e.i);if(Ep(Re))var le=Re.i,Se=(new P).N(le,oU(this.m.ad,le,Or()));else var Nf=$e.i,Gf=zc(),yf=L(Nf,Gf,this.m).ya,Se=(new P).N(yf,oU(this.m.ad,yf,Pr()));a:{var ef;
if(null!==Se){var lf=Se.pa(),mf=Se.Ba();if(null!==lf&&x(mf)){var zg=mf.i,yh=Ke(M(),$e.i),Ag=gL(zg,lf,yh);db(Ag);ef=(new A).d(Ag);break a}}if(null!==Se){var zh=Se.pa();if(null!==zh){var Hf=hU(iU(),this.W);db(Hf);dz(Hf,zh,this.W,this.m);ef=(new A).d(Hf);break a}}throw(new v).d(Se);}}else ef=w();a:{if(x(ef)){var Sf=ef.i;if(null!==Sf){var ig=H(z(),(new J).aa([Sf])),Wf=Lc().wi();qf($c,Wf,ig);break a}}var Kg=this.m,Bg=of().hf,Xg=$c.k;if(kf.b())var If=w();else var lg=kf.c(),If=(new A).d(lg.tH.uH(lg.ya));
var Cg="Cannot find extended node mapping with reference '"+(If.b()?"":If.c())+"'",mg=$e.i,Lg=w();Cc(Kg,Bg,Xg,Lg,Cg,mg.ga)}}var bh=yc((new K).Y(Fc),"idTemplate");if(!bh.b()){var ch=bh.c().i,Mg=qe(),Hj=L(ch,Mg,this.m);uRa(this,Hj,Fc,B($c.g,Tj().Qi));var Ah=Tj().Xx;Eb($c,Ah,Hj)}bca(this,Fc,$c,this.m.ad,this.m);pRa(this.m.ad,$c);ve=(new A).d($c)}}else if(O().Wa===Qb&&Hc(Ic(Za.i),zc()).qa()){var Of=Uf(Za.i);if(Ep(Of))var dh=Of.i,Xf=(new P).N(dh,oU(this.m.ad,dh,Or()));else var Ng=Za.i,wi=zc(),Hi=L(Ng,
wi,this.m).ya,Xf=(new P).N(Hi,oU(this.m.ad,Hi,Pr()));a:{if(null!==Xf){var Yf=Xf.pa(),ji=Xf.Ba();if(null!==Yf&&x(ji)){var mj=ji.i,xi=Ke(M(),Za.i),Og=gL(mj,Yf,xi);db(Og);ve=(new A).d(Og);break a}}if(null!==Xf){var Ij=Xf.pa();if(null!==Ij){var nj=hU(iU(),this.W);db(nj);dz(nj,Ij,this.W,this.m);ve=(new A).d(nj);break a}}throw(new v).d(Xf);}}else if(O().vq===Qb&&Hc(Ic(Za.i),zc()).qa()){var oj=Uf(Za.i);if(Ep(oj))var zk=oj.i,ng=(new P).N(zk,oU(this.m.ad,zk,Or()));else var gh=Za.i,ki=zc(),Zi=L(gh,ki,this.m).ya,
ng=(new P).N(Zi,oU(this.m.ad,Zi,Pr()));a:{if(null!==ng){var li=ng.pa(),$i=ng.Ba();if(null!==li&&x($i)){var pj=$i.i,Tf=Ke(M(),Za.i),mi=gL(pj,li,Tf),aj=Eb(mi,mi.$,li);db(aj);ve=(new A).d(aj);break a}}if(null!==ng){var Ii=ng.pa();if(null!==Ii){M();var qj=(new N).a(),Pl=(new jN).P((new Q).a(),qj),ni=db(Pl),Ak=ni.k,Jj=kd(ta(),Ak,"#",0),$k=Wj((new md).vc(Jj)),wl=this.m,Am=ni.k.split($k).join("");hca(wl,Ii,Am,Za.i);ve=w();break a}}throw(new v).d(ng);}}else ve=w();if(x(ve)){var ip=ve.i;null!==ip&&vj(ua.g,
Rl().ob,ip,(M(),(new N).a()))}return ua};function URa(a,b,c){var e=B(b.g,sf().xf).G;if(!e.b()){var e=e.c(),f=C().Gb;e===Gc(D(new F,f,"guid"))?(e=B(b.g,sf().eG).G,e=!(e.b()?0:e.c())):e=!1;if(e){a=a.m;e=of().h6;f=b.k;b=B(b.g,sf().$).G;b="Declaration of property '"+(b.b()?null:b.c())+"' with range GUID and without unique constraint";var g=w();iL(a,e,f,g,b,c.ga)}}}d.$classData=q({vSa:0},!1,"amf.plugins.document.vocabularies.parser.dialects.DialectsParser",{vSa:1,f:1,$r:1,pSa:1});
function WRa(){this.GC=0;this.zo=this.vg=null;this.Qn=!1}WRa.prototype=new LK;WRa.prototype.constructor=WRa;d=WRa.prototype;d.a=function(){KK.prototype.a.call(this);XRa=this;this.vg=ih().ba;var a=z(),b=[ih().ba];this.zo=H(a,(new J).aa(b));this.Qn=!1;return this};d.oI=function(a,b){return ffa(a)?(new A).d(YRa(new sU,Xp(a.g,Dm().ob),gC(),b.jc).XB()):w()};d.bF=function(){return TDa()};d.aE=function(a){return ffa(a)};
function ZRa(a,b){b=b.Gg;return bd(b)?(b=b.Vd.Bd.we(),Aw(b)?!b.Bb.Cd(t(new u,function(){return function(a){a=a.Da.we().ya;return 0<=(a.length|0)&&"swagger"===a.substring(0,7)}}(a))):!0):!1}d.Gy=function(){return G()};d.OA=function(a,b){var c=a.Gg;return bd(c)?(b=(new bQ).Vk(a.ga,b.yf,b,w(),w(),w(),py().On),(new A).d(Ila(Jla(c.Vd,a.ga,a.xC,b)))):w()};d.py=function(){return H(z(),(new J).aa(["application/amf+json","application/amf+yaml","application/payload+json","application/payload+yaml"]))};
d.f0=function(a,b,c){return b&&b.$classData&&b.$classData.v.B8&&ffa(a)?(a=YRa(new sU,Xp(a.g,Dm().ob),gC(),c.jc).XB(),b.IM=(new A).d(a),!0):!1};d.zF=function(){return this.zo};d.dF=function(a,b){return(new pA).VG(yk(),b).He(a)};d.wh=function(){return this.vg};d.Sp=function(){var a=z(),b=[ufa(),kFa()];return H(a,(new J).aa(b))};d.SB=function(a){var b;b=a.Gg;bd(b)?b.Cv.b()?b=!0:(b=b.Cv.c().Bt,b=!(0<=(b.length|0)&&"%"===b.substring(0,1))):b=!1;return b&&ZRa(this,a)};
d.cn=function(){return hb(ib(),jb(function(){return function(){return IK()}}(this)),um())};d.LB=function(){return this.Qn};d.Xy=function(){return Xs()};d.$classData=q({wTa:0},!1,"amf.plugins.document.webapi.PayloadPlugin$",{wTa:1,zz:1,f:1,wq:1});var XRa=void 0;function IK(){XRa||(XRa=(new WRa).a());return XRa}function tU(){zN.call(this);this.$A=this.of=null}tU.prototype=new PHa;tU.prototype.constructor=tU;function $Ra(){}$Ra.prototype=tU.prototype;
tU.prototype.Ci=function(a,b,c){zN.prototype.Ci.call(this,a,b,c);this.of=(new uU).sA(this);this.$A=wt();return this};tU.prototype.Pg=function(){return this.$A};tU.prototype.Qea=function(){return"/definitions/"};tU.prototype.$classData=q({Zma:0},!1,"amf.plugins.document.webapi.contexts.Oas2SpecEmitterContext",{Zma:1,gna:1,hS:1,f:1});function vU(){zN.call(this);this.$A=this.of=null}vU.prototype=new PHa;vU.prototype.constructor=vU;
vU.prototype.Ci=function(a,b,c){zN.prototype.Ci.call(this,a,b,c);this.of=(new aSa).sA(this);this.$A=xt();return this};vU.prototype.Pg=function(){return this.$A};vU.prototype.Qea=function(){return"/components/schemas/"};vU.prototype.$classData=q({cna:0},!1,"amf.plugins.document.webapi.contexts.Oas3SpecEmitterContext",{cna:1,gna:1,hS:1,f:1});function bSa(){this.i3=this.Q=null}bSa.prototype=new r;bSa.prototype.constructor=bSa;d=bSa.prototype;
d.TGa=function(){return wU(function(a){return function(b,c,e,f,g){return(new xU).Cr(b,c,e,f,g,a.Q)}}(this))};d.mda=function(){return vv(function(a){return function(b,c,e){return(new cSa).a1(b,c,e,a.Q)}}(this))};d.pF=function(){return fla(this)};d.Ida=function(){return yU(function(a){return function(b,c,e,f){return(new dSa).i1(b,c,e,f,a.Q)}}(this))};d.Kca=function(){return vv(function(a){return function(b,c,e){return(new eSa).uA(b,c,e,a.Q)}}(this))};
d.oaa=function(){return yU(function(a){return function(b,c,e,f){return(new fSa).$0(b,c,e,f,a.Q)}}(this))};d.uaa=function(){return qd(function(a){return function(b,c){var e=new zU;if(null===a)throw Lb(Mb(),null);e.Pa=a;e.N2=b;AU.prototype.FK.call(e,b,c,a.Q);e.Xd="";return e}}(this))};
d.RN=function(){return qd(function(a){return function(b,c){var e=new FN;if(null===a)throw Lb(Mb(),null);e.Pa=a;e.lW=b;Hw.prototype.Yaa.call(e,b,c,a.Q);b=z();c=new BU;if(null===e)throw Lb(Mb(),null);c.l=e;e.gI=H(b,(new J).aa([c]));return e}}(this))};d.QS=function(){return qd(function(a){return function(b,c){var e=new CU;if(null===a)throw Lb(Mb(),null);e.Pa=a;e.$_=b;DU.prototype.EK.call(e,b,c,a.Q);e.Xd="";return e}}(this))};
d.lea=function(){return qd(function(a){return function(b,c){return(new gSa).OO(b,c,a.Q)}}(this))};d.L_=function(){return vv(function(a){return function(b,c){var e=new EU;if(null===a)throw Lb(Mb(),null);e.Pa=a;e.sO=b;FU.prototype.bba.call(e,b,c,G());e.Da="";return e}}(this))};d.Kaa=function(){return this.mda()};d.lba=function(a){this.Q=a;this.i3="schemas";return this};
d.gEa=function(a){if(Ol(a))return(new A).d(hSa().jd);var b=this.Q.jc,c=wo().ey,e=a.k,f=w(),g=Zb(a.ha(),n(Fd));a=jd(a);b.Hc(c.k,e,f,"Document has no header.",g,xc().tb,a);return w()};d.nda=function(){return hla(this)};d.dEa=function(){return vv(function(a){return function(b,c,e){return(new iSa).VO(b,c,e,a.Q)}}(this))};d.aDa=function(){return vv(function(a){return function(b,c,e){return(new jSa).OK(b,c,e,a.Q)}}(this))};
d.$classData=q({QTa:0},!1,"amf.plugins.document.webapi.contexts.Raml08EmitterVersionFactory",{QTa:1,f:1,$Ta:1,O7:1});function BU(){this.l=null}BU.prototype=new r;BU.prototype.constructor=BU;BU.prototype.Va=function(){var a=this.l.Pa.Q.jc,b=wo().ey,c=this.l.lW.k,e=w(),f="Custom facets not supported for vendor "+this.l.Pa.Q.Pg(),g=Zb(this.l.lW.E,n(Fd)),h=Yb(this.l.lW);a.Hc(b.k,c,e,f,g,xc().tb,h)};BU.prototype.Oa=function(){return jq(Cq(),this.l.lW.E,n(Fd))};
BU.prototype.$classData=q({VTa:0},!1,"amf.plugins.document.webapi.contexts.Raml08EmitterVersionFactory$$anon$4$$anon$5",{VTa:1,f:1,ib:1,Ra:1});function GU(){zv.call(this);this.$A=this.of=null}GU.prototype=new bIa;GU.prototype.constructor=GU;GU.prototype.Pg=function(){return this.$A};GU.prototype.uU=function(a,b){var c=HN();zv.prototype.Ci.call(this,a,c,b);this.of=(new bSa).lba(this);this.$A=oc();return this};
GU.prototype.$classData=q({WTa:0},!1,"amf.plugins.document.webapi.contexts.Raml08SpecEmitterContext",{WTa:1,jna:1,hS:1,f:1});function kSa(){this.m=null}kSa.prototype=new r;kSa.prototype.constructor=kSa;d=kSa.prototype;d.aEa=function(){return vv(function(a){return function(b,c,e){return(new lSa).XO(b,c,!!e,a.m)}}(this))};d.Q1=function(){return vv(function(a){return function(b,c,e){return(new RO).$m(b,c,!!e,a.m)}}(this))};
d.k0=function(){return wU(function(a){return function(b,c,e,f,g){return(new mSa).WO(b,c,e,f,!!g,a.m)}}(this))};d.Hda=function(){return vv(function(a){return function(b,c,e){return(new nSa).$m(b,c,!!e,a.m)}}(this))};d.o2=function(){return vv(function(a){return function(b,c,e){return(new oSa).$m(b,c,!!e,a.m)}}(this))};d.cDa=function(){return vv(function(a){return function(b,c,e){return(new IO).$m(b,c,!!e,a.m)}}(this))};d.qs=function(a){this.m=a;return this};
d.uF=function(){return yU(function(a){return function(b,c,e,f){e=!!e;return HU(IU(),b,c,e,f,a.m)}}(this))};d.$classData=q({XTa:0},!1,"amf.plugins.document.webapi.contexts.Raml08VersionFactory",{XTa:1,f:1,eUa:1,P7:1});function pSa(){this.i3=this.Q=null}pSa.prototype=new r;pSa.prototype.constructor=pSa;d=pSa.prototype;d.TGa=function(){return wU(function(a){return function(b,c,e,f,g){return(new JU).Cr(b,c,e,f,g,a.Q)}}(this))};
d.mda=function(){return vv(function(a){return function(b,c,e){return(new KU).a1(b,c,e,a.Q)}}(this))};d.pF=function(){return fla(this)};d.Ida=function(){return yU(function(a){return function(b,c,e,f){return(new LU).i1(b,c,e,f,a.Q)}}(this))};d.Kca=function(){return vv(function(a){return function(b,c,e){return(new qSa).uA(b,c,e,a.Q)}}(this))};d.oaa=function(){return yU(function(a){return function(b,c,e,f){return(new MU).$0(b,c,e,f,a.Q)}}(this))};
d.uaa=function(){return qd(function(a){return function(b,c){return(new rSa).FK(b,c,a.Q)}}(this))};d.RN=function(){return qd(function(a){return function(b,c){return sSa(b,c,a.Q)}}(this))};d.QS=function(){return qd(function(a){return function(b,c){return(new tSa).EK(b,c,a.Q)}}(this))};d.lea=function(){return qd(function(a){return function(b,c){return(new uSa).OO(b,c,a.Q)}}(this))};d.L_=function(){return vv(function(a){return function(b,c,e){return(new vSa).GK(b,c,e,a.Q)}}(this))};d.Kaa=function(){return this.mda()};
d.lba=function(a){this.Q=a;this.i3="types";return this};d.gEa=function(a){if(Pm(a))return(new A).d(Uv().jd);if(Rm(a))return(new A).d(Tv().jd);if(Ol(a))return(new A).d(wSa().jd);var b=this.Q.jc,c=wo().ey,e=a.k,f=w(),g=Zb(a.ha(),n(Fd));a=jd(a);b.Hc(c.k,e,f,"Document has no header.",g,xc().tb,a);return w()};d.nda=function(){return hla(this)};d.dEa=function(){return vv(function(a){return function(b,c,e){return(new xSa).VO(b,c,e,a.Q)}}(this))};
d.aDa=function(){return vv(function(a){return function(b,c,e){return(new NU).OK(b,c,e,a.Q)}}(this))};d.$classData=q({YTa:0},!1,"amf.plugins.document.webapi.contexts.Raml10EmitterVersionFactory",{YTa:1,f:1,$Ta:1,O7:1});function OU(){zv.call(this);this.$A=this.of=null}OU.prototype=new bIa;OU.prototype.constructor=OU;function ySa(){}ySa.prototype=OU.prototype;OU.prototype.Ci=function(a,b,c){zv.prototype.Ci.call(this,a,b,c);this.of=(new pSa).lba(this);this.$A=nc();return this};OU.prototype.Pg=function(){return this.$A};
OU.prototype.$classData=q({hna:0},!1,"amf.plugins.document.webapi.contexts.Raml10SpecEmitterContext",{hna:1,jna:1,hS:1,f:1});function PU(){this.m=null}PU.prototype=new r;PU.prototype.constructor=PU;d=PU.prototype;d.aEa=function(){return vv(function(a){return function(b,c,e){return(new zSa).XO(b,c,!!e,a.m)}}(this))};d.Q1=function(){return vv(function(a){return function(b,c,e){return(new QU).$m(b,c,!!e,a.m)}}(this))};
d.k0=function(){return wU(function(a){return function(b,c,e,f,g){return(new ASa).WO(b,c,e,f,!!g,a.m)}}(this))};d.Hda=function(){return vv(function(a){return function(b,c,e){return(new OO).$m(b,c,!!e,a.m)}}(this))};d.o2=function(){return vv(function(a){return function(b,c,e){return(new BSa).$m(b,c,!!e,a.m)}}(this))};d.cDa=function(){return vv(function(a){return function(b,c,e){return(new IO).$m(b,c,!!e,a.m)}}(this))};d.qs=function(a){this.m=a;return this};
d.uF=function(){return yU(function(a){return function(b,c,e,f){e=!!e;return RU(SU(),b,c,TU(e,!1),f,a.m)}}(this))};d.$classData=q({ZTa:0},!1,"amf.plugins.document.webapi.contexts.Raml10VersionFactory",{ZTa:1,f:1,eUa:1,P7:1});function UU(){this.h2=null}UU.prototype=new r;UU.prototype.constructor=UU;UU.prototype.Ob=function(a){R();var b=B(this.h2.ca(),Db().wd).G,b=Fva(0,b.b()?this.h2.Yb().c():b.c());T(a.r,b)};function CSa(a){var b=new UU;b.h2=a;return b}
UU.prototype.Oa=function(){return jq(Cq(),this.h2.ha(),n(Fd))};UU.prototype.$classData=q({dUa:0},!1,"amf.plugins.document.webapi.contexts.RamlSpecEmitterContext$$anon$6",{dUa:1,f:1,lh:1,Ra:1});function VU(){}VU.prototype=new r;VU.prototype.constructor=VU;VU.prototype.a=function(){return this};
function yKa(a,b){a=Qv(hSa()).gh;if(Rv(qu(new ru,a,b,b.length|0)))return(new A).d(hSa());a=Qv(wSa()).gh;if(Rv(qu(new ru,a,b,b.length|0)))return(new A).d(wSa());a=Qv(DSa()).gh;if(Rv(qu(new ru,a,b,b.length|0)))return(new A).d(DSa());a=Qv(Tv()).gh;if(Rv(qu(new ru,a,b,b.length|0)))return(new A).d(Tv());a=Qv(Uv()).gh;if(Rv(qu(new ru,a,b,b.length|0)))return(new A).d(Uv());a=Kla(Sla(),b);return a.b()?0<=(b.length|0)&&"%"===b.substring(0,1)?(new A).d((new WU).e(b)):w():(b=a.c(),(new A).d(b))}
VU.prototype.oG=function(a){var b=a.Gg;if(bd(b)){b=b.Cv;b.b()?b=w():(b=b.c(),b=yKa(zKa(),b.Bt));if(x(b))return a=b.i,Wa().Ia(a);a:{Sla();a=a.Gg;if(bd(a)&&(a=a.Cv,a.b()?a=w():(a=a.c(),a=Kla(Sla(),a.Bt)),x(a))){a=a.i;a=Wa().Ia(a);break a}a=w()}return a}return w()};VU.prototype.$classData=q({TUa:0},!1,"amf.plugins.document.webapi.parser.RamlHeader$",{TUa:1,f:1,q:1,n:1});var ESa=void 0;function zKa(){ESa||(ESa=(new VU).a());return ESa}
function ry(){jw.call(this);this.uu=this.su=this.FN=this.Aya=null}ry.prototype=new pIa;ry.prototype.constructor=ry;ry.prototype.bC=function(){return this.uu};
function Boa(a,b,c,e,f){a.Aya=b;a.FN=c;a.su=e;a.uu=f;b=pc(fc().db,G());var g=pc(fc().db,G()),h=pc(fc().db,G()),k=pc(fc().db,G()),l=pc(fc().db,G()),p=pc(fc().db,G()),y=pc(fc().db,G()),I=pc(fc().db,G()),E=pc(fc().db,G()),V=pc(fc().db,G()),da=pc(fc().db,G()),sa=pc(fc().db,G()),ua=pc(fc().db,G()),Ia=pc(fc().db,G()),Pa=pc(fc().db,G()),Za=pc(fc().db,G());jw.prototype.TU.call(a,c,b,g,h,k,l,p,y,I,E,V,da,sa,ua,Ia,Pa,e,f,Za);return a}ry.prototype.CG=function(){return this.su};ry.prototype.iG=function(){return this.FN};
ry.prototype.$classData=q({tna:0},!1,"amf.plugins.document.webapi.parser.spec.OasWebApiDeclarations",{tna:1,iS:1,eN:1,f:1});function hw(){jw.call(this);this.uu=this.su=this.FN=this.WT=this.ns=null}hw.prototype=new pIa;hw.prototype.constructor=hw;function FSa(){}FSa.prototype=hw.prototype;
function GSa(a,b){jw.prototype.ACa.call(a,b,a);a.ns.X(t(new u,function(a){return function(b){if(null!==b){var f=b.pa();b=b.Ba();a.ns=a.ns.Zb((new P).N(f,b))}else throw(new v).d(b);}}(a)));b.ns.X(t(new u,function(a){return function(b){if(null!==b){var f=b.pa();b=b.Ba();a.ns=a.ns.Zb((new P).N(f,b))}else throw(new v).d(b);}}(a)))}d=hw.prototype;d.bC=function(){return this.uu};
d.YU=function(a,b,c,e,f){this.ns=a;this.WT=b;this.FN=c;this.su=e;this.uu=f;a=pc(fc().db,G());b=pc(fc().db,G());var g=pc(fc().db,G()),h=pc(fc().db,G()),k=pc(fc().db,G()),l=pc(fc().db,G()),p=pc(fc().db,G()),y=pc(fc().db,G()),I=pc(fc().db,G()),E=pc(fc().db,G()),V=pc(fc().db,G()),da=pc(fc().db,G()),sa=pc(fc().db,G()),ua=pc(fc().db,G()),Ia=pc(fc().db,G()),Pa=pc(fc().db,G());jw.prototype.TU.call(this,c,a,b,g,h,k,l,p,y,I,E,V,da,sa,ua,Ia,e,f,Pa);return this};
function Mra(a,b){var c=a.iG(),e=a.CG(),f=a.bC(),g=pc(fc().db,G()),h=pc(fc().db,G()),c=(new hw).YU(g,h,c,e,f);jw.prototype.ACa.call(a,b,c);a.ns.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.ns=b.ns.Zb((new P).N(c,a))}else throw(new v).d(a);}}(a,c)));b.ns.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b.ns=b.ns.Zb((new P).N(c,a))}else throw(new v).d(a);}}(a,c)));return c}function HSa(a,b,c){a=a.WT.Ta(b);return a.b()?w():a.c().Ta(c)}
d.CG=function(){return this.su};d.iG=function(){return this.FN};d.$classData=q({OY:0},!1,"amf.plugins.document.webapi.parser.spec.RamlWebApiDeclarations",{OY:1,iS:1,eN:1,f:1});function XU(a,b){return a.jG(""+a.xH()+b)}function ISa(a){return!!(a&&a.$classData&&a.$classData.v.VF)}function YU(){}YU.prototype=new r;YU.prototype.constructor=YU;YU.prototype.a=function(){return this};
function YIa(a,b,c,e,f){c=c.Bb;a=t(new u,function(a,b,c,e){return function(a){var f=a.Da,g=zc(),f=f.Gp(g).Mk();f.b()?f=w():(f=f.c(),f=(new A).d(f.ya));f=f.b()?a.Da.u():f.c();f=Hma(Bw(),f);if(f.b())a=w();else{g=f.c();f=new JSa;f.zi=g;f.Rd=b;f.zb=a;f.sk=c;f.m=e;var g=f.Rd+"/extension/"+f.zi,E=f.Rd+"/"+f.zi;M();var V=(new N).a(),V=(new af).P((new Q).a(),V),g=Te(V,g),V=f.zb.i,da=(new A).d(E),sa=(new Mv).a(),ua=(new Ie).a(),V=Nv(new Ov,V,sa,da,ua,f.m).Ir(),da=qia(f.m.yl(),f.zi);da.b()?(da=Ke(M(),f.zb),
da=(new Le).P((new Q).a(),da),E=Te(da,E),da=f.zi,M(),sa=(new N).a(),E=Ue(E,da,sa)):E=da.c();KSa(f,E);LSa(g,f.Rd,H(z(),G()));da=bf().Zj;V=ff(g,da,V);f=f.zi;da=bf().$;Eb(V,da,f);vj(g.g,bf().Rf,E,(M(),(new N).a()));a=Ke(M(),a);a=(new A).d(cc(g,a))}return a.wa()}}(a,b,e,f));b=uv();return c.md(a,b.gc)}YU.prototype.$classData=q({tVa:0},!1,"amf.plugins.document.webapi.parser.spec.common.AnnotationParser$",{tVa:1,f:1,q:1,n:1});var MSa=void 0;function ZIa(){MSa||(MSa=(new YU).a());return MSa}
function ZU(){}ZU.prototype=new r;ZU.prototype.constructor=ZU;ZU.prototype.a=function(){return this};function ina(a,b,c,e){a=(new Mv).a();var f=(new Ie).a();return Nv(new Ov,c,a,b,f,e).Ir()}ZU.prototype.$classData=q({uVa:0},!1,"amf.plugins.document.webapi.parser.spec.common.DataNodeParser$",{uVa:1,f:1,q:1,n:1});var NSa=void 0;function jna(){NSa||(NSa=(new ZU).a());return NSa}function $U(){this.l=null}$U.prototype=new r;$U.prototype.constructor=$U;
$U.prototype.Va=function(a){R();var b=Th(R(),"$ref");R();var c=Hy(),e=B(this.l.Ff.ca(),Pg().$).G,c=Foa(c,e.b()?null:e.c()),c=Th(R(),c);qq(a,b,c)};$U.prototype.Oa=function(){return Gd()};$U.prototype.$classData=q({vVa:0},!1,"amf.plugins.document.webapi.parser.spec.common.JsonSchemaEmitter$$anon$1",{vVa:1,f:1,ib:1,Ra:1});function aV(){}aV.prototype=new r;aV.prototype.constructor=aV;aV.prototype.a=function(){return this};
aV.prototype.Va=function(a){R();var b=Th(R(),"$schema");R();var c=Th(R(),"http://json-schema.org/draft-04/schema#");qq(a,b,c)};aV.prototype.Oa=function(){return Gd()};aV.prototype.$classData=q({wVa:0},!1,"amf.plugins.document.webapi.parser.spec.common.JsonSchemaEntry$",{wVa:1,f:1,ib:1,Ra:1});var OSa=void 0;function bV(){}bV.prototype=new r;bV.prototype.constructor=bV;bV.prototype.a=function(){return this};function PSa(a,b,c,e,f){a=e.Da;var g=zc();return QSa(new cV,b,c,L(a,g,f).ya,e.i,f)}
bV.prototype.$classData=q({FVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.AbstractDeclarationParser$",{FVa:1,f:1,q:1,n:1});var RSa=void 0;function SSa(){RSa||(RSa=(new bV).a());return RSa}function DU(){this.Q=this.o=this.baa=null}DU.prototype=new r;DU.prototype.constructor=DU;function TSa(){}TSa.prototype=DU.prototype;
DU.prototype.Va=function(a){var b=(new My).e(a.da);b.$s(this.te());var c=(new My).e(a.da),e=Wa().Ia(B(this.baa.g,bf().Zj));e.b()||(e=e.c(),Tw(new Uw,e,this.o,!1,pc(Os(),G()),this.Q.Si()).Ob(c));b=UQ(b.r,0);qq(a,b,UQ(c.r,0))};DU.prototype.EK=function(a,b,c){this.baa=a;this.o=b;this.Q=c;return this};DU.prototype.Oa=function(){return jq(Cq(),this.baa.E,n(Fd))};function FU(){this.U=this.o=this.Ca=null}FU.prototype=new r;FU.prototype.constructor=FU;function USa(){}USa.prototype=FU.prototype;
FU.prototype.bba=function(a,b,c){this.Ca=a;this.o=b;this.U=c;return this};
FU.prototype.Va=function(a){R();var b=this.ZK(),c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=this.Ca.t.t.Tb,k=t(new u,function(a){return function(b){return ax(a.jfa(),b,a.o,a.U)}}(this)),l=z(),h=h.ka(k,l.s);iq(Cq(),this.o.Cb(h),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,k=h=0,p=c.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),
b.r))};FU.prototype.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};function dV(){this.tga=null}dV.prototype=new r;dV.prototype.constructor=dV;function VSa(a){var b=new dV;b.tga=a;return b}dV.prototype.Va=function(a){var b=Th(R(),"@value");R();var c=this.tga.t,c=Th(R(),c);qq(a,b,c)};dV.prototype.Oa=function(){var a=this.tga;return jq(Cq(),a.E,n(Fd))};dV.prototype.$classData=q({IVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.DataNodeEmitter$$anonfun$1$$anon$1",{IVa:1,f:1,ib:1,Ra:1});
function eV(){this.EM=null}eV.prototype=new r;eV.prototype.constructor=eV;eV.prototype.Va=function(a){var b=Th(R(),"@value"),c=(new My).e(a.da);this.EM.Ob(c);var e=c.r,b=[b];if(0>e.x)throw(new X).e("0");var f=b.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),c.r))};function WSa(a){var b=new eV;b.EM=a;return b}
eV.prototype.Oa=function(){var a=this.EM;return jq(Cq(),a.E,n(Fd))};eV.prototype.$classData=q({JVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.DataNodeEmitter$$anonfun$1$$anon$2",{JVa:1,f:1,ib:1,Ra:1});function xv(){this.Q=this.YA=null}xv.prototype=new r;xv.prototype.constructor=xv;function XSa(){}XSa.prototype=xv.prototype;xv.prototype.Va=function(a){var b=this.Q;b.g0=!0;this.Mza(a);b.g0=!1};xv.prototype.yBa=function(a,b,c,e){this.YA=a;this.Q=e;return this};
xv.prototype.Oa=function(){var a=this.YA.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.ha(),n(Fd))));return a.b()?Gd():a.c()};function fV(){this.Q=this.U=this.o=this.Gf=this.oa=null}fV.prototype=new r;fV.prototype.constructor=fV;function YSa(){}YSa.prototype=fV.prototype;
fV.prototype.lK=function(a){var b=H(Wg(),G()),c=Dd(a,vi().Qg);c.b()||(c=c.c(),vh(b,(new gV).Qq("headers",c,this.o,this.U,this.Q)));c=Dd(a,vi().um);c.b()||(c=c.c(),c.t.t.Tb.Fa()&&vh(b,(new gV).Qq("queryParameters",c,this.o,this.U,this.Q)));a=Dd(a,vi().Zl);a.b()||(a=a.c(),vh(b,ZSa(new hV,"responses",a,this.o,this.U,!1,this.Q)));return b};
fV.prototype.Va=function(a){var b=this.lK(this.Gf.g);if(b.Fa()){R();var c=this.oa,e=Th(R(),c),c=(new My).e(a.da),f=c.r,g=c.da,h=(new pq).e(g);iq(Cq(),this.o.Cb(b),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));b=c.r;e=[e];if(0>b.x)throw(new X).e("0");g=e.length|0;f=b.x+g|0;hC(b,f);Ca(b.z,0,b.z,g,b.x);for(var g=b.z,k=g.j.length,l=h=0,p=e.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=e[h],h=1+h|0,l=1+l|0;b.x=f;T(a.r,iC(jC(),c.r))}};
fV.prototype.QU=function(a,b,c,e,f){this.oa=a;this.Gf=b;this.o=c;this.U=e;this.Q=f;return this};fV.prototype.Oa=function(){var a=B(this.Gf.g,vi().Qg),b=B(this.Gf.g,vi().um),c=z(),a=a.la(b,c.s),b=B(this.Gf.g,vi().Zl),c=z(),a=a.la(b,c.s).pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.ha(),n(Fd))));return a.b()?Gd():a.c()};function AU(){this.Q=this.o=this.kfa=null}AU.prototype=new r;AU.prototype.constructor=AU;function $Sa(){}$Sa.prototype=AU.prototype;
AU.prototype.Va=function(a){var b=(new My).e(a.da);b.$s(this.te());var c=(new My).e(a.da),e=Wa().Ia(B(this.kfa.g,bf().Zj));e.b()||(e=e.c(),Tw(new Uw,e,this.o,!1,pc(Os(),G()),this.Q.Si()).Ob(c));b=UQ(b.r,0);qq(a,b,UQ(c.r,0))};AU.prototype.FK=function(a,b,c){this.kfa=a;this.o=b;this.Q=c;return this};AU.prototype.Oa=function(){return jq(Cq(),this.kfa.E,n(Fd))};function iV(){}iV.prototype=new r;iV.prototype.constructor=iV;iV.prototype.a=function(){return this};
function sKa(a,b,c){a=new aTa;a.rh=b;b=a.rh.i.pb().nb;O().yd===b||O().ua===b||O().Nc===b?c=w():(b=a.rh.i,a=wN(),c=(new A).d(L(b,a,c).ya));return c}iV.prototype.$classData=q({UVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.LibraryLocationParser$",{UVa:1,f:1,q:1,n:1});var bTa=void 0;function tKa(){bTa||(bTa=(new iV).a());return bTa}function jV(){gO.call(this)}jV.prototype=new hJa;jV.prototype.constructor=jV;jV.prototype.dH=function(a,b){gO.prototype.xBa.call(this,"oas2.0",a,b);return this};
function cTa(a){return!!(a&&a.$classData&&a.$classData.v.coa)}jV.prototype.$classData=q({coa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OAS20SchemaVersion",{coa:1,eoa:1,QY:1,f:1});function kV(){gO.call(this)}kV.prototype=new hJa;kV.prototype.constructor=kV;kV.prototype.dH=function(a,b){gO.prototype.xBa.call(this,"oas3.0.0",a,b);return this};function dTa(a){return!!(a&&a.$classData&&a.$classData.v.doa)}
kV.prototype.$classData=q({doa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OAS30SchemaVersion",{doa:1,eoa:1,QY:1,f:1});function lV(){}lV.prototype=new r;lV.prototype.constructor=lV;lV.prototype.a=function(){return this};function kna(a,b,c){R();a=Pc();b=L(b,a,c);R();return(new mV).Dr(lq(R(),b,O().ua),c).HH()}lV.prototype.$classData=q({ZVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasCreativeWorkParser$",{ZVa:1,f:1,q:1,n:1});var eTa=void 0;
function lna(){eTa||(eTa=(new lV).a());return eTa}function nV(){}nV.prototype=new r;nV.prototype.constructor=nV;nV.prototype.a=function(){return this};function fTa(a,b,c,e,f){Zf();a=(new ag).d(b);var g=Pc();return oV(new pV,a,c,L(b,g,f),e,(new jV).dH("schema",f),f)}function gTa(a,b,c,e,f,g){Zf();a=(new ag).d(b);var h=Pc();return oV(new pV,a,c,L(b,h,g),e,f,g)}function qV(a,b,c,e,f){Zf();a=(new $f).d(b);var g=b.Da,h=qe(),g=L(g,h,f);b=b.i;h=Pc();return oV(new pV,a,g,L(b,h,f),c,e,f)}
function rV(a,b,c,e){Zf();a=(new $f).d(b);var f=b.Da,g=zc(),f=L(f,g,e).ya;b=b.i;g=Pc();b=L(b,g,e);var g=e.Pg(),h=Sp().bs;return oV(new pV,a,f,b,c,g===h?(new kV).dH("schema",e):(new jV).dH("schema",e),e)}nV.prototype.$classData=q({dWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$",{dWa:1,f:1,q:1,n:1});var hTa=void 0;function sV(){hTa||(hTa=(new nV).a());return hTa}function tV(){this.xaa=this.l=null}tV.prototype=new r;tV.prototype.constructor=tV;
tV.prototype.Va=function(a){var b=iTa(jTa(),this.xaa,this.l.o,G(),this.l.Iw);R();var c=Th(R(),"schema"),e=(new My).e(a.da);b.Ob(e);b=e.r;c=[c];if(0>b.x)throw(new X).e("0");var f=c.length|0,g=b.x+f|0;hC(b,g);Ca(b.z,0,b.z,f,b.x);for(var f=b.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;b.x=g;T(a.r,iC(jC(),e.r))};tV.prototype.Oa=function(){return jq(Cq(),this.xaa.ha(),n(Fd))};
tV.prototype.$classData=q({iWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08TypeEmitter$$anon$2",{iWa:1,f:1,ib:1,Ra:1});function uV(){this.vga=this.l=null}uV.prototype=new r;uV.prototype.constructor=uV;uV.prototype.Ob=function(a){var b=a.r,c=a.da;a=(new My).e(c);var e=B(this.vga.ea,lo().Ee),f=new kTa,g=z();e.$b(f,g.s).X(t(new u,function(a,b){return function(c){iTa(jTa(),c,a.l.o,H(z(),G()),a.l.Iw).Ob(b)}}(this,a)));R();FC();c=Py(vq(),c);a=lq(0,(new GC).mc(c,a.r),O().Nc);T(b,a)};
function lTa(a,b){var c=new uV;if(null===a)throw Lb(Mb(),null);c.l=a;c.vga=b;return c}uV.prototype.Oa=function(){return jq(Cq(),this.vga.ab,n(Fd))};uV.prototype.$classData=q({jWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08TypeEmitter$$anon$3",{jWa:1,f:1,lh:1,Ra:1});function vV(){}vV.prototype=new r;vV.prototype.constructor=vV;vV.prototype.a=function(){return this};
function HU(a,b,c,e,f,g){return(new wV).lC((Zf(),(new $f).d(b)),b.Da,c,TU(e,!1),f,(new mz).Vk(g.Xg,g.yf,g,(new A).d(g.le()),w(),w(),py().On))}function mTa(a,b,c,e,f,g){Zf();a=(new ag).d(b);R();c=Th(R(),c);b=TU(!1,!1);var h=g.Xg,k=g.yf,l=(new A).d(g.le()),p=g.Dv,y=w(),I=w();return(new wV).lC(a,c,e,b,f,(new mz).Vk(h,k,g,l,y,I,p))}vV.prototype.$classData=q({mWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08TypeParser$",{mWa:1,f:1,q:1,n:1});var nTa=void 0;
function IU(){nTa||(nTa=(new vV).a());return nTa}function xV(){}xV.prototype=new r;xV.prototype.constructor=xV;xV.prototype.a=function(){return this};function iTa(a,b,c,e,f){return(new xU).Cr(b,c,w(),H(z(),G()),H(z(),G()),f)}xV.prototype.$classData=q({nWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08TypePartEmitter$",{nWa:1,f:1,q:1,n:1});var oTa=void 0;function jTa(){oTa||(oTa=(new xV).a());return oTa}function yV(){this.uga=null}yV.prototype=new r;yV.prototype.constructor=yV;
yV.prototype.Va=function(a){var b=Th(R(),"type"),c=(new My).e(a.da);this.uga.Ob(c);var e=c.r,b=[b];if(0>e.x)throw(new X).e("0");var f=b.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),c.r))};yV.prototype.Oa=function(){return this.uga.Oa()};
yV.prototype.$classData=q({qWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml10TypeEmitter$$anonfun$entries$1$$anon$1",{qWa:1,f:1,ib:1,Ra:1});function zV(){}zV.prototype=new r;zV.prototype.constructor=zV;zV.prototype.a=function(){return this};function pTa(a,b,c,e,f){return(new AV).lC((Zf(),(new ag).d(a)),(R(),Th(R(),b)),c,TU(!1,!1),e,f)}
function RU(a,b,c,e,f,g){return(new AV).lC((Zf(),(new $f).d(b)),b.Da,c,e,f,(new oy).Vk(g.Xg,g.yf,g,(new A).d(g.le()),(new A).d(g.Xi),g.tp(),g.Dv))}zV.prototype.$classData=q({rWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml10TypeParser$",{rWa:1,f:1,q:1,n:1});var qTa=void 0;function SU(){qTa||(qTa=(new zV).a());return qTa}function BV(){qx.call(this);this.dX=this.ud=this.Eb=this.Ma=this.Zf=null}BV.prototype=new Cna;BV.prototype.constructor=BV;function CV(){}CV.prototype=BV.prototype;
BV.prototype.bD=function(){return this.dX};BV.prototype.Ua=function(){var a=H(Wg(),qx.prototype.Ua.call(this));Bca(this,this.Zf,a,this.Ma,this.Eb,this.ud);return a};BV.prototype.wy=function(a,b,c,e){this.Zf=a;this.Ma=b;this.Eb=c;this.ud=e;qx.prototype.gC.call(this,a,b,c,e);this.dX=(new A).d("any");return this};BV.prototype.$classData=q({HD:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlAnyShapeEmitter",{HD:1,JD:1,f:1,Dz:1});
function DV(){qx.call(this);this.dX=this.ud=this.Eb=this.Ma=this.Zf=null}DV.prototype=new Cna;DV.prototype.constructor=DV;DV.prototype.bD=function(){return this.dX};DV.prototype.Ua=function(){var a=H(Wg(),qx.prototype.Ua.call(this));Bca(this,this.Zf,a,this.Ma,this.Eb,this.ud);if(!this.XA){var b=Bv(new Cv,"type","any",O().Wa,Gd()),c=z();Er(a,H(c,(new J).aa([b])))}return a};
DV.prototype.wy=function(a,b,c,e){this.Zf=a;this.Ma=b;this.Eb=c;this.ud=e;qx.prototype.gC.call(this,a,b,c,e);this.dX=(new A).d("any");return this};DV.prototype.$classData=q({tWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlAnyShapeInstanceEmitter",{tWa:1,JD:1,f:1,Dz:1});function EV(){this.Q=this.o=this.U=this.Gf=null}EV.prototype=new r;EV.prototype.constructor=EV;function rTa(){}d=rTa.prototype=EV.prototype;
d.Va=function(a){var b=B(this.Gf.g,vi().$).G;if(b.b())throw Lb(Mb(),(new Nb).e("Cannot declare security scheme without name "+this.Gf));b=b.c();R();var c=Th(R(),b),e=yb(this.Gf).qa()?function(a){return function(b){a.eK(b)}}(this):function(a){return function(b){a.dK(b)}}(this),b=(new My).e(a.da);e(b);e=b.r;c=[c];if(0>e.x)throw(new X).e("0");var f=c.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|
0,l=1+l|0;e.x=g;T(a.r,iC(jC(),b.r))};d.eK=function(a){var b=yb(this.Gf);if(!b.b()){var b=b.c(),c=new wv,e=B(this.Gf.g,Db().wd).G,f=this.U,g=this.Q;c.sk=b;c.lP=e;c.U=f;c.Q=g;gla(c);c.Ob(a)}};d.dK=function(a){var b=a.r;a=a.da;var c=(new pq).e(a);iq(Cq(),this.o.Cb(ax(this.XFa(),this.Gf,this.U,this.o).Ua()),c);T(b,lq(R(),rq(sq(),c.r,a),O().ua))};d.uA=function(a,b,c,e){this.Gf=a;this.U=b;this.o=c;this.Q=e;return this};d.Oa=function(){return jq(Cq(),this.Gf.E,n(Fd))};function Nna(){this.l=null}
Nna.prototype=new r;Nna.prototype.constructor=Nna;Nna.prototype.$classData=q({GWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeDetector$ShapeClassTypeDefMatcher$InheritsUnionMatcher$",{GWa:1,f:1,q:1,n:1});function FV(){this.Tw=this.o=this.ra=null}FV.prototype=new r;FV.prototype.constructor=FV;function sTa(){}sTa.prototype=FV.prototype;
FV.prototype.Ob=function(a){if(Wa().Ia(this.ra).qa()&&Yh(this.ra.ha(),n(uQ)))kq(Cq(),a,"",O().yd);else{var b=this.Tw;if(Ep(b))b.i.Ob(a);else if(Hp(b)){var b=b.i,c=a.r;a=a.da;var e=(new pq).e(a);iq(Cq(),this.o.Cb(b),e);T(c,lq(R(),rq(sq(),e.r,a),O().ua))}else throw(new v).d(b);}};
FV.prototype.tAa=function(a,b,c,e,f,g){this.ra=a;this.o=b;b=this.Ua();a:{z();c=(new A).d(b);if(null!==c.i&&0===c.i.Ge(1)&&(c=c.i.jb(0),Fq(c))){Zf();a=(new $f).d(c);break a}if(b.Ng(t(new u,function(){return function(a){return Eq(a)}}(this))))Zf(),a=new tTa,g=z(),a=b.$b(a,g.s);else{g=g.Si();c=Bc().nh;e=a.k;f=w();b="IllegalTypeDeclarations found: "+b;var h=Zb(a.ha(),n(Fd));a=a.Yb();g.Hc(c.k,e,f,b,h,xc().tb,a);Zf();a=G()}a=(new ag).d(a)}this.Tw=a;return this};
FV.prototype.Oa=function(){var a=this.Ua().pc();a.b()?a=w():(a=a.c(),a=(new A).d(a.Oa()));return a.b()?Gd():a.c()};function GV(){}GV.prototype=new r;GV.prototype.constructor=GV;GV.prototype.a=function(){return this};function uTa(a){var b=pc(Os(),G()),c=new vTa;c.U=b;c.m=a;return c}GV.prototype.$classData=q({NWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.ReferenceDeclarations$",{NWa:1,f:1,q:1,n:1});var wTa=void 0;function fx(){}fx.prototype=new r;fx.prototype.constructor=fx;
fx.prototype.a=function(){return this};fx.prototype.$classData=q({TWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.XMLSerializerParser$",{TWa:1,f:1,q:1,n:1});var mna=void 0;function HV(){}HV.prototype=new r;HV.prototype.constructor=HV;HV.prototype.a=function(){return this};
function xTa(a,b,c,e,f){var g=b.g;a=H(Wg(),G());var h=Dd(g,po().$F);h.b()||(h=h.c(),(new A).d(vh(a,Ih(new Jh,"operationId",h,w()))));h=Dd(g,po().lN);h.b()||(h=h.c(),(new A).d(vh(a,Ih(new Jh,"operationRef",h,w()))));h=Dd(g,po().fb);h.b()||(h=h.c(),(new A).d(vh(a,Ih(new Jh,"description",h,w()))));h=Dd(g,po().rJ);h.b()||(h.c(),vh(a,(new yTa).xA(B(b.g,po().rJ),c,e,f)));e=Dd(g,po().cG);e.b()||(e.c(),e=new IV,h=B(b.g,po().cG),e.fI=h,e.o=c,e.Q=f,Cq(),b=B(b.g,po().cG).E,b=jq(0,b,n(Fd)),c=O().Wa,(new A).d(vh(a,
Vw(new Ww,"server",e,c,b))));g=Dd(g,po().tN);g.b()||(g=g.c(),(new A).d(vh(a,Ih(new Jh,"requestBody",g,w()))));return a}HV.prototype.$classData=q({$Wa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasLinkEmitter$",{$Wa:1,f:1,q:1,n:1});var zTa=void 0;function ATa(){zTa||(zTa=(new HV).a());return zTa}function JV(){}JV.prototype=new r;JV.prototype.constructor=JV;JV.prototype.a=function(){return this};
function BTa(a,b){var c=b.Ib(t(new u,function(){return function(a){a=B(a.g,vn().Md);return eM(a)}}(a)));a=c.b()?b.Ib(t(new u,function(){return function(a){a=B(a.g,vn().Md);return Xb(a,"application/json")}}(a))):c;return a.b()?b.pc():a}
function CTa(a,b){var c;b=b.xb(t(new u,function(){return function(a){return!Yh(a.E,n(DTa))}}(a)));var e=b.Ib(t(new u,function(){return function(a){return Yh(a.E,n(ETa))}}(a))),e=(new Qd).d(e);c=e.ta;c=c.b()?BTa(FTa(),b):c;e.ta=c;return(new GTa).dP(e.ta,b.xb(t(new u,function(a,b){return function(a){var c=b.ta,c=c.b()?null:c.c();return!(null===a?null===c:a.h(c))}}(a,e))))}JV.prototype.$classData=q({dXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasPayloads$",{dXa:1,f:1,q:1,n:1});
var HTa=void 0;function FTa(){HTa||(HTa=(new JV).a());return HTa}function KV(){}KV.prototype=new r;KV.prototype.constructor=KV;KV.prototype.a=function(){return this};function ITa(a,b,c,e,f){a=c.t.t.Tb;c=(new JTa).a();var g=z();return(new LV).eH(b,a.$b(c,g.s),e,f)}KV.prototype.$classData=q({eXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasResponseExamplesEmitter$",{eXa:1,f:1,q:1,n:1});var KTa=void 0;function LTa(){KTa||(KTa=(new KV).a());return KTa}function MV(){}MV.prototype=new r;
MV.prototype.constructor=MV;MV.prototype.a=function(){return this};
function eMa(a,b,c,e){var f=G(),f=(new Qd).d(f),g=G(),g=(new Qd).d(g);c.xb(t(new u,function(){return function(a){a=B(a.g,Ej().df);return Xb(a,"path")}}(a))).X(t(new u,function(a,b,c,e){return function(a){var f=B(a.g,Ej().$).G,f="{"+(f.b()?null:f.c())+"}";if(-1!==(b.indexOf(f)|0)){f=c.ta;a=H(z(),(new J).aa([a]));var g=z();c.ta=f.la(a,g.s)}else f=e.ta,a=H(z(),(new J).aa([a])),g=z(),e.ta=f.la(a,g.s)}}(a,b,g,f)));return KO(new LO,c.xb(t(new u,function(){return function(a){a=B(a.g,Ej().df);return Xb(a,
"query")}}(a))),g.ta,c.xb(t(new u,function(){return function(a){a=B(a.g,Ej().df);return Xb(a,"header")}}(a))),c.xb(t(new u,function(){return function(a){a=B(a.g,Ej().df);return Xb(a,"cookie")}}(a))),f.ta,e)}MV.prototype.$classData=q({jXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Parameters$",{jXa:1,f:1,q:1,n:1});var MTa=void 0;function cMa(){MTa||(MTa=(new MV).a());return MTa}function NV(){}NV.prototype=new r;NV.prototype.constructor=NV;NV.prototype.a=function(){return this};
function QJa(a,b,c,e){return SJa(TJa(new HO,c,b,qd(function(a,b,c){return function(a,e){return EIa(b.yl(),c,a,e)}}(a,e,c)),e))}NV.prototype.$classData=q({kXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.ParametrizedDeclarationParser$",{kXa:1,f:1,q:1,n:1});var NTa=void 0;function RJa(){NTa||(NTa=(new NV).a());return NTa}function OTa(){}OTa.prototype=new r;OTa.prototype.constructor=OTa;function PTa(){}PTa.prototype=OTa.prototype;function OV(){this.EM=null}OV.prototype=new r;
OV.prototype.constructor=OV;OV.prototype.Va=function(a){var b=Th(R(),"schema"),c=(new My).e(a.da);this.EM.Ob(c);var e=c.r,b=[b];if(0>e.x)throw(new X).e("0");var f=b.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),c.r))};OV.prototype.Oa=function(){return this.EM.Oa()};
OV.prototype.$classData=q({oXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08ParameterEmitter$$anon$1",{oXa:1,f:1,ib:1,Ra:1});function PV(){this.l=null}PV.prototype=new r;PV.prototype.constructor=PV;
PV.prototype.Va=function(a){var b=this.l.Jfa;if(b.Fa()){R();var c=B(this.l.fe.g,vn().Md).G,c=c.b()?null:c.c(),e=Th(R(),c),c=(new My).e(a.da);a:{z();var f=(new A).d(b);if(null!==f.i&&0===f.i.Ge(1)&&(f=f.i.jb(0),Fq(f))){f.Ob(c);break a}if(b.Ng(t(new u,function(){return function(a){return Eq(a)}}(this)))){var f=c.r,g=c.da,h=(new pq).e(g),k=Cq(),l=this.l.o,p=new QTa,y=z();iq(k,l.Cb(b.$b(p,y.s)),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua))}else f=this.l.dya.jc,g=Bc().nh,h=this.l.fe.k,k=w(),b="IllegalTypeDeclarations found: "+
b,l=Zb(this.l.fe.E,n(Fd)),p=Yb(this.l.fe),f.Hc(g.k,h,k,b,l,xc().tb,p)}b=c.r;e=[e];if(0>b.x)throw(new X).e("0");g=e.length|0;f=b.x+g|0;hC(b,f);Ca(b.z,0,b.z,g,b.x);g=b.z;l=g.j.length;k=h=0;p=e.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=e[h],h=1+h|0,k=1+k|0;b.x=f}else{R();c=B(this.l.fe.g,vn().Md).G;c=c.b()?null:c.c();b=Th(R(),c);c=(new My).e(a.da);kq(Cq(),c,"",O().yd);e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=
b.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=b[h],h=1+h|0,k=1+k|0;e.x=f}T(a.r,iC(jC(),c.r))};PV.prototype.rba=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};PV.prototype.Oa=function(){return jq(Cq(),this.l.fe.E,n(Fd))};PV.prototype.$classData=q({pXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08PayloadEmitter$$anon$1",{pXa:1,f:1,ib:1,Ra:1});function QV(){}QV.prototype=new r;QV.prototype.constructor=QV;
QV.prototype.Ob=function(a){R();var b=sq().Td,b=lq(R(),b,O().ua);T(a.r,b)};QV.prototype.rba=function(){return this};QV.prototype.Oa=function(){return Gd()};QV.prototype.$classData=q({rXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08PayloadEmitter$$anon$2",{rXa:1,f:1,lh:1,Ra:1});function RV(){this.Q=this.U=this.Uf=this.o=null}RV.prototype=new r;RV.prototype.constructor=RV;function RTa(){}RTa.prototype=RV.prototype;
RV.prototype.Va=function(a){var b=this.dk.g,c=(new My).e(a.da),e=SV(this.dk);if(x(e))IT(new JT,Nh(new Oh,STa(this.dk),(new N).a()),O().Wa).Ob(c);else if(w()===e)e=Dd(b,Tm().$f).c(),IT(new JT,e.t.t,O().Wa).Ob(c);else throw(new v).d(e);var e=(new My).e(a.da),f=e.r,g=e.da,h=(new pq).e(g);iq(Cq(),this.o.Cb(this.nE(b)),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));b=UQ(c.r,0);qq(a,b,UQ(e.r,0))};RV.prototype.rAa=function(a,b,c,e){this.o=a;this.Uf=b;this.U=c;this.Q=e;return this};
RV.prototype.nE=function(a){var b=H(Wg(),G()),c=Dd(a,Tm().$);c.b()||(c=c.c(),(new A).d(vh(b,Gh(Hh(),"displayName",c,w(),this.Q))));c=Dd(a,Tm().fb);c.b()||(c=c.c(),(new A).d(vh(b,Gh(Hh(),"description",c,w(),this.Q))));c=Dd(a,Tm().wi());c.b()||(c=c.c(),(new A).d(Er(b,TTa(c,this.o,!1,this.Q.jc).Ua())));c=Dd(a,Tm().xk);c.b()||(c=c.c(),(new A).d(Er(b,UTa(this,c,this.o))));a=Dd(a,Tm().oc);a.b()||(a=a.c(),(new A).d(vh(b,(new TV).DE("securedBy",a,this.o,this.Q))));Er(b,Mw(this.dk,this.o,this.Q).Ua());Er(b,
this.Uf);return b};function UTa(a,b,c){b=b.t.t.Tb;a=t(new u,function(a,b){return function(c){return ax(a.Q.of.aDa(),c,b,a.U)}}(a,c));c=z();return b.ka(a,c.s)}RV.prototype.Oa=function(){return jq(Cq(),this.dk.E,n(Fd))};function UV(){this.Q=this.U=this.o=this.Fl=null}UV.prototype=new r;UV.prototype.constructor=UV;function VTa(){}VTa.prototype=UV.prototype;
UV.prototype.lK=function(a){var b=H(Wg(),G()),c=Dd(a,Zm().$);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,"displayName",c,w()))));c=Dd(a,Zm().fb);c.b()||(c=c.c(),(new A).d(vh(b,Gh(Hh(),"description",c,w(),this.Q))));c=Dd(a,Zm().gp);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,Kh((new Cf).e("oasDeprecated")),c,w()))));c=Dd(a,Zm().Mp);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,Kh((new Cf).e("summary")),c,w()))));c=Dd(a,Zm().wv);c.b()||(c=c.c(),(new A).d(vh(b,Kw(new Lw,Kh((new Cf).e("tags")),c,this.o,!1))));c=
Dd(a,Zm().bh);c.b()||(c=c.c(),(new A).d(vh(b,Xw(new Yw,Kh((new Cf).e("externalDocs")),c.t.t,this.o,this.Q))));c=Dd(a,Zm().yk);c.b()||(c=c.c(),(new A).d(vh(b,Kw(new Lw,"protocols",c,this.o,!1))));c=Dd(a,Zm().Jp);c.b()||(c=c.c(),(new A).d(vh(b,Kw(new Lw,Kh((new Cf).e("consumes")),c,this.o,!1))));c=Dd(a,Zm().tl);c.b()||(c=c.c(),(new A).d(vh(b,Kw(new Lw,Kh((new Cf).e("produces")),c,this.o,!1))));c=Dd(a,Lc().wi());c.b()||(c=c.c(),(new A).d(Er(b,TTa(c,this.o,!1,this.Q.jc).Ua())));c=Wa().Ia(B(this.Fl.g,
Zm().kp));if(!c.b()){var c=c.c().g,e=Dd(c,yn().um);e.b()||(e=e.c(),(new A).d(vh(b,(new gV).Qq("queryParameters",e,this.o,this.U,this.Q))));e=Dd(c,yn().Qg);e.b()||(e=e.c(),(new A).d(vh(b,(new gV).Qq("headers",e,this.o,this.U,this.Q))));e=Dd(c,yn().mf);e.b()||(e=e.c(),(new A).d(vh(b,this.Q.of.Ida().nu("body",e,this.o,this.U))));c=Dd(c,yn().lp);c.b()||(c=c.c(),(new A).d(c.t.t.Tb.Cd(t(new u,function(){return function(a){return!Yh(a.ha(),n(uQ))}}(this)))?vh(b,(new gV).Qq(this.B_,c,this.o,this.U,this.Q)):
void 0))}c=Dd(a,Zm().Zl);c.b()||(c=c.c(),(new A).d(vh(b,ZSa(new hV,"responses",c,this.o,this.U,!1,this.Q))));c=Dd(a,Zm().Zl);c.b()||(c=c.c(),(new A).d(vh(b,ZSa(new hV,Kh((new Cf).e("defaultResponse")),c,this.o,this.U,!0,this.Q))));a=Dd(a,Zm().oc);a.b()||(a=a.c(),(new A).d(vh(b,(new TV).DE("securedBy",a,this.o,this.Q))));a=this.Fl.g.Pb;c=zx();c=Va(c);e=Ce().s;a=De(a,c,e).Ib(t(new u,function(){return function(a){a=a.xc;var b=Zm().NF;return null===a?null===b:a.h(b)}}(this)));if(!a.b()){c=a.c();a=VV(c);
var c=c.t.E,e=Kh((new Cf).e("callbacks")),f=this.Q;vh(b,Vw(new Ww,e,(new WV).HE(a,this.o,this.U,c,(new tU).Ci(f.jc,f.Sy,(new ob).a())),O().Wa,Gd()))}return b};UV.prototype.Va=function(a){var b=this.Fl.g,c=(new My).e(a.da),e=Dd(b,Zm().nt).c();IT(new JT,e.t.t,O().Wa).Ob(c);var e=(new My).e(a.da),f=e.r,g=e.da,h=(new pq).e(g);iq(Cq(),this.o.Cb(this.lK(b)),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));b=UQ(c.r,0);qq(a,b,UQ(e.r,0))};UV.prototype.OK=function(a,b,c,e){this.Fl=a;this.o=b;this.U=c;this.Q=e;return this};
UV.prototype.Oa=function(){return jq(Cq(),this.Fl.E,n(Fd))};function XV(){this.Q=this.U=this.Gi=null}XV.prototype=new r;XV.prototype.constructor=XV;function WTa(){}WTa.prototype=XV.prototype;XV.prototype.Va=function(a){yb(this.Gi).qa()?this.haa(a):this.e0(a)};XV.prototype.iBa=function(a,b,c,e){this.Gi=a;this.U=c;this.Q=e;return this};XV.prototype.Oa=function(){return jq(Cq(),this.Gi.E,n(Fd))};
XV.prototype.haa=function(a){var b=yb(this.Gi).c().ca(),c=(new My).e(a.da);this.fK(b,c);var b=(new My).e(a.da),e=yb(this.Gi);e.b()||(e=e.c(),ax(this.Q.of.pF(),e,B(this.Gi.g,Db().wd).G,this.U).Ob(b));c=UQ(c.r,0);qq(a,c,UQ(b.r,0))};function YV(){this.yb=this.m=null}YV.prototype=new r;YV.prototype.constructor=YV;function XTa(){}XTa.prototype=YV.prototype;YV.prototype.vBa=function(a,b,c){this.m=c;return this};YV.prototype.Yj=function(){null===this.yb&&this.Ig();return this.yb};
YV.prototype.Ig=function(){null===this.yb&&(this.yb=yO())};function ZV(){}ZV.prototype=new r;ZV.prototype.constructor=ZV;ZV.prototype.a=function(){return this};function WJa(a,b,c,e){return YTa((new ZTa).Iba(c,b,e))}ZV.prototype.$classData=q({DXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlParametrizedSecuritySchemeParser$",{DXa:1,f:1,q:1,n:1});var $Ta=void 0;function XJa(){$Ta||($Ta=(new ZV).a());return $Ta}function $V(){this.Q=this.U=this.o=this.So=null}$V.prototype=new r;
$V.prototype.constructor=$V;function aUa(){}aUa.prototype=$V.prototype;$V.prototype.Va=function(a){var b=this.So.g,c=(new My).e(a.da),e=Dd(b,Bn().vn).c();IT(new JT,e.t.t,O().Wa).Ob(c);e=(new My).e(a.da);if(yb(this.So).qa())this.Q.gL(this.So).Ob(e);else{var f=e.r,g=e.da,h=(new pq).e(g);iq(Cq(),this.o.Cb(this.nE(b)),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua))}b=UQ(c.r,0);qq(a,b,UQ(e.r,0))};$V.prototype.VO=function(a,b,c,e){this.So=a;this.o=b;this.U=c;this.Q=e;return this};
$V.prototype.nE=function(a){var b=H(Wg(),G()),c=Dd(a,Bn().fb);c.b()||(c=c.c(),(new A).d(vh(b,Gh(Hh(),"description",c,w(),this.Q))));c=Dd(a,yn().Qg);c.b()||(c=c.c(),(new A).d(vh(b,(new gV).Qq("headers",c,this.o,this.U,this.Q))));a=Dd(a,yn().mf);a.b()||(a=a.c(),(new A).d(vh(b,this.Q.of.Ida().nu("body",a,this.o,this.U))));return b};$V.prototype.Oa=function(){return jq(Cq(),this.So.E,n(Fd))};function aW(){}aW.prototype=new r;aW.prototype.constructor=aW;aW.prototype.a=function(){return this};
aW.prototype.$classData=q({LXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlSecuritySettingsParser$",{LXa:1,f:1,q:1,n:1});var bUa=void 0;function bW(){}bW.prototype=new r;bW.prototype.constructor=bW;bW.prototype.a=function(){return this};function cUa(a,b){b=VV(b).jn(t(new u,function(){return function(a){return Zb(a.E,n(uQ)).qa()}}(a)));if(null===b)throw(new v).d(b);a=b.pa();b=b.Ba();return(new dUa).dP(a.pc(),b)}
function eUa(a,b){var c=(new ck).a();try{var e=B(b.g,Ej().Fc);if(di(e)){var f=z(),g=[Pg().$,Pg().vh,Pg().Jj,Pg().Kg,xh().af,Pg().fb],h=H(f,(new J).aa(g));e.ea.Pb.X(t(new u,function(a,b,c){return function(a){if(null!==a){if(!b.Ja(a.pa()))throw fUa(c);}else throw(new v).d(a);}}(a,h,c)));return!0}return!1}catch(k){if(Bx(k)&&k.Da===c)return k.Tfa();throw k;}}bW.prototype.$classData=q({MXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Servers$",{MXa:1,f:1,q:1,n:1});var gUa=void 0;
function hUa(){gUa||(gUa=(new bW).a());return gUa}function cW(){}cW.prototype=new r;cW.prototype.constructor=cW;cW.prototype.a=function(){return this};
function iUa(a,b,c,e,f){var g=b.g,h=H(Wg(),G()),k=Dd(g,yn().fb);k.b()||(k=k.c(),(new A).d(vh(h,Ih(new Jh,"description",k,w()))));g=Dd(g,yn().kj);g.b()||(g=g.c(),(new A).d(vh(h,Ih(new Jh,"required",g,w()))));b=b.g.Pb;g=zx();g=Va(g);k=Ce().s;a=De(b,g,k).Ib(t(new u,function(){return function(a){a=a.xc;var b=yn().mf;return null===a?null===b:a.h(b)}}(a)));a.b()||(a=a.c(),b=VV(a),vh(h,Vw(new Ww,"content",(new dW).HE(b,c,e,a.t.E,f),O().Wa,Gd())));return h}
cW.prototype.$classData=q({TXa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.Oas3RequestBodyEmitter$",{TXa:1,f:1,q:1,n:1});var jUa=void 0;function kUa(){jUa||(jUa=(new cW).a());return jUa}function eW(){this.l=null}eW.prototype=new r;eW.prototype.constructor=eW;
eW.prototype.r$=function(a,b){var c=a.i.pb().nb;if(O().ua===c){var c=a.i,e=Pc(),c=L(c,e,this.l.Dn),c=yc((new K).Y(c),"$ref");if(x(c)){var e=c.i,c=this.l,f=e.i,g=zc(),f=L(f,g,this.l.Dn).ya,e=e.i,g=zc();return lUa(new fW,c,a,f,L(e,g,this.l.Dn),b).GH()}c=this.l;e=a.Da;f=zc();e=L(e,f,this.l.Dn).ya;f=a.i;g=Pc();return mUa(new gW,c,a,e,L(f,g,this.l.Dn),b).GH()}if(O().Nc===c)return M(),c=(new N).a(),c=(new Le).P((new Q).a(),c),e=a.Da,f=zc(),e=L(e,f,this.l.Dn).ya,M(),f=(new N).a(),c=Ue(c,e,f),b.R(c),b=this.l.Dn,
e=rh().$M,f=c.k,a=a.i,g=w(),Cc(b,e,f,g,"Invalid value node type for annotation types parser, expected map or scalar reference",a.ga),c;c=this.l;e=a.Da;f=zc();e=L(e,f,this.l.Dn).ya;f=a.i;g=zc();return lUa(new fW,c,a,e,L(f,g,this.l.Dn),b).GH()};eW.prototype.$classData=q({jYa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSpecParser$AnnotationTypesParser$",{jYa:1,f:1,q:1,n:1});function hW(){}hW.prototype=new r;hW.prototype.constructor=hW;hW.prototype.a=function(){return this};
function nUa(a,b,c){a=w();var e=(new A).d(c),f=c.Yh,g=pc(fc().db,G()),h=pc(fc().db,G());a=(new hw).YU(g,h,a,e,f);c=oUa(new iW,c.Xg,c.yf,c,(new A).d(c.le()),a);a=new pUa;a.Ks=b;jW.prototype.wE.call(a,b,c);return a}hW.prototype.$classData=q({nYa:0},!1,"amf.plugins.document.webapi.parser.spec.raml.ExtensionLikeParser$",{nYa:1,f:1,q:1,n:1});var qUa=void 0;function rUa(){qUa||(qUa=(new hW).a());return qUa}function kW(){this.rT=this.dh=null}kW.prototype=new r;kW.prototype.constructor=kW;
kW.prototype.a=function(){sUa=this;Soa(this);var a=this.rT,b="title description version baseUri baseUriParameters protocols mediaType documentation schemas traits resourceTypes securitySchemes securedBy".split(" ");if(0===(b.length|0))b=Yd();else{for(var c=Zd(new ee,Yd()),e=0,f=b.length|0;e<f;)fe(c,b[e]),e=1+e|0;b=c.gb}b=(new P).N("webApi",b);c="type default schema example examples displayName description facets enum required repeat".split(" ");if(0===(c.length|0))c=Yd();else{for(var e=Zd(new ee,
Yd()),f=0,g=c.length|0;f<g;)fe(e,c[f]),f=1+f|0;c=e.gb}c=(new P).N("shape",c);e="type default schema example examples displayName description facets enum repeat pattern minLength maxLength required".split(" ");if(0===(e.length|0))e=Yd();else{for(var f=Zd(new ee,Yd()),g=0,h=e.length|0;g<h;)fe(f,e[g]),g=1+g|0;e=f.gb}e=(new P).N("stringScalarShape",e);f="type default schema example examples displayName description facets enum required repeat format".split(" ");if(0===(f.length|0))f=Yd();else{for(var g=
Zd(new ee,Yd()),h=0,k=f.length|0;h<k;)fe(g,f[h]),h=1+h|0;f=g.gb}f=(new P).N("dateScalarShape",f);g="type default schema example examples displayName description facets enum required repeat minimum maximum format multipleOf".split(" ");if(0===(g.length|0))g=Yd();else{for(var h=Zd(new ee,Yd()),k=0,l=g.length|0;k<l;)fe(h,g[k]),k=1+k|0;g=h.gb}g=(new P).N("numberScalarShape",g);h="displayName description get patch put post delete options head connect trace get? patch? put? post? delete? options? head? connect? trace? is type securedBy baseUriParameters uriParameters usage".split(" ");
if(0===(h.length|0))h=Yd();else{for(var k=Zd(new ee,Yd()),l=0,p=h.length|0;l<p;)fe(k,h[l]),l=1+l|0;h=k.gb}h=(new P).N("endPoint",h);k="displayName description get patch put post delete options head connect trace get? patch? put? post? delete? options? head? connect? trace? is type securedBy baseUriParameters uriParameters usage is? securedBy? baseUriParameters? uriParameters?".split(" ");if(0===(k.length|0))k=Yd();else{for(var l=Zd(new ee,Yd()),p=0,y=k.length|0;p<y;)fe(l,k[p]),p=1+p|0;k=l.gb}k=(new P).N("resourceType",
k);l="displayName description queryParameters headers responses body protocols is securedBy baseUriParameters usage".split(" ");if(0===(l.length|0))l=Yd();else{for(var p=Zd(new ee,Yd()),y=0,I=l.length|0;y<I;)fe(p,l[y]),y=1+y|0;l=p.gb}l=(new P).N("operation",l);p="displayName description queryParameters headers responses body protocols is securedBy baseUriParameters usage queryParameters? headers? responses? body? protocols? is? securedBy? baseUriParameters?".split(" ");if(0===(p.length|0))p=Yd();
else{for(var y=Zd(new ee,Yd()),I=0,E=p.length|0;I<E;)fe(y,p[I]),I=1+I|0;p=y.gb}b=[b,c,e,f,g,h,k,l,(new P).N("trait",p)];c=Ry(new Sy,Xs());e=0;for(f=b.length|0;e<f;)Ty(c,b[e]),e=1+e|0;this.dh=a.gr(c.gb);return this};kW.prototype.eya=function(a){this.rT=a};kW.prototype.$classData=q({pYa:0},!1,"amf.plugins.document.webapi.parser.spec.raml.Raml08Syntax$",{pYa:1,f:1,xYa:1,PY:1});var sUa=void 0;function lW(){this.rT=this.dh=this.SC=null}lW.prototype=new r;lW.prototype.constructor=lW;
lW.prototype.a=function(){tUa=this;Soa(this);var a="type default schema example examples displayName description facets xml enum".split(" ");if(0===(a.length|0))var b=Yd();else{for(var c=Zd(new ee,Yd()),e=0,f=a.length|0;e<f;)fe(c,a[e]),e=1+e|0;b=c.gb}this.SC=b;var g=this.rT,h="title description version baseUri baseUriParameters protocols mediaType documentation schemas types traits resourceTypes annotationTypes securitySchemes securedBy usage extends uses".split(" ");if(0===(h.length|0))var k=Yd();
else{for(var l=Zd(new ee,Yd()),p=0,y=h.length|0;p<y;)fe(l,h[p]),p=1+p|0;k=l.gb}var I=(new P).N("webApi",k),E=(new P).N("shape",this.SC),V=(new P).N("anyShape",this.SC),da="type default schema example examples displayName description required".split(" ");if(0===(da.length|0))var sa=Yd();else{for(var ua=Zd(new ee,Yd()),Ia=0,Pa=da.length|0;Ia<Pa;)fe(ua,da[Ia]),Ia=1+Ia|0;sa=ua.gb}var Za=(new P).N("schemaShape",sa),db=this.SC.Ij("anyOf"),Qb=(new P).N("unionShape",db),bc=this.SC,rc="properties minProperties maxProperties discriminator discriminatorValue additionalProperties".split(" ");
if(0===(rc.length|0))var Fc=Yd();else{for(var Rd=Zd(new ee,Yd()),Ld=0,ze=rc.length|0;Ld<ze;)fe(Rd,rc[Ld]),Ld=1+Ld|0;Fc=Rd.gb}var Td=bc.vk(Fc),Je=(new P).N("nodeShape",Td),$d=this.SC,te=["uniqueItems","items","minItems","maxItems"];if(0===(te.length|0))var Hd=Yd();else{for(var ie=Zd(new ee,Yd()),Nd=0,td=te.length|0;Nd<td;)fe(ie,te[Nd]),Nd=1+Nd|0;Hd=ie.gb}var yd=$d.vk(Hd),ud=(new P).N("arrayShape",yd),Ve=this.SC,Me=["pattern","minLength","maxLength"];if(0===(Me.length|0))var Rc=Yd();else{for(var me=
Zd(new ee,Yd()),Ae=0,We=Me.length|0;Ae<We;)fe(me,Me[Ae]),Ae=1+Ae|0;Rc=me.gb}var od=Ve.vk(Rc),Ad=(new P).N("stringScalarShape",od),ue=this.SC,Id=["minimum","maximum","format","multipleOf"];if(0===(Id.length|0))var gf=Yd();else{for(var Jd=Zd(new ee,Yd()),Vd=0,je=Id.length|0;Vd<je;)fe(Jd,Id[Vd]),Vd=1+Vd|0;gf=Jd.gb}var Wd=ue.vk(gf),ve=(new P).N("numberScalarShape",Wd),$c=this.SC.Ij("format"),we=(new P).N("dateScalarShape",$c),cd=this.SC,ae=["fileTypes","minLength","maxLength"];if(0===(ae.length|0))var be=
Yd();else{for(var xe=Zd(new ee,Yd()),ne=0,Ed=ae.length|0;ne<Ed;)fe(xe,ae[ne]),ne=1+ne|0;be=xe.gb}var Ne=cd.vk(be),hf=(new P).N("fileShape",Ne),Ef=["displayName","description","value","strict"];if(0===(Ef.length|0))var Vf=Yd();else{for(var Xe=Zd(new ee,Yd()),Ye=0,vf=Ef.length|0;Ye<vf;)fe(Xe,Ef[Ye]),Ye=1+Ye|0;Vf=Xe.gb}var Oe=(new P).N("example",Vf),Xd=["attribute","wrapped","name","namespace","prefix"];if(0===(Xd.length|0))var Ff=Yd();else{for(var rf=Zd(new ee,Yd()),cf=0,hg=Xd.length|0;cf<hg;)fe(rf,
Xd[cf]),cf=1+cf|0;Ff=rf.gb}var kg=(new P).N("xmlSerialization",Ff),oe="displayName description get patch put post delete options head connect trace get? patch? put? post? delete? options? head? connect? trace? is type securedBy uriParameters usage".split(" ");if(0===(oe.length|0))var wf=Yd();else{for(var ce=Zd(new ee,Yd()),jf=0,Kf=oe.length|0;jf<Kf;)fe(ce,oe[jf]),jf=1+jf|0;wf=ce.gb}var xf=(new P).N("endPoint",wf),Pe="displayName description get patch put post delete options head connect trace get? patch? put? post? delete? options? head? connect? trace? is type securedBy uriParameters usage".split(" ");
if(0===(Pe.length|0))var Ze=Yd();else{for(var Oc=Zd(new ee,Yd()),ke=0,Lf=Pe.length|0;ke<Lf;)fe(Oc,Pe[ke]),ke=1+ke|0;Ze=Oc.gb}var df=(new P).N("resourceType",Ze),de="displayName description queryParameters headers queryString responses body protocols is securedBy usage".split(" ");if(0===(de.length|0))var yg=Yd();else{for(var Mf=Zd(new ee,Yd()),pe=0,Qe=de.length|0;pe<Qe;)fe(Mf,de[pe]),pe=1+pe|0;yg=Mf.gb}var $e=(new P).N("operation",yg),kf="displayName description queryParameters headers queryString responses body protocols is securedBy usage".split(" ");
if(0===(kf.length|0))var Re=Yd();else{for(var le=Zd(new ee,Yd()),Se=0,Nf=kf.length|0;Se<Nf;)fe(le,kf[Se]),Se=1+Se|0;Re=le.gb}var Gf=(new P).N("trait",Re),yf=["displayName","description","allowedTargets"];if(0===(yf.length|0))var ef=Yd();else{for(var lf=Zd(new ee,Yd()),mf=0,zg=yf.length|0;mf<zg;)fe(lf,yf[mf]),mf=1+mf|0;ef=lf.gb}var yh=(new P).N("annotation",ef),Ag=["required"];if(0===(Ag.length|0))var zh=Yd();else{for(var Hf=Zd(new ee,Yd()),Sf=0,ig=Ag.length|0;Sf<ig;)fe(Hf,Ag[Sf]),Sf=1+Sf|0;zh=Hf.gb}var Wf=
(new P).N("property",zh),Kg="uses usage types schemas resourceTypes traits securitySchemes annotationTypes".split(" ");if(0===(Kg.length|0))var Bg=Yd();else{for(var Xg=Zd(new ee,Yd()),If=0,lg=Kg.length|0;If<lg;)fe(Xg,Kg[If]),If=1+If|0;Bg=Xg.gb}var Cg=(new P).N("module",Bg),mg=["headers","queryParameters","queryString","responses"];if(0===(mg.length|0))var Lg=Yd();else{for(var bh=Zd(new ee,Yd()),ch=0,Mg=mg.length|0;ch<Mg;)fe(bh,mg[ch]),ch=1+ch|0;Lg=bh.gb}for(var Hj=[I,E,V,Za,Qb,Je,ud,Ad,ve,we,hf,Oe,
kg,xf,df,$e,Gf,yh,Wf,Cg,(new P).N("describedBy",Lg)],Ah=Ry(new Sy,Xs()),Of=0,dh=Hj.length|0;Of<dh;)Ty(Ah,Hj[Of]),Of=1+Of|0;this.dh=g.gr(Ah.gb);return this};lW.prototype.eya=function(a){this.rT=a};lW.prototype.$classData=q({qYa:0},!1,"amf.plugins.document.webapi.parser.spec.raml.Raml10Syntax$",{qYa:1,f:1,xYa:1,PY:1});var tUa=void 0;function mW(){iP.call(this)}mW.prototype=new FKa;mW.prototype.constructor=mW;mW.prototype.vb=function(a){iP.prototype.vb.call(this,a);return this};mW.prototype.Ap=function(){return Dk()};
mW.prototype.cF=function(){return(new nW).vt(!0,this.ub)};mW.prototype.$classData=q({EYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.Oas30EditingPipeline",{EYa:1,Z7:1,bu:1,f:1});function oW(){qP.call(this)}oW.prototype=new HKa;oW.prototype.constructor=oW;oW.prototype.vb=function(a){qP.prototype.vb.call(this,a);return this};oW.prototype.Ap=function(){return Dk()};oW.prototype.cF=function(){return(new nW).vt(!1,this.ub)};
oW.prototype.$classData=q({FYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.Oas30ResolutionPipeline",{FYa:1,$7:1,bu:1,f:1});function pW(){iP.call(this)}pW.prototype=new FKa;pW.prototype.constructor=pW;pW.prototype.vb=function(a){iP.prototype.vb.call(this,a);return this};pW.prototype.Ap=function(){return Bk()};pW.prototype.cF=function(){return(new nW).vt(!0,this.ub)};
pW.prototype.$classData=q({GYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.OasEditingPipeline",{GYa:1,Z7:1,bu:1,f:1});function uP(){qP.call(this)}uP.prototype=new HKa;uP.prototype.constructor=uP;uP.prototype.vb=function(a){qP.prototype.vb.call(this,a);return this};uP.prototype.Ap=function(){return Bk()};uP.prototype.cF=function(){return(new nW).vt(!1,this.ub)};
uP.prototype.$classData=q({HYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.OasResolutionPipeline",{HYa:1,$7:1,bu:1,f:1});function qW(){iP.call(this)}qW.prototype=new FKa;qW.prototype.constructor=qW;qW.prototype.vb=function(a){iP.prototype.vb.call(this,a);return this};qW.prototype.Ap=function(){return Gk()};qW.prototype.cF=function(){return(new nW).vt(!0,this.ub)};
qW.prototype.$classData=q({IYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.Raml08EditingPipeline",{IYa:1,Z7:1,bu:1,f:1});function rW(){qP.call(this)}rW.prototype=new HKa;rW.prototype.constructor=rW;rW.prototype.vb=function(a){qP.prototype.vb.call(this,a);return this};rW.prototype.Ap=function(){return Gk()};rW.prototype.cF=function(){return(new nW).vt(!1,this.ub)};
rW.prototype.$classData=q({JYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.Raml08ResolutionPipeline",{JYa:1,$7:1,bu:1,f:1});function sW(){iP.call(this)}sW.prototype=new FKa;sW.prototype.constructor=sW;sW.prototype.vb=function(a){iP.prototype.vb.call(this,a);return this};sW.prototype.Ap=function(){return Ek()};sW.prototype.cF=function(){return(new nW).vt(!0,this.ub)};
sW.prototype.$classData=q({KYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.Raml10EditingPipeline",{KYa:1,Z7:1,bu:1,f:1});function BP(){qP.call(this)}BP.prototype=new HKa;BP.prototype.constructor=BP;BP.prototype.vb=function(a){qP.prototype.vb.call(this,a);return this};BP.prototype.Ap=function(){return Ek()};BP.prototype.cF=function(){return(new nW).vt(!1,this.ub)};
BP.prototype.$classData=q({LYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.Raml10ResolutionPipeline",{LYa:1,$7:1,bu:1,f:1});function tW(){}tW.prototype=new r;tW.prototype.constructor=tW;tW.prototype.a=function(){return this};function uUa(a,b,c){a=c.Ph(t(new u,function(a,b){return function(a){return b.Ja(a)}}(a,b)));c=z();return b.la(a,c.s)}tW.prototype.$classData=q({kZa:0},!1,"amf.plugins.document.webapi.resolution.stages.BranchContainer$",{kZa:1,f:1,q:1,n:1});var vUa=void 0;
function wUa(){vUa||(vUa=(new tW).a());return vUa}function wz(){this.o_=this.ub=null;this.D0=this.jm=!1;this.hh=this.Lx=null}wz.prototype=new cu;wz.prototype.constructor=wz;
function xUa(a,b,c){var e=yUa(yUa(zUa(new uW,b,H(fc().Sg,G())),"resourcePath",AUa(c)),"resourcePathName",BUa(c)),f=dpa(CUa(a,c));b=DUa(a,e.bi.Ke.c()|0);var g=EUa(a,c,e,b,f);FUa(a,c,g,b);var h=(new GUa).xba(a),k=B(c.g,Tm().xk),e=t(new u,function(a,b,c,e,f,g,h){return function(k){var ua=B(k.g,Zm().nt).G,Ia=yUa(b,"methodName",ua.b()?null:ua.c()),ua=H(Wg(),G()),Pa=dpa(HUa(a,k)),Za=IUa(a,c);vh(ua,JUa(Za,e,k,Ia,Pa));vh(ua,KUa(Za,e,f,Ia,g));for(Pa=h.Lb;!Pa.b();){var db=Pa.fa(),Qb=B(k.g,Zm().nt).G;vh(ua,
LUa(Za,e,db,Ia,Qb.b()?null:Qb.c(),g));Pa=Pa.sa()}Ia=H(z(),G());for(ua=ua.Lb;!ua.b();)Za=Ia,Ia=ua.fa(),Ia=uUa(wUa(),Za,MUa(Ia)),Za=(new vW).xba(a),Pa=z(),Ia=Ia.$b(Za,Pa.s),ua=ua.sa();ua=Ia;ua.ae(k,qd(function(a,b){return function(c,e){return wW((new xW).qs(b),c,e.Fl,a.ub)}}(a,c)));a.jm||a.D0||gs(k.g,Lc().wi());return ua}}(a,e,b,h,c,f,g)),f=z(),k=k.md(e,f.s);a.jm||a.D0||gs(c.g,Lc().wi());ec(b.Yh);return g.Fa()||k.Fa()?Pra((new yz).vt(a.jm,a.ub),c):c}
function BUa(a){a=AUa(a);a=(new ph).e(a);a=Ws(a,47);var b=(new yW).k1(NUa(OUa(),Jt(ka(a))));b.Gh(a.j.length);for(var c=a.j.length;0<c;)c=-1+c|0,PUa(b,a.j[c]);a=QUa(b);b=a.j.length;for(c=0;;){if(c<b){var e=a.j[c],f=(new ph).e(e);if(Tc(f))var f=(new ph).e("\\{.*\\}"),g=G(),e=Asa((new qh).Di(f.ia,g),e).b();else e=!1;e=!e}else e=!1;if(e)c=1+c|0;else break}b=c;a=b<a.j.length?(new A).d(a.j[b]):w();return a.b()?"":a.c()}function EUa(a,b,c,e,f){var g=H(Wg(),G());RUa(a,g,b,c,e,f);return g}
function FUa(a,b,c,e){for(c=c.Lb;!c.b();){var f=b;b=c.fa();b=wW((new xW).qs(e),f,b,a.ub);c=c.sa()}}function DUa(a,b){var c=a.o_;if(Gk().h(c)){c=G();z();Oj();var e=(new $g).a().wa(),f=(new Np).a(),g=w();b=(new yp).co("",e,f,b,g);a=(new A).d(a.ub);e=w();f=w();g=py().On;return(new mz).Vk("",c,b,e,f,a,g)}c=G();z();Oj();e=(new $g).a().wa();f=(new Np).a();g=w();b=(new yp).co("",e,f,b,g);a=(new A).d(a.ub);e=w();f=w();g=py().On;return(new oy).Vk("",c,b,e,f,a,g)}
wz.prototype.He=function(a){return a.Lm(t(new u,function(a){return function(c){return a.Lx.Ja(c.k)&&!a.D0||(a.Lx.Om(c.k),Um(c))}}(this)),qd(function(a,c){return function(e){return Um(e)?(new A).d(xUa(a,c,e)):(new A).d(e)}}(this,a)),this.ub)};function AUa(a){ta();a=B(a.g,Tm().$f).G;return $v(0,a.b()?null:a.c(),"\\{ext\\}","")}
function SUa(a,b,c,e,f){var g=Wa().Ia(TUa(b));if(x(g)){var h=g.i;if(On(h)){g=h.jA().QJ();g.PL(c.er,f.oF,t(new u,function(a,b,c){return function(a){var e=Bc().nh,f=c.k,g=w(),h=Zb(c.ab,n(Fd)),k=Yb(c);b.Hc(e.k,f,g,a,h,xc().tb,k)}}(a,e,b)));f=Az();var k=c.bi,l=a.o_,h=h.ab,p=B(b.ea,zW().$).G,p=p.b()?null:p.c(),y=b.k;b=Wa().Ia(TUa(b));b.b()?b=w():(b=b.c(),b=zz(Az(),b.k,c.bi));return Zra(f,k,l,g,h,p,y,b,a.jm,(new A).d(e),a.ub)}}a=Bc().nh;c=b.k;g=w();f="Cannot find target for parametrized resource type "+
b.k;k=Zb(b.ab,n(Fd));l=Yb(b);e.Hc(a.k,c,g,f,k,xc().tb,l);e=b.k;b=Zb(b.ab,n(Lt));b.b()?b=w():(b=b.c(),b=(new A).d(b.Lc));return(new bC).Rq(e,b.b()?R().yd:b.c())}function RUa(a,b,c,e,f,g){var h;h=B(c.g,Lc().wi());c=(new UUa).UO(c);h=hd(h,c);h.b()||(h=h.c(),e=VUa(e,h.rI()),h=SUa(a,h,e,f,g),vh(b,h),RUa(a,b,h,e,f,g))}function Dpa(a,b,c,e,f,g){a.o_=b;a.jm=c;a.D0=e;a.Lx=f;bu.prototype.vb.call(a,g);a.hh=ju().na;return a}
wz.prototype.$classData=q({lZa:0},!1,"amf.plugins.document.webapi.resolution.stages.ExtendsResolutionStage",{lZa:1,ji:1,f:1,Fb:1});function jP(){this.Lr=this.ub=null;this.jm=!1;this.hh=null}jP.prototype=new cu;jP.prototype.constructor=jP;jP.prototype.Iv=function(a,b,c){this.Lr=a;this.jm=b;bu.prototype.vb.call(this,c);this.hh=ju().na;return this};
jP.prototype.He=function(a){var b=Dpa(new wz,this.Lr,this.jm,!1,H(xz(),G()),this.ub);return Rm(a)?Cpa((new VP).Iv(this.Lr,this.jm,this.ub),a,a):Pm(a)?Cpa((new SP).Iv(this.Lr,this.jm,this.ub),a,a):b.He(a)};jP.prototype.$classData=q({tZa:0},!1,"amf.plugins.document.webapi.resolution.stages.ExtensionsResolutionStage",{tZa:1,ji:1,f:1,Fb:1});function WUa(){aQ.call(this);this.Qfa=this.Zf=null}WUa.prototype=new bLa;WUa.prototype.constructor=WUa;
function gLa(a){try{var b;var c=a.ue;var e;if(x(c)&&""===c.i)e=w();else{var f=(new Up).a();if(IK().f0(a,f,(IK(),(new mb).a()),(IK(),(new ob).a()))){var g=XCa(op(),Vp(new Wp,f.IM.c(),w()));e=x(g)?(new A).d(ja(g.i)):w()}else e=w()}if(e.b())b=w();else{var h=e.c(),k=Xp(a.g,Dm().ob);b:{var l;if(wj(k)){if(B(k.ea,xj().af).G.Ja(qi().Mj))var p=(new ph).e(h),y=Tc(p);else y=!1;if(y)var I=(new ph).e(h),E=Wj(I),V=34!==(null===E?0:E.t);else V=!1;if(V){var da=(new ph).e(h);l='"'+XUa(da)+'"';break b}}var sa=(new ph).e(h);
l=XUa(sa)}b=(new A).d(l)}if(b.b())return w();var ua=b.c();return(new A).d(dLa(ua))}catch(Ia){a=gi(Mb(),Ia);if(null!==a){if(a&&a.$classData&&a.$classData.v.bfb)return w();if(pJ(a)&&a.qy instanceof ba.SyntaxError)throw(new AW).gm(a);throw Lb(Mb(),a);}throw Ia;}}function dLa(a){try{return ba.JSON.parse(a)}catch(b){a=gi(Mb(),b);if(null!==a){if(pJ(a)&&a.qy instanceof ba.SyntaxError)throw(new AW).gm(a);throw Lb(Mb(),a);}throw b;}}
WUa.prototype.$classData=q({UZa:0},!1,"amf.plugins.document.webapi.validation.remote.JsPayloadValidator",{UZa:1,cfb:1,f:1,qla:1});function YUa(){this.vg=null}YUa.prototype=new UCa;YUa.prototype.constructor=YUa;d=YUa.prototype;d.a=function(){this.vg="Data Shapes Domain";return this};d.Gy=function(){var a=z(),b=[th(),Wh(),Un(),tfa(),ao(),sfa(),ci(),rj(),jo(),xh(),fo(),lo(),ho(),Is(),lh()];return H(a,(new J).aa(b))};d.wh=function(){return this.vg};d.Sp=function(){return H(z(),G())};
d.cn=function(){return hb(ib(),jb(function(){return function(){return kFa()}}(this)),um())};d.Xy=function(){ZUa||(ZUa=(new BW).a());var a=(new P).N("type-expression",ZUa);$Ua||($Ua=(new CW).a());var b=(new P).N("inheritance-provenance",$Ua);aVa||(aVa=(new DW).a());var c=(new P).N("inherited-shapes",aVa);bVa||(bVa=(new EW).a());for(var a=[a,b,c,(new P).N("nil-union",bVa)],b=Ry(new Sy,Xs()),c=0,e=a.length|0;c<e;)Ty(b,a[c]),c=1+c|0;return b.gb};
d.$classData=q({b_a:0},!1,"amf.plugins.domain.shapes.DataShapesDomainPlugin$",{b_a:1,a7:1,f:1,wq:1});var cVa=void 0;function kFa(){cVa||(cVa=(new YUa).a());return cVa}function FW(){}FW.prototype=new r;FW.prototype.constructor=FW;FW.prototype.a=function(){return this};function dVa(a,b){a=Ke(M(),b);return(new ri).P((new Q).a(),a)}FW.prototype.$classData=q({v_a:0},!1,"amf.plugins.domain.shapes.models.ArrayShape$",{v_a:1,f:1,q:1,n:1});var eVa=void 0;function fVa(){eVa||(eVa=(new FW).a());return eVa}
function GW(){}GW.prototype=new r;GW.prototype.constructor=GW;GW.prototype.a=function(){return this};function HW(a,b){a=Ke(M(),b);return(new ui).P((new Q).a(),a)}GW.prototype.$classData=q({A_a:0},!1,"amf.plugins.domain.shapes.models.FileShape$",{A_a:1,f:1,q:1,n:1});var gVa=void 0;function IW(){gVa||(gVa=(new GW).a());return gVa}function JW(){}JW.prototype=new r;JW.prototype.constructor=JW;JW.prototype.a=function(){return this};function KW(a,b){a=Ke(M(),b);return(new ii).P((new Q).a(),a)}
JW.prototype.$classData=q({B_a:0},!1,"amf.plugins.domain.shapes.models.NilShape$",{B_a:1,f:1,q:1,n:1});var hVa=void 0;function LW(){hVa||(hVa=(new JW).a());return hVa}function MW(){}MW.prototype=new r;MW.prototype.constructor=MW;MW.prototype.a=function(){return this};function iVa(a,b){a=Ke(M(),b);return(new si).P((new Q).a(),a)}MW.prototype.$classData=q({C_a:0},!1,"amf.plugins.domain.shapes.models.NodeShape$",{C_a:1,f:1,q:1,n:1});var jVa=void 0;function kVa(){jVa||(jVa=(new MW).a());return jVa}
function NW(){}NW.prototype=new r;NW.prototype.constructor=NW;NW.prototype.a=function(){return this};NW.prototype.$classData=q({D_a:0},!1,"amf.plugins.domain.shapes.models.PropertyDependencies$",{D_a:1,f:1,q:1,n:1});var lVa=void 0;function OW(){}OW.prototype=new r;OW.prototype.constructor=OW;OW.prototype.a=function(){return this};function PW(a,b){a=Ke(M(),b);return(new pi).P((new Q).a(),a)}OW.prototype.$classData=q({E_a:0},!1,"amf.plugins.domain.shapes.models.ScalarShape$",{E_a:1,f:1,q:1,n:1});
var mVa=void 0;function QW(){mVa||(mVa=(new OW).a());return mVa}function RW(){}RW.prototype=new r;RW.prototype.constructor=RW;RW.prototype.a=function(){return this};function nVa(a,b){a=Ke(M(),b);return(new Ui).P((new Q).a(),a)}RW.prototype.$classData=q({F_a:0},!1,"amf.plugins.domain.shapes.models.SchemaShape$",{F_a:1,f:1,q:1,n:1});var oVa=void 0;function pVa(){oVa||(oVa=(new RW).a());return oVa}function SW(){}SW.prototype=new r;SW.prototype.constructor=SW;SW.prototype.a=function(){return this};
function qVa(a,b){a=Ke(M(),b);return(new Ri).P((new Q).a(),a)}SW.prototype.$classData=q({G_a:0},!1,"amf.plugins.domain.shapes.models.TupleShape$",{G_a:1,f:1,q:1,n:1});var rVa=void 0;function sVa(){rVa||(rVa=(new SW).a());return rVa}function TW(){}TW.prototype=new r;TW.prototype.constructor=TW;TW.prototype.a=function(){return this};TW.prototype.$classData=q({J_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$BinaryType$",{J_a:1,f:1,sm:1,jt:1});var tVa=void 0;
function eg(){tVa||(tVa=(new TW).a());return tVa}function UW(){}UW.prototype=new r;UW.prototype.constructor=UW;UW.prototype.a=function(){return this};UW.prototype.$classData=q({K_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$BoolType$",{K_a:1,f:1,sm:1,jt:1});var uVa=void 0;function rg(){uVa||(uVa=(new UW).a());return uVa}function VW(){}VW.prototype=new r;VW.prototype.constructor=VW;VW.prototype.a=function(){return this};
VW.prototype.$classData=q({L_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$ByteType$",{L_a:1,f:1,sm:1,jt:1});var vVa=void 0;function dg(){vVa||(vVa=(new VW).a());return vVa}function WW(){}WW.prototype=new r;WW.prototype.constructor=WW;WW.prototype.a=function(){return this};WW.prototype.$classData=q({M_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$DateOnlyType$",{M_a:1,f:1,sm:1,jt:1});var wVa=void 0;function vg(){wVa||(wVa=(new WW).a());return wVa}function XW(){}XW.prototype=new r;
XW.prototype.constructor=XW;XW.prototype.a=function(){return this};XW.prototype.$classData=q({N_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$DateTimeOnlyType$",{N_a:1,f:1,sm:1,jt:1});var xVa=void 0;function tg(){xVa||(xVa=(new XW).a());return xVa}function YW(){}YW.prototype=new r;YW.prototype.constructor=YW;YW.prototype.a=function(){return this};YW.prototype.$classData=q({O_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$DateTimeType$",{O_a:1,f:1,sm:1,jt:1});var yVa=void 0;
function sg(){yVa||(yVa=(new YW).a());return yVa}function ZW(){}ZW.prototype=new r;ZW.prototype.constructor=ZW;ZW.prototype.a=function(){return this};ZW.prototype.$classData=q({P_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$DoubleType$",{P_a:1,f:1,sm:1,jt:1});var zVa=void 0;function qg(){zVa||(zVa=(new ZW).a());return zVa}function $W(){}$W.prototype=new r;$W.prototype.constructor=$W;$W.prototype.a=function(){return this};
$W.prototype.$classData=q({Q_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$FileType$",{Q_a:1,f:1,sm:1,jt:1});var AVa=void 0;function Dg(){AVa||(AVa=(new $W).a());return AVa}function aX(){}aX.prototype=new r;aX.prototype.constructor=aX;aX.prototype.a=function(){return this};aX.prototype.$classData=q({R_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$FloatType$",{R_a:1,f:1,sm:1,jt:1});var BVa=void 0;function pg(){BVa||(BVa=(new aX).a());return BVa}function bX(){}bX.prototype=new r;
bX.prototype.constructor=bX;bX.prototype.a=function(){return this};bX.prototype.$classData=q({S_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$IntType$",{S_a:1,f:1,sm:1,jt:1});var CVa=void 0;function jg(){CVa||(CVa=(new bX).a());return CVa}function cX(){}cX.prototype=new r;cX.prototype.constructor=cX;cX.prototype.a=function(){return this};cX.prototype.$classData=q({V_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$LongType$",{V_a:1,f:1,sm:1,jt:1});var DVa=void 0;
function og(){DVa||(DVa=(new cX).a());return DVa}function dX(){}dX.prototype=new r;dX.prototype.constructor=dX;dX.prototype.a=function(){return this};dX.prototype.$classData=q({X_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$NilType$",{X_a:1,f:1,sm:1,jt:1});var EVa=void 0;function Eg(){EVa||(EVa=(new dX).a());return EVa}function eX(){}eX.prototype=new r;eX.prototype.constructor=eX;eX.prototype.a=function(){return this};
eX.prototype.$classData=q({Z_a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$NumberType$",{Z_a:1,f:1,sm:1,jt:1});var FVa=void 0;function Fg(){FVa||(FVa=(new eX).a());return FVa}function fX(){}fX.prototype=new r;fX.prototype.constructor=fX;fX.prototype.a=function(){return this};fX.prototype.$classData=q({a0a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$PasswordType$",{a0a:1,f:1,sm:1,jt:1});var GVa=void 0;function fg(){GVa||(GVa=(new fX).a());return GVa}function gX(){}gX.prototype=new r;
gX.prototype.constructor=gX;gX.prototype.a=function(){return this};gX.prototype.$classData=q({b0a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$StrType$",{b0a:1,f:1,sm:1,jt:1});var HVa=void 0;function gg(){HVa||(HVa=(new gX).a());return HVa}function hX(){}hX.prototype=new r;hX.prototype.constructor=hX;hX.prototype.a=function(){return this};hX.prototype.$classData=q({c0a:0},!1,"amf.plugins.domain.shapes.models.TypeDef$TimeOnlyType$",{c0a:1,f:1,sm:1,jt:1});var IVa=void 0;
function ug(){IVa||(IVa=(new hX).a());return IVa}function iX(){}iX.prototype=new r;iX.prototype.constructor=iX;iX.prototype.a=function(){return this};function JVa(a){a=Ke(M(),a);return(new ti).P((new Q).a(),a)}iX.prototype.$classData=q({h0a:0},!1,"amf.plugins.domain.shapes.models.UnionShape$",{h0a:1,f:1,q:1,n:1});var KVa=void 0;function jX(){}jX.prototype=new r;jX.prototype.constructor=jX;jX.prototype.a=function(){return this};
function LVa(a,b,c){a=Ke(M(),c);c=w();return Vi(new Wi,(new Q).a(),a,b,c,w(),!0)}jX.prototype.$classData=q({i0a:0},!1,"amf.plugins.domain.shapes.models.UnresolvedShape$",{i0a:1,f:1,q:1,n:1});var MVa=void 0;function Zoa(){MVa||(MVa=(new jX).a());return MVa}function kX(){}kX.prototype=new r;kX.prototype.constructor=kX;kX.prototype.a=function(){return this};kX.prototype.$classData=q({j0a:0},!1,"amf.plugins.domain.shapes.models.XMLSerializer$",{j0a:1,f:1,q:1,n:1});var NVa=void 0;function lX(){}
lX.prototype=new r;lX.prototype.constructor=lX;lX.prototype.a=function(){return this};lX.prototype.$classData=q({p0a:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.AnyShapeAdjuster$",{p0a:1,f:1,q:1,n:1});var OVa=void 0;function mX(){}mX.prototype=new r;mX.prototype.constructor=mX;mX.prototype.a=function(){return this};function zLa(a,b,c){a=(new PVa).EU(c);return Dj(a,b)}
mX.prototype.$classData=q({x0a:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.ShapeCanonizer$",{x0a:1,f:1,q:1,n:1});var QVa=void 0;function ALa(){QVa||(QVa=(new mX).a());return QVa}function nX(){}nX.prototype=new r;nX.prototype.constructor=nX;nX.prototype.a=function(){return this};function BLa(a,b,c,e){a=new RVa;a.Ff=b;a.aF=e;a.sf=c;b=(new yL).a();c=z();e=[n(SVa)];c=H(c,(new J).aa(e));b.P9=c;a.dr=b;return Dj(a,a.Ff)}
nX.prototype.$classData=q({z0a:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.ShapeExpander$",{z0a:1,f:1,q:1,n:1});var TVa=void 0;function CLa(){TVa||(TVa=(new nX).a());return TVa}function UVa(){this.vg=null}UVa.prototype=new UCa;UVa.prototype.constructor=UVa;d=UVa.prototype;d.a=function(){this.vg="WebAPI Domain";return this};
d.Gy=function(){var a=z(),b=[Jn(),Gi(),bn(),Xm(),Tm(),Zm(),Ej(),fn(),vn(),yn(),Bn(),Zl(),bf(),rn(),En(),vi(),Hn(),oX(),QP(),NP(),qfa(),rfa(),nfa(),ofa(),YO()];return H(a,(new J).aa(b))};d.wh=function(){return this.vg};d.Sp=function(){var a=z(),b=[kFa()];return H(a,(new J).aa(b))};d.cn=function(){return hb(ib(),jb(function(){return function(){return ufa()}}(this)),um())};
d.Xy=function(){var a=bKa(),a=(new P).N("parent-end-point",a);VVa||(VVa=(new pX).a());var b=(new P).N("orphan-oas-extension",VVa);WVa||(WVa=(new qX).a());var c=(new P).N("type-property-lexical-info",WVa);XVa||(XVa=(new rX).a());var e=(new P).N("parameter-binding-in-body-lexical-info",XVa);YVa||(YVa=(new sX).a());a=[a,b,c,e,(new P).N("invalid-binding",YVa)];b=Ry(new Sy,Xs());c=0;for(e=a.length|0;c<e;)Ty(b,a[c]),c=1+c|0;return b.gb};
d.$classData=q({E0a:0},!1,"amf.plugins.domain.webapi.WebAPIDomainPlugin$",{E0a:1,a7:1,f:1,wq:1});var ZVa=void 0;function ufa(){ZVa||(ZVa=(new UVa).a());return ZVa}function tX(){}tX.prototype=new r;tX.prototype.constructor=tX;tX.prototype.a=function(){return this};tX.prototype.$classData=q({n1a:0},!1,"amf.plugins.domain.webapi.models.IriTemplateMapping$",{n1a:1,f:1,q:1,n:1});var $Va=void 0;function vO(){}vO.prototype=new r;vO.prototype.constructor=vO;vO.prototype.a=function(){return this};
vO.prototype.$classData=q({o1a:0},!1,"amf.plugins.domain.webapi.models.License$",{o1a:1,f:1,q:1,n:1});var zJa=void 0;function DO(){}DO.prototype=new r;DO.prototype.constructor=DO;DO.prototype.a=function(){return this};DO.prototype.$classData=q({q1a:0},!1,"amf.plugins.domain.webapi.models.Organization$",{q1a:1,f:1,q:1,n:1});var GJa=void 0;function uX(){}uX.prototype=new r;uX.prototype.constructor=uX;uX.prototype.a=function(){return this};
uX.prototype.$classData=q({s1a:0},!1,"amf.plugins.domain.webapi.models.Payload$",{s1a:1,f:1,q:1,n:1});var aWa=void 0;function XO(){}XO.prototype=new r;XO.prototype.constructor=XO;XO.prototype.a=function(){return this};function jKa(a){a=Lr(M(),a);return(new vX).P((new Q).a(),a)}XO.prototype.$classData=q({u1a:0},!1,"amf.plugins.domain.webapi.models.Tag$",{u1a:1,f:1,q:1,n:1});var iKa=void 0;function wX(){}wX.prototype=new r;wX.prototype.constructor=wX;wX.prototype.a=function(){return this};
function bWa(a,b){a=Lr(M(),b);return(new xX).P((new Q).a(),a)}wX.prototype.$classData=q({v1a:0},!1,"amf.plugins.domain.webapi.models.WebApi$",{v1a:1,f:1,q:1,n:1});var cWa=void 0;function dWa(){cWa||(cWa=(new wX).a());return cWa}function yX(){}yX.prototype=new r;yX.prototype.constructor=yX;yX.prototype.a=function(){return this};function eWa(a,b){a=Ke(M(),b);return(new RP).P((new Q).a(),a)}yX.prototype.$classData=q({w1a:0},!1,"amf.plugins.domain.webapi.models.security.Scope$",{w1a:1,f:1,q:1,n:1});
var fWa=void 0;function gWa(){fWa||(fWa=(new yX).a());return fWa}function yC(){this.F0=this.G0=null}yC.prototype=new r;yC.prototype.constructor=yC;function hWa(a,b,c,e,f){var g=(new uE).a(),h=new (iWa());jWa(a,h);h.validate(b,c,e,f,function(a,b){return function(a,c){if(void 0===a||null===a)return a=ja(ba.JSON.stringify(c)),gk(b,a);a=(new vJ).d(a);return ek(b,a)}}(a,g));return g}yC.prototype.a=function(){this.G0=w();this.F0=w();return this};
function jWa(a,b){if(a.F0.qa()&&a.G0.qa()){var c=a.G0.c();a=a.F0.c();b.registerJSCode(c,a)}}
function kWa(a,b,c,e){var f=(new uE).a();try{wp(xp(),"SHACLValidator#validate: Creating SHACL-JS instance and loading JS libraries");var g=new (iWa());jWa(a,g);wp(xp(),"SHACLValidator#validate: loading Jena data model");var h=(new ic).JE(jba());lba((new lc).xU(h),b,Jha());wp(xp(),"SHACLValidator#validate: loading Jena shapes model");var k=(new ic).JE(jba());fta(eta(new NC,e.Ov.Ap(),k),c);g.validateFromModels(h.ys,k.ys,function(a,b){return function(a,c){if(void 0===a||null===a)return a=(new xQ).JE(c),
gk(b,a);a=(new vJ).d(a);return ek(b,a)}}(a,f));return f}catch(l){a=gi(Mb(),l);if(hi(a))return ek(f,a);throw l;}}function lWa(a,b,c,e,f){var g=(new uE).a(),h=new (iWa());jWa(a,h);h.validate(b,c,e,f,function(a,b){return function(a,c){if(void 0===a||null===a)return a=(new xQ).JE(c),gk(b,a);a=(new vJ).d(a);return ek(b,a)}}(a,g));return g}function mWa(a,b,c){a.G0=(new A).d(b);a.F0=(new A).d(c)}
function iWa(){if(void 0===ba.SHACLValidator)throw Lb(Mb(),(new Nb).e("Cannot find global SHACLValidator object"));return ba.SHACLValidator}yC.prototype.report=function(a,b,c,e){rJ();a=lWa(this,a,b,c,e);return qJ(0,a)};yC.prototype.validate=function(a,b,c,e){rJ();a=hWa(this,a,b,c,e);return qJ(0,a)};yC.prototype.$classData=q({c2a:0},!1,"amf.plugins.features.validation.SHACLValidator",{c2a:1,f:1,Teb:1,Oeb:1});function LC(){this.dHa=this.eHa=this.Hv=this.Xya=null}LC.prototype=new r;
LC.prototype.constructor=LC;
LC.prototype.Ob=function(a){var b=a.r,c=a.da,e=(new pq).e(c);R();var f=Th(R(),"@id");R();var g=this.Xya,h=Th(R(),g);qq(e,f,h);R();var k=Th(R(),"@type");R();var l=C().cb,p=Gc(D(new F,l,"ConstraintComponent")),y=Th(R(),p);qq(e,k,y);if(this.Hv.Wg.Fa()){R();var I=C().cb,E=Gc(D(new F,I,"parameter")),V=Th(R(),E),da=(new My).e(e.da),sa=da.r,ua=da.da,Ia=(new pq).e(ua);R();var Pa=C().cb,Za=Gc(D(new F,Pa,"path")),db=Th(R(),Za),Qb=(new My).e(Ia.da),bc=Qb.r,rc=Qb.da,Fc=(new pq).e(rc);R();var Rd=Th(R(),"@id");
R();var Ld=this.Hv.Wg.fa().CC(),ze=Th(R(),Ld);qq(Fc,Rd,ze);T(bc,lq(R(),rq(sq(),Fc.r,rc),O().ua));var Td=Qb.r,Je=[db];if(0>Td.x)throw(new X).e("0");var $d=Je.length|0,te=Td.x+$d|0;hC(Td,te);Ca(Td.z,0,Td.z,$d,Td.x);for(var Hd=Td.z,ie=Hd.j.length,Nd=0,td=0,yd=Je.length|0,ud=yd<ie?yd:ie,Ve=Hd.j.length,Me=ud<Ve?ud:Ve;Nd<Me;)Hd.j[td]=Je[Nd],Nd=1+Nd|0,td=1+td|0;Td.x=te;T(Ia.r,iC(jC(),Qb.r));R();var Rc=C().cb,me=Gc(D(new F,Rc,"datatype")),Ae=Th(R(),me),We=(new My).e(Ia.da),od=We.r,Ad=We.da,ue=(new pq).e(Ad);
R();var Id=Th(R(),"@id");R();var gf=this.Hv.Wg.fa().a6a(),Jd=Th(R(),gf);qq(ue,Id,Jd);T(od,lq(R(),rq(sq(),ue.r,Ad),O().ua));var Vd=We.r,je=[Ae];if(0>Vd.x)throw(new X).e("0");var Wd=je.length|0,ve=Vd.x+Wd|0;hC(Vd,ve);Ca(Vd.z,0,Vd.z,Wd,Vd.x);for(var $c=Vd.z,we=$c.j.length,cd=0,ae=0,be=je.length|0,xe=be<we?be:we,ne=$c.j.length,Ed=xe<ne?xe:ne;cd<Ed;)$c.j[ae]=je[cd],cd=1+cd|0,ae=1+ae|0;Vd.x=ve;T(Ia.r,iC(jC(),We.r));T(sa,lq(R(),rq(sq(),Ia.r,ua),O().ua));var Ne=da.r,hf=[V];if(0>Ne.x)throw(new X).e("0");var Ef=
hf.length|0,Vf=Ne.x+Ef|0;hC(Ne,Vf);Ca(Ne.z,0,Ne.z,Ef,Ne.x);for(var Xe=Ne.z,Ye=Xe.j.length,vf=0,Oe=0,Xd=hf.length|0,Ff=Xd<Ye?Xd:Ye,rf=Xe.j.length,cf=Ff<rf?Ff:rf;vf<cf;)Xe.j[Oe]=hf[vf],vf=1+vf|0,Oe=1+Oe|0;Ne.x=Vf;T(e.r,iC(jC(),da.r))}else{R();var hg=C().cb,kg=Gc(D(new F,hg,"parameter")),oe=Th(R(),kg),wf=(new My).e(e.da),ce=wf.r,jf=wf.da,Kf=(new pq).e(jf);R();var xf=C().cb,Pe=Gc(D(new F,xf,"path")),Ze=Th(R(),Pe),Oc=(new My).e(Kf.da),ke=Oc.r,Lf=Oc.da,df=(new pq).e(Lf);R();var de=Th(R(),"@id");R();var yg=
this.eHa,Mf=Th(R(),yg);qq(df,de,Mf);T(ke,lq(R(),rq(sq(),df.r,Lf),O().ua));var pe=Oc.r,Qe=[Ze];if(0>pe.x)throw(new X).e("0");var $e=Qe.length|0,kf=pe.x+$e|0;hC(pe,kf);Ca(pe.z,0,pe.z,$e,pe.x);for(var Re=pe.z,le=Re.j.length,Se=0,Nf=0,Gf=Qe.length|0,yf=Gf<le?Gf:le,ef=Re.j.length,lf=yf<ef?yf:ef;Se<lf;)Re.j[Nf]=Qe[Se],Se=1+Se|0,Nf=1+Nf|0;pe.x=kf;T(Kf.r,iC(jC(),Oc.r));R();var mf=C().cb,zg=Gc(D(new F,mf,"datatype")),yh=Th(R(),zg),Ag=(new My).e(Kf.da),zh=Ag.r,Hf=Ag.da,Sf=(new pq).e(Hf);R();var ig=Th(R(),"@id");
R();var Wf=qi().Xj,Kg=Th(R(),Wf);qq(Sf,ig,Kg);T(zh,lq(R(),rq(sq(),Sf.r,Hf),O().ua));var Bg=Ag.r,Xg=[yh];if(0>Bg.x)throw(new X).e("0");var If=Xg.length|0,lg=Bg.x+If|0;hC(Bg,lg);Ca(Bg.z,0,Bg.z,If,Bg.x);for(var Cg=Bg.z,mg=Cg.j.length,Lg=0,bh=0,ch=Xg.length|0,Mg=ch<mg?ch:mg,Hj=Cg.j.length,Ah=Mg<Hj?Mg:Hj;Lg<Ah;)Cg.j[bh]=Xg[Lg],Lg=1+Lg|0,bh=1+bh|0;Bg.x=lg;T(Kf.r,iC(jC(),Ag.r));T(ce,lq(R(),rq(sq(),Kf.r,jf),O().ua));var Of=wf.r,dh=[oe];if(0>Of.x)throw(new X).e("0");var Xf=dh.length|0,Ng=Of.x+Xf|0;hC(Of,Ng);
Ca(Of.z,0,Of.z,Xf,Of.x);for(var wi=Of.z,Hi=wi.j.length,Yf=0,ji=0,mj=dh.length|0,xi=mj<Hi?mj:Hi,Og=wi.j.length,Ij=xi<Og?xi:Og;Yf<Ij;)wi.j[ji]=dh[Yf],Yf=1+Yf|0,ji=1+ji|0;Of.x=Ng;T(e.r,iC(jC(),wf.r))}R();var nj=C().cb,oj=Gc(D(new F,nj,"validator")),zk=Th(R(),oj),ng=(new My).e(e.da),gh=ng.r,ki=ng.da,Zi=(new pq).e(ki);R();var li=Th(R(),"@id");R();var $i=this.dHa,pj=Th(R(),$i);qq(Zi,li,pj);T(gh,lq(R(),rq(sq(),Zi.r,ki),O().ua));var Tf=ng.r,mi=[zk];if(0>Tf.x)throw(new X).e("0");var aj=mi.length|0,Ii=Tf.x+
aj|0;hC(Tf,Ii);Ca(Tf.z,0,Tf.z,aj,Tf.x);for(var qj=Tf.z,Pl=qj.j.length,ni=0,Ak=0,Jj=mi.length|0,$k=Jj<Pl?Jj:Pl,wl=qj.j.length,Am=$k<wl?$k:wl;ni<Am;)qj.j[Ak]=mi[ni],ni=1+ni|0,Ak=1+Ak|0;Tf.x=Ii;T(e.r,iC(jC(),ng.r));T(b,lq(R(),rq(sq(),e.r,c),O().ua))};LC.prototype.Oa=function(){return Gd()};LC.prototype.$classData=q({h2a:0},!1,"amf.plugins.features.validation.emitters.ValidationJSONLDEmitter$$anon$1",{h2a:1,f:1,lh:1,Ra:1});function KC(){this.cHa=this.Rfa=this.EG=this.l=null}KC.prototype=new r;
KC.prototype.constructor=KC;
KC.prototype.Ob=function(a){var b=this.EG.JG;if(x(b)){var c=b.i,e=a.r,f=a.da,g=(new pq).e(f);R();var h=Th(R(),"@id");R();var k=this.Rfa,l=Th(R(),k);qq(g,h,l);R();var p=Th(R(),"@type");R();var y=C().cb,I=Gc(D(new F,y,"JSValidator")),E=Th(R(),I);qq(g,p,E);var V=this.EG.Ad;if(!V.b()){var da=V.c();R();var sa=C().cb,ua=Gc(D(new F,sa,"message")),Ia=Th(R(),ua),Pa=(new My).e(g.da);HC(Pa,da,w());var Za=Pa.r,db=[Ia];if(0>Za.x)throw(new X).e("0");var Qb=db.length|0,bc=Za.x+Qb|0;hC(Za,bc);Ca(Za.z,0,Za.z,Qb,Za.x);
for(var rc=Za.z,Fc=rc.j.length,Rd=0,Ld=0,ze=db.length|0,Td=ze<Fc?ze:Fc,Je=rc.j.length,$d=Td<Je?Td:Je;Rd<$d;)rc.j[Ld]=db[Rd],Rd=1+Rd|0,Ld=1+Ld|0;Za.x=bc;T(g.r,iC(jC(),Pa.r))}R();var te=C().cb,Hd=Gc(D(new F,te,"jsLibrary")),ie=Th(R(),Hd),Nd=(new My).e(g.da),td=Nd.r,yd=Nd.da,ud=(new My).e(yd);this.EG.ai.X(t(new u,function(a,b){return function(a){var c=b.r,e=b.da,f=(new pq).e(e);R();var g=C().cb,g=Gc(D(new F,g,"jsLibraryURL")),h=Th(R(),g),g=(new My).e(f.da),k=g.r,l=g.da,p=(new pq).e(l);R();var y=Th(R(),
"@value");R();a=Th(R(),a);qq(p,y,a);R();a=Th(R(),"@type");R();y=Th(R(),"http://www.w3.org/2001/XMLSchema#anyUri");qq(p,a,y);T(k,lq(R(),rq(sq(),p.r,l),O().ua));k=g.r;h=[h];if(0>k.x)throw(new X).e("0");p=h.length|0;l=k.x+p|0;hC(k,l);Ca(k.z,0,k.z,p,k.x);for(var p=k.z,I=p.j.length,y=a=0,E=h.length|0,I=E<I?E:I,E=p.j.length,I=I<E?I:E;a<I;)p.j[y]=h[a],a=1+a|0,y=1+y|0;k.x=l;T(f.r,iC(jC(),g.r));T(c,lq(R(),rq(sq(),f.r,e),O().ua))}}(this,ud)));R();FC();var Ve=Py(vq(),yd),Me=lq(0,(new GC).mc(Ve,ud.r),O().Nc);
T(td,Me);var Rc=Nd.r,me=[ie];if(0>Rc.x)throw(new X).e("0");var Ae=me.length|0,We=Rc.x+Ae|0;hC(Rc,We);Ca(Rc.z,0,Rc.z,Ae,Rc.x);for(var od=Rc.z,Ad=od.j.length,ue=0,Id=0,gf=me.length|0,Jd=gf<Ad?gf:Ad,Vd=od.j.length,je=Jd<Vd?Jd:Vd;ue<je;)od.j[Id]=me[ue],ue=1+ue|0,Id=1+Id|0;Rc.x=We;T(g.r,iC(jC(),Nd.r));R();var Wd=C().cb,ve=Gc(D(new F,Wd,"jsFunctionName")),$c=Th(R(),ve),we=(new My).e(g.da);HC(we,c,w());var cd=we.r,ae=[$c];if(0>cd.x)throw(new X).e("0");var be=ae.length|0,xe=cd.x+be|0;hC(cd,xe);Ca(cd.z,0,
cd.z,be,cd.x);for(var ne=cd.z,Ed=ne.j.length,Ne=0,hf=0,Ef=ae.length|0,Vf=Ef<Ed?Ef:Ed,Xe=ne.j.length,Ye=Vf<Xe?Vf:Xe;Ne<Ye;)ne.j[hf]=ae[Ne],Ne=1+Ne|0,hf=1+hf|0;cd.x=xe;T(g.r,iC(jC(),we.r));T(e,lq(R(),rq(sq(),g.r,f),O().ua))}else if(w()===b){if(!x(this.EG.dE))throw Lb(Mb(),(new Nb).e("Cannot emit validator without JS code or JS function name"));var vf=a.r,Oe=a.da,Xd=(new pq).e(Oe);R();var Ff=Th(R(),"@id");R();var rf=this.Rfa,cf=Th(R(),rf);qq(Xd,Ff,cf);R();var hg=Th(R(),"@type");R();var kg=C().cb,oe=
Gc(D(new F,kg,"JSValidator")),wf=Th(R(),oe);qq(Xd,hg,wf);var ce=this.EG.Ad;if(!ce.b()){var jf=ce.c();R();var Kf=C().cb,xf=Gc(D(new F,Kf,"message")),Pe=Th(R(),xf),Ze=(new My).e(Xd.da);HC(Ze,jf,w());var Oc=Ze.r,ke=[Pe];if(0>Oc.x)throw(new X).e("0");var Lf=ke.length|0,df=Oc.x+Lf|0;hC(Oc,df);Ca(Oc.z,0,Oc.z,Lf,Oc.x);for(var de=Oc.z,yg=de.j.length,Mf=0,pe=0,Qe=ke.length|0,$e=Qe<yg?Qe:yg,kf=de.j.length,Re=$e<kf?$e:kf;Mf<Re;)de.j[pe]=ke[Mf],Mf=1+Mf|0,pe=1+pe|0;Oc.x=df;T(Xd.r,iC(jC(),Ze.r))}R();var le=C().cb,
Se=Gc(D(new F,le,"jsLibrary")),Nf=Th(R(),Se),Gf=(new My).e(Xd.da),yf=Gf.r,ef=Gf.da,lf=(new My).e(ef),mf=z(),zg=[Zsa()],yh=H(mf,(new J).aa(zg)),Ag=this.EG.ai,zh=z();yh.la(Ag,zh.s).X(t(new u,function(a,b){return function(a){var c=b.r,e=b.da,f=(new pq).e(e);R();var g=C().cb,g=Gc(D(new F,g,"jsLibraryURL")),h=Th(R(),g),g=(new My).e(f.da),k=g.r,l=g.da,p=(new pq).e(l);R();var y=Th(R(),"@value");R();a=Th(R(),a);qq(p,y,a);R();a=Th(R(),"@type");R();y=Th(R(),"http://www.w3.org/2001/XMLSchema#anyUri");qq(p,a,
y);T(k,lq(R(),rq(sq(),p.r,l),O().ua));k=g.r;h=[h];if(0>k.x)throw(new X).e("0");p=h.length|0;l=k.x+p|0;hC(k,l);Ca(k.z,0,k.z,p,k.x);for(var p=k.z,I=p.j.length,y=a=0,E=h.length|0,I=E<I?E:I,E=p.j.length,I=I<E?I:E;a<I;)p.j[y]=h[a],a=1+a|0,y=1+y|0;k.x=l;T(f.r,iC(jC(),g.r));T(c,lq(R(),rq(sq(),f.r,e),O().ua))}}(this,lf)));R();FC();var Hf=Py(vq(),ef),Sf=lq(0,(new GC).mc(Hf,lf.r),O().Nc);T(yf,Sf);var ig=Gf.r,Wf=[Nf];if(0>ig.x)throw(new X).e("0");var Kg=Wf.length|0,Bg=ig.x+Kg|0;hC(ig,Bg);Ca(ig.z,0,ig.z,Kg,ig.x);
for(var Xg=ig.z,If=Xg.j.length,lg=0,Cg=0,mg=Wf.length|0,Lg=mg<If?mg:If,bh=Xg.j.length,ch=Lg<bh?Lg:bh;lg<ch;)Xg.j[Cg]=Wf[lg],lg=1+lg|0,Cg=1+Cg|0;ig.x=Bg;T(Xd.r,iC(jC(),Gf.r));R();var Mg=C().cb,Hj=Gc(D(new F,Mg,"jsFunctionName")),Ah=Th(R(),Hj),Of=(new My).e(Xd.da);HC(Of,Psa(this.EG,this.cHa),w());var dh=Of.r,Xf=[Ah];if(0>dh.x)throw(new X).e("0");var Ng=Xf.length|0,wi=dh.x+Ng|0;hC(dh,wi);Ca(dh.z,0,dh.z,Ng,dh.x);for(var Hi=dh.z,Yf=Hi.j.length,ji=0,mj=0,xi=Xf.length|0,Og=xi<Yf?xi:Yf,Ij=Hi.j.length,nj=
Og<Ij?Og:Ij;ji<nj;)Hi.j[mj]=Xf[ji],ji=1+ji|0,mj=1+mj|0;dh.x=wi;T(Xd.r,iC(jC(),Of.r));T(vf,lq(R(),rq(sq(),Xd.r,Oe),O().ua))}else throw(new v).d(b);};KC.prototype.Oa=function(){return Gd()};KC.prototype.$classData=q({i2a:0},!1,"amf.plugins.features.validation.emitters.ValidationJSONLDEmitter$$anon$2",{i2a:1,f:1,lh:1,Ra:1});function zX(){this.RBa=this.I9=this.Vga=this.mS=this.ica=this.DJ=this.ZF=this.Nz=null}zX.prototype=new r;zX.prototype.constructor=zX;
function nWa(a,b,c){0===c?(0<=b.$a?(c=b.$a,c=0===c?-2147483637>(-2147483648^b.Na):0>c):c=!1,a=c?a.Vga.j[b.Na]:oWa(new MR,b,0)):a=0===b.Na&&0===b.$a&&0<=c&&c<a.I9.j.length?a.I9.j[c]:oWa(new MR,b,c);return a}
zX.prototype.a=function(){pWa=this;this.Nz=(new MR).La(0,0);this.ZF=(new MR).La(1,0);this.DJ=(new MR).La(10,0);this.ica=qWa(28,5);var a=this.ica.j.length,b;b=[];for(var c=0;c<a;){var e=c,e=rWa(AX(),AX().ica.j[e]);b.push(e);c=1+c|0}ha(La(Ra),b);this.mS=qWa(19,10);a=this.mS.j.length;b=[];for(c=0;c<a;)e=c,e=rWa(AX(),AX().mS.j[e]),b.push(e),c=1+c|0;ha(La(Ra),b);a=[];for(b=0;11>b;)c=b,c=(new MR).La(c,0),a.push(c),b=1+b|0;this.Vga=ha(La(sWa),a);a=[];for(b=0;11>b;)c=b,c=(new MR).La(0,c),a.push(c),b=1+b|
0;this.I9=ha(La(sWa),a);a=[];for(b=0;100>b;)a.push(48),b=1+b|0;this.RBa=ha(La(Na),a);return this};function tWa(a,b,c,e){a=0>c?-c|0:c;var f=0===c?0:0>c?-1:1;if(vD().s9===e)return f;if(vD().L5===e)return 0;if(vD().I5===e)return 0<f?f:0;if(vD().f6===e)return 0>f?f:0;if(vD().j6===e)return 5<=a?f:0;if(vD().i6===e)return 5<a?f:0;if(vD().TR===e)return 5<(a+b|0)?f:0;if(vD().r9===e){if(0===c)return 0;throw(new BX).e("Rounding necessary");}throw(new v).d(e);}
function uWa(a,b){a=b.$a;(-1===a?0>(-2147483648^b.Na):-1>a)?a=!0:(a=b.$a,a=0===a?-1<(-2147483648^b.Na):0<a);if(a)throw(new BX).e("Out of int range: "+b);return b.Na}function rWa(a,b){b=0>b.$a?(new aq).La(~b.Na,~b.$a):b;a=b.Na;b=b.$a;return 64-(0!==b?fa(b):32+fa(a)|0)|0}
function qWa(a,b){var c;c=[];if(0<a){var e=(new aq).La(1,0),f=1,g=e;for(c.push(null===g?null:g);f<a;){var g=Ea(e),e=g.Na,g=g.$a,h=b>>31,k=65535&e,l=e>>>16|0,p=65535&b,y=b>>>16|0,I=ca(k,p),p=ca(l,p),E=ca(k,y),k=I+((p+E|0)<<16)|0,I=(I>>>16|0)+E|0,e=(((ca(e,h)+ca(g,b)|0)+ca(l,y)|0)+(I>>>16|0)|0)+(((65535&I)+p|0)>>>16|0)|0,e=(new aq).La(k,e),f=1+f|0,g=e;c.push(null===g?null:g)}}return ha(La(Sa),c)}zX.prototype.$classData=q({E2a:0},!1,"java.math.BigDecimal$",{E2a:1,f:1,q:1,n:1});var pWa=void 0;
function AX(){pWa||(pWa=(new zX).a());return pWa}function CX(){this.n9=this.xxa=this.YY=this.Nz=this.DJ=this.ZF=null}CX.prototype=new r;CX.prototype.constructor=CX;
CX.prototype.a=function(){vWa=this;this.ZF=(new bD).La(1,1);this.DJ=(new bD).La(1,10);this.Nz=(new bD).La(0,0);this.YY=(new bD).La(-1,1);var a=[this.Nz,this.ZF,(new bD).La(1,2),(new bD).La(1,3),(new bD).La(1,4),(new bD).La(1,5),(new bD).La(1,6),(new bD).La(1,7),(new bD).La(1,8),(new bD).La(1,9),this.DJ],b=(new J).aa(a),a=b.z.length|0,a=ia(La(xD),[a]),c;c=0;for(b=hD(new iD,b,0,b.z.length|0);b.Qa();){var e=b.Sa();a.j[c]=e;c=1+c|0}this.xxa=a;a=[];for(c=0;32>c;)b=c,b=rD(dD(),(new aq).La(0===(32&b)?1<<
b:0,0===(32&b)?0:1<<b)),a.push(null===b?null:b),c=1+c|0;this.n9=ha(La(xD),a);return this};function rD(a,b){if(0>b.$a)return-1!==b.Na||-1!==b.$a?(a=b.Na,b=b.$a,wWa(new bD,-1,(new aq).La(-a|0,0!==a?~b:-b|0))):a.YY;var c=b.$a;return(0===c?-2147483638>=(-2147483648^b.Na):0>c)?a.xxa.j[b.Na]:wWa(new bD,1,b)}CX.prototype.$classData=q({F2a:0},!1,"java.math.BigInteger$",{F2a:1,f:1,q:1,n:1});var vWa=void 0;function dD(){vWa||(vWa=(new CX).a());return vWa}
function DX(){this.r9=this.TR=this.i6=this.j6=this.f6=this.I5=this.L5=this.s9=null}DX.prototype=new r;DX.prototype.constructor=DX;
DX.prototype.a=function(){xWa=this;this.s9=(new EX).bn("UP",0);this.L5=(new EX).bn("DOWN",1);this.I5=(new EX).bn("CEILING",2);this.f6=(new EX).bn("FLOOR",3);this.j6=(new EX).bn("HALF_UP",4);this.i6=(new EX).bn("HALF_DOWN",5);this.TR=(new EX).bn("HALF_EVEN",6);this.r9=(new EX).bn("UNNECESSARY",7);var a=(new J).aa([this.s9,this.L5,this.I5,this.f6,this.j6,this.i6,this.TR,this.r9]),b=a.z.length|0,b=ia(La(yWa),[b]),c;c=0;for(a=hD(new iD,a,0,a.z.length|0);a.Qa();){var e=a.Sa();b.j[c]=e;c=1+c|0}return this};
DX.prototype.$classData=q({O2a:0},!1,"java.math.RoundingMode$",{O2a:1,f:1,q:1,n:1});var xWa=void 0;function vD(){xWa||(xWa=(new DX).a());return xWa}function FX(){this.Oaa=this.Cya=this.yDa=this.nW=this.SBa=this.Tba=null}FX.prototype=new r;FX.prototype.constructor=FX;
FX.prototype.a=function(){zWa=this;this.Tba="(?:(?:[0-9a-f]{1,4}:){7}[0-9a-f]{1,4}|(?:[0-9a-f]{1,4}:){1,7}:|(?:[0-9a-f]{1,4}:){1,6}(?::[0-9a-f]{1,4})|(?:[0-9a-f]{1,4}:){1,5}(?::[0-9a-f]{1,4}){1,2}|(?:[0-9a-f]{1,4}:){1,4}(?::[0-9a-f]{1,4}){1,3}|(?:[0-9a-f]{1,4}:){1,3}(?::[0-9a-f]{1,4}){1,4}|(?:[0-9a-f]{1,4}:){1,2}(?::[0-9a-f]{1,4}){1,5}|(?:[0-9a-f]{1,4}:)(?::[0-9a-f]{1,4}){1,6}|:(?:(?::[0-9a-f]{1,4}){1,7}|:)|(?:[0-9a-f]{1,4}:){6}[0-9]{1,3}(?:\\.[0-9]{1,3}){3}|(?:[0-9a-f]{1,4}:){1,5}:[0-9]{1,3}(?:\\.[0-9]{1,3}){3}|(?:[0-9a-f]{1,4}:){1,4}(?::[0-9a-f]{1,4}):[0-9]{1,3}(?:\\.[0-9]{1,3}){3}|(?:[0-9a-f]{1,4}:){1,3}(?::[0-9a-f]{1,4}){1,2}:[0-9]{1,3}(?:\\.[0-9]{1,3}){3}|(?:[0-9a-f]{1,4}:){1,2}(?::[0-9a-f]{1,4}){1,3}:[0-9]{1,3}(?:\\.[0-9]{1,3}){3}|(?:[0-9a-f]{1,4}:)(?::[0-9a-f]{1,4}){1,4}:[0-9]{1,3}(?:\\.[0-9]{1,3}){3}|::(?:[0-9a-f]{1,4}:){1,5}[0-9]{1,3}(?:\\.[0-9]{1,3}){3})(?:%[0-9a-z]+)?";new ba.RegExp("^"+
this.Tba+"$","i");var a="//("+("(?:(?:((?:[a-z0-9-_.!~*'();:\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*)@)?"+("((?:(?:[a-z0-9]|[a-z0-9][a-z0-9-]*[a-z0-9])\\.)*(?:[a-z]|[a-z][a-z0-9-]*[a-z0-9])\\.?|[0-9]{1,3}(?:\\.[0-9]{1,3}){3}|"+("\\[(?:"+this.Tba+")\\]")+")(?::([0-9]*))?")+")?|(?:[a-z0-9-_.!~*'()$,;:@\x26\x3d+]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])+")+")(/(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*(?:;(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*)*(?:/(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*(?:;(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*)*)*)?";
this.SBa=new ba.RegExp("^(?:"+("([a-z][a-z0-9+-.]*):(?:("+("(?:"+a+"|(/(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*(?:;(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*)*(?:/(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*(?:;(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*)*)*))(?:\\?((?:[;/?:@\x26\x3d+$,\\[\\]a-z0-9-_.!~*'()]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*))?")+
")|((?:[a-z0-9-_.!~*'();?:@\x26\x3d+$,]|%[a-f0-9]{2})(?:[;/?:@\x26\x3d+$,\\[\\]a-z0-9-_.!~*'()]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*))")+"|"+("((?:"+a+"|(/(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*(?:;(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*)*(?:/(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*(?:;(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*)*)*)|((?:[a-z0-9-_.!~*'();@\x26\x3d+$,]|%[a-f0-9]{2})*(?:/(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*(?:;(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*)*(?:/(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*(?:;(?:[a-z0-9-_.!~*'():@\x26\x3d+$,]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*)*)*)?))(?:\\?((?:[;/?:@\x26\x3d+$,\\[\\]a-z0-9-_.!~*'()]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*))?)")+
")(?:#((?:[;/?:@\x26\x3d+$,\\[\\]a-z0-9-_.!~*'()]|%[a-f0-9]{2}|[^\x00-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029])*))?$","i");this.nW=function(a){QL();a=MBa(AJ(),a);for(var c="";a.hd!==a.$e;)var e=255&YOa(a),f=(+(e>>>0)).toString(16),c=c+(15>=e?"%0":"%")+f.toUpperCase();return c};new ba.RegExp('[\x00- "#/\x3c\x3e?@\\[-\\^`{-}\u007f-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029]|%(?![0-9a-f]{2})',"ig");this.yDa=new ba.RegExp('[\x00- "#\x3c\x3e?\\[-\\^`{-}\u007f-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029]|%(?![0-9a-f]{2})',
"ig");this.Cya=new ba.RegExp('[\x00- "#/\x3c\x3e?\\^`{-}\u007f-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029]|%(?![0-9a-f]{2})',"ig");this.Oaa=new ba.RegExp('[\x00- "#\x3c\x3e@\\^`{-}\u007f-\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\u2028\u2029]|%(?![0-9a-f]{2})',"ig");new ba.RegExp("[^\x00-\u007f]+","g");return this};
function JEa(a,b,c,e,f,g){var h="";null!==b&&(h=""+h+b+":");null!==c&&(h=h+"//"+c.replace(a.Cya,a.nW));null!==e&&(h=""+h+e.replace(a.yDa,a.nW));null!==f&&(h=h+"?"+f.replace(a.Oaa,a.nW));null!==g&&(h=h+"#"+g.replace(a.Oaa,a.nW));return h}
function AWa(a,b){a=0;for(var c="";a<(b.length|0);)if(37===(65535&(b.charCodeAt(a)|0))){if(!((b.length|0)>(2+a|0)))throw(new fJ).d("assertion failed: Invalid escape in URI");var e=b.substring(a,3+a|0),c=""+c+e.toUpperCase();a=3+a|0}else c=""+c+b.substring(a,1+a|0),a=1+a|0;return c}
function IEa(a,b){a=(new ph).e(b);for(var c=0;;){if(c<(a.ia.length|0))var e=a.jb(c),e=37!==(null===e?0:e.t)===!0;else e=!1;if(e)c=1+c|0;else break}if(c===(a.ia.length|0))return b;b=Xta(aua(),b,b.length|0);aua();a=b.iz;a=ia(La(Na),[a]);e=c=a.j.length;if(0>e||e>a.j.length)throw(new X).a();if(0>c||c>e)throw(new X).a();a=BWa(e,a,0,0,c,!1);var c=Sta(Wta(),64),f;f=!1;var e=(AJ(),(new tS).a()),g=LD().yJ;if(null===g)throw(new rk).e("null CodingErrorAction");e.OI=g;g=LD().yJ;if(null===g)throw(new rk).e("null CodingErrorAction");
for(e.RI=g;b.hd!==b.$e;)switch(g=b.JO(),g){case 37:if(c.hd===c.$e){CD.prototype.xO.call(c);cua(e,c,a,!1);f=c;if(f.bt)throw(new ND).a();g=f.$e-f.hd|0;Ca(f.Ni,f.wk+f.hd|0,f.Ni,f.wk,g);f.FF=-1;CD.prototype.C1.call(f,f.iz);CD.prototype.gg.call(f,g)}f=b.JO();f=ba.String.fromCharCode(f);g=b.JO();f=""+f+ba.String.fromCharCode(g);f=qC(pC(),f,16);uS(c,f<<24>>24);f=!0;break;default:f&&(CD.prototype.xO.call(c),cua(e,c,a,!0),e.Cx=1,CD.prototype.Pya.call(c),f=!1),a.HP(g)}f&&(CD.prototype.xO.call(c),cua(e,c,a,
!0),e.Cx=1,CD.prototype.Pya.call(c));CD.prototype.xO.call(a);return a.u()}FX.prototype.$classData=q({P2a:0},!1,"java.net.URI$",{P2a:1,f:1,q:1,n:1});var zWa=void 0;function QL(){zWa||(zWa=(new FX).a());return zWa}function FD(){CD.call(this);this.Ni=null;this.wk=0}FD.prototype=new Rta;FD.prototype.constructor=FD;function CWa(){}CWa.prototype=FD.prototype;FD.prototype.h=function(a){return a&&a.$classData&&a.$classData.v.Q2a?0===DWa(this,a):!1};
FD.prototype.c6a=function(a,b,c){this.Ni=b;this.wk=c;CD.prototype.$d.call(this,a);return this};FD.prototype.Wn=function(a){return DWa(this,a)};function DWa(a,b){if(a===b)return 0;for(var c=a.hd,e=a.$e-c|0,f=b.hd,g=b.$e-f|0,h=e<g?e:g,k=0;k!==h;){var l=a.Ni.j[a.wk+(c+k|0)|0]|0,p=b.Ni.j[b.wk+(f+k|0)|0]|0,l=l===p?0:l<p?-1:1;if(0!==l)return l;k=1+k|0}return e===g?0:e<g?-1:1}
FD.prototype.y=function(){for(var a=this.hd,b=this.$e,c=-547316498,e=a;e!==b;){var f=xI();zI();c=f.Ga(c,yI(0,this.Ni.j[this.wk+e|0]|0));e=1+e|0}return xI().Wd(c,b-a|0)};function GX(){}GX.prototype=new cNa;GX.prototype.constructor=GX;GX.prototype.a=function(){return this};GX.prototype.$classData=q({l3a:0},!1,"org.mulesoft.common.io.Fs$",{l3a:1,pfb:1,f:1,k3a:1});var EWa=void 0;function FWa(){EWa||(EWa=(new GX).a());return EWa}
function HX(){this.fza=this.JGa=this.Efa=this.d3=this.U$=this.eha=this.J9=null}HX.prototype=new r;HX.prototype.constructor=HX;
HX.prototype.a=function(){GWa=this;this.J9=(new IX).NO(0,0,0,0);this.eha=HWa(new JX,1970,1,1,(new A).d(this.J9),(new A).d(0));this.U$="(\\d{4})-(\\d\\d?)-(\\d\\d?)";this.d3="(\\d\\d?):(\\d\\d?)(?::(\\d\\d?))?(?:\\.(\\d{0,9}))?";this.Efa="(?:(?:[\\ \\t]*)?(Z|([-+]\\d\\d?)(?::(\\d\\d?))?))?";this.JGa="(?:[Tt]|[\\ \\t]+)";var a=(new ph).e(this.U$),b=G();(new qh).Di(a.ia,b);a=(new ph).e(this.U$+"(?:"+this.JGa+this.d3+this.Efa+")?");b=G();this.fza=(new qh).Di(a.ia,b);a=(new ph).e(this.d3);b=G();(new qh).Di(a.ia,
b);a=(new ph).e(""+this.d3+this.Efa);b=G();(new qh).Di(a.ia,b);return this};function IWa(a,b,c,e,f){a=qC(pC(),b,10);c=qC(pC(),c,10);e=KX(0,e);if(null===f)f=0;else{b=pC();var g=(new ph).e("0");f=""+f+pha(g,9-(f.length|0)|0);f=qC(b,f,10)}return(new IX).NO(a,c,e,f)}function KX(a,b){aE();if(null===b)a=!0;else{if(null===b)throw(new Rg).a();a=""===b}return a?0:qC(pC(),b,10)}HX.prototype.cj=function(a){return IL(this,a).Mk()};
function IL(a,b){a=ss(a.fza,b);if(a.b())c=!1;else if(null!==a.c())var c=a.c(),c=0===Ot(c,10);else c=!1;if(c){b=a.c();b=Pt(b,0);var c=a.c(),c=Pt(c,1),e=a.c(),e=Pt(e,2),f=a.c(),f=Pt(f,3),g=a.c(),g=Pt(g,4),h=a.c(),h=Pt(h,5),k=a.c(),k=Pt(k,6),l=a.c(),l=Pt(l,7),p=a.c(),p=Pt(p,8);a=a.c();a=Pt(a,9);try{Zf();var y=new JX,I=KX(gE(),b),E=KX(gE(),c),V=KX(gE(),e),da=null===f?w():(new A).d(IWa(gE(),f,g,h,k)),sa;gE();if(null===l)sa=w();else if(null===p)sa=(new A).d(0);else{var ua=KX(0,p),Ia=KX(0,a);if(-24>ua||
24<ua)throw JWa(new LX,(new MX).$d(ua));if(0>Ia||60<Ia)throw JWa(new LX,(new MX).$d(Ia));sa=(new A).d(ca(3600,ua)+ca(60,0>ua?-Ia|0:Ia)|0)}var Pa=HWa(y,I,E,V,da,sa);return(new ag).d(Pa)}catch(Za){y=gi(Mb(),Za);if(null!==y){if(y&&y.$classData&&y.$classData.v.z8)return y=y.CP,Zf(),(new $f).d(y);throw Lb(Mb(),y);}throw Za;}}xua||(xua=(new eE).a());Zf();y=(new KWa).tc(b,"");return(new $f).d(y)}HX.prototype.$classData=q({t3a:0},!1,"org.mulesoft.common.time.SimpleDateTime$",{t3a:1,f:1,q:1,n:1});
var GWa=void 0;function gE(){GWa||(GWa=(new HX).a());return GWa}function NX(){}NX.prototype=new r;NX.prototype.constructor=NX;NX.prototype.a=function(){return this};NX.prototype.$classData=q({u3a:0},!1,"org.mulesoft.common.time.TimeOfDay$",{u3a:1,f:1,q:1,n:1});var LWa=void 0;function OX(){this.Qga=this.xn=null}OX.prototype=new r;OX.prototype.constructor=OX;OX.prototype.a=function(){MWa=this;this.xn=(new PX).NO(1,0,1,0);this.Qga=(new PX).NO(1,0,2147483647,2147483647);return this};
function Af(a,b,c,e,f){return 1>=b&&0>=c&&1>=e&&0>=f?a.xn:1>=b&&0>=c&&2147483647===e&&2147483647===b?a.Qga:(new PX).NO(b,c,e,f)}OX.prototype.$classData=q({z3a:0},!1,"org.mulesoft.lexer.InputRange$",{z3a:1,f:1,q:1,n:1});var MWa=void 0;function Bf(){MWa||(MWa=(new OX).a());return MWa}function oE(){this.rj=this.eg=this.Ne=0}oE.prototype=new r;oE.prototype.constructor=oE;d=oE.prototype;d.h=function(a){return a&&a.$classData&&a.$classData.v.Owa?this.Ne===a.Ne&&this.eg===a.eg&&this.rj===a.rj:!1};
d.Zh=function(a,b,c){this.Ne=a;this.eg=b;this.rj=c;return this};d.zy=function(){return 0===this.Ne&&0===this.eg&&0===this.rj};d.u=function(){return(0>=this.Ne&&0>=this.eg?"":"("+this.Ne+", "+this.eg+")")+"@"+this.rj};d.Wn=function(a){return NWa(this,a)};d.Xn=function(a){return NWa(this,a)};d.y=function(){return this.Ne+ca(31,this.eg+ca(31,this.rj)|0)|0};
function NWa(a,b){if(a.rj!==b.rj)return a=a.rj,b=b.rj,a===b?0:a<b?-1:1;if(a.Ne!==b.Ne)return a=a.Ne,b=b.Ne,a===b?0:a<b?-1:1;b=b.eg;a=a.eg;return b===a?0:b<a?-1:1}d.$classData=q({Owa:0},!1,"org.mulesoft.lexer.Position",{Owa:1,f:1,vx:1,sh:1});function QX(){this.qh=this.Op=null}QX.prototype=new r;QX.prototype.constructor=QX;QX.prototype.a=function(){OWa=this;this.Op=(vq(),Cha("",0,0,0,0,0,0));this.qh=(new ct).a();return this};
function Py(a,b){if(null===b)var c=!0;else{if(null===b)throw(new Rg).a();c=""===b}if(c)return a.Op;c=a.qh.Ta(b);if(x(c))return c.i;vq();c=Cha(b,0,0,0,0,0,0);a.qh.Rl(b,c);return c}function Mva(a,b,c,e){return c.zy()&&e.zy()?Py(vq(),b):Cha(b,c.rj,e.rj,c.Ne,c.eg,e.Ne,e.eg)}QX.prototype.$classData=q({E3a:0},!1,"org.mulesoft.lexer.SourceLocation$",{E3a:1,f:1,q:1,n:1});var OWa=void 0;function vq(){OWa||(OWa=(new QX).a());return OWa}function RX(){}RX.prototype=new r;RX.prototype.constructor=RX;
RX.prototype.a=function(){return this};
function OFa(a,b,c){if(yE()===b)return wE(new xE,yE(),c);if(uM()===b)try{var e=(new ph).e(c),f=tC(uC(),e.ia,10),g=f.Na,h=f.$a;return wE(new xE,uM(),(new aq).La(g,h))}catch(I){a=gi(Mb(),I);if(null!==a){if(!uI(vI(),a).b())return wE(new xE,yE(),c);throw Lb(Mb(),a);}throw I;}else if(vM()===b)try{var k=(new ph).e(c),l=rC(wa(),k.ia);return wE(new xE,vM(),l)}catch(I){a=gi(Mb(),I);if(null!==a){if(!uI(vI(),a).b())return wE(new xE,yE(),c);throw Lb(Mb(),a);}throw I;}else if(tM()===b)try{var p=(new ph).e(c),
y=HL(p.ia);return wE(new xE,tM(),y)}catch(I){a=gi(Mb(),I);if(null!==a){if(!uI(vI(),a).b())return wE(new xE,yE(),c);throw Lb(Mb(),a);}throw I;}else throw(new v).d(b);}RX.prototype.$classData=q({K3a:0},!1,"org.yaml.builder.DocBuilder$Scalar$",{K3a:1,f:1,q:1,n:1});var PWa=void 0;function PFa(){PWa||(PWa=(new RX).a());return PWa}function Tp(){dR.call(this);this.tx=null}Tp.prototype=new nNa;Tp.prototype.constructor=Tp;Tp.prototype.Jba=function(a,b,c){this.tx=c;dR.prototype.Jba.call(this,a,b,c);return this};
function QWa(a,b){var c=b.iM;b=b.t;if(yE()===c&&Lo(b))c=(new Xj).d(a.Xs),b=""+Dc(34)+$D(aE(),b)+Dc(34),a.tx.Bv(c.oq,b);else if(tM()===c&&"boolean"===typeof b)c=!!b,b=(new Xj).d(a.Xs),a.tx.Bv(b.oq,""+c);else if(uM()===c&&oa(b)){b=Ea(b);var c=b.Na,e=b.$a;b=(new Xj).d(a.Xs);c=QBa(Fa(),c,e);a.tx.Bv(b.oq,c)}else vM()===c&&"number"===typeof b&&(c=""+ +b,-1===Wua(ta(),c,46)?(b=(new ph).e(c),b=!Vs(b,Dc(101))):b=!1,b?(b=(new ph).e(c),b=!Vs(b,Dc(69))):b=!1,b&&(c+=".0"),b=(new Xj).d(a.Xs),a.tx.Bv(b.oq,c))}
function oNa(a,b){var c=(new Xj).d(a.Xs);a.tx.mG(c.oq,91);c=(new SX).e1(a);Lda(c,b);b=(new Xj).d(a.Xs);a.tx.mG(b.oq,93)}Tp.prototype.$classData=q({O3a:0},!1,"org.yaml.builder.JsonOutputBuilder",{O3a:1,tfb:1,Swa:1,f:1});function RWa(){this.QV=this.RV=!1;this.Pa=null}RWa.prototype=new Oua;RWa.prototype.constructor=RWa;d=RWa.prototype;d.l0=function(a,b){SWa(this,a);QWa(this.Pa,b)};d.e1=function(a){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.L1(!0);this.K1(!1);return this};
d.L1=function(a){this.RV=a};function SWa(a,b){Nda(a);var c=(new Xj).d(a.Pa.Xs);a.Pa.tx.mG(c.oq,34);c=(new Xj).d(a.Pa.Xs);a.Pa.tx.Bv(c.oq,b);b=(new Xj).d(a.Pa.Xs);a.Pa.tx.Bv(b.oq,'": ')}d.K1=function(a){this.QV=a};d.Am=function(a,b){SWa(this,a);b.R((new SX).e1(this.Pa))};d.$classData=q({Q3a:0},!1,"org.yaml.builder.JsonOutputBuilder$MyEntry",{Q3a:1,Twa:1,f:1,P3a:1});function SX(){this.QV=this.RV=!1;this.Pa=null}SX.prototype=new Qua;SX.prototype.constructor=SX;d=SX.prototype;
d.xs=function(a){Nda(this);oNa(this.Pa,a);return w()};d.e1=function(a){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.L1(!0);this.K1(!1);return this};d.L1=function(a){this.RV=a};d.k5=function(a){Nda(this);QWa(this.Pa,a)};d.K1=function(a){this.QV=a};d.l5=function(){};d.Gr=function(a){Nda(this);var b=this.Pa,c=(new Xj).d(b.Xs);b.tx.mG(c.oq,123);c=(new RWa).e1(b);Lda(c,a);a=(new Xj).d(b.Xs);b.tx.mG(a.oq,125);return w()};
d.$classData=q({R3a:0},!1,"org.yaml.builder.JsonOutputBuilder$MyPart",{R3a:1,Uwa:1,f:1,P3a:1});function TX(){hR.call(this)}TX.prototype=new iR;TX.prototype.constructor=TX;TX.prototype.a=function(){hR.prototype.ZO.call(this,O().ui,!1);return this};TX.prototype.$classData=q({W3a:0},!1,"org.yaml.convert.YRead$BooleanYRead$",{W3a:1,nS:1,f:1,Jz:1});var TWa=void 0;function kL(){TWa||(TWa=(new TX).a());return TWa}function UX(){hR.call(this)}UX.prototype=new iR;UX.prototype.constructor=UX;
UX.prototype.a=function(){hR.prototype.ZO.call(this,O().fy,gE().eha);return this};UX.prototype.$classData=q({X3a:0},!1,"org.yaml.convert.YRead$DTYRead$",{X3a:1,nS:1,f:1,Jz:1});var UWa=void 0;function VWa(){UWa||(UWa=(new UX).a());return UWa}function VX(){hR.call(this)}VX.prototype=new iR;VX.prototype.constructor=VX;VX.prototype.a=function(){hR.prototype.ZO.call(this,O().rg,0);return this};
VX.prototype.Wv=function(a){var b=hR.prototype.Wv.call(this,a);if(Hp(b))return b;a=WWa().Wv(a);return Hp(a)?(b=Ea(a.i),a=b.Na,b=b.$a,(new ag).d(sC(Fa(),a,b))):a};VX.prototype.$classData=q({Y3a:0},!1,"org.yaml.convert.YRead$DoubleYRead$",{Y3a:1,nS:1,f:1,Jz:1});var XWa=void 0;function YWa(){XWa||(XWa=(new VX).a());return XWa}function WX(){hR.call(this)}WX.prototype=new iR;WX.prototype.constructor=WX;WX.prototype.a=function(){hR.prototype.ZO.call(this,O().Oi,0);return this};
WX.prototype.Wv=function(a){var b=WWa().Wv(a);if(Ep(b))return b;if(Hp(b)){var c=Ea(b.i),b=c.Na,c=c.$a;if((-1===c?0<=(-2147483648^b):-1<c)&&(0===c?-1>=(-2147483648^b):0>c))return Zf(),(new ag).d(b)}return AE(CE(),a,"Out of range")};WX.prototype.$classData=q({Z3a:0},!1,"org.yaml.convert.YRead$IntYRead$",{Z3a:1,nS:1,f:1,Jz:1});var ZWa=void 0;function xDa(){ZWa||(ZWa=(new WX).a());return ZWa}function XX(){hR.call(this)}XX.prototype=new iR;XX.prototype.constructor=XX;
XX.prototype.a=function(){hR.prototype.ZO.call(this,O().Oi,OG());return this};XX.prototype.$classData=q({$3a:0},!1,"org.yaml.convert.YRead$LongYRead$",{$3a:1,nS:1,f:1,Jz:1});var $Wa=void 0;function WWa(){$Wa||($Wa=(new XX).a());return $Wa}function YX(){hR.call(this)}YX.prototype=new iR;YX.prototype.constructor=YX;YX.prototype.a=function(){hR.prototype.ZO.call(this,O().Wa,"");return this};YX.prototype.$classData=q({b4a:0},!1,"org.yaml.convert.YRead$StringYRead$",{b4a:1,nS:1,f:1,Jz:1});var aXa=void 0;
function qe(){aXa||(aXa=(new YX).a());return aXa}function BF(){RQ.call(this)}BF.prototype=new gNa;BF.prototype.constructor=BF;d=BF.prototype;d.DBa=function(){SQ(this,NE().PM);TQ(this)};d.IDa=function(){SQ(this,NE().ZI)};d.bH=function(a,b){RQ.prototype.bH.call(this,a,b);return this};function bXa(a,b){for(;;)if(b.Ja(65535&a.Ya.Db.ac)?0:ZX(a.Ya.Db)){var c=a.Ya;YQ(c.Db,c.lg,c.zj)}else break;SQ(a,NE().uw)}
d.aAa=function(a){switch(a){case 91:aR(this,NE().KF);break;case 123:aR(this,NE().rD);break;case 93:aR(this,NE().zD);break;case 125:aR(this,NE().Tx);break;case 58:aR(this,NE().ii);break;case 44:aR(this,NE().ii);break;case 34:a=!1;SQ(this,NE().sw);for(aR(this,NE().ii);;)if(34!==this.Ya.Db.ac&&this.Ya.Db.ac!==mE().ht)if(92===this.Ya.Db.ac){a&&(SQ(this,NE().ds),a=!1);SQ(this,NE().QM);aR(this,NE().ii);var b=65535&this.Ya.Db.ac;85===oka(Ft(),b)&&WQ(this.Ya,4);aR(this,NE().as);SQ(this,NE().WM)}else a=!0,
b=this.Ya,YQ(b.Db,b.lg,b.zj);else break;a&&SQ(this,NE().ds);aR(this,NE().ii);SQ(this,NE().gt);break;case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:SQ(this,NE().sw);XQ(this,45);a=!0;if(XQ(this,48)){if(Tua(EE(),this.Ya.Db.ac)){a=!1;b=[44,93,125,34,91,123,58];if(0===(b.length|0))b=Yd();else{for(var c=Zd(new ee,Yd()),e=0,f=b.length|0;e<f;)fe(c,b[e]),e=1+e|0;b=c.gb}bXa(this,b)}}else for(b=this.Ya,YQ(b.Db,b.lg,b.zj),b=this.Ya;;)if(c=b.Db.ac,Tua(EE(),c))YQ(b.Db,b.lg,
b.zj);else break;if(a){if(XQ(this,46))for(a=this.Ya;;)if(b=a.Db.ac,Tua(EE(),b))YQ(a.Db,a.lg,a.zj);else break;if(XQ(this,101)||XQ(this,69))for(XQ(this,43)||XQ(this,45),a=this.Ya;;)if(b=a.Db.ac,Tua(EE(),b))YQ(a.Db,a.lg,a.zj);else break;SQ(this,NE().ds)}SQ(this,NE().gt);break;case 10:aR(this,NE().Iz);break;case 32:case 9:case 13:for(a=this.Ya;;)if(b=a.Db.ac,EE(),32===b||9===b||13===b)YQ(a.Db,a.lg,a.zj);else break;SQ(this,NE().KB);break;case 110:cXa(this,"null");break;case 116:cXa(this,"true");break;
case 102:cXa(this,"false");break;default:a=[91,93,123,125,58,44];if(0===(a.length|0))a=Yd();else{b=Zd(new ee,Yd());c=0;for(e=a.length|0;c<e;)fe(b,a[c]),c=1+c|0;a=b.gb}bXa(this,a)}};function cXa(a,b){b=jNa(a,b);if(0<b)SQ(a,NE().sw),WQ(a.Ya,b),SQ(a,NE().ds),SQ(a,NE().gt);else{b=[44,58];if(0===(b.length|0))b=Yd();else{for(var c=Zd(new ee,Yd()),e=0,f=b.length|0;e<f;)fe(c,b[e]),e=1+e|0;b=c.gb}bXa(a,b)}}d.$classData=q({l4a:0},!1,"org.yaml.lexer.JsonLexer",{l4a:1,w3a:1,f:1,A3a:1});
function $F(){RQ.call(this);this.ho=null}$F.prototype=new gNa;$F.prototype.constructor=$F;function $X(a){return(new Be).Er(a.iQ.lb(),a.iL,mNa(a.ho))}function dXa(a,b){return eXa(a,0,b)&&(aY(a),!0)}
function fXa(a,b,c){if(43!==c){45!==c&&SQ(a,NE().gt);for(c=$X(a);;){var e;if(e=ZX(a.Ya.Db)){e=a;var f=b,g=cR(e.ho,2147483647);e=g<=f&&VQ(e,g,NE().PF)&&bY(a,NE().Iz)}if(e)c=$X(a);else break}cY(a,c)}else{for(c=$X(a);;)if(ZX(a.Ya.Db)&&dY(a,b,eY()))c=$X(a);else break;cY(a,c);SQ(a,NE().gt)}c=$X(a);e=cR(a.ho,2147483647);if(e<b&&VQ(a,e,NE().PF)&&gXa(a)){for(b=$X(a);;)if(ZX(a.Ya.Db)&&hXa(a))b=$X(a);else break;cY(a,b);b=!0}else b=!1;b||cY(a,c);return!0}
function iXa(a,b,c){var e=$X(a);if(SQ(a,NE().Tga)){if(jXa(a)){var f=$X(a);fY(a,b,c)&&kXa(a)||cY(a,f);f=!0}else f=!1;f?b=!0:kXa(a)?(f=$X(a),fY(a,b,c)&&jXa(a)||cY(a,f),b=!0):b=!1}else b=!1;(b=b?SQ(a,NE().dha):!1)||cY(a,e);return b}function dY(a,b,c){var e=lXa();null!==c&&c===e?c=!0:(e=mXa(),c=null!==c&&c===e);return nXa(a,b,c,!0)?bY(a,NE().pJ):!1}function oXa(a){SQ(a,NE().sw);return SQ(a,NE().gt)}function pXa(a){return 0!==a.Ya.Db.eg?!0:!qXa(a)&&!rXa(a)}
function sXa(a,b){if(pXa(a)){for(var c=$X(a);;)if(ZX(a.Ya.Db)&&dY(a,b,eY()))c=$X(a);else break;cY(a,c);if(gY(a,b)&&!GE(IE(),a.Ya.Db.ac)){for(b=a.Ya;c=b.Db.ac,!GE(IE(),c);)YQ(b.Db,b.lg,b.zj);return SQ(a,NE().ds)}}return!1}function tXa(a,b){return mXa()===b||hY()===b?HE(IE(),a)&&!Xua(IE(),a):HE(IE(),a)}function iY(a,b){return a.Ya.Db.ac===b?aR(a,NE().ii):!1}function uXa(a){switch(a){case 34:case 39:return(new A).d(a);case 123:return(new A).d(125);case 91:return(new A).d(93);default:return w()}}
function vXa(a,b,c){if(Zua(IE(),a.Ya.Db.ac)){var e=$X(a);(b=wXa(a,b,c))||cY(a,e);return b?!0:bY(a,NE().UY)}return!1}
function xXa(a,b){var c=63===a.Ya.Db.ac;if(c||yXa(a)){var e=$X(a);SQ(a,NE().ER);if(c)if(iY(a,63)&&zXa(a,b,AXa())){var c=$X(a),f=$X(a);(b=gY(a,b)&&iY(a,58)&&zXa(a,b,AXa()))||cY(a,f);(b=b||jY(a))||cY(a,c)}else b=!1;else{var c=$X(a),f=$X(a),g=dXa(a,kY());g||cY(a,f);g?f=!0:(f=$X(a),(g=BXa(a,kY()))||cY(a,f),f=g);(b=f||jY(a)?CXa(a,b):!1)||cY(a,c)}(b=b&&SQ(a,NE().MR))||cY(a,e);return b}return!1}$F.prototype.DBa=function(){DXa(this);TQ(this)};
function EXa(a,b,c){switch(a.Ya.Db.ac){case 91:if(91===a.Ya.Db.ac){var e=$X(a),f;if(f=SQ(a,NE().KF)&&aR(a,NE().ii)&&(lY(a,b,c),!0)){c=FXa(c);for(;;)if(93!==a.Ya.Db.ac){f=a;var g=b,h=c,k=$X(f),l;if(l=SQ(f,NE().dv)){l=f;var p=NE().rD,y=NE().ER;SQ(l,p);l=SQ(l,y)}if(l){l=f;var p=g,y=h,I;if(!(I=iY(l,63)&&fY(l,p,y)&&GXa(l,p,y))){I=$X(l);var E=BXa(l,hY())&&HXa(l,p,y);E||cY(l,I);E||IXa(l,p,y)?I=!0:(I=$X(l),(p=dXa(l,hY())&&JXa(l,p,y))||cY(l,I),I=p)}l=I}l&&(l=f,p=NE().MR,y=NE().Tx,SQ(l,p),l=SQ(l,y));(l=l&&
SQ(f,NE().gv))||cY(f,k);l?f=!0:(k=$X(f),(g=SQ(f,NE().dv)&&KXa(f,g,h)&&SQ(f,NE().gv))||cY(f,k),f=g);if(f){lY(a,b,c);if(LXa(a.Ya.Db.ac)){for(f=a.Ya;;)if(LXa(f.Db.ac))YQ(f.Db,f.lg,f.zj);else break;SQ(a,NE().uw)}f=a.Ya.Db.ac;if(93===f||f===mE().ht)break;aR(a,NE().ii);lY(a,b,c)}else break}else break;f=!0}(b=f&&93===a.Ya.Db.ac&&aR(a,NE().ii)?SQ(a,NE().zD):!1)||cY(a,e);a=b}else a=!1;return a;case 123:if(123===a.Ya.Db.ac){e=$X(a);if(f=SQ(a,NE().rD)&&aR(a,NE().ii)&&(lY(a,b,c),!0)){c=FXa(c);for(;;)if(125!==
a.Ya.Db.ac)if(f=a,g=b,h=c,SQ(f,NE().ER)&&(iY(f,63)&&fY(f,g,h)&&GXa(f,g,h)||MXa(f,g,h))&&SQ(f,NE().MR))if(lY(a,b,c),iY(a,44))lY(a,b,c);else break;else break;else break;f=!0}f&&125===a.Ya.Db.ac&&aR(a,NE().ii)&&SQ(a,NE().Tx)?(aY(a),b=!0):b=!1;b||cY(a,e);a=b}else a=!1;return a;case 39:return NXa(a,b,c,39);case 34:return NXa(a,b,c,34);default:return!1}}
function OXa(a,b,c){var e=$Q(a.Ya,b);return 35===e?32!==$Q(a.Ya,-1+b|0):58===e?tXa($Q(a.Ya,1+b|0),c):!(32===e||9===e||13===e||10===e||mE().ht===e)&&tXa($Q(a.Ya,b),c)}function PXa(a){if(SQ(a,NE().G5)){if(33===$Q(a.Ya,1)&&iY(a,33)&&iY(a,33))var b=!0;else if($ua(IE(),$Q(a.Ya,1))){b=$X(a);iY(a,33);for(var c=a.Ya;;){var e=c.Db.ac;if($ua(IE(),e))YQ(c.Db,c.lg,c.zj);else break}(c=SQ(a,NE().as)&&iY(a,33))||cY(a,b);b=c}else b=!1;b=b?!0:iY(a,33)}else b=!1;return b?SQ(a,NE().$5):!1}
function QXa(a){if(37===a.Ya.Db.ac){var b=function(a){return function(){if(37===a.Ya.Db.ac&&SQ(a,NE().F5)&&aR(a,NE().ii)){var b=$X(a),c=RXa(a);c||cY(a,b);if(c)b=!0;else{b=$X(a);if(c=kNa(a,"TAG"))if(SQ(a,NE().as),c=aY(a)&&PXa(a)&&aY(a)){c=$X(a);if(SQ(a,NE().MX)){if(iY(a,33)){for(var e=$X(a);;)if(ZX(a.Ya.Db)&&SXa(a))e=$X(a);else break;cY(a,e);e=!0}else e=!1;if(e)e=!0;else if(TXa(a)){for(e=$X(a);;)if(ZX(a.Ya.Db)&&SXa(a))e=$X(a);else break;cY(a,e);e=!0}else e=!1}else e=!1;(e=e&&SQ(a,NE().as)?SQ(a,NE().dY):
!1)||cY(a,c);c=e}c||cY(a,b);b=c}if(b)b=!0;else{b=$X(a);if(UXa(a)){for(c=$X(a);;)if(ZX(a.Ya.Db)&&aY(a)&&UXa(a))c=$X(a);else break;cY(a,c);c=!0}else c=!1;c||cY(a,b);b=c}}else b=!1;return b&&SQ(a,NE().Z5)?mY(a):!1}}(a),c=$X(a),e=!!b();if(e)for(;c=$X(a),ZX(a.Ya.Db)&&b(););cY(a,c);b=e}else b=!1;return b?VXa(a):!1}function aY(a){var b=bR(a.ho,0);return 0<b&&VQ(a,b,NE().KB)?!0:0===a.Ya.Db.eg}
function lY(a,b,c){if(hY()===c||kY()===c)aY(a);else{c=$X(a);var e;if(e=mY(a))(b=nXa(a,b,!0,!1))||(rXa(a)||qXa(a)?b=!1:(b=cR(a.ho,2147483647),e=bR(a.ho,b),VQ(a,b,NE().PF),b=VQ(a,e,NE().KB))),e=b;(b=e)||cY(a,c);b||aY(a)}}function gXa(a){if(35!==a.Ya.Db.ac)return!1;SQ(a,NE().E5);for(aR(a,NE().ii);!GE(IE(),a.Ya.Db.ac);){var b=a.Ya;YQ(b.Db,b.lg,b.zj)}SQ(a,NE().as);SQ(a,NE().Y5);return WXa(a)}function GXa(a,b,c){return(44===a.Ya.Db.ac||125===a.Ya.Db.ac)&&jY(a)&&jY(a)?!0:MXa(a,b,c)}
function IXa(a,b,c){var e=$X(a);(b=jY(a)&&HXa(a,b,c))||cY(a,e);return b}
function XXa(a,b,c){var e=$X(a),f;if(f=SQ(a,NE().dv)){f=$X(a);if(fY(a,1+b|0,c)){iXa(a,1+b|0,c)&&fY(a,1+b|0,c);var g;if(124===a.Ya.Db.ac){SQ(a,NE().sw);aR(a,NE().ii);g=YXa(a,b);if(null===g)throw(new v).d(g);var h=g.GM();g=g.o5();var h=b+h|0,k=$X(a);if(sXa(a,h)){for(var l=$X(a);;)if(ZX(a.Ya.Db)&&bY(a,NE().pJ)&&sXa(a,h))l=$X(a);else break;cY(a,l);l=!0}else l=!1;(l=l?ZXa(a,g):!1)||cY(a,k);l||45===g&&SQ(a,NE().gt);g=fXa(a,h,g)}else g=!1;if(!g)if(62===a.Ya.Db.ac&&SQ(a,NE().sw)&&aR(a,NE().ii)){g=YXa(a,b);
if(null===g)throw(new v).d(g);h=g.GM();g=g.o5();h=b+h|0;k=$X(a);if($Xa(a,h)){for(l=$X(a);;)if(ZX(a.Ya.Db)&&bY(a,NE().pJ)&&$Xa(a,h))l=$X(a);else break;cY(a,l);l=!0}else l=!1;(l=l?ZXa(a,g):!1)||cY(a,k);l||45===g&&SQ(a,NE().gt);g=fXa(a,h,g)}else g=!1}else g=!1;g||cY(a,f);(f=g)||(f=$X(a),(g=fY(a,1+b|0,c)&&iXa(a,1+b|0,c)&&aYa(a,c,b))||cY(a,f),g?f=!0:(f=$X(a),(c=aYa(a,c,b))||cY(a,f),f=c))}(c=f&&SQ(a,NE().gv))||cY(a,e);if(c)return!0;e=$X(a);(b=fY(a,1+b|0,lXa())&&SQ(a,NE().dv)&&KXa(a,1+b|0,lXa())&&SQ(a,NE().gv)&&
mY(a))||cY(a,e);return b}function rXa(a){return 45===a.Ya.Db.ac&&45===$Q(a.Ya,1)?45===$Q(a.Ya,2):!1}function eXa(a,b,c){if(SQ(a,NE().dv)){iXa(a,b,c)&&fY(a,b,c);var e=!0}else e=!1;return e&&EXa(a,b,c)?SQ(a,NE().gv):!1}
function bYa(a,b,c){var e=a.Ya.Db.ac,f=$Q(a.Ya,1);if(HE(IE(),e)&&!Vua(IE(),e)||(45===e||58===e||63===e)&&tXa(f,c)){SQ(a,NE().sw);if(hY()===c||kY()===c)cYa(a,c);else{cYa(a,c);for(e=$X(a);;){if(ZX(a.Ya.Db)){var f=a,g=b;aY(f);if(vXa(f,g,mXa())&&nXa(f,g,!0,!1)){g=a;if(f=OXa(g,0,c))g=g.Ya,YQ(g.Db,g.lg,g.zj);f?(f=dYa(a,c))&&SQ(a,NE().ds):f=!1}else f=!1}else f=!1;if(f)e=$X(a);else break}cY(a,e)}a=SQ(a,NE().gt)}else a=!1;return a}
function eYa(a,b){if(0===a.Ya.Db.eg){var c=fYa(a,b);if(0<c&&SQ(a,NE().rD)){b=function(a,b,c){return function(){return gY(a,b+c|0)&&xXa(a,b+c|0)}}(a,b,c);var c=$X(a),e=!!b();if(e)for(;c=$X(a),ZX(a.Ya.Db)&&b(););cY(a,c);b=e}else b=!1;return b?SQ(a,NE().Tx):!1}return!1}function gYa(a,b){if(cR(a.ho,2147483647)===b&&HE(IE(),$Q(a.Ya,b))){VQ(a,b,NE().PF);for(b=a.Ya;;){var c=b.Db.ac;if(bva(IE(),c))YQ(b.Db,b.lg,b.zj);else break}return SQ(a,NE().ds)}return!1}$F.prototype.IDa=function(){SQ(this,NE().NR)};
$F.prototype.bH=function(a,b){this.ho=a;RQ.prototype.bH.call(this,a,b);return this};function hYa(a){if(ZX(a.Ya.Db)){var b=$X(a);SQ(a,NE().PM)&&(QXa(a)||VXa(a)||XXa(a,-1,eY()))&&SQ(a,NE().ZI)||cY(a,b)}}
function DXa(a){for(;iYa(a););hYa(a);for(var b=a.ho.Db.rj;;)if(ZX(a.Ya.Db)){var c=$X(a),e=function(a){return function(){var b;if(qXa(a)){b=$X(a);var c=VQ(a,3,NE().bha)&&mY(a);c||cY(a,b);b=c}else b=!1;return b}}(a),f=$X(a),g=!!e();if(g)for(;f=$X(a),ZX(a.Ya.Db)&&e(););cY(a,f);if(g){for(e=$X(a);;)if(ZX(a.Ya.Db)&&iYa(a))e=$X(a);else break;cY(a,e);e=!0}else e=!1;e?(hYa(a),e=!0):e=!1;e||cY(a,c);if(!e){c=$X(a);for(e=$X(a);;)if(ZX(a.Ya.Db)&&iYa(a))e=$X(a);else break;cY(a,e);SQ(a,NE().PM)&&VXa(a)&&SQ(a,NE().ZI)||
cY(a,c)}if(a.ho.Db.rj===b){for(b=a.Ya;;)if(b.Db.ac!==mE().ht)YQ(b.Db,b.lg,b.zj);else break;SQ(a,NE().uw)}b=a.ho.Db.rj}else break;SQ(a,NE().NR)}function cYa(a,b){var c=a.Ya.Db.ac;if(HE(IE(),c)&&!Vua(IE(),c)||(45===c||58===c||63===c)&&tXa($Q(a.Ya,1),b))c=a.Ya,YQ(c.Db,c.lg,c.zj);dYa(a,b);SQ(a,NE().ds)}function bY(a,b){var c;c=$Q(a.Ya,0);c=10===c?1:13===c&&10===$Q(a.Ya,1)?2:0;return 0!==c&&(WQ(a.Ya,c),SQ(a,b))}function LXa(a){return 93!==a&&44!==a&&a!==mE().ht}
function nXa(a,b,c,e){if(0===a.Ya.Db.eg){if(rXa(a)||qXa(a))return!1;var f=cR(a.ho,b);if(!e&&f<b)return!1;b=c?bR(a.ho,f):0;if(e&&!Zua(IE(),$Q(a.Ya,f+b|0)))return!1;VQ(a,f,NE().PF);return VQ(a,b,NE().KB)}return!1}function UXa(a){if(HE(IE(),a.Ya.Db.ac)){for(;;){var b=a.Ya;YQ(b.Db,b.lg,b.zj);if(!HE(IE(),a.Ya.Db.ac))break}return SQ(a,NE().as)}return!1}function jYa(a){if(GE(IE(),a.Ya.Db.ac))return!0;for(;;){var b=a.Ya;YQ(b.Db,b.lg,b.zj);if(GE(IE(),a.Ya.Db.ac))break}return SQ(a,NE().uw)}
function HXa(a,b,c){if(58===a.Ya.Db.ac&&!tXa($Q(a.Ya,1),c)&&aR(a,NE().ii)){var e=$X(a);fY(a,b,c);SQ(a,NE().dv);(b=KXa(a,b,c)&&SQ(a,NE().gv))||cY(a,e);return b?!0:jY(a)}return!1}function dYa(a,b){for(;;){var c=bR(a.ho,0);OXa(a,c,b)?(WQ(a.Ya,1+c|0),c=!0):c=!1;if(!c)break}return!0}function kYa(a,b){var c=cR(a.ho,2147483647);if(c<b||c===b&&!Yua(IE(),$Q(a.Ya,b)))return!1;VQ(a,b,NE().PF);for(b=a.Ya;;)if(c=b.Db.ac,bva(IE(),c))YQ(b.Db,b.lg,b.zj);else break;return SQ(a,NE().ds)}
function FXa(a){var b=kY();null!==a&&a===b?a=!0:(b=hY(),a=null!==a&&a===b);return a?hY():mXa()}function fYa(a,b){var c=cR(a.ho,2147483647);return c>b&&63===$Q(a.Ya,c)||yXa(a)?c-b|0:0}function lYa(a,b){var c=cR(a.ho,2147483647);return 45!==$Q(a.Ya,c)||HE(IE(),$Q(a.Ya,1+c|0))?0:c-b|0}
function MXa(a,b,c){var e=$X(a);if(SQ(a,NE().dv)&&mYa(a,b,c)&&SQ(a,NE().gv)){var f=$X(a),g=(fY(a,b,c),HXa(a,b,c));g||cY(a,f);f=g?!0:jY(a)}else f=!1;f||cY(a,e);f||IXa(a,b,c)?a=!0:(e=$X(a),eXa(a,b,c)?(f=$X(a),fY(a,b,c),(b=JXa(a,b,c))||cY(a,f),b=b?!0:jY(a)):b=!1,b||cY(a,e),a=b);return a}
function zXa(a,b,c){var e=lYa(a,b)+b|0;if(0<e){var f=$X(a),g;if(g=gY(a,e)&&SQ(a,NE().dv)){e=(1+b|0)+e|0;if(SQ(a,NE().KF)&&nYa(a,e)){for(g=$X(a);;)if(ZX(a.Ya.Db)&&gY(a,e)&&nYa(a,e))g=$X(a);else break;cY(a,g);e=!0}else e=!1;g=e?SQ(a,NE().zD):!1}(e=g&&SQ(a,NE().gv))||cY(a,f);f=e}else f=!1;if(f)f=!0;else if(e=fYa(a,b)+b|0,0<e){f=$X(a);if(g=gY(a,e)&&SQ(a,NE().dv)){e=(1+b|0)+e|0;if(SQ(a,NE().rD)&&xXa(a,e)){for(g=$X(a);;)if(ZX(a.Ya.Db)&&gY(a,e)&&xXa(a,e))g=$X(a);else break;cY(a,g);e=!0}else e=!1;g=e?SQ(a,
NE().Tx):!1}(e=g&&SQ(a,NE().gv))||cY(a,f);f=e}else f=!1;if(f||XXa(a,b,c))return!0;b=$X(a);(c=jY(a)&&mY(a))||cY(a,b);return c}function mYa(a,b,c){if(oYa(a)||bYa(a,b,c))return!0;if(iXa(a,b,c)){var e=$X(a);(b=fY(a,b,c)&&bYa(a,b,c))||cY(a,e);return b?!0:oXa(a)}return!1}function gY(a,b){return 0>=b||b===cR(a.ho,b)&&VQ(a,b,NE().PF)}
function NXa(a,b,c,e){if(a.Ya.Db.ac===e){var f;f=!1;SQ(a,NE().sw);aR(a,NE().ii);for(var g=!1;!g;){var h=a.Ya.Db.ac;if(34===h&&34===e)g=!0;else if(39===h&&39===e)39!==$Q(a.Ya,1)?g=!0:(f&&(SQ(a,NE().ds),f=!1),SQ(a,NE().QM),aR(a,NE().ii),aR(a,NE().as),SQ(a,NE().WM));else if(13===h||10===h)if(h=kY(),null===c||c!==h?(h=hY(),h=!(null!==c&&c===h)):h=!1,h){f&&(SQ(a,NE().ds),f=!1);var h=$X(a),k=bY(a,NE().Iz)&&dY(a,b,c);k||cY(a,h);k||aR(a,NE().UY);gY(a,b);VQ(a,bR(a.ho,0),NE().KB)}else f=!1,SQ(a,NE().uw),g=
!0;else if(92===h&&34===e){f&&(SQ(a,NE().ds),f=!1);SQ(a,NE().QM);aR(a,NE().ii);if(h=10===a.Ya.Db.ac)bY(a,NE().Iz);else switch(ava(IE(),a.Ya.Db.ac)){case -1:aR(a,NE().uw);break;case 120:pYa(a,2);break;case 117:pYa(a,4);break;case 85:pYa(a,8);break;default:aR(a,NE().as)}SQ(a,NE().WM);h&&VQ(a,bR(a.ho,0),NE().KB)}else 32===h||9===h?(h=bR(a.ho,0),Zua(IE(),$Q(a.Ya,h))?(f&&(SQ(a,NE().ds),f=!1),VQ(a,h,NE().KB)):(f=!0,WQ(a.Ya,h))):mE().ht===h?(SQ(a,NE().uw),g=!0):(f=!0,h=a.Ya,YQ(h.Db,h.lg,h.zj))}f&&SQ(a,NE().ds);
aR(a,NE().ii);return SQ(a,NE().gt)}return!1}function qYa(a){return HE(IE(),a)&&!Xua(IE(),a)}function fY(a,b,c){if(hY()===c||kY()===c)return aY(a);c=$X(a);(b=mY(a)&&nXa(a,b,!0,!1))||cY(a,c);return b?!0:aY(a)}function oYa(a){return 42===a.Ya.Db.ac&&qYa($Q(a.Ya,1))&&SQ(a,NE().C5)&&aR(a,NE().ii)&&rYa(a)?SQ(a,NE().W5):!1}
function jXa(a){if(33===a.Ya.Db.ac&&SQ(a,NE().MX)){if(32===$Q(a.Ya,1)&&iY(a,33))var b=!0;else{b=$X(a);if(iY(a,33)&&iY(a,60)){var c=function(a){return function(){return SXa(a)}}(a),e=$X(a),f=!!c();if(f)for(;e=$X(a),ZX(a.Ya.Db)&&c(););cY(a,e);c=f}else c=!1;(c=c&&SQ(a,NE().as)?iY(a,62):!1)||cY(a,b);b=c}if(b)b=!0;else{b=$X(a);if(PXa(a)){c=$X(a);if(TXa(a)){for(;TXa(a););e=SQ(a,NE().as)}else e=!1;e||cY(a,c);c=e?!0:SQ(a,NE().uw)}else c=!1;c||cY(a,b);b=c}}else b=!1;return b?SQ(a,NE().dY):!1}
function JXa(a,b,c){if(iY(a,58)){var e=$X(a);fY(a,b,c);SQ(a,NE().dv);(b=KXa(a,b,c)&&SQ(a,NE().gv))||cY(a,e);return b?!0:jY(a)}return!1}function mY(a){if(0===a.Ya.Db.eg||sYa(a)){for(var b=$X(a);;)if(ZX(a.Ya.Db)&&hXa(a))b=$X(a);else break;cY(a,b);return!0}return!1}function CXa(a,b){if(iY(a,58)){if(XXa(a,b,AXa()))return!0;if(jY(a)){b=$X(a);var c=mY(a);c||cY(a,b);if(c)return!0;b=$X(a);(c=jYa(a)&&mY(a))||cY(a,b);return c}}return!1}
function $Xa(a,b){if(pXa(a)){for(var c=$X(a);;)if(ZX(a.Ya.Db)&&dY(a,b,eY()))c=$X(a);else break;cY(a,c);var c=$X(a),e;if(gYa(a,b)){for(e=$X(a);;)if(ZX(a.Ya.Db)&&vXa(a,b,eY())&&gYa(a,b))e=$X(a);else break;cY(a,e);e=!0}else e=!1;e||cY(a,c);if(e)return!0;c=$X(a);if(kYa(a,b)){for(e=$X(a);;){if(ZX(a.Ya.Db)){if(bY(a,NE().pJ)){for(var f=$X(a);;)if(ZX(a.Ya.Db)&&dY(a,b,eY()))f=$X(a);else break;cY(a,f);f=!0}else f=!1;f=f?kYa(a,b):!1}else f=!1;if(f)e=$X(a);else break}cY(a,e);b=!0}else b=!1;b||cY(a,c);return b}return!1}
function jY(a){SQ(a,NE().dv);oXa(a);return SQ(a,NE().gv)}function SXa(a){if(0<=a.Ya.Db.ac&&(-1!==Wua(ta(),"#;/?:@\x26\x3d+$,_.!~*'()[]",a.Ya.Db.ac)||$ua(IE(),a.Ya.Db.ac)))return a=a.Ya,YQ(a.Db,a.lg,a.zj),!0;if(37===a.Ya.Db.ac)var b=$Q(a.Ya,1),b=48<=b&&57>=b||65<=b&&70>=b||97<=b&&102>=b;else b=!1;b?(b=$Q(a.Ya,2),b=48<=b&&57>=b||65<=b&&70>=b||97<=b&&102>=b):b=!1;return b?(WQ(a.Ya,3),!0):!1}
function tYa(a,b){if(0===a.Ya.Db.eg){var c=lYa(a,b);if(0<c&&SQ(a,NE().KF)){b=function(a,b,c){return function(){return gY(a,b+c|0)&&nYa(a,b+c|0)}}(a,b,c);var c=$X(a),e=!!b();if(e)for(;c=$X(a),ZX(a.Ya.Db)&&b(););cY(a,c);b=e}else b=!1;return b?SQ(a,NE().zD):!1}return!1}function ZXa(a,b){var c=$X(a),e=a.Ya.Db.ac===mE().ht&&45===b?SQ(a,NE().gt):!1;e||cY(a,c);return e?!0:a.Ya.Db.ac===mE().ht||45!==b&&bY(a,NE().pJ)?!0:SQ(a,NE().gt)&&bY(a,NE().Iz)}
function aYa(a,b,c){if(mY(a)){var e=AXa();return tYa(a,null!==b&&b===e?-1+c|0:c)?!0:eYa(a,c)}return!1}function uYa(a){switch(a.Ya.Db.ac){case 43:return aR(a,NE().ii),43;case 45:return aR(a,NE().ii),45;default:return 32}}function WXa(a){return a.Ya.Db.ac===mE().ht?!0:bY(a,NE().Iz)}function sYa(a){return WXa(a)||hXa(a)}
function iYa(a){if(ZX(a.Ya.Db)){if(65279===a.Ya.Db.ac&&aR(a,NE().Xga)){WXa(a)||gXa(a);var b=!0}else b=!1;if(b){for(b=$X(a);;)if(ZX(a.Ya.Db)&&hXa(a))b=$X(a);else break;cY(a,b);b=!0}else b=!1;if(b)return!0;var b=function(a){return function(){return hXa(a)}}(a),c=$X(a),e=!!b();if(e)for(;c=$X(a),ZX(a.Ya.Db)&&b(););cY(a,c);return e}return!1}function BXa(a,b){return SQ(a,NE().dv)&&mYa(a,0,b)&&SQ(a,NE().gv)&&(aY(a),!0)}
function YXa(a,b){var c=uYa(a),e=a.Ya.Db.ac,f=48<=e&&57>=e&&48!==e?(aR(a,NE().ii),-48+e|0):-1;32===c&&(c=uYa(a));sYa(a)||(jYa(a),WXa(a));if(-1===f){e=$X(a);for(f=$X(a);;)if(ZX(a.Ya.Db)&&dY(a,b,eY()))f=$X(a);else break;cY(a,f);b=cR(a.ho,2147483647)-b|0;f=1>b?1:b;cY(a,e)}a=new vYa;a.NI=f;a.n5=c;P.prototype.N.call(a,null,null);return a}
function VXa(a){if(rXa(a)){var b=$X(a);VQ(a,3,NE().aha);var c=$X(a),e=XXa(a,-1,eY());e||cY(a,c);e?c=!0:(c=$X(a),(e=jY(a)&&mY(a))||cY(a,c),c=e);c||cY(a,b);return c}return!1}function KXa(a,b,c){if(oYa(a))var e=!0;else{var e=$X(a),f;(f=EXa(a,b,c)||bYa(a,b,c))||cY(a,e);e=f}if(e)return!0;if(iXa(a,b,c)){e=$X(a);if(f=fY(a,b,c))f=EXa(a,b,c)||bYa(a,b,c);(b=f)||cY(a,e);return b?!0:oXa(a)}return!1}function hXa(a){return aY(a)&&(WXa(a)||gXa(a))}function nYa(a,b){return iY(a,45)&&zXa(a,b,eY())}
function qXa(a){return 46===a.Ya.Db.ac&&46===$Q(a.Ya,1)?46===$Q(a.Ya,2):!1}function cY(a,b){var c=a.iQ;c.qn=c.eC+(b.Co|0)|0;a.iL=b.yg;a.ho.Db=b.th}
function yXa(a){var b=(new iA).$d(0),c=0,c=$Q(a.Ya,b.ta),e=uXa(c);e.qa()&&(b.ta=1+b.ta|0);for(;;){var c=$Q(a.Ya,b.ta),f=e;if(x(f)&&c===(f.i|0))39===c&&39===$Q(a.Ya,1+b.ta|0)?b.ta=1+b.ta|0:34===c&&92===$Q(a.Ya,-1+b.ta|0)||(e=w());else if(w()===f?(IE(),f=function(a,b){return function(){return $Q(a.Ya,1+b.ta|0)}}(a,b),58===c?Yua(0,f()|0)?f=!0:(f=f()|0,f=GE(0,f)):f=!1):f=!1,f)return!0;b.ta=1+b.ta|0;if(GE(IE(),c))break}return!1}
function rYa(a){for(var b=a.Ya;;)if(qYa(b.Db.ac))YQ(b.Db,b.lg,b.zj);else break;return SQ(a,NE().as)}function pYa(a,b){if(aR(a,NE().ii)){for(var c=0;;){var e=$Q(a.Ya,c);if(48<=e&&57>=e||65<=e&&70>=e||97<=e&&102>=e)c=1+c|0;else break}VQ(a,b,c>=b?NE().as:NE().uw)}}function wXa(a,b,c){var e=$X(a);if(bY(a,NE().Iz)){b=function(a,b,c){return function(){return dY(a,b,c)}}(a,b,c);c=$X(a);var f=!!b();if(f)for(;c=$X(a),ZX(a.Ya.Db)&&b(););cY(a,c);b=f}else b=!1;b||cY(a,e);return b}
function TXa(a){return 124===a.Ya.Db.ac||Xua(IE(),a.Ya.Db.ac)?!1:SXa(a)}function RXa(a){if(kNa(a,"YAML")){SQ(a,NE().as);if(aY(a))var b=a.Ya.Db.ac,b=!(48<=b&&57>=b);else b=!0;if(b)return!1;for(b=a.Ya;;){var c=b.Db.ac;if(48<=c&&57>=c)YQ(b.Db,b.lg,b.zj);else break}46!==a.Ya.Db.ac?b=!0:(b=$Q(a.Ya,1),b=!(48<=b&&57>=b));if(b)return!1;b=a.Ya;YQ(b.Db,b.lg,b.zj);for(b=a.Ya;;)if(c=b.Db.ac,48<=c&&57>=c)YQ(b.Db,b.lg,b.zj);else break;return SQ(a,NE().as)}return!1}
function kXa(a){return 38===a.Ya.Db.ac&&qYa($Q(a.Ya,1))&&SQ(a,NE().D5)&&aR(a,NE().ii)&&rYa(a)?SQ(a,NE().X5):!1}$F.prototype.$classData=q({o4a:0},!1,"org.yaml.lexer.YamlLexer",{o4a:1,w3a:1,f:1,A3a:1});function nY(){this.oO=0}nY.prototype=new r;nY.prototype.constructor=nY;nY.prototype.a=function(){this.oO=34;return this};nY.prototype.uH=function(a){return jva(this,a)};nY.prototype.HL=function(){return!1};nY.prototype.$classData=q({s4a:0},!1,"org.yaml.model.DoubleQuoteMark$",{s4a:1,f:1,Zwa:1,pS:1});
var wYa=void 0;function VE(){wYa||(wYa=(new nY).a());return wYa}function oY(){this.oO=0}oY.prototype=new r;oY.prototype.constructor=oY;oY.prototype.a=function(){this.oO=39;return this};oY.prototype.uH=function(a){return jva(this,a)};oY.prototype.HL=function(){return!1};oY.prototype.$classData=q({C4a:0},!1,"org.yaml.model.SingleQuoteMark$",{C4a:1,f:1,Zwa:1,pS:1});var xYa=void 0;function mva(){xYa||(xYa=(new oY).a());return xYa}function yR(){sR.call(this);this.wH=null}yR.prototype=new JNa;
yR.prototype.constructor=yR;yR.prototype.u=function(){return"\x26"+this.wH};yR.prototype.aP=function(a,b,c){this.wH=a;sR.prototype.mc.call(this,b,c);return this};yR.prototype.$classData=q({axa:0},!1,"org.yaml.model.YAnchor",{axa:1,E8:1,kt:1,f:1});function pq(){this.da=this.r=null}pq.prototype=new vva;pq.prototype.constructor=pq;function yYa(a,b,c){qq(a,Hva(R(),b,a.da),c)}function qq(a,b,c){T(a.r,gF(jC(),b,c))}pq.prototype.e=function(a){this.da=a;$E.prototype.a.call(this);return this};
pq.prototype.$classData=q({I4a:0},!1,"org.yaml.model.YDocument$EntryBuilder",{I4a:1,H4a:1,f:1,lEa:1});function pY(){}pY.prototype=new r;pY.prototype.constructor=pY;pY.prototype.a=function(){return this};function zYa(a,b){return(new AYa).f1(Rua(new BE,a,b))}pY.prototype.$classData=q({M4a:0},!1,"org.yaml.model.YFail$",{M4a:1,f:1,q:1,n:1});var BYa=void 0;function CYa(){sR.call(this)}CYa.prototype=new JNa;CYa.prototype.constructor=CYa;function DYa(){}DYa.prototype=CYa.prototype;
function tF(){sR.call(this);this.wca=this.nb=this.ya=null}tF.prototype=new JNa;tF.prototype.constructor=tF;tF.prototype.b=function(){var a=this.nb,b=O().Qm;return a===b};function Mwa(a){if(a.nb.xGa){var b=a.nb.Ct;return null!==b&&b===a}return!1}tF.prototype.u=function(){return this.ya};function Pva(a,b,c,e,f){a.ya=b;a.nb=c;a.wca=e;sR.prototype.mc.call(a,e,f);return a}function Gwa(a){return!!(a&&a.$classData&&a.$classData.v.oxa)}
tF.prototype.$classData=q({oxa:0},!1,"org.yaml.model.YTag",{oxa:1,E8:1,kt:1,f:1});function qY(){nF.call(this)}qY.prototype=new oF;qY.prototype.constructor=qY;function EYa(){}EYa.prototype=qY.prototype;qY.prototype.mc=function(a,b){nF.prototype.mc.call(this,a,b);return this};var Eva=q({rS:0},!1,"org.yaml.model.YValue",{rS:1,kt:1,f:1,AB:1});qY.prototype.$classData=Eva;var maa=q({F6a:0},!1,"java.lang.Boolean",{F6a:1,f:1,n:1,sh:1},void 0,void 0,function(a){return"boolean"===typeof a});
function rY(){this.t=0}rY.prototype=new r;rY.prototype.constructor=rY;rY.prototype.h=function(a){return hk(a)?this.t===a.t:!1};rY.prototype.Wn=function(a){return this.t-a.t|0};rY.prototype.u=function(){return ba.String.fromCharCode(this.t)};function Dc(a){var b=new rY;b.t=a;return b}rY.prototype.y=function(){return this.t};function hk(a){return!!(a&&a.$classData&&a.$classData.v.ZBa)}var wza=q({ZBa:0},!1,"java.lang.Character",{ZBa:1,f:1,n:1,sh:1});rY.prototype.$classData=wza;
function sY(){this.RCa=this.Mya=this.Lya=this.QBa=null;this.ma=0}sY.prototype=new r;sY.prototype.constructor=sY;sY.prototype.a=function(){return this};function FYa(a,b){return 0>b?0:256>b?GYa(a).j[b]:HYa(a,b)}function Rwa(a,b){return 256>b?9===b||10===b||11===b||12===b||13===b||28<=b&&31>=b||160!==b&&IYa(GYa(a).j[b]):8199!==b&&8239!==b&&IYa(HYa(a,b))}function Aya(a,b){return 256>b?48<=b&&57>=b:9===HYa(a,b)}
function HYa(a,b){gH();if(0===(2&a.ma)<<24>>24&&0===(2&a.ma)<<24>>24){var c=(new J).aa([257,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,3,2,1,1,1,2,1,3,2,4,1,2,1,3,3,2,1,2,1,1,1,1,1,2,1,1,2,1,1,2,1,3,1,1,1,2,2,1,1,3,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
2,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,7,2,1,2,2,1,1,4,1,1,1,1,1,1,1,1,69,1,27,18,4,12,14,5,7,1,1,1,17,112,1,1,1,1,1,1,1,1,2,1,3,1,5,2,1,1,3,1,1,1,2,1,17,1,9,35,1,2,3,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,1,1,1,1,1,2,2,51,48,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,9,38,2,1,6,1,39,1,1,1,4,1,1,45,1,1,1,2,1,2,1,1,8,27,5,3,2,11,5,1,3,2,1,2,2,11,1,2,2,32,1,10,21,10,4,2,1,99,1,1,7,1,1,6,2,2,1,4,2,10,3,2,1,14,1,1,1,1,30,27,2,89,11,1,14,10,33,9,2,1,3,1,5,22,4,1,9,1,3,1,5,2,15,1,25,3,2,1,65,1,1,11,55,27,1,3,1,54,1,1,1,1,3,8,4,1,2,1,7,10,2,2,10,1,1,6,1,7,1,1,
2,1,8,2,2,2,22,1,7,1,1,3,4,2,1,1,3,4,2,2,2,2,1,1,8,1,4,2,1,3,2,2,10,2,2,6,1,1,5,2,1,1,6,4,2,2,22,1,7,1,2,1,2,1,2,2,1,1,3,2,4,2,2,3,3,1,7,4,1,1,7,10,2,3,1,11,2,1,1,9,1,3,1,22,1,7,1,2,1,5,2,1,1,3,5,1,2,1,1,2,1,2,1,15,2,2,2,10,1,1,15,1,2,1,8,2,2,2,22,1,7,1,2,1,5,2,1,1,1,1,1,4,2,2,2,2,1,8,1,1,4,2,1,3,2,2,10,1,1,6,10,1,1,1,6,3,3,1,4,3,2,1,1,1,2,3,2,3,3,3,12,4,2,1,2,3,3,1,3,1,2,1,6,1,14,10,3,6,1,1,6,3,1,8,1,3,1,23,1,10,1,5,3,1,3,4,1,3,1,4,7,2,1,2,6,2,2,2,10,8,7,1,2,2,1,8,1,3,1,23,1,10,1,5,2,1,1,1,1,5,1,
1,2,1,2,2,7,2,7,1,1,2,2,2,10,1,2,15,2,1,8,1,3,1,41,2,1,3,4,1,3,1,3,1,1,8,1,8,2,2,2,10,6,3,1,6,2,2,1,18,3,24,1,9,1,1,2,7,3,1,4,3,3,1,1,1,8,18,2,1,12,48,1,2,7,4,1,6,1,8,1,10,2,37,2,1,1,2,2,1,1,2,1,6,4,1,7,1,3,1,1,1,1,2,2,1,4,1,2,6,1,2,1,2,5,1,1,1,6,2,10,2,4,32,1,3,15,1,1,3,2,6,10,10,1,1,1,1,1,1,1,1,1,1,2,8,1,36,4,14,1,5,1,2,5,11,1,36,1,8,1,6,1,2,5,4,2,37,43,2,4,1,6,1,2,2,2,1,10,6,6,2,2,4,3,1,3,2,7,3,4,13,1,2,2,6,1,1,1,10,3,1,2,38,1,1,5,1,2,43,1,1,332,1,4,2,7,1,1,1,4,2,41,1,4,2,33,1,4,2,7,1,1,1,4,2,
15,1,57,1,4,2,67,2,3,9,20,3,16,10,6,85,11,1,620,2,17,1,26,1,1,3,75,3,3,15,13,1,4,3,11,18,3,2,9,18,2,12,13,1,3,1,2,12,52,2,1,7,8,1,2,11,3,1,3,1,1,1,2,10,6,10,6,6,1,4,3,1,1,10,6,35,1,52,8,41,1,1,5,70,10,29,3,3,4,2,3,4,2,1,6,3,4,1,3,2,10,30,2,5,11,44,4,17,7,2,6,10,1,3,34,23,2,3,2,2,53,1,1,1,7,1,1,1,1,2,8,6,10,2,1,10,6,10,6,7,1,6,82,4,1,47,1,1,5,1,1,5,1,2,7,4,10,7,10,9,9,3,2,1,30,1,4,2,2,1,1,2,2,10,44,1,1,2,3,1,1,3,2,8,4,36,8,8,2,2,3,5,10,3,3,10,30,6,2,64,8,8,3,1,13,1,7,4,1,4,2,1,2,9,44,63,13,1,34,37,
39,21,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,9,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
9,8,6,2,6,2,8,8,8,8,6,2,6,2,8,1,1,1,1,1,1,1,1,8,8,14,2,8,8,8,8,8,8,5,1,2,4,1,1,1,3,3,1,2,4,1,3,4,2,2,4,1,3,8,5,3,2,3,1,2,4,1,2,1,11,5,6,2,1,1,1,2,1,1,1,8,1,1,5,1,9,1,1,4,2,3,1,1,1,11,1,1,1,10,1,5,5,6,1,1,2,6,3,1,1,1,10,3,1,1,1,13,3,27,21,13,4,1,3,12,15,2,1,4,1,2,1,3,2,3,1,1,1,2,1,5,6,1,1,1,1,1,1,4,1,1,4,1,4,1,2,2,2,5,1,4,1,1,2,1,1,16,35,1,1,4,1,6,5,5,2,4,1,2,1,2,1,7,1,31,2,2,1,1,1,31,268,8,4,20,2,7,1,1,81,1,30,25,40,6,18,12,39,25,11,21,60,78,22,183,1,9,1,54,8,111,1,144,1,103,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,30,44,5,1,1,31,1,1,1,1,1,1,1,1,1,1,16,256,131,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,63,1,1,1,1,32,1,1,258,48,21,2,6,3,10,166,47,1,47,1,1,1,3,2,1,1,1,1,1,1,4,1,1,2,1,6,2,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,6,1,1,1,1,3,1,1,5,4,1,2,38,1,1,5,1,2,56,7,1,1,14,1,23,9,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,32,2,1,1,1,1,3,1,1,1,1,1,9,1,2,1,
1,1,1,2,1,1,1,1,1,1,1,1,1,1,5,1,10,2,68,26,1,89,12,214,26,12,4,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,2,1,9,4,2,1,5,2,3,1,1,1,2,1,86,2,2,2,2,1,1,90,1,3,1,5,41,3,94,1,2,4,10,27,5,36,12,16,31,1,10,30,8,1,15,32,10,39,15,63,1,256,6582,10,64,20941,51,21,1,1143,3,55,9,40,6,2,268,1,3,16,10,2,20,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,7,1,70,10,2,6,8,23,9,2,1,1,1,1,1,1,1,1,1,1,
1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,8,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,77,2,1,7,1,3,1,4,1,23,2,2,1,4,4,6,2,1,1,6,52,4,8,2,50,16,1,9,2,10,6,18,6,3,1,4,10,28,8,2,23,11,2,11,1,29,3,3,1,47,1,2,4,2,1,4,13,1,1,10,4,2,32,41,6,2,2,2,2,9,3,1,8,1,1,2,10,2,4,16,1,6,3,1,1,4,48,1,1,3,2,2,5,2,1,1,1,24,2,1,2,11,1,2,2,2,1,2,1,1,10,6,2,6,2,6,9,7,1,7,145,35,2,1,2,1,2,1,1,1,2,10,
6,11172,12,23,4,49,4,2048,6400,366,2,106,38,7,12,5,5,1,1,10,1,13,1,5,1,1,1,2,1,2,1,108,16,17,363,1,1,16,64,2,54,40,12,1,1,2,16,7,1,1,1,6,7,9,1,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,4,3,3,1,4,1,1,1,1,1,1,1,3,1,1,3,1,1,1,2,4,5,1,135,2,1,1,3,1,3,1,1,1,1,1,1,2,10,2,3,2,26,1,1,1,1,1,1,26,1,1,1,1,1,1,1,1,1,2,10,1,45,2,31,3,6,2,6,2,6,2,3,3,2,1,1,1,2,1,1,4,2,10,3,2,2,12,1,26,1,19,1,2,1,15,2,14,34,123,5,3,4,45,3,9,53,4,17,1,5,12,52,45,1,130,29,3,49,47,31,1,4,12,17,1,8,1,53,30,1,1,36,4,8,1,5,42,40,40,78,
2,10,854,6,2,1,1,44,1,2,3,1,2,23,1,1,8,160,22,6,3,1,26,5,1,64,56,6,2,64,1,3,1,2,5,4,4,1,3,1,27,4,3,4,1,8,8,9,7,29,2,1,128,54,3,7,22,2,8,19,5,8,128,73,535,31,385,1,1,1,53,15,7,4,20,10,16,2,1,45,3,4,2,2,2,1,4,14,25,7,10,6,3,36,5,1,8,1,10,4,60,2,1,48,3,9,2,4,4,7,10,1190,43,1,1,1,2,6,1,1,8,10,2358,879,145,99,13,4,2956,1071,13265,569,1223,69,11,1,46,16,4,13,16480,2,8190,246,10,39,2,60,2,3,3,6,8,8,2,7,30,4,48,34,66,3,1,186,87,9,18,142,26,26,26,7,1,18,26,26,1,1,2,2,1,2,2,2,4,1,8,4,1,1,1,7,1,11,26,26,2,1,
4,2,8,1,7,1,26,2,1,4,1,5,1,1,3,7,1,26,26,26,26,26,26,26,26,26,26,26,26,28,2,25,1,25,1,6,25,1,25,1,6,25,1,25,1,6,25,1,25,1,6,25,1,25,1,6,1,1,2,50,5632,4,1,27,1,2,1,1,2,1,1,10,1,4,1,1,1,1,6,1,4,1,1,1,1,1,1,3,1,2,1,1,2,1,1,1,1,1,1,1,1,1,1,2,1,1,2,4,1,7,1,4,1,4,1,1,1,10,1,17,5,3,1,5,1,17,52,2,270,44,4,100,12,15,2,14,2,15,1,15,32,11,5,31,1,60,4,43,75,29,13,43,5,9,7,2,174,33,15,6,1,70,3,20,12,37,1,5,21,17,15,63,1,1,1,182,1,4,3,62,2,4,12,24,147,70,4,11,48,70,58,116,2188,42711,41,4149,11,222,16354,542,722403,
1,30,96,128,240,65040,65534,2,65534]),e=c.z.length|0,e=ia(La(Ra),[e]),f;f=0;for(c=hD(new iD,c,0,c.z.length|0);c.Qa();){var g=c.Sa();e.j[f]=g|0;f=1+f|0}c=e.j.length;f=-1+c|0;if(!(1>=c))for(c=1;;){g=c;e.j[g]=e.j[g]+e.j[-1+g|0]|0;if(c===f)break;c=1+c|0}a.Lya=e;a.ma=(2|a.ma)<<24>>24}b=1+dya(0,a.Lya,b)|0;if(0===(4&a.ma)<<24>>24&&0===(4&a.ma)<<24>>24){c=(new J).aa([1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,
1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,5,1,2,5,1,3,2,1,3,2,1,3,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,3,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,5,2,4,27,4,27,4,27,4,27,4,27,6,1,2,1,2,4,27,1,2,0,4,2,24,0,27,1,24,
1,0,1,0,1,2,1,0,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,25,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,28,6,7,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,0,1,0,4,24,0,2,0,24,
20,0,26,0,6,20,6,24,6,24,6,24,6,0,5,0,5,24,0,16,0,25,24,26,24,28,6,24,0,24,5,4,5,6,9,24,5,6,5,24,5,6,16,28,6,4,6,28,6,5,9,5,28,5,24,0,16,5,6,5,6,0,5,6,5,0,9,5,6,4,28,24,4,0,5,6,4,6,4,6,4,6,0,24,0,5,6,0,24,0,5,0,5,0,6,0,6,8,5,6,8,6,5,8,6,8,6,8,5,6,5,6,24,9,24,4,5,0,5,0,6,8,0,5,0,5,0,5,0,5,0,5,0,5,0,6,5,8,6,0,8,0,8,6,5,0,8,0,5,0,5,6,0,9,5,26,11,28,26,0,6,8,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,6,0,8,6,0,6,0,6,0,6,0,5,0,5,0,9,6,5,6,0,6,8,0,5,0,5,0,5,0,5,0,5,0,5,0,6,5,8,6,0,6,8,0,8,6,0,5,0,5,6,0,9,24,26,0,6,
8,0,5,0,5,0,5,0,5,0,5,0,5,0,6,5,8,6,8,6,0,8,0,8,6,0,6,8,0,5,0,5,6,0,9,28,5,11,0,6,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,8,6,8,0,8,0,8,6,0,5,0,8,0,9,11,28,26,28,0,8,0,5,0,5,0,5,0,5,0,5,0,5,6,8,0,6,0,6,0,6,0,5,0,5,6,0,9,0,11,28,0,8,0,5,0,5,0,5,0,5,0,5,0,6,5,8,6,8,0,6,8,0,8,6,0,8,0,5,0,5,6,0,9,0,5,0,8,0,5,0,5,0,5,0,5,8,6,0,8,0,8,6,5,0,8,0,5,6,0,9,11,0,28,5,0,8,0,5,0,5,0,5,0,5,0,5,0,6,0,8,6,0,6,0,8,0,8,24,0,5,6,5,6,0,26,5,4,6,24,9,24,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,6,5,6,0,6,5,0,5,0,
4,0,6,0,9,0,5,0,5,28,24,28,24,28,6,28,9,11,28,6,28,6,28,6,21,22,21,22,8,5,0,5,0,6,8,6,24,6,5,6,0,6,0,28,6,28,0,28,24,28,24,0,5,8,6,8,6,8,6,8,6,5,9,24,5,8,6,5,6,5,8,5,8,5,6,5,6,8,6,8,6,5,8,9,8,6,28,1,0,1,0,1,0,5,24,4,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,6,24,11,0,5,28,0,5,0,20,5,24,5,12,5,21,22,0,5,24,10,0,5,0,5,6,0,5,6,24,0,5,6,0,5,0,5,0,6,0,5,6,8,6,8,6,8,6,24,4,24,26,5,6,0,9,0,11,0,24,20,24,6,12,0,9,0,5,4,5,0,5,6,5,0,5,0,5,0,6,8,6,8,0,8,6,8,6,0,28,0,24,9,5,0,5,0,5,0,8,
5,8,0,9,11,0,28,5,6,8,0,24,5,8,6,8,6,0,6,8,6,8,6,8,6,0,6,9,0,9,0,24,4,24,0,6,8,5,6,8,6,8,6,8,6,8,5,0,9,24,28,6,28,0,6,8,5,8,6,8,6,8,6,8,5,9,5,6,8,6,8,6,8,6,8,0,24,5,8,6,8,6,0,24,9,0,5,9,5,4,24,0,24,0,6,24,6,8,6,5,6,5,8,6,5,0,2,4,2,4,2,4,6,0,6,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,
2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,0,1,0,2,1,2,1,2,0,1,0,2,0,1,0,1,0,1,0,1,2,1,2,0,2,3,2,3,2,3,2,0,2,1,3,27,2,27,2,0,2,1,3,27,2,0,2,1,0,27,2,1,27,0,2,0,2,1,3,27,0,12,16,20,24,29,30,21,29,30,21,29,24,13,14,16,12,24,29,30,24,23,24,25,21,22,24,25,24,23,24,12,16,0,16,11,4,0,11,25,21,22,4,11,25,21,
22,0,4,0,26,0,6,7,6,7,6,0,28,1,28,1,28,2,1,2,1,2,28,1,28,25,1,28,1,28,1,28,1,28,1,28,2,1,2,5,2,28,2,1,25,1,2,28,25,28,2,28,11,10,1,2,10,11,0,25,28,25,28,25,28,25,28,25,28,25,28,25,28,25,28,25,28,25,28,25,28,25,28,21,22,28,25,28,25,28,25,28,0,28,0,28,0,11,28,11,28,25,28,25,28,25,28,25,28,0,28,21,22,21,22,21,22,21,22,21,22,21,22,21,22,11,28,25,21,22,25,21,22,21,22,21,22,21,22,21,22,25,28,25,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,25,21,22,21,22,25,21,22,25,28,25,28,25,0,28,
0,1,0,2,0,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,4,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,28,1,2,1,2,6,1,2,0,24,11,24,2,0,2,0,2,0,5,0,4,24,0,6,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,6,24,29,30,29,30,24,29,30,24,29,30,24,20,24,20,24,29,30,24,29,30,21,22,21,22,21,22,21,22,24,4,24,20,0,28,0,28,0,28,0,28,0,12,24,28,4,5,10,21,22,21,22,21,22,21,22,21,22,
28,21,22,21,22,21,22,21,22,20,21,22,28,10,6,8,20,4,28,10,4,5,24,28,0,5,0,6,27,4,5,20,5,24,4,5,0,5,0,5,0,28,11,28,5,0,28,0,5,28,0,11,28,11,28,11,28,11,28,11,28,0,28,5,0,28,5,0,5,4,5,0,28,0,5,4,24,5,4,24,5,9,5,0,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,5,6,7,24,6,24,4,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,0,6,5,10,6,24,0,27,4,27,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,
1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,4,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,4,27,1,2,1,2,0,1,2,1,2,0,1,2,1,2,1,2,1,2,1,2,1,0,4,2,5,6,5,6,5,6,5,8,6,8,28,0,11,28,26,28,0,5,24,0,8,5,8,6,0,24,9,0,6,5,24,5,0,9,5,6,24,5,6,8,0,24,5,0,6,8,5,6,8,6,8,6,8,24,0,4,9,0,24,0,5,6,8,6,8,6,0,5,6,5,6,8,0,9,0,24,5,4,5,28,5,8,0,5,6,5,6,5,6,5,6,5,6,5,0,5,4,24,5,8,6,8,24,5,4,8,6,0,5,0,5,0,5,0,5,0,5,0,5,8,6,8,6,8,24,8,6,0,9,0,5,0,5,0,5,0,19,18,5,0,5,0,2,0,2,0,5,6,5,25,5,0,5,0,5,0,5,0,5,0,5,27,0,5,21,22,0,5,0,5,0,5,26,28,0,6,
24,21,22,24,0,6,0,24,20,23,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,24,21,22,24,23,24,0,24,20,21,22,21,22,21,22,24,25,20,25,0,24,26,24,0,5,0,5,0,16,0,24,26,24,21,22,24,25,24,20,24,9,24,25,24,1,21,24,22,27,23,27,2,21,25,22,25,21,22,24,21,22,24,5,4,5,4,5,0,5,0,5,0,5,0,5,0,26,25,27,28,26,0,28,25,28,0,16,28,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,24,0,11,0,28,10,11,28,11,0,28,0,28,6,0,5,0,5,0,5,0,11,0,5,10,5,10,0,5,0,24,5,0,5,24,10,0,1,2,5,0,9,0,5,0,5,0,5,0,5,0,5,0,5,0,24,11,0,5,11,0,24,5,0,24,0,5,0,5,0,
5,6,0,6,0,6,5,0,5,0,5,0,6,0,6,11,0,24,0,5,11,24,0,5,0,24,5,0,11,5,0,11,0,5,0,11,0,8,6,8,5,6,24,0,11,9,0,6,8,5,8,6,8,6,24,16,24,0,5,0,9,0,6,5,6,8,6,0,9,24,0,6,8,5,8,6,8,5,24,0,9,0,5,6,8,6,8,6,8,6,0,9,0,5,0,10,0,24,0,5,0,5,0,5,0,5,8,0,6,4,0,5,0,28,0,28,0,28,8,6,28,8,16,6,28,6,28,6,28,0,28,6,28,0,28,0,11,0,1,2,1,2,0,2,1,2,1,0,1,0,1,0,1,0,1,0,1,2,0,2,0,2,0,2,1,2,1,0,1,0,1,0,1,0,2,1,0,1,0,1,0,1,0,1,0,2,1,2,1,2,1,2,1,2,1,2,1,2,0,1,25,2,25,2,1,25,2,25,2,1,25,2,25,2,1,25,2,25,2,1,25,2,25,2,1,2,0,9,0,5,0,
5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,5,0,25,0,28,0,28,0,28,0,28,0,28,0,28,0,11,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,28,0,5,0,5,0,5,0,5,0,16,0,16,0,6,0,18,0,18,0]);e=c.z.length|0;e=ia(La(Oa),[e]);f=0;for(c=hD(new iD,c,0,c.z.length|0);c.Qa();)g=c.Sa(),e.j[f]=g|0,f=1+f|0;a.Mya=e;a.ma=(4|a.ma)<<24>>24}return a.Mya.j[0>b?-b|0:b]}
function oua(a,b,c){if(256>b)a=48<=b&&57>=b?-48+b|0:65<=b&&90>=b?-55+b|0:97<=b&&122>=b?-87+b|0:-1;else if(65313<=b&&65338>=b)a=-65303+b|0;else if(65345<=b&&65370>=b)a=-65335+b|0;else{var e=dya(gH(),JYa(a),b),e=0>e?-2-e|0:e;0>e?a=-1:(a=b-JYa(a).j[e]|0,a=9<a?-1:a)}return a<c?a:-1}
function GYa(a){if(0===(1&a.ma)<<24>>24&&0===(1&a.ma)<<24>>24){var b=(new J).aa([15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,12,24,24,24,26,24,24,24,21,22,24,25,24,20,24,24,9,9,9,9,9,9,9,9,9,9,24,24,25,25,25,24,24,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,21,24,22,27,23,27,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,21,25,22,25,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,12,
24,26,26,26,26,28,24,27,28,5,29,25,16,28,27,28,25,11,11,27,2,24,24,27,11,5,30,11,11,11,24,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,25,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,25,2,2,2,2,2,2,2,2]),c=b.z.length|0,c=ia(La(Oa),[c]),e;e=0;for(b=hD(new iD,b,0,b.z.length|0);b.Qa();){var f=b.Sa();c.j[e]=f|0;e=1+e|0}a.QBa=c;a.ma=(1|a.ma)<<24>>24}return a.QBa}function vwa(a,b){a=FYa(a,b);return 12===a||13===a||14===a}
function JYa(a){if(0===(16&a.ma)<<24>>24&&0===(16&a.ma)<<24>>24){var b=(new J).aa([1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43600,44016,65296,66720,69734,69872,69942,70096,71360,120782,120792,120802,120812,120822]),c=b.z.length|0,c=ia(La(Ra),[c]),e;e=0;for(b=hD(new iD,b,0,b.z.length|0);b.Qa();){var f=b.Sa();c.j[e]=f|0;e=1+e|0}a.RCa=c;a.ma=(16|a.ma)<<24>>24}return a.RCa}
function oka(a,b){return 65535&(ba.String.fromCharCode(b).toUpperCase().charCodeAt(0)|0)}function IYa(a){return 12===a||13===a||14===a}sY.prototype.$classData=q({H6a:0},!1,"java.lang.Character$",{H6a:1,f:1,q:1,n:1});var KYa=void 0;function Ft(){KYa||(KYa=(new sY).a());return KYa}function tY(){this.caa=this.daa=null;this.ma=0}tY.prototype=new r;tY.prototype.constructor=tY;tY.prototype.a=function(){return this};
function LYa(a){0===(1&a.ma)<<24>>24&&(a.daa=new ba.RegExp("^[\\x00-\\x20]*([+-]?(?:NaN|Infinity|(?:\\d+\\.?\\d*|\\.\\d+)(?:[eE][+-]?\\d+)?)[fFdD]?)[\\x00-\\x20]*$"),a.ma=(1|a.ma)<<24>>24);return a.daa}tY.prototype.tO=function(a){throw(new uY).e('For input string: "'+a+'"');};function raa(a,b,c){return b!==b?c!==c?0:1:c!==c?-1:b===c?0===b?(a=1/b,a===1/c?0:0>a?-1:1):0:b<c?-1:1}
function MYa(a){0===(2&a.ma)<<24>>24&&(a.caa=new ba.RegExp("^[\\x00-\\x20]*([+-]?)0[xX]([0-9A-Fa-f]*)\\.?([0-9A-Fa-f]*)[pP]([+-]?\\d+)[fFdD]?[\\x00-\\x20]*$"),a.ma=(2|a.ma)<<24>>24);return a.caa}
function rC(a,b){var c=(0===(1&a.ma)<<24>>24?LYa(a):a.daa).exec(b);if(null!==c)return c=c[1],+ba.parseFloat(void 0===c?void 0:c);var e=(0===(2&a.ma)<<24>>24?MYa(a):a.caa).exec(b);if(null!==e){var c=e[1],f=e[2],g=e[3],e=e[4];""===f&&""===g&&a.tO(b);b=""+f+g;a=-((g.length|0)<<2)|0;for(g=0;;)if(g!==(b.length|0)&&48===(65535&(b.charCodeAt(g)|0)))g=1+g|0;else break;g=b.substring(g);""===g?c="-"===c?-0:0:(b=(f=15<(g.length|0))?g.substring(0,15):g,g=a+(f?(-15+(g.length|0)|0)<<2:0)|0,a=+ba.parseInt(b,16),
aNa(fc(),0!==a&&Infinity!==a),e=+ba.parseInt(e,10),b=Ba(e)+g|0,g=b/3|0,e=+ba.Math.pow(2,g),b=+ba.Math.pow(2,b-(g<<1)|0),e=a*e*e*b,c="-"===c?-e:e)}else c=a.tO(b);return c}tY.prototype.$classData=q({K6a:0},!1,"java.lang.Double$",{K6a:1,f:1,q:1,n:1});var NYa=void 0;function wa(){NYa||(NYa=(new tY).a());return NYa}function vY(){this.rw=null;this.GX=0}vY.prototype=new r;vY.prototype.constructor=vY;function OYa(){}d=OYa.prototype=vY.prototype;d.h=function(a){return this===a};
d.Wn=function(a){var b=this.GX;a=a.GX;return b===a?0:b<a?-1:1};d.u=function(){return this.rw};d.bn=function(a,b){this.rw=a;this.GX=b;return this};d.y=function(){return va(this)};function wY(){vE.call(this)}wY.prototype=new UR;wY.prototype.constructor=wY;function PYa(){}PYa.prototype=wY.prototype;wY.prototype.gm=function(a){var b=null===a?null:a.u();vE.prototype.pe.call(this,b,a,0,!0);return this};function Nb(){vE.call(this)}Nb.prototype=new UR;Nb.prototype.constructor=Nb;function xY(){}
xY.prototype=Nb.prototype;Nb.prototype.e=function(a){vE.prototype.pe.call(this,a,null,0,!0);return this};Nb.prototype.FE=function(a,b){vE.prototype.pe.call(this,a,b,0,!0);return this};function hi(a){return!!(a&&a.$classData&&a.$classData.v.Kf)}Nb.prototype.$classData=q({Kf:0},!1,"java.lang.Exception",{Kf:1,Fe:1,f:1,n:1});function yY(){}yY.prototype=new r;yY.prototype.constructor=yY;yY.prototype.a=function(){return this};yY.prototype.tO=function(a){throw(new uY).e('For input string: "'+a+'"');};
function qC(a,b,c){var e=null===b?0:b.length|0;(0===e||2>c||36<c)&&a.tO(b);var f=65535&(b.charCodeAt(0)|0),g=45===f,h=g?2147483648:2147483647,f=g||43===f?1:0;f>=(b.length|0)&&a.tO(b);for(var k=0;f!==e;){var l=oua(Ft(),65535&(b.charCodeAt(f)|0),c),k=k*c+l;(-1===l||k>h)&&a.tO(b);f=1+f|0}return g?-k|0:k|0}function dJ(a,b){a=b-(1431655765&b>>1)|0;a=(858993459&a)+(858993459&a>>2)|0;return ca(16843009,252645135&(a+(a>>4)|0))>>24}yY.prototype.$classData=q({N6a:0},!1,"java.lang.Integer$",{N6a:1,f:1,q:1,n:1});
var QYa=void 0;function pC(){QYa||(QYa=(new yY).a());return QYa}function zY(){this.zxa=null;this.ma=!1}zY.prototype=new r;zY.prototype.constructor=zY;zY.prototype.a=function(){return this};
function tC(a,b,c){""===b&&AY(b);var e=0,f=!1;switch(65535&(b.charCodeAt(0)|0)){case 43:e=1;break;case 45:e=1,f=!0}var g=e,e=b.length|0;if(g>=e||2>c||36<c)AY(b),e=void 0;else{if(!a.ma&&!a.ma){for(var h=[],k=0;;){h.push(null);if(1===k)break;k=1+k|0}for(k=2;;){for(var l=k,p=2147483647/l|0,y=l,I=1;y<=p;)y=ca(y,l),I=1+I|0;var E=y>>31,p=Fa(),l=xta(p,-1,-1,y,E),V=p.be,p=new Yxa,y=(new aq).La(y,E),l=(new aq).La(l,V);p.Nya=I;p.PDa=y;p.lDa=l;h.push(p);if(36===k)break;k=1+k|0}a.zxa=h;a.ma=!0}h=a.zxa[c];for(k=
h.Nya;;){if(a=g<e)a=Ft(),I=65535&(b.charCodeAt(g)|0),a=256>I?48===I:0<=dya(gH(),JYa(a),I);if(a)g=1+g|0;else break}(e-g|0)>ca(3,k)&&AY(b);l=g+(1+((-1+(e-g|0)|0)%k|0)|0)|0;p=RYa(g,l,b,c);if(l===e)e=(new aq).La(p,0);else{a=h.PDa;g=a.Na;a=a.$a;var I=l+k|0,y=65535&p,E=p>>>16|0,da=65535&g,V=g>>>16|0,sa=ca(y,da),da=ca(E,da),ua=ca(y,V),y=sa+((da+ua|0)<<16)|0,sa=(sa>>>16|0)+ua|0,p=((ca(p,a)+ca(E,V)|0)+(sa>>>16|0)|0)+(((65535&sa)+da|0)>>>16|0)|0,l=RYa(l,I,b,c),l=y+l|0,p=(-2147483648^l)<(-2147483648^y)?1+p|
0:p;I===e?e=(new aq).La(l,p):(aNa(fc(),(I+k|0)===e),k=h.lDa,h=k.Na,k=k.$a,c=RYa(I,e,b,c),(p===k?(-2147483648^l)>(-2147483648^h):p>k)&&AY(b),k=65535&l,e=l>>>16|0,y=65535&g,h=g>>>16|0,I=ca(k,y),y=ca(e,y),E=ca(k,h),k=I+((y+E|0)<<16)|0,I=(I>>>16|0)+E|0,g=(((ca(l,a)+ca(p,g)|0)+ca(e,h)|0)+(I>>>16|0)|0)+(((65535&I)+y|0)>>>16|0)|0,e=k+c|0,g=(-2147483648^e)<(-2147483648^k)?1+g|0:g,-2147483648===(-2147483648^g)&&(-2147483648^e)<(-2147483648^c)&&AY(b),e=(new aq).La(e,g))}}c=e.Na;e=e.$a;if(f)return f=-c|0,c=
0!==c?~e:-e|0,(0===c?0!==f:0<c)&&AY(b),(new aq).La(f,c);0>e&&AY(b);return(new aq).La(c,e)}function AY(a){throw(new uY).e('For input string: "'+a+'"');}function RYa(a,b,c,e){for(var f=0;a!==b;){var g=oua(Ft(),65535&(c.charCodeAt(a)|0),e);-1===g&&AY(c);f=ca(f,e)+g|0;a=1+a|0}return f}zY.prototype.$classData=q({S6a:0},!1,"java.lang.Long$",{S6a:1,f:1,q:1,n:1});var SYa=void 0;function uC(){SYa||(SYa=(new zY).a());return SYa}function BY(){this.UBa=this.TBa=null}BY.prototype=new r;
BY.prototype.constructor=BY;BY.prototype.a=function(){TYa=this;var a=(new J).aa("Sun Mon Tue Wed Thu Fri Sat".split(" ")),b=a.z.length|0,b=ia(La(la),[b]),c;c=0;for(a=hD(new iD,a,0,a.z.length|0);a.Qa();){var e=a.Sa();b.j[c]=e;c=1+c|0}this.TBa=b;a=(new J).aa("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "));b=a.z.length|0;b=ia(La(la),[b]);c=0;for(a=hD(new iD,a,0,a.z.length|0);a.Qa();)e=a.Sa(),b.j[c]=e,c=1+c|0;this.UBa=b;return this};
function UYa(a,b){a=""+b;return 2>(a.length|0)?"0"+a:a}BY.prototype.$classData=q({k7a:0},!1,"java.util.Date$",{k7a:1,f:1,q:1,n:1});var TYa=void 0;function CY(){TYa||(TYa=(new BY).a());return TYa}function DY(){this.UI=this.UR=this.vS=this.BS=this.uS=this.tS=this.wS=null}DY.prototype=new r;DY.prototype.constructor=DY;
DY.prototype.a=function(){VYa=this;this.wS=(new WYa).a();this.tS=(new XYa).a();this.uS=(new YYa).a();this.BS=(new ZYa).a();this.vS=(new $Ya).a();this.UR=(new aZa).a();this.UI=(new bZa).a();var a=(new J).aa([this.wS,this.tS,this.uS,this.BS,this.vS,this.UR,this.UI]),b=a.z.length|0,b=ia(La(cZa),[b]),c;c=0;for(a=hD(new iD,a,0,a.z.length|0);a.Qa();){var e=a.Sa();b.j[c]=e;c=1+c|0}return this};
function EY(a,b,c,e){a=b.$a;var f=e.$a;if(a===f?(-2147483648^b.Na)>(-2147483648^e.Na):a>f)return(new aq).La(-1,2147483647);a=e.Na;e=e.$a;e=0!==a?~e:-e|0;f=b.$a;if(f===e?(-2147483648^b.Na)<(-2147483648^(-a|0)):f<e)return(new aq).La(1,-2147483648);e=b.Na;a=c.Na;var g=65535&e,f=e>>>16|0,h=65535&a,k=a>>>16|0,l=ca(g,h),h=ca(f,h),p=ca(g,k),g=l+((h+p|0)<<16)|0,l=(l>>>16|0)+p|0;b=(((ca(e,c.$a)+ca(b.$a,a)|0)+ca(f,k)|0)+(l>>>16|0)|0)+(((65535&l)+h|0)>>>16|0)|0;return(new aq).La(g,b)}
DY.prototype.$classData=q({A7a:0},!1,"java.util.concurrent.TimeUnit$",{A7a:1,f:1,q:1,n:1});var VYa=void 0;function FY(){VYa||(VYa=(new DY).a());return VYa}function GY(){this.t=null}GY.prototype=new r;GY.prototype.constructor=GY;function dZa(){}dZa.prototype=GY.prototype;function eZa(a,b,c){return b===a.t?(a.t=c,!0):!1}GY.prototype.d=function(a){this.t=a;return this};function CH(){}CH.prototype=new r;CH.prototype.constructor=CH;CH.prototype.a=function(){return this};
CH.prototype.$classData=q({Q7a:0},!1,"java.util.regex.GroupStartMap$OriginallyWrapped$",{Q7a:1,f:1,q:1,n:1});var Vya=void 0;function HY(){this.r5=this.mH=null}HY.prototype=new r;HY.prototype.constructor=HY;HY.prototype.u=function(){return this.r5};function Cya(a){return(a.mH.global?"g":"")+(a.mH.ignoreCase?"i":"")+(a.mH.multiline?"m":"")}HY.prototype.$classData=q({W7a:0},!1,"java.util.regex.Pattern",{W7a:1,f:1,q:1,n:1});function IY(){this.WBa=this.XBa=null}IY.prototype=new r;
IY.prototype.constructor=IY;IY.prototype.a=function(){fZa=this;this.XBa=new ba.RegExp("^\\\\Q(.|\\n|\\r)\\\\E$");this.WBa=new ba.RegExp("^\\(\\?([idmsuxU]*)(?:-([idmsuxU]*))?\\)");return this};function Sg(a,b,c){a=pu(a,b,0);return Rv(qu(new ru,a,c,xa(c)))}
function pu(a,b,c){if(0!==(16&c))a=(new P).N(gZa(b),c);else{a=a.XBa.exec(b);if(null!==a){a=a[1];if(void 0===a)throw(new PH).e("undefined.get");a=(new A).d((new P).N(gZa(a),c))}else a=w();if(a.b()){var e=Tg().WBa.exec(b);if(null!==e){a=e[0];if(void 0===a)throw(new PH).e("undefined.get");a=b.substring(a.length|0);var f=e[1];if(void 0===f)var g=c;else{var f=(new ph).e(f),g=f.ia.length|0,h=0,k=c;a:for(;;){if(h!==g){var l=1+h|0,h=f.jb(h),h=null===h?0:h.t,k=k|0|hZa(Tg(),h),h=l;continue a}break}g=k|0}e=
e[2];if(void 0===e)e=g;else{e=(new ph).e(e);f=e.ia.length|0;l=0;h=g;a:for(;;){if(l!==f){g=1+l|0;l=e.jb(l);l=null===l?0:l.t;h=(h|0)&~hZa(Tg(),l);l=g;continue a}break}e=h|0}a=(new A).d((new P).N(a,e))}else a=w()}a=a.b()?(new P).N(b,c):a.c()}if(null===a)throw(new v).d(a);c=a.pa();a=a.si();c=new ba.RegExp(c,"g"+(0!==(2&a)?"i":"")+(0!==(8&a)?"m":""));a=new HY;a.mH=c;a.r5=b;return a}
function gZa(a){for(var b="",c=0;c<(a.length|0);){var e=65535&(a.charCodeAt(c)|0);switch(e){case 92:case 46:case 40:case 41:case 91:case 93:case 123:case 125:case 124:case 63:case 42:case 43:case 94:case 36:e="\\"+Dc(e);break;default:e=Dc(e)}b=""+b+e;c=1+c|0}return b}function hZa(a,b){switch(b){case 105:return 2;case 100:return 1;case 109:return 8;case 115:return 32;case 117:return 64;case 120:return 4;case 85:return 256;default:throw(new rk).e("bad in-pattern flag");}}
IY.prototype.$classData=q({X7a:0},!1,"java.util.regex.Pattern$",{X7a:1,f:1,q:1,n:1});var fZa=void 0;function Tg(){fZa||(fZa=(new IY).a());return fZa}function JY(){this.m0=this.VV=null}JY.prototype=new Zya;JY.prototype.constructor=JY;JY.prototype.a=function(){iZa=this;this.VV=(new qI).d(cq().P1);this.m0=(new qI).d(cq().Wp);(new qI).d(null);return this};JY.prototype.$classData=q({$7a:0},!1,"scala.Console$",{$7a:1,Ffb:1,f:1,Tfb:1});var iZa=void 0;function HG(){iZa||(iZa=(new JY).a());return iZa}
function KY(){this.Aea=null;this.UEa=!1;this.WE=0;this.Ju=null;this.xea=this.zea=0}KY.prototype=new r;KY.prototype.constructor=KY;function jZa(){}jZa.prototype=KY.prototype;KY.prototype.u=function(){var a=dk(ka(this)),a=(new ph).e(a),a=JO(a,"$"),a=(new ph).e(a),a=Ws(a,46),a=ld((new md).vc(a)),a=(new ph).e(a),a=Ws(a,36);return ld((new md).vc(a))};KY.prototype.$d=function(a){this.Aea=(new ct).a();this.UEa=!1;(new ct).a();this.zea=this.WE=a;this.xea=0>a?a:0;return this};function LY(){}LY.prototype=new r;
LY.prototype.constructor=LY;LY.prototype.a=function(){return this};LY.prototype.Ia=function(a){return null===a?w():(new A).d(a)};LY.prototype.$classData=q({h8a:0},!1,"scala.Option$",{h8a:1,f:1,q:1,n:1});var kZa=void 0;function Wa(){kZa||(kZa=(new LY).a());return kZa}function MY(){this.ci=this.wN=this.Sg=this.db=null}MY.prototype=new cza;MY.prototype.constructor=MY;function aNa(a,b){if(!b)throw(new fJ).d("assertion failed");}
MY.prototype.a=function(){lZa=this;Zf();Di();this.db=Fqa();this.Sg=Pf();iAa||(iAa=(new pI).a());iAa||(iAa=(new pI).a());mZa||(mZa=(new NY).a());this.wN=(new XR).a();this.ci=(new OY).a();(new PY).a();return this};
function QY(a,b){if(Pda(b,1))return(new md).vc(b);if(xaa(b,1))return(new nZa).TG(b);if(zaa(b,1))return(new oZa).MG(b);if(yaa(b,1))return(new Et).dx(b);if(Eaa(b,1))return(new pZa).OG(b);if(Daa(b,1))return(new qZa).PG(b);if(Baa(b,1))return(new rZa).QG(b);if(Caa(b,1))return(new sZa).RG(b);if(Aaa(b,1))return(new tZa).SG(b);if(oCa(b))return(new uZa).UG(b);if(null===b)return null;throw(new v).d(b);}function vZa(a,b){if(!b)throw(new rk).e("requirement failed");}
MY.prototype.$classData=q({m8a:0},!1,"scala.Predef$",{m8a:1,Jfb:1,f:1,Gfb:1});var lZa=void 0;function fc(){lZa||(lZa=(new MY).a());return lZa}function RY(){this.l=this.BBa=null}RY.prototype=new r;RY.prototype.constructor=RY;function wZa(a,b,c){a.BBa=c;if(null===b)throw Lb(Mb(),null);a.l=b;return a}
RY.prototype.eF=function(){vZa(fc(),null===this.l.gF.c());if(null===jza().wT.c()){bya||(bya=(new VG).a());var a=bya.yxa;a&&a.$classData&&a.$classData.v.oEa||AOa||(AOa=(new $R).a())}var a=jza(),b=a.wT.c();try{YG(a.wT,this);try{var c=this.BBa;a:for(;;){var e=c;if(!G().h(e)){if(ft(e)){var f=e.Aj;YG(this.l.gF,e.ve);try{f.eF()}catch(l){var g=gi(Mb(),l);if(null!==g){var h=this.l.gF.c();YG(this.l.gF,G());wZa(new RY,this.l,h).eF();throw Lb(Mb(),g);}throw l;}c=this.l.gF.c();continue a}throw(new v).d(e);}break}}finally{var k=
this.l.gF;k.J0=!1;k.yo=null}}finally{YG(a.wT,b)}};RY.prototype.$classData=q({x8a:0},!1,"scala.concurrent.BatchingExecutor$Batch",{x8a:1,f:1,bCa:1,oEa:1});function SY(){this.G8=this.r6=this.x9=this.xn=this.KGa=this.LGa=this.Dfa=null}SY.prototype=new r;SY.prototype.constructor=SY;
SY.prototype.a=function(){xZa=this;Di();for(var a=FY().UI,a=(new P).N(a,"d day"),b=FY().UR,b=(new P).N(b,"h hour"),c=FY().vS,c=(new P).N(c,"min minute"),e=FY().BS,e=(new P).N(e,"s sec second"),f=FY().uS,f=(new P).N(f,"ms milli millisecond"),g=FY().tS,g=(new P).N(g,"\u00b5s micro microsecond"),h=FY().wS,a=[a,b,c,e,f,g,(new P).N(h,"ns nano nanosecond")],a=(new J).aa(a),b=Di().s,b=this.Dfa=Ei(a,b),a=Ry(new Sy,Xs());!b.b();)c=b.fa(),Ty(a,c),b=b.sa();this.LGa=(new yu).IE(a.gb,t(new u,function(){return function(a){a=
yZa(QR(),a);return Rs(a)}}(this)));b=this.Dfa;a=function(a){return function(b){if(null!==b){var c=b.pa();b=b.Ba();b=zZa(QR(),b);var c=function(a,b){return function(a){return(new P).N(a,b)}}(a,c),e=Di().s;if(e===Di().s){if(b===G())return G();var e=b.fa(),f=e=oz(new pz,c(e),G());for(b=b.sa();b!==G();){var g=b.fa(),g=oz(new pz,c(g),G()),f=f.ve=g;b=b.sa()}return e}for(e=Rf(b,e);!b.b();)f=b.fa(),e.Ic(c(f)),b=b.sa();return e.lc()}throw(new v).d(b);}}(this);if(Di().s===Di().s)if(b===G())a=G();else{c=b;e=
(new mk).rs(!1);f=(new Qd).d(null);for(g=(new Qd).d(null);c!==G();)h=c.fa(),a(h).td().X(t(new u,function(a,b,c,e){return function(a){b.ta?(a=oz(new pz,a,G()),e.ta.ve=a,e.ta=a):(c.ta=oz(new pz,a,G()),e.ta=c.ta,b.ta=!0)}}(b,e,f,g))),c=c.sa();a=e.ta?f.ta:G()}else{Di();for(c=(new $g).a();!b.b();)e=b.fa(),e=a(e).td(),Er(c,e),b=b.sa();a=c.wa()}this.KGa=a.$g(fc().ci);this.xn=TY(new UY,OG(),FY().UI);this.x9=(new AZa).a();this.r6=(new BZa).a();this.G8=(new CZa).a();return this};
function DZa(a){var b=Fa(),c=BD(b,a.Na,a.$a,-1857093632,20116),b=b.be;if(0===c&&0===b)return QR(),c=Fa(),a=jD(c,a.Na,a.$a,-1857093632,20116),c=c.be,b=FY().UI,TY(new UY,(new aq).La(a,c),b);b=Fa();c=BD(b,a.Na,a.$a,817405952,838);b=b.be;if(0===c&&0===b)return QR(),c=Fa(),a=jD(c,a.Na,a.$a,817405952,838),c=c.be,b=FY().UR,TY(new UY,(new aq).La(a,c),b);b=Fa();c=BD(b,a.Na,a.$a,-129542144,13);b=b.be;if(0===c&&0===b)return QR(),c=Fa(),a=jD(c,a.Na,a.$a,-129542144,13),c=c.be,b=FY().vS,TY(new UY,(new aq).La(a,
c),b);b=Fa();c=BD(b,a.Na,a.$a,1E9,0);b=b.be;if(0===c&&0===b)return QR(),c=Fa(),a=jD(c,a.Na,a.$a,1E9,0),c=c.be,b=FY().BS,TY(new UY,(new aq).La(a,c),b);b=Fa();c=BD(b,a.Na,a.$a,1E6,0);b=b.be;if(0===c&&0===b)return QR(),c=Fa(),a=jD(c,a.Na,a.$a,1E6,0),c=c.be,b=FY().uS,TY(new UY,(new aq).La(a,c),b);b=Fa();c=BD(b,a.Na,a.$a,1E3,0);b=b.be;if(0===c&&0===b)return QR(),c=Fa(),a=jD(c,a.Na,a.$a,1E3,0),c=c.be,b=FY().tS,TY(new UY,(new aq).La(a,c),b);QR();c=FY().wS;return TY(new UY,a,c)}
function yZa(a,b){a=b.trim();a=kd(ta(),a,"\\s+",0);b=Di().s.gs();var c=a.j.length;switch(c){case -1:break;default:b.Gh(c)}b.Cf((new FH).vc(a));return b.lc()}
function pOa(a,b){for(var c=(new ph).e(b),e=(new lk).a(),f=0,g=c.ia.length|0;f<g;){var h=c.jb(f),k=null===h?0:h.t;!0!==Rwa(Ft(),k)&&cE(e,null===h?0:h.t);f=1+f|0}c=e.Be.Ue;if("Inf"===c||"PlusInf"===c||"+Inf"===c)return a.r6;if("MinusInf"===c||"-Inf"===c)return a.G8;e=(new ph).e(c);e=VY(e);e=(new ph).e(e);f=e.ia.length|0;for(g=0;;)if(g<f?(h=e.jb(g),h=null===h?0:h.t,k=Ft(),h=FYa(k,h),h=1===h||2===h||3===h||4===h||5===h):h=!1,h)g=1+g|0;else break;f=g;e=Lh(Mh(),e.ia,0,f);e=(new ph).e(e);e=VY(e);a=a.KGa.Ta(e);
if(x(a)){b=a.i;a=(new ph).e(c);c=Lca(a,e.length|0);a=rC(wa(),c);if(-9007199254740992<=a&&9007199254740992>=a){c=QR();e=b.Fx((new aq).La(1,0));b=e.Na;e=e.$a;a*=sC(Fa(),b,e);if(Infinity===a||-Infinity===a)b=0<a?c.r6:c.G8;else if(a!==a)b=c.x9;else{if(0x7fffffffffffffff<a||-9223372036854775808>a)throw(new rk).e("trying to construct too large duration with "+a+"ns");b=Fa();a=+ba.Math.round(a);a=hE(b,a);b=DZa((new aq).La(a,b.be))}return b}QR();c=tC(uC(),c,10);a=c.Na;c=c.$a;return TY(new UY,(new aq).La(a,
c),b)}throw(new uY).e("format error "+b);}
function zZa(a,b){var c=yZa(0,b);if(!ft(c))throw(new v).d(c);b=c.Aj;c=c.ve;a=function(){return function(a){Di();a=(new J).aa([a,a+"s"]);var b=Di().s;return Ei(a,b)}}(a);if(Di().s===Di().s)if(c===G())a=G();else{for(var e=c,f=(new mk).rs(!1),g=(new Qd).d(null),h=(new Qd).d(null);e!==G();){var k=e.fa();a(k).td().X(t(new u,function(a,b,c,e){return function(a){b.ta?(a=oz(new pz,a,G()),e.ta.ve=a,e.ta=a):(c.ta=oz(new pz,a,G()),e.ta=c.ta,b.ta=!0)}}(c,f,g,h)));e=e.sa()}a=f.ta?g.ta:G()}else{Di();for(e=(new $g).a();!c.b();)f=
c.fa(),f=a(f).td(),Er(e,f),c=c.sa();a=e.wa()}return oz(new pz,b,a)}SY.prototype.$classData=q({F8a:0},!1,"scala.concurrent.duration.Duration$",{F8a:1,f:1,q:1,n:1});var xZa=void 0;function QR(){xZa||(xZa=(new SY).a());return xZa}function WY(){this.t=this.YCa=this.r0=null}WY.prototype=new r;WY.prototype.constructor=WY;
WY.prototype.eF=function(){vZa(fc(),null!==this.t);try{this.YCa.R(this.t)}catch(c){var a=gi(Mb(),c);if(null!==a){var b=uI(vI(),a);if(b.b())throw Lb(Mb(),a);a=b.c();this.r0.wW(a)}else throw c;}};function EZa(a,b){var c=new WY;c.r0=a;c.YCa=b;c.t=null;return c}function FZa(a,b){vZa(fc(),null===a.t);a.t=b;try{a.r0.q0(a)}catch(e){if(b=gi(Mb(),e),null!==b){var c=uI(vI(),b);if(c.b())throw Lb(Mb(),b);b=c.c();a.r0.wW(b)}else throw e;}}
WY.prototype.$classData=q({J8a:0},!1,"scala.concurrent.impl.CallbackRunnable",{J8a:1,f:1,bCa:1,D8a:1});
function oza(a,b,c){var e=(new uE).a();a.KA(t(new u,function(a,b,c){return function(e){try{var l=b.R(e);if(l===a)return Qda(c,e);if(XY(l)){var p=c.t,y=XY(p)?YY(c,p):c;e=l;a:for(;;){if(e!==y){var I=e.t;b:if(GZa(I)){if(!y.bX(I))throw(new fk).e("Cannot link completed promises together");}else{if(XY(I)){e=YY(e,I);continue a}if(COa(I)&&(l=I,eZa(e,l,y))){if(Tc(l))for(I=l;!I.b();){var E=I.fa();HZa(y,E);I=I.sa()}break b}continue a}}break}}else return Rda(c,l)}catch(V){y=gi(Mb(),V);if(null!==y){E=uI(vI(),
y);if(!E.b())return y=E.c(),ek(c,y);throw Lb(Mb(),y);}throw V;}}}(a,b,e)),c);return e}function IZa(a){a=a.Ufa();if(x(a))return"Future("+a.i+")";if(w()===a)return"Future(\x3cnot completed\x3e)";throw(new v).d(a);}function qza(a,b,c){var e=(new uE).a();a.KA(t(new u,function(a,b,c){return function(a){var e;a:try{e=b.R(a)}catch(f){a=gi(Mb(),f);if(null!==a){e=uI(vI(),a);if(!e.b()){a=e.c();e=(new Fe).gm(a);break a}throw Lb(Mb(),a);}throw f;}return Qda(c,e)}}(a,b,e)),c);return e}
function ZY(){this.qh=null;this.sP=this.pL=0;this.hO=null;this.ma=!1}ZY.prototype=new r;ZY.prototype.constructor=ZY;ZY.prototype.a=function(){JZa=this;this.pL=-512;this.sP=512;this.hO=Jta().Zga;return this};
function KZa(a,b){var c=new OR,e=new MR;a=""+a;MR.prototype.NG.call(e,Dt(ta(),a),0,a.length|0);a=b.EC;var f=NR(e)-a|0;if(!($Y(e)<a||0===a||0>=f))if(64>e.No){a=AX().mS.j[f];var g=a.Na,h=a.$a,k=e.uf,l=k>>31,p=f>>31;a=k-f|0;var k=(-2147483648^a)>(-2147483648^k)?-1+(l-p|0)|0:l-p|0,f=e.In,p=f.Na,y=f.$a,l=Fa(),f=jD(l,p,y,g,h),l=l.be,I=Fa(),p=BD(I,p,y,g,h),y=I.be;if(0!==p||0!==y){AX();if(0>y)var I=-p|0,E=0!==p?~y:-y|0;else I=p,E=y;I=(new aq).La(I<<1,I>>>31|0|E<<1);g=(new aq).La(g,h);h=I.$a;E=g.$a;(h===E?
(-2147483648^I.Na)>(-2147483648^g.Na):h>E)?g=1:(h=I.$a,E=g.$a,g=(h===E?(-2147483648^I.Na)<(-2147483648^g.Na):h<E)?-1:0);g=ca(0>y?-1:0===y&&0===p?0:1,5+g|0);g=tWa(AX(),1&f,g,b.VH);h=g>>31;g=f+g|0;f=(-2147483648^g)<(-2147483648^f)?1+(l+h|0)|0:l+h|0;0>f?(l=-g|0,h=0!==g?~f:-f|0):(l=g,h=f);l=sC(Fa(),l,h);(void 0!==ba.Math.log10?+ba.Math.log10(l):+ba.Math.log(l)/2.302585092994046)>=b.EC?(a=-1+a|0,k=-1!==a?k:-1+k|0,l=Fa(),f=jD(l,g,f,10,0),l=l.be,a=(new aq).La(a,k),f=(new aq).La(f,l)):(a=(new aq).La(a,k),
f=(new aq).La(g,f))}else a=(new aq).La(a,k),f=(new aq).La(f,l);k=a;a=k.Na;k=k.$a;l=f;f=l.Na;l=l.$a;e.uf=uWa(AX(),(new aq).La(a,k));e.GF=b.EC;e.In=(new aq).La(f,l);e.No=rWa(AX(),(new aq).La(f,l));e.EF=null}else g=AD(nD(),(new aq).La(f,f>>31)),k=LZa(aZ(e),g),l=e.uf,h=l>>31,p=f>>31,f=l-f|0,l=(-2147483648^f)>(-2147483648^l)?-1+(h-p|0)|0:h-p|0,0!==k.j[1].ff&&(h=bZ(MZa(NZa(k.j[1])),g),g=OZa(k.j[0],0)?1:0,h=ca(k.j[1].ff,5+h|0),g=tWa(AX(),g,h,b.VH),0!==g&&(g=rD(dD(),(new aq).La(g,g>>31)),h=k.j[0],k.j[0]=
pD(sD(),h,g)),NR((new MR).CE(k.j[0]))>a&&(k.j[0]=PZa(k.j[0],dD().DJ),f=g=-1+f|0,l=-1!==g?l:-1+l|0)),e.uf=uWa(AX(),(new aq).La(f,l)),e.GF=a,QZa(e,k.j[0]);return nOa(c,e,b)}ZY.prototype.$classData=q({P8a:0},!1,"scala.math.BigDecimal$",{P8a:1,f:1,q:1,n:1});var JZa=void 0;function mOa(){JZa||(JZa=(new ZY).a());return JZa}function cZ(){this.sP=this.pL=0;this.fFa=this.qh=null}cZ.prototype=new r;cZ.prototype.constructor=cZ;
cZ.prototype.a=function(){RZa=this;this.pL=-1024;this.sP=1024;this.qh=ia(La(SZa),[1+(this.sP-this.pL|0)|0]);this.fFa=rD(dD(),(new aq).La(-1,-1));return this};function dZ(a,b){if(a.pL<=b&&b<=a.sP){var c=b-a.pL|0,e=a.qh.j[c];null===e&&(e=dD(),e=(new OF).CE(rD(e,(new aq).La(b,b>>31))),a.qh.j[c]=e);return e}a=dD();return(new OF).CE(rD(a,(new aq).La(b,b>>31)))}
function TZa(a,b){var c=a.pL,e=c>>31,f=b.$a;(e===f?(-2147483648^c)<=(-2147483648^b.Na):e<f)?(c=a.sP,e=c>>31,f=b.$a,c=f===e?(-2147483648^b.Na)<=(-2147483648^c):f<e):c=!1;return c?dZ(a,b.Na):(new OF).CE(rD(dD(),b))}cZ.prototype.$classData=q({Q8a:0},!1,"scala.math.BigInt$",{Q8a:1,f:1,q:1,n:1});var RZa=void 0;function kI(){RZa||(RZa=(new cZ).a());return RZa}function eI(){}eI.prototype=new r;eI.prototype.constructor=eI;eI.prototype.a=function(){return this};
eI.prototype.$classData=q({S8a:0},!1,"scala.math.Fractional$",{S8a:1,f:1,q:1,n:1});var Oza=void 0;function fI(){}fI.prototype=new r;fI.prototype.constructor=fI;fI.prototype.a=function(){return this};fI.prototype.$classData=q({T8a:0},!1,"scala.math.Integral$",{T8a:1,f:1,q:1,n:1});var Pza=void 0;function gI(){}gI.prototype=new r;gI.prototype.constructor=gI;gI.prototype.a=function(){return this};gI.prototype.$classData=q({V8a:0},!1,"scala.math.Numeric$",{V8a:1,f:1,q:1,n:1});var Qza=void 0;
function UZa(){}UZa.prototype=new SR;UZa.prototype.constructor=UZa;function VZa(){}VZa.prototype=UZa.prototype;function kCa(a){return!!(a&&a.$classData&&a.$classData.v.uEa)}function eZ(){}eZ.prototype=new r;eZ.prototype.constructor=eZ;eZ.prototype.a=function(){return this};
function NUa(a,b){return b===n(Oa)?Vza():b===n(Qa)?Wza():b===n(Na)?Xza():b===n(Ra)?Yza():b===n(Sa)?Zza():b===n(Ta)?$za():b===n(Ua)?aAa():b===n(Ma)?bAa():b===n(waa)?cAa():b===n(Ja)?Pu():b===n(WZa)?fAa():b===n(mCa)?gAa():XZa(new fZ,b)}eZ.prototype.$classData=q({f9a:0},!1,"scala.reflect.ClassTag$",{f9a:1,f:1,q:1,n:1});var YZa=void 0;function OUa(){YZa||(YZa=(new eZ).a());return YZa}function hI(){}hI.prototype=new r;hI.prototype.constructor=hI;hI.prototype.a=function(){return this};
hI.prototype.$classData=q({A9a:0},!1,"scala.util.Either$",{A9a:1,f:1,q:1,n:1});var Rza=void 0;function iI(){}iI.prototype=new r;iI.prototype.constructor=iI;iI.prototype.a=function(){return this};iI.prototype.u=function(){return"Left"};iI.prototype.$classData=q({B9a:0},!1,"scala.util.Left$",{B9a:1,f:1,q:1,n:1});var Sza=void 0;function jI(){}jI.prototype=new r;jI.prototype.constructor=jI;jI.prototype.a=function(){return this};jI.prototype.u=function(){return"Right"};
jI.prototype.$classData=q({C9a:0},!1,"scala.util.Right$",{C9a:1,f:1,q:1,n:1});var Tza=void 0;function gZ(){this.Iga=!1}gZ.prototype=new r;gZ.prototype.constructor=gZ;gZ.prototype.a=function(){this.Iga=!1;return this};gZ.prototype.$classData=q({F9a:0},!1,"scala.util.control.NoStackTrace$",{F9a:1,f:1,q:1,n:1});var ZZa=void 0;function qh(){this.GW=this.gh=null}qh.prototype=new r;qh.prototype.constructor=qh;qh.prototype.Di=function(a,b){var c=Tg();qh.prototype.y6a.call(this,pu(c,a,0),b);return this};
function Asa(a,b){a=qu(new ru,a.gh,b,xa(b));return su(a)?(new A).d(yOa(a)):w()}qh.prototype.y6a=function(a,b){this.gh=a;this.GW=b;return this};qh.prototype.u=function(){return this.gh.r5};function ss(a,b){if(null===b)return w();a=qu(new ru,a.gh,b,xa(b));if(Rv(a)){$Za||($Za=(new hZ).a());Di();var c=G();for(b=wOa(a);0<b;){var e=vOa(a,b),c=oz(new pz,e,c);b=-1+b|0}a=(new A).d(c)}else a=w();return a}function Mt(a,b){return Dja(b,a,a.GW)}
function xca(a,b){a=qu(new ru,a.gh,b,xa(b));return su(a)?(new A).d(HOa(b,a)):w()}qh.prototype.$classData=q({J9a:0},!1,"scala.util.matching.Regex",{J9a:1,f:1,q:1,n:1});function hZ(){}hZ.prototype=new r;hZ.prototype.constructor=hZ;hZ.prototype.a=function(){return this};hZ.prototype.$classData=q({K9a:0},!1,"scala.util.matching.Regex$",{K9a:1,f:1,q:1,n:1});var $Za=void 0;function iZ(){this.l=null}iZ.prototype=new ROa;iZ.prototype.constructor=iZ;
iZ.prototype.a=function(){nS.prototype.WU.call(this,uv());return this};iZ.prototype.gs=function(){uv();xq();yq();return(new zq).a()};iZ.prototype.$classData=q({T9a:0},!1,"scala.collection.IndexedSeq$$anon$1",{T9a:1,Nea:1,f:1,YL:1});function CC(){}CC.prototype=new TOa;CC.prototype.constructor=CC;CC.prototype.a=function(){return this};CC.prototype.zG=function(){return Xs()};CC.prototype.$classData=q({o$a:0},!1,"scala.collection.Map$",{o$a:1,$L:1,ZL:1,f:1});var Rsa=void 0;function GI(){}
GI.prototype=new wS;GI.prototype.constructor=GI;GI.prototype.R=function(){return this};GI.prototype.VU=function(){return this};GI.prototype.$classData=q({P$a:0},!1,"scala.collection.TraversableOnce$$anon$2",{P$a:1,T2:1,f:1,za:1});function a_a(){this.s=null}a_a.prototype=new lS;a_a.prototype.constructor=a_a;function b_a(){}b_a.prototype=a_a.prototype;function mS(){this.Pa=this.l=null}mS.prototype=new ROa;mS.prototype.constructor=mS;mS.prototype.gs=function(){return this.Pa.Ed()};
mS.prototype.WU=function(a){if(null===a)throw Lb(Mb(),null);this.Pa=a;nS.prototype.WU.call(this,a);return this};mS.prototype.$classData=q({aab:0},!1,"scala.collection.generic.GenTraversableFactory$$anon$1",{aab:1,Nea:1,f:1,YL:1});function c_a(){}c_a.prototype=new TOa;c_a.prototype.constructor=c_a;function d_a(){}d_a.prototype=c_a.prototype;function e_a(){}e_a.prototype=new TOa;e_a.prototype.constructor=e_a;function f_a(){}f_a.prototype=e_a.prototype;e_a.prototype.Ed=function(){return this.Vp()};
function ZH(){}ZH.prototype=new r;ZH.prototype.constructor=ZH;ZH.prototype.a=function(){return this};ZH.prototype.u=function(){return"::"};ZH.prototype.$classData=q({dab:0},!1,"scala.collection.immutable.$colon$colon$",{dab:1,f:1,q:1,n:1});var Iza=void 0;function jZ(){}jZ.prototype=new r;jZ.prototype.constructor=jZ;jZ.prototype.a=function(){return this};function Gxa(a,b,c,e,f){throw(new rk).e(b+(f?" to ":" until ")+c+" by "+e+": seqs cannot contain more than Int.MaxValue elements.");}
jZ.prototype.$classData=q({Lab:0},!1,"scala.collection.immutable.Range$",{Lab:1,f:1,q:1,n:1});var g_a=void 0;function KG(){g_a||(g_a=(new jZ).a());return g_a}function Ks(){this.l=null}Ks.prototype=new ROa;Ks.prototype.constructor=Ks;Ks.prototype.a=function(){nS.prototype.WU.call(this,Js());return this};Ks.prototype.$classData=q({$ab:0},!1,"scala.collection.immutable.Stream$StreamCanBuildFrom",{$ab:1,Nea:1,f:1,YL:1});function cI(){}cI.prototype=new r;cI.prototype.constructor=cI;cI.prototype.a=function(){return this};
cI.prototype.$classData=q({Icb:0},!1,"scala.collection.mutable.StringBuilder$",{Icb:1,f:1,q:1,n:1});var Mza=void 0;function kZ(){LQ.call(this);this.Mea=null}kZ.prototype=new ZMa;kZ.prototype.constructor=kZ;
kZ.prototype.a=function(){var a=(new J).aa(["UTF8","unicode-1-1-utf-8"]),b=a.z.length|0,b=ia(La(la),[b]),c;c=0;for(a=hD(new iD,a,0,a.z.length|0);a.Qa();){var e=a.Sa();b.j[c]=e;c=1+c|0}LQ.prototype.r6a.call(this,"UTF-8");h_a=this;this.Mea=qD(ye(),-1,(new J).aa([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,-1,-1,-1,-1,-1,-1,-1,-1]));return this};kZ.prototype.$classData=q({Wcb:0},!1,"scala.scalajs.niocharset.UTF_8$",{Wcb:1,$2a:1,f:1,sh:1});var h_a=void 0;function AJ(){h_a||(h_a=(new kZ).a());return h_a}function i_a(){this.Ug=null}i_a.prototype=new bPa;i_a.prototype.constructor=i_a;function gc(a){return(0,a.Ug)()}function jb(a){var b=new i_a;b.Ug=a;return b}
i_a.prototype.$classData=q({Zcb:0},!1,"scala.scalajs.runtime.AnonFunction0",{Zcb:1,Cgb:1,f:1,Adb:1});function u(){this.Ug=null}u.prototype=new wS;u.prototype.constructor=u;u.prototype.R=function(a){return(0,this.Ug)(a)};function t(a,b){a.Ug=b;return a}u.prototype.$classData=q({$cb:0},!1,"scala.scalajs.runtime.AnonFunction1",{$cb:1,T2:1,f:1,za:1});function lZ(){this.Ug=null}lZ.prototype=new dPa;lZ.prototype.constructor=lZ;function qd(a){var b=new lZ;b.Ug=a;return b}
lZ.prototype.zf=function(a,b){return(0,this.Ug)(a,b)};lZ.prototype.$classData=q({adb:0},!1,"scala.scalajs.runtime.AnonFunction2",{adb:1,kdb:1,f:1,vHa:1});function j_a(){this.Ug=null}j_a.prototype=new fPa;j_a.prototype.constructor=j_a;function vv(a){var b=new j_a;b.Ug=a;return b}function ax(a,b,c,e){return(0,a.Ug)(b,c,e)}j_a.prototype.$classData=q({bdb:0},!1,"scala.scalajs.runtime.AnonFunction3",{bdb:1,Dgb:1,f:1,Bdb:1});function mZ(){this.Ug=null}mZ.prototype=new hPa;mZ.prototype.constructor=mZ;
mZ.prototype.nu=function(a,b,c,e){return(0,this.Ug)(a,b,c,e)};function yU(a){var b=new mZ;b.Ug=a;return b}mZ.prototype.$classData=q({cdb:0},!1,"scala.scalajs.runtime.AnonFunction4",{cdb:1,lGa:1,f:1,hha:1});function k_a(){this.Ug=null}k_a.prototype=new jPa;k_a.prototype.constructor=k_a;function wU(a){var b=new k_a;b.Ug=a;return b}function $B(a,b,c,e,f,g){return(0,a.Ug)(b,c,e,f,g)}k_a.prototype.$classData=q({ddb:0},!1,"scala.scalajs.runtime.AnonFunction5",{ddb:1,Egb:1,f:1,Cdb:1});
function nZ(){this.be=0;this.xn=null}nZ.prototype=new r;nZ.prototype.constructor=nZ;nZ.prototype.a=function(){l_a=this;this.xn=(new aq).La(0,0);return this};function OG(){return Fa().xn}function m_a(a,b,c){return 0===(-2097152&c)?""+(4294967296*c+ +(b>>>0)):n_a(a,b,c,1E9,0,2)}
function jD(a,b,c,e,f){if(0===(e|f))throw(new BX).e("/ by zero");if(c===b>>31){if(f===e>>31){if(-2147483648===b&&-1===e)return a.be=0,-2147483648;var g=b/e|0;a.be=g>>31;return g}return-2147483648===b&&-2147483648===e&&0===f?a.be=-1:a.be=0}if(g=0>c){var h=-b|0;c=0!==b?~c:-c|0}else h=b;if(b=0>f){var k=-e|0;e=0!==e?~f:-f|0}else k=e,e=f;h=o_a(a,h,c,k,e);if(g===b)return h;g=a.be;a.be=0!==h?~g:-g|0;return-h|0}
function sC(a,b,c){return 0>c?-(4294967296*+((0!==b?~c:-c|0)>>>0)+ +((-b|0)>>>0)):4294967296*c+ +(b>>>0)}function hE(a,b){if(-9223372036854775808>b)return a.be=-2147483648,0;if(0x7fffffffffffffff<=b)return a.be=2147483647,-1;var c=b|0,e=b/4294967296|0;a.be=0>b&&0!==c?-1+e|0:e;return c}
function o_a(a,b,c,e,f){return 0===(-2097152&c)?0===(-2097152&f)?(c=(4294967296*c+ +(b>>>0))/(4294967296*f+ +(e>>>0)),a.be=c/4294967296|0,c|0):a.be=0:0===f&&0===(e&(-1+e|0))?(e=31-fa(e)|0,a.be=c>>>e|0,b>>>e|0|c<<1<<(31-e|0)):0===e&&0===(f&(-1+f|0))?(b=31-fa(f)|0,a.be=0,c>>>b|0):n_a(a,b,c,e,f,0)|0}function xta(a,b,c,e,f){if(0===(e|f))throw(new BX).e("/ by zero");return 0===c?0===f?(a.be=0,+(b>>>0)/+(e>>>0)|0):a.be=0:o_a(a,b,c,e,f)}
function QBa(a,b,c){return c===b>>31?""+b:0>c?"-"+m_a(a,-b|0,0!==b?~c:-c|0):m_a(a,b,c)}function p_a(a,b,c,e,f){return c===f?b===e?0:(-2147483648^b)<(-2147483648^e)?-1:1:c<f?-1:1}
function n_a(a,b,c,e,f,g){var h=(0!==f?fa(f):32+fa(e)|0)-(0!==c?fa(c):32+fa(b)|0)|0,k=h,l=0===(32&k)?e<<k:0,p=0===(32&k)?(e>>>1|0)>>>(31-k|0)|0|f<<k:e<<k,k=b,y=c;for(b=c=0;0<=h&&0!==(-2097152&y);){var I=k,E=y,V=l,da=p;if(E===da?(-2147483648^I)>=(-2147483648^V):(-2147483648^E)>=(-2147483648^da))I=y,E=p,y=k-l|0,I=(-2147483648^y)>(-2147483648^k)?-1+(I-E|0)|0:I-E|0,k=y,y=I,32>h?c|=1<<h:b|=1<<h;h=-1+h|0;I=p>>>1|0;l=l>>>1|0|p<<31;p=I}h=y;if(h===f?(-2147483648^k)>=(-2147483648^e):(-2147483648^h)>=(-2147483648^
f))h=4294967296*y+ +(k>>>0),e=4294967296*f+ +(e>>>0),1!==g&&(p=h/e,f=p/4294967296|0,l=c,c=p=l+(p|0)|0,b=(-2147483648^p)<(-2147483648^l)?1+(b+f|0)|0:b+f|0),0!==g&&(e=h%e,k=e|0,y=e/4294967296|0);if(0===g)return a.be=b,c;if(1===g)return a.be=y,k;a=""+k;return""+(4294967296*b+ +(c>>>0))+"000000000".substring(a.length|0)+a}
function BD(a,b,c,e,f){if(0===(e|f))throw(new BX).e("/ by zero");if(c===b>>31){if(f===e>>31){if(-1!==e){var g=b%e|0;a.be=g>>31;return g}return a.be=0}if(-2147483648===b&&-2147483648===e&&0===f)return a.be=0;a.be=c;return b}if(g=0>c){var h=-b|0;c=0!==b?~c:-c|0}else h=b;0>f?(b=-e|0,e=0!==e?~f:-f|0):(b=e,e=f);f=c;0===(-2097152&f)?0===(-2097152&e)?(h=(4294967296*f+ +(h>>>0))%(4294967296*e+ +(b>>>0)),a.be=h/4294967296|0,h|=0):a.be=f:0===e&&0===(b&(-1+b|0))?(a.be=0,h&=-1+b|0):0===b&&0===(e&(-1+e|0))?a.be=
f&(-1+e|0):h=n_a(a,h,f,b,e,1)|0;return g?(g=a.be,a.be=0!==h?~g:-g|0,-h|0):h}nZ.prototype.$classData=q({fdb:0},!1,"scala.scalajs.runtime.RuntimeLong$",{fdb:1,f:1,q:1,n:1});var l_a=void 0;function Fa(){l_a||(l_a=(new nZ).a());return l_a}function q_a(){}q_a.prototype=new r;q_a.prototype.constructor=q_a;function oZ(){}d=oZ.prototype=q_a.prototype;d.R=function(a){return this.Za(a,sG().OT)};d.QA=function(a){return GH(this,a)};d.Tn=function(a){return this.Za(a,sG().OT)|0};d.u=function(){return"\x3cfunction1\x3e"};
d.rp=function(a){return!!this.Za(a,sG().OT)};var WZa=q({sdb:0},!1,"scala.runtime.Nothing$",{sdb:1,Fe:1,f:1,n:1});function pZ(){this.l=null}pZ.prototype=new r;pZ.prototype.constructor=pZ;pZ.prototype.Kd=function(a){return a.Sh()};pZ.prototype.vd=function(a){return dt(this.l.na,a)};pZ.prototype.$classData=q({XHa:0},!1,"amf.client.convert.AnyShapeConverter$AnyShapeMatcher$",{XHa:1,f:1,re:1,Pd:1,Gd:1});function qZ(){this.l=null}qZ.prototype=new r;qZ.prototype.constructor=qZ;qZ.prototype.Kd=function(a){return a.p};
function $fa(a,b){return dt(a.l.na,b)}qZ.prototype.vd=function(a){return $fa(this,a)};qZ.prototype.$classData=q({YHa:0},!1,"amf.client.convert.BaseUnitConverter$BaseUnitMatcher$",{YHa:1,f:1,re:1,Pd:1,Gd:1});function rZ(){}rZ.prototype=new r;rZ.prototype.constructor=rZ;rZ.prototype.Kd=function(a){return a.p};rZ.prototype.vd=function(a){return(new sZ).xAa(a)};rZ.prototype.$classData=q({ZHa:0},!1,"amf.client.convert.CachedReferenceConverter$CachedReferenceMatcher$",{ZHa:1,f:1,re:1,Pd:1,Gd:1});
function tZ(){this.l=null}tZ.prototype=new r;tZ.prototype.constructor=tZ;tZ.prototype.Kd=function(a){return a.p};function r_a(a,b){return dt(a.l.na,b)}tZ.prototype.vd=function(a){return r_a(this,a)};tZ.prototype.$classData=q({$Ha:0},!1,"amf.client.convert.CallbackConverter$CallbackMatcher$",{$Ha:1,f:1,re:1,Pd:1,Gd:1});function uZ(){this.l=null}uZ.prototype=new r;uZ.prototype.constructor=uZ;uZ.prototype.Kd=function(a){return a.p};uZ.prototype.vd=function(a){return dt(this.l.na,a)};
uZ.prototype.$classData=q({aIa:0},!1,"amf.client.convert.ClassTermMappingConverter$ClassTermMappingConverter$",{aIa:1,f:1,re:1,Pd:1,Gd:1});function vZ(){this.l=null}vZ.prototype=new r;vZ.prototype.constructor=vZ;vZ.prototype.vp=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};vZ.prototype.Kd=function(a){return a};vZ.prototype.vd=function(a){return a};vZ.prototype.$classData=q({lIa:0},!1,"amf.client.convert.CoreBaseConverter$AnyMatcher$",{lIa:1,f:1,RF:1,Gd:1,Pd:1});
function wZ(){this.l=null}wZ.prototype=new r;wZ.prototype.constructor=wZ;wZ.prototype.vp=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};wZ.prototype.Kd=function(a){return a};wZ.prototype.vd=function(a){return a};wZ.prototype.$classData=q({mIa:0},!1,"amf.client.convert.CoreBaseConverter$BooleanMatcher$",{mIa:1,f:1,RF:1,Gd:1,Pd:1});function xZ(){this.l=null}xZ.prototype=new r;xZ.prototype.constructor=xZ;xZ.prototype.vp=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};
xZ.prototype.Kd=function(a){return a};xZ.prototype.vd=function(a){return a};xZ.prototype.$classData=q({nIa:0},!1,"amf.client.convert.CoreBaseConverter$ContentMatcher$",{nIa:1,f:1,RF:1,Gd:1,Pd:1});function yZ(){this.l=null}yZ.prototype=new r;yZ.prototype.constructor=yZ;yZ.prototype.vp=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};yZ.prototype.Kd=function(a){return a};yZ.prototype.vd=function(a){return a};
yZ.prototype.$classData=q({oIa:0},!1,"amf.client.convert.CoreBaseConverter$DoubleMatcher$",{oIa:1,f:1,RF:1,Gd:1,Pd:1});function zZ(){this.l=null}zZ.prototype=new r;zZ.prototype.constructor=zZ;zZ.prototype.vp=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};zZ.prototype.Kd=function(a){return a};zZ.prototype.vd=function(a){return a};zZ.prototype.$classData=q({pIa:0},!1,"amf.client.convert.CoreBaseConverter$IntMatcher$",{pIa:1,f:1,RF:1,Gd:1,Pd:1});function hp(){this.l=null}
hp.prototype=new r;hp.prototype.constructor=hp;hp.prototype.vp=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};hp.prototype.Kd=function(a){return a};hp.prototype.vd=function(a){return a};hp.prototype.$classData=q({qIa:0},!1,"amf.client.convert.CoreBaseConverter$ProfileNameMatcher$",{qIa:1,f:1,RF:1,Gd:1,Pd:1});function AZ(){this.l=null}AZ.prototype=new r;AZ.prototype.constructor=AZ;AZ.prototype.vp=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};AZ.prototype.Kd=function(a){return a};
AZ.prototype.vd=function(a){return a};AZ.prototype.$classData=q({rIa:0},!1,"amf.client.convert.CoreBaseConverter$StringMatcher$",{rIa:1,f:1,RF:1,Gd:1,Pd:1});function BZ(){this.l=null}BZ.prototype=new r;BZ.prototype.constructor=BZ;BZ.prototype.vp=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};BZ.prototype.Kd=function(a){return a};BZ.prototype.vd=function(a){return a};BZ.prototype.$classData=q({sIa:0},!1,"amf.client.convert.CoreBaseConverter$UnitMatcher$",{sIa:1,f:1,RF:1,Gd:1,Pd:1});
function IS(){this.l=null}IS.prototype=new r;IS.prototype.constructor=IS;IS.prototype.vp=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};IS.prototype.Kd=function(a){return a};IS.prototype.vd=function(a){return a};IS.prototype.$classData=q({tIa:0},!1,"amf.client.convert.CoreBaseConverter$VendorMatcher$",{tIa:1,f:1,RF:1,Gd:1,Pd:1});function CZ(){this.l=null}CZ.prototype=new r;CZ.prototype.constructor=CZ;CZ.prototype.Kd=function(a){return a.p};
CZ.prototype.vd=function(a){return s_a(this,a)};function s_a(a,b){return dt(a.l.na,b)}CZ.prototype.$classData=q({wIa:0},!1,"amf.client.convert.CreativeWorkConverter$CreativeWorkMatcher$",{wIa:1,f:1,re:1,Pd:1,Gd:1});function DZ(){}DZ.prototype=new r;DZ.prototype.constructor=DZ;DZ.prototype.Kd=function(a){return a.p};DZ.prototype.vd=function(a){return(new am).SO(a)};
DZ.prototype.$classData=q({xIa:0},!1,"amf.client.convert.CustomDomainPropertyConverter$CustomDomainPropertyMatcher$",{xIa:1,f:1,re:1,Pd:1,Gd:1});function EZ(){}EZ.prototype=new r;EZ.prototype.constructor=EZ;EZ.prototype.Kd=function(a){return a.p};EZ.prototype.vd=function(a){return(new km).sU(a)};EZ.prototype.Jv=function(){return this};EZ.prototype.$classData=q({yIa:0},!1,"amf.client.convert.DataNodeConverter$ArrayNodeMatcher$",{yIa:1,f:1,re:1,Pd:1,Gd:1});function FZ(){this.l=null}FZ.prototype=new r;
FZ.prototype.constructor=FZ;function nm(a,b){return fm(b)?(a.l.kZ(),(new gm).xE(b)):wj(b)?(a.l.CZ(),(new hm).RO(b)):jm(b)?(a.l.LX(),(new km).sU(b)):null}FZ.prototype.Kd=function(a){return a.p};FZ.prototype.vd=function(a){return nm(this,a)};FZ.prototype.Jv=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};FZ.prototype.$classData=q({zIa:0},!1,"amf.client.convert.DataNodeConverter$DataNodeMatcher$",{zIa:1,f:1,re:1,Pd:1,Gd:1});function GZ(){}GZ.prototype=new r;
GZ.prototype.constructor=GZ;GZ.prototype.Kd=function(a){return a.p};GZ.prototype.vd=function(a){return(new gm).xE(a)};GZ.prototype.Jv=function(){return this};GZ.prototype.$classData=q({AIa:0},!1,"amf.client.convert.DataNodeConverter$ObjectNodeMatcher$",{AIa:1,f:1,re:1,Pd:1,Gd:1});function HZ(){}HZ.prototype=new r;HZ.prototype.constructor=HZ;HZ.prototype.Kd=function(a){return a.p};HZ.prototype.vd=function(a){return(new hm).RO(a)};HZ.prototype.Jv=function(){return this};
HZ.prototype.$classData=q({BIa:0},!1,"amf.client.convert.DataNodeConverter$ScalarNodeMatcher$",{BIa:1,f:1,re:1,Pd:1,Gd:1});function IZ(){this.l=null}IZ.prototype=new r;IZ.prototype.constructor=IZ;IZ.prototype.Kd=function(a){return a.p};IZ.prototype.vd=function(a){return dt(this.l.na,a)};IZ.prototype.$classData=q({CIa:0},!1,"amf.client.convert.DatatypePropertyMappingConverter$DatatypePropertyMappingConverter$",{CIa:1,f:1,re:1,Pd:1,Gd:1});function JZ(){this.l=null}JZ.prototype=new r;
JZ.prototype.constructor=JZ;JZ.prototype.Raa=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};JZ.prototype.Kd=function(a){return a.p};JZ.prototype.vd=function(a){return dt(this.l.na,a)};JZ.prototype.$classData=q({DIa:0},!1,"amf.client.convert.DeclarationsConverter$AbstractDeclarationMatcher$",{DIa:1,f:1,re:1,Pd:1,Gd:1});function VS(){this.l=null}VS.prototype=new r;VS.prototype.constructor=VS;VS.prototype.Raa=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};
VS.prototype.Kd=function(a){return a.p};VS.prototype.vd=function(a){return dt(this.l.na,a)};VS.prototype.$classData=q({EIa:0},!1,"amf.client.convert.DeclarationsConverter$ParameterizedDeclarationMatcher$",{EIa:1,f:1,re:1,Pd:1,Gd:1});function KZ(){}KZ.prototype=new r;KZ.prototype.constructor=KZ;KZ.prototype.Kd=function(a){return a.p};KZ.prototype.vd=function(a){return(new UA).HK(a)};KZ.prototype.$classData=q({FIa:0},!1,"amf.client.convert.DialectConverter$DialectConverter$",{FIa:1,f:1,re:1,Pd:1,Gd:1});
function LZ(){this.l=null}LZ.prototype=new r;LZ.prototype.constructor=LZ;LZ.prototype.Kd=function(a){return a.p};LZ.prototype.vd=function(a){return dt(this.l.na,a)};LZ.prototype.$classData=q({GIa:0},!1,"amf.client.convert.DialectDomainElementConverter$DialectDomainElementConvertej$",{GIa:1,f:1,re:1,Pd:1,Gd:1});function MZ(){this.l=null}MZ.prototype=new r;MZ.prototype.constructor=MZ;MZ.prototype.Kd=function(a){return a.p};MZ.prototype.vd=function(a){return dt(this.l.na,a)};
MZ.prototype.$classData=q({HIa:0},!1,"amf.client.convert.DocumentMappingConverter$DocumentMappingConverter$",{HIa:1,f:1,re:1,Pd:1,Gd:1});function NZ(){this.l=null}NZ.prototype=new r;NZ.prototype.constructor=NZ;function t_a(a,b){return dt(a.l.na,b)}NZ.prototype.Kd=function(a){return a.p};NZ.prototype.vd=function(a){return t_a(this,a)};NZ.prototype.$classData=q({IIa:0},!1,"amf.client.convert.DocumentsModelConverter$DocumentModelConverter$",{IIa:1,f:1,re:1,Pd:1,Gd:1});function OZ(){this.l=null}
OZ.prototype=new r;OZ.prototype.constructor=OZ;OZ.prototype.Kd=function(a){return a.Jd()};function u_a(a){var b=new OZ;if(null===a)throw Lb(Mb(),null);b.l=a;return b}OZ.prototype.vd=function(a){return Yea(this,a)};function Yea(a,b){return dt(a.l.na,b)}OZ.prototype.$classData=q({JIa:0},!1,"amf.client.convert.DomainElementConverter$DomainElementMatcher$",{JIa:1,f:1,re:1,Pd:1,Gd:1});function PZ(){}PZ.prototype=new r;PZ.prototype.constructor=PZ;PZ.prototype.Kd=function(a){return a.p};
PZ.prototype.vd=function(a){return(new cm).WG(a)};PZ.prototype.$classData=q({KIa:0},!1,"amf.client.convert.DomainExtensionConverter$DomainExtensionMatcher$",{KIa:1,f:1,re:1,Pd:1,Gd:1});function QZ(){this.l=null}QZ.prototype=new r;QZ.prototype.constructor=QZ;QZ.prototype.Kd=function(a){return a.p};QZ.prototype.vd=function(a){return dt(this.l.na,a)};QZ.prototype.$classData=q({LIa:0},!1,"amf.client.convert.EncodingConverter$EncodingMatcher$",{LIa:1,f:1,re:1,Pd:1,Gd:1});function RZ(){this.l=null}
RZ.prototype=new r;RZ.prototype.constructor=RZ;RZ.prototype.Kd=function(a){return a.p};RZ.prototype.vd=function(a){return v_a(this,a)};function v_a(a,b){return dt(a.l.na,b)}RZ.prototype.$classData=q({MIa:0},!1,"amf.client.convert.EndPointConverter$EndPointMatcher$",{MIa:1,f:1,re:1,Pd:1,Gd:1});function SZ(){this.l=null}SZ.prototype=new r;SZ.prototype.constructor=SZ;SZ.prototype.Kd=function(a){return a.p};SZ.prototype.vd=function(a){return w_a(this,a)};function w_a(a,b){return dt(a.l.na,b)}
SZ.prototype.$classData=q({NIa:0},!1,"amf.client.convert.ExampleConverter$ExampleMatcher$",{NIa:1,f:1,re:1,Pd:1,Gd:1});function TZ(){this.l=null}TZ.prototype=new r;TZ.prototype.constructor=TZ;TZ.prototype.Kd=function(a){return a.p};TZ.prototype.vd=function(a){return x_a(this,a)};function x_a(a,b){return dt(a.l.na,b)}TZ.prototype.$classData=q({OIa:0},!1,"amf.client.convert.ExternalConverter$ExternalConverter$",{OIa:1,f:1,re:1,Pd:1,Gd:1});function UZ(){}UZ.prototype=new r;UZ.prototype.constructor=UZ;
UZ.prototype.Br=function(){return this};UZ.prototype.Kd=function(a){return a.p};UZ.prototype.vd=function(a){return(new Go).Yp(a)};UZ.prototype.$classData=q({PIa:0},!1,"amf.client.convert.FieldConverter$AnnotationsFieldMatcher$",{PIa:1,f:1,re:1,Pd:1,Gd:1});function VZ(){this.l=null}VZ.prototype=new r;VZ.prototype.constructor=VZ;VZ.prototype.Kd=function(a){return a.p};VZ.prototype.vd=function(a){return dt(this.l.na,a)};
VZ.prototype.$classData=q({VIa:0},!1,"amf.client.convert.FileShapeConverter$FileShapeMatcher$",{VIa:1,f:1,re:1,Pd:1,Gd:1});function TS(){}TS.prototype=new r;TS.prototype.constructor=TS;TS.prototype.Kd=function(a){return a.p};TS.prototype.vd=function(a){return oPa(a)};TS.prototype.$classData=q({YIa:0},!1,"amf.client.convert.GraphDomainConverter$GraphDomainConverter$",{YIa:1,f:1,re:1,Pd:1,Gd:1});function WZ(){this.l=null}WZ.prototype=new r;WZ.prototype.constructor=WZ;WZ.prototype.Kd=function(a){return a.p};
WZ.prototype.vd=function(a){return dt(this.l.na,a)};WZ.prototype.$classData=q({ZIa:0},!1,"amf.client.convert.IriTemplateMappingConverter$IriTemplateMappingConverter$",{ZIa:1,f:1,re:1,Pd:1,Gd:1});function XZ(){this.l=null}XZ.prototype=new r;XZ.prototype.constructor=XZ;XZ.prototype.Kd=function(a){return a.p};XZ.prototype.vd=function(a){return dt(this.l.na,a)};XZ.prototype.$classData=q({$Ia:0},!1,"amf.client.convert.LicenseConverter$LicenseMatcher$",{$Ia:1,f:1,re:1,Pd:1,Gd:1});
function YZ(){this.l=null}YZ.prototype=new r;YZ.prototype.constructor=YZ;YZ.prototype.Kd=function(a){return a.p};YZ.prototype.vd=function(a){return dt(this.l.na,a)};YZ.prototype.$classData=q({aJa:0},!1,"amf.client.convert.NilShapeConverter$NilShapeMatcher$",{aJa:1,f:1,re:1,Pd:1,Gd:1});function ZZ(){this.l=null}ZZ.prototype=new r;ZZ.prototype.constructor=ZZ;ZZ.prototype.Kd=function(a){return a.p};ZZ.prototype.vd=function(a){return dt(this.l.na,a)};
ZZ.prototype.$classData=q({bJa:0},!1,"amf.client.convert.NodeMappingConverter$NodeMappingConverter$",{bJa:1,f:1,re:1,Pd:1,Gd:1});function $Z(){this.l=null}$Z.prototype=new r;$Z.prototype.constructor=$Z;function y_a(a,b){return dt(a.l.na,b)}$Z.prototype.Kd=function(a){return a.p};$Z.prototype.vd=function(a){return y_a(this,a)};$Z.prototype.$classData=q({cJa:0},!1,"amf.client.convert.NodeShapeConverter$NodeShapeMatcher$",{cJa:1,f:1,re:1,Pd:1,Gd:1});function a_(){this.l=null}a_.prototype=new r;
a_.prototype.constructor=a_;a_.prototype.Kd=function(a){return a.p};a_.prototype.vd=function(a){return dt(this.l.na,a)};a_.prototype.$classData=q({dJa:0},!1,"amf.client.convert.ObjectPropertyMappingConverter$ObjectPropertyMappingConverter$",{dJa:1,f:1,re:1,Pd:1,Gd:1});function b_(){this.l=null}b_.prototype=new r;b_.prototype.constructor=b_;b_.prototype.Kd=function(a){return a.p};b_.prototype.vd=function(a){return dt(this.l.na,a)};
b_.prototype.$classData=q({eJa:0},!1,"amf.client.convert.OperationConverter$OperationMatcher$",{eJa:1,f:1,re:1,Pd:1,Gd:1});function c_(){this.l=null}c_.prototype=new r;c_.prototype.constructor=c_;c_.prototype.Kd=function(a){return a.p};c_.prototype.vd=function(a){return dt(this.l.na,a)};c_.prototype.$classData=q({fJa:0},!1,"amf.client.convert.OrganizationConverter$OrganizationMatcher$",{fJa:1,f:1,re:1,Pd:1,Gd:1});function d_(){this.l=null}d_.prototype=new r;d_.prototype.constructor=d_;
d_.prototype.Kd=function(a){return a.p};d_.prototype.vd=function(a){return e_(this,a)};function e_(a,b){return dt(a.l.na,b)}d_.prototype.$classData=q({gJa:0},!1,"amf.client.convert.ParameterConverter$ParameterMatcher$",{gJa:1,f:1,re:1,Pd:1,Gd:1});function f_(){this.l=null}f_.prototype=new r;f_.prototype.constructor=f_;f_.prototype.Kd=function(a){return a.p};f_.prototype.vd=function(a){return dt(this.l.na,a)};
f_.prototype.$classData=q({hJa:0},!1,"amf.client.convert.ParametrizedSecuritySchemeConverter$ParametrizedSecuritySchemeMatcher$",{hJa:1,f:1,re:1,Pd:1,Gd:1});function g_(){this.l=null}g_.prototype=new r;g_.prototype.constructor=g_;g_.prototype.Kd=function(a){return a.p};g_.prototype.vd=function(a){return h_(this,a)};function h_(a,b){return dt(a.l.na,b)}g_.prototype.$classData=q({iJa:0},!1,"amf.client.convert.PayloadConverter$PayloadMatcher$",{iJa:1,f:1,re:1,Pd:1,Gd:1});function i_(){this.l=null}
i_.prototype=new r;i_.prototype.constructor=i_;i_.prototype.Kd=function(a){return a.p};i_.prototype.vd=function(a){return gga(this,a)};function gga(a,b){return dt(a.l.na,b)}function z_a(a){var b=new i_;if(null===a)throw Lb(Mb(),null);b.l=a;return b}i_.prototype.$classData=q({jJa:0},!1,"amf.client.convert.PayloadFragmentConverter$PayloadFragmentMatcher$",{jJa:1,f:1,re:1,Pd:1,Gd:1});function j_(){}j_.prototype=new r;j_.prototype.constructor=j_;j_.prototype.Kd=function(a){return a.p};
j_.prototype.vd=function(a){var b=new bp;b.p=a;return b};j_.prototype.$classData=q({kJa:0},!1,"amf.client.convert.PayloadValidatorConverter$PayloadValidatorMatcher$",{kJa:1,f:1,re:1,Pd:1,Gd:1});function k_(){this.l=null}k_.prototype=new r;k_.prototype.constructor=k_;k_.prototype.Kd=function(a){return a.p};k_.prototype.vd=function(a){return dt(this.l.na,a)};k_.prototype.$classData=q({lJa:0},!1,"amf.client.convert.PropertyDependenciesConverter$PropertyDependenciesMatcher$",{lJa:1,f:1,re:1,Pd:1,Gd:1});
function l_(){this.l=null}l_.prototype=new r;l_.prototype.constructor=l_;l_.prototype.Kd=function(a){return a.p};l_.prototype.vd=function(a){return dt(this.l.na,a)};l_.prototype.$classData=q({mJa:0},!1,"amf.client.convert.PropertyMappingConverter$PropertyMappingConverter$",{mJa:1,f:1,re:1,Pd:1,Gd:1});function m_(){this.l=null}m_.prototype=new r;m_.prototype.constructor=m_;function A_a(a,b){return dt(a.l.na,b)}m_.prototype.Kd=function(a){return a.p};m_.prototype.vd=function(a){return A_a(this,a)};
function B_a(a){var b=new m_;if(null===a)throw Lb(Mb(),null);b.l=a;return b}m_.prototype.$classData=q({nJa:0},!1,"amf.client.convert.PropertyShapeConverter$PropertyShapeMatcher$",{nJa:1,f:1,re:1,Pd:1,Gd:1});function n_(){this.l=null}n_.prototype=new r;n_.prototype.constructor=n_;n_.prototype.Kd=function(a){return a.p};n_.prototype.vd=function(a){return dt(this.l.na,a)};
n_.prototype.$classData=q({oJa:0},!1,"amf.client.convert.PublicNodeMappingConverter$PublicNodeMappingConverter$",{oJa:1,f:1,re:1,Pd:1,Gd:1});function o_(){}o_.prototype=new r;o_.prototype.constructor=o_;o_.prototype.Kd=function(a){return C_a(a)};o_.prototype.vd=function(a){if(a&&a.$classData&&a.$classData.v.v7)a=a.yv;else throw(new v).d(a);return a};o_.prototype.$classData=q({pJa:0},!1,"amf.client.convert.ReferenceResolverConverter$ReferenceResolverMatcher$",{pJa:1,f:1,re:1,Pd:1,Gd:1});
function p_(){this.l=null}p_.prototype=new r;p_.prototype.constructor=p_;p_.prototype.Kd=function(a){return a.p};p_.prototype.vd=function(a){return D_a(this,a)};function D_a(a,b){return dt(a.l.na,b)}p_.prototype.$classData=q({qJa:0},!1,"amf.client.convert.RequestConverter$RequestMatcher$",{qJa:1,f:1,re:1,Pd:1,Gd:1});function q_(){}q_.prototype=new r;q_.prototype.constructor=q_;q_.prototype.Kd=function(a){return r_(new s_,a)};
q_.prototype.vd=function(a){if(a&&a.$classData&&a.$classData.v.w7)a=a.yv;else throw(new v).d(a);return a};q_.prototype.$classData=q({rJa:0},!1,"amf.client.convert.ResourceLoaderConverter$ResourceLoaderMatcher$",{rJa:1,f:1,re:1,Pd:1,Gd:1});function t_(){}t_.prototype=new r;t_.prototype.constructor=t_;t_.prototype.Kd=function(a){return a.p};t_.prototype.vd=function(a){return(new Pn).c1(a)};
t_.prototype.$classData=q({sJa:0},!1,"amf.client.convert.ResourceTypeConverter$ResourceTypeMatcher$",{sJa:1,f:1,re:1,Pd:1,Gd:1});function u_(){this.l=null}u_.prototype=new r;u_.prototype.constructor=u_;u_.prototype.Kd=function(a){return a.p};u_.prototype.vd=function(a){return E_a(this,a)};function E_a(a,b){return dt(a.l.na,b)}u_.prototype.$classData=q({tJa:0},!1,"amf.client.convert.ResponseConverter$ResponseMatcher$",{tJa:1,f:1,re:1,Pd:1,Gd:1});function v_(){this.l=null}v_.prototype=new r;
v_.prototype.constructor=v_;v_.prototype.Kd=function(a){return a.p};v_.prototype.vd=function(a){return F_a(this,a)};function F_a(a,b){return dt(a.l.na,b)}v_.prototype.$classData=q({uJa:0},!1,"amf.client.convert.ScalarShapeConverter$ScalarShapeMatcher$",{uJa:1,f:1,re:1,Pd:1,Gd:1});function w_(){this.l=null}w_.prototype=new r;w_.prototype.constructor=w_;w_.prototype.Kd=function(a){return a.p};w_.prototype.vd=function(a){return dt(this.l.na,a)};
w_.prototype.$classData=q({vJa:0},!1,"amf.client.convert.SchemaShapeConverter$SchemaShapeMatcher$",{vJa:1,f:1,re:1,Pd:1,Gd:1});function x_(){this.l=null}x_.prototype=new r;x_.prototype.constructor=x_;x_.prototype.Kd=function(a){return a.p};x_.prototype.vd=function(a){return dt(this.l.na,a)};x_.prototype.$classData=q({wJa:0},!1,"amf.client.convert.ScopeConverter$ScopeMatcher$",{wJa:1,f:1,re:1,Pd:1,Gd:1});function y_(){this.l=null}y_.prototype=new r;y_.prototype.constructor=y_;
function G_a(a,b){return dt(a.l.na,b)}y_.prototype.Kd=function(a){return a.p};y_.prototype.vd=function(a){return G_a(this,a)};y_.prototype.$classData=q({xJa:0},!1,"amf.client.convert.SecuritySchemeConverter$SecuritySchemeMatcher$",{xJa:1,f:1,re:1,Pd:1,Gd:1});function z_(){this.l=null}z_.prototype=new r;z_.prototype.constructor=z_;z_.prototype.Kd=function(a){return a.p};z_.prototype.vd=function(a){return A_(this,a)};function A_(a,b){return dt(a.l.na,b)}
z_.prototype.$classData=q({yJa:0},!1,"amf.client.convert.ServerConverter$ServerMatcher$",{yJa:1,f:1,re:1,Pd:1,Gd:1});function B_(){}B_.prototype=new r;B_.prototype.constructor=B_;B_.prototype.Kd=function(a){return a.p};B_.prototype.vd=function(a){return(new C_).HU(a)};B_.prototype.pA=function(){return this};B_.prototype.$classData=q({zJa:0},!1,"amf.client.convert.SettingsConverter$ApiKeySettingsMatcher$",{zJa:1,f:1,re:1,Pd:1,Gd:1});function D_(){}D_.prototype=new r;D_.prototype.constructor=D_;
D_.prototype.Kd=function(a){return a.p};D_.prototype.vd=function(a){return(new E_).IU(a)};D_.prototype.pA=function(){return this};D_.prototype.$classData=q({AJa:0},!1,"amf.client.convert.SettingsConverter$HttpSettingsMatcher$",{AJa:1,f:1,re:1,Pd:1,Gd:1});function F_(){}F_.prototype=new r;F_.prototype.constructor=F_;F_.prototype.Kd=function(a){return a.p};F_.prototype.vd=function(a){return(new G_).JU(a)};F_.prototype.pA=function(){return this};
F_.prototype.$classData=q({BJa:0},!1,"amf.client.convert.SettingsConverter$OAuth1SettingsMatcher$",{BJa:1,f:1,re:1,Pd:1,Gd:1});function H_(){}H_.prototype=new r;H_.prototype.constructor=H_;H_.prototype.Kd=function(a){return a.p};H_.prototype.vd=function(a){return(new I_).KU(a)};H_.prototype.pA=function(){return this};H_.prototype.$classData=q({CJa:0},!1,"amf.client.convert.SettingsConverter$OAuth2SettingsMatcher$",{CJa:1,f:1,re:1,Pd:1,Gd:1});function J_(){}J_.prototype=new r;
J_.prototype.constructor=J_;J_.prototype.Kd=function(a){return a.p};J_.prototype.vd=function(a){return(new K_).MU(a)};J_.prototype.pA=function(){return this};J_.prototype.$classData=q({DJa:0},!1,"amf.client.convert.SettingsConverter$OpenIdConnectSettingsMatcher$",{DJa:1,f:1,re:1,Pd:1,Gd:1});function L_(){this.l=null}L_.prototype=new r;L_.prototype.constructor=L_;L_.prototype.Kd=function(a){return a.p};L_.prototype.vd=function(a){return H_a(this,a)};
L_.prototype.pA=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};function H_a(a,b){return I_a(b)?(J_a(a.l),(new G_).JU(b)):OP(b)?(K_a(a.l),(new I_).KU(b)):PP(b)?(L_a(a.l),(new C_).HU(b)):M_a(b)?(N_a(a.l),(new E_).IU(b)):O_a(b)?(P_a(a.l),(new K_).MU(b)):null!==b?(new In).aH(b):null}L_.prototype.$classData=q({EJa:0},!1,"amf.client.convert.SettingsConverter$SettingsMatcher$",{EJa:1,f:1,re:1,Pd:1,Gd:1});function M_(){this.l=null}M_.prototype=new r;M_.prototype.constructor=M_;
M_.prototype.Kd=function(a){return a.qg()};M_.prototype.vd=function(a){return AS(this,a)};function Q_a(a){var b=new M_;if(null===a)throw Lb(Mb(),null);b.l=a;return b}function AS(a,b){return dt(a.l.na,b)}M_.prototype.$classData=q({FJa:0},!1,"amf.client.convert.ShapeConverter$ShapeMatcher$",{FJa:1,f:1,re:1,Pd:1,Gd:1});function N_(){}N_.prototype=new r;N_.prototype.constructor=N_;N_.prototype.Kd=function(a){return a.p};N_.prototype.vd=function(a){return(new O_).$aa(a)};
N_.prototype.$classData=q({GJa:0},!1,"amf.client.convert.ShapeExtensionConverter$ShapeExtensionMatcher$",{GJa:1,f:1,re:1,Pd:1,Gd:1});function P_(){this.l=null}P_.prototype=new r;P_.prototype.constructor=P_;P_.prototype.Kd=function(a){return a.p};P_.prototype.vd=function(a){return dt(this.l.na,a)};P_.prototype.$classData=q({HJa:0},!1,"amf.client.convert.TemplatedLinkConverter$TemplatedLinkConverter$",{HJa:1,f:1,re:1,Pd:1,Gd:1});function Q_(){}Q_.prototype=new r;Q_.prototype.constructor=Q_;
Q_.prototype.Kd=function(a){return a.p};Q_.prototype.vd=function(a){return(new Nn).d1(a)};Q_.prototype.$classData=q({IJa:0},!1,"amf.client.convert.TraitConverter$TraitMatcher$",{IJa:1,f:1,re:1,Pd:1,Gd:1});function R_(){this.l=null}R_.prototype=new r;R_.prototype.constructor=R_;R_.prototype.Kd=function(a){return a.ti};R_.prototype.vd=function(a){return dt(this.l.na,a)};R_.prototype.$classData=q({JJa:0},!1,"amf.client.convert.TupleShapeConverter$TupleShapeMatcher$",{JJa:1,f:1,re:1,Pd:1,Gd:1});
function S_(){}S_.prototype=new r;S_.prototype.constructor=S_;S_.prototype.Kd=function(a){return a.p};S_.prototype.vd=function(a){return(new T_).wAa(a)};S_.prototype.$classData=q({KJa:0},!1,"amf.client.convert.ValidationCandidateConverter$ValidationCandidateMatcher$",{KJa:1,f:1,re:1,Pd:1,Gd:1});function U_(){}U_.prototype=new r;U_.prototype.constructor=U_;U_.prototype.T0=function(){return this};U_.prototype.Kd=function(a){return a.p};U_.prototype.vd=function(a){return(new cp).uAa(a)};
U_.prototype.$classData=q({LJa:0},!1,"amf.client.convert.ValidationConverter$ValidationReportMatcher$",{LJa:1,f:1,re:1,Pd:1,Gd:1});function V_(){}V_.prototype=new r;V_.prototype.constructor=V_;V_.prototype.T0=function(){return this};V_.prototype.Kd=function(a){return a.p};V_.prototype.vd=function(a){return(new fp).vAa(a)};V_.prototype.$classData=q({MJa:0},!1,"amf.client.convert.ValidationConverter$ValidationResultMatcher$",{MJa:1,f:1,re:1,Pd:1,Gd:1});function W_(){}W_.prototype=new r;
W_.prototype.constructor=W_;W_.prototype.Kd=function(a){return a.p};W_.prototype.vd=function(a){return $ea(a)};W_.prototype.$classData=q({NJa:0},!1,"amf.client.convert.VariableValueConverter$VariableValueMatcher$",{NJa:1,f:1,re:1,Pd:1,Gd:1});function X_(){this.l=null}X_.prototype=new r;X_.prototype.constructor=X_;X_.prototype.Kd=function(a){return a.p};X_.prototype.vd=function(a){return R_a(this,a)};function R_a(a,b){return dt(a.l.na,b)}
X_.prototype.$classData=q({PJa:0},!1,"amf.client.convert.VocabularyReferenceConverter$VocabularyReferenceConverter$",{PJa:1,f:1,re:1,Pd:1,Gd:1});function Y_(){this.l=null}Y_.prototype=new r;Y_.prototype.constructor=Y_;Y_.prototype.Kd=function(a){return a.p};Y_.prototype.vd=function(a){return dt(this.l.na,a)};Y_.prototype.$classData=q({SJa:0},!1,"amf.client.convert.XMLSerializerConverter$XMLSerializerMatcher$",{SJa:1,f:1,re:1,Pd:1,Gd:1});
function S_a(a){Ab();a=B(a.p.ca(),lm().$);Ab().wb();return Gb(a)}function T_a(a,b){var c=a.p,e=lm().$;Eb(c,e,b);return a}function U_a(){this.Qya=null}U_a.prototype=new r;U_a.prototype.constructor=U_a;d=U_a.prototype;d.ps=function(a,b){ADa(this,a,b)};function aga(a){var b=new U_a;b.Qya=a;return b}d.cC=function(a,b){return CDa(this,a,b)};d.Vs=function(a,b,c,e,f,g){this.Hc(a.k,b,c,e,f,xc().Eg,g)};
d.Hc=function(a,b,c,e,f,g,h){var k=this.Qya,l=Ab(),p=Ab().oh();c=Bb(l,c,p).sb();l=Ab();V_a||(V_a=(new Z_).a());f=Bb(l,f,V_a).sb();l=Ab();p=Ab().oh();k.$Da(a,b,c,e,f,g,Bb(l,h,p).sb())};d.$classData=q({PKa:0},!1,"amf.client.resolve.ClientErrorHandlerConverter$$anon$1",{PKa:1,f:1,zq:1,Lp:1,ip:1});function Z_(){}Z_.prototype=new r;Z_.prototype.constructor=Z_;Z_.prototype.a=function(){return this};Z_.prototype.Kd=function(a){return(new uf).Ui(a)};Z_.prototype.vd=function(a){return a.cc};
Z_.prototype.$classData=q({RKa:0},!1,"amf.client.resolve.ClientErrorHandlerConverter$RangeToLexicalConverter$",{RKa:1,f:1,re:1,Pd:1,Gd:1});var V_a=void 0;function $_(){vE.call(this);this.GCa=null}$_.prototype=new JPa;$_.prototype.constructor=$_;$_.prototype.e=function(a){this.GCa=a;var b=(new vE).e(a);vE.prototype.pe.call(this,a,b,0,!0);return this};Object.defineProperty($_.prototype,"msj",{get:function(){return this.GCa},configurable:!0});
$_.prototype.$classData=q({WKa:0},!1,"amf.client.resource.ResourceNotFound",{WKa:1,Xka:1,Fe:1,f:1,n:1});function zs(){}zs.prototype=new r;zs.prototype.constructor=zs;zs.prototype.a=function(){return this};
zs.prototype.ri=function(a){a=kd(ta(),a,",",0);var b;b=[];for(var c=0,e=a.j.length;c<e;){var f=a.j[c],f=kd(ta(),f,"-\x3e",0);a:{var g=se(ye(),f);if(!g.b()&&null!==g.c()&&0===g.c().Ge(2)){var f=g.c().jb(0),g=g.c().jb(1),h=kd(ta(),g,"::",0),g=se(ye(),h);if(!g.b()&&null!==g.c()&&0===g.c().Ge(2)){h=g.c().jb(0);g=g.c().jb(1);g=(new P).N(h,g);f=(new P).N(f,g);break a}throw(new v).d(h);}throw(new v).d(f);}b.push(null===f?null:f);c=1+c|0}a=ha(La(W_a),b);b=Pf();b=Qf(b).gs();c=a.j.length;switch(c){case -1:break;
default:b.Gh(c)}b.Cf((new FH).vc(a));return(new A).d((new kz).Qj(b.lc()))};zs.prototype.$classData=q({kLa:0},!1,"amf.core.annotations.Aliases$",{kLa:1,f:1,xi:1,q:1,n:1});var Xia=void 0;function a0(){}a0.prototype=new r;a0.prototype.constructor=a0;a0.prototype.a=function(){return this};a0.prototype.ri=function(){return(new A).d((new Zx).a())};a0.prototype.$classData=q({lLa:0},!1,"amf.core.annotations.AutoGeneratedName$",{lLa:1,f:1,xi:1,q:1,n:1});var X_a=void 0;function xs(){}xs.prototype=new r;
xs.prototype.constructor=xs;xs.prototype.a=function(){return this};xs.prototype.ri=function(a){a=iT(tf(),a);return(new A).d((new b0).Ui(a))};xs.prototype.$classData=q({nLa:0},!1,"amf.core.annotations.BasePathLexicalInformation$",{nLa:1,f:1,xi:1,q:1,n:1});var Uia=void 0;function Cs(){}Cs.prototype=new r;Cs.prototype.constructor=Cs;Cs.prototype.a=function(){return this};
Cs.prototype.ri=function(a){a=kd(ta(),a,"#",0);var b;b=[];for(var c=0,e=a.j.length;c<e;){var f=a.j[c],f=kd(ta(),f,"-\x3e",0);var g=se(ye(),f);if(g.b()||null===g.c()||0!==g.c().Ge(2))throw(new v).d(f);f=g.c().jb(0);g=g.c().jb(1);g=bna(Sia(),g);f=(new P).N(f,g);b.push(null===f?null:f);c=1+c|0}a=ha(La(W_a),b);b=Ry(new Sy,Xs());c=0;for(e=a.j.length;c<e;)Ty(b,a.j[c]),c=1+c|0;return(new A).d(Y_a(b.gb))};
Cs.prototype.$classData=q({oLa:0},!1,"amf.core.annotations.DataNodePropertiesAnnotations$",{oLa:1,f:1,xi:1,q:1,n:1});var $ia=void 0;function c0(){}c0.prototype=new r;c0.prototype.constructor=c0;c0.prototype.a=function(){return this};c0.prototype.ri=function(){return(new A).d((new zi).a())};c0.prototype.$classData=q({pLa:0},!1,"amf.core.annotations.DeclaredElement$",{pLa:1,f:1,xi:1,q:1,n:1});var Z_a=void 0;function Bs(){}Bs.prototype=new r;Bs.prototype.constructor=Bs;Bs.prototype.a=function(){return this};
Bs.prototype.ri=function(){return(new A).d((new d0).a())};Bs.prototype.$classData=q({qLa:0},!1,"amf.core.annotations.DefaultNode$",{qLa:1,f:1,xi:1,q:1,n:1});var Zia=void 0;function e0(){}e0.prototype=new r;e0.prototype.constructor=e0;e0.prototype.a=function(){return this};e0.prototype.ri=function(a){return(new A).d((new f0).e(a))};e0.prototype.$classData=q({sLa:0},!1,"amf.core.annotations.ExternalFragmentRef$",{sLa:1,f:1,xi:1,q:1,n:1});var $_a=void 0;function ws(){}ws.prototype=new r;
ws.prototype.constructor=ws;ws.prototype.a=function(){return this};ws.prototype.ri=function(a){a=iT(tf(),a);return(new A).d((new g0).Ui(a))};ws.prototype.$classData=q({uLa:0},!1,"amf.core.annotations.HostLexicalInformation$",{uLa:1,f:1,xi:1,q:1,n:1});var Tia=void 0;function CW(){}CW.prototype=new r;CW.prototype.constructor=CW;CW.prototype.a=function(){return this};CW.prototype.ri=function(a){return(new A).d((new Bj).e(a))};
CW.prototype.$classData=q({vLa:0},!1,"amf.core.annotations.InheritanceProvenance$",{vLa:1,f:1,xi:1,q:1,n:1});var $Ua=void 0;function DW(){}DW.prototype=new r;DW.prototype.constructor=DW;DW.prototype.a=function(){return this};DW.prototype.ri=function(a){return(new A).d((new h0).ss(vl(fc(),kd(ta(),a,",",0))))};DW.prototype.$classData=q({wLa:0},!1,"amf.core.annotations.InheritedShapes$",{wLa:1,f:1,xi:1,q:1,n:1});var aVa=void 0;function i0(){}i0.prototype=new r;i0.prototype.constructor=i0;
i0.prototype.a=function(){return this};i0.prototype.ri=function(){return(new A).d((new xM).a())};i0.prototype.$classData=q({xLa:0},!1,"amf.core.annotations.InlineElement$",{xLa:1,f:1,xi:1,q:1,n:1});var a0a=void 0;function j0(){}j0.prototype=new r;j0.prototype.constructor=j0;j0.prototype.a=function(){return this};j0.prototype.ri=function(a){return(new A).d(bna(Sia(),a))};function bna(a,b){return(new uf).Ui(iT(tf(),b))}
j0.prototype.$classData=q({yLa:0},!1,"amf.core.annotations.LexicalInformation$",{yLa:1,f:1,xi:1,q:1,n:1});var b0a=void 0;function Sia(){b0a||(b0a=(new j0).a());return b0a}function EW(){}EW.prototype=new r;EW.prototype.constructor=EW;EW.prototype.a=function(){return this};EW.prototype.ri=function(a){return(new A).d((new A0).e(a))};EW.prototype.$classData=q({zLa:0},!1,"amf.core.annotations.NilUnion$",{zLa:1,f:1,xi:1,q:1,n:1});var bVa=void 0;function Es(){}Es.prototype=new r;
Es.prototype.constructor=Es;Es.prototype.a=function(){return this};Es.prototype.ri=function(){return(new A).d((new B0).a())};Es.prototype.$classData=q({ALa:0},!1,"amf.core.annotations.NullSecurity$",{ALa:1,f:1,xi:1,q:1,n:1});var bja=void 0;function Ds(){}Ds.prototype=new r;Ds.prototype.constructor=Ds;Ds.prototype.a=function(){return this};Ds.prototype.ri=function(a){return(new A).d((new Wt).e(a))};
Ds.prototype.$classData=q({BLa:0},!1,"amf.core.annotations.ResolvedLinkAnnotation$",{BLa:1,f:1,xi:1,q:1,n:1});var aja=void 0;function ys(){}ys.prototype=new r;ys.prototype.constructor=ys;ys.prototype.a=function(){return this};ys.prototype.ri=function(){return(new A).d((new C0).a())};ys.prototype.$classData=q({CLa:0},!1,"amf.core.annotations.SingleValueArray$",{CLa:1,f:1,xi:1,q:1,n:1});var Wia=void 0;function D0(){}D0.prototype=new r;D0.prototype.constructor=D0;D0.prototype.a=function(){return this};
D0.prototype.ri=function(a){return Via().EP(a)};D0.prototype.EP=function(a){return mc().ba===a?(new A).d(E0(new F0,mc())):oc().ba===a?(new A).d(E0(new F0,oc())):nc().ba===a?(new A).d(E0(new F0,nc())):yt().ba===a?(new A).d(E0(new F0,yt())):vt().ba===a?(new A).d(E0(new F0,vt())):wt().ba===a?(new A).d(E0(new F0,vt())):xt().ba===a?(new A).d(E0(new F0,xt())):w()};D0.prototype.$classData=q({DLa:0},!1,"amf.core.annotations.SourceVendor$",{DLa:1,f:1,xi:1,q:1,n:1});var c0a=void 0;
function Via(){c0a||(c0a=(new D0).a());return c0a}function As(){}As.prototype=new r;As.prototype.constructor=As;As.prototype.a=function(){return this};As.prototype.ri=function(){return(new A).d((new GO).a())};As.prototype.$classData=q({ELa:0},!1,"amf.core.annotations.SynthesizedField$",{ELa:1,f:1,xi:1,q:1,n:1});var Yia=void 0;function G0(){}G0.prototype=new r;G0.prototype.constructor=G0;G0.prototype.a=function(){return this};
function Zqa(a,b){a=[b];if(0===(a.length|0))a=Yd();else{b=Zd(new ee,Yd());for(var c=0,e=a.length|0;c<e;)fe(b,a[c]),c=1+c|0;a=b.gb}return(new nB).Qj(a)}G0.prototype.ri=function(a){a=kd(ta(),a,",",0);var b=Pf(),b=Qf(b).gs(),c=a.j.length;switch(c){case -1:break;default:b.Gh(c)}b.Cf((new FH).vc(a));return(new A).d((new nB).Qj(b.lc()))};G0.prototype.$classData=q({FLa:0},!1,"amf.core.annotations.TrackedElement$",{FLa:1,f:1,xi:1,q:1,n:1});var d0a=void 0;
function $qa(){d0a||(d0a=(new G0).a());return d0a}function H0(a){var b=Lc(),c=C().Zd;a.Qp(Rb(new Sb,b,D(new F,c,"encodes"),Tb(new Ub,Vb().dg,"encodes","The encodes relationship links a parsing Unit with the DomainElement from a particular domain the unit contains.",G())))}function e0a(){throw Lb(Mb(),(new Nb).e("Fragment is abstract instances cannot be created directly"));}
function I0(a){var b=(new Ki).Ld(Lc()),c=C().Zd;a.gy(Rb(new Sb,b,D(new F,c,"declares"),Tb(new Ub,Vb().dg,"declares","The declares relationship exposes a DomainElement as a re-usable unit that can be referenced from other units.\nURIs for the declared DomainElement are considered to be stable and safe to reference from other DomainElements.",G())))}function f0a(){this.nc=this.Lj=this.Sd=this.Aa=this.ja=this.g=null}f0a.prototype=new r;f0a.prototype.constructor=f0a;d=f0a.prototype;
d.a=function(){g0a=this;Iq(this);XK(this);Di();var a=(new J).aa([this.Sd,this.Lj,this.nc]),b=Di().s;this.g=Ei(a,b);Di();a=C().Zd;a=(new J).aa([D(new F,a,"ExternalSource")]);b=Di().s;this.ja=Ei(a,b);this.Aa=Tb(new Ub,Vb().dg,"External Source Element","Inlined fragment of information",G());return this};d.NB=function(a){this.Sd=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.MB=function(a){this.nc=a};d.ec=function(){return this.ja};d.OB=function(a){this.Lj=a};
d.$classData=q({AMa:0},!1,"amf.core.metamodel.domain.ExternalSourceElementModel$",{AMa:1,f:1,Bz:1,Oc:1,ic:1});var g0a=void 0;function jh(){g0a||(g0a=(new f0a).a());return g0a}function h0a(){this.Je=this.wd=this.ef=this.kg=this.Aa=this.g=this.ja=null}h0a.prototype=new r;h0a.prototype.constructor=h0a;d=h0a.prototype;d.pp=function(a){this.ef=a};d.qp=function(a){this.kg=a};
d.a=function(){i0a=this;Iq(this);YK(this);Di();var a=C().Zd,a=(new J).aa([D(new F,a,"Linkable")]),b=Di().s;this.ja=Ei(a,b);Di();a=(new J).aa([this.kg,this.wd,this.Je]);b=Di().s;this.g=Ei(a,b);this.Aa=Tb(new Ub,Vb().dg,"Linkable Element","Reification of a link between elements in the model. Used when we want to capture the structure of the source document\nin the graph itself. Linkable elements are just replaced by regular links after resolution.",G());return this};d.Yc=function(){};
d.op=function(a){this.Je=a};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.np=function(a){this.wd=a};d.ec=function(){return this.ja};d.$classData=q({CMa:0},!1,"amf.core.metamodel.domain.LinkableElementModel$",{CMa:1,f:1,Fo:1,Oc:1,ic:1});var i0a=void 0;function Db(){i0a||(i0a=(new h0a).a());return i0a}
function j0a(a){var b=C().zg,b=D(new F,b,"Object"),c=lm().ja;a.Uxa(oz(new pz,b,c));a.Txa(Tb(new Ub,Vb().zg,"Object Node","Node that represents a dynamic object with records data structure",G()))}function gd(a){a=a.G;return x(a)?!!a.i:!1}function GHa(a){a=a.G;return x(a)?a.i|0:0}function k0a(a,b,c){if(os(c))return(new A).d(eia(pda(),c));var e=Bc().pN;sz(a,e,b.k,"Recursive loop generated in reference expansion: "+b.k+" \x3d\x3e "+c.k,b.ha());return w()}
function yga(a,b){a.Bp((new A).d(b));return a}function uba(a,b){var c;oDa||(oDa=(new cL).a());c=oDa;var e=cA();a=Oz(a,e,c);c=hd;e=new l0a;e.xK=b;return c(a,e)}function mPa(a,b){b=t(new u,function(a,b){return function(a){for(a=eba(a).ec();!a.b();){if(Gc(a.fa())===b)return!0;a=a.sa()}return!1}}(a,b));var c=cA(),e=Nz();a=Oz(a,c,e);a=Ppa(new Pz,a,m0a(b));return Tu(a)}function jd(a){var b=B(a.ca(),Ap().nc).G;return b.b()?Yb(a):b}
var q0a=function n0a(b,c,e,f,g,h,k){if(g.Ja(c.k))return ns(c)&&yb(c).qa()&&e.R(c)?(c=f.zf(c,!0),c.b()?null:c.c()):c;if(e.R(c))return b=f.zf(c,!1),x(b)&&(e=b.i,null!==e)?h.Ja(e.k)?(c=k.zf(c,e),c.b()?null:c.c()):e:b.b()?null:b.c();g.Om(c.k);if(sd(c))var l=c.ca().Pb,p=zx(),p=Va(p),y=Ce().s,l=De(l,p,y).xb(t(new u,function(){return function(b){b=b.xc;var c=Nl().qc;return null===b?null===c:b.h(c)}}(b))),p=c.ca().Pb,y=zx(),y=Va(y),I=Ce().s,p=De(p,y,I).xb(t(new u,function(){return function(b){b=b.xc;var c=
Nl().Mc;return null===b?null===c:b.h(c)}}(b))),y=pf(),l=l.la(p,y.s),p=c.ca().Pb,y=zx(),y=Va(y),I=Ce().s,p=De(p,y,I).Ph(t(new u,function(){return function(b){var c=b.xc,e=Nl().Mc;if(null===c?null===e:c.h(e))return!0;b=b.xc;c=Nl().qc;return null===b?null===c:b.h(c)}}(b))),y=pf(),l=l.la(p,y.s);else bt(c)?(l=c.ca().Pb,p=zx(),p=Va(p),y=Ce().s,l=De(l,p,y).xb(t(new u,function(){return function(b){b=b.xc;var c=Nl().qc;return null===b?null===c:b.h(c)}}(b))),p=c.ca().Pb,y=zx(),y=Va(y),I=Ce().s,p=De(p,y,I).Ph(t(new u,
function(){return function(b){b=b.xc;var c=Nl().qc;return null===b?null===c:b.h(c)}}(b))),y=pf(),l=l.la(p,y.s)):(l=c.ca().Pb,p=zx(),p=Va(p),y=Ce().s,l=De(l,p,y));p=t(new u,function(){return function(b){return(new P).N(b.xc,b.t)}}(b));y=pf();l.ka(p,y.s).X(t(new u,function(b,c,e,f,g,h,k){return function(l){if(null!==l){var p=l.pa(),y=l.Ba();if(null!==y&&Kb(y.t)){var I=!1;l=Wa();var rc=y.t,Fc=g.Ij(h.k),rc=l.Ia(n0a(b,rc,c,e,f,Fc,k));if(x(rc)&&(I=!0,l=rc.i,null!==l)){I=h.ca();rc=y.E;M();y=(new N).a();
Fc=rc.jf;Wg();rc=Yg(new Zg,(new $g).a());for(Fc=Fc.Lb;!Fc.b();){var Rd=Fc.fa(),Ld=Rd;!1!==(o0a(Ld)||p0a(Ld)||!!(Ld&&Ld.$classData&&Ld.$classData.v.f7))&&ah(rc,Rd);Fc=Fc.sa()}vj(I,p,l,y.FM(rc.gb));os(h)&&no(l)&&(p=l.dn,p.b()||(p=p.c(),h.Mg.Om(p)));return}if(I)return;if(w()===rc)return gs(h.ca(),p);throw(new v).d(rc);}}if(null!==l&&(p=l.pa(),l=l.Ba(),null!==l&&es(l.t)))return I=l.t.Tb,y=t(new u,function(b,c,e,f,g,h,k){return function(l){if(Kb(l)){var p=g.Ij(h.k);l=n0a(b,l,c,e,f,p,k);os(h)&&no(l)&&(p=
l.dn,p.b()||(p=p.c(),h.Mg.Om(p)))}return(new A).d(l)}}(b,c,e,f,g,h,k)),rc=z(),I=I.ka(y,rc.s).xb(t(new u,function(){return function(b){return b.qa()}}(b))),y=t(new u,function(){return function(b){return b.i}}(b)),rc=z(),I=I.ka(y,rc.s),vj(h.ca(),p,gr(new hr,I,(new N).a()),l.E)}}(b,e,f,g,h,c,k)));return c};
function J0(a,b,c,e){b=t(new u,function(a,b){return function(a){return Yl(a)?!!b.R(a):!1}}(a,b));c=qd(function(a,b){return function(a,c){return Yl(a)?b.zf(a,!!c):(new A).d(a)}}(a,c));e=qd(function(a,b){return function(a,c){return k0a(b,a,c)}}(a,e));var f=H(xz(),G()),g=Yd();q0a(a,a,b,c,f,g,e);return a}function K0(a){var b=Ap().jg;Eb(a,b,"2.0.0");a.Po(w());a.Bp(w())}function Apa(a,b){return a.Pe().Ib(t(new u,function(a,b){return function(a){return a.k===b}}(a,b)))}
function Oz(a,b,c){return b.PBa(c.$za(a.ca()))}function Pga(a){if(au(a)&&Wa().Ia(a.ze()).qa()){a=Zb(a.ze().ha(),n($S));if(a.b())return w();a=a.c();return(new A).d(a.Qe)}return sd(a)&&(a=Zb(a.ha(),n($S)),!a.b())?(a=a.c(),(new A).d(a.Qe)):w()}function bt(a){return!!(a&&a.$classData&&a.$classData.v.Go)}function L0(){this.k=this.mb=this.g=null;this.ma=!1}L0.prototype=new r;L0.prototype.constructor=L0;function r0a(){}d=r0a.prototype=L0.prototype;d.Ub=function(){return H(z(),G())};
d.Qb=function(a){return M0(this,a)};d.Uc=function(a){return Te(this,a)};d.Nd=function(){var a=B(this.ca(),lm().$).G,a=a.b()?"data-node":a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};d.bf=function(){return this.ma?this.mb:this.Hd()};function M0(a,b){return Wa().Ia(a.k).b()?cj(a,b):a}d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};
function Zha(a,b){var c=B(a.ca(),lm().$).G;c.b()?c=w():(c=c.c(),c=(new Cf).e(c),c=(new A).d(Gj(c.zd)));b=b+"/"+(c.b()?null:c.c());c=Wa().Ia(a.k);a:if(x(c)&&(c=c.i,null!==c&&re(ta(),c,"/included"))){b+="/included";break a}return Te(a,b)}d.Yp=function(){this.g=(new Q).a();return this};d.Te=function(a){this.k=a};function mm(a){return!!(a&&a.$classData&&a.$classData.v.cS)}function s0a(){}s0a.prototype=new r;s0a.prototype.constructor=s0a;d=s0a.prototype;d.a=function(){return this};
d.ps=function(a,b){throw Lb(Mb(),(new Nb).FE(b.Ls+" at: "+Af(Bf(),a.vf,a.Ef,a.ag,a.fg),b));};d.cC=function(a,b){return CDa(this,a,b)};d.Vs=function(a,b,c,e,f,g){this.Hc(a.k,b,c,e,f,xc().Eg,g)};d.Hc=function(a,b,c,e,f,g,h){throw Lb(Mb(),(new Nb).e("  Message: "+e+"\n  Target: "+b+"\nProperty: "+(c.b()?"":c.c())+"\n  Position: "+f+"\n at location: "+h));};d.$classData=q({YNa:0},!1,"amf.core.parser.UnhandledErrorHandler$",{YNa:1,f:1,zq:1,Lp:1,ip:1});var t0a=void 0;
function gb(){t0a||(t0a=(new s0a).a());return t0a}function Pp(){vE.call(this)}Pp.prototype=new xY;Pp.prototype.constructor=Pp;Pp.prototype.e=function(a){vE.prototype.pe.call(this,"Error resolving path: "+a,null,0,!0);return this};Pp.prototype.$classData=q({COa:0},!1,"amf.core.remote.PathResolutionError",{COa:1,Kf:1,Fe:1,f:1,n:1});function et(){vE.call(this)}et.prototype=new xY;et.prototype.constructor=et;
et.prototype.e=function(a){vE.prototype.pe.call(this,"Unsupported Url scheme: "+a,null,0,!0);return this};et.prototype.$classData=q({LOa:0},!1,"amf.core.remote.UnsupportedUrlScheme",{LOa:1,Kf:1,Fe:1,f:1,n:1});function jka(){this.IC=this.Cm=this.qf=this.uI=this.zQ=this.Pb=null}jka.prototype=new r;jka.prototype.constructor=jka;d=jka.prototype;d.a=function(){uja(this);NEa||(NEa=(new TL).a());this.Pb=NEa;return this};d.ada=function(){return"web"};d.Vxa=function(a){this.Cm=a};
d.vca=function(){var a=z(),b=[r_(new s_,(new O0).a())];return H(a,(new J).aa(b))};d.Wxa=function(a){this.qf=a};d.Xxa=function(a){this.zQ=a};d.Zda=function(a){this.IC=a};d.SL=function(a){return a};d.Yxa=function(a){this.uI=a};d.$classData=q({OOa:0},!1,"amf.core.remote.browser.JsBrowserPlatform",{OOa:1,f:1,wOa:1,EOa:1,Yka:1});function kka(){this.IC=this.Cm=this.qf=this.uI=this.zQ=this.Pb=null}kka.prototype=new r;kka.prototype.constructor=kka;d=kka.prototype;d.a=function(){uja(this);this.Pb=FWa();return this};
d.ada=function(){var a=Faa.platform();return-1!==(a.indexOf("darwin")|0)?"mac":-1!==(a.indexOf("win")|0)?"win":"nux"};d.Vxa=function(a){this.Cm=a};d.vca=function(){var a=z(),b=[r_(new s_,(new P0).a()),r_(new s_,(new Q0).a())];return H(a,(new J).aa(b))};d.Wxa=function(a){this.qf=a};d.Xxa=function(a){this.zQ=a};d.Zda=function(a){this.IC=a};
d.SL=function(a){var b=Yo().cj(a);if(!b.b()&&(b=b.c(),47===this.Pb.L2()))return""+Yo().aJ+Gaa.normalize(b);b=Yo().cj(a);if(!b.b()){b=b.c();a=Yo().aJ;var b=Gaa.normalize(b),c=this.Pb.L2(),c=ba.String.fromCharCode(c);return""+a+b.split(c).join("/")}c=Hia().cj(a);return c.b()?a:(a=c.c().Co,b=c.c().yg,c=c.c().th,c=(0<=(c.length|0)&&"/"===c.substring(0,1)?"":"/")+c,""+a+b+Uga(c))};d.Yxa=function(a){this.uI=a};d.$classData=q({SOa:0},!1,"amf.core.remote.server.JsServerPlatform",{SOa:1,f:1,wOa:1,EOa:1,Yka:1});
function R0(){this.na=null}R0.prototype=new r;R0.prototype.constructor=R0;R0.prototype.a=function(){u0a=this;this.na=ju().na;return this};function bb(){var a=v0a();return w0a(new S0,a.na.vca(),w())}R0.prototype.$classData=q({WPa:0},!1,"amf.internal.environment.Environment$",{WPa:1,f:1,Fb:1,q:1,n:1});var u0a=void 0;function v0a(){u0a||(u0a=(new R0).a());return u0a}function x0a(){this.GC=0;this.zo=this.vg=null;this.Qn=!1;this.hh=null}x0a.prototype=new LK;x0a.prototype.constructor=x0a;d=x0a.prototype;
d.a=function(){KK.prototype.a.call(this);y0a=this;this.hh=ju().na;this.vg=yt().ba;var a=z(),b=[yt().ba];this.zo=H(a,(new J).aa(b));this.Qn=!0;return this};d.oI=function(){throw(new fk).e("Unreachable");};function z0a(a,b){b=b.bT;if(x(b))return b.i;if(w()===b)return a;throw(new v).d(b);}d.aE=function(){return!0};d.bF=function(){return TFa()};d.OA=function(a,b,c,e){c=a.Gg;return bd(c)?(new A).d(Ska().Eda(c.Vd,z0a(a.ga,e))):A0a(c)?(new A).d(ZDa(dEa(b),c.ys,z0a(a.ga,e))):w()};
d.Gy=function(){var a=z(),b=[Zea(),xj(),im(),vr(),ej()];return H(a,(new J).aa(b))};d.f0=function(a,b,c){return cha(dha(),a,b,c)};d.py=function(){return H(z(),(new J).aa(["application/ld+json","application/json","application/amf+json"]))};d.zF=function(){return this.zo};d.dF=function(a,b){return(new UL).vb(b).He(a)};d.wh=function(){return this.vg};d.Sp=function(){return H(z(),G())};
d.SB=function(a){a=a.Gg;if(bd(a)){a=Ic(a.Vd.Bd);var b=Pc(),c=uv().gc;a=Hc(a,CM(c,b));a=a.b()?w():a.c().pc();if(x(a)&&(a=a.i,null!==a)){var b=t(new u,function(){return function(a){var b=C().Zd;return Gc(D(new F,b,a))}}(this)),c=H(z(),(new J).aa(["encodes","declares","references"])),e=z(),c=c.ka(b,e.s),e=H(z(),(new J).aa(["Document","Fragment","Module","Unit"])),f=z(),b=e.ka(b,f.s),e=t(new u,function(){return function(a){return dQa(C(),a)}}(this)),f=z(),e=c.ka(e,f.s),f=z(),c=c.la(e,f.s),e=t(new u,function(){return function(a){return dQa(C(),
a)}}(this)),f=z(),e=b.ka(e,f.s),f=z(),b=b.la(e,f.s);if(c.Cd(t(new u,function(a,b){return function(a){return yc((new K).Y(b),a).qa()}}(this,a))))return!0;a=yc((new K).Y(a),"@type");if(!a.b())return a=a.c().i,c=tv(),e=Ac().fi,a=L(a,c,e).Jn,c=t(new u,function(){return function(a){var b=zc(),c=Ac().fi;return L(a,b,c).nq}}(this)),e=uv(),a=a.ka(c,e.gc),b.Mo(a).Fa()}return!1}return A0a(a)};d.cn=function(){return hb(ib(),jb(function(){return function(){return pp()}}(this)),um())};d.Xy=function(){return Xs()};
d.LB=function(){return this.Qn};d.$classData=q({$Pa:0},!1,"amf.plugins.document.graph.AMFGraphPlugin$",{$Pa:1,zz:1,f:1,wq:1,Fb:1});var y0a=void 0;function pp(){y0a||(y0a=(new x0a).a());return y0a}function T0(){}T0.prototype=new r;T0.prototype.constructor=T0;T0.prototype.a=function(){return this};
function B0a(a){var b=C0a(kb(),a),c;b.b()?c=!1:(c=b.c(),c=re(ta(),c,"\x3e")&&-1!==(c.indexOf("|\x3c")|0));if(c)return!0;b.b()?b=w():(b=b.c(),b=kd(ta(),b,"\\|",0),b=(new A).d(Wj((new md).vc(b))));a:{if(x(b)&&(c=b.i,jv().O5===c)){c=!0;break a}if(x(b)&&(c=b.i,jv().N5===c)){c=!0;break a}if(x(b)&&(c=b.i,jv().P5===c)){c=!0;break a}if(x(b)&&(c=b.i,jv().H9===c)){c=!0;break a}c=!1}return c?!0:x(b)?(a=b.i,kb().nm.W.Ta(a).qa()):Jba(a).qa()}
T0.prototype.$classData=q({pQa:0},!1,"amf.plugins.document.vocabularies.DialectHeader$",{pQa:1,f:1,AQa:1,wQa:1,yQa:1});var D0a=void 0;function U0(){}U0.prototype=new r;U0.prototype.constructor=U0;U0.prototype.a=function(){return this};U0.prototype.ri=function(a){var b=pC();return(new A).d((new V0).$d(qC(b,a,10)))};U0.prototype.$classData=q({CQa:0},!1,"amf.plugins.document.vocabularies.annotations.AliasesLocation$",{CQa:1,f:1,xi:1,q:1,n:1});var E0a=void 0;function W0(){}W0.prototype=new r;
W0.prototype.constructor=W0;W0.prototype.a=function(){return this};W0.prototype.ri=function(){return(new A).d((new X0).a())};W0.prototype.$classData=q({DQa:0},!1,"amf.plugins.document.vocabularies.annotations.CustomId$",{DQa:1,f:1,xi:1,q:1,n:1});var F0a=void 0;function Y0(){}Y0.prototype=new r;Y0.prototype.constructor=Y0;Y0.prototype.a=function(){return this};Y0.prototype.ri=function(){return(new A).d((new Z0).a())};
Y0.prototype.$classData=q({EQa:0},!1,"amf.plugins.document.vocabularies.annotations.JsonPointerRef$",{EQa:1,f:1,xi:1,q:1,n:1});var G0a=void 0;function $0(){}$0.prototype=new r;$0.prototype.constructor=$0;$0.prototype.a=function(){return this};$0.prototype.ri=function(){return(new A).d((new a1).a())};$0.prototype.$classData=q({FQa:0},!1,"amf.plugins.document.vocabularies.annotations.RefInclude$",{FQa:1,f:1,xi:1,q:1,n:1});var H0a=void 0;function I0a(){this.Aa=this.ch=this.ja=this.g=null}
I0a.prototype=new r;I0a.prototype.constructor=I0a;d=I0a.prototype;d.a=function(){J0a=this;Iq(this);DM(this);var a=this.ch,b=G();this.g=oz(new pz,a,b);this.ja=G();return this};d.Yc=function(a){this.Aa=a};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.ec=function(){return this.ja};d.TD=function(a){this.ch=a};d.$classData=q({DRa:0},!1,"amf.plugins.document.vocabularies.metamodel.document.ExternalContextModelFields$",{DRa:1,f:1,SF:1,Oc:1,ic:1});var J0a=void 0;
function ge(){J0a||(J0a=(new I0a).a());return J0a}function b1(){this.k=this.mb=null;this.ma=!1}b1.prototype=new r;b1.prototype.constructor=b1;function K0a(){}K0a.prototype=b1.prototype;function L0a(a,b){var c=FA().IB,e=t(new u,function(){return function(a){return Nh(new Oh,a,(new N).a())}}(a)),f=z();b=gr(new hr,b.ka(e,f.s),(new N).a());ff(a,c,b)}d=b1.prototype;d.Ub=function(){return H(z(),G())};d.Qb=function(a){Wa().Ia(this.k).b()&&cj(this,a);return this};d.Uc=function(a){return Te(this,a)};
d.Nd=function(){return""};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.Te=function(a){this.k=a};function tRa(a){return!!(a&&a.$classData&&a.$classData.v.xma)}function c1(){XM.call(this);this.uu=this.su=this.jO=null}c1.prototype=new GGa;c1.prototype.constructor=c1;c1.prototype.Jaa=function(a){return M0a(this,a)};
function M0a(a,b){var c=a.ai.Ta(b);if(x(c)&&(c=c.i)&&c.$classData&&c.$classData.v.Ema)return c;var c=a.su,e=(new Np).a(),f=pc(fc().db,G()),c=(new c1).XU(f,c,e);a.ai=a.ai.Zb((new P).N(b,c));return c}c1.prototype.qu=function(){var a=(new dd).Qd(this.jO),b=Pf(),b=Qf(b),a=Ei(a,b);return xx(a)};function N0a(a,b,c){a.jO=a.jO.Zb((new P).N(b,c));c.$h||dc(a.uu,b,c)}
function O0a(a,b,c){a=a.bo(b,t(new u,function(){return function(a){return a.jO}}(a)),c);b=new P0a;if(a.b())return w();b=Qr(b);a=a.c();return b.Ia(a)}c1.prototype.XU=function(a,b,c){this.jO=a;this.su=b;this.uu=c;XM.prototype.m1.call(this,pc(fc().db,G()),pc(fc().db,G()),pc(fc().db,G()),pc(fc().db,G()),pc(fc().db,G()),b,c);return this};function Q0a(a,b,c,e){c=mca(a,c);a=a.bo(b,t(new u,function(){return function(a){return a.jO}}(a)),e);b=R0a(c);if(a.b())return w();b=Qr(b);a=a.c();return b.Ia(a)}
c1.prototype.$classData=q({Ema:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceDeclarations",{Ema:1,NY:1,eN:1,f:1,OSa:1});function d1(){this.GC=0;this.vg=this.zo=null;this.Qn=!1;this.hh=null}d1.prototype=new LK;d1.prototype.constructor=d1;function S0a(){}d=S0a.prototype=d1.prototype;d.a=function(){KK.prototype.a.call(this);this.hh=ju().na;var a=z(),b=[rca().ba];this.zo=H(a,(new J).aa(b));this.vg="JSON Schema";this.Qn=!0;return this};
function T0a(a,b,c,e){var f=U0a(b,e);a=V0a(a,b,c,f);b=a.Gg;if(bd(b)){c=-1!==(a.ga.indexOf("#")|0)?a.ga:a.ga+"#/";var f=a.ga,g=kd(ta(),f,"#",0),f=Wj((new md).vc(g));if(0===g.j.length){if(0===g.j.length)throw(new Gt).e("empty.tail");var h=g.j.length,h=0<h?h:0,k=g.j.length}else h=g.j.length,h=0<h?h:0,k=g.j.length;h=-1+(h<k?h:k)|0;h=0<h?h:0;k=Ht(It(),Jt(ka(g)),h);0<h&&Kt(ye(),g,1,k,0,h);g=k;g=Ps((new md).vc(g));g.b()?g=w():(g=g.c(),0<=(g.length|0)&&"/"===g.substring(0,1)&&(g=(new ph).e(g),g=Zo(g,"/")),
g=(new A).d(g));e=W0a(a,e,f);e=X0a(a,b,c,g,f,e);return(new A).d(e)}return w()}d.oI=function(a,b,c){if(sd(a)&&(b=a.ak().Ib(t(new u,function(){return function(a){return Yh(a.ha(),n(Y0a))&&Xh(a)}}(this))),x(b)&&(b=b.i,Xh(b)))){a=a.ak();var e=gC();return(new A).d(Z0a(b,a,e,c).XB())}return w()};
function U0a(a,b){if(Ul(a)){var c=Xp(a.g,Rl().ob).Gg;if(c.b()){DF();var c=B(Xp(a.g,Rl().ob).g,Wl().Sd).G,c=c.b()?null:c.c(),e=jd(a),c=CF(0,c,e.b()?"":e.c(),qE().xn,b).PA(!0).fa();if(kG(c))return c.Bd;var c=rh().FJ,e=w(),f=a.k,g=Zb(a.ha(),n(Fd));a=jd(a);b.Hc(c.k,f,e,"Cannot parse JSON Schema from unit with missing syntax information",g,xc().tb,a);R();b=rq(sq(),H(Zf().q6,G()),"");return lq(R(),b,O().ua)}return c.c()}if(e1(a)&&a.ue.qa())return DF(),c=a.ue.c(),a=jd(a),CF(0,c,a.b()?"":a.c(),qE().xn,b).PA(!0).fa().Bd;
c=rh().FJ;e=w();f=a.k;g=Zb(a.ha(),n(Fd));a=jd(a);b.Hc(c.k,f,e,"Cannot parse JSON Schema from unit with missing syntax information",g,xc().tb,a);R();b=rq(sq(),H(Zf().q6,G()),"");return lq(R(),b,O().ua)}
function V0a(a,b,c,e){Mga();e=Vp(new Wp,YE(ZE(),e),w());var f=jd(b),f=f.b()?b.k:f.c();c=c.qa()?"#"+c.c():"";var g=Xp(b.ca(),Nl().qc);a=t(new u,function(){return function(a){var b=jd(a);return Jp(new Kp,a,(new f1).Di(b.b()?"":b.c(),G()),w())}}(a));var h=z();a=g.ka(a,h.s);g=NDa();b=b.ue;return Lga(0,e,f+c,"application/json",a,g,b.b()?"":b.c())}d.aE=function(a){sd(a)?(a=a.ak(),a=hd(a,new $0a)):a=w();return a.qa()};d.bF=function(){return TDa()};
d.OA=function(a,b){var c=a.Gg;if(bd(c)){var e=-1!==(a.ga.indexOf("#")|0)?a.ga:a.ga+"#/",f=a.ga,g=kd(ta(),f,"#",0),f=Wj((new md).vc(g));if(0===g.j.length){if(0===g.j.length)throw(new Gt).e("empty.tail");var h=g.j.length,h=0<h?h:0,k=g.j.length}else h=g.j.length,h=0<h?h:0,k=g.j.length;h=-1+(h<k?h:k)|0;h=0<h?h:0;k=Ht(It(),Jt(ka(g)),h);0<h&&Kt(ye(),g,1,k,0,h);g=k;g=Ps((new md).vc(g));g.b()?g=w():(g=g.c(),0<=(g.length|0)&&"/definitions"===g.substring(0,12)&&(g=(new ph).e(g),g=Zo(g,"/")),g=(new A).d(g));
b=W0a(a,b,f);c=X0a(a,c,e,g,f,b);f=qV(sV(),gF(jC(),(R(),Th(R(),"schema")),c),t(new u,function(a,b){return function(a){Te(a,b)}}(this,e)),a1a(b,c),b).wc();if(x(f))e=f.i;else{if(w()!==f)throw(new v).d(f);f=rh().FJ;g="Cannot parse JSON Schema at "+a.ga;h=w();Cc(b,f,e,h,g,c.ga);M();c=(new N).a();c=(new Ui).P((new Q).a(),c);e=Te(c,e);c=fo().Md;e=Eb(e,c,"application/json");c=a.ue;f=fo().Sd;e=Eb(e,f,c)}b.rH=w();M();c=(new N).a();c=(new dQ).P((new Q).a(),c);c=Te(c,a.ga);b=a.ga;f=Ap().nc;c=Eb(c,f,b);b=Rl().ob;
e=ff(c,b,e);yga(e,a.ue);return(new A).d(e)}return w()};d.Gy=function(){return G()};function b1a(a,b,c,e){var f=U0a(b,e);b=V0a(a,b,c,f);a=a.OA(b,e,a.hh,(new cb).a());if(a.b())return w();a=a.c();return au(a)&&Xh(a.ze())?(new A).d(a.ze()):w()}d.py=function(){return H(z(),(new J).aa(["application/schema+json","application/payload+json"]))};d.zF=function(){return this.zo};d.dF=function(a,b){return(new uP).vb(b).He(a)};
function X0a(a,b,c,e,f,g){b=b.Vd.Bd;e.qa()?(c1a(g,b),e=d1a(g,e.c()),g.rH=w(),e.b()?e=w():(e=e.c(),e=(new A).d(e.Ba()))):e=(new A).d(b);e.b()?(e=rh().FJ,a="Cannot find fragment "+f+" in JSON schema "+a.ga,f=w(),Cc(g,e,c,f,a,b.ga),c=b):c=e.c();c1a(g,b);return c}d.wh=function(){return this.vg};function W0a(a,b,c){var e=(new yp).co(c,a.U,(new Np).a(),b.Xi,w());e.up=b.up;e.Ru=b.Ru;b=UJa(b)?(new A).d(b.yl()):w();a=a.U;b.b()?b=w():(b=b.c(),b=(new A).d(Aoa(Jx(),b)));return(new qy).xy(c,a,e,b,w(),w())}
d.Sp=function(){return G()};d.SB=function(){return!1};d.cn=function(){return HB(ib(),this)};d.Xy=function(){return Xs()};d.LB=function(){return this.Qn};function g1(){}g1.prototype=new r;g1.prototype.constructor=g1;g1.prototype.a=function(){return this};
g1.prototype.ri=function(a){var b=kd(ta(),a,",",0);a=se(ye(),b);if(!a.b()&&null!==a.c()&&0===a.c().Ge(2)){b=a.c().jb(0);a=a.c().jb(1);var b=kd(ta(),b,"-\x3e",0),b=ld((new md).vc(b)),c=Wa();a=kd(ta(),a,"-\x3e",0);return(new A).d((new iz).Sq(b,c.Ia(ld((new md).vc(a)))))}a=se(ye(),b);return a.b()||null===a.c()||0!==a.c().Ge(1)?w():(a=a.c().jb(0),a=kd(ta(),a,"-\x3e",0),(new A).d((new iz).Sq(ld((new md).vc(a)),w())))};
g1.prototype.$classData=q({BTa:0},!1,"amf.plugins.document.webapi.annotations.ExtensionProvenance$",{BTa:1,f:1,xi:1,q:1,n:1});var e1a=void 0;function h1(){}h1.prototype=new r;h1.prototype.constructor=h1;h1.prototype.a=function(){return this};h1.prototype.ri=function(){return(new A).d((new i1).a())};h1.prototype.$classData=q({CTa:0},!1,"amf.plugins.document.webapi.annotations.FormBodyParameter$",{CTa:1,f:1,xi:1,q:1,n:1});var f1a=void 0;function j1(){}j1.prototype=new r;j1.prototype.constructor=j1;
j1.prototype.a=function(){return this};j1.prototype.ri=function(a){return(new A).d((new lx).e(a))};j1.prototype.$classData=q({DTa:0},!1,"amf.plugins.document.webapi.annotations.JSONSchemaId$",{DTa:1,f:1,xi:1,q:1,n:1});var g1a=void 0;function k1(){}k1.prototype=new r;k1.prototype.constructor=k1;k1.prototype.a=function(){return this};k1.prototype.ri=function(a){return(new A).d((new h1a).e(a))};
k1.prototype.$classData=q({ETa:0},!1,"amf.plugins.document.webapi.annotations.LocalLinkPath$",{ETa:1,f:1,xi:1,q:1,n:1});var i1a=void 0;function l1(){}l1.prototype=new r;l1.prototype.constructor=l1;l1.prototype.a=function(){return this};l1.prototype.ri=function(a){a=kd(ta(),a,"-\x3e",0);var b=se(ye(),a);return b.b()||null===b.c()||0!==b.c().Ge(2)?w():(a=b.c().jb(0),b=b.c().jb(1),(new A).d(j1a(new m1,a,iT(tf(),b))))};
l1.prototype.$classData=q({FTa:0},!1,"amf.plugins.document.webapi.annotations.ParameterNameForPayload$",{FTa:1,f:1,xi:1,q:1,n:1});var k1a=void 0;function n1(){}n1.prototype=new r;n1.prototype.constructor=n1;n1.prototype.a=function(){return this};n1.prototype.ri=function(a){return(new A).d((new o1).e(a))};n1.prototype.$classData=q({GTa:0},!1,"amf.plugins.document.webapi.annotations.ParsedJSONSchema$",{GTa:1,f:1,xi:1,q:1,n:1});var l1a=void 0;function p1(){}p1.prototype=new r;
p1.prototype.constructor=p1;p1.prototype.a=function(){return this};p1.prototype.ri=function(a){return(new A).d((new q1).e(a))};p1.prototype.$classData=q({HTa:0},!1,"amf.plugins.document.webapi.annotations.ParsedRamlDatatype$",{HTa:1,f:1,xi:1,q:1,n:1});var m1a=void 0;function r1(){}r1.prototype=new r;r1.prototype.constructor=r1;r1.prototype.a=function(){return this};
r1.prototype.ri=function(a){a=kd(ta(),a,"-\x3e",0);var b=se(ye(),a);return b.b()||null===b.c()||0!==b.c().Ge(2)?w():(a=b.c().jb(0),b=b.c().jb(1),(new A).d(n1a(new s1,"true"===a,iT(tf(),b))))};r1.prototype.$classData=q({ITa:0},!1,"amf.plugins.document.webapi.annotations.RequiredParamPayload$",{ITa:1,f:1,xi:1,q:1,n:1});var o1a=void 0;function EU(){FU.call(this);this.sO=this.Pa=this.Da=null}EU.prototype=new USa;EU.prototype.constructor=EU;
EU.prototype.Va=function(){var a=this.Pa.Q.jc,b=wo().ey,c=w(),e="Custom facets not supported for vendor "+this.Pa.Q.Pg(),f=Zb(this.sO.t.t.ha(),n(Fd)),g=this.sO.t.t.Yb();a.Hc(b.k,"",c,e,f,xc().tb,g)};EU.prototype.jfa=function(){fc();throw(new t1).a();};EU.prototype.ZK=function(){return this.Da};EU.prototype.$classData=q({RTa:0},!1,"amf.plugins.document.webapi.contexts.Raml08EmitterVersionFactory$$anon$1",{RTa:1,Sna:1,f:1,ib:1,Ra:1});function zU(){AU.call(this);this.N2=this.Pa=this.Xd=null}
zU.prototype=new $Sa;zU.prototype.constructor=zU;zU.prototype.te=function(){return this.Xd};zU.prototype.Va=function(){var a=this.Pa.Q.jc,b=wo().ey,c=this.N2.k,e=w(),f="Custom facets not supported for vendor "+this.Pa.Q.Pg(),g=Zb(this.N2.E,n(Fd)),h=Yb(this.N2);a.Hc(b.k,c,e,f,g,xc().tb,h)};zU.prototype.$classData=q({STa:0},!1,"amf.plugins.document.webapi.contexts.Raml08EmitterVersionFactory$$anon$2",{STa:1,Zna:1,f:1,ib:1,Ra:1});function CU(){DU.call(this);this.$_=this.Pa=this.Xd=null}
CU.prototype=new TSa;CU.prototype.constructor=CU;CU.prototype.te=function(){return this.Xd};CU.prototype.Va=function(){var a=this.Pa.Q.jc,b=wo().ey,c=this.$_.k,e=w(),f="Custom facets not supported for vendor "+this.Pa.Q.Pg(),g=Zb(this.$_.E,n(Fd)),h=Yb(this.$_);a.Hc(b.k,c,e,f,g,xc().tb,h)};CU.prototype.$classData=q({TTa:0},!1,"amf.plugins.document.webapi.contexts.Raml08EmitterVersionFactory$$anon$3",{TTa:1,Pna:1,f:1,ib:1,Ra:1});
function u1(){KY.call(this);this.V8=this.V5=this.m9=this.e9=this.On=null}u1.prototype=new jZa;u1.prototype.constructor=u1;
u1.prototype.a=function(){KY.prototype.$d.call(this,0);p1a=this;var a=null!==this.Ju&&this.Ju.Qa()?this.Ju.Sa():"DEFAULT";this.On=q1a(this,this.WE,a);a=null!==this.Ju&&this.Ju.Qa()?this.Ju.Sa():"RESOURCE_TYPE";this.e9=q1a(this,this.WE,a);a=null!==this.Ju&&this.Ju.Qa()?this.Ju.Sa():"TRAIT";this.m9=q1a(this,this.WE,a);a=null!==this.Ju&&this.Ju.Qa()?this.Ju.Sa():"EXTENSION";this.V5=q1a(this,this.WE,a);a=null!==this.Ju&&this.Ju.Qa()?this.Ju.Sa():"OVERLAY";this.V8=q1a(this,this.WE,a);return this};
u1.prototype.$classData=q({fUa:0},!1,"amf.plugins.document.webapi.contexts.RamlWebApiContextType$",{fUa:1,Hfb:1,f:1,q:1,n:1});var p1a=void 0;function py(){p1a||(p1a=(new u1).a());return p1a}function v1(){OU.call(this);this.SCa=null}v1.prototype=new ySa;v1.prototype.constructor=v1;v1.prototype.gL=function(a){return ax(this.SCa.pF(),a,B(a.ca(),Db().wd).G,G())};v1.prototype.Ci=function(a,b,c){OU.prototype.Ci.call(this,a,b,c);this.SCa=(new uU).sA((new tU).Ci(a,b,this.fc));return this};
v1.prototype.$classData=q({kUa:0},!1,"amf.plugins.document.webapi.contexts.XRaml10SpecEmitterContext",{kUa:1,hna:1,jna:1,hS:1,f:1});function r1a(){hw.call(this);this.qDa=null}r1a.prototype=new FSa;r1a.prototype.constructor=r1a;d=r1a.prototype;d.bC=function(){return this.uu};d.bo=function(a,b,c){var e=Mr.prototype.bo.call(this,a,b,c);if(x(e))return(new A).d(e.i);if(w()===e)return this.qDa.bo(a,b,c);throw(new v).d(e);};
function s1a(a,b,c,e,f,g){var h=new r1a;h.qDa=c;hw.prototype.YU.call(h,a,b,e,f,g);return h}d.CG=function(){return this.su};d.iG=function(){return this.FN};d.$classData=q({gVa:0},!1,"amf.plugins.document.webapi.parser.spec.ExtensionWebApiDeclarations",{gVa:1,OY:1,iS:1,eN:1,f:1});function w1(){pO.call(this);this.MV=null}w1.prototype=new pJa;w1.prototype.constructor=w1;function x1(){}x1.prototype=w1.prototype;
w1.prototype.Hi=function(){pO.prototype.ZV.call(this);yca(this,this.xa,this.eb,this.PV(),this.l.Mb());return this.xa};w1.prototype.PV=function(){return this.MV};w1.prototype.iC=function(a){pO.prototype.iC.call(this,a);this.MV=t1a();return this};function y1(){this.Vd=this.Q=null}y1.prototype=new oKa;y1.prototype.constructor=y1;function u1a(){}u1a.prototype=y1.prototype;y1.prototype.CK=function(a,b){this.Vd=a;cP.prototype.sA.call(this,b);return this};
y1.prototype.XB=function(){var a=this.Vd,b=Jy(Ky(),vt(),a.ze().ha()),c=v1a(this,this.Vd,b),e=this.pHa((new z1).xA(Xp(a.ca(),Nl().Mc),b,this.Vd.Pe(),this.tj()).Gc,b),f;f=this.Vd.Pe();var g;g=this.Vd;if(Ol(g))g=g.ze();else{g=this.tj().Si();var h=Bc().nh,k=this.Vd.k,l=w(),p=Zb(this.Vd.ha(),n(Fd)),y=jd(this.Vd);g.Hc(h.k,k,l,"BaseUnit doesn't encode a WebApi.",p,xc().tb,y);M();g=(new N).a();g=(new xX).P((new Q).a(),g)}h=Zb(g.E,n($S));h.b()?h=w():(h=h.c(),h=(new A).d(h.Qe));f=w1a(this,g,b,h,f).Gc;g=Dd(this.Vd.ca(),
qz().Jc);g.b()?g=w():(g=g.c(),h=Hv((new Cf).e("extends")),k=g.t.t.u(),Cq(),g=(new A).d(x1a(new y1a,h,k,jq(0,g.t.E,n(Fd)),this.tj())));g=g.wa();h=this.Vd;if(Pm(h))h=Dla(),h=(new A).d(Bv(new Cv,h.oa,h.t,O().Wa,Gd()));else if(Rm(h))h=Ela(),h=(new A).d(Bv(new Cv,h.oa,h.t,O().Wa,Gd()));else if(Ol(h))h=w();else throw Lb(Mb(),(new Nb).e("Document has no header."));h=h.wa();k=Di();y=g.la(h,k.s);a=Dd(a.ca(),Ap().Ud);if(a.b())var I=w();else a=a.c(),I=(new A).d(Ih(new Jh,Hv((new Cf).e("usage")),a,w()));a=Ly();
g=(new My).e(a.Dh);h=(new ph).e(a.xh);Tc(h)&&Ny(g,a.xh);h=g.r;k=g.da;l=(new pq).e(k);this.Wfa(l);var p=Cq(),E=z();f=f.la(y,E.s);y=I.wa();I=z();f=f.la(y,I.s);y=z();e=f.la(e,y.s);f=z();iq(p,b.Cb(e.hg(c,f.s)),l);T(h,lq(R(),rq(sq(),l.r,k),O().ua));return(new Oy).mc(Py(vq(),a.Dh),g.r)};y1.prototype.pHa=function(a){return a};function A1(){this.yb=this.Dn=this.qD=null}A1.prototype=new r;A1.prototype.constructor=A1;function z1a(){}z1a.prototype=A1.prototype;
A1.prototype.Yj=function(){null===this.yb&&this.Ig();return this.yb};function A1a(a){null===a.qD&&a.z5();return a.qD}A1.prototype.Ig=function(){null===this.yb&&(this.yb=yO())};A1.prototype.BE=function(a){this.Dn=a;return this};A1.prototype.z5=function(){if(null===this.qD){var a=new eW;if(null===this)throw Lb(Mb(),null);a.l=this;this.qD=a}};function nO(){this.yb=this.Rn=this.qD=null}nO.prototype=new r;nO.prototype.constructor=nO;function B1(){}B1.prototype=nO.prototype;
function B1a(a){null===a.qD&&a.z5();return a.qD}d=nO.prototype;d.Yj=function(){null===this.yb&&this.Ig();return this.yb};d.qs=function(a){this.Rn=a;return this};d.Ig=function(){null===this.yb&&(this.yb=yO())};d.z5=function(){if(null===this.qD){var a=new C1;if(null===this)throw Lb(Mb(),null);a.l=this;this.qD=a}};d.Lca=function(a){var b=yc((new K).Y(a),"type");a=b.b()?yc((new K).Y(a),"schema"):b;if(x(a)){var b=a.i,c=b.i.pb().nb,e=O().ua;if(c===e)return a=b.i,b=Pc(),this.Lca(L(a,b,this.Rn))}return a};
d.sM=function(a){var b=yc((new K).Y(a),"type");return b.b()?yc((new K).Y(a),"schema"):b};function C1(){this.l=null}C1.prototype=new r;C1.prototype.constructor=C1;
C1.prototype.r$=function(a,b){var c=a.i.pb().nb;if(O().ua===c){var c=this.l,e=a.Da,f=zc(),e=L(e,f,this.l.Rn).ya,f=a.i,g=Pc();return C1a(new D1,c,a,e,L(f,g,this.l.Rn),b).GH()}if(O().Nc===c)return c=APa(CPa(),a),b.R(c),b=this.l.Rn,e=rh().$M,f=c.k,a=a.i,g=w(),Cc(b,e,f,g,"Invalid value type for annotation types parser, expected map or scalar reference",a.ga),c;c=a.Da;e=zc();c=L(c,e,this.l.Rn).ya;e=a.i;f=zc();f=L(e,f,this.l.Rn);e=APa(CPa(),a);b.R(e);g=qia(this.l.Rn.le(),f.ya);if(x(g))return e=g.i,f=f.ya,
a=Ke(M(),a),a=gL(e,f,a),a.k=null,M(),e=(new N).a(),b.R(Ue(a,c,e)),a;a=RU(SU(),a,t(new u,function(a,b){return function(a){return a.Qb(b.k,a.Ub())}}(this,e)),TU(!0,!1),tO(),this.l.Rn).wc();if(x(a))return a=a.i,oB(kB(),a,e.k,w()),b=Zl().Fc,ff(e,b,a);a=this.l.Rn;b=Bc().vD;c=e.k;g=w();Cc(a,b,c,g,"Could not find declared annotation link in references",f.ga);return e};
C1.prototype.$classData=q({wYa:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlSpecParser$AnnotationTypesParser$",{wYa:1,f:1,nr:1,q:1,n:1});function nW(){yz.call(this);this.su=null}nW.prototype=new WPa;nW.prototype.constructor=nW;nW.prototype.vt=function(a,b){this.su=b;yz.prototype.vt.call(this,a,b);return this};nW.prototype.Zw=function(){return this.su};
nW.prototype.aza=function(){return qd(function(){return function(a,b){if(Cn(b)&&B(b.g,Bn().vn).G.qa()&&Cn(a)){a=jda(a).Uc(b.k);b=B(b.g,Bn().vn).G;b=b.b()?null:b.c();var c=Bn().vn;return Eb(a,c,b)}return a}}(this))};nW.prototype.$classData=q({OYa:0},!1,"amf.plugins.document.webapi.resolution.pipelines.WebApiReferenceResolutionStage",{OYa:1,ela:1,ji:1,f:1,hla:1});function D1a(){this.NH=this.iv=null}D1a.prototype=new r;D1a.prototype.constructor=D1a;d=D1a.prototype;
d.a=function(){E1a=this;this.iv="AMF Payload Validation";this.NH=H(z(),(new J).aa(["application/json","application/yaml","text/vnd.yaml"]));var a=G();z();Oj();var b=(new $g).a();(new bQ).Vk("",a,(new yp).co("",b.wa(),(new Np).a(),Op(),w()),w(),w(),w(),py().On);return this};d.tQ=function(a,b,c){b=new WUa;b.Zf=a;b.Qfa=c;aQ.prototype.j6a.call(b,a);return b};d.D$=function(a){return!ai(a)&&Xh(a)};d.wh=function(){return this.iv};d.Sp=function(){return G()};d.cn=function(){return HB(ib(),this)};
d.$classData=q({JZa:0},!1,"amf.plugins.document.webapi.validation.PayloadValidatorPlugin$",{JZa:1,f:1,u7:1,wq:1,Hz:1});var E1a=void 0;function bba(){E1a||(E1a=(new D1a).a());return E1a}function BW(){}BW.prototype=new r;BW.prototype.constructor=BW;BW.prototype.a=function(){return this};BW.prototype.ri=function(a){return(new A).d((new bz).e(a))};BW.prototype.$classData=q({c_a:0},!1,"amf.plugins.domain.shapes.annotations.ParsedFromTypeExpression$",{c_a:1,f:1,xi:1,q:1,n:1});var ZUa=void 0;
function kP(){this.ub=null;this.jm=!1;this.dO=null}kP.prototype=new cu;kP.prototype.constructor=kP;kP.prototype.Iv=function(a,b,c){this.jm=b;bu.prototype.vb.call(this,c);w();this.dO=hra(new wB,c,b,a,(new F1a).a());return this};kP.prototype.h3=function(a){return os(a)?yLa((new sQ).EU(this.dO),a):(new A).d(a)};kP.prototype.He=function(a){(new A).d(a);return a.Lm(G1a(),qd(function(a){return function(c,e){return a.h3(c,!!e)}}(this)),this.ub)};
kP.prototype.$classData=q({n0a:0},!1,"amf.plugins.domain.shapes.resolution.stages.ShapeNormalizationStage",{n0a:1,ji:1,f:1,Rm:1,hla:1});function jj(){vE.call(this);this.$1=this.E1=this.c2=null;this.NBa=!1}jj.prototype=new xY;jj.prototype.constructor=jj;function ij(a,b,c,e,f,g){a.c2=c;a.E1=e;a.$1=f;a.NBa=g;vE.prototype.pe.call(a,b,null,0,!0);return a}
jj.prototype.$classData=q({i8:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.InheritanceIncompatibleShapeError",{i8:1,Kf:1,Fe:1,f:1,n:1});function sX(){}sX.prototype=new r;sX.prototype.constructor=sX;sX.prototype.a=function(){return this};sX.prototype.ri=function(a){return(new A).d((new E1).e(a))};sX.prototype.$classData=q({F0a:0},!1,"amf.plugins.domain.webapi.annotations.InvalidBinding$",{F0a:1,f:1,xi:1,q:1,n:1});var YVa=void 0;function pX(){}pX.prototype=new r;
pX.prototype.constructor=pX;pX.prototype.a=function(){return this};pX.prototype.ri=function(a){return(new A).d((new F1).e(a))};pX.prototype.$classData=q({G0a:0},!1,"amf.plugins.domain.webapi.annotations.OrphanOasExtension$",{G0a:1,f:1,xi:1,q:1,n:1});var VVa=void 0;function rX(){}rX.prototype=new r;rX.prototype.constructor=rX;rX.prototype.a=function(){return this};rX.prototype.ri=function(a){return(new A).d((new G1).Ui(iT(tf(),a)))};
rX.prototype.$classData=q({H0a:0},!1,"amf.plugins.domain.webapi.annotations.ParameterBindingInBodyLexicalInfo$",{H0a:1,f:1,xi:1,q:1,n:1});var XVa=void 0;function H1(){}H1.prototype=new r;H1.prototype.constructor=H1;H1.prototype.a=function(){return this};H1.prototype.ri=function(a,b){a=(new PO).e(a);bEa(a,b);return(new A).d(a)};H1.prototype.$classData=q({I0a:0},!1,"amf.plugins.domain.webapi.annotations.ParentEndPoint$",{I0a:1,f:1,xi:1,q:1,n:1});var H1a=void 0;
function bKa(){H1a||(H1a=(new H1).a());return H1a}function qX(){}qX.prototype=new r;qX.prototype.constructor=qX;qX.prototype.a=function(){return this};qX.prototype.ri=function(a){return(new A).d((new ix).Ui(iT(tf(),a)))};qX.prototype.$classData=q({J0a:0},!1,"amf.plugins.domain.webapi.annotations.TypePropertyLexicalInfo$",{J0a:1,f:1,xi:1,q:1,n:1});var WVa=void 0;function I1(){this.k=this.mb=this.E=this.g=null;this.ma=!1}I1.prototype=new r;I1.prototype.constructor=I1;function J1(){}d=J1.prototype=I1.prototype;
d.Ub=function(){return H(z(),G())};d.Qb=function(a){return cj(this,a)};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Hn()};d.ha=function(){return this.E};d.Nd=function(){return"/settings/default"};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};
d.$classData=q({oJ:0},!1,"amf.plugins.domain.webapi.models.security.Settings",{oJ:1,f:1,de:1,Wc:1,Rc:1});function I1a(){this.hh=this.vg=null}I1a.prototype=new WCa;I1a.prototype.constructor=I1a;d=I1a.prototype;d.a=function(){J1a=this;this.hh=ju().na;this.vg="Rdf";return this};d.$V=function(a,b,c,e){return x(this.hh.IC)&&!e.iy?iba(a,b):w()};d.vGa=function(){z();Oj();return(new $g).a().wa()};d.l3=function(a,b){a=this.hh.IC;return A0a(b)&&x(a)?(a.i,rMa()):w()};d.wh=function(){return this.vg};d.Sp=function(){return G()};
d.cn=function(){return hb(ib(),jb(function(){return function(){return eha()}}(this)),um())};d.$classData=q({q2a:0},!1,"amf.plugins.syntax.RdfSyntaxPlugin$",{q2a:1,b7:1,f:1,wq:1,Fb:1});var J1a=void 0;function eha(){J1a||(J1a=(new I1a).a());return J1a}function K1a(){this.hh=this.vg=null}K1a.prototype=new WCa;K1a.prototype.constructor=K1a;d=K1a.prototype;d.a=function(){L1a=this;this.hh=ju().na;this.vg="SYaml";return this};
d.$V=function(a,b,c,e){if(0===xa(b))return w();if("application/ld+json"!==a&&"application/json"!==a||e.iy||!this.hh.IC.qa()){a=("json"===M1a(a)?CF(DF(),b,c.Xg,qE().xn,c):DKa(gwa(iwa(),b,c.Xg,c))).PA(!0);if(a.Cd(t(new u,function(){return function(a){return kG(a)}}(this)))){c=(new N1a).a();c=hd(a,c);if(c.b())return w();c=c.c();b=(new O1a).a();a=hd(a,b);return(new A).d(Vp(new Wp,c,a))}b=(new P1a).a();a=hd(a,b);if(a.b())return w();a=a.c();ZE();Zf();R();b=sq().Td;b=[lq(R(),b,O().ua)];if(0===(b.length|
0))xq(),yq(),b=Bq((new zq).a());else{xq();yq();e=(new zq).a();for(var f=0,g=b.length|0;f<g;)LG(e,b[f]),f=1+f|0;b=Bq(e)}return(new A).d(Vp(new Wp,tva(b,c.Xg),(new A).d(a)))}this.hh.IC.c();return iba(a,b)};d.vGa=function(){return H(z(),(new J).aa("application/yaml application/x-yaml text/yaml text/x-yaml application/json text/json application/raml text/vnd.yaml".split(" ")))};function M1a(a){return-1!==(a.indexOf("json")|0)?"json":"yaml"}
d.l3=function(a,b,c,e){if(bd(b)){b=b.Vd;if("yaml"===M1a(a))hda(),a=z(),Uwa(c,H(a,(new J).aa([b])),e);else{owa();try{bG(lwa(jwa(c,e),b.Bd),"\n")}finally{(new Xj).d(c)}}return(new A).d(c)}return A0a(b)&&this.hh.IC.qa()?(this.hh.IC.c(),rMa()):w()};d.wh=function(){return this.vg};d.Sp=function(){return G()};d.cn=function(){return hb(ib(),jb(function(){return function(){return op()}}(this)),um())};d.$classData=q({r2a:0},!1,"amf.plugins.syntax.SYamlSyntaxPlugin$",{r2a:1,b7:1,f:1,wq:1,Fb:1});var L1a=void 0;
function op(){L1a||(L1a=(new K1a).a());return L1a}function K1(){vE.call(this)}K1.prototype=new xY;K1.prototype.constructor=K1;function Q1a(){}Q1a.prototype=K1.prototype;K1.prototype.e=function(a){vE.prototype.pe.call(this,a,null,0,!0);return this};function L1(a){return!!(a&&a.$classData&&a.$classData.v.WY)}K1.prototype.$classData=q({WY:0},!1,"java.io.IOException",{WY:1,Kf:1,Fe:1,f:1,n:1});function R1a(){}R1a.prototype=new r;R1a.prototype.constructor=R1a;function S1a(){}S1a.prototype=R1a.prototype;
R1a.prototype.nT=function(){};function MR(){this.QI=null;this.Vr=0;this.EF=null;this.No=0;this.In=OG();this.GF=this.uf=0}MR.prototype=new SR;MR.prototype.constructor=MR;d=MR.prototype;d.Nv=function(){return-64>=this.uf||this.uf>$Y(this)?OG():T1a(this).Nv()};d.a=function(){this.QI=null;this.No=this.Vr=0;this.In=OG();this.GF=this.uf=0;return this};
function M1(a,b){var c=a.uf,e=c>>31,f=-c|0,c=0!==c?~e:-e|0,g=$Y(a),e=g>>31,g=f+g|0,f=(-2147483648^g)<(-2147483648^f)?1+(c+e|0)|0:c+e|0;if(0===f?-2147483629<(-2147483648^g):0<f)throw(new BX).e("Rounding necessary");a=U1a(a);if(eD(fD(),a)<b)return a.Nv();throw(new BX).e("Rounding necessary");}d.h=function(a){if(a&&a.$classData&&a.$classData.v.ywa&&a.uf===this.uf){if(64>this.No){a=a.In;var b=a.$a,c=this.In;return a.Na===c.Na&&b===c.$a}return jCa(vb(),this.EF,a.EF)}return!1};
function V1a(a){if(0===a.No){a=a.In;var b=a.$a;return!(-1===a.Na&&-1===b)}return!1}
function W1a(a){if(V1a(a))return a;var b=-1+nD().MF.j.length|0,c=1,e=aZ(a),f=a=a.uf;a>>=31;a:for(;;){if(!OZa(e,0)){var g=X1a(e,nD().MF.j[c]);if(0===g.k2.ff){var e=g.d2,h=c,g=h>>31,k=a;a=f-h|0;f=(-2147483648^a)>(-2147483648^f)?-1+(k-g|0)|0:k-g|0;c=c<b?1+c|0:c;g=f;f=a;a=g;continue a}if(1!==c){c=1;continue a}}c=f;b=e;c=(new aq).La(c,a);break}c=Ea(c);e=Ea((new aq).La(c.Na,c.$a));c=e.Na;e=e.$a;return(new MR).Dba(b,uWa(AX(),(new aq).La(c,e)))}
d.Dba=function(a,b){MR.prototype.a.call(this);if(null===a)throw(new Rg).e("unscaledVal \x3d\x3d null");this.uf=b;QZa(this,a);return this};
d.u=function(){if(null!==this.QI)return this.QI;if(32>this.No)return this.QI=wta(lD(),this.In,this.uf);var a=aZ(this),b=kD(lD(),a);if(0===this.uf)return b;var c=0>aZ(this).ff?2:1,e=b.length|0,f=this.uf,g=f>>31,a=-f|0,g=0!==f?~g:-g|0,h=e>>31,f=a+e|0,g=(-2147483648^f)<(-2147483648^a)?1+(g+h|0)|0:g+h|0,h=c>>31,a=f-c|0,f=(-2147483648^a)>(-2147483648^f)?-1+(g-h|0)|0:g-h|0;if(0<this.uf&&(-1===f?2147483642<=(-2147483648^a):-1<f))if(0<=f)AX(),a=e-this.uf|0,AX(),a=b.substring(0,a)+"."+b.substring(a);else{AX();
AX();e=-1+c|0;AX();b=b.substring(0,e)+"0."+b.substring(e);c=1+c|0;e=AX().RBa;f=(new lk).a();g=!0;nk(f,"");for(var h=0,k=e.j.length;h<k;){var l=Dc(e.j[h]);g?(ok(f,l),g=!1):(nk(f,""),ok(f,l));h=1+h|0}nk(f,"");e=f.Be.Ue;a=-1-a|0;AX();a=e.substring(0,a);a=""+b.substring(0,c)+a+b.substring(c)}else b=(1<=(e-c|0)?(AX(),AX(),b.substring(0,c)+"."+b.substring(c)):b)+"E",a=((0===f?0!==a:0<f)?b+"+":b)+QBa(Fa(),a,f);return this.QI=a};
function Y1a(a){if(64>a.No){if(0>a.In.$a)return-1;var b=a.In;a=b.Na;b=b.$a;return(0===b?0!==a:0<b)?1:0}return aZ(a).ff}d.Wn=function(a){return Z1a(this,a)};d.La=function(a,b){MR.prototype.a.call(this);this.In=(new aq).La(a,a>>31);this.uf=b;AX();this.No=32-fa(0>a?~a:a)|0;return this};function T1a(a){if(0===a.uf||V1a(a))return aZ(a);if(0>a.uf){var b=aZ(a),c=nD();a=a.uf;var e=a>>31;return yD(b,AD(c,(new aq).La(-a|0,0!==a?~e:-e|0)))}b=aZ(a);c=nD();a=a.uf;return PZa(b,AD(c,(new aq).La(a,a>>31)))}
function $1a(a,b){var c=a.uf,e=c>>31,f=b>>31;b=c-b|0;c=(-2147483648^b)>(-2147483648^c)?-1+(e-f|0)|0:e-f|0;return 64>a.No?(e=a.In,f=e.$a,0===e.Na&&0===f?(a=AX(),b=(new aq).La(b,c),c=b.Na,a=b.Na===c&&b.$a===c>>31?nWa(a,OG(),b.Na):0<=b.$a?(new MR).La(0,2147483647):(new MR).La(0,-2147483648)):a=nWa(AX(),a.In,uWa(AX(),(new aq).La(b,c))),a):(new MR).Dba(aZ(a),uWa(AX(),(new aq).La(b,c)))}
function NR(a){if(0===a.GF){if(0===a.No)var b=1;else if(64>a.No){var c=a.In;if(0===c.Na&&-2147483648===c.$a)b=19;else{gH();b=AX().mS;if(0>c.$a)var e=c.Na,c=c.$a,e=(new aq).La(-e|0,0!==e?~c:-c|0);else e=c;b:{var c=0,f=b.j.length;for(;;){if(c===f){b=-1-c|0;break b}var g=(c+f|0)>>>1|0,h=b.j[g],k=Ea(h),l=k.Na,k=k.$a,p=e.$a;if(p===k?(-2147483648^e.Na)<(-2147483648^l):p<k)f=g;else{if(ub(vb(),e,h)){b=g;break b}c=1+g|0}}}b=0>b?-1-b|0:1+b|0}}else b=1+Ba(.3010299956639812*(-1+a.No|0))|0,e=aZ(a),c=nD(),b=0!==
PZa(e,AD(c,(new aq).La(b,b>>31))).ff?1+b|0:b;a.GF=b}return a.GF}function U1a(a){if(0===a.uf||V1a(a))return aZ(a);if(0>a.uf){var b=aZ(a),c=nD();a=a.uf;var e=a>>31;return yD(b,AD(c,(new aq).La(-a|0,0!==a?~e:-e|0)))}if(a.uf>$Y(a)||a.uf>a2a(aZ(a)))throw(new BX).e("Rounding necessary");b=aZ(a);c=nD();a=a.uf;a=LZa(b,AD(c,(new aq).La(a,a>>31)));if(0!==a.j[1].ff)throw(new BX).e("Rounding necessary");return a.j[0]}function QZa(a,b){a.EF=b;a.No=eD(fD(),b);64>a.No&&(a.In=b.Nv())}
function $Y(a){return 0<a.GF?a.GF:1+Ba(.3010299956639812*(-1+a.No|0))|0}
d.VB=function(){var a=Y1a(this),b=this.No,c=b>>31,e=Fa(),f=hE(e,this.uf/.3010299956639812),e=e.be,f=b-f|0,b=(-2147483648^f)>(-2147483648^b)?-1+(c-e|0)|0:c-e|0;if((-1===b?2147482574>(-2147483648^f):-1>b)||0===a)return 0*a;if(0===b?-2147482623<(-2147483648^f):0<b)return Infinity*a;c=NZa(aZ(this));b=1076;if(0>=this.uf)f=nD(),e=-this.uf|0,e=yD(c,AD(f,(new aq).La(e,e>>31)));else{var e=nD(),g=this.uf,e=AD(e,(new aq).La(g,g>>31)),f=100-f|0;0<f?(b=b-f|0,f=zD(c,f)):f=c;f=X1a(f,e);c=bZ(MZa(f.k2),e);b=-2+b|
0;f=zD(f.d2,2);e=dD();c=1+(ca(c,3+c|0)/2|0)|0;c=rD(e,(new aq).La(c,c>>31));e=pD(sD(),f,c)}var f=a2a(e),c=-54+eD(fD(),e)|0,h,k;if(0<c){if(e=Pta(e,c).Nv(),g=e.$a,e=e.Na,h=g,g=e,k=h,1===(1&e)&&f<c||3===(3&e)){var l=2+e|0,e=l;h=-2147483646>(-2147483648^l)?1+h|0:h}}else e=e.Nv(),g=e.Na,k=e.$a,h=-c|0,e=0===(32&h)?g<<h:0,h=0===(32&h)?(g>>>1|0)>>>(31-h|0)|0|k<<h:g<<h,g=e,k=h,3===(3&e)&&(e=l=2+e|0,h=-2147483646>(-2147483648^l)?1+h|0:h);0===(4194304&h)?(e=e>>>1|0|h<<31,h>>=1,b=b+c|0):(e=e>>>2|0|h<<30,h>>=2,
b=b+(1+c|0)|0);if(2046<b)return Infinity*a;if(-53>b)return 0*a;if(0>=b){e=g>>>1|0|k<<31;h=k>>1;k=63+b|0;g=e&(0===(32&k)?-1>>>k|0|-2<<(31-k|0):-1>>>k|0);k=h&(0===(32&k)?-1>>>k|0:0);b=-b|0;e=0===(32&b)?e>>>b|0|h<<1<<(31-b|0):h>>b;h=0===(32&b)?h>>b:h>>31;if(3===(3&e)||(1!==(1&e)||0===g&&0===k?0:f<c))b=h,e=f=1+e|0,h=0===f?1+b|0:b;b=0;f=h;e=e>>>1|0|f<<31;h=f>>1}f=e;b=-2147483648&a>>31|b<<20|1048575&h;a=paa();b=(new aq).La(f,b);a.cI?(a.fP[a.Maa]=b.$a,a.fP[a.xca]=b.Na,a=+a.Faa[0]):a=KBa(b);return a};
function oWa(a,b,c){MR.prototype.a.call(a);a.In=b;a.uf=c;a.No=rWa(AX(),b);return a}d.y=function(){if(0===this.Vr)if(64>this.No){this.Vr=this.In.Na;var a=this.In.$a;this.Vr=ca(33,this.Vr)+a|0;this.Vr=ca(17,this.Vr)+this.uf|0}else this.Vr=ca(17,this.EF.y())+this.uf|0;return this.Vr};d.e=function(a){MR.prototype.NG.call(this,Dt(ta(),a),0,a.length|0);return this};d.xt=function(){return-32>=this.uf||this.uf>$Y(this)?0:T1a(this).xt()};d.CE=function(a){MR.prototype.Dba.call(this,a,0);return this};
d.tK=function(){var a=this.No,b=a>>31,c=Fa(),e=hE(c,this.uf/.3010299956639812),c=c.be,e=a-e|0,a=(-2147483648^e)>(-2147483648^a)?-1+(b-c|0)|0:b-c|0,b=ea(Y1a(this));return(-1===a?2147483499>(-2147483648^e):-1>a)||0===b?ea(0*b):(0===a?-2147483519<(-2147483648^e):0<a)?ea(Infinity*b):ea(this.VB())};
d.NG=function(a,b,c){MR.prototype.a.call(this);var e=-1+(b+c|0)|0;if(null===a)throw(new Rg).e("in \x3d\x3d null");if(e>=a.j.length||0>b||0>=c||0>e)throw(new uY).e("Bad offset/length: offset\x3d"+b+" len\x3d"+c+" in.length\x3d"+a.j.length);c=b;if(b<=e&&43===a.j[b]){c=1+c|0;if(c<e){AX();b=[Dc(43),Dc(45)];for(var f=Dc(a.j[c]),g=0;;){if(g<(b.length|0))var h=b[g],h=!1===ub(vb(),h,f);else h=!1;if(h)g=1+g|0;else break}b=g!==(b.length|0)}else b=!1;if(b)throw(new uY).e("For input string: "+a.u());}else{b=
c<=e&&45===a.j[c];if((1+c|0)<e){AX();f=[Dc(43),Dc(45)];g=Dc(a.j[1+c|0]);for(h=0;;){if(h<(f.length|0))var k=f[h],k=!1===ub(vb(),k,g);else k=!1;if(k)h=1+h|0;else break}f=h!==(f.length|0)}else f=!1;if(b&&f)throw(new uY).e("For input string: "+a.u());}g=c;for(b=!1;;){if(c<=e){AX();f=[Dc(46),Dc(101),Dc(69)];h=Dc(a.j[c]);for(k=0;;){if(k<(f.length|0))var l=f[k],l=!1===ub(vb(),l,h);else l=!1;if(l)k=1+k|0;else break}f=k===(f.length|0)}else f=!1;if(f)b||48===a.j[c]||(b=!0),c=1+c|0;else break}f=(new ZR).NG((new YR).dx(a).MI,
g,c).u();g=c-g|0;if(c<=e&&46===a.j[c]){for(h=c=1+c|0;;){if(c<=e){AX();for(var k=[Dc(101),Dc(69)],l=Dc(a.j[c]),p=0;;){if(p<(k.length|0))var y=k[p],y=!1===ub(vb(),y,l);else y=!1;if(y)p=1+p|0;else break}k=p===(k.length|0)}else k=!1;if(k)b||48===a.j[c]||(b=!0),c=1+c|0;else break}this.uf=c-h|0;b=""+f+(new ZR).NG((new YR).dx(a).MI,h,h+this.uf|0).u();f=g+this.uf|0}else this.uf=0,b=f,f=g;f|=0;if(c<=e){AX();g=[Dc(101),Dc(69)];h=Dc(a.j[c]);for(k=0;;)if(k<(g.length|0)?(l=g[k],l=!1===ub(vb(),l,h)):l=!1,l)k=1+
k|0;else break;g=k!==(g.length|0)}else g=!1;if(g&&(c=1+c|0,g=(1+c|0)<=e&&45!==a.j[1+c|0],c=c<=e&&43===a.j[c]&&g?1+c|0:c,c=XD(ta(),a,c,(1+e|0)-c|0),a=this.uf,e=a>>31,g=qC(pC(),c,10),c=g>>31,h=this.uf=g=a-g|0,g!==h||((-2147483648^g)>(-2147483648^a)?-1+(e-c|0)|0:e-c|0)!==h>>31))throw(new uY).e("Scale out of range");19>f?(this.In=tC(uC(),b,10),this.No=rWa(AX(),this.In)):QZa(this,(new bD).e(b));return this};function aZ(a){null===a.EF&&(a.EF=rD(dD(),a.In));return a.EF}
function Z1a(a,b){var c=Y1a(a),e=Y1a(b);if(c===e){if(a.uf===b.uf&&64>a.No&&64>b.No){var c=a.In,e=c.Na,c=c.$a,f=b.In,g=f.$a;if(c===g?(-2147483648^e)<(-2147483648^f.Na):c<g)return-1;e=a.In;a=e.Na;e=e.$a;b=b.In;c=b.$a;return(e===c?(-2147483648^a)>(-2147483648^b.Na):e>c)?1:0}var f=a.uf,g=f>>31,e=b.uf,h=e>>31,e=f-e|0,f=(-2147483648^e)>(-2147483648^f)?-1+(g-h|0)|0:g-h|0,g=$Y(a)-$Y(b)|0,h=g>>31,k=1+e|0,l=0===k?1+f|0:f;if(h===l?(-2147483648^g)>(-2147483648^k):h>l)return c;h=g>>31;k=-1+e|0;l=-1!==k?f:-1+f|
0;if(h===l?(-2147483648^g)<(-2147483648^k):h<l)return-c|0;a=aZ(a);b=aZ(b);if(0>f)c=nD(),a=yD(a,AD(c,(new aq).La(-e|0,0!==e?~f:-f|0)));else if(0===f?0!==e:0<f)b=yD(b,AD(nD(),(new aq).La(e,f)));return bZ(a,b)}return c<e?-1:1}var sWa=q({ywa:0},!1,"java.math.BigDecimal",{ywa:1,By:1,f:1,n:1,sh:1});MR.prototype.$classData=sWa;function bD(){this.ne=null;this.Vr=this.w1=this.ff=this.Mf=0}bD.prototype=new SR;bD.prototype.constructor=bD;
function Qta(a,b){if(0>b)throw(new BX).e("Negative exponent");if(0===b)return dD().ZF;if(1===b||a.h(dD().ZF)||a.h(dD().Nz))return a;if(OZa(a,0)){a:{nD();var c=dD().ZF,e=a;for(;;)if(1<b)a=0!==(1&b)?yD(c,e):c,1===e.Mf?e=yD(e,e):(c=ia(La(Ra),[e.Mf<<1]),c=Mta(e.ne,e.Mf,c),e=new bD,bD.prototype.a.call(e),0===c.j.length?(e.ff=0,e.Mf=1,e.ne=qD(ye(),0,(new J).aa([]))):(e.ff=1,e.Mf=c.j.length,e.ne=c,cD(e))),b>>=1,c=a;else{a=yD(c,e);break a}}return a}for(c=1;!OZa(a,c);)c=1+c|0;var e=dD(),f=ca(c,b);if(f<e.n9.j.length)e=
e.n9.j[f];else{var e=f>>5,f=31&f,g=ia(La(Ra),[1+e|0]);g.j[e]=1<<f;e=aD(new bD,1,1+e|0,g)}return yD(e,Qta(Pta(a,c),b))}d=bD.prototype;d.Nv=function(){if(1<this.Mf)var a=this.ne.j[0],b=this.ne.j[1];else a=this.ne.j[0],b=0;var c=this.ff,e=c>>31,f=65535&c,g=c>>>16|0,h=65535&a,k=a>>>16|0,l=ca(f,h),h=ca(g,h),p=ca(f,k),f=l+((h+p|0)<<16)|0,l=(l>>>16|0)+p|0,b=(((ca(c,b)+ca(e,a)|0)+ca(g,k)|0)+(l>>>16|0)|0)+(((65535&l)+h|0)>>>16|0)|0;return(new aq).La(f,b)};d.a=function(){this.w1=-2;this.Vr=0;return this};
function PZa(a,b){if(0===b.ff)throw(new BX).e("BigInteger divide by zero");var c=b.ff;if(1===b.Mf&&1===b.ne.j[0])return 0<b.ff?a:Gta(a);var e=a.ff,f=a.Mf,g=b.Mf;if(2===(f+g|0))return a=a.ne.j[0],b=b.ne.j[0],f=Fa(),b=jD(f,a,0,b,0),a=f.be,e!==c&&(c=b,e=a,b=-c|0,a=0!==c?~e:-e|0),rD(dD(),(new aq).La(b,a));var h=f!==g?f>g?1:-1:Dta(sD(),a.ne,b.ne,f);if(0===h)return e===c?dD().ZF:dD().YY;if(-1===h)return dD().Nz;var h=1+(f-g|0)|0,k=ia(La(Ra),[h]),c=e===c?1:-1;1===g?Ata(zta(),k,a.ne,f,b.ne.j[0]):yta(zta(),
k,h,a.ne,f,b.ne,g);c=aD(new bD,c,h,k);cD(c);return c}d.h=function(a){if(a&&a.$classData&&a.$classData.v.zwa){var b;if(b=this.ff===a.ff&&this.Mf===a.Mf){a=a.ne;b=(new ZQ).Zh(0,this.Mf,1);b=hD(new iD,b,0,b.Ka());for(var c=!0;c&&b.Qa();)c=b.Sa()|0,c=this.ne.j[c]===a.j[c];b=c}a=b}else a=!1;return a};d.u=function(){return kD(lD(),this)};d.Wn=function(a){return bZ(this,a)};d.La=function(a,b){bD.prototype.a.call(this);this.ff=a;this.Mf=1;this.ne=qD(ye(),b,(new J).aa([]));return this};
function tta(a){if(-2===a.w1){if(0===a.ff)var b=-1;else for(b=0;0===a.ne.j[b];)b=1+b|0;a.w1=b}return a.w1}function NZa(a){return 0>a.ff?aD(new bD,1,a.Mf,a.ne):a}
function X1a(a,b){var c=b.ff;if(0===c)throw(new BX).e("BigInteger divide by zero");var e=b.Mf;b=b.ne;if(1===e){zta();b=b.j[0];var f=a.ne,g=a.Mf,e=a.ff;1===g?(f=f.j[0],a=+(f>>>0)/+(b>>>0)|0,g=0,b=+(f>>>0)%+(b>>>0)|0,f=0,e!==c&&(c=a,a=-c|0,g=0!==c?~g:-g|0),0>e&&(c=b,e=f,b=-c|0,f=0!==c?~e:-e|0),c=nta(new ZC,rD(dD(),(new aq).La(a,g)),rD(dD(),(new aq).La(b,f)))):(c=e===c?1:-1,a=ia(La(Ra),[g]),b=Ata(0,a,f,g,b),b=qD(ye(),b,(new J).aa([])),c=aD(new bD,c,g,a),e=aD(new bD,e,1,b),cD(c),cD(e),c=nta(new ZC,c,
e));return c}g=a.ne;f=a.Mf;if(0>(f!==e?f>e?1:-1:Dta(sD(),g,b,f)))return nta(new ZC,dD().Nz,a);a=a.ff;var h=1+(f-e|0)|0,c=a===c?1:-1,k=ia(La(Ra),[h]);b=yta(zta(),k,h,g,f,b,e);c=aD(new bD,c,h,k);e=aD(new bD,a,e,b);cD(c);cD(e);return nta(new ZC,c,e)}function cD(a){a:for(;;){if(0<a.Mf&&(a.Mf=-1+a.Mf|0,0===a.ne.j[a.Mf]))continue a;break}0===a.ne.j[a.Mf]&&(a.ff=0);a.Mf=1+a.Mf|0}
function OZa(a,b){var c=b>>5;if(0===b)return 0!==(1&a.ne.j[0]);if(0>b)throw(new BX).e("Negative bit address");if(c>=a.Mf)return 0>a.ff;if(0>a.ff&&c<tta(a))return!1;var e=a.ne.j[c];0>a.ff&&(e=tta(a)===c?-e|0:~e);return 0!==(e&1<<(31&b))}function a2a(a){if(0===a.ff)return-1;var b=tta(a);a=a.ne.j[b];return(b<<5)+(0===a?32:31-fa(a&(-a|0))|0)|0}function Gta(a){return 0===a.ff?a:aD(new bD,-a.ff|0,a.Mf,a.ne)}function aD(a,b,c,e){bD.prototype.a.call(a);a.ff=b;a.Mf=c;a.ne=e;return a}
function MZa(a){if(0!==a.ff){fD();var b=a.Mf,c=1+b|0,e=ia(La(Ra),[c]);ota(0,e,a.ne,b);a=aD(new bD,a.ff,c,e);cD(a)}return a}
d.bn=function(a,b){bD.prototype.a.call(this);dD();if(null===a)throw(new Rg).a();if(2>b||36<b)throw(new uY).e("Radix out of range");if(null===a)throw(new Rg).a();if(""===a)throw(new uY).e("Zero length BigInteger");if(""===a||"+"===a||"-"===a)throw(new uY).e("Zero length BigInteger");var c=a.length|0;if(45===(65535&(a.charCodeAt(0)|0)))var e=-1,f=1,g=-1+c|0;else 43===(65535&(a.charCodeAt(0)|0))?(f=e=1,g=-1+c|0):(e=1,f=0,g=c);var e=e|0,h=f|0,f=g|0,g=-1+c|0;if(!(h>=c))for(var k=h;;){var l=65535&(a.charCodeAt(k)|
0);if(43===l||45===l)throw(new uY).e("Illegal embedded sign character");if(k===g)break;k=1+k|0}var g=lD().$ga.j[b],k=f/g|0,p=f%g|0;0!==p&&(k=1+k|0);f=ia(La(Ra),[k]);k=lD().Wga.j[-2+b|0];l=0;for(p=h+(0===p?g:p)|0;h<c;){var y=qC(pC(),a.substring(h,p),b),h=Ota(nD(),f,f,l,k);sD();for(var I=f,E=l,V=y,y=0;0!==V&&y<E;){var da=V,V=da+I.j[y]|0,da=(-2147483648^V)<(-2147483648^da)?1:0;I.j[y]=V;V=da;y=1+y|0}h=h+V|0;f.j[l]=h;l=1+l|0;h=p;p=h+g|0}this.ff=e;this.Mf=l;this.ne=f;cD(this);return this};
d.y=function(){if(0===this.Vr){var a=this.Mf,b=-1+a|0;if(!(0>=a))for(a=0;;){var c=a;this.Vr=ca(33,this.Vr)+this.ne.j[c]|0;if(a===b)break;a=1+a|0}this.Vr=ca(this.Vr,this.ff)}return this.Vr};function LZa(a,b){a=X1a(a,b);var c=(new J).aa([a.d2,a.k2]);a=c.z.length|0;a=ia(La(xD),[a]);b=0;for(c=hD(new iD,c,0,c.z.length|0);c.Qa();){var e=c.Sa();a.j[b]=e;b=1+b|0}return a}d.e=function(a){bD.prototype.bn.call(this,a,10);return this};
function zD(a,b){return 0===b||0===a.ff?a:0<b?pta(fD(),a,b):rta(fD(),a,-b|0)}d.xt=function(){return ca(this.ff,this.ne.j[0])};function yD(a,b){return 0===b.ff||0===a.ff?dD().Nz:Nta(nD(),a,b)}function wWa(a,b,c){bD.prototype.a.call(a);a.ff=b;b=c.$a;0===b?(a.Mf=1,a.ne=qD(ye(),c.Na,(new J).aa([]))):(a.Mf=2,a.ne=qD(ye(),c.Na,(new J).aa([b])));return a}function Pta(a,b){return 0===b||0===a.ff?a:0<b?rta(fD(),a,b):pta(fD(),a,-b|0)}
function bZ(a,b){return a.ff>b.ff?1:a.ff<b.ff?-1:a.Mf>b.Mf?a.ff:a.Mf<b.Mf?-b.ff|0:ca(a.ff,Dta(sD(),a.ne,b.ne,a.Mf))}var xD=q({zwa:0},!1,"java.math.BigInteger",{zwa:1,By:1,f:1,n:1,sh:1});bD.prototype.$classData=xD;function EX(){vY.call(this)}EX.prototype=new OYa;EX.prototype.constructor=EX;EX.prototype.bn=function(a,b){vY.prototype.bn.call(this,a,b);return this};var yWa=q({N2a:0},!1,"java.math.RoundingMode",{N2a:1,lH:1,f:1,sh:1,n:1});EX.prototype.$classData=yWa;
function bk(){this.Bm=this.N1=null;this.zA=this.oC=!1;this.OE=this.eV=this.nC=this.kP=this.BA=null;this.nx=0;this.yA=this.pC=this.AA=null}bk.prototype=new r;bk.prototype.constructor=bk;d=bk.prototype;
d.h=function(a){if(a&&a.$classData&&a.$classData.v.Bwa){var b=function(){return function(a,b){a:{QL();var c=0;for(;;){if(c>=(a.length|0)||c>=(b.length|0)){a=(a.length|0)-(b.length|0)|0;break a}var e=(65535&(a.charCodeAt(c)|0))-(65535&(b.charCodeAt(c)|0))|0;if(0!==e){a=e;break a}if(37===(65535&(a.charCodeAt(c)|0))){if(!((a.length|0)>(2+c|0)))throw(new fJ).d("assertion failed: Invalid escape in URI");if(!((b.length|0)>(2+c|0)))throw(new fJ).d("assertion failed: Invalid escape in URI");ta();e=a.substring(1+
c|0,3+c|0);e=BJ(0,e,b.substring(1+c|0,3+c|0));if(0!==e){a=e;break a}c=3+c|0}else c=1+c|0}}return a}}(this);if(ub(vb(),this.BA,a.BA))if(this.zA!==a.zA)a=this.zA?1:-1;else if(this.zA){var c=b(this.kP,a.kP)|0;0!==c?a=c:(c=this.yA,a=a.yA,a=ub(vb(),c,a)?0:void 0===c?-1:void 0===a?1:b(c,a)|0)}else if(ub(vb(),this.nC,a.nC))ub(vb(),this.AA,a.AA)?ub(vb(),this.pC,a.pC)?(c=this.yA,a=a.yA):(c=this.pC,a=a.pC):(c=this.AA,a=a.AA),a=ub(vb(),c,a)?0:void 0===c?-1:void 0===a?1:b(c,a)|0;else if(void 0!==this.OE&&void 0!==
a.OE){var c=this.eV,e=a.eV,b=ub(vb(),c,e)?0:void 0===c?-1:void 0===e?1:b(c,e)|0;if(0!==b)a=b;else{ta();b=this.OE;if(void 0===b)throw(new PH).e("undefined.get");c=a.OE;if(void 0===c)throw(new PH).e("undefined.get");b=BJ(0,b,c);a=0!==b?b:this.nx===a.nx?0:-1===this.nx?-1:-1===a.nx?1:this.nx-a.nx|0}}else c=this.nC,a=a.nC,a=ub(vb(),c,a)?0:void 0===c?-1:void 0===a?1:b(c,a)|0;else b=this.BA,void 0===b?a=-1:(a=a.BA,a=void 0===a?1:BJ(ta(),b,a));return 0===a}return!1};d.u=function(){return this.N1};
d.Wn=function(a){return b2a(this,a)};function HEa(a){if(Tc(a))var b=a.fa(),b=!(null!==b&&pa(b,".."));else b=!1;return b?(a=a.fa(),!(null!==a&&pa(a,""))):!1}
function b2a(a,b){var c=function(){return function(a,b){return a===b?0:a<b?-1:1}}(a);if(ub(vb(),a.BA,b.BA)){if(a.zA!==b.zA)return a.zA?1:-1;if(a.zA){var e=c(a.kP,b.kP)|0;if(0!==e)return e;a=a.yA;b=b.yA;return ub(vb(),a,b)?0:void 0===a?-1:void 0===b?1:c(a,b)|0}if(ub(vb(),a.nC,b.nC)){if(ub(vb(),a.AA,b.AA)){if(ub(vb(),a.pC,b.pC))return a=a.yA,b=b.yA,ub(vb(),a,b)?0:void 0===a?-1:void 0===b?1:c(a,b)|0;a=a.pC;b=b.pC;return ub(vb(),a,b)?0:void 0===a?-1:void 0===b?1:c(a,b)|0}a=a.AA;b=b.AA;return ub(vb(),
a,b)?0:void 0===a?-1:void 0===b?1:c(a,b)|0}if(void 0!==a.OE&&void 0!==b.OE){var e=a.eV,f=b.eV,c=ub(vb(),e,f)?0:void 0===e?-1:void 0===f?1:c(e,f)|0;if(0!==c)return c;ta();c=a.OE;if(void 0===c)throw(new PH).e("undefined.get");e=b.OE;if(void 0===e)throw(new PH).e("undefined.get");c=BJ(0,c,e);return 0!==c?c:a.nx===b.nx?0:-1===a.nx?-1:-1===b.nx?1:a.nx-b.nx|0}a=a.nC;b=b.nC;return ub(vb(),a,b)?0:void 0===a?-1:void 0===b?1:c(a,b)|0}c=a.BA;if(void 0===c)return-1;b=b.BA;return void 0===b?1:BJ(ta(),c,b)}
d.y=function(){var a=53722356,a=xI().Ga(a,yI(zI(),this.BA)),a=xI().Ga(a,yI(zI(),AWa(QL(),this.kP))),b=xI();zI();var c=this.yA,c=void 0===c?void 0:AWa(QL(),c),a=b.qL(a,yI(0,c));return xI().Wd(a,3)};
d.e=function(a){this.N1=a;a=Wa().Ia(QL().SBa.exec(a));if(a.b())throw(new N1).tc(this.N1,"Malformed URI");this.Bm=a=a.c();this.oC=void 0!==this.Bm[1];this.zA=void 0!==this.Bm[10];this.BA=this.Bm[1];a=this.oC?this.zA?this.Bm[10]:this.Bm[2]:this.Bm[11];if(void 0===a)throw(new PH).e("undefined.get");this.kP=a;a=this.oC?this.Bm[3]:this.Bm[12];this.nC=void 0===a||""!==a?a:void 0;this.eV=this.oC?this.Bm[4]:this.Bm[13];this.OE=this.oC?this.Bm[5]:this.Bm[14];a=this.oC?this.Bm[6]:this.Bm[15];void 0===a?a=-1:
(a=(new ph).e(a),a=qC(pC(),a.ia,10));this.nx=a;void 0!==(this.oC?this.Bm[3]:this.Bm[12])?(a=this.oC?this.Bm[7]:this.Bm[16],a=void 0===a?"":a):this.oC?a=this.Bm[8]:(a=this.Bm[17],a=void 0===a?this.Bm[18]:a);this.AA=a;this.pC=this.oC?this.Bm[9]:this.Bm[19];this.yA=this.Bm[20];this.Bm=null;return this};d.$classData=q({Bwa:0},!1,"java.net.URI",{Bwa:1,f:1,q:1,n:1,sh:1});function N1(){vE.call(this);this.cx=0}N1.prototype=new xY;N1.prototype.constructor=N1;
N1.prototype.tc=function(a,b){N1.prototype.u6a.call(this,a,b,-1);return this};N1.prototype.u6a=function(a,b,c){this.cx=c;vE.prototype.pe.call(this,b+" in "+a+" at "+c,null,0,!0);return this};N1.prototype.$classData=q({Cwa:0},!1,"java.net.URISyntaxException",{Cwa:1,Kf:1,Fe:1,f:1,n:1});function Uta(){FD.call(this);this.bt=!1}Uta.prototype=new CWa;Uta.prototype.constructor=Uta;function YOa(a){var b=a.hd;if(b===a.$e)throw(new QD).a();a.hd=1+b|0;return a.Ni.j[a.wk+b|0]|0}
function uS(a,b){if(a.bt)throw(new ND).a();var c=a.hd;if(c===a.$e)throw(new OD).a();a.hd=1+c|0;a.Ni.j[a.wk+c|0]=b|0}Uta.prototype.$classData=q({T2a:0},!1,"java.nio.HeapByteBuffer",{T2a:1,Q2a:1,Dwa:1,f:1,sh:1});function c2a(){vE.call(this)}c2a.prototype=new PYa;c2a.prototype.constructor=c2a;function eua(a){var b=new c2a;wY.prototype.gm.call(b,a);return b}c2a.prototype.$classData=q({a3a:0},!1,"java.nio.charset.CoderMalfunctionError",{a3a:1,x1:1,Fe:1,f:1,n:1});
function aF(){sR.call(this);this.Bt=null}aF.prototype=new DYa;aF.prototype.constructor=aF;d=aF.prototype;d.h=function(a){return jG(a)?this.Bt===a.Bt:!1};d.u=function(){return this.Bt};d.aP=function(a,b,c){this.Bt=a;sR.prototype.mc.call(this,b,c);return this};d.y=function(){var a=this.Bt;return ra(ta(),a)};function jG(a){return!!(a&&a.$classData&&a.$classData.v.bxa)}d.$classData=q({bxa:0},!1,"org.yaml.model.YComment",{bxa:1,N4a:1,E8:1,kt:1,f:1});function Oy(){nF.call(this);this.eQ=this.Bd=null}
Oy.prototype=new oF;Oy.prototype.constructor=Oy;d=Oy.prototype;d.mc=function(a,b){nF.prototype.mc.call(this,a,b);a=hd(this.Uf,(new d2a).Hba(this));this.Bd=a.b()?R().yd:a.c();this.eQ=this.Bd.pb().nb;a=this.Uf.ol(t(new u,function(){return function(a){return!Ir(a)}}(this)));b=(new e2a).Hba(this);var c=uv();a.$b(b,c.gc).ng("\n");return this};d.h=function(a){return kG(a)?a.Bd.h(this.Bd):!1};d.u=function(){return"Document: "+this.Bd.u()};d.Gp=function(a){return Iv(this).Gp(a)};
function Iv(a){var b=a.Bd,c=R().yd;Yj(b,c)?(BYa||(BYa=(new pY).a()),a=zYa(a,jb(function(){return function(){return"Empty Document"}}(a)))):a=(new f2a).PU(a.Bd);return a}d.hQ=function(){return this.Bd};function kG(a){return!!(a&&a.$classData&&a.$classData.v.cxa)}d.$classData=q({cxa:0},!1,"org.yaml.model.YDocument",{cxa:1,kt:1,f:1,qJ:1,AB:1});function dF(){nF.call(this);this.eb=this.Bb=null}dF.prototype=new EYa;dF.prototype.constructor=dF;d=dF.prototype;
d.mc=function(a,b){qY.prototype.mc.call(this,a,b);fc();a=this.Uf;b=(new g2a).Y(this);var c=uv();this.Bb=vl(0,a.$b(b,c.gc).Ql(XZa(new fZ,n(INa))));a=Ry(new Sy,Xs());this.Bb.X(t(new u,function(a,b){return function(a){return b.Ic((new P).N(a.Da,a.i))}}(this,a)));this.eb=a.gb;return this};d.h=function(a){if(Aw(a)){var b=this.eb;a=a.eb;return null===b?null===a:O1(b,a)}return Iva(a)&&(a=a.Gp(Pc()),Hp(a))?(b=this.eb,a=a.i.eb,null===b?null===a:O1(b,a)):!1};d.u=function(){return this.Bb.Fk("{",", ","}")};
d.y=function(){var a=this.eb,b=xI();return lAa(b,a,b.yca)};function Aw(a){return!!(a&&a.$classData&&a.$classData.v.fxa)}d.$classData=q({fxa:0},!1,"org.yaml.model.YMap",{fxa:1,rS:1,kt:1,f:1,AB:1});function jF(){nF.call(this)}jF.prototype=new oF;jF.prototype.constructor=jF;function h2a(){}d=h2a.prototype=jF.prototype;d.mc=function(a,b){nF.prototype.mc.call(this,a,b);return this};
d.h=function(a){if(FDa(a))return!1;if(Ir(a)){var b=this.pb().nb,c=a.pb().nb;if(b===c)return b=this.we(),a=a.we(),Yj(b,a)}else if(Iva(a))return a=a.hQ(),Yj(this,a);return!1};d.u=function(){return this.we().u()};d.Gp=function(a){return sv(this,a)};function id(a){a=a.we();return rs(a)?(new A).d(a):w()}d.y=function(){var a=this.pb().nb;return ca(31,va(a))+this.we().y()|0};d.hQ=function(){return this};function Ir(a){return!!(a&&a.$classData&&a.$classData.v.qS)}
var wva=q({qS:0},!1,"org.yaml.model.YNode",{qS:1,kt:1,f:1,qJ:1,AB:1});jF.prototype.$classData=wva;function LF(){sR.call(this)}LF.prototype=new DYa;LF.prototype.constructor=LF;LF.prototype.mc=function(a,b){sR.prototype.mc.call(this,a,b);return this};LF.prototype.u=function(){return this.rF.ng(", ")};function zwa(a){return!!(a&&a.$classData&&a.$classData.v.kxa)}LF.prototype.$classData=q({kxa:0},!1,"org.yaml.model.YNonContent",{kxa:1,N4a:1,E8:1,kt:1,f:1});function i2a(){}i2a.prototype=new r;
i2a.prototype.constructor=i2a;function j2a(){}j2a.prototype=i2a.prototype;i2a.prototype.Gp=function(a){return sv(this,a)};function P1(){nF.call(this);this.tH=this.ya=this.nq=null}P1.prototype=new EYa;P1.prototype.constructor=P1;P1.prototype.h=function(a){return rs(a)?ub(vb(),a.nq,this.nq):Iva(a)&&(a=a.Gp(wN()),Hp(a))?(a=a.i.nq,ub(vb(),this.nq,a)):!1};P1.prototype.u=function(){return this.tH.uH(this.ya)};P1.prototype.y=function(){var a=this.nq;return null===a?0:qa(a)};
function Cva(a,b,c,e,f){var g=new P1;g.nq=a;g.ya=b;g.tH=c;qY.prototype.mc.call(g,e,f);return g}function rs(a){return!!(a&&a.$classData&&a.$classData.v.lxa)}P1.prototype.$classData=q({lxa:0},!1,"org.yaml.model.YScalar",{lxa:1,rS:1,kt:1,f:1,AB:1});function GC(){nF.call(this);this.Jn=null}GC.prototype=new EYa;GC.prototype.constructor=GC;d=GC.prototype;d.mc=function(a,b){qY.prototype.mc.call(this,a,b);fc();a=this.Uf;b=new k2a;var c=uv();this.Jn=vl(0,a.$b(b,c.gc).Ql(XZa(new fZ,n(wva))));return this};
d.h=function(a){if(Ew(a))return this.Jn.h(a.Jn);if(Iva(a)){var b=a.Gp(tv());if(Hp(b))return a=this.Jn,b=b.i.Jn,null===a?null===b:a.h(b)}return!1};d.u=function(){return this.Jn.Fk("[",", ","]")};d.y=function(){return this.Jn.y()};function Ew(a){return!!(a&&a.$classData&&a.$classData.v.mxa)}d.$classData=q({mxa:0},!1,"org.yaml.model.YSequence",{mxa:1,rS:1,kt:1,f:1,AB:1});function RR(){vE.call(this)}RR.prototype=new xY;RR.prototype.constructor=RR;
RR.prototype.bn=function(a){vE.prototype.pe.call(this,a,null,0,!0);return this};RR.prototype.$classData=q({F8:0},!1,"scopt.ParseException",{F8:1,Kf:1,Fe:1,f:1,n:1});function Lo(a){return"string"===typeof a}var la=q({$5a:0},!1,"java.lang.String",{$5a:1,f:1,n:1,kH:1,sh:1},void 0,void 0,Lo);function fJ(){vE.call(this)}fJ.prototype=new PYa;fJ.prototype.constructor=fJ;fJ.prototype.d=function(a){vE.prototype.pe.call(this,""+a,GBa(a)?a:null,0,!0);return this};
fJ.prototype.$classData=q({E6a:0},!1,"java.lang.AssertionError",{E6a:1,x1:1,Fe:1,f:1,n:1});
var gaa=q({G6a:0},!1,"java.lang.Byte",{G6a:1,By:1,f:1,n:1,sh:1},void 0,void 0,function(a){return faa(a)}),laa=q({J6a:0},!1,"java.lang.Double",{J6a:1,By:1,f:1,n:1,sh:1},void 0,void 0,function(a){return"number"===typeof a}),kaa=q({L6a:0},!1,"java.lang.Float",{L6a:1,By:1,f:1,n:1,sh:1},void 0,void 0,function(a){return ma(a)}),jaa=q({M6a:0},!1,"java.lang.Integer",{M6a:1,By:1,f:1,n:1,sh:1},void 0,void 0,function(a){return Da(a)}),naa=q({R6a:0},!1,"java.lang.Long",{R6a:1,By:1,f:1,n:1,sh:1},void 0,void 0,
function(a){return oa(a)});function Hg(){vE.call(this)}Hg.prototype=new xY;Hg.prototype.constructor=Hg;function Q1(){}Q1.prototype=Hg.prototype;Hg.prototype.gm=function(a){var b=null===a?null:a.u();vE.prototype.pe.call(this,b,a,0,!0);return this};Hg.prototype.e=function(a){vE.prototype.pe.call(this,a,null,0,!0);return this};Hg.prototype.FE=function(a,b){vE.prototype.pe.call(this,a,b,0,!0);return this};Hg.prototype.$classData=q({Qh:0},!1,"java.lang.RuntimeException",{Qh:1,Kf:1,Fe:1,f:1,n:1});
var iaa=q({$6a:0},!1,"java.lang.Short",{$6a:1,By:1,f:1,n:1,sh:1},void 0,void 0,function(a){return haa(a)});function ik(){this.r=null}ik.prototype=new r;ik.prototype.constructor=ik;function dNa(a,b){var c=a.r;c.Ue=""+c.Ue+b;return a}d=ik.prototype;d.a=function(){ik.prototype.SU.call(this,(new R1).a());return this};d.XC=function(a,b){return this.r.Ue.substring(a,b)};d.u=function(){return this.r.Ue};d.Nba=function(a){ik.prototype.e.call(this,ja(a));return this};d.US=function(a){return dNa(this,a)};
d.Ka=function(){return this.r.Ka()};function xOa(a,b){a=a.r;a.Ue=""+a.Ue+b}d.SU=function(a){this.r=a;return this};d.e=function(a){ik.prototype.SU.call(this,(new R1).e(a));return this};d.Ow=function(a){return this.r.Ow(a)};d.$classData=q({a7a:0},!1,"java.lang.StringBuffer",{a7a:1,f:1,kH:1,iV:1,n:1});function R1(){this.Ue=null}R1.prototype=new r;R1.prototype.constructor=R1;
function hG(a,b){if(0>b)throw(new uu).$d(b);var c=a.Ue,e=b-(c.length|0)|0;if(0>e)c=c.substring(0,b);else for(b=0;b!==e;)c+="\x00",b=1+b|0;a.Ue=c}d=R1.prototype;d.a=function(){this.Ue="";return this};d.XC=function(a,b){return this.Ue.substring(a,b)};d.u=function(){return this.Ue};d.Nba=function(a){R1.prototype.e.call(this,ja(a));return this};d.US=function(a){this.Ue=""+this.Ue+a;return this};d.$d=function(a){R1.prototype.a.call(this);if(0>a)throw(new S1).a();return this};
d.Ka=function(){return this.Ue.length|0};function dE(a,b){b=ba.String.fromCharCode(b);a.Ue=""+a.Ue+b}d.e=function(a){R1.prototype.a.call(this);if(null===a)throw(new Rg).a();this.Ue=a;return this};
function l2a(a){for(var b=a.Ue,c="",e=-1+(b.length|0)|0;0<e;){var f=65535&(b.charCodeAt(e)|0);if(56320===(64512&f)){var g=65535&(b.charCodeAt(-1+e|0)|0);55296===(64512&g)?(c=""+c+ba.String.fromCharCode(g)+ba.String.fromCharCode(f),e=-2+e|0):(c=""+c+ba.String.fromCharCode(f),e=-1+e|0)}else c=""+c+ba.String.fromCharCode(f),e=-1+e|0}0===e&&(b=65535&(b.charCodeAt(0)|0),c=""+c+ba.String.fromCharCode(b));a.Ue=c;return a}d.Ow=function(a){return 65535&(this.Ue.charCodeAt(a)|0)};
d.$classData=q({b7a:0},!1,"java.lang.StringBuilder",{b7a:1,f:1,kH:1,iV:1,n:1});function CJ(){this.iI=this.hE=null;this.gV=!1}CJ.prototype=new r;CJ.prototype.constructor=CJ;d=CJ.prototype;d.a=function(){CJ.prototype.x6a.call(this,null);return this};function m2a(a,b,c){null===a.hE?a.iI=""+a.iI+b+c:n2a(a,[b,c])}
function TBa(a,b,c){b=a.toExponential(b);a=0===a&&0>1/a?"-"+b:b;b=a.length|0;a=101!==(65535&(a.charCodeAt(-3+b|0)|0))?a:a.substring(0,-1+b|0)+"0"+a.substring(-1+b|0);if(!c||0<=(a.indexOf(".")|0))return a;c=a.indexOf("e")|0;return a.substring(0,c)+"."+a.substring(c)}function o2a(a,b){for(var c="",e=0;e!==b;)c=""+c+a,e=1+e|0;return c}function WBa(a,b,c,e){var f=e.length|0;f>=c?NBa(a,e):0!==(1&b)?m2a(a,e,o2a(" ",c-f|0)):m2a(a,o2a(" ",c-f|0),e)}function OJ(a,b){return 0!==(256&a)?b.toUpperCase():b}
d.u=function(){if(this.gV)throw(new DJ).a();return null===this.hE?this.iI:this.hE.u()};function VBa(a){return(0!==(1&a)?"-":"")+(0!==(2&a)?"#":"")+(0!==(4&a)?"+":"")+(0!==(8&a)?" ":"")+(0!==(16&a)?"0":"")+(0!==(32&a)?",":"")+(0!==(64&a)?"(":"")+(0!==(128&a)?"\x3c":"")}d.x6a=function(a){this.hE=a;this.iI="";this.gV=!1;return this};function OBa(a,b){if(void 0===a)return b;a=+ba.parseInt(a,10);return 2147483647>=a?Ba(a):-1}function p2a(a,b,c,e){null===a.hE?a.iI=a.iI+(""+b+c)+e:n2a(a,[b,c,e])}
function RBa(a,b,c,e,f){var g=(e.length|0)+(f.length|0)|0;g>=c?m2a(a,e,f):0!==(16&b)?p2a(a,e,o2a("0",c-g|0),f):0!==(1&b)?p2a(a,e,f,o2a(" ",c-g|0)):p2a(a,o2a(" ",c-g|0),e,f)}function SBa(a,b,c,e){WBa(a,b,c,OJ(b,e!==e?"NaN":0<e?0!==(4&b)?"+Infinity":0!==(8&b)?" Infinity":"Infinity":0!==(64&b)?"(Infinity)":"-Infinity"))}function MJ(a,b,c,e,f,g){if(null===b)JJ(a,e,f,g,"null");else{a=new T1;b=ka(b);a.sG=c;a.yya=b;vE.prototype.pe.call(a,null,null,0,!0);if(null===b)throw(new Rg).a();throw a;}}
function n2a(a,b){try{for(var c=0,e=b.length|0;c<e;)a.hE.US(b[c]),c=1+c|0}catch(f){if(!L1(f))throw f;}}function UBa(a,b,c){b=a.toFixed(b);a=0===a&&0>1/a?"-"+b:b;return c&&0>(a.indexOf(".")|0)?a+".":a}function JJ(a,b,c,e,f){e=0>e?f:f.substring(0,e);WBa(a,b,c,OJ(b,e))}function NJ(a){throw(new PJ).e(VBa(a));}function NBa(a,b){null===a.hE?a.iI=""+a.iI+b:n2a(a,[b])}function IJ(a,b,c){a=VBa(a&c);c=new U1;c.FG=a;c.sG=b;vE.prototype.pe.call(c,null,null,0,!0);if(null===a)throw(new Rg).a();throw c;}
function PBa(a,b,c,e){if((e.length|0)>=c&&0===(108&b))NBa(a,OJ(b,e));else if(0===(124&b))JJ(a,b,c,-1,e);else{if(45!==(65535&(e.charCodeAt(0)|0)))var f=0!==(4&b)?"+":0!==(8&b)?" ":"";else 0!==(64&b)?(e=e.substring(1)+")",f="("):(e=e.substring(1),f="-");if(0!==(32&b)){for(var g=e.length|0,h=0;;){if(h!==g)var k=65535&(e.charCodeAt(h)|0),k=48<=k&&57>=k;else k=!1;if(k)h=1+h|0;else break}h=-3+h|0;if(!(0>=h)){for(g=e.substring(h);3<h;)k=-3+h|0,g=e.substring(k,h)+","+g,h=k;e=e.substring(0,h)+","+g}}RBa(a,
b,c,f,OJ(b,e))}}d.nT=function(){if(!this.gV&&null!==this.hE){var a=this.hE;if(a&&a.$classData&&a.$classData.v.VY)try{a.nT()}catch(b){if(!L1(b))throw b;}}this.gV=!0};d.$classData=q({n7a:0},!1,"java.util.Formatter",{n7a:1,f:1,VY:1,kca:1,w8:1});function TH(){vE.call(this)}TH.prototype=new xY;TH.prototype.constructor=TH;TH.prototype.FE=function(a,b){vE.prototype.pe.call(this,a,b,0,!0);return this};TH.prototype.$classData=q({z7a:0},!1,"java.util.concurrent.ExecutionException",{z7a:1,Kf:1,Fe:1,f:1,n:1});
function q2a(){vY.call(this)}q2a.prototype=new OYa;q2a.prototype.constructor=q2a;function V1(){}V1.prototype=q2a.prototype;var cZa=q({oH:0},!1,"java.util.concurrent.TimeUnit",{oH:1,lH:1,f:1,sh:1,n:1});q2a.prototype.$classData=cZa;function EG(){this.hV=0}EG.prototype=new SR;EG.prototype.constructor=EG;d=EG.prototype;d.a=function(){EG.prototype.$d.call(this,0);return this};d.u=function(){return""+this.hV};d.$d=function(a){this.hV=a;return this};d.xt=function(){return this.hV};
d.$classData=q({I7a:0},!1,"java.util.concurrent.atomic.AtomicInteger",{I7a:1,By:1,f:1,n:1,q:1});function W1(){}W1.prototype=new aza;W1.prototype.constructor=W1;W1.prototype.a=function(){return this};function se(a,b){if(null===b)return w();a=QY(fc(),b);fc();return(new A).d(Ei(a,new WR))}function pua(a,b,c){a=ia(La(Na),[1+c.Ka()|0]);a.j[0]=b;b=1;for(c=c.kb();c.Qa();){var e=c.Sa();a.j[b]=null===e?0:e.t;b=1+b|0}return a}
function qD(a,b,c){a=ia(La(Ra),[1+c.Ka()|0]);a.j[0]=b;b=1;for(c=c.kb();c.Qa();){var e=c.Sa()|0;a.j[b]=e;b=1+b|0}return a}
function Kt(a,b,c,e,f,g){a=ka(b);var h;if(h=!!a.lg.isArrayClass)h=ka(e),h=h.lg.isPrimitive||a.lg.isPrimitive?h===a||(h===n(Qa)?a===n(Oa):h===n(Ra)?a===n(Oa)||a===n(Qa):h===n(Ta)?a===n(Oa)||a===n(Qa)||a===n(Ra):h===n(Ua)&&(a===n(Oa)||a===n(Qa)||a===n(Ra)||a===n(Ta))):Bha(h,a.lg.getFakeInstance());if(h)Ca(b,c,e,f,g);else for(a=c,c=c+g|0;a<c;)pCa(W(),e,f,qCa(W(),b,a)),a=1+a|0,f=1+f|0}
function jua(){var a=(new J).aa([]),b=ia(La(Oa),[1+a.Ka()|0]);b.j[0]=63;var c;c=1;for(a=a.kb();a.Qa();){var e=a.Sa()|0;b.j[c]=e;c=1+c|0}return b}W1.prototype.$classData=q({Z7a:0},!1,"scala.Array$",{Z7a:1,Ifb:1,f:1,q:1,n:1});var r2a=void 0;function ye(){r2a||(r2a=(new W1).a());return r2a}function t1(){vE.call(this)}t1.prototype=new PYa;t1.prototype.constructor=t1;t1.prototype.a=function(){vE.prototype.pe.call(this,"an implementation is missing",null,0,!0);return this};
t1.prototype.$classData=q({f8a:0},!1,"scala.NotImplementedError",{f8a:1,x1:1,Fe:1,f:1,n:1});function X1(){}X1.prototype=new r;X1.prototype.constructor=X1;function s2a(){}s2a.prototype=X1.prototype;X1.prototype.Tn=function(a){return a};X1.prototype.u=function(){return"\x3cfunction1\x3e"};X1.prototype.rp=function(a){return!!a};function Y1(){}Y1.prototype=new r;Y1.prototype.constructor=Y1;function t2a(){}t2a.prototype=Y1.prototype;Y1.prototype.Tn=function(a){return a};Y1.prototype.u=function(){return"\x3cfunction1\x3e"};
Y1.prototype.rp=function(a){return!!a};function Z1(){this.gF=null}Z1.prototype=new r;Z1.prototype.constructor=Z1;Z1.prototype.a=function(){u2a=this;this.gF=(new XG).a();return this};Z1.prototype.wW=function(a){throw(new fk).FE("problem in scala.concurrent internal callback",a);};Z1.prototype.q0=function(a){if(a&&a.$classData&&a.$classData.v.D8a){var b=this.gF.c();null===b?(b=G(),wZa(new RY,this,oz(new pz,a,b)).eF()):YG(this.gF,oz(new pz,a,b))}else a.eF()};
Z1.prototype.$classData=q({C8a:0},!1,"scala.concurrent.Future$InternalCallbackExecutor$",{C8a:1,f:1,oea:1,Sfb:1,oca:1});var u2a=void 0;function Sda(){u2a||(u2a=(new Z1).a());return u2a}function dI(){}dI.prototype=new r;dI.prototype.constructor=dI;dI.prototype.a=function(){return this};dI.prototype.$classData=q({R8a:0},!1,"scala.math.Equiv$",{R8a:1,f:1,Ufb:1,q:1,n:1});var Nza=void 0;function $1(){}$1.prototype=new r;$1.prototype.constructor=$1;$1.prototype.a=function(){return this};
$1.prototype.$classData=q({X8a:0},!1,"scala.math.Ordering$",{X8a:1,f:1,Vfb:1,q:1,n:1});var v2a=void 0;function CB(){v2a||(v2a=(new $1).a())}function NY(){}NY.prototype=new r;NY.prototype.constructor=NY;NY.prototype.a=function(){return this};NY.prototype.u=function(){return"\x3c?\x3e"};NY.prototype.$classData=q({w9a:0},!1,"scala.reflect.NoManifest$",{w9a:1,f:1,Uu:1,q:1,n:1});var mZa=void 0;function w2a(){this.wV=null}w2a.prototype=new r;w2a.prototype.constructor=w2a;d=w2a.prototype;
d.Yn=function(a,b){JF(this,a,b)};d.td=function(){return this};d.Sa=function(){return this.wL()};d.pm=function(){return this};d.b=function(){return!this.Qa()};d.wa=function(){var a=Di().s;return EI(this,a)};d.gQ=function(a){return this.TC(0,0<a?a:0)};d.Fk=function(a,b,c){return IG(this,a,b,c)};d.ng=function(a){return IG(this,"",a,"")};d.u=function(){return dS(this)};d.TC=function(a,b){return JOa(this,a,b)};d.X=function(a){fS(this,a)};d.ae=function(a,b){return pd(this,a,b)};
d.KI=function(a){return KOa(this,a)};d.vo=function(){yq();var a=uv().gc;return EI(this,a)};d.lb=function(){return FI(this)};d.bj=function(){var a=a2().s;return EI(this,a)};d.Qa=function(){return this.wV.Qa()};d.lm=function(){return IG(this,"","","")};d.kd=function(){return Tu(this)};d.Vo=function(){return Tu(this)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.ce=function(){return Tu(this)};d.pg=function(){var a=Pf(),a=Qf(a);return EI(this,a)};d.rl=function(a,b){return pd(this,a,b)};
d.$j=function(a,b,c){NOa(this,a,b,c)};d.ko=function(){return!1};d.mE=function(a){return OOa(this,a)};d.$g=function(){for(var a=Ry(new Sy,Xs());this.Qa();){var b=this.wL();Ty(a,b)}return a.gb};d.wL=function(){this.wV.My();return EOa(HOa(this.wV.R2,this.wV.px))};d.Ql=function(a){return II(this,a)};d.Fa=function(){return Tc(this)};d.Sj=function(a){return JI(this,a)};d.$classData=q({L9a:0},!1,"scala.util.matching.Regex$$anon$4",{L9a:1,f:1,pi:1,Kb:1,Jb:1});function x2a(){}x2a.prototype=new r;
x2a.prototype.constructor=x2a;function b2(){}d=b2.prototype=x2a.prototype;d.td=function(){return this};d.Yn=function(a,b){JF(this,a,b)};d.pm=function(){return this};d.wa=function(){var a=Di().s;return EI(this,a)};d.b=function(){return!this.Qa()};d.gQ=function(a){return this.TC(0,0<a?a:0)};d.ng=function(a){return IG(this,"",a,"")};d.Fk=function(a,b,c){return IG(this,a,b,c)};d.u=function(){return dS(this)};d.TC=function(a,b){return JOa(this,a,b)};d.X=function(a){fS(this,a)};
d.ae=function(a,b){return pd(this,a,b)};d.vo=function(){yq();var a=uv().gc;return EI(this,a)};d.KI=function(a){return KOa(this,a)};d.bj=function(){var a=a2().s;return EI(this,a)};d.lb=function(){return FI(this)};d.lm=function(){return IG(this,"","","")};d.kd=function(){return Tu(this)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.Vo=function(){return this.kd()};d.ce=function(){return this.kd()};d.pg=function(){var a=Pf(),a=Qf(a);return EI(this,a)};d.rl=function(a,b){return pd(this,a,b)};
d.ko=function(){return!1};d.$j=function(a,b,c){NOa(this,a,b,c)};d.$g=function(){for(var a=Ry(new Sy,Xs());this.Qa();){var b=this.Sa();Ty(a,b)}return a.gb};d.mE=function(a){return OOa(this,a)};d.Ql=function(a){return II(this,a)};d.Fa=function(){return Tc(this)};d.Sj=function(a){return JI(this,a)};function LOa(){this.nV=this.qn=this.ac=null;this.wG=!1}LOa.prototype=new r;LOa.prototype.constructor=LOa;d=LOa.prototype;d.td=function(){return this};d.Yn=function(a,b){JF(this,a,b)};
d.Sa=function(){return this.Qa()?(this.wG=!1,this.ac.Sa()):Uz().Td.Sa()};d.pm=function(){return this};d.b=function(){return!this.Qa()};d.wa=function(){var a=Di().s;return EI(this,a)};d.gQ=function(a){return this.TC(0,0<a?a:0)};d.Fk=function(a,b,c){return IG(this,a,b,c)};d.ng=function(a){return IG(this,"",a,"")};d.u=function(){return dS(this)};d.TC=function(a,b){return JOa(this,a,b)};d.X=function(a){fS(this,a)};d.ae=function(a,b){return pd(this,a,b)};
d.KI=function(a){var b=new rAa;b.eC=a;b.qn=null;null===this.qn?this.qn=b:this.nV.qn=b;this.nV=b;null===this.ac&&(this.ac=Uz().Td);return this};d.vo=function(){yq();var a=uv().gc;return EI(this,a)};d.lb=function(){return FI(this)};d.bj=function(){var a=a2().s;return EI(this,a)};
d.Qa=function(){if(this.wG)return!0;if(null!==this.ac){if(this.ac.Qa())return this.wG=!0;var a;a:for(;;){if(null===this.qn){this.nV=this.ac=null;a=!1;break a}this.ac=gc(this.qn.eC).pm();this.qn=this.qn.qn;c:for(;;){if((a=this.ac)&&a.$classData&&a.$classData.v.IEa){a=this.ac;this.ac=a.ac;this.wG=a.wG;null!==a.qn&&(a.nV.qn=this.qn,this.qn=a.qn);continue c}break}if(this.wG){a=!0;break a}if(this.ac.Qa()){a=this.wG=!0;break a}}return a}return!1};d.lm=function(){return IG(this,"","","")};d.kd=function(){return Tu(this)};
d.Vo=function(){return Tu(this)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.ce=function(){return Tu(this)};d.pg=function(){var a=Pf(),a=Qf(a);return EI(this,a)};d.rl=function(a,b){return pd(this,a,b)};d.$j=function(a,b,c){NOa(this,a,b,c)};d.ko=function(){return!1};d.mE=function(a){return OOa(this,a)};d.$g=function(){for(var a=Ry(new Sy,Xs());this.Qa();){var b=this.Sa();Ty(a,b)}return a.gb};d.Ql=function(a){return II(this,a)};d.Fa=function(){return Tc(this)};
d.Sj=function(a){return JI(this,a)};d.$classData=q({IEa:0},!1,"scala.collection.Iterator$ConcatIterator",{IEa:1,f:1,pi:1,Kb:1,Jb:1});function hS(){}hS.prototype=new r;hS.prototype.constructor=hS;d=hS.prototype;d.a=function(){return this};d.uk=function(){return this};d.lc=function(){throw(new Gt).e("TraversableView.Builder.result");};d.Ss=function(a,b){sS(this,a,b)};d.Ic=function(){return this};d.Gh=function(){};d.Cf=function(a){return Yi(this,a)};
d.$classData=q({T$a:0},!1,"scala.collection.TraversableView$NoBuilder",{T$a:1,f:1,ll:1,kl:1,jl:1});function y2a(){}y2a.prototype=new QOa;y2a.prototype.constructor=y2a;function z2a(){}z2a.prototype=y2a.prototype;function c2(){}c2.prototype=new d_a;c2.prototype.constructor=c2;c2.prototype.a=function(){return this};c2.prototype.zG=function(){return Xs()};c2.prototype.$classData=q({Bab:0},!1,"scala.collection.immutable.Map$",{Bab:1,gFa:1,$L:1,ZL:1,f:1});var A2a=void 0;
function Fqa(){A2a||(A2a=(new c2).a());return A2a}function d2(){this.Ly=this.t=this.oa=null}d2.prototype=new r;d2.prototype.constructor=d2;d=d2.prototype;d.Sa=function(){return this.Ly};function B2a(a){return"(kv: "+a.oa+", "+a.t+")"+(null!==a.Ly?" -\x3e "+B2a(a.Ly):"")}d.N=function(a,b){this.oa=a;this.t=b;return this};d.u=function(){return B2a(this)};d.Gu=function(){return this.oa};d.vL=function(a){this.Ly=a};d.$classData=q({Pbb:0},!1,"scala.collection.mutable.DefaultEntry",{Pbb:1,f:1,E2:1,q:1,n:1});
function Zg(){this.gb=this.Td=null}Zg.prototype=new r;Zg.prototype.constructor=Zg;function ah(a,b){a.gb.uk(b);return a}function Yg(a,b){a.Td=b;a.gb=b;return a}d=Zg.prototype;d.uk=function(a){return ah(this,a)};d.lc=function(){return this.gb};d.Ss=function(a,b){sS(this,a,b)};d.Ic=function(a){return ah(this,a)};d.Gh=function(){};d.Cf=function(a){return Yi(this,a)};d.$classData=q({Tbb:0},!1,"scala.collection.mutable.GrowingBuilder",{Tbb:1,f:1,ll:1,kl:1,jl:1});
function C2a(){this.Ly=this.mo=this.ls=this.t=this.oa=null}C2a.prototype=new r;C2a.prototype.constructor=C2a;d=C2a.prototype;d.Sa=function(){return this.Ly};d.N=function(a,b){this.oa=a;this.t=b;this.mo=this.ls=null;return this};d.Gu=function(){return this.oa};d.vL=function(a){this.Ly=a};d.$classData=q({kcb:0},!1,"scala.collection.mutable.LinkedEntry",{kcb:1,f:1,E2:1,q:1,n:1});function D2a(){this.Ly=this.mo=this.ls=this.oa=null}D2a.prototype=new r;D2a.prototype.constructor=D2a;d=D2a.prototype;
d.Sa=function(){return this.Ly};d.d=function(a){this.oa=a;this.mo=this.ls=null;return this};d.Gu=function(){return this.oa};d.vL=function(a){this.Ly=a};d.$classData=q({ucb:0},!1,"scala.collection.mutable.LinkedHashSet$Entry",{ucb:1,f:1,E2:1,q:1,n:1});function e2(){}e2.prototype=new f_a;e2.prototype.constructor=e2;e2.prototype.a=function(){return this};e2.prototype.Vp=function(){return(new ct).a()};e2.prototype.zG=function(){return(new ct).a()};
e2.prototype.$classData=q({zcb:0},!1,"scala.collection.mutable.Map$",{zcb:1,Oea:1,$L:1,ZL:1,f:1});var E2a=void 0;function Os(){E2a||(E2a=(new e2).a());return E2a}function nJ(){this.bEa=null}nJ.prototype=new r;nJ.prototype.constructor=nJ;nJ.prototype.a=function(){this.bEa=ba.Promise.resolve(void 0);return this};nJ.prototype.wW=function(a){VR(a)};nJ.prototype.q0=function(a){this.bEa.then(function(a,c){return function(){try{c.eF()}catch(a){var b=gi(Mb(),a);if(null!==b)VR(b);else throw a;}}}(this,a))};
nJ.prototype.$classData=q({Ncb:0},!1,"scala.scalajs.concurrent.QueueExecutionContext$PromisesExecutionContext",{Ncb:1,f:1,pEa:1,oea:1,oca:1});function mJ(){}mJ.prototype=new r;mJ.prototype.constructor=mJ;mJ.prototype.a=function(){return this};mJ.prototype.wW=function(a){VR(a)};mJ.prototype.q0=function(a){ba.setTimeout(function(a,c){return function(){try{c.eF()}catch(a){var b=gi(Mb(),a);if(null!==b)VR(b);else throw a;}}}(this,a),0)};
mJ.prototype.$classData=q({Ocb:0},!1,"scala.scalajs.concurrent.QueueExecutionContext$TimeoutsExecutionContext",{Ocb:1,f:1,pEa:1,oea:1,oca:1});function kJ(){}kJ.prototype=new r;kJ.prototype.constructor=kJ;kJ.prototype.a=function(){return this};kJ.prototype.wW=function(a){VR(a)};kJ.prototype.q0=function(a){try{a.eF()}catch(b){if(a=gi(Mb(),b),null!==a)VR(a);else throw b;}};kJ.prototype.$classData=q({Pcb:0},!1,"scala.scalajs.concurrent.RunNowExecutionContext$",{Pcb:1,f:1,pEa:1,oea:1,oca:1});var wBa=void 0;
function aq(){this.$a=this.Na=0}aq.prototype=new SR;aq.prototype.constructor=aq;d=aq.prototype;d.Nv=function(){return Ea(this)};d.E_=function(){return this.Na<<24>>24};d.h=function(a){return oa(a)?this.Na===a.Na&&this.$a===a.$a:!1};d.Zh=function(a,b,c){aq.prototype.La.call(this,a|b<<22,b>>10|c<<12);return this};d.u=function(){return QBa(Fa(),this.Na,this.$a)};d.La=function(a,b){this.Na=a;this.$a=b;return this};d.Wn=function(a){return p_a(Fa(),this.Na,this.$a,a.Na,a.$a)};
d.$d=function(a){aq.prototype.La.call(this,a,a>>31);return this};d.O2=function(){return this.Na<<16>>16};d.VB=function(){return sC(Fa(),this.Na,this.$a)};d.y=function(){return this.Na^this.$a};d.xt=function(){return this.Na};d.tK=function(){return ea(sC(Fa(),this.Na,this.$a))};function oa(a){return!!(a&&a.$classData&&a.$classData.v.iGa)}d.$classData=q({iGa:0},!1,"scala.scalajs.runtime.RuntimeLong",{iGa:1,By:1,f:1,n:1,sh:1});function zS(){this.QD=this.Fi=null}zS.prototype=new r;
zS.prototype.constructor=zS;function f2(){}d=f2.prototype=zS.prototype;d.L=function(){return"ProfileName"};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.xz?this.Fi===a.Fi?this.QD===a.QD:!1:!1};d.K=function(a){switch(a){case 0:return this.Fi;case 1:return this.QD;default:throw(new X).e(""+a);}};d.u=function(){return this.Fi};d.kC=function(a,b){this.Fi=a;this.QD=b;return this};d.e=function(a){zS.prototype.kC.call(this,a,wk());return this};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({xz:0},!1,"amf.ProfileName",{xz:1,f:1,A:1,w:1,q:1,n:1});function AK(){this.p=null}AK.prototype=new r;AK.prototype.constructor=AK;d=AK.prototype;d.a=function(){AK.prototype.YG.call(this,(v0a(),w0a(new S0,G(),w())));return this};d.L=function(){return"Environment"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(iFa(a)){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.YG=function(a){this.p=a;return this};d.X4=function(){var a=Ab(),b=this.p.UH,c=F2a();return Bb(a,b,c).sb()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function RCa(a,b){a=a.p;var c=Ab(),e=QCa();b=ml(nl(new ol,c,b,e));return(new AK).YG(w0a(new S0,b,a.UH))}AK.prototype.withResolver=function(a){return(new AK).YG(G2a(this.p,(Ab(),F2a(),C_a(a))))};
AK.prototype.withLoaders=function(a){return RCa(this,a)};AK.prototype.add=function(a){return(new AK).YG(Bfa(this.p,(Ab(),QCa(),r_(new s_,a))))};AK.prototype.withClientResolver=function(a){var b=new CK;b.cEa=a;return(new AK).YG(G2a(this.p,(Ab(),F2a(),C_a(b))))};AK.prototype.addClientLoader=function(a){var b=new BK;b.uca=a;return(new AK).YG(Bfa(this.p,(Ab(),QCa(),r_(new s_,b))))};Object.defineProperty(AK.prototype,"reference",{get:function(){return this.X4()},configurable:!0});
Object.defineProperty(AK.prototype,"loaders",{get:function(){var a=Ab(),b=this.p.qH,c=QCa();return Il(a,b,c).sb()},configurable:!0});function iFa(a){return!!(a&&a.$classData&&a.$classData.v.Iha)}AK.prototype.$classData=q({Iha:0},!1,"amf.client.environment.Environment",{Iha:1,f:1,A:1,w:1,q:1,n:1});function Go(){this.p=null}Go.prototype=new r;Go.prototype.constructor=Go;d=Go.prototype;d.a=function(){Go.prototype.Yp.call(this,(M(),(new N).a()));return this};d.L=function(){return"Annotations"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Jha?this.p===a.p:!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function H2a(a){var b=Ab(),c=(new I2a).Saa(a),e=a.p.jf,f=Wg().s,c=Fr(e,c,f);a=t(new u,function(){return function(a){return a.Xp}}(a));e=z();a=c.ka(a,e.s);c=nPa();return Il(b,a,c).sb()}d.Yp=function(a){this.p=a;return this};d.y=function(){return Y(this)};
d.hL=function(){var a=Ab(),b=Zb(this.p,n($b));b.b()?b=w():(b=b.c(),b=(new A).d(b.ga));var c=Ab().oh();return Bb(a,b,c).sb()};d.M=function(){return Z(this)};Object.defineProperty(Go.prototype,"autoGeneratedName",{get:function(){return Zb(this.p,n(dM)).qa()},configurable:!0});Object.defineProperty(Go.prototype,"inlinedElement",{get:function(){return Zb(this.p,n(J2a)).qa()},configurable:!0});
Object.defineProperty(Go.prototype,"inheritanceProvenance",{get:function(){var a=Ab(),b=Zb(this.p,n(Aj));b.b()?b=w():(b=b.c(),b=(new A).d(b.Lw));var c=Ab().oh();return Bb(a,b,c).sb()},configurable:!0});Object.defineProperty(Go.prototype,"resolvedLinkTarget",{get:function(){var a=Ab(),b=Zb(this.p,n(K2a));b.b()?b=w():(b=b.c(),b=(new A).d(b.oP));var c=Ab().oh();return Bb(a,b,c).sb()},configurable:!0});
Object.defineProperty(Go.prototype,"resolvedLink",{get:function(){var a=Ab(),b=Zb(this.p,n(L2a));b.b()?b=w():(b=b.c(),b=(new A).d(b.nP));var c=Ab().oh();return Bb(a,b,c).sb()},configurable:!0});Object.defineProperty(Go.prototype,"isTracked",{get:function(){var a=(new M2a).Saa(this),b=this.p.jf,c=Wg().s;return Fr(b,a,c).Fa()},configurable:!0});Go.prototype.isTrackedBy=function(a){var b=new N2a;b.qM=a;a=this.p.jf;var c=Wg().s;return Fr(a,b,c).Fa()};
Object.defineProperty(Go.prototype,"isLocal",{get:function(){return Zb(this.p,n(sla)).qa()},configurable:!0});Go.prototype.location=function(){return this.hL()};Go.prototype.fragmentName=function(){var a=Ab(),b=Zb(this.p,n(O2a));b.b()?b=w():(b=b.c(),b=(new A).d(b.mg));var c=Ab().oh();return Bb(a,b,c).sb()};Go.prototype.custom=function(){return H2a(this)};Go.prototype.lexical=function(){var a=Zb(this.p,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc));return a.b()?iga():a.c()};
Object.defineProperty(Go.prototype,"_internal",{get:function(){return this.p},configurable:!0});Go.prototype.$classData=q({Jha:0},!1,"amf.client.model.Annotations",{Jha:1,f:1,A:1,w:1,q:1,n:1});function g2(){this.p=null}g2.prototype=new r;g2.prototype.constructor=g2;d=g2.prototype;d.L=function(){return"Graph"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.uia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};
d.kW=function(){var a=Ab(),b=WGa(this.p),c=Ab().oh();return Il(a,b,c).sb()};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function oPa(a){var b=new g2;b.p=a;return b}d.y=function(){return Y(this)};d.M=function(){return Z(this)};g2.prototype.remove=function(a){Bia(this.p.rh.ca(),a);return this};g2.prototype.getObjectByPropertyId=function(a){var b=Ab();a=P2a(this.p,a);var c=Ab().et();return Il(b,a,c).sb()};
g2.prototype.scalarByProperty=function(a){var b=Ab();a=Q2a(this.p,a);var c=Ab().MM();return Il(b,a,c).sb()};g2.prototype.properties=function(){return this.kW()};g2.prototype.types=function(){var a=Ab(),b=R2a(this.p),c=Ab().oh();return Il(a,b,c).sb()};g2.prototype.$classData=q({uia:0},!1,"amf.client.model.domain.Graph",{uia:1,f:1,A:1,w:1,q:1,n:1});function S2a(a){Ab();a=B(a.p.ca(),zW().$);Ab().wb();return Gb(a)}function T2a(a){var b=Ab();a=a.p.rI();var c=U2a();return Il(b,a,c).sb()}
function V2a(a,b){var c=a.p;Ab();W2a();b=b.p;var e=zW().ef;ff(c,e,b);return a}function X2a(a,b){var c=a.p;M();var e=(new N).a();Ue(c,b,e);return a}function Y2a(a,b){var c=a.p,e=Ab(),f=U2a();b=ml(nl(new ol,e,b,f));e=zW().lj;qf(c,e,b);return a}function Z2a(a){Ab();a=TUa(a.p);var b=W2a();return dt(b.l.na,a)}function h2(){this.na=this.p=null}h2.prototype=new r;h2.prototype.constructor=h2;function $2a(){}d=$2a.prototype=h2.prototype;d.Xf=function(){lM();var a=B(this.p.ca(),FA().$);lM().wb();return Gb(a)};
d.Vt=function(){return this.iE()};d.Ie=function(){return this.Xf()};d.nd=function(){return SS(this)};d.pd=function(a){return US(this,a)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.yj=function(){lM();var a=B(this.p.ca(),FA().fb);lM().wb();return Gb(a)};d.W4=function(){lM();var a=B(this.p.ca(),FA().If);lM().wb();return Gb(a)};d.HAa=function(a){this.p=a;this.na=ju().na;return this};d.Tt=function(a){var b=this.p,c=FA().gd;Eb(b,c,a);return this};d.rd=function(){return PS(this)};
d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.hi=function(a){var b=this.p,c=FA().fb;Eb(b,c,a);return this};d.od=function(a){return WS(this,a)};d.hc=function(){return this.Jd().k};d.Rh=function(){return this.yj()};d.iE=function(){lM();var a=B(this.p.ca(),FA().gd);lM().wb();return Gb(a)};d.xe=function(a){var b=this.p,c=FA().$;Eb(b,c,a);return this};h2.prototype.annotations=function(){return this.bc()};h2.prototype.graph=function(){return this.nd()};h2.prototype.withId=function(a){return this.qd(a)};
h2.prototype.withExtendsNode=function(a){return this.pd(a)};h2.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(h2.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(h2.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(h2.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});
Object.defineProperty(h2.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});h2.prototype.withSubClasOf=function(a){L0a(this.p,a);return this};h2.prototype.withRange=function(a){var b=this.p,c=FA().If;Eb(b,c,a);return this};h2.prototype.withDescription=function(a){return this.hi(a)};h2.prototype.withDisplayName=function(a){return this.Tt(a)};h2.prototype.withName=function(a){return this.xe(a)};
Object.defineProperty(h2.prototype,"subPropertyOf",{get:function(){var a=lM(),b=B(this.p.ca(),FA().IB),c=lM().wb();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(h2.prototype,"range",{get:function(){return this.W4()},configurable:!0});Object.defineProperty(h2.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty(h2.prototype,"displayName",{get:function(){return this.Vt()},configurable:!0});
Object.defineProperty(h2.prototype,"name",{get:function(){return this.Ie()},configurable:!0});function In(){this.na=this.p=null}In.prototype=new r;In.prototype.constructor=In;function i2(){}d=i2.prototype=In.prototype;d.a=function(){M();var a=(new N).a();In.prototype.aH.call(this,(new I1).P((new Q).a(),a));return this};d.nd=function(){return SS(this)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.rd=function(){return PS(this)};
d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.Jd().k};d.Fd=function(){return this.p};d.aH=function(a){this.p=a;this.na=ju().na;return this};In.prototype.annotations=function(){return this.bc()};In.prototype.graph=function(){return this.nd()};In.prototype.withId=function(a){return this.qd(a)};In.prototype.withExtendsNode=function(a){return this.pd(a)};In.prototype.withCustomDomainProperties=function(a){return this.od(a)};
Object.defineProperty(In.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(In.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(In.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(In.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});
In.prototype.withAdditionalProperties=function(a){var b=this.p;S();S().tq();a=a.p;var c=Hn().nz;ff(b,c,a);return this};Object.defineProperty(In.prototype,"additionalProperties",{get:function(){S();var a=Xp(this.p.ca(),Hn().nz);return nm(S().tq(),a)},configurable:!0});In.prototype.$classData=q({dN:0},!1,"amf.client.model.domain.Settings",{dN:1,f:1,Re:1,Id:1,xd:1,Fb:1});function sZ(){this.p=null}sZ.prototype=new r;sZ.prototype.constructor=sZ;d=sZ.prototype;d.L=function(){return"CachedReference"};
d.xAa=function(a){this.p=a;return this};d.H=function(){return 1};d.qw=function(){return this.p.Bf};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.hja){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.t6a=function(a,b,c){sZ.prototype.xAa.call(this,a3a(a,b.p,c));return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
Object.defineProperty(sZ.prototype,"resolved",{get:function(){return this.p.Gm},configurable:!0});Object.defineProperty(sZ.prototype,"content",{get:function(){Ab();var a=this.p.wr;return $fa(Mo(),a)},configurable:!0});Object.defineProperty(sZ.prototype,"url",{get:function(){return this.qw()},configurable:!0});sZ.prototype.$classData=q({hja:0},!1,"amf.client.reference.CachedReference",{hja:1,f:1,A:1,w:1,q:1,n:1});function j2(){this.oL=this.Bf=this.Dx=null}j2.prototype=new r;
j2.prototype.constructor=j2;d=j2.prototype;d.tc=function(a,b){j2.prototype.oU.call(this,tPa(b,a),b,w());return this};d.L=function(){return"Content"};d.H=function(){return 3};d.qw=function(){return this.Bf};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ija&&this.Dx===a.Dx&&this.Bf===a.Bf){var b=this.oL;a=a.oL;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Dx;case 1:return this.Bf;case 2:return this.oL;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.j1=function(a,b,c){j2.prototype.oU.call(this,tPa(b,a),b,(new A).d(c));return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.jx=function(a,b,c){j2.prototype.oU.call(this,tPa(b,a),b,c);return this};d.oU=function(a,b,c){this.Dx=a;this.Bf=b;this.oL=c;return this};Object.defineProperty(j2.prototype,"mime",{get:function(){return this.oL},configurable:!0});Object.defineProperty(j2.prototype,"url",{get:function(){return this.qw()},configurable:!0});
Object.defineProperty(j2.prototype,"stream",{get:function(){return this.Dx},configurable:!0});j2.prototype.$classData=q({ija:0},!1,"amf.client.remote.Content",{ija:1,f:1,A:1,w:1,q:1,n:1});function T_(){this.p=null}T_.prototype=new r;T_.prototype.constructor=T_;d=T_.prototype;d.L=function(){return"ValidationCandidate"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.jja){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.wAa=function(a){this.p=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.i6a=function(a,b){T_.prototype.wAa.call(this,Vz(new Wz,a.qg(),b.p));return this};Object.defineProperty(T_.prototype,"payload",{get:function(){Ab();var a=this.p.fe;return gga(Ab().zS(),a)},configurable:!0});
Object.defineProperty(T_.prototype,"shape",{get:function(){Ab();var a=this.p.ra;return AS(Ab().wj(),a)},configurable:!0});T_.prototype.$classData=q({jja:0},!1,"amf.client.validate.ValidationCandidate",{jja:1,f:1,A:1,w:1,q:1,n:1});function k2(){this.p=null}k2.prototype=new r;k2.prototype.constructor=k2;d=k2.prototype;d.L=function(){return"ValidationShapeSet"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.kja){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.l6a=function(a){this.p=a;return this};d.M=function(){return Z(this)};d.C6a=function(a,b,c){b=Ab();var e=b3a();k2.prototype.l6a.call(this,c3a(new d3a,ml(nl(new ol,b,a,e)),c));return this};
Object.defineProperty(k2.prototype,"defaultSeverity",{get:function(){return this.p.Vm},configurable:!0});Object.defineProperty(k2.prototype,"candidates",{get:function(){var a=Ab(),b=this.p.eA,c=b3a();return Il(a,b,c).sb()},configurable:!0});k2.prototype.$classData=q({kja:0},!1,"amf.client.validate.ValidationShapeSet",{kja:1,f:1,A:1,w:1,q:1,n:1});function Lp(){this.ue=this.JC=this.U=this.xC=this.ga=this.Gg=null}Lp.prototype=new r;Lp.prototype.constructor=Lp;d=Lp.prototype;d.L=function(){return"Root"};
d.H=function(){return 6};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.lja){var b=this.Gg,c=a.Gg;(null===b?null===c:b.h(c))&&this.ga===a.ga&&this.xC===a.xC?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;return b&&this.JC===a.JC?this.ue===a.ue:!1}return!1};d.K=function(a){switch(a){case 0:return this.Gg;case 1:return this.ga;case 2:return this.xC;case 3:return this.U;case 4:return this.JC;case 5:return this.ue;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};function Sga(a,b,c,e,f,g,h){a.Gg=b;a.ga=c;a.xC=e;a.U=f;a.JC=g;a.ue=h;return a}d.M=function(){return Z(this)};d.$classData=q({lja:0},!1,"amf.core.Root",{lja:1,f:1,A:1,w:1,q:1,n:1});function l2(){}l2.prototype=new wS;l2.prototype.constructor=l2;l2.prototype.a=function(){return this};l2.prototype.R=function(a){return(new EL).WG(a)};l2.prototype.u=function(){return"DomainExtensionAnnotation"};
l2.prototype.$classData=q({rLa:0},!1,"amf.core.annotations.DomainExtensionAnnotation$",{rLa:1,T2:1,f:1,za:1,q:1,n:1});var e3a=void 0;function WIa(){e3a||(e3a=(new l2).a());return e3a}function eq(){this.nF=OG();this.jK=OG();this.sH=null}eq.prototype=new r;eq.prototype.constructor=eq;d=eq.prototype;d.L=function(){return"Execution"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Jja){var b=this.nF,c=b.$a,e=a.nF;b.Na===e.Na&&c===e.$a?(b=this.jK,c=b.$a,e=a.jK,b=b.Na===e.Na&&c===e.$a):b=!1;if(b)return b=this.sH,a=a.sH,null===b?null===a:b.h(a)}return!1};function vha(a,b,c,e){a.nF=b;a.jK=c;a.sH=e;return a}d.K=function(a){switch(a){case 0:return this.nF;case 1:return this.jK;case 2:return this.sH;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function sha(a,b,c){var e=a.sH,f=z(),g=new f3a;g.aQ=b;g.$C=c;b=H(f,(new J).aa([g]));f=z();e=e.la(b,f.s);b=a.nF;a=b.Na;b=b.$a;return vha(new eq,(new aq).La(a,b),c,e)}function nha(a){var b=rha(),c=b.Na,b=b.$a,e=a.nF,f=e.Na,e=e.$a;a=a.sH;return vha(new eq,(new aq).La(f,e),(new aq).La(c,b),a)}d.y=function(){var a=-889275714,a=zI().Ga(a,$J(zI(),this.nF)),a=zI().Ga(a,$J(zI(),this.jK)),a=zI().Ga(a,yI(zI(),this.sH));return zI().Wd(a,3)};d.M=function(){return Z(this)};
d.$classData=q({Jja:0},!1,"amf.core.benchmark.Execution",{Jja:1,f:1,A:1,w:1,q:1,n:1});function f3a(){this.aQ=null;this.$C=OG()}f3a.prototype=new r;f3a.prototype.constructor=f3a;d=f3a.prototype;d.L=function(){return"Log"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Kja&&this.aQ===a.aQ){var b=this.$C,c=b.$a;a=a.$C;return b.Na===a.Na&&c===a.$a}return!1};
d.K=function(a){switch(a){case 0:return this.aQ;case 1:return this.$C;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.aQ)),a=zI().Ga(a,$J(zI(),this.$C));return zI().Wd(a,2)};d.M=function(){return Z(this)};d.$classData=q({Kja:0},!1,"amf.core.benchmark.Log",{Kja:1,f:1,A:1,w:1,q:1,n:1});
function xl(){this.Gl=this.Yk=this.Hk=this.Rj=this.Vi=this.Ya=this.Gk=null;this.pl=this.Sl=this.ql=this.Vl=!1;this.Pj=this.Tl=this.Zk=null;this.al=!1;this.Hl=this.$k=this.uj=this.rk=this.Tk=null}xl.prototype=new r;xl.prototype.constructor=xl;d=xl.prototype;d.L=function(){return"ParserConfig"};d.H=function(){return 19};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Lja){var b=this.Gk,c=a.Gk;(null===b?null===c:b.h(c))?(b=this.Ya,c=a.Ya,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Vi,c=a.Vi,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Rj,c=a.Rj,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Hk,c=a.Hk,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Yk,c=a.Yk,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Gl,c=a.Gl,b=null===b?null===c:b.h(c)):b=!1;b&&this.Vl===a.Vl&&this.ql===a.ql&&this.Sl===a.Sl&&this.pl===
a.pl?(b=this.Zk,c=a.Zk,b=null===b?null===c:b.h(c)):b=!1;b&&this.Tl===a.Tl?(b=this.Pj,c=a.Pj,b=null===b?null===c:b.h(c)):b=!1;b&&this.al===a.al?(b=this.Tk,c=a.Tk,b=null===b?null===c:b.h(c)):b=!1;return b&&this.rk===a.rk&&this.uj===a.uj?this.$k===a.$k:!1}return!1};
d.K=function(a){switch(a){case 0:return this.Gk;case 1:return this.Ya;case 2:return this.Vi;case 3:return this.Rj;case 4:return this.Hk;case 5:return this.Yk;case 6:return this.Gl;case 7:return this.Vl;case 8:return this.ql;case 9:return this.Sl;case 10:return this.pl;case 11:return this.Zk;case 12:return this.Tl;case 13:return this.Pj;case 14:return this.al;case 15:return this.Tk;case 16:return this.rk;case 17:return this.uj;case 18:return this.$k;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};function Bl(a,b,c,e,f,g,h,k,l,p,y,I,E,V,da,sa,ua,Ia,Pa,Za){a.Gk=b;a.Ya=c;a.Vi=e;a.Rj=f;a.Hk=g;a.Yk=h;a.Gl=k;a.Vl=l;a.ql=p;a.Sl=y;a.pl=I;a.Zk=E;a.Tl=V;a.Pj=da;a.al=sa;a.Tk=ua;a.rk=Ia;a.uj=Pa;a.$k=Za;a.Hl=EB(FB(),V);return a}
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.Gk)),a=zI().Ga(a,yI(zI(),this.Ya)),a=zI().Ga(a,yI(zI(),this.Vi)),a=zI().Ga(a,yI(zI(),this.Rj)),a=zI().Ga(a,yI(zI(),this.Hk)),a=zI().Ga(a,yI(zI(),this.Yk)),a=zI().Ga(a,yI(zI(),this.Gl)),a=zI().Ga(a,this.Vl?1231:1237),a=zI().Ga(a,this.ql?1231:1237),a=zI().Ga(a,this.Sl?1231:1237),a=zI().Ga(a,this.pl?1231:1237),a=zI().Ga(a,yI(zI(),this.Zk)),a=zI().Ga(a,yI(zI(),this.Tl)),a=zI().Ga(a,yI(zI(),this.Pj)),a=zI().Ga(a,this.al?1231:1237),a=zI().Ga(a,yI(zI(),
this.Tk)),a=zI().Ga(a,yI(zI(),this.rk)),a=zI().Ga(a,yI(zI(),this.uj)),a=zI().Ga(a,yI(zI(),this.$k));return zI().Wd(a,19)};d.M=function(){return Z(this)};d.$classData=q({Lja:0},!1,"amf.core.client.ParserConfig",{Lja:1,f:1,A:1,w:1,q:1,n:1});function Dp(){vE.call(this);this.mAa=null}Dp.prototype=new Q1;Dp.prototype.constructor=Dp;Dp.prototype.SK=function(a){this.mAa=a;a="Cyclic found following references "+IG(a,""," -\x3e ","");vE.prototype.pe.call(this,a,null,0,!0);return this};
function Qga(a){return!!(a&&a.$classData&&a.$classData.v.Wja)}Dp.prototype.$classData=q({Wja:0},!1,"amf.core.exception.CyclicReferenceException",{Wja:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function Gp(){vE.call(this)}Gp.prototype=new Q1;Gp.prototype.constructor=Gp;Gp.prototype.e=function(a){vE.prototype.pe.call(this,"Cannot parse document with specified media type: "+a,null,0,!0);return this};Gp.prototype.$classData=q({YLa:0},!1,"amf.core.exception.UnsupportedMediaTypeException",{YLa:1,Qh:1,Kf:1,Fe:1,f:1,n:1});
function Cp(){vE.call(this);this.fr=null}Cp.prototype=new Q1;Cp.prototype.constructor=Cp;Cp.prototype.e=function(a){this.fr=a;vE.prototype.pe.call(this,"Cannot parse document with specified vendor: "+a,null,0,!0);return this};Cp.prototype.$classData=q({ZLa:0},!1,"amf.core.exception.UnsupportedVendorException",{ZLa:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function Sb(){this.Aa=this.t=this.ja=null;this.jV=!1}Sb.prototype=new r;Sb.prototype.constructor=Sb;d=Sb.prototype;d.L=function(){return"Field"};d.H=function(){return 4};
d.h=function(a){return a&&a.$classData&&a.$classData.v.Xja?Gc(a.t)===Gc(this.t):!1};d.K=function(a){switch(a){case 0:return this.ja;case 1:return this.t;case 2:return this.Aa;case 3:return this.jV;default:throw(new X).e(""+a);}};d.u=function(){return Gc(this.t)};function Rb(a,b,c,e){a.ja=b;a.t=c;a.Aa=e;a.jV=!0;return a}d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.ja)),a=zI().Ga(a,yI(zI(),this.t)),a=zI().Ga(a,yI(zI(),this.Aa)),a=zI().Ga(a,this.jV?1231:1237);return zI().Wd(a,4)};d.M=function(){return Z(this)};
d.$classData=q({Xja:0},!1,"amf.core.metamodel.Field",{Xja:1,f:1,A:1,w:1,q:1,n:1});function g3a(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.Aa=this.g=this.ja=null}g3a.prototype=new r;g3a.prototype.constructor=g3a;d=g3a.prototype;
d.a=function(){h3a=this;Iq(this);bT(this);Di();var a=C().Zd,a=(new J).aa([D(new F,a,"Unit")]),b=Di().s;this.ja=Ei(a,b);Di();a=(new J).aa([this.jg,this.qc,this.Ud,this.ug]);b=Di().s;this.g=Ei(a,b);this.Aa=Tb(new Ub,Vb().dg,"Base Unit","Base class for every single document model unit. After parsing a document the parser generate parsing Units. Units encode the domain elements and can reference other units to re-use descriptions.",G());return this};d.Bn=function(a){this.qc=a};
d.yn=function(a){this.ug=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.GA=function(){throw Lb(Mb(),(new Nb).e("BaseUnit is an abstract class"));};d.An=function(a){this.jg=a};d.Zc=function(){this.GA()};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.zn=function(a){this.nc=a};d.$classData=q({nMa:0},!1,"amf.core.metamodel.document.BaseUnitModel$",{nMa:1,f:1,tn:1,Oc:1,ic:1,Xc:1});var h3a=void 0;function Ap(){h3a||(h3a=(new g3a).a());return h3a}
function i3a(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.g=this.du=null;this.ma=0}i3a.prototype=new r;i3a.prototype.constructor=i3a;d=i3a.prototype;
d.a=function(){j3a=this;Iq(this);cT(this);var a=(new Ki).Ld(lm()),b=C().un,a=this.du=Rb(new Sb,a,D(new F,b,"member"),Tb(new Ub,Bi().yi,"member","",G())),b=lm().g;this.g=oz(new pz,a,b);var a=C().zg,a=D(new F,a,"Array"),b=C().yi,b=D(new F,b,"Seq"),c=lm().ja;this.ja=oz(new pz,a,oz(new pz,b,c));this.Aa=Tb(new Ub,Vb().zg,"Array Node","Node that represents a dynamic array data structure",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};
d.Zc=function(){or();M();var a=(new N).a();return(new DL).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({vMa:0},!1,"amf.core.metamodel.domain.ArrayNodeModel$",{vMa:1,f:1,se:1,Oc:1,ic:1,Xc:1});var j3a=void 0;function im(){j3a||(j3a=(new i3a).a());return j3a}function k3a(){this.ke=this.Hb=this.Jc=this.Aa=this.g=this.ja=null;this.ma=0}k3a.prototype=new r;k3a.prototype.constructor=k3a;d=k3a.prototype;
d.QR=function(){0===(1&this.ma)<<24>>24&&(this.Jc=wPa(),this.ma=(1|this.ma)<<24>>24);return this.Jc};d.a=function(){l3a=this;Iq(this);cT(this);Di();var a=C().Zd,a=(new J).aa([D(new F,a,"DomainElement")]),b=Di().s;this.ja=Ei(a,b);Di();a=[this.wi()];a=(new J).aa(a);b=Di().s;this.g=Ei(a,b);this.Aa=Tb(new Ub,Vb().dg,"Domain element","Base class for any element describing a domain model. Domain Elements are encoded or declared into base units",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};
d.wi=function(){return 0===(1&this.ma)<<24>>24?this.QR():this.Jc};d.Pm=function(){return 0===(2&this.ma)<<24>>24?this.J5():this.ke};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.GA=function(){throw Lb(Mb(),(new Nb).e("DomainElement is an abstract class"));};d.Zc=function(){this.GA()};d.ec=function(){return this.ja};d.J5=function(){0===(2&this.ma)<<24>>24&&(this.ke=xPa(),this.ma=(2|this.ma)<<24>>24);return this.ke};
d.$classData=q({xMa:0},!1,"amf.core.metamodel.domain.DomainElementModel$",{xMa:1,f:1,se:1,Oc:1,ic:1,Xc:1});var l3a=void 0;function Lc(){l3a||(l3a=(new k3a).a());return l3a}function m3a(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.g=this.Md=this.Sd=null;this.ma=0}m3a.prototype=new r;m3a.prototype.constructor=m3a;d=m3a.prototype;
d.a=function(){n3a=this;Iq(this);cT(this);var a=Pb(),b=C().Zd;this.Sd=Rb(new Sb,a,D(new F,b,"raw"),Tb(new Ub,Vb().dg,"raw","Raw textual information that cannot be processed for the current model semantics.",G()));a=Pb();b=C().dc;this.Md=Rb(new Sb,a,D(new F,b,"mediaType"),Tb(new Ub,Vb().dc,"mediaType","Media type associated to the encoded fragment information",G()));Di();a=(new J).aa([this.Sd,this.Md]);b=Di().s;this.g=Ei(a,b);a=C().Zd;a=D(new F,a,"ExternalDomainElement");b=Lc().ja;this.ja=oz(new pz,
a,b);this.Aa=Tb(new Ub,Vb().dg,"External Domain Element","Domain element containing foreign information that cannot be included into the model semantics",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.Zc=function(){M();var a=(new N).a();return(new Bp).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({yMa:0},!1,"amf.core.metamodel.domain.ExternalDomainElementModel$",{yMa:1,f:1,se:1,Oc:1,ic:1,Xc:1});
var n3a=void 0;function Wl(){n3a||(n3a=(new m3a).a());return n3a}function o3a(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.Kp=this.rf=null;this.ma=0}o3a.prototype=new r;o3a.prototype.constructor=o3a;d=o3a.prototype;
d.a=function(){p3a=this;Iq(this);cT(this);var a=Pb(),b=C().zg;this.rf=Rb(new Sb,a,D(new F,b,"value"),Tb(new Ub,Vb().zg,"value","",G()));a=Pb();b=C().zg;this.Kp=Rb(new Sb,a,D(new F,b,"alias"),Tb(new Ub,Vb().zg,"alias","",G()));a=C().zg;a=D(new F,a,"Link");b=lm().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().zg,"Link Node","Node that represents a dynamic link in a data structure",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};
d.sc=function(){Di();var a=(new J).aa([this.rf]),b=Di().s,a=Ei(a,b),b=lm().g,c=Di();return a.la(b,c.s)};d.Zc=function(){cia();M();var a=(new N).a();return bia(0,"","",a)};d.ec=function(){return this.ja};d.$classData=q({BMa:0},!1,"amf.core.metamodel.domain.LinkNodeModel$",{BMa:1,f:1,se:1,Oc:1,ic:1,Xc:1});var p3a=void 0;function vr(){p3a||(p3a=(new o3a).a());return p3a}function Ub(){this.W2=this.X_=this.JT=this.cf=null}Ub.prototype=new r;Ub.prototype.constructor=Ub;d=Ub.prototype;d.L=function(){return"ModelDoc"};
d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.aka){var b=this.cf,c=a.cf;if((null===b?null===c:b.h(c))&&this.JT===a.JT&&this.X_===a.X_)return b=this.W2,a=a.W2,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.cf;case 1:return this.JT;case 2:return this.X_;case 3:return this.W2;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function Tb(a,b,c,e,f){a.cf=b;a.JT=c;a.X_=e;a.W2=f;return a}d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({aka:0},!1,"amf.core.metamodel.domain.ModelDoc",{aka:1,f:1,A:1,w:1,q:1,n:1});function Mq(){this.y0=this.m3=this.he=this.ur=null}Mq.prototype=new r;Mq.prototype.constructor=Mq;d=Mq.prototype;d.L=function(){return"ModelVocabulary"};d.H=function(){return 4};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.bka?this.ur===a.ur&&this.he===a.he&&this.m3===a.m3&&this.y0===a.y0:!1};
d.K=function(a){switch(a){case 0:return this.ur;case 1:return this.he;case 2:return this.m3;case 3:return this.y0;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function Lq(a,b,c,e,f){a.ur=b;a.he=c;a.m3=e;a.y0=f;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({bka:0},!1,"amf.core.metamodel.domain.ModelVocabulary",{bka:1,f:1,A:1,w:1,q:1,n:1});function q3a(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.af=this.rf=null;this.ma=0}
q3a.prototype=new r;q3a.prototype.constructor=q3a;d=q3a.prototype;
d.a=function(){r3a=this;Iq(this);cT(this);var a=Pb(),b=C().zg;this.rf=Rb(new Sb,a,D(new F,b,"value"),Tb(new Ub,Vb().zg,"value","value for an scalar dynamic node",G()));a=Xc();b=C().cb;this.af=Rb(new Sb,a,D(new F,b,"datatype"),Tb(new Ub,Vb().zg,"dataType","Data type of value for an scalar dynamic node",G()));a=C().zg;a=D(new F,a,"Scalar");b=lm().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().zg,"Scalar Node","Node that represents a dynamic scalar value data structure",G());return this};
d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){var a=this.rf,b=this.af,c=lm().g;return oz(new pz,a,oz(new pz,b,c))};d.Zc=function(){Dr();var a=w();return Ar(0,"",a,(M(),(new N).a()))};d.ec=function(){return this.ja};d.$classData=q({HMa:0},!1,"amf.core.metamodel.domain.ScalarNodeModel$",{HMa:1,f:1,se:1,Oc:1,ic:1,Xc:1});var r3a=void 0;function xj(){r3a||(r3a=(new q3a).a());return r3a}
function s3a(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.g=this.Zj=this.Rf=null;this.ma=0}s3a.prototype=new r;s3a.prototype.constructor=s3a;d=s3a.prototype;
d.a=function(){t3a=this;Iq(this);cT(this);var a=Zl(),b=C().Zd;this.Rf=Rb(new Sb,a,D(new F,b,"definedBy"),Tb(new Ub,Vb().dg,"defined by","Definition for the extended entity",G()));a=lm();b=C().Zd;this.Zj=Rb(new Sb,a,D(new F,b,"extension"),Tb(new Ub,Vb().dg,"extension","Data structure associated to the extension",G()));Di();var a=(new J).aa([this.Rf,this.Zj]),b=Di().s,a=Ei(a,b),b=Lc().g,c=Di();this.g=a.la(b,c.s);a=C().bb;a=D(new F,a,"ShapeExtension");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,
Vb().bb,"Shape Extension","Custom extensions for a data shape definition inside an API definition",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.Zc=function(){M();var a=(new N).a();return(new m2).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({QMa:0},!1,"amf.core.metamodel.domain.extensions.ShapeExtensionModel$",{QMa:1,f:1,se:1,Oc:1,ic:1,Xc:1});var t3a=void 0;
function Is(){t3a||(t3a=(new s3a).a());return t3a}function u3a(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.rf=this.$=null;this.ma=0}u3a.prototype=new r;u3a.prototype.constructor=u3a;d=u3a.prototype;
d.a=function(){v3a=this;Iq(this);cT(this);var a=Pb(),b=C().dc;this.$=Rb(new Sb,a,D(new F,b,"name"),Tb(new Ub,Vb().dc,"name","name of the template variable",G()));a=lm();b=C().Zd;this.rf=Rb(new Sb,a,D(new F,b,"value"),Tb(new Ub,Vb().dg,"value","value of the variables",G()));a=C().Zd;a=D(new F,a,"VariableValue");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().dg,"Variable Value","Value for a variable in a graph template",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};
d.sc=function(){Di();var a=(new J).aa([this.$,this.rf]),b=Di().s,a=Ei(a,b),b=Lc().g,c=Di();return a.la(b,c.s)};d.Zc=function(){M();var a=(new N).a();return(new n2).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({TMa:0},!1,"amf.core.metamodel.domain.templates.VariableValueModel$",{TMa:1,f:1,se:1,Oc:1,ic:1,Xc:1});var v3a=void 0;function om(){v3a||(v3a=(new u3a).a());return v3a}function DL(){L0.call(this);this.ab=this.ea=null}DL.prototype=new r0a;DL.prototype.constructor=DL;
function esa(a,b){var c=B(a.ea,im().du),e=z();b=c.hg(b,e.s);c=im().du;e=gr(new hr,b,(new N).a());ff(a,c,e);return b}function DEa(a,b){var c=im().du;b=gr(new hr,b,(new N).a());ff(a,c,b);return a}d=DL.prototype;d.rc=function(){return im()};d.ha=function(){return this.ab};d.ca=function(){return this.ea};
function w3a(a){var b=ls(ks(a.ea),t(new u,function(){return function(a){a=a.pa();var b=im().du;return!(null===a?null===b:pa(a,b))}}(a))),c=a.ab,b=(new DL).P(b,zj(M(),c)),b=Te(b,a.k);null!==a.k&&Te(b,a.k);c=B(a.ea,im().du);a=t(new u,function(){return function(a){return a.QJ()}}(a));var e=z();DEa(b,c.ka(a,e.s));return b}d.QJ=function(){return w3a(this)};
d.PL=function(a,b,c){var e=B(this.ea,im().du);a=t(new u,function(a,b,c,e){return function(a){return a.PL(b,c,e)}}(this,a,b,c));b=z();e=e.ka(a,b.s);return DEa(this,e)};d.P=function(a,b){this.ea=a;this.ab=b;L0.prototype.Yp.call(this,b);return this};function jm(a){return!!(a&&a.$classData&&a.$classData.v.nka)}d.$classData=q({nka:0},!1,"amf.core.model.domain.ArrayNode",{nka:1,cS:1,f:1,de:1,Wc:1,Rc:1});function gz(){this.oF=this.oa=null}gz.prototype=new r;gz.prototype.constructor=gz;d=gz.prototype;
d.Di=function(a,b){this.oa=a;this.oF=b;return this};d.L=function(){return"ElementTree"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.oka&&this.oa===a.oa){var b=this.oF;a=a.oF;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.oF;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({oka:0},!1,"amf.core.model.domain.ElementTree",{oka:1,f:1,A:1,w:1,q:1,n:1});function x3a(){this.rh=null}x3a.prototype=new r;x3a.prototype.constructor=x3a;d=x3a.prototype;d.L=function(){return"Graph"};d.H=function(){return 1};function gN(a,b,c){var e=a.rh;c=gr(new hr,c,(new N).a());a=ZGa(a,b);Fh(e,b,c,a)}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.rka){var b=this.rh;a=a.rh;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.rh;default:throw(new X).e(""+a);}};function R2a(a){var b=a.rh.rc().ec();a=function(){return function(a){return Gc(a)}}(a);var c=Di().s;if(c===Di().s)if(b===G())a=G();else{for(var c=b.fa(),e=c=oz(new pz,a(c),G()),b=b.sa();b!==G();)var f=b.fa(),f=oz(new pz,a(f),G()),e=e.ve=f,b=b.sa();a=c}else{for(c=Rf(b,c);!b.b();)e=b.fa(),c.Ic(a(e)),b=b.sa();a=c.lc()}return a.Ri()}d.u=function(){return U(W(),this)};function N0(a){var b=new x3a;b.rh=a;return b}
function XGa(a,b,c){var e=a.rh;c=c.t;a=ZGa(a,b);Fh(e,b,c,a)}function WGa(a){var b=a.rh.ca().Pb,c=zx(),c=Va(c),e=Ce().s,b=De(b,c,e);a=t(new u,function(){return function(a){return Gc(a.xc.t)}}(a));c=pf();return b.ka(a,c.s).ce()}
function Q2a(a,b){var c=a.rh.ca().Pb,e=zx(),e=Va(e),f=Ce().s;a=De(c,e,f).Ib(t(new u,function(a,b){return function(a){return Gc(a.xc.t)===Gc(Kz(C(),b))}}(a,b)));if(x(a))return a=a.i.t.t,sj(a)?(Di(),a=(new J).aa([a.t]),b=Di().s,Ei(a,b)):es(a)&&a.Tb.Fa()?a.Tb.wa():G();if(w()===a)return G();throw(new v).d(a);}function ZGa(a,b){a=a.rh.ca().Pb.Ta(b);a.b()?a=w():(a=a.c(),a=(new A).d(a.E));return a.b()?(M(),(new N).a()):a.c()}
function P2a(a,b){var c=a.rh.ca().Pb,e=zx(),e=Va(e),f=Ce().s;b=De(c,e,f).Ib(t(new u,function(a,b){return function(a){return Gc(a.xc.t)===Gc(Kz(C(),b))}}(a,b)));if(x(b))return b=b.i.t.t,Yl(b)?(Di(),a=(new J).aa([b]),b=Di().s,Ei(a,b)):es(b)&&b.Tb.Fa()&&Yl(b.Tb.fa())?(b=b.Tb,a=t(new u,function(){return function(a){return a}}(a)),c=z(),b.ka(a,c.s).wa()):G();if(w()===b)return G();throw(new v).d(b);}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({rka:0},!1,"amf.core.model.domain.Graph",{rka:1,f:1,A:1,w:1,q:1,n:1});function ur(){L0.call(this);this.vC=this.ab=this.ea=null}ur.prototype=new r0a;ur.prototype.constructor=ur;function y3a(){}d=y3a.prototype=ur.prototype;d.rc=function(){return vr()};d.ha=function(){return this.ab};d.ca=function(){return this.ea};function pEa(a,b){a.vC=(new A).d(b);return a}d.QJ=function(){var a=ks(this.ea),b=this.ab,a=(new ur).P(a,zj(M(),b)),a=Te(a,this.k);a.vC=this.vC;return a};d.PL=function(){return this};
d.P=function(a,b){this.ea=a;this.ab=b;L0.prototype.Yp.call(this,b);this.vC=w();return this};function JL(a){return!!(a&&a.$classData&&a.$classData.v.i7)}d.$classData=q({i7:0},!1,"amf.core.model.domain.LinkNode",{i7:1,cS:1,f:1,de:1,Wc:1,Rc:1});function kA(){L0.call(this);this.CCa=this.ab=this.ea=null}kA.prototype=new r0a;kA.prototype.constructor=kA;
function z3a(a){var b=ks(a.ea),c=a.ab,b=(new kA).P(b,zj(M(),c));null!==a.k&&Te(b,a.k);var c=sr(a),e=t(new u,function(a){return function(b){return Dd(a.ea,b).wa()}}(a)),f=pf();c.md(e,f.s).X(t(new u,function(a,b){return function(a){var c=a.t;a=a.xc;var e=c.t.QJ();return Fh(b,a,e,c.E)}}(a,b)));return b}d=kA.prototype;d.rc=function(){return this.CCa};d.ha=function(){return this.ab};
function sr(a){var b=a.ea.Pb,c=zx(),c=Va(c),e=Ce().s,b=De(b,c,e);a=t(new u,function(){return function(a){if(null!==a){a=a.xc;Zea();var b=lm().g;if(!uh(b,a))return(new A).d(a).wa()}return w().wa()}}(a));c=pf();return b.md(a,c.s)}d.ca=function(){return this.ea};d.QJ=function(){return z3a(this)};function A3a(a){var b=sr(a);a=t(new u,function(a){return function(b){var c=eFa((new Cf).e(b.t.ba));b=Xp(a.ea,b);return(new P).N(c,b)}}(a));var c=pf();return b.ka(a,c.s).$g(fc().ci)}
d.PL=function(a,b,c){sr(this).X(t(new u,function(a,b,c,h){return function(k){var l=eFa((new Cf).e(k.t.ba)),p=re(ta(),l,"?")?l.substring(0,-1+(l.length|0)|0):l,p=b.Ib(t(new u,function(a,b){return function(a){return a.oa===b}}(a,p))),y=Dd(a.ea,k);if(x(y)){var I=y.i;if(null!==I){y=I.t;I=y.t;if(p.b())var E=w();else E=p.c(),E=(new A).d(E.oF);p=I.PL(c,E.b()?G():E.c(),re(ta(),l,"?")&&p.b()?t(new u,function(){return function(){}}(a)):h);gs(a.ea,k);return mA(a,Cja(At(),l,c,h),p,y.E)}}throw(new v).d(y);}}(this,
b,a,c)));return this};function B3a(a){var b=lm(),c=C().zg,e=(new Cf).e(a),e=Gj(e.zd);return Rb(new Sb,b,D(new F,c,e),Tb(new Ub,Vb().zg,a,"",G()))}function fsa(a,b,c,e){M0(c,a.k,H(z(),G()));Fh(a,b,c,e);return a}function mA(a,b,c,e){var f=C().zg.he;0===(b.indexOf(f)|0)&&(f=C().zg.he,b=b.split(f).join(""));fsa(a,B3a(b),c,e);return a}d.P=function(a,b){this.ea=a;this.ab=b;L0.prototype.Yp.call(this,b);this.CCa=(new C3a).xE(this);return this};
function fm(a){return!!(a&&a.$classData&&a.$classData.v.ska)}d.$classData=q({ska:0},!1,"amf.core.model.domain.ObjectNode",{ska:1,cS:1,f:1,de:1,Wc:1,Rc:1});function Br(){L0.call(this);this.ab=this.ea=null}Br.prototype=new r0a;Br.prototype.constructor=Br;d=Br.prototype;d.rc=function(){return xj()};d.ha=function(){return this.ab};
function iia(a,b){var c=xj().af,e=Dr();b=qi().Mj===b?e.uGa:qi().hj===b?e.FBa:qi().jp===b?e.AC:qi().pr===b?e.wCa:qi().vi===b?e.Eza:qi().rg===b?e.bAa:qi().uD===b?e.gza:qi().Xj===b?e.Hya:qi().uq===b?e.xr:qi().Gw===b?e.$C:qi().Xl===b?e.dza:qi().mB===b?e.eza:qi().sz===b?e.Zza:qi().Px===b?e.Iya:qi().jB===b?e.Eya:qi().CB===b?e.xDa:qi().Xr===b?e.vya:qi().ir===b?e.wya:qi().BB===b?e.AH:Nh(new Oh,b,(M(),(new N).a()));ff(a,c,b)}d.ca=function(){return this.ea};
d.QJ=function(){var a=ks(this.ea),b=this.ab,a=(new Br).P(a,zj(M(),b));return Te(a,this.k)};function Pja(a,b,c){var e=xj().rf;ff(a,e,Nh(new Oh,b,c))}d.PL=function(a,b,c){return Oja(At(),this,a,c)};d.P=function(a,b){this.ea=a;this.ab=b;L0.prototype.Yp.call(this,b);return this};function wj(a){return!!(a&&a.$classData&&a.$classData.v.uka)}d.$classData=q({uka:0},!1,"amf.core.model.domain.ScalarNode",{uka:1,cS:1,f:1,de:1,Wc:1,Rc:1});function o2(){this.k=this.mb=this.g=null;this.ma=!1}o2.prototype=new r;
o2.prototype.constructor=o2;function D3a(){}d=D3a.prototype=o2.prototype;d.Ub=function(){return H(z(),G())};d.Qb=function(a){return cj(this,a)};d.Uc=function(a){return Te(this,a)};d.Nd=function(){var a=B(this.ca(),zW().$).G,a=a.b()?"default-parametrized":a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.rI=function(){return B(this.g,zW().lj)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};
function TUa(a){return B(a.g,zW().ef)}d.Ch=function(){return zW().$};d.Te=function(a){this.k=a};d.P=function(a){this.g=a;return this};function p2(){this.t=this.ba=null}p2.prototype=new r;p2.prototype.constructor=p2;d=p2.prototype;d.L=function(){return"Variable"};d.H=function(){return 2};d.Ie=function(){return this.ba};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.zka?this.ba===a.ba?this.t===a.t:!1:!1};
d.K=function(a){switch(a){case 0:return this.ba;case 1:return this.t;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.II=function(){return this.t};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Kba=function(a,b){this.ba=a;this.t=b;return this};Object.defineProperty(p2.prototype,"value",{get:function(){return this.II()},configurable:!0});Object.defineProperty(p2.prototype,"name",{get:function(){return this.Ie()},configurable:!0});
p2.prototype.$classData=q({zka:0},!1,"amf.core.model.domain.templates.Variable",{zka:1,f:1,A:1,w:1,q:1,n:1});function sDa(){this.MN=this.NN=null;this.Gm=!1}sDa.prototype=new r;sDa.prototype.constructor=sDa;d=sDa.prototype;d.L=function(){return"DeclarationPromise"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Cka){var b=this.NN,c=a.NN;return(null===b?null===c:b.h(c))&&this.MN===a.MN?this.Gm===a.Gm:!1}return!1};
d.K=function(a){switch(a){case 0:return this.NN;case 1:return this.MN;case 2:return this.Gm;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function rDa(a,b,c){a.NN=b;a.MN=c;a.Gm=!1;return a}d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.NN)),a=zI().Ga(a,yI(zI(),this.MN)),a=zI().Ga(a,this.Gm?1231:1237);return zI().Wd(a,3)};d.M=function(){return Z(this)};d.$classData=q({Cka:0},!1,"amf.core.parser.DeclarationPromise",{Cka:1,f:1,A:1,w:1,q:1,n:1});
function wia(){this.Xi=0;this.hA=null}wia.prototype=new r;wia.prototype.constructor=wia;d=wia.prototype;d.ps=function(a,b){ADa(this,a,b)};d.cC=function(a,b){return CDa(this,a,b)};d.Vs=function(a,b,c,e,f,g){a=a.k;var h=xc().Eg;mT(this,a,b,c,e,f,h,g)};d.Hc=function(a,b,c,e,f,g,h){mT(this,a,b,c,e,f,g,h)};d.R0=function(a,b){this.Xi=a;this.hA=b;return this};d.$classData=q({ANa:0},!1,"amf.core.parser.DefaultParserSideErrorHandler",{ANa:1,f:1,p7:1,zq:1,Lp:1,ip:1});function Sh(){this.t=this.xc=null}
Sh.prototype=new r;Sh.prototype.constructor=Sh;d=Sh.prototype;d.L=function(){return"FieldEntry"};function Rh(a,b,c){a.xc=b;a.t=c;return a}d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Eka){var b=this.xc,c=a.xc;return(null===b?null===c:b.h(c))?this.t===a.t:!1}return!1};d.K=function(a){switch(a){case 0:return this.xc;case 1:return this.t;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function E3a(a){var b=Nh(new Oh,!Cj(a.t.t),a.t.t.ha()),b=Ph(new Qh,b,a.t.E);return Rh(new Sh,a.xc,b)}function VV(a){var b=a.t.t.Tb;a=t(new u,function(){return function(a){return a}}(a));var c=z();return b.ka(a,c.s)}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Eka:0},!1,"amf.core.parser.FieldEntry",{Eka:1,f:1,A:1,w:1,q:1,n:1});function q2(){}q2.prototype=new dPa;q2.prototype.constructor=q2;q2.prototype.a=function(){return this};q2.prototype.u=function(){return"FieldEntry"};
q2.prototype.zf=function(a,b){return Rh(new Sh,a,b)};q2.prototype.$classData=q({FNa:0},!1,"amf.core.parser.FieldEntry$",{FNa:1,kdb:1,f:1,vHa:1,q:1,n:1});var F3a=void 0;function zx(){F3a||(F3a=(new q2).a());return F3a}function YB(){this.ga=this.Vw=null}YB.prototype=new r;YB.prototype.constructor=YB;d=YB.prototype;d.L=function(){return"FragmentRef"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Kka){var b=this.Vw,c=a.Vw;if(null===b?null===c:b.h(c))return b=this.ga,a=a.ga,null===b?null===a:b.h(a)}return!1};function XB(a,b,c){a.Vw=b;a.ga=c;return a}d.K=function(a){switch(a){case 0:return this.Vw;case 1:return this.ga;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Kka:0},!1,"amf.core.parser.FragmentRef",{Kka:1,f:1,A:1,w:1,q:1,n:1});function Kp(){this.Lc=this.oo=this.Od=null}Kp.prototype=new r;Kp.prototype.constructor=Kp;d=Kp.prototype;d.L=function(){return"ParsedReference"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Lka){var b=this.Od,c=a.Od;(null===b?null===c:b.h(c))?(b=this.oo,c=a.oo,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Lc,a=a.Lc,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Od;case 1:return this.oo;case 2:return this.Lc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function Jp(a,b,c,e){a.Od=b;a.oo=c;a.Lc=e;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Lka:0},!1,"amf.core.parser.ParsedReference",{Lka:1,f:1,A:1,w:1,q:1,n:1});function jT(){this.Lo=this.Dd=null}jT.prototype=new r;jT.prototype.constructor=jT;function G3a(){}d=G3a.prototype=jT.prototype;d.L=function(){return"Range"};
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.n7){var b=this.Dd,c=a.Dd;if(null===b?null===c:b.h(c))return b=this.Lo,a=a.Lo,null===b?null===a:b.h(a)}return!1};d.Zo=function(){return this.u()};d.K=function(a){switch(a){case 0:return this.Dd;case 1:return this.Lo;default:throw(new X).e(""+a);}};d.u=function(){return"["+this.Dd+"-"+this.Lo+"]"};d.wU=function(a,b){this.Dd=a;this.Lo=b;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
jT.prototype.contains=function(a){return a.Dd.Ne>=this.Dd.Ne&&a.Lo.Ne<=this.Lo.Ne};jT.prototype.toString=function(){return this.Zo()};jT.prototype.extent=function(a){return(new jT).wU(H3a(this.Dd,a.Dd),I3a(this.Lo,a.Lo))};Object.defineProperty(jT.prototype,"end",{get:function(){return this.Lo},configurable:!0});Object.defineProperty(jT.prototype,"start",{get:function(){return this.Dd},configurable:!0});jT.prototype.$classData=q({n7:0},!1,"amf.core.parser.Range",{n7:1,f:1,A:1,w:1,q:1,n:1});
function J3a(){this.mg=this.Ea=this.pP=null}J3a.prototype=new r;J3a.prototype.constructor=J3a;d=J3a.prototype;d.L=function(){return"RefContainer"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Mka&&this.pP===a.pP&&Yj(this.Ea,a.Ea)){var b=this.mg;a=a.mg;return null===b?null===a:b.h(a)}return!1};function K3a(a,b,c){var e=new J3a;e.pP=a;e.Ea=b;e.mg=c;return e}
d.K=function(a){switch(a){case 0:return this.pP;case 1:return this.Ea;case 2:return this.mg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Mka:0},!1,"amf.core.parser.RefContainer",{Mka:1,f:1,A:1,w:1,q:1,n:1});function AM(){this.yf=null}AM.prototype=new r;AM.prototype.constructor=AM;function L3a(){}d=L3a.prototype=AM.prototype;d.a=function(){this.yf=pc(Os(),G());return this};d.L=function(){return"ReferenceCollector"};
d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.o7)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};function BM(a,b,c,e){var f=Fia(Jia(),b);if(null===f)throw(new v).d(f);b=f.pa();var f=f.Ba(),g=a.yf.Ta(b);a:{if(x(g)){var h=g.i;if(null!==h){a.yf.Rl(b,M3a(h,c,e,f));break a}}if(w()===g)a=a.yf,GPa||(GPa=(new lT).a()),g=z(),c=(new f1).Di(b,H(g,(new J).aa([K3a(c,e,f)]))),a.Ih((new P).N(b,c));else throw(new v).d(g);}}d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({o7:0},!1,"amf.core.parser.ReferenceCollector",{o7:1,f:1,A:1,w:1,q:1,n:1});function r2(){this.Od=this.rO=null}r2.prototype=new r;r2.prototype.constructor=r2;d=r2.prototype;d.L=function(){return"ReferenceResolutionResult"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Oka){var b=this.rO,c=a.rO;if(null===b?null===c:b.h(c))return b=this.Od,a=a.Od,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.rO;case 1:return this.Od;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fH=function(a,b){this.rO=a;this.Od=b;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Oka:0},!1,"amf.core.parser.ReferenceResolutionResult",{Oka:1,f:1,A:1,w:1,q:1,n:1});function RM(){this.Ah=this.Ea=null}RM.prototype=new r;RM.prototype.constructor=RM;d=RM.prototype;d.L=function(){return"ValueNode"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Rka?Yj(this.Ea,a.Ea):!1};d.K=function(a){switch(a){case 0:return this.Ea;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function SRa(a){var b=a.Ea,c=YWa(),b=+L(b,c,a.Ah);return Nh(new Oh,b,N3a(a))}d.Vb=function(a,b){this.Ea=a;this.Ah=b;return this};d.Pf=function(){var a=this.Ea,b=qe(),a=L(a,b,this.Ah);return Nh(new Oh,a,N3a(this))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function N3a(a){return Ke(M(),a.Ea.we())}d.Hf=function(){var a=this.Ea,b=zc(),a=L(a,b,this.Ah).ya;return Nh(new Oh,a,N3a(this))};d.KE=function(){var a=this.Ea,b=xDa(),a=L(a,b,this.Ah)|0;return Nh(new Oh,a,N3a(this))};d.Ip=function(){var a=this.Ea,b=kL(),a=!!L(a,b,this.Ah);return Nh(new Oh,a,N3a(this))};d.$classData=q({Rka:0},!1,"amf.core.parser.ValueNode",{Rka:1,f:1,A:1,w:1,q:1,n:1});function O3a(){this.bg=this.kT=this.YC=null}O3a.prototype=new r;O3a.prototype.constructor=O3a;d=O3a.prototype;
d.L=function(){return"Node"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Tka){if(this.YC===a.YC)var b=this.kT,c=a.kT,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.bg,a=a.bg,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.YC;case 1:return this.kT;case 2:return this.bg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function ML(a){var b=Pd(a.bg);return xx(b).UC(qd(function(){return function(a,b){a=(new ph).e(a).ia;return 0<(a===b?0:a<b?-1:1)}}(a)))}function AL(a,b){b=a.bg.Ta(b);if(b.b())return w();b=b.c();return(new A).d(b.UC(qd(function(){return function(a,b){a=a.t;b=b.t;return 0<(a===b?0:a<b?-1:1)}}(a))))}d.y=function(){return Y(this)};function qMa(a,b,c){var e=new O3a;e.YC=a;e.kT=b;e.bg=c;return e}d.M=function(){return Z(this)};d.$classData=q({Tka:0},!1,"amf.core.rdf.Node",{Tka:1,f:1,A:1,w:1,q:1,n:1});
function WDa(){this.l=this.kea=this.dr=this.fc=null}WDa.prototype=new r;WDa.prototype.constructor=WDa;d=WDa.prototype;d.mea=function(a){this.kea=(new A).d(a.k);P3a(this,a)};
function Q3a(a,b,c){var e=c.ec();c=function(){return function(a){return Gc(a)}}(a);var f=Di().s;if(f===Di().s)if(e===G())c=G();else{for(var f=e.fa(),g=f=oz(new pz,c(f),G()),e=e.sa();e!==G();)var h=e.fa(),h=oz(new pz,c(h),G()),g=g.ve=h,e=e.sa();c=f}else{for(f=Rf(e,f);!e.b();)g=e.fa(),f.Ic(c(g)),e=e.sa();c=f.lc()}for(;!c.b();)e=c.fa(),f=a.l.wm,g=C().yi,QC(f,b,Gc(D(new F,g,"type")),e),c=c.sa()}d.L=function(){return"Emitter"};
function R3a(a,b,c,e,f){b=b.jV?Dd(e.ca(),b):w();a:{if(x(b)&&(e=b.i,null!==e)){b=e.xc;e=e.t;var g=Gc(b.t);Qha(f,g,e);S3a(a,c,g,b.ja,e);break a}if(w()!==b)throw(new v).d(b);}}d.H=function(){return 1};
function P3a(a,b){if(!a.dr.Zn.Ja(b.k)||T3a(a,b)){var c=b.k;oda(a.dr,c);var e=Vha(Qc(),c,b),f=eba(b);Q3a(a,c,f,(new A).d(b));var g=f.sc();if(uz(f))var f=z(),h=[$w(),lA()],f=H(f,(new J).aa(h));else f=G();f=f.xb(t(new u,function(a){return function(b){return!a.fc.z0.R(b)}}(a)));h=Di();g=g.la(f,h.s);if(fm(b)&&a.fc.p3){var f=C().BR.he+"/properties",h=Zc(),k=Nh(new Oh,sr(b).lb(),(new N).a());M();var l=(new N).a();S3a(a,c,f,h,Ph(new Qh,k,l))}for(;!g.b();)f=g.fa(),R3a(a,f,c,b,e),g=g.sa();U3a(a,b);b=re(ta(),
c,"/")?c+"source-map":-1!==(c.indexOf("#")|0)||0<=(c.length|0)&&"null"===c.substring(0,4)?c+"/source-map":c+"#/source-map";V3a(a,c,e,b)}}d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Vka&&a.l===this.l?this.fc===a.fc:!1};d.K=function(a){switch(a){case 0:return this.fc;default:throw(new X).e(""+a);}};function W3a(a,b,c,e){QC(a.l.wm,b,c,e)}function X3a(a,b,c,e){QC(a.l.wm,b,c,e)}
function Y3a(a,b,c){c=c.E;var e=br(),e=vA(e);EHa(c,e).X(t(new u,function(a,b){return function(c){a:{if(null!==c){var e=c.pa(),l=c.si();if(null!==e){c=e.pa();var e=e.Ba(),p=br(),p=vA(p);EHa(e,p).X(t(new u,function(a,b,c,e){return function(f){if(null!==f){var g=f.pa(),h=f.si();if(null!==g){f=g.pa();var g=g.Ba(),h=b+"_"+c+"_"+h,k=a.l.wm,l=C().HB;QC(k,b,Gc(D(new F,l,e)),h);QC(a.l.wm,h,Gc(Mc().jr.t),f);return PC(a.l.wm,h,Gc(Mc().rf.t),g,w())}}throw(new v).d(f);}}(a,b,l,c)));break a}}throw(new v).d(c);
}}}(a,b)))}d.u=function(){return U(W(),this)};function Z3a(a,b,c,e){try{var f=a.l.wm,g=(new ph).e(e),h=rC(wa(),g.ia);PC(f,b,c,""+h,(new A).d(qi().vi))}catch(k){if(NF(k))PC(a.l.wm,b,c,e,w());else throw k;}}function V3a(a,b,c,e){a.fc.NS&&Tc(c.E)&&(QC(a.l.wm,b,Gc(Lc().Hb.t),e),Q3a(a,e,Mc(),w()),Y3a(a,e,c))}function $3a(a,b,c,e){QC(a.l.wm,b,c,e.k);P3a(a,e)}
function U3a(a,b){var c=b.k,e=H(Wg(),G()),f=Dd(b.ca(),Lc().Pm());if(!f.b())if(f=f.c(),null!==f)f=f.t.t,es(f)&&f.Tb.X(t(new u,function(a,b,c){return function(e){if(bm(e)){var f=B(e.g,bf().Rf).k;vh(b,f);a4a(a,c,f,e,w())}else throw(new v).d(e);}}(a,e,c)));else throw(new v).d(f);f=(new iA).$d(1);b.ca().Pb.X(t(new u,function(a,b,c,e,f){return function(y){if(null!==y){var I=y.pa(),E=y.Ba().t.ha();y=new b4a;var E=E.jf,V=Wg().s;Fr(E,y,V).X(t(new u,function(a,b,c,e,f,g){return function(h){h=h.Xp;var k=b.k,
l=c.ta,p=B(h.g,bf().$).G,k=k+"/scalar-valued/"+l+"/"+(p.b()?null:p.c());vh(e,k);qr(rr(),k,B(h.g,bf().Zj));a4a(a,f,k,h,(new A).d(g));c.ta=1+c.ta|0}}(a,b,c,e,f,I)))}else throw(new v).d(y);}}(a,b,f,e,c)));if(e.Fa())for(b=e.Lb;!b.b();)e=b.fa(),W3a(a,c,Gc(Lc().Pm().t),e),b=b.sa()}function T3a(a,b){a=a.kea;return b.k===(a.b()?"":a.c())?!bt(b):!1}
function c4a(a,b,c,e){var f=yb(e),g=yb(e);if(!g.b()){var g=g.c(),h=Db().kg;Eb(e,h,g.k);gs(e.ca(),Db().ef)}QC(a.l.wm,b,c,e.k);P3a(a,e);f.b()||(a=f.c(),vj(e.ca(),Db().ef,a,(M(),(new N).a())))}function d4a(a,b,c,e){try{var f=a.l.wm,g=(new ph).e(e),h=qC(pC(),g.ia,10);PC(f,b,c,""+h,(new A).d(qi().pr))}catch(k){if(NF(k))PC(a.l.wm,b,c,e,w());else throw k;}}
function a4a(a,b,c,e,f){QC(a.l.wm,b,c,B(e.g,bf().Zj).k);b=a.l.wm;var g=Gc(bf().$.t),h=B(e.g,bf().$).G;PC(b,c,g,h.b()?null:h.c(),w());f.b()||(f=f.c(),QC(a.l.wm,c,Gc(bf().jr.t),Gc(f.t)));P3a(a,B(e.g,bf().Zj))}function s2(a,b,c,e,f){f===qi().hj?PC(a.l.wm,b,c,e,(new A).d(qi().pr)):PC(a.l.wm,b,c,e,(new A).d(f))}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function S3a(a,b,c,e,f){if(Yl(e)&&ns(e)&&yb(e).qa())c4a(a,b,c,e);else if(Jq(e))$3a(a,b,c,f.t);else if(Xc().h(e))W3a(a,b,c,f.t.u());else if(yFa().h(e))X3a(a,b,c,f.t.u());else if(KL().h(e))s2(a,b,c,f.t.u(),qi().ir);else if(Pb().h(e))if(e=Zb(f.E,n(e4a)),x(e))e=e.i,s2(a,b,c,f.t.u(),e.oj);else{if(w()!==e)throw(new v).d(e);PC(a.l.wm,b,c,f.t.u(),w())}else if(Yc().h(e))PC(a.l.wm,b,c,f.t.u(),(new A).d(qi().Xj));else if(Zc().h(e))d4a(a,b,c,f.t.u());else if(Ci().h(e))PC(a.l.wm,b,c,f.t.u(),(new A).d(qi().vi));
else if(bs().h(e))Z3a(a,b,c,f.t.u());else if(LL().h(e))s2(a,b,c,Nu(Ru(f.t.t)),qi().Xl);else if(UK().h(e))f=f.t.t,f.Ex.qa()||f.Mx.qa()?s2(a,b,c,Nu(Ru(f)),qi().Xl):s2(a,b,c,Nu(Ru(f)),qi().uq),void 0;else if(wEa(e))f4a(a,b,c,f.t.Tb,e.Se);else if(Wc(e))f.t.Tb.X(t(new u,function(a,b,c,e){return function(f){var y=e.Se;M();var I=(new N).a();S3a(a,b,c,y,Ph(new Qh,f,I))}}(a,b,c,e)));else if(ad()===e)if(e=f.t.t,"boolean"===typeof e)PC(a.l.wm,b,c,f.t.u(),(new A).d(qi().Xj));else if(Da(e))d4a(a,b,c,f.t.u());
else if(ma(e))Z3a(a,b,c,f.t.u());else if("number"===typeof e)PC(a.l.wm,b,c,f.t.u(),(new A).d(qi().vi));else if(e=Zb(f.E,n(e4a)),x(e))e=e.i,s2(a,b,c,f.t.u(),e.oj);else{if(w()!==e)throw(new v).d(e);PC(a.l.wm,b,c,f.t.u(),w())}else throw(new v).d(e);}
function f4a(a,b,c,e,f){var g=b+"/list";b=QC(a.l.wm,b,c,g);c=C().yi;c=Gc(D(new F,c,"type"));var h=C().un;QC(b,g,c,Gc(D(new F,h,"Seq")));b=z();e.cg(b.s).X(t(new u,function(a,b,c){return function(e){if(null!==e){var f=e.pa();e=e.si();var g=C().un;e=Gc(D(new F,g,"_"+(1+e|0)));M();g=(new N).a();S3a(a,b,e,c,Ph(new Qh,f,g))}else throw(new v).d(e);}}(a,g,f)))}d.$classData=q({Vka:0},!1,"amf.core.rdf.RdfModelEmitter$Emitter",{Vka:1,f:1,A:1,w:1,q:1,n:1});function aM(){this.ET=null;this.xm=0;this.l=null}
aM.prototype=new r;aM.prototype.constructor=aM;d=aM.prototype;d.L=function(){return"Shortener"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.gla&&a.l===this.l){var b=this.ET;a=a.ET;return null===b?null===a:O1(b,a)}return!1};function XEa(a,b){var c=(new ph).e(b);Tc(c)?(c=a.l.i_+"#",c=!(0<=(b.length|0)&&b.substring(0,c.length|0)===c)):c=!1;return c?a.ET.IO(b,jb(function(a){return function(){a.xm=1+a.xm|0;return a.l.i_+"#"+a.xm}}(a))):b}
d.K=function(a){switch(a){case 0:return this.ET;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function VEa(a,b,c){a.ET=c;if(null===b)throw Lb(Mb(),null);a.l=b;a.xm=-1;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({gla:0},!1,"amf.core.resolution.stages.UrlShortenerStage$Shortener",{gla:1,f:1,A:1,w:1,q:1,n:1});function bM(){this.Pa=null}bM.prototype=new wS;bM.prototype.constructor=bM;bM.prototype.R=function(a){return VEa(new aM,this.Pa,a)};
bM.prototype.u=function(){return"Shortener"};bM.prototype.$classData=q({dPa:0},!1,"amf.core.resolution.stages.UrlShortenerStage$Shortener$",{dPa:1,T2:1,f:1,za:1,q:1,n:1});function yL(){this.mfa=this.P9=this.pq=this.Zn=this.Yfa=null}yL.prototype=new r;yL.prototype.constructor=yL;d=yL.prototype;d.a=function(){this.Yfa=H(xz(),G());this.Zn=Yd();this.pq=H(fc().Sg,G());this.P9=H(z(),G());this.mfa=t(new u,function(){return function(){return!1}}(this));return this};d.L=function(){return"ModelTraversalRegistry"};
d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.kla)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};function oda(a,b){a.Yfa.Om(b);a.Zn=a.Zn.Ij(b);return a}function g4a(a,b,c){a.pq.Ja(b.k)?b=!0:(b=B(b.ea,ej().it).G,b=b.b()?"":b.c(),b=a.pq.Ja(b));return b?!0:c.qa()?(c=c.c(),a.pq.Ja(c)):!1}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({kla:0},!1,"amf.core.traversal.ModelTraversalRegistry",{kla:1,f:1,A:1,w:1,q:1,n:1});function hM(){this.xM=this.Tf=null}hM.prototype=new r;hM.prototype.constructor=hM;d=hM.prototype;d.td=function(){return this};d.Yn=function(a,b){JF(this,a,b)};d.Sa=function(){return this.cq()};d.pm=function(){return this};d.cq=function(){var a=this.Tf.fa();this.Tf=this.Tf.sa();this.MS();return a};d.b=function(){return!this.Qa()};d.wa=function(){var a=Di().s;return EI(this,a)};
d.gQ=function(a){return this.TC(0,0<a?a:0)};d.Fk=function(a,b,c){return IG(this,a,b,c)};d.ng=function(a){return IG(this,"",a,"")};d.u=function(){return dS(this)};d.TC=function(a,b){return JOa(this,a,b)};d.X=function(a){fS(this,a)};d.ae=function(a,b){return pd(this,a,b)};
d.MS=function(){a:for(;;){if(Tc(this.Tf)){var a=this.Tf.fa();this.Tf=this.Tf.sa();if(Kb(a)){var b=a;if(this.xM.Ja(b.k))continue a;var c=b.ca().Pb,e=zx(),e=Va(e),f=Ce().s,c=De(c,e,f),e=t(new u,function(){return function(a){return a.t.t}}(this)),f=pf(),c=c.ka(e,f.s);this.xM.Om(b.k);b=c.wa();c=this.Tf;e=Di();b=b.la(c,e.s);this.Tf=oz(new pz,a,b)}else es(a)?(b=a.Tb.wa(),c=this.Tf,e=Di(),b=b.la(c,e.s),this.Tf=oz(new pz,a,b)):this.Tf=oz(new pz,a,this.Tf)}break}};d.KI=function(a){return KOa(this,a)};
d.vo=function(){yq();var a=uv().gc;return EI(this,a)};d.lb=function(){return FI(this)};d.bj=function(){var a=a2().s;return EI(this,a)};d.Qa=function(){return Tc(this.Tf)};d.lm=function(){return IG(this,"","","")};d.Pba=function(a,b){this.Tf=a;this.xM=b;return this};d.kd=function(){return Tu(this)};d.Vo=function(){return Tu(this)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.SK=function(a){hM.prototype.Pba.call(this,a,H(xz(),G()));this.MS();return this};d.ce=function(){return Tu(this)};
d.pg=function(){var a=Pf(),a=Qf(a);return EI(this,a)};d.rl=function(a,b){return pd(this,a,b)};d.$j=function(a,b,c){NOa(this,a,b,c)};d.ko=function(){return!1};d.mE=function(a){return OOa(this,a)};d.$g=function(){for(var a=Ry(new Sy,Xs());;)if(Tc(this.Tf)){var b=this.cq();Ty(a,b)}else break;return a.gb};d.Ql=function(a){return II(this,a)};d.Fa=function(){return Tc(this)};d.Sj=function(a){return JI(this,a)};
d.$classData=q({tPa:0},!1,"amf.core.traversal.iterator.AmfElementIterator",{tPa:1,f:1,vPa:1,pi:1,Kb:1,Jb:1});function jM(){this.xM=this.Tf=null}jM.prototype=new r;jM.prototype.constructor=jM;d=jM.prototype;d.td=function(){return this};d.Yn=function(a,b){JF(this,a,b)};d.Sa=function(){return this.cq()};d.pm=function(){return this};d.cq=function(){var a=this.Tf.fa();this.Tf=this.Tf.sa();this.MS();return a};d.b=function(){return!this.Qa()};d.wa=function(){var a=Di().s;return EI(this,a)};
d.gQ=function(a){return this.TC(0,0<a?a:0)};d.Fk=function(a,b,c){return IG(this,a,b,c)};d.ng=function(a){return IG(this,"",a,"")};d.u=function(){return dS(this)};d.TC=function(a,b){return JOa(this,a,b)};d.X=function(a){fS(this,a)};d.ae=function(a,b){return pd(this,a,b)};
d.MS=function(){a:for(;;){if(Tc(this.Tf)){var a=this.Tf.fa();this.Tf=this.Tf.sa();if(!Kb(a)){if(es(a)){var a=a.Tb.wa(),b=this.Tf,c=Di();this.Tf=a.la(b,c.s);continue a}continue a}if(this.xM.Ja(a.k))continue a;var b=a.ca().Pb,c=zx(),c=Va(c),e=Ce().s,b=De(b,c,e),c=t(new u,function(){return function(a){return a.t.t}}(this)),e=pf(),b=b.ka(c,e.s).wa();this.xM.Om(a.k);if(!Yl(a)){a=this.Tf;c=Di();this.Tf=b.la(a,c.s);continue a}c=this.Tf;e=Di();b=b.la(c,e.s);this.Tf=oz(new pz,a,b)}break}};
d.KI=function(a){return KOa(this,a)};d.vo=function(){yq();var a=uv().gc;return EI(this,a)};d.lb=function(){return FI(this)};d.bj=function(){var a=a2().s;return EI(this,a)};d.Qa=function(){return Tc(this.Tf)};d.lm=function(){return IG(this,"","","")};d.Pba=function(a,b){this.Tf=a;this.xM=b;return this};d.kd=function(){return Tu(this)};d.Vo=function(){return Tu(this)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.SK=function(a){jM.prototype.Pba.call(this,a,H(xz(),G()));this.MS();return this};
d.ce=function(){return Tu(this)};d.pg=function(){var a=Pf(),a=Qf(a);return EI(this,a)};d.rl=function(a,b){return pd(this,a,b)};d.$j=function(a,b,c){NOa(this,a,b,c)};d.ko=function(){return!1};d.mE=function(a){return OOa(this,a)};d.$g=function(){for(var a=Ry(new Sy,Xs());;)if(Tc(this.Tf)){var b=this.cq();Ty(a,b)}else break;return a.gb};d.Ql=function(a){return II(this,a)};d.Fa=function(){return Tc(this)};d.Sj=function(a){return JI(this,a)};
d.$classData=q({wPa:0},!1,"amf.core.traversal.iterator.DomainElementIterator",{wPa:1,f:1,vPa:1,pi:1,Kb:1,Jb:1});function ou(){this.TH=this.WH=null}ou.prototype=new r;ou.prototype.constructor=ou;d=ou.prototype;d.tc=function(a,b){this.WH=a;this.TH=b;return this};d.L=function(){return"Container"};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.lla?this.WH===a.WH&&this.TH===a.TH:!1};
d.K=function(a){switch(a){case 0:return this.WH;case 1:return this.TH;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({lla:0},!1,"amf.core.utils.InflectorBase$Container",{lla:1,f:1,A:1,w:1,q:1,n:1});function oT(){this.ba=this.IP=null;this.aca=!1}oT.prototype=new r;oT.prototype.constructor=oT;d=oT.prototype;
d.tc=function(a,b){this.IP=a;this.ba=b;var c=(new ph).e(a);this.aca=Tc(c);if(null===a)throw(new Rg).a();if(""===a&&null===b)throw(new Rg).a();return this};d.L=function(){return"QName"};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.mla?this.IP===a.IP&&this.ba===a.ba:!1};d.K=function(a){switch(a){case 0:return this.IP;case 1:return this.ba;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({mla:0},!1,"amf.core.utils.package$QName",{mla:1,f:1,A:1,w:1,q:1,n:1});function ep(){this.Pw=!1;this.nk=this.Hl=this.bi=null;this.JR=0}ep.prototype=new r;ep.prototype.constructor=ep;d=ep.prototype;d.L=function(){return"AMFValidationReport"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.nla){if(this.Pw===a.Pw&&this.bi===a.bi)var b=this.Hl,c=a.Hl,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.nk,a=a.nk,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Pw;case 1:return this.bi;case 2:return this.Hl;case 3:return this.nk;default:throw(new X).e(""+a);}};d.u=function(){return hga(this,this.JR)};function h4a(a,b,c,e){c=c.Ta(e);if(x(c))c=c.i,nk(b,"\nLevel: "+e+"\n"),c.X(t(new u,function(a,b){return function(a){return ok(b,a)}}(a,b)));else if(w()!==c)throw(new v).d(c);}function dp(a,b,c,e,f){a.Pw=b;a.bi=c;a.Hl=e;a.nk=f;a.JR=30;return a}
d.y=function(){var a=-889275714,a=zI().Ga(a,this.Pw?1231:1237),a=zI().Ga(a,yI(zI(),this.bi)),a=zI().Ga(a,yI(zI(),this.Hl)),a=zI().Ga(a,yI(zI(),this.nk));return zI().Wd(a,4)};
function hga(a,b){Zf();var c=(new lk).a();b=a.nk.Wj(b);CB();var e=fc().ci;b=b.Ej(DB(e)).Ym(t(new u,function(){return function(a){return a.km}}(a)));nk(c,"Model: "+a.bi+"\n");nk(c,"Profile: "+a.Hl.Fi+"\n");nk(c,"Conforms? "+a.Pw+"\n");nk(c,"Number of results: "+a.nk.Ka()+"\n");h4a(a,c,b,xc().tb);h4a(a,c,b,xc().Eg);h4a(a,c,b,xc().vw);return c.Be.Ue}d.M=function(){return Z(this)};d.$classData=q({nla:0},!1,"amf.core.validation.AMFValidationReport",{nla:1,f:1,A:1,w:1,q:1,n:1});
function ap(){this.nk=this.mg=null}ap.prototype=new r;ap.prototype.constructor=ap;d=ap.prototype;d.L=function(){return"PayloadParsingResult"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.pla){var b=this.mg,c=a.mg;if(null===b?null===c:b.h(c))return b=this.nk,a=a.nk,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.mg;case 1:return this.nk;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function fga(a,b,c){a.mg=b;a.nk=c;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({pla:0},!1,"amf.core.validation.PayloadParsingResult",{pla:1,f:1,A:1,w:1,q:1,n:1});function Wz(){this.fe=this.ra=null}Wz.prototype=new r;Wz.prototype.constructor=Wz;d=Wz.prototype;d.L=function(){return"ValidationCandidate"};d.H=function(){return 2};function Vz(a,b,c){a.ra=b;a.fe=c;return a}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.rla){var b=this.ra,c=a.ra;if(null===b?null===c:b.h(c))return b=this.fe,a=a.fe,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.fe;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({rla:0},!1,"amf.core.validation.ValidationCandidate",{rla:1,f:1,A:1,w:1,q:1,n:1});
function d3a(){this.Vm=this.eA=null}d3a.prototype=new r;d3a.prototype.constructor=d3a;d=d3a.prototype;d.L=function(){return"ValidationShapeSet"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.sla){var b=this.eA,c=a.eA;return(null===b?null===c:b.h(c))?this.Vm===a.Vm:!1}return!1};function c3a(a,b,c){a.eA=b;a.Vm=c;return a}d.K=function(a){switch(a){case 0:return this.eA;case 1:return this.Vm;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({sla:0},!1,"amf.core.validation.ValidationShapeSet",{sla:1,f:1,A:1,w:1,q:1,n:1});function YP(){this.gP=this.Wg=this.JG=this.ai=this.dE=this.Ad=null}YP.prototype=new r;YP.prototype.constructor=YP;d=YP.prototype;d.L=function(){return"FunctionConstraint"};d.H=function(){return 6};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.tla){var b=this.Ad,c=a.Ad;(null===b?null===c:b.h(c))?(b=this.dE,c=a.dE,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.ai,c=a.ai,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.JG,c=a.JG,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Wg,c=a.Wg,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.gP,a=a.gP,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Ad;case 1:return this.dE;case 2:return this.ai;case 3:return this.JG;case 4:return this.Wg;case 5:return this.gP;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function Psa(a,b){a=a.JG;if(x(a))return a.i;b=kd(ta(),b,"/",0);b=ld((new md).vc(b));b=kd(ta(),b,"#",0);return ld((new md).vc(b)).split("-").join("_").split(".").join("_")+"FnName"}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({tla:0},!1,"amf.core.validation.core.FunctionConstraint",{tla:1,f:1,A:1,w:1,q:1,n:1});function XKa(){this.t=this.pu=null}XKa.prototype=new r;XKa.prototype.constructor=XKa;d=XKa.prototype;d.tc=function(a,b){this.pu=a;this.t=b;return this};d.L=function(){return"NodeConstraint"};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.ula?this.pu===a.pu&&this.t===a.t:!1};
d.K=function(a){switch(a){case 0:return this.pu;case 1:return this.t;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({ula:0},!1,"amf.core.validation.core.NodeConstraint",{ula:1,f:1,A:1,w:1,q:1,n:1});function sN(){this.Kq=this.nj=this.Zm=this.Um=this.oj=this.Ea=this.bq=this.ik=this.kk=this.hk=this.jk=this.aq=this.yp=this.Xk=this.Fr=this.Jr=this.gh=this.Ad=this.ba=this.Dj=null}sN.prototype=new r;
sN.prototype.constructor=sN;d=sN.prototype;d.L=function(){return"PropertyConstraint"};function rN(a,b,c,e,f,g,h,k,l,p,y,I,E,V,da,sa,ua,Ia,Pa,Za,db){a.Dj=b;a.ba=c;a.Ad=e;a.gh=f;a.Jr=g;a.Fr=h;a.Xk=k;a.yp=l;a.aq=p;a.jk=y;a.hk=I;a.kk=E;a.ik=V;a.bq=da;a.Ea=sa;a.oj=ua;a.Um=Ia;a.Zm=Pa;a.nj=Za;a.Kq=db;return a}d.H=function(){return 20};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.vla){if(this.Dj===a.Dj&&this.ba===a.ba)var b=this.Ad,c=a.Ad,b=null===b?null===c:b.h(c);else b=!1;b?(b=this.gh,c=a.gh,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Jr,c=a.Jr,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Fr,c=a.Fr,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Xk,c=a.Xk,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.yp,c=a.yp,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.aq,c=a.aq,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.jk,c=
a.jk,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.hk,c=a.hk,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.kk,c=a.kk,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.ik,c=a.ik,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.bq,c=a.bq,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Ea,c=a.Ea,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.oj,c=a.oj,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Um,c=a.Um,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Zm,c=a.Zm,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.nj,c=a.nj,b=null===b?null===c:
b.h(c)):b=!1;if(b)return b=this.Kq,a=a.Kq,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Dj;case 1:return this.ba;case 2:return this.Ad;case 3:return this.gh;case 4:return this.Jr;case 5:return this.Fr;case 6:return this.Xk;case 7:return this.yp;case 8:return this.aq;case 9:return this.jk;case 10:return this.hk;case 11:return this.kk;case 12:return this.ik;case 13:return this.bq;case 14:return this.Ea;case 15:return this.oj;case 16:return this.Um;case 17:return this.Zm;case 18:return this.nj;case 19:return this.Kq;default:throw(new X).e(""+
a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({vla:0},!1,"amf.core.validation.core.PropertyConstraint",{vla:1,f:1,A:1,w:1,q:1,n:1});function uN(){this.$E=this.qf=this.GT=this.rX=this.kU=this.qX=this.LJ=this.ba=null}uN.prototype=new r;uN.prototype.constructor=uN;d=uN.prototype;d.L=function(){return"ValidationProfile"};d.H=function(){return 8};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.wla){var b=this.ba,c=a.ba;(null===b?null===c:b.h(c))?(b=this.LJ,c=a.LJ,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.qX,c=a.qX,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.kU,c=a.kU,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.rX,c=a.rX,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.GT,c=a.GT,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.qf,c=a.qf,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.$E,a=a.$E,null===b?null===a:O1(b,a)}return!1};
d.K=function(a){switch(a){case 0:return this.ba;case 1:return this.LJ;case 2:return this.qX;case 3:return this.kU;case 4:return this.rX;case 5:return this.GT;case 6:return this.qf;case 7:return this.$E;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function KHa(a,b,c,e,f,g,h,k,l){a.ba=b;a.LJ=c;a.qX=e;a.kU=f;a.rX=g;a.GT=h;a.qf=k;a.$E=l;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({wla:0},!1,"amf.core.validation.core.ValidationProfile",{wla:1,f:1,A:1,w:1,q:1,n:1});function Qj(){this.k=this.nj=this.ax=this.fA=this.zC=this.Qy=this.Oy=this.dz=this.jy=this.bz=this.ew=this.dw=this.Ot=this.Rv=this.Uv=this.Ad=this.ba=null}Qj.prototype=new r;Qj.prototype.constructor=Qj;d=Qj.prototype;d.L=function(){return"ValidationSpecification"};d.H=function(){return 16};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.yla){if(this.ba===a.ba&&this.Ad===a.Ad)var b=this.Uv,c=a.Uv,b=null===b?null===c:b.h(c);else b=!1;b?(b=this.Rv,c=a.Rv,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Ot,c=a.Ot,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.dw,c=a.dw,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.ew,c=a.ew,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.bz,c=a.bz,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.jy,c=a.jy,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.dz,c=
a.dz,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Oy,c=a.Oy,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Qy,c=a.Qy,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.zC,c=a.zC,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.fA,c=a.fA,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.ax,c=a.ax,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.nj,a=a.nj,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.ba;case 1:return this.Ad;case 2:return this.Uv;case 3:return this.Rv;case 4:return this.Ot;case 5:return this.dw;case 6:return this.ew;case 7:return this.bz;case 8:return this.jy;case 9:return this.dz;case 10:return this.Oy;case 11:return this.Qy;case 12:return this.zC;case 13:return this.fA;case 14:return this.ax;case 15:return this.nj;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function rba(a){if(a.Ot.Fa()){a=a.Ot.fa();var b=Nj().Y8;return null===a?null===b:pa(a,b)}return!1}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function Pj(a,b,c,e,f,g,h,k,l,p,y,I,E,V,da,sa,ua){a.ba=b;a.Ad=c;a.Uv=e;a.Rv=f;a.Ot=g;a.dw=h;a.ew=k;a.bz=l;a.jy=p;a.dz=y;a.Oy=I;a.Qy=E;a.zC=V;a.fA=da;a.ax=sa;a.nj=ua;0<=(b.length|0)&&"http://"===b.substring(0,7)||0<=(b.length|0)&&"https://"===b.substring(0,8)||0<=(b.length|0)&&"file:"===b.substring(0,5)||(b=Gc(Wu(C(),b)),0<=(b.length|0)&&"http://"===b.substring(0,7)||0<=(b.length|0)&&"https://"===b.substring(0,8)||0<=(b.length|0)&&"file:"===b.substring(0,5)||(c=C().zg,b=Gc(D(new F,c,b))));a.k=b;return a}
d.$classData=q({yla:0},!1,"amf.core.validation.core.ValidationSpecification",{yla:1,f:1,A:1,w:1,q:1,n:1});function cK(){this.he=null}cK.prototype=new r;cK.prototype.constructor=cK;d=cK.prototype;d.L=function(){return"Namespace"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.zla?this.he===a.he:!1};d.K=function(a){switch(a){case 0:return this.he;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.e=function(a){this.he=a;return this};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({zla:0},!1,"amf.core.vocabulary.Namespace",{zla:1,f:1,A:1,w:1,q:1,n:1});function F(){this.ba=this.Ku=null}F.prototype=new r;F.prototype.constructor=F;d=F.prototype;d.L=function(){return"ValueType"};function D(a,b,c){a.Ku=b;a.ba=c;return a}d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ala){var b=this.Ku,c=a.Ku;return(null===b?null===c:b.h(c))?this.ba===a.ba:!1}return!1};
d.K=function(a){switch(a){case 0:return this.Ku;case 1:return this.ba;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function Gc(a){return""+a.Ku.he+a.ba}d.$classData=q({Ala:0},!1,"amf.core.vocabulary.ValueType",{Ala:1,f:1,A:1,w:1,q:1,n:1});function S0(){this.UH=this.qH=null}S0.prototype=new r;S0.prototype.constructor=S0;d=S0.prototype;d.L=function(){return"Environment"};function w0a(a,b,c){a.qH=b;a.UH=c;return a}
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Bla){var b=this.qH,c=a.qH;if(null===b?null===c:b.h(c))return b=this.UH,a=a.UH,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.qH;case 1:return this.UH;default:throw(new X).e(""+a);}};function G2a(a,b){return w0a(new S0,a.qH,(new A).d(b))}function Bfa(a,b){var c=a.qH,e=z();return w0a(new S0,c.Tr(b,e.s),a.UH)}d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({Bla:0},!1,"amf.internal.environment.Environment",{Bla:1,f:1,A:1,w:1,q:1,n:1});function i4a(){this.wr=this.Bf=null;this.Gm=!1}i4a.prototype=new r;i4a.prototype.constructor=i4a;d=i4a.prototype;d.L=function(){return"CachedReference"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Cla){if(this.Bf===a.Bf)var b=this.wr,c=a.wr,b=null===b?null===c:b.h(c);else b=!1;return b?this.Gm===a.Gm:!1}return!1};
d.K=function(a){switch(a){case 0:return this.Bf;case 1:return this.wr;case 2:return this.Gm;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function a3a(a,b,c){var e=new i4a;e.Bf=a;e.wr=b;e.Gm=c;return e}d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.Bf)),a=zI().Ga(a,yI(zI(),this.wr)),a=zI().Ga(a,this.Gm?1231:1237);return zI().Wd(a,3)};d.M=function(){return Z(this)};d.$classData=q({Cla:0},!1,"amf.internal.reference.CachedReference",{Cla:1,f:1,A:1,w:1,q:1,n:1});
function UFa(){this.l=this.RH=this.cD=this.Hx=this.dh=null}UFa.prototype=new r;UFa.prototype.constructor=UFa;d=UFa.prototype;d.Eda=function(a,b){var c=Ic(a.Bd),e=Pc(),f=uv().gc,c=Hc(c,CM(f,e)),c=c.b()?w():c.c().pc();c.b()?c=w():(c=c.c(),e=yc((new K).Y(c),"@context"),e.b()||(e=e.c(),j4a(this,e.i)),c=t2(this,c));if(x(c)&&(c=c.i,bt(c)))return a=Ap().nc,Eb(c,a,b);var c=this.l.m,e=Bc().u9,f="Unable to parse "+a,g=w();Cc(c,e,b,g,f,a.ga);M();b=(new N).a();return(new Ig).P((new Q).a(),b)};d.L=function(){return"Parser"};
d.p$=function(a,b){b.X(t(new u,function(a,b){return function(a){a:{for(var c=Dca(b.ca());!c.b();){var h=c.fa(),k=B(a.g,bf().jr);if(Xb(k,Gc(h.t))){c=(new A).d(c.fa());break a}c=c.sa()}c=w()}if(!c.b()&&(c=c.c(),c=Dd(b.ca(),c),!c.b()))if(c=c.c(),null!==c)c.t.t.ha().Wb((new EL).WG(a));else throw(new v).d(c);}}(this,a)))};d.H=function(){return 1};
function k4a(a,b,c,e,f,g){var h=c.ja;if(Jq(h))h=Pc(),h=t2(a,L(e,h,a.l.m)),h.b()||(h=h.c(),a=Sc(a.dh,f,g),Fh(b,c,h,a));else if(Pb().h(h)||Gba().h(h)||Xc().h(h)||KL().h(h))h=YFa(a.l,e),a=Sc(a.dh,f,g),Fh(b,c,h,a);else if(Yc().h(h))h=dGa(a.l,e),a=Sc(a.dh,f,g),Fh(b,c,h,a);else if(Zc().h(h))h=VFa(a.l,e),a=Sc(a.dh,f,g),Fh(b,c,h,a);else if(bs().h(h))h=WFa(a.l,e),a=Sc(a.dh,f,g),Fh(b,c,h,a);else if(Ci().h(h))h=aGa(a.l,e),a=Sc(a.dh,f,g),Fh(b,c,h,a);else if(LL().h(h))h=XFa(a.l,e),a=Sc(a.dh,f,g),Fh(b,c,h,a);else if(UK().h(h))h=
XFa(a.l,e),a=Sc(a.dh,f,g),Fh(b,c,h,a);else if(ad()===h)h=cGa(a.l,e),a=Sc(a.dh,f,g),Fh(b,c,h,a);else if(wEa(h)){var h=h.Se,k=Pc(),h=l4a(a,h,L(e,k,a.l.m));a=Sc(a.dh,f,g);jr(b,c,h,a)}else if(Wc(h)){k=Jc();e=L(e,k,a.l.m);k=h.Se;if(Jq(k)){var k=t(new u,function(a){return function(b){var c=Pc();return t2(a,L(b,c,a.l.m)).wa()}}(a)),l=z();e=e.md(k,l.s)}else{if(!Pb().h(k)&&!Xc().h(k))throw(new v).d(k);k=t(new u,function(a,b){return function(c){return YFa(a.l,Nc(a.l,b.Se,c))}}(a,h));l=z();e=e.ka(k,l.s)}h=h.Se;
nz(h)?(k=Nl().Mc,k=null===c?null===k:c.h(k)):k=!1;k?(a=Sc(a.dh,f,g),ir(b,c,e,a)):AEa(h)?(a=Sc(a.dh,f,g),ir(b,c,e,a)):(a=Sc(a.dh,f,g),jr(b,c,e,a))}else throw(new v).d(h);}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ela&&a.l===this.l){var b=this.dh;a=a.dh;return null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.dh;default:throw(new X).e(""+a);}};
function m4a(a,b,c,e){c.Bb.X(t(new u,function(a,b,c){return function(e){var l=e.Da,p=qe(),l=L(l,p,a.l.m),l=zba(l,a.l.m);e=e.i;"@type"!==l&&"@id"!==l&&l!==Gc(Lc().Hb.t)&&"smaps"!==l?(p=C().dc,p=l!==Gc(D(new F,p,"extensionName"))):p=!1;if(p){a:{for(p=b;!p.b();){if(Gc(p.fa().t)===l){p=!0;break a}p=p.sa()}p=!1}p=!p}else p=!1;if(p){var p=Pc(),y=uv().gc;e=L(e,CM(y,p),a.l.m).pc();e.b()?e=w():(e=e.c(),e=t2(a,e));p=new n4a;p.VCa=c;p.ZGa=l;if(e.b())return w();l=Qr(p);e=e.c();return l.Ia(e)}}}(a,e,b)))}
d.u=function(){return U(W(),this)};function o4a(a,b,c){var e=Aba(a.l,c,b,a.l.m),f=e.Ib(t(new u,function(a){return function(b){return $Fa(a.l,b).qa()}}(a)));if(x(f))return $Fa(a.l,f.i);if(w()===f){a=a.l.m;var f=Bc().QZ,e="Error parsing JSON-LD node, unknown @types "+e,g=w();Cc(a,f,b,g,e,c.ga);return w()}throw(new v).d(f);}
function j4a(a,b){var c=b.pb().nb;if(O().ua===c){c=Pc();c=L(b,c,a.l.m);b=a.l.m.uT;var c=c.Bb,e=t(new u,function(a){return function(b){var c=b.Da.pb().nb,e=b.i.pb().nb;O().Wa===c&&O().Wa===e?(c=b.Da,e=zc(),c=L(c,e,a.l.m).ya,b=b.i,e=zc(),b=L(b,e,a.l.m).ya,b=(new A).d((new P).N(c,b))):b=w();return b.wa()}}(a)),f=uv(),c=c.md(e,f.gc).$g(fc().ci);Yi(b,c);b=a.l.m;a=a.l.m.uT.kb();a:{for(;a.Qa();){e=c=a.Sa();if(null===e)throw(new v).d(e);if("@base"===e.pa()){a=(new A).d(c);break a}}a=w()}if(a.b())a=w();else{a=
a.c();if(null===a)throw(new v).d(a);a=a.Ba();a=(new A).d(a)}b.x$=a}}
d.E$=function(a){if(Yl(a)&&ns(a)){this.RH.Ih((new P).N(a.k,a));var b=this.Hx.Ta(a.k);if(x(b))b=b.i;else{if(w()!==b)throw(new v).d(b);b=G()}b.X(t(new u,function(a,b,c){return function(h){if(ns(h))return Jb(h,b);if(JL(h))return pEa(h,b);h=a.l.m;var k=Bc().S8;sz(h,k,c.k,"Only linkable elements can be linked",c.ha())}}(this,a,a)));this.Hx.Rl(a.k,G())}else if(qEa(a)){var b=this.cD,c=B(a.ca(),jh().Lj).G,c=c.b()?null:c.c();b.Ih((new P).N(c,a))}};
d.ffa=function(a,b){var c=this.RH.Ta(b);if(x(c))return Jb(a,c.i);if(w()===c){c=this.Hx.Ta(b);if(x(c))var e=c.i;else{if(w()!==c)throw(new v).d(c);e=G()}c=this.Hx;a=H(z(),(new J).aa([a]));var f=z();a=e.la(a,f.s);return c.Ih((new P).N(b,a))}throw(new v).d(c);};
function p4a(a,b,c){var e=(new K).Y(b),f=Gc(Lc().Pm().t),e=yc(e,Ec(f,a.l.m));if(e.b())e=w();else var e=e.c().i,f=Jc(),e=L(e,f,a.l.m),f=t(new u,function(a){return function(b){var c=a.l,e=Xc();b=Nc(c,e,b);c=zc();return L(b,c,a.l.m).ya}}(a)),g=z(),e=(new A).d(e.ka(f,g.s));e=e.b()?G():e.c();b=t(new u,function(a,b){return function(c){var e=yc((new K).Y(b),Ec(c,a.l.m));if(e.b())e=w();else{var f=e.c();M();var e=(new N).a(),e=(new af).P((new Q).a(),e),f=f.i,g=Pc(),f=L(f,g,a.l.m),g=ZFa(a.l,f,bf().$);if(!g.b()){var g=
g.c(),E=bf().$;(new A).d(Eb(e,E,g))}g=ZFa(a.l,f,bf().jr);g.b()||(g=g.c(),E=bf().jr,(new A).d(Eb(e,E,g)));M();g=(new N).a();g=(new Le).P((new Q).a(),g);g.k=c;c=bf().Rf;ff(e,c,g);c=t2(a,f);f=new q4a;c.b()?c=w():(f=Qr(f),c=c.c(),c=f.Ia(c));c.b()||(c=c.c(),Te(e,c.k),f=bf().Zj,ff(e,f,c));c=Bba(a.l,b,a.l.m);e.E.Ur(Sc(a.dh,c,e.k));e=(new A).d(e)}return e.wa()}}(a,b));f=z();b=e.md(b,f.s);if(b.Fa())if(e=b.jn(t(new u,function(){return function(a){return BEa(a)}}(a))),null!==e)b=e.pa(),e=e.Ba(),f=Lc().Pm(),
qf(c,f,e),a.p$(c,b);else throw(new v).d(e);}
function t2(a,b){var c=xba(b,a.l.m);if(c.b())c=w();else{var c=c.c(),e=o4a(a,c,b);e.b()?c=w():(e=e.c(),c=(new A).d((new P).N(c,e)))}if(c.b())return w();e=c.c();if(null===e)throw(new v).d(e);var c=e.pa(),f=e.Ba(),g=Bba(a.l,b,a.l.m),c=yba(c,a.l.m),e=bGa(a.l,c,b,f).R(Sc(a.dh,g,c));if(x(e)){e=e.i;e.Uc(c);a.E$(e);if(uz(f))var f=f.sc(),h=z(),k=[$w(),lA()],h=H(h,(new J).aa(k)),k=Di(),f=f.la(h,k.s);else f=f.sc();for(h=f;!h.b();){var k=h.fa(),l=Ec(Gc(k.t),a.l.m),p=yc((new K).Y(b),l);x(p)&&k4a(a,e,k,Nc(a.l,
k.ja,p.i.i),g,l);h=h.sa()}Yl(e)&&ns(e)?(g=(new K).Y(b),f=Gc(Db().kg.t),g=yc(g,Ec(f,a.l.m)),g.b()?g=w():(g=g.c().i,f=Pc(),h=uv().gc,g=L(g,CM(h,f),a.l.m).fa(),g=xba(g,a.l.m)),g.b()||(g=g.c(),g=yba(g,a.l.m),a.ffa(e,g)),g=(new K).Y(b),f=Gc(Db().wd.t),g=yc(g,Ec(f,a.l.m)),g.b()?g=w():(g=g.c().i,g=Hc(Ic(g),Jc()),g.b()?g=w():(g=g.c().fa(),g=Hc(Ic(g),Pc())),g.b()?g=w():(g=g.c(),g=yc((new K).Y(g),"@value")),g.b()?g=w():(g=g.c().i,g=Hc(Ic(g),zc()),g.b()?g=w():(g=g.c(),g=(new A).d(g.ya)))),g.b()||(g=g.c(),f=
Db().wd,Eb(e,f,g))):Xea(e)&&a.cD.Ta(e.k).qa()?(g=a.cD.Ta(e.k),g.b()||(g=g.c(),f=B(e.g,Wl().Sd).G,f.b()||(f=f.c(),h=jh().Sd,Eb(g,h,f)))):fm(e)&&m4a(a,e,b,f);Yl(e)&&p4a(a,b,e);a.dh=a.dh.Zb((new P).N(c,e));return(new A).d(e)}return w()}
function l4a(a,b,c){var e=H(Wg(),G());c.Bb.qi(t(new u,function(a){return function(b){b=b.Da;var c=qe();return L(b,c,a.l.m)}}(a)),Kc()).X(t(new u,function(a,b){return function(c){var e=c.Da,f=qe(),e=L(e,f,a.l.m),f=C().un,f=Ec(Gc(D(new F,f,"_")),a.l.m);if(0<=(e.length|0)&&e.substring(0,f.length|0)===f)return c=c.i,e=Jc(),vh(b,L(c,e,a.l.m).fa())}}(a,e)));Wg();Wg();c=Yg(new Zg,(new $g).a());for(e=e.Lb;!e.b();){var f=e.fa();if(Jq(b))var g=Pc(),g=t2(a,L(f,g,a.l.m)).wa();else try{g=(new A).d(YFa(a.l,Nc(a.l,
b,f))).wa()}catch(h){if(g=gi(Mb(),h),hi(g))g=w().wa();else throw h;}Yi(c,g);e=e.sa()}return c.gb}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Ela:0},!1,"amf.plugins.document.graph.parser.GraphParser$Parser",{Ela:1,f:1,A:1,w:1,q:1,n:1});function r4a(){this.qza=this.rza=this.UB=this.$J=this.Ei=null}r4a.prototype=new r;r4a.prototype.constructor=r4a;d=r4a.prototype;d.L=function(){return"DiscriminatorHelper"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Zla){var b=this.Ei,c=a.Ei;if(null===b?null===c:b.h(c))return b=this.$J,a=a.$J,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ei;case 1:return this.$J;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};
function s4a(a,b){var c=new r4a;c.Ei=a;c.$J=b;b=Wa().Ia(ET(a));if(b.b())a:{if(b=B(c.Ei.ca(),cg().Jg).fa().G,b=b.b()?null:b.c(),b=Md(c.$J,b),null!==b&&(b=b.Ba(),bg(b))){b=Wa().Ia(ET(b));break a}b=w()}c.UB=b;a=B(a.ca(),cg().gu).G;if(a.b())a:{if(a=B(c.Ei.ca(),cg().Jg).fa().G,a=a.b()?null:a.c(),a=Md(c.$J,a),null!==a&&(a=a.Ba(),bg(a))){a=B(a.g,cg().gu).G;break a}a=w()}c.rza=a;a=c.UB;c.qza=(a.b()?pc(fc().db,G()):a.c()).ae(pc(fc().db,G()),qd(function(a){return function(b,c){c=(new P).N(b,c);b=c.ep;var h=
c.rq;if(null!==h)return c=h.pa(),h=h.Ba(),h=Md(a.$J,h),null!==h&&(h=h.Ba(),he(h))?b.Zb((new P).N(c,h)):b;throw(new v).d(c);}}(c)));return c}d.M=function(){return Z(this)};
function QQa(a,b){var c=hN(b).ja;b=function(){return function(a){return Gc(a)}}(a);var e=Di().s;if(e===Di().s)if(c===G())b=G();else{for(var e=c.fa(),f=e=oz(new pz,b(e),G()),c=c.sa();c!==G();)var g=c.fa(),g=oz(new pz,b(g),G()),f=f.ve=g,c=c.sa();b=e}else{for(e=Rf(c,e);!c.b();)f=c.fa(),e.Ic(b(f)),c=c.sa();b=e.lc()}c=a.qza.kb();a:{for(;c.Qa();){f=e=c.Sa();if(null===f)throw(new v).d(f);f=B(f.Ba().g,Tj().ov).G;f=f.b()?null:f.c();if(uh(b,f)){b=(new A).d(e);break a}}b=w()}return x(b)&&(b=b.i,null!==b)?(b=
b.pa(),a=a.rza,(new A).d((new P).N(a.b()?"type":a.c(),b))):w()}d.$classData=q({Zla:0},!1,"amf.plugins.document.vocabularies.emitters.instances.DiscriminatorHelper",{Zla:1,f:1,A:1,w:1,q:1,n:1});function t4a(){this.Aa=this.ke=this.Hb=this.Jc=this.ja=this.Mz=this.Rg=this.fb=this.gd=this.$=null;this.ma=0}t4a.prototype=new r;t4a.prototype.constructor=t4a;d=t4a.prototype;
d.a=function(){u4a=this;Iq(this);cT(this);var a=Pb(),b=C().dc;this.$=Rb(new Sb,a,D(new F,b,"name"),Tb(new Ub,Vb().dc,"name","Name of the ClassTerm",G()));a=Pb();b=C().dc;this.gd=Rb(new Sb,a,D(new F,b,"displayName"),Tb(new Ub,Vb().dc,"displayName","Human readable name for the term",G()));a=Pb();b=C().dc;this.fb=Rb(new Sb,a,D(new F,b,"description"),Tb(new Ub,Vb().dc,"description","Human readable description for the term",G()));a=(new Ki).Ld(Xc());b=C().Kc;this.Rg=Rb(new Sb,a,D(new F,b,"properties"),
Tb(new Ub,Vb().Kc,"properties","Properties that have the ClassTerm in the domain",G()));a=(new Ki).Ld(Xc());b=C().un;this.Mz=Rb(new Sb,a,D(new F,b,"subClassOf"),Tb(new Ub,Bi().un,"subClassOf","Subsumption relationship across terms",G()));a=C().qv;a=D(new F,a,"Class");b=Lc().ja;this.ja=oz(new pz,a,b);return this};d.Ce=function(a){this.Hb=a};d.Yc=function(a){this.Aa=a};
d.sc=function(){var a=this.$,b=this.gd,c=this.fb,e=this.Rg,f=this.Mz,g=Lc().g;return oz(new pz,a,oz(new pz,b,oz(new pz,c,oz(new pz,e,oz(new pz,f,g)))))};d.Tc=function(){return this.Aa};d.Zc=function(){M();var a=(new N).a();return(new WM).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({FRa:0},!1,"amf.plugins.document.vocabularies.metamodel.domain.ClassTermModel$",{FRa:1,f:1,se:1,Oc:1,ic:1,Xc:1});var u4a=void 0;function zA(){u4a||(u4a=(new t4a).a());return u4a}
function v4a(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.$t=this.ft=this.Sx=null;this.ma=0}v4a.prototype=new r;v4a.prototype.constructor=v4a;d=v4a.prototype;
d.a=function(){w4a=this;Iq(this);cT(this);var a=Pb(),b=C().dc;this.Sx=Rb(new Sb,a,D(new F,b,"name"),Tb(new Ub,Vb().dc,"name","Name of the document for a dialect base unit",G()));a=Xc();b=C().Kc;this.ft=Rb(new Sb,a,D(new F,b,"encodedNode"),Tb(new Ub,Vb().Kc,"encoded node","Node in the dialect encoded in the target mapped base unit",G()));a=(new Ki).Ld(MA());b=C().Kc;this.$t=Rb(new Sb,a,D(new F,b,"declaredNode"),Tb(new Ub,Vb().Kc,"declared node","Node in the dialect declared in the target mappend base unit",
G()));a=C().Kc;a=D(new F,a,"DocumentMapping");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().Kc,"Document Mapping","Mapping for a particular dialect document into a graph base unit",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){var a=this.Sx,b=this.ft,c=this.$t,e=Lc().g;return oz(new pz,a,oz(new pz,b,oz(new pz,c,e)))};d.Zc=function(){M();var a=(new N).a();return(new fU).P((new Q).a(),a)};d.ec=function(){return this.ja};
d.$classData=q({IRa:0},!1,"amf.plugins.document.vocabularies.metamodel.domain.DocumentMappingModel$",{IRa:1,f:1,se:1,Oc:1,ic:1,Xc:1});var w4a=void 0;function OA(){w4a||(w4a=(new v4a).a());return w4a}function x4a(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.AS=this.wz=this.qz=this.Lz=this.ay=this.tz=this.cs=null;this.ma=0}x4a.prototype=new r;x4a.prototype.constructor=x4a;d=x4a.prototype;
d.a=function(){y4a=this;Iq(this);cT(this);var a=OA(),b=C().Kc;this.cs=Rb(new Sb,a,D(new F,b,"rootDocument"),Tb(new Ub,Vb().Kc,"root document","Root node encoded in a mapped document base unit",G()));a=(new Ki).Ld(OA());b=C().Kc;this.tz=Rb(new Sb,a,D(new F,b,"fragments"),Tb(new Ub,Vb().Kc,"fragments","Mapping of fragment base unit for a particular dialect",G()));a=OA();b=C().Kc;this.ay=Rb(new Sb,a,D(new F,b,"library"),Tb(new Ub,Vb().Kc,"library","Mappig of module base unit for a particular dialect",
G()));a=Yc();b=C().Kc;this.Lz=Rb(new Sb,a,D(new F,b,"selfEncoded"),Tb(new Ub,Vb().Kc,"self encoded","Information about if the base unit URL should be the same as the URI of the parsed root nodes in the unit",G()));a=Pb();b=C().Kc;this.qz=Rb(new Sb,a,D(new F,b,"declarationsPath"),Tb(new Ub,Vb().Kc,"declarations path","Information about the AST location of the declarations to be parsed as declared domain elements",G()));a=Yc();b=C().Kc;this.wz=Rb(new Sb,a,D(new F,b,"keyProperty"),Tb(new Ub,Vb().Kc,
"key property","Information about whether the dialect is defined by the header or a key property",G()));a=Pb();b=C().Kc;this.AS=Rb(new Sb,a,D(new F,b,"referenceStyle"),Tb(new Ub,Vb().Kc,"reference style","Determines the style for inclusions (RamlStyle or JsonSchemaStyle)",G()));a=C().Kc;a=D(new F,a,"DocumentsModel");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().Kc,"Documents Model","Mapping from different type of dialect documents to base units in the parsed graph",G());return this};
d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.sc=function(){var a=this.cs,b=this.tz,c=this.ay,e=this.Lz,f=this.qz,g=this.wz,h=this.AS,k=Lc().g;return oz(new pz,a,oz(new pz,b,oz(new pz,c,oz(new pz,e,oz(new pz,f,oz(new pz,g,oz(new pz,h,k)))))))};d.Tc=function(){return this.Aa};d.Zc=function(){M();var a=(new N).a();return(new qU).P((new Q).a(),a)};d.ec=function(){return this.ja};
d.$classData=q({JRa:0},!1,"amf.plugins.document.vocabularies.metamodel.domain.DocumentsModelModel$",{JRa:1,f:1,se:1,Oc:1,ic:1,Xc:1});var y4a=void 0;function fd(){y4a||(y4a=(new x4a).a());return y4a}function z4a(){this.Aa=this.ke=this.Hb=this.Jc=this.ja=this.uh=this.gd=null;this.ma=0}z4a.prototype=new r;z4a.prototype.constructor=z4a;d=z4a.prototype;
d.a=function(){A4a=this;Iq(this);cT(this);var a=Pb(),b=C().dc;this.gd=Rb(new Sb,a,D(new F,b,"displayName"),Tb(new Ub,Vb().dc,"displayName","Display name for an external model",G()));a=Pb();b=C().Kc;this.uh=Rb(new Sb,a,D(new F,b,"base"),Tb(new Ub,Vb().Kc,"base","Base URI for the external model",G()));var a=C().qv,a=D(new F,a,"Ontology"),b=C().Kc,b=D(new F,b,"ExternalVocabulary"),c=Lc().ja;this.ja=oz(new pz,a,oz(new pz,b,c));return this};d.Ce=function(a){this.Hb=a};d.Yc=function(a){this.Aa=a};
d.sc=function(){var a=this.gd,b=this.uh,c=Lc().g;return oz(new pz,a,oz(new pz,b,c))};d.Tc=function(){return this.Aa};d.Zc=function(){M();var a=(new N).a();return(new lN).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({KRa:0},!1,"amf.plugins.document.vocabularies.metamodel.domain.ExternalModel$",{KRa:1,f:1,se:1,Oc:1,ic:1,Xc:1});var A4a=void 0;function zd(){A4a||(A4a=(new z4a).a());return A4a}
function u2(){this.Aa=this.ke=this.Hb=this.Jc=this.IB=this.If=this.fb=this.gd=this.$=null;this.ma=0}u2.prototype=new r;u2.prototype.constructor=u2;function B4a(){}d=B4a.prototype=u2.prototype;
d.a=function(){Iq(this);cT(this);var a=Pb(),b=C().dc;this.$=Rb(new Sb,a,D(new F,b,"name"),Tb(new Ub,Vb().dc,"name","Name of the property term",G()));a=Pb();b=C().dc;this.gd=Rb(new Sb,a,D(new F,b,"displayName"),Tb(new Ub,Vb().dc,"display name","Human readable name for the property term",G()));a=Pb();b=C().dc;this.fb=Rb(new Sb,a,D(new F,b,"description"),Tb(new Ub,Vb().dc,"description","Human readable description of the property term",G()));a=Xc();b=C().un;this.If=Rb(new Sb,a,D(new F,b,"range"),Tb(new Ub,
Bi().un,"range","Range of the proeprty term, scalar or object",G()));a=(new Ki).Ld(Xc());b=C().un;this.IB=Rb(new Sb,a,D(new F,b,"subPropertyOf"),Tb(new Ub,Bi().un,"subPropertyOf","Subsumption relationship for terms",G()));return this};d.Ce=function(a){this.Hb=a};d.Yc=function(a){this.Aa=a};d.sc=function(){var a=this.gd,b=this.fb,c=this.If,e=this.IB,f=Lc().g;return oz(new pz,a,oz(new pz,b,oz(new pz,c,oz(new pz,e,f))))};d.Tc=function(){return this.Aa};
function C4a(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.mv=this.$=null;this.ma=0}C4a.prototype=new r;C4a.prototype.constructor=C4a;d=C4a.prototype;
d.a=function(){D4a=this;Iq(this);cT(this);var a=Pb(),b=C().dc;this.$=Rb(new Sb,a,D(new F,b,"name"),Tb(new Ub,Vb().dc,"name","Name of the mapping",G()));a=Xc();b=C().Kc;this.mv=Rb(new Sb,a,D(new F,b,"mappedNode"),Tb(new Ub,Vb().Kc,"mapped node","Node in the dialect definition associated to this mapping",G()));a=C().Kc;a=D(new F,a,"PublicNodeMapping");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().Kc,"Public Node Mapping","Mapping for a graph node mapping to a particular function in a dialect",
G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){var a=this.$,b=this.mv,c=Lc().g;return oz(new pz,a,oz(new pz,b,c))};d.Zc=function(){M();var a=(new N).a();return(new lU).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({QRa:0},!1,"amf.plugins.document.vocabularies.metamodel.domain.PublicNodeMappingModel$",{QRa:1,f:1,se:1,Oc:1,ic:1,Xc:1});var D4a=void 0;function MA(){D4a||(D4a=(new C4a).a());return D4a}
function E4a(){this.Aa=this.ke=this.Hb=this.Jc=this.ja=this.g=this.uh=this.qN=this.Kp=null;this.ma=0}E4a.prototype=new r;E4a.prototype.constructor=E4a;d=E4a.prototype;
d.a=function(){F4a=this;Iq(this);cT(this);var a=Pb(),b=C().Zd;this.Kp=Rb(new Sb,a,D(new F,b,"alias"),Tb(new Ub,Vb().tm,"","",G()));a=Pb();b=C().Zd;this.qN=Rb(new Sb,a,D(new F,b,"reference"),Tb(new Ub,Vb().tm,"","",G()));a=Pb();b=C().Kc;this.uh=Rb(new Sb,a,D(new F,b,"base"),Tb(new Ub,Vb().tm,"","",G()));var a=this.Kp,b=this.qN,c=this.uh,e=Lc().g;this.g=oz(new pz,a,oz(new pz,b,oz(new pz,c,e)));a=C().Kc;a=D(new F,a,"VocabularyReference");b=Lc().ja;this.ja=oz(new pz,a,b);return this};
d.Ce=function(a){this.Hb=a};d.Yc=function(a){this.Aa=a};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.Zc=function(){M();var a=(new N).a();return(new SM).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({SRa:0},!1,"amf.plugins.document.vocabularies.metamodel.domain.VocabularyReferenceModel$",{SRa:1,f:1,se:1,Oc:1,ic:1,Xc:1});var F4a=void 0;function Sd(){F4a||(F4a=(new E4a).a());return F4a}function Kd(a){return!!(a&&a.$classData&&a.$classData.v.tma)}
function He(){this.m=this.Dl=this.Rd=this.Ea=null}He.prototype=new r;He.prototype.constructor=He;d=He.prototype;d.tda=function(a){xr();var b=Ke(M(),a),b=(new kA).P((new Q).a(),b),c=this.Dl.os("object"),e=lm().$,b=Eb(b,e,c),c=this.Rd;c.b()||(c=c.c(),M0(b,c,H(z(),G())));a=a.Bb;c=t(new u,function(a,b){return function(c){var e=c.Da,l=wN(),e=L(e,l,a.m).ya,l=c.i;c=Ke(M(),c);l=Zha(eca(new He,l,(new A).d(b.k),a.Dl,a.m).Ir(),b.k);return mA(b,e,l,c)}}(this,b));e=uv();a.ka(c,e.gc);return b};d.L=function(){return"DynamicExtensionParser"};
d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.zma){if(Yj(this.Ea,a.Ea))var b=this.Rd,c=a.Rd,b=null===b?null===c:b.h(c);else b=!1;return b?this.Dl===a.Dl:!1}return!1};d.po=function(a,b){b=(new A).d(Vca(qi(),b));a=Ar(Dr(),a.ya,b,Ke(M(),a));b=this.Dl.os("scalar");var c=lm().$;a=Eb(a,c,b);b=this.Rd;b.b()||(b=b.c(),M0(a,b,H(z(),G())));return a};
d.K=function(a){switch(a){case 0:return this.Ea;case 1:return this.Rd;case 2:return this.Dl;default:throw(new X).e(""+a);}};function eca(a,b,c,e,f){a.Ea=b;a.Rd=c;a.Dl=e;a.m=f;return a}d.u=function(){return U(W(),this)};
d.Ir=function(){var a=this.Ea.pb().nb;if(O().Wa===a){var a=this.Ea,b=wN();return this.po(L(a,b,this.m),"string")}if(O().Oi===a)return a=this.Ea,b=wN(),this.po(L(a,b,this.m),"integer");if(O().rg===a)return a=this.Ea,b=wN(),this.po(L(a,b,this.m),"double");if(O().ui===a)return a=this.Ea,b=wN(),this.po(L(a,b,this.m),"boolean");if(O().yd===a)return a=this.Ea,b=wN(),this.po(L(a,b,this.m),"nil");if(O().Nc===a)return a=this.Ea,b=Jc(),this.oda(L(a,b,this.m),this.Ea);if(O().ua===a)return a=this.Ea,b=Pc(),this.tda(L(a,
b,this.m));if(O().fy===a)if(a=IL(gE(),this.Ea.u()).Mk(),x(a)){a=a.i;try{yua(zua(),a);if(a.Ex.b()){var b=this.Ea,c=wN();return this.po(L(b,c,this.m),"date")}if(a.Mx.b()){var e=this.Ea,f=wN();return this.po(L(e,f,this.m),"dateTimeOnly")}var g=this.Ea,h=wN();return this.po(L(g,h,this.m),"dateTime")}catch(k){a=gi(Mb(),k);if(hi(a))return a=this.Ea,b=wN(),this.po(L(a,b,this.m),"string");throw k;}}else{if(w()===a)return a=this.Ea,b=wN(),this.po(L(a,b,this.m),"string");throw(new v).d(a);}else return b=this.po(mq(nq(),
a.Ct.ya),"string"),c=this.m,e=of().hf,f=b.k,g=w(),Cc(c,e,f,g,"Cannot parse data node from AST structure '"+a+"'",this.Ea.ga),b};d.oda=function(a,b){or();b=Ke(M(),b);b=(new DL).P((new Q).a(),b);var c=this.Dl.os("array"),e=lm().$;b=Eb(b,e,c);c=this.Rd;c.b()||(c=c.c(),M0(b,c,H(z(),G())));a.X(t(new u,function(a,b){return function(c){c=Zha(eca(new He,c,(new A).d(b.k),a.Dl,a.m).Ir(),b.k);return esa(b,c)}}(this,b)));return b};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({zma:0},!1,"amf.plugins.document.vocabularies.parser.DynamicExtensionParser",{zma:1,f:1,A:1,w:1,q:1,n:1});function G4a(){this.m=this.U=this.W=this.rb=null}G4a.prototype=new r;G4a.prototype.constructor=G4a;d=G4a.prototype;d.L=function(){return"DialectsReferencesParser"};d.H=function(){return 3};
function H4a(a,b){var c=yc((new K).Y(a.W),"external");if(!c.b()){var c=c.c().i,e=Pc();L(c,e,a.m).Bb.X(t(new u,function(a,b){return function(c){var e=c.Da,l=zc(),e=L(e,l,a.m).ya;R();c=c.i;var l=a.m,p=qe();c=L(c,p,l);M();l=(new N).a();l=(new lN).P((new Q).a(),l);p=zd().gd;e=Eb(l,p,e);l=zd().uh;b.yR(Eb(e,l,c))}}(a,b)))}}
function I4a(a,b,c,e){var f=yc((new K).Y(a.W),"uses");if(!f.b()){var f=f.c().i,g=Pc();L(f,g,a.m).Bb.X(t(new u,function(a,b,c,e){return function(f){var g=f.Da,E=zc(),E=L(g,E,a.m).ya,V=a.sca(f),g=a.jM(V);if(!g.b())if(g=g.c(),vd(g))f=B(g.g,wd().uh).G,f=(new P).N(f.b()?null:f.c(),V),a.uG(b,(new P).N(E,f)),c.Yt(E,g);else if(sd(g))f=(new P).N(g.k,V),a.uG(b,(new P).N(E,f)),c.Yt(E,g);else a:{if(V=a.m.sW.Ta(V),x(V)){var da=V.i;if(null!==da){c.Yt(E,da);break a}}if(w()===V)E=a.m,V=of().hf,g="Expected vocabulary module but found: "+
g,da=w(),Cc(E,V,e,da,g,f.ga);else throw(new v).d(V);}}}(a,b,c,e)))}}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Cma){var b=this.rb,c=a.rb;if((null===b?null===c:b.h(c))&&Yj(this.W,a.W))return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.rb;case 1:return this.W;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.jM=function(a){a=this.U.Ib(t(new u,function(a,c){return function(a){return a.oo.Bf===c}}(this,a)));if(a.b())return w();a=a.c();return(new A).d(a.Od)};function yRa(a,b){var c=J4a(new K4a,pc(Os(),G()),a.m);a.U.X(t(new u,function(a,b){return function(a){a:{if(null!==a){var c=a.Od,e=a.oo,l=a.Lc;if(VA(c)&&null!==e&&w()===l){b.Yt(e.Bf,c);break a}}null!==a&&(c=a.Od,a=a.oo,e1(c)&&null!==a&&b.Yt(a.Bf,c))}}}(a,c)));I4a(a,a.rb,c,b);H4a(a,c);return c}
d.uG=function(a,b){var c=Zb(a.ha(),n(nd));if(x(c)){var c=c.i,e=a.ha(),f=e.jf;Wg();for(var g=Yg(new Zg,(new $g).a()),f=f.Lb;!f.b();){var h=f.fa();!1!==!lz(h)&&ah(g,h);f=f.sa()}e.jf=g.gb;b=c.Xb.Ij(b);b=(new kz).Qj(b);return ac(a,b)}if(w()===c){b=[b];if(0===(b.length|0))b=Yd();else{c=Zd(new ee,Yd());e=0;for(g=b.length|0;e<g;)fe(c,b[e]),e=1+e|0;b=c.gb}b=(new kz).Qj(b);return ac(a,b)}throw(new v).d(c);};function xRa(a,b,c,e){var f=new G4a;f.rb=a;f.W=b;f.U=c;f.m=e;return f}d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.sca=function(a){var b=a.i.pb().nb;if(O().vq===b)return a=a.i,b=zc(),L(a,b,this.m).ya;R();a=a.i;var b=this.m,c=qe();return L(a,c,b)};d.$classData=q({Cma:0},!1,"amf.plugins.document.vocabularies.parser.dialects.DialectsReferencesParser",{Cma:1,f:1,A:1,w:1,q:1,n:1});function K4a(){this.m=this.U=null}K4a.prototype=new r;K4a.prototype.constructor=K4a;d=K4a.prototype;d.L=function(){return"ReferenceDeclarations"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Dma){var b=this.U;a=a.U;return null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Yt=function(a,b){this.U.Ih((new P).N(a,b));if(vd(b))MGa(this.m.ad,a,b),a=oRa(this.m.ad,a),B(b.g,wd().Mc).X(t(new u,function(a,b){return function(a){if(tRa(a))IGa(b,a);else if(AA(a))KGa(b,a);else throw(new v).d(a);}}(this,a)));else if(sd(b))a=oRa(this.m.ad,a),b.ak().X(t(new u,function(a,b){return function(a){if(Kd(a)){var c=b.xL,e=B(a.ca(),a.$).G,e=e.b()?null:e.c();b.xL=c.Zb((new P).N(e,a));a=b}else a=b.j5(a);return a}}(this,a)));else if(VA(b)){var c=this.m.ad,e=this.m.ad.Ti;b=XB(new YB,B(b.g,ed().ob),
jd(b));c.Ti=e.Zb((new P).N(a,b))}else if(e1(b))this.m.sW=this.m.sW.Hh(a,b);else throw(new v).d(b);};function J4a(a,b,c){a.U=b;a.m=c;return a}d.Mw=function(){return this.U.Rr().pg().xb(t(new u,function(){return function(a){return bt(a)}}(this))).ce()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.yR=function(a){var b=this.U,c=B(a.g,zd().gd).G,c=c.b()?null:c.c();b.Ih((new P).N(c,a));var b=this.m.ad,c=this.m.ad.Gn,e=B(a.g,zd().gd).G,e=e.b()?null:e.c();b.Gn=c.Zb((new P).N(e,a))};
d.$classData=q({Dma:0},!1,"amf.plugins.document.vocabularies.parser.dialects.ReferenceDeclarations",{Dma:1,f:1,A:1,w:1,q:1,n:1});function v2(){this.na=this.W=this.m=this.Ff=null}v2.prototype=new r;v2.prototype.constructor=v2;
function L4a(a,b,c,e,f,g){var h=a.m.Oo(b.i);if(Ep(h))var h=h.i,k=O0a(a.m.ad,h,Or());else h=b.i,k=zc(),h=L(h,k,a.m).ya,k=O0a(a.m.ad,h,Nr());if(null!==h&&x(k)){var k=k.i,l=kb().nm.sK(Sj(k).k);if(x(l)){var p=l.i;if(null!==p){p=p.pa();l=a.m;a=a.m.UE;var p=H(z(),(new J).aa([p])),y=z();l.UE=a.la(p,y.s);a=Ke(M(),b.i);a=gL(k,h,a);e=Te(a,e);g&&e.E.Wb((new a1).a());w2(f,c,e,b.i);return}}if(w()===l){c=a.m;f=of().hf;g="Cannot find dialect for anyNode node mapping "+Sj(k).k;b=b.i;a=w();Cc(c,f,e,a,g,b.ga);return}throw(new v).d(l);
}c=a.m;f=of().hf;g="anyNode reference must be to a known node or an external fragment, unknown value: '"+b.i+"'";b=b.i;a=w();Cc(c,f,e,a,g,b.ga)}
function M4a(a,b,c,e,f,g,h,k,l){var p=e.pb().nb;if(O().ua===p){var p=Pc(),p=L(e,p,a.m),y=N4a(p);if("$ref"===y)c=O4a(a,p,f,c),c.b()?c=w():(c=c.c(),c.E.Wb((new Z0).a()),he(f)&&xT(c,f),c=(new A).d(c));else if("$include"===y)c=P4a(a,e,f,c,k),c.b()?c=w():(c=c.c(),c.E.Wb((new a1).a()),c=(new A).d(c));else if(he(f))e=k.b()?Ke(M(),p):k.c(),e=xT((new wT).P((new Q).a(),e),f),b=z(),g=Q4a(a,e,p,H(b,(new J).aa([c])),c,f,g,h),Te(e,g),bca(a,p,e,a.m.ad,a.m),B(f.g,Tj().Qi).X(t(new u,function(a,b,c,e,f){return function(g){var h=
B(g.g,sf().$).G,h=h.b()?null:h.c(),h=yc((new K).Y(b),h);if(x(h)){var h=h.i,k=B(B(a.m.Bk.g,ed().vj).g,fd().Lz).G,k=(k.b()?0:k.c())&&c?e+"#/":e;R4a(a,k,h,g,f)}else if(w()!==h)throw(new v).d(h);}}(a,p,h,c,e))),S4a(a,g,f.k,p.eb,f,p,h,l),c=(new A).d(e);else{if(!bg(f))throw(new v).d(f);h=z();c=T4a(a,c,H(h,(new J).aa([b])),e,f,g)}}else O().Wa===p||O().yd===p?c=P4a(a,e,f,c,k):O().vq===p?c=P4a(a,e,f,c,k):(g=a.m,h=of().hf,l=w(),Cc(g,h,c,l,"Cannot parse AST node for node in dialect instance",e.ga),c=w());x(c)&&
(e=c.i,a.m.r1&&U4a(e,!0),he(f)&&(e=xT(e,f),g=z(),f=[B(f.g,Tj().ov).G,(new A).d(f.k)],f=H(g,(new J).aa(f)),a=(new V4a).Au(a),g=z(),yT(e,f.$b(a,g.s))));return c}function W4a(a,b,c){b=B(b.g,sf().qr).G;if(x(b)){b=b.i;c=c.Da;var e=zc();return(new A).d((new P).N(b,L(c,e,a.m).ya))}if(w()===b)return w();throw(new v).d(b);}
function X4a(a,b,c,e,f){var g=pc(fc().db,G()),h=c.Da,k=zc(),h=L(h,k,a.m).ya;Di();var k=(new J).aa([h]),l=Di().s,k=Y4a(b,Ei(k,l)),l=x2(e);if(null!==l&&1<l.lb())if(b=z(),a=T4a(a,k,H(b,(new J).aa([h])),c.i,e,g),x(a))w2(f,e,a.i,c.i);else{if(w()!==a)throw(new v).d(a);}else null!==l&&1===l.lb()&&(h=B(a.m.Bk.g,ed().Mc).Ib(t(new u,function(a,b){return function(a){return a.k===b.fa()}}(a,l))),x(h)&&(h=h.i,Kd(h)&&(a=Z4a(a,b,k,c.i,h,g),x(a)&&w2(f,e,a.i,c.i))))}
function $4a(a,b){b="root"===b?a.m.iEa:a.m.rCa;var c=B(B(a.m.Bk.g,ed().vj).g,fd().qz).G;if(c.b())var e=w();else e=c.c(),e=(new A).d(0<=(e.length|0)&&"/"===e.substring(0,1)?e:"/"+e);e.b()?e=w():(e=e.c(),e=(new A).d(re(ta(),e,"/")?e:e+"/"));if(c.b())c=w();else{var c=c.c(),c=kd(ta(),c,"/",0),f=Di().s.gs(),g=c.j.length;switch(g){case -1:break;default:f.Gh(g)}f.Cf((new FH).vc(c));c=(new A).d(f.lc())}c=c.b()?G():c.c();c=a5a(a,c,a.W);c.b()||(c=c.c(),b.X(t(new u,function(a,b,c){return function(e){if(null!==
e){var f=e.pa();e=e.Ba();var g=b.Bb.Ib(t(new u,function(a,b){return function(c){c=c.Da;var e=zc();return L(c,e,a.m).ya===b}}(a,f)));if(!g.b()){var g=g.c(),E=a.Ff.ga,V=c.b()?"/":c.c(),f=(new Cf).e(f),f=E+"#"+V+Gj(f.zd),E=g.i,V=Pc();L(E,V,a.m).Bb.X(t(new u,function(a,b,c,e){return function(f){var g=f.Da,h=zc(),h=L(g,h,a.m).ya;Di();var g=(new J).aa([h]),k=Di().s,g=Y4a(b,Ei(g,k)),k=f.i,l=pc(fc().db,G()),p=(new A).d(Ke(M(),f)),y=w(),k=M4a(a,b,g,k,c,l,!1,p,y);x(k)?(k=k.i,l=pv().TX,h=Nh(new Oh,h,Ke(M(),
f.Da)),p=Ke(M(),f.Da),Fh(k,l,h,p),h=a.m.ad,R(),f=f.Da,l=a.m,p=qe(),N0a(h,L(f,p,l),k),a.m.up.Rl(g,k)):(f=a.m,k=of().hf,h="Cannot parse declaration for node with key '"+h+"'",l=e.i,p=w(),Cc(f,k,g,p,h,l.ga))}}(a,f,e,g)))}}else throw(new v).d(e);}}(a,c,e))))}function b5a(a){a=a.i.pb().nb;return O().ui===a?!0:O().rg===a?!0:O().Wa===a?!0:O().Oi===a?!0:O().fy===a}
function T4a(a,b,c,e,f,g){var h=B(f.ca(),cg().Jg),k=t(new u,function(a,b,c,e){return function(f){f=B(a.m.Bk.g,ed().Mc).Ib(t(new u,function(a,b){return function(a){var c=b.G;return a.k===(c.b()?null:c.c())}}(a,f)));if(x(f))return(new A).d(f.i);if(w()===f){f=a.m;var g=of().hf,h="Cannot find mapping for property "+c.k+" in union",k=w();Cc(f,g,b,k,h,e.ga);return w()}throw(new v).d(f);}}(a,b,f,e)),l=z(),h=h.ka(k,l.s),k=(new c5a).Au(a),l=z(),k=h.$b(k,l.s),h=Wa().Ia(ET(f)),p=(h.b()?pc(fc().db,G()):h.c()).ae(pc(fc().db,
G()),qd(function(a,b,c){return function(e,f){f=(new P).N(e,f);e=f.ep;var g=f.rq;if(null!==g){f=g.pa();var g=g.Ba(),h=B(a.m.Bk.g,ed().Mc).Ib(t(new u,function(a,b){return function(a){return a.k===b}}(a,g)));if(x(h)&&(h=h.i,he(h)))return e.Zb((new P).N(f,h));var h=a.m,k=of().hf;f="Cannot find mapping for property "+g+" in discriminator value '"+f+"' in union";g=w();Cc(h,k,b,g,f,c.ga);return e}throw(new v).d(f);}}(a,b,e))),h=(new dd).Qd(p),l=z(),h=k.la(h,l.s).Ri(),l=e.pb().nb;if(O().ua===l){var l=Pc(),
l=L(e,l,a.m),y=N4a(l);if("$include"===y)return b=d5a(a,e,h,b).i,b.E.Wb((new a1).a()),(new A).d(b);if("$ref"===y){b=e5a(a,l,h,b);if(b.b())return w();b=b.c();b.E.Wb((new Z0).a());return(new A).d(b)}f=B(f.ca(),cg().gu).G;y=Pd(g);f=f5a(a,b,k,p,f,l,xx(y));if(f.b())return c=a.m,g=of().UX,f=h.lb(),a=t(new u,function(){return function(a){return a.k}}(a)),k=z(),a="Ambiguous node in union range, found 0 compatible mappings from "+f+" mappings: ["+h.ka(a,k.s).ng(",")+"]",f=w(),Cc(c,g,b,f,a,e.ga),w();if(1===
f.lb())return e=xT(cU(dU(),l),f.fa()),b=Q4a(a,e,l,c,b,f.fa(),g,!1),Te(e,b),c=G(),c=(new Qd).d(c),f.X(t(new u,function(a,b,c,e,f){return function(g){var h=b.g.Pb,k=zx(),k=Va(k),l=Ce().s,h=De(h,k,l).lb();B(g.g,Tj().Qi).X(t(new u,function(a,b,c,e){return function(f){var g=b.g,h=Uj(f);if(!g.Pb.Ja(h))if(g=B(f.g,sf().$).G,g=g.b()?null:g.c(),g=c.Bb.Ib(t(new u,function(a,b){return function(c){c=c.Da;var e=zc();return L(c,e,a.m).ya===b}}(a,g))),x(g))R4a(a,e,g.i,f,b);else if(w()!==g)throw(new v).d(g);}}(a,
b,c,e)));var k=b.g.Pb,l=zx(),l=Va(l),p=Ce().s;De(k,l,p).lb()!==h&&(h=f.ta,k=z(),g=B(g.g,Tj().ov).G,g=[g.b()?null:g.c()],g=H(k,(new J).aa(g)),k=z(),f.ta=h.la(g,k.s))}}(a,e,l,b,c))),b=c.ta,a=z(),c=[f.fa().k],a=H(a,(new J).aa(c)),c=z(),yT(e,b.la(a,c.s)),(new A).d(e);e=a.m;c=of().UX;g=w();h=t(new u,function(){return function(a){return a.k}}(a));k=z();f="Ambiguous node, please provide a type disambiguator. Nodes "+f.ka(h,k.s).ng(",")+" have been found compatible, only one is allowed";Cc(e,c,b,g,f,a.W.ga);
return w()}if(O().Wa===l||O().vq===l)return d5a(a,e,h,b);a=a.m;c=of().cN;g=w();Cc(a,c,b,g,"Cannot parse AST for union node mapping",e.ga);return w()}
function e5a(a,b,c,e){var f=yc((new K).Y(b),"$ref").c().i,g=qe(),g=L(f,g,a.m),f=0<=(g.length|0)&&"#"===g.substring(0,1)?""+a.Ff.ga+g:g,h=g5a(a.m,f);h.b()?c=w():(h=h.c(),c.Cd(t(new u,function(a,b){return function(a){return a.k===Sj(b).k}}(a,h)))?(c=Ke(M(),b),c=gL(h,g,c),c=Te(c,e)):(c=cU(dU(),b),c=Te(c,e),dz(c,f,b,a.m)),c=(new A).d(c));return c.b()?(c=cU(dU(),b),e=Te(c,e),dz(e,f,b,a.m),(new A).d(e)):c}function Z4a(a,b,c,e,f,g){var h=w(),k=w();return M4a(a,b,c,e,f,g,!1,h,k)}
function h5a(a,b){var c=Wa().Ia(B(a.m.Bk.g,ed().vj));if(c.b())return w();var e=B(c.c().g,fd().tz).Ib(t(new u,function(a){return function(b){var c=a.Ff.Gg.Cv.c().Bt.split(" ").join("");b=B(b.g,OA().Sx).G;b=b.b()?null:b.c();return-1!==(c.indexOf(b)|0)}}(a)));if(x(e)){c=a.m;e=B(e.i.g,OA().ft).G;c=i5a(c,e.b()?null:e.c());if(x(c)){c=c.i;b=b.k+"#";e=b+"/";R();var f=a.W;R();var f=lq(R(),f,O().ua),g=pc(fc().db,G()),h=w(),k=w();return M4a(a,b,e,f,c,g,!1,h,k)}return w()}if(w()!==e)throw(new v).d(e);return w()}
function O4a(a,b,c,e){var f=mca(a,c),g=yc((new K).Y(b),"$ref").c().i,h=qe(),h=L(g,h,a.m);0<=(h.length|0)&&"#"===h.substring(0,1)?g=""+a.Ff.ga+h:(g=a.Ff.ga,0<=(h.length|0)&&"/"===h.substring(0,1)?g=h:-1!==(h.indexOf("://")|0)?g=h:0<=(h.length|0)&&"#"===h.substring(0,1)?(g=kd(ta(),g,"#",0),g=""+Wj((new md).vc(g))+h):g=""+a.A_(g)+h,-1!==(g.indexOf("#")|0)?(g=kd(ta(),g,"#",0),g=a.na.SL(Wj((new md).vc(g)))+"#"+ld((new md).vc(g))):g=a.na.SL(g));var k=g5a(a.m,g);k.b()?f=w():(k=k.c(),f.Ja(Sj(k).k)?(f=Ke(M(),
b),f=gL(k,h,f),f=Te(f,e),h=z(),f=yT(f,H(h,(new J).aa([c.k])))):(f=cU(dU(),b),f=Te(f,e),h=z(),f=yT(f,H(h,(new J).aa([c.k]))),dz(f,g,b,a.m)),f=(new A).d(f));return f.b()?(f=cU(dU(),b),e=Te(f,e),f=z(),c=yT(e,H(f,(new J).aa([c.k]))),dz(c,g,b,a.m),(new A).d(c)):f}
function j5a(a,b){var c=Wa().Ia(B(a.m.Bk.g,ed().vj));if(c.b())return w();var e=c.c(),c=Wa().Ia(B(e.g,fd().cs));if(c.b())return w();var f=c.c(),c=a.m,f=B(f.g,OA().ft).G,c=i5a(c,f.b()?null:f.c());if(x(c)){c=c.i;f=b.k+"#";e=B(e.g,fd().wz);gd(e)?(e=B(a.m.Bk.g,ed().$).G,e=(new A).d(e.b()?null:e.c())):e=w();var g=B(B(a.m.Bk.g,ed().vj).g,fd().Lz).G;(g.b()?0:g.c())?(g=jd(b),b=g.b()?b.k:g.c()):b=b.k+"#/";R();g=a.W;R();return M4a(a,f,b,lq(R(),g,O().ua),c,pc(fc().db,G()),!0,w(),e)}return w()}
function k5a(a){var b=Ke(M(),a.W),b=(new eN).P((new Q).a(),b),c=a.Ff.ga,e=Ap().nc,b=Eb(b,e,c),b=Te(b,a.Ff.ga),c=a.m.Bk.k,e=ZA().Rf,b=Eb(b,e,c);$4a(a,"root");c=l5a(b,a.W,a.Ff.U,a.m);e=jd(b);c=m5a(c,e.b()?b.k:e.c());if(Tc(a.m.ad.Gn)){var e=(new dd).Qd(a.m.ad.Gn).Rb.gf().kd(),f=ge().ch;qf(b,f,e)}e=j5a(a,b);x(e)?(e=e.i,a.m.up.Rl(a.Ff.ga+"#/",e),f=Rl().ob,ff(b,f,e),a.m.ad.qu().Fa()&&(e=a.m.ad.qu(),f=Ug().Mc,Vg(b,f,e)),c.Mw().Fa()&&(c=c.Mw(),e=Nl().qc,Vg(b,e,c)),a.m.UE.Fa()&&(c=a.m.UE,e=t(new u,function(){return function(a){var b=
jd(a);return b.b()?a.k:b.c()}}(a)),f=z(),c=c.ka(e,f.s),e=ZA().lr,dr(b,e,c)),b=(new A).d(b)):b=w();ec(a.m.Yh);return b}
function n5a(a,b,c,e,f){var g=B(e.g,sf().qr).G,h=B(e.g,sf().cy).G;if(g.qa()&&h.qa()){var k=B(a.m.Bk.g,ed().Mc).Ib(t(new u,function(a,b){return function(a){a=a.k;var c=B(b.g,cg().Jg).fa().G;return a===(c.b()?null:c.c())}}(a,e)));a:{if(x(k)&&(k=k.i,he(k))){var l=c.i,p=Pc(),l=L(l,p,a.m).Bb;b=t(new u,function(a,b,c,e,f,g){return function(h){var k=c.Da,l=zc(),k=L(k,l,a.m).ya,k=(new Cf).e(k),k=Gj(k.zd),l=h.Da,p=zc(),l=L(l,p,a.m).ya,l=(new Cf).e(l),k=b+"/"+k+"/"+Gj(l.zd),l=Ke(M(),h),l=(new wT).P((new Q).a(),
l),k=xT(Te(l,k),e),l=z(),p=B(e.g,Tj().ov).G,p=[p.b()?null:p.c(),e.k],k=yT(k,H(l,(new J).aa(p)));try{var db=Rb(new Sb,Pb(),sT(tT(),f.c()),Tb(new Ub,Vb().tm,"","",G())),Qb=h.Da,bc=zc(),rc=Nh(new Oh,L(Qb,bc,a.m).ya,(new N).a()),Fc=Ke(M(),h.Da);Fh(k,db,rc,Fc);var Rd=Rb(new Sb,Pb(),sT(tT(),g.c()),Tb(new Ub,Vb().tm,"","",G())),Ld=h.i,ze=zc(),Td=Nh(new Oh,L(Ld,ze,a.m).ya,(new N).a()),Je=Ke(M(),h.i);Fh(k,Rd,Td,Je)}catch($d){if($d&&$d.$classData&&$d.$classData.v.oSa)db=a.m,Qb=of().hf,bc=$d.k,rc="Cannot find mapping for key map property "+
$d.k,Fc=w(),Cc(db,Qb,bc,Fc,rc,h.ga);else throw $d;}return(new A).d(k)}}(a,b,c,k,g,h));g=uv();b=l.ka(b,g.gc);a=(new y2).Au(a);g=uv();b=b.$b(a,g.gc);break a}a=a.m;g=of().hf;h=B(e.g,cg().Jg).fa().G;h="Cannot find mapping for property range of mapValue property: "+(h.b()?null:h.c());k=w();Cc(a,g,b,k,h,c.ga);b=G()}o5a(f,e,b,c.Da)}else e=a.m,f=of().hf,a=w(),Cc(e,f,b,a,"Both 'mapKey' and 'mapValue' are mandatory in a map pair property mapping",c.ga)}
function p5a(a,b,c,e){var f=e.Ta(b.k);if(w()===f)e.Rl(b.k,!0);else{a=a.m;e=of().hf;f=b.k;b="Duplicated element in collection "+b.k;var g=w();Cc(a,e,f,g,b,c.ga)}}
function a5a(a,b,c){a:for(;;){if(G().h(b))return(new A).d(c);if(ft(b)){var e=b;b=e.ve;var f=!1,g=null;c=yc((new K).Y(c),e.Aj);if(x(c)){f=!0;g=c;c=g.i;var e=c.i.pb().nb,h=O().ua;if(e===h)if(Tc(b)){f=c.i;g=Pc();c=f=L(f,g,a.m);continue a}else return Hc(Ic(c.i),Pc())}f&&(b=g.i,a=a.m,f=of().hf,g="Invalid node type for declarations path "+b.i.pb().nb.Ct.ya,c=w(),Cc(a,f,"",c,g,b.ga));return w()}throw(new v).d(b);}}
function P4a(a,b,c,e,f){var g=a.m.Oo(b);if(Ep(g))var g=g.i,h=(new P).N(g,Q0a(a.m.ad,g,c,Or()));else g=zc(),g=L(b,g,a.m).ya,h=(new P).N(g,Q0a(a.m.ad,g,c,Pr()));if(null!==h){var g=h.pa(),k=h.Ba();if(null!==g&&x(k))return a=k.i,b=f.b()?Ke(M(),b):f.c(),a=gL(a,g,b),b=z(),a=yT(a,H(b,(new J).aa([c.k]))),a=Te(a,e),(new A).d(a)}if(null!==h&&(g=h.pa(),null!==g))return h=f.b()?Ke(M(),b):f.c(),h=(new wT).P((new Q).a(),h),e=Te(h,e),h=z(),c=yT(e,H(h,(new J).aa([c.k]))),e=f.b()?w():Zb(f.c(),n(Lt)),e.b()?e=w():(e=
e.c(),e=(new A).d(e.Lc)),b=e.b()?b:e.c(),dz(c,g,b,a.m),(new A).d(c);throw(new v).d(h);}
function S4a(a,b,c,e,f,g,h,k){h=h?a.m.s2:H(fc().Sg,G());f=B(f.g,Tj().Qi);var l=t(new u,function(){return function(a){a=B(a.g,sf().$).G;return a.b()?null:a.c()}}(a)),p=z();h=f.ka(l,p.s).pg().hX(h);l=Pd(e);f=pf().s;f=Rf(l,f);for(l=l.ah.Tq();l.Qa();)p=l.Sa(),f.Ic(p.we().ya);k=f.lc().xb(t(new u,function(){return function(a){return!(0<=(a.length|0)&&"$"===a.substring(0,1))&&!(0<=(a.length|0)&&"("===a.substring(0,1))&&!(0<=(a.length|0)&&"x-"===a.substring(0,2))}}(a))).Ph(t(new u,function(a,b){return function(a){return b.Ja(a)}}(a,
k))).pg().kO(h);Tc(k)&&k.X(t(new u,function(a,b,c,e,f){return function(g){var h=b.kb();a:{for(;h.Qa();){var k=h.Sa();if(k.pa().u()===g){h=(new A).d(k);break a}}h=w()}h.b()?h=w():(h=h.c(),h=(new A).d(h.Ba()));h=h.b()?c:h.c();ica(a.m,e,g,f,h)}}(a,e,g,b,c)))}
function q5a(a,b,c,e){var f=b.i.pb().nb;if(O().Nc===f){var f=b.i,g=tv(),f=L(f,g,a.m).Jn,g=t(new u,function(a,b,c){return function(e){return r5a(a,e,b,c).wa()}}(a,c,e)),h=uv(),f=f.md(g,h.gc),g=f.pc();a:{if(x(g)&&(g=g.i,z2(g)&&"link"===g.pa()&&Lo(g.Ba()))){a=(new A2).Au(a);g=uv();a=f.$b(a,g.gc);break a}a=f}}else a:{if(f=!1,g=null,a=r5a(a,b.i,c,e),x(a)&&(f=!0,g=a,h=g.i,z2(h)&&(a=h.pa(),h=h.Ba(),"link"===a))){a=H(z(),(new J).aa([h]));break a}f?(a=g.i,a=H(z(),(new J).aa([a]))):a=G()}s5a(e,c,a,b)}
function t5a(a,b,c,e){c=B(c.g,sf().qr).G;if(x(c)){c=c.i;try{var f=Rb(new Sb,Pb(),sT(tT(),c),Tb(new Ub,Vb().tm,"","",G())),g=e.Da,h=zc(),k=Nh(new Oh,L(g,h,a.m).ya,(new N).a()),l=Ke(M(),e.Da);return Fh(b,f,k,l)}catch(p){if(p&&p.$classData&&p.$classData.v.oSa)return a=a.m,e=of().hf,f=p.k,g="Cannot find mapping for key map property "+p.k,h=w(),k=w(),l=w(),a.Hc(e.k,f,h,g,k,xc().tb,l),b;throw p;}}else{if(w()===c)return b;throw(new v).d(c);}}
function Q4a(a,b,c,e,f,g,h,k){k?(k=B(B(a.m.Bk.g,ed().vj).g,fd().Lz).G,k=!(k.b()||!k.c())):k=!1;if(k)return f;if(yc((new K).Y(c),"$id").qa())return e=yc((new K).Y(c),"$id").c().i,c=zc(),e=L(e,c,a.m).ya,-1!==(e.indexOf("://")|0)?a=e:(c=jd(a.m.Bk),a=c.b()?a.m.Bk.k:c.c(),a=kd(ta(),a,"#",0),a=(Wj((new md).vc(a))+"#"+e).split("##").join("#")),b.E.Wb((new X0).a()),a;k=B(g.g,Tj().Xx);if(eM(k))a=u5a(g).Fa()?v5a(a,b,c,e,f,g,h):f;else{f=B(g.g,Tj().Xx).G;f=f.b()?null:f.c();g=(new ph).e("(\\{[^}]+\\})");h=G();
for(g=Mt((new qh).Di(g.ia,h),f);g.Qa();){k=g.My();h=k.split("{").join("").split("}").join("");var l=yc((new K).Y(c),h);if(x(l))h=l.i.i.we().u(),f=f.split(k).join(h);else if(w()===l){k=a.m;var l=of().hf,p=b.k;h="Missing ID template variable '"+h+"' in node";var y=w();Cc(k,l,p,y,h,c.ga)}else throw(new v).d(l);}-1!==(f.indexOf("://")|0)?a=f:(b=f,0<=(b.length|0)&&"/"===b.substring(0,1)?a=a.Ff.ga+"#"+f:(b=f,0<=(b.length|0)&&"#"===b.substring(0,1)?a=""+a.Ff.ga+f:(b=f,b=kd(ta(),b,"/",0),b=(new md).vc(b),
c=z(),b=e.la(b,c.s).ng("/"),e=a.Ff.ga,a=0<=(b.length|0)&&b.substring(0,e.length|0)===e||-1!==(b.indexOf("#")|0)?b:a.Ff.ga+"#"+b)))}return a}function w5a(a,b){var c=!1,e=null,f=yc((new K).Y(a.W),"$target");a:{if(x(f)){var c=!0,e=f,f=e.i,g=f.i.pb().nb,h=O().Wa;if(g===h){c=a.na;e=f.i;f=qe();a=c.SL(L(e,f,a.m));c=cHa().Jc;Eb(b,c,a);break a}}c&&(f=e.i,a=a.m,c=of().hf,e=b.k,f=f.i,g=w(),Cc(a,c,e,g,"Patch $target must be a valid URL",f.ga))}return b}
function x5a(a,b,c){a.Ff=b;a.m=c;a.na=ju().na;b=b.Gg.Vd;var e=Pc();a.W=L(b,e,c);return a}
function d5a(a,b,c,e){var f=a.m.Oo(b);if(Ep(f)){var f=f.i,g=t(new u,function(a,b){return function(c){return Q0a(a.m.ad,b,c,Or())}}(a,f)),h=z();c=c.ka(g,h.s);f=(new P).N(f,hd(c,(new y5a).Au(a)))}else f=zc(),f=L(b,f,a.m).ya,g=t(new u,function(a,b){return function(c){return Q0a(a.m.ad,b,c,Pr())}}(a,f)),h=z(),c=c.ka(g,h.s),f=(new P).N(f,hd(c,(new z5a).Au(a)));if(null!==f&&(c=f.pa(),g=f.Ba(),null!==c&&x(g)))return a=g.i,b=Ke(M(),b.we()),a=gL(a,c,b),e=Te(a,e),(new A).d(e);if(null!==f&&(b=f.pa(),null!==
b))return c=cU(dU(),a.W),e=Te(c,e),dz(e,b,a.W,a.m),(new A).d(e);throw(new v).d(f);}
function R4a(a,b,c,e,f){var g=VGa(e);if(fGa()===g)if(g=c.i.pb().nb,O().Wa===g||O().vq===g)L4a(a,c,e,b,f,!1);else if(O().ua===g){var g=c.i,h=Pc(),g=L(g,h,a.m),k=yc((new K).Y(g),"$dialect");a:{if(x(k)){var h=k.i,l=h.i.pb().nb,p=O().Wa;if(l===p){g=h.i;k=zc();g=L(g,k,a.m).ya;l=kb().nm.sK(g);b:{if(x(l)&&(k=l.i,null!==k)){var l=k.pa(),g=k.Ba(),h=a.m,k=a.m.UE,p=H(z(),(new J).aa([l])),y=z();h.UE=k.la(p,y.s);h=a.m;k=h.Bk;h.Bk=l;h.s2=A5a(h);Di();l=c.Da;p=zc();l=[L(l,p,a.m).ya];l=(new J).aa(l);p=Di().s;l=Y4a(b,
Ei(l,p));b=Z4a(a,b,l,c.i,g,pc(fc().db,G()));if(x(b))w2(f,e,b.i,c.i);else if(w()!==b)throw(new v).d(b);h.Bk=k;h.s2=A5a(h);break b}if(w()===l)e=a.m,f=of().hf,a="Cannot find dialect for nested anyNode mapping "+g,g=h.i,c=w(),Cc(e,f,b,c,a,g.ga);else throw(new v).d(l);}break a}}if(w()===k)if(c=N4a(g),"$include"===c)g=yc((new K).Y(g),"$include").c(),L4a(a,g,e,b,f,!0);else if("$ref"===c)b:{c=yc((new K).Y(g),"$ref").c().i;h=qe();c=L(c,h,a.m);h=0<=(c.length|0)&&"#"===c.substring(0,1)?""+a.Ff.ga+c:c;h=g5a(a.m,
h);h.b()?h=w():(h=h.c(),k=Ke(M(),g),h=gL(h,c,k),h=(new A).d(Te(h,b)));if(x(h)){h=h.i;k=kb().nm.sK(Sj(h).k);if(x(k)&&(l=k.i,null!==l)){l=l.pa();k=a.m;a=a.m.UE;l=H(z(),(new J).aa([l]));p=z();k.UE=a.la(l,p.s);a=Ke(M(),g);a=gL(h,c,a);b=Te(a,b);w2(f,e,b,(R(),R(),lq(R(),g,O().ua)));break b}if(w()===k){e=a.m;f=of().hf;a="Cannot find dialect for anyNode node mapping "+Sj(h).k;c=w();Cc(e,f,b,c,a,g.ga);break b}throw(new v).d(k);}if(w()===h)e=a.m,f=of().hf,a="anyNode reference must be to a known node or an external fragment, unknown JSON Pointer: '"+
c+"'",c=w(),Cc(e,f,b,c,a,g.ga);else throw(new v).d(h);}else e=a.m,f=of().hf,a=w(),Cc(e,f,b,a,"$dialect key without string value or link",g.ga);else throw(new v).d(k);}}else throw(new v).d(g);else hGa()===g?B5a(a,c,e,f):jGa()===g?q5a(a,c,e,f):MM()===g?X4a(a,b,c,e,f):OM()===g?C5a(a,b,c,e,f):JM()===g?D5a(a,b,c,e,f):nGa()===g?n5a(a,b,c,e,f):(f=a.m,a=of().hf,e="Unknown type of node property "+e.k,g=w(),Cc(f,a,b,g,e,c.ga))}
function Y4a(a,b){var c;for(c=a;!b.b();)a=b.fa(),re(ta(),c,"/")?(a=(new Cf).e(a),c=""+c+Gj(a.zd)):(a=(new Cf).e(a),c=c+"/"+Gj(a.zd)),b=b.sa();return c}
function v5a(a,b,c,e,f,g,h){var k=(new mk).rs(!0),l=H(z(),G()),l=(new Qd).d(l);u5a(g).X(t(new u,function(a,b,c,e,f,g){return function(h){var k=B(h.g,sf().$).G,k=k.b()?null:k.c(),l=b.Bb.Ib(t(new u,function(a,b){return function(c){c=c.Da;var e=zc();return L(c,e,a.m).ya===b}}(a,k)));a:{if(x(l)&&(l=l.i,b5a(l))){k=c.ta;h=z();l=[l.i.we().ya];h=H(h,(new J).aa(l));l=z();c.ta=k.la(h,l.s);break a}h=B(h.g,sf().Kh).G;h=e.Ta(h.b()?null:h.c());if(x(h))h=h.i,k=c.ta,h=H(z(),(new J).aa([ja(h)])),l=z(),c.ta=k.la(h,
l.s);else{h=a.m;var l=of().hf,Pa=f.k,k="Cannot find unique mandatory property '"+k+"'",Za=w();Cc(h,l,Pa,Za,k,b.ga);g.ta=!1}}}}(a,c,l,h,b,k)));return k.ta?(a=t(new u,function(){return function(a){a=(new Cf).e(a);return ba.encodeURI(a.zd)}}(a)),b=z(),e=e.ka(a,b.s).ng("/"),l=l.ta.ng("_"),l=(new Cf).e(l),e+"/"+ba.encodeURI(l.zd)):f}
function B5a(a,b,c,e){var f=!1,g=null;a=r5a(a,b.i,c,e);if(x(a)&&(f=!0,g=a,a=g.i,"boolean"===typeof a)){E5a(e,c,!!a,b);return}if(f&&(a=g.i,Da(a))){F5a(e,c,a|0,b);return}if(f&&(a=g.i,ma(a))){G5a(e,c,+a,b);return}if(f&&(a=g.i,"number"===typeof a)){H5a(e,c,+a,b);return}if(f&&(a=g.i,Lo(a))){I5a(e,c,a,b);return}if(f){var h=g.i;if(z2(h)&&(a=h.pa(),h=h.Ba(),"link"===a&&Lo(h))){I5a(e,c,h,b);return}}f&&(f=g.i,wM(f)&&(c=Uj(c),f=Nh(new Oh,f,Ke(M(),b.i)),b=Ke(M(),b),Fh(e,c,f,b)))}v2.prototype.Jo=function(){return this.m};
function r5a(a,b,c,e){var f=!1,g=!1,h=!1,k=!1,l=!1,p=b.pb().nb;if(O().ui===p){var f=!0,y=B(c.g,sf().xf).G;(y.b()?null:y.c())===qi().Xj?y=!0:(y=B(c.g,sf().xf).G,y=(y.b()?null:y.c())===qi().Xr);if(y)return c=kL(),(new A).d(L(b,c,a.m))}if(f)return a=a.m,e=e.k,l=B(c.g,sf().xf).G,l=l.b()?null:l.c(),k=qi().Xj,gca(a,e,c,l,k,b),w();if(O().Oi===p&&(g=!0,f=B(c.g,sf().xf).G,(f.b()?null:f.c())===qi().hj?f=!0:(f=B(c.g,sf().xf).G,f=(f.b()?null:f.c())===qi().jp),f?f=!0:(f=B(c.g,sf().xf).G,f=(f.b()?null:f.c())===
qi().Xr),f))return c=xDa(),(new A).d(L(b,c,a.m));if(g)return a=a.m,e=e.k,l=B(c.g,sf().xf).G,l=l.b()?null:l.c(),k=qi().hj,gca(a,e,c,l,k,b),w();if(O().Wa===p&&(h=!0,g=B(c.g,sf().xf).G,(g.b()?null:g.c())===qi().Mj?g=!0:(g=B(c.g,sf().xf).G,g=(g.b()?null:g.c())===qi().Xr),g))return c=zc(),(new A).d(L(b,c,a.m).ya);h?(g=B(c.g,sf().xf).G,g=(g.b()?null:g.c())===qi().ir):g=!1;if(g)return c=zc(),(new A).d(L(b,c,a.m).ya);h?(g=B(c.g,sf().xf).G,g=g.b()?null:g.c(),f=C().Gb,g=g===Gc(D(new F,f,"link"))):g=!1;if(g)return c=
zc(),(new A).d((new P).N("link",L(b,c,a.m).ya));h?(g=B(c.g,sf().xf).G,(g.b()?null:g.c())===qi().Gw?g=!0:(g=B(c.g,sf().xf).G,g=(g.b()?null:g.c())===qi().uq),g?g=!0:(g=B(c.g,sf().xf).G,g=(g.b()?null:g.c())===qi().Xl)):g=!1;if(g)return b=lq(R(),b.we(),O().fy),c=VWa(),(new A).d(L(b,c,a.m));h?(g=B(c.g,sf().xf).G,g=g.b()?null:g.c(),f=C().Gb,g=g===Gc(D(new F,f,"guid"))):g=!1;if(g)return c=zc(),(new A).d(L(b,c,a.m).ya);if(h)return a=a.m,e=e.k,l=B(c.g,sf().xf).G,l=l.b()?null:l.c(),k=qi().Mj,gca(a,e,c,l,k,
b),w();if(O().rg===p&&(k=!0,h=B(c.g,sf().xf).G,(h.b()?null:h.c())===qi().rg?h=!0:(h=B(c.g,sf().xf).G,h=(h.b()?null:h.c())===qi().jp),h?h=!0:(h=B(c.g,sf().xf).G,h=(h.b()?null:h.c())===qi().vi),h?h=!0:(h=B(c.g,sf().xf).G,h=(h.b()?null:h.c())===qi().Xr),h))return c=YWa(),(new A).d(L(b,c,a.m));if(k)return a=a.m,e=e.k,l=B(c.g,sf().xf).G,l=l.b()?null:l.c(),k=qi().rg,gca(a,e,c,l,k,b),w();if(O().fy===p&&(l=!0,k=B(c.g,sf().xf).G,(k.b()?null:k.c())===qi().Gw?k=!0:(k=B(c.g,sf().xf).G,k=(k.b()?null:k.c())===
qi().uq),k?k=!0:(k=B(c.g,sf().xf).G,k=(k.b()?null:k.c())===qi().Xl),k?k=!0:(k=B(c.g,sf().xf).G,k=(k.b()?null:k.c())===qi().Xr),k))return c=VWa(),(new A).d(L(b,c,a.m));l?(k=B(c.g,sf().xf).G,k=(k.b()?null:k.c())===qi().Mj):k=!1;if(k)return c=zc(),(new A).d(L(b,c,a.m).ya);if(l)return l=a.m,e=e.k,k=B(c.g,sf().xf).G,k=k.b()?null:k.c(),p=qi().Xl,gca(l,e,c,k,p,b),c=qe(),(new A).d(L(b,c,a.m));c=a.m;l=of().hf;e=e.k;k="Unsupported scalar type "+b.pb().nb;p=w();Cc(c,l,e,p,k,b.ga);c=qe();return(new A).d(L(b,
c,a.m))}function N4a(a){return yc((new K).Y(a),"$include").qa()?"$include":yc((new K).Y(a),"$ref").qa()?"$ref":"inline"}
function f5a(a,b,c,e,f,g,h){if(x(f)){c=f.i;h=g.Bb.Ib(t(new u,function(a,b){return function(c){c=c.Da;var e=zc();return L(c,e,a.m).ya===b}}(a,c)));h.b()?e=w():(h=h.c().i,f=zc(),e=e.Ta(L(h,f,a.m).ya));if(x(e))return a=e.i,H(z(),(new J).aa([a]));if(w()===e)return a=a.m,e=of().hf,c="Cannot find discriminator value for discriminator '"+c+"'",h=w(),Cc(a,e,b,h,c,g.ga),G();throw(new v).d(e);}if(w()===f)return b=g.Bb,g=t(new u,function(a){return function(b){b=b.Da;var c=zc();return L(b,c,a.m).ya}}(a)),e=uv(),
b=b.ka(g,e.gc).pg(),c.xb(t(new u,function(a,b,c){return function(e){e=B(e.g,Tj().Qi).xb(t(new u,function(a,b){return function(a){a=B(a.g,sf().Kh).G;return!b.Ja(a.b()?null:a.c())}}(a,b)));var f=e.xb(t(new u,function(){return function(a){a=B(a.g,sf().Uh);return 0<GHa(a)}}(a))),g=t(new u,function(){return function(a){a=B(a.g,sf().$).G;return a.b()?null:a.c()}}(a)),h=z(),f=f.ka(g,h.s).pg(),g=t(new u,function(){return function(a){a=B(a.g,sf().$).G;return a.b()?null:a.c()}}(a)),h=z();e=e.ka(g,h.s).pg();
return c.kO(e).b()&&f.kO(c).b()}}(a,h,b)));throw(new v).d(f);}v2.prototype.A_=function(a){if(-1!==(a.indexOf("#")|0)){a=kd(ta(),a,"#",0);var b=Wj((new md).vc(a))}else b=a;a=(new ph).e(b);b=b.lastIndexOf("/")|0;return B2(a,b).pa()+"/"};
function C5a(a,b,c,e,f){var g=pc(fc().db,G()),h=pc(Os(),G()),k=c.i.pb().nb;if(O().Nc===k)var k=c.i,l=tv(),k=L(k,l,a.m).Jn;else k=H(z(),(new J).aa([c.i]));l=z();k=k.cg(l.s);b=t(new u,function(a,b,c,e,f,g){return function(h){if(null!==h){var k=h.pa();h=h.si();Di();var l=b.Da,Pa=zc();h=[L(l,Pa,a.m).ya,""+h];h=(new J).aa(h);l=Di().s;l=Ei(h,l);h=Y4a(c,l);Pa=x2(e);if(null!==Pa&&1<Pa.lb()){h=T4a(a,h,l,k,e,f);if(h.b())return w();h=h.c();p5a(a,h,k,g);return(new A).d(h)}if(null!==Pa&&1===Pa.lb()&&(l=B(a.m.Bk.g,
ed().Mc).Ib(t(new u,function(a,b){return function(a){return a.k===b.fa()}}(a,Pa))),x(l)&&(l=l.i,Kd(l)))){h=Z4a(a,c,h,k,l,f);if(x(h))return h=h.i,p5a(a,h,k,g),(new A).d(h);if(w()!==h)throw(new v).d(h);}return w()}throw(new v).d(h);}}(a,c,b,e,g,h));g=z();b=k.ka(b,g.s);a=(new J5a).Au(a);g=z();a=b.$b(a,g.s);o5a(f,e,a,c.i)}
function D5a(a,b,c,e,f){var g=pc(fc().db,G()),h=c.i,k=Pc(),h=L(h,k,a.m).Bb;b=t(new u,function(a,b,c,e,f){return function(g){Di();var h=b.Da,k=zc(),h=L(h,k,a.m).ya,k=g.Da,ua=zc(),h=[h,L(k,ua,a.m).ya],h=(new J).aa(h),k=Di().s,k=Ei(h,k),h=Y4a(c,k),ua=W4a(a,e,g);a:{if(x(ua)){var Ia=ua.i;if(null!==Ia){ua=Ia.pa();Ia=Ia.Ba();ua=f.Zb((new P).N(ua,Ia));break a}}ua=f}Ia=x2(e);a:if(null!==Ia&&1<Ia.lb())Ia=B(e.g,sf().cy).G,ua=x(Ia)?ua.Zb((new P).N(Ia.i,"")):ua,h=T4a(a,h,k,g.i,e,ua);else{if(null!==Ia&&1===Ia.lb()&&
(k=B(a.m.Bk.g,ed().Mc).Ib(t(new u,function(a,b){return function(a){return a.k===b.fa()}}(a,Ia))),x(k)&&(k=k.i,Kd(k)))){var Ia=g.i.pb().nb,Pa=O().yd;if(Ia!==Pa){h=Z4a(a,c,h,g.i,k,ua);break a}}h=w()}if(x(h))return(new A).d(t5a(a,h.i,e,g));if(w()===h)return w();throw(new v).d(h);}}(a,c,b,e,g));g=uv();b=h.ka(b,g.gc);a=(new K5a).Au(a);g=uv();o5a(f,e,b.$b(a,g.gc),c.i)}
v2.prototype.$classData=q({FSa:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceParser",{FSa:1,f:1,$r:1,Fb:1,pSa:1,OSa:1});function L5a(){this.m=this.U=this.W=this.DT=null}L5a.prototype=new r;L5a.prototype.constructor=L5a;d=L5a.prototype;d.L=function(){return"DialectInstanceReferencesParser"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Fma){var b=this.DT,c=a.DT;if((null===b?null===c:b.h(c))&&Yj(this.W,a.W))return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.DT;case 1:return this.W;case 2:return this.U;default:throw(new X).e(""+a);}};
function M5a(a,b,c){c=c.i;var e=Pc();L(c,e,a.m).Bb.X(t(new u,function(a,b){return function(c){var e=c.Da,l=zc(),e=L(e,l,a.m).ya;R();c=c.i;var l=a.m,p=qe();c=L(c,p,l);M();l=(new N).a();l=(new lN).P((new Q).a(),l);p=zd().gd;e=Eb(l,p,e);l=zd().uh;b.yR(Eb(e,l,c))}}(a,b)))}d.u=function(){return U(W(),this)};
function N5a(a,b,c,e){var f=H(xz(),G()),g=yc((new K).Y(a.W),"uses");if(!g.b()){var g=g.c(),h=Zb(Ke(M(),g.Da),n(Fd));h.b()?h=w():(h=h.c(),h=(new A).d(h.cc.Dd.Ne));h=(new V0).$d((h.b()?0:h.c())|0);b.ha().Wb(h);g=g.i;h=Pc();L(g,h,a.m).Bb.X(t(new u,function(a,b,c,e,f){return function(g){var h=g.Da,da=zc(),da=L(h,da,a.m).ya,sa=a.sca(g),h=a.jM(sa);if(!h.b())if(h=h.c(),sd(h))b.Om(sa),g=(new P).N(h.k,sa),a.uG(c,(new P).N(da,g)),e.Yt(da,h);else{var da=a.m,sa=of().hf,h="Expected vocabulary module but found: '"+
h+"'",ua=w();Cc(da,sa,f,ua,h,g.ga)}}}(a,f,b,c,e)))}a.U.X(t(new u,function(a,b,c){return function(a){if(null!==a&&(a=a.Od,Nqa(a))){var e=jd(a);b.Ja(e.b()?a.k:e.c())||c.Yt(a.k,a)}}}(a,f,c)))}
function m5a(a,b){var c=O5a(new P5a,pc(Os(),G()),a.m);N5a(a,a.DT,c,b);Q5a(a,c);a.U.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.Od,e=a.oo;a=a.Lc;cB(c)&&null!==e&&w()===a&&b.Yt(e.Bf,c)}}}(a,c)));a.m.r1&&a.U.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.Od,e=a.oo;a=a.Lc;$A(c)&&null!==e&&w()===a&&b.Yt(e.Bf,c)}}}(a,c)));return c}d.jM=function(a){a=this.U.Ib(t(new u,function(a,c){return function(a){return a.oo.Bf===c}}(this,a)));if(a.b())return w();a=a.c();return(new A).d(a.Od)};
d.uG=function(a,b){var c=Zb(a.ha(),n(nd));if(x(c)){var c=c.i,e=a.ha(),f=e.jf;Wg();for(var g=Yg(new Zg,(new $g).a()),f=f.Lb;!f.b();){var h=f.fa();!1!==!lz(h)&&ah(g,h);f=f.sa()}e.jf=g.gb;b=c.Xb.Ij(b);b=(new kz).Qj(b);return ac(a,b)}if(w()===c){b=[b];if(0===(b.length|0))b=Yd();else{c=Zd(new ee,Yd());e=0;for(g=b.length|0;e<g;)fe(c,b[e]),e=1+e|0;b=c.gb}b=(new kz).Qj(b);return ac(a,b)}throw(new v).d(c);};d.y=function(){return Y(this)};
function l5a(a,b,c,e){var f=new L5a;f.DT=a;f.W=b;f.U=c;f.m=e;return f}function Q5a(a,b){var c=yc((new K).Y(a.W),"external");c.b()||(c=c.c(),M5a(a,b,c));c=yc((new K).Y(a.W),"$external");c.b()||(c=c.c(),M5a(a,b,c))}d.M=function(){return Z(this)};
d.sca=function(a){var b=a.i.pb().nb;if(O().vq===b)return a=a.i,b=zc(),L(a,b,this.m).ya;if(O().ua===b)var b=a.i,c=Pc(),b=L(b,c,this.m),b=yc((new K).Y(b),"$include").qa();else b=!1;if(b)return a=a.i,b=Pc(),a=L(a,b,this.m),a=yc((new K).Y(a),"$include").c().i,b=qe(),L(a,b,this.m);R();a=a.i;b=this.m;c=qe();return L(a,c,b)};d.$classData=q({Fma:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceReferencesParser",{Fma:1,f:1,A:1,w:1,q:1,n:1});function P5a(){this.m=this.U=null}
P5a.prototype=new r;P5a.prototype.constructor=P5a;d=P5a.prototype;d.L=function(){return"ReferenceDeclarations"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Gma){var b=this.U;a=a.U;return null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Yt=function(a,b){this.U.Ih((new P).N(a,b));vd(b)&&MGa(this.m.ad,a,b);if(sd(b)){var c=M0a(this.m.ad,a);b.ak().X(t(new u,function(a,b,c){return function(e){if(xA(e)){var l=R5a(e);N0a(b,l,e);dc(a.m.Yh,c+"."+l,e)}else return b.j5(e)}}(this,c,a)))}else if(cB(b)){var c=this.m.ad,e=this.m.ad.Ti;b=XB(new YB,B(b.g,ZA().ob),jd(b));c.Ti=e.Zb((new P).N(a,b))}else throw(new v).d(b);};function O5a(a,b,c){a.U=b;a.m=c;return a}d.Mw=function(){return this.U.Rr().pg().xb(t(new u,function(){return function(a){return bt(a)}}(this))).ce()};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.yR=function(a){var b=this.U,c=B(a.g,zd().gd).G,c=c.b()?null:c.c();b.Ih((new P).N(c,a));var b=this.m.ad,c=this.m.ad.Gn,e=B(a.g,zd().gd).G,e=e.b()?null:e.c();b.Gn=c.Zb((new P).N(e,a))};d.$classData=q({Gma:0},!1,"amf.plugins.document.vocabularies.parser.instances.ReferenceDeclarations",{Gma:1,f:1,A:1,w:1,q:1,n:1});function S5a(){this.m=this.U=null}S5a.prototype=new r;S5a.prototype.constructor=S5a;d=S5a.prototype;d.L=function(){return"ReferenceDeclarations"};
d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Hma){var b=this.U;a=a.U;return null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Yt=function(a,b){this.U.Ih((new P).N(a,b));var c=this.m.ad.Jaa(a);if(vd(b))T5a(this.m,a,b),B(b.g,wd().Mc).X(t(new u,function(a,b){return function(a){if(tRa(a))IGa(b,a);else if(AA(a))KGa(b,a);else throw(new v).d(a);}}(this,c)));else throw(new v).d(b);};d.Mw=function(){return this.U.Rr().pg().xb(t(new u,function(){return function(a){return bt(a)}}(this))).ce()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.yR=function(a){var b=this.U,c=B(a.g,zd().gd).G,c=c.b()?null:c.c();b.Ih((new P).N(c,a));var b=this.m.ad,c=this.m.ad.Gn,e=B(a.g,zd().gd).G,e=e.b()?null:e.c();b.Gn=c.Zb((new P).N(e,a))};d.$classData=q({Hma:0},!1,"amf.plugins.document.vocabularies.parser.vocabularies.ReferenceDeclarations",{Hma:1,f:1,A:1,w:1,q:1,n:1});function U5a(){this.m=this.U=this.W=null}U5a.prototype=new r;U5a.prototype.constructor=U5a;d=U5a.prototype;d.L=function(){return"VocabulariesReferencesParser"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ima&&Yj(this.W,a.W)){var b=this.U;a=a.U;return null===b?null===a:b.h(a)}return!1};function V5a(a,b){var c=yc((new K).Y(a.W),"external");if(!c.b()){var c=c.c().i,e=Pc();L(c,e,a.m).Bb.X(t(new u,function(a,b){return function(c){var e=c.Da,l=zc(),e=L(e,l,a.m).ya;c=c.i;l=zc();c=L(c,l,a.m).ya;M();var l=(new N).a(),l=(new lN).P((new Q).a(),l),p=zd().gd,e=Eb(l,p,e),l=zd().uh;b.yR(Eb(e,l,c))}}(a,b)))}}
d.K=function(a){switch(a){case 0:return this.W;case 1:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function W5a(a,b,c){var e=yc((new K).Y(a.W),"uses");if(!e.b()){var e=e.c().i,f=Pc();L(e,f,a.m).Bb.X(t(new u,function(a,b,c){return function(e){var f=e.Da,y=zc(),f=L(f,y,a.m).ya,y=e.i,I=zc(),I=L(y,I,a.m).ya,y=a.jM(I);if(!y.b())if(y=y.c(),sd(y))e=(new P).N(y.k,I),b.Yt(f,a.uG(y,(new P).N(f,e)));else{var f=a.m,I=of().fha,y="Expected vocabulary module but found: "+y,E=w();Cc(f,I,c,E,y,e.ga)}}}(a,b,c)))}}function uGa(a,b,c){var e=new U5a;e.W=a;e.U=b;e.m=c;return e}
function vGa(a,b){var c=new S5a,e=pc(Os(),G()),f=a.m;c.U=e;c.m=f;W5a(a,c,b);V5a(a,c);return c}d.jM=function(a){a=this.U.Ib(t(new u,function(a,c){return function(a){return a.oo.Bf===c}}(this,a)));if(a.b())return w();a=a.c();return(new A).d(a.Od)};
d.uG=function(a,b){var c=Zb(a.ha(),n(nd));if(x(c)){var c=c.i,e=a.ha(),f=e.jf;Wg();for(var g=Yg(new Zg,(new $g).a()),f=f.Lb;!f.b();){var h=f.fa();!1!==!lz(h)&&ah(g,h);f=f.sa()}e.jf=g.gb;b=c.Xb.Ij(b);b=(new kz).Qj(b);return ac(a,b)}if(w()===c){b=[b];if(0===(b.length|0))b=Yd();else{c=Zd(new ee,Yd());e=0;for(g=b.length|0;e<g;)fe(c,b[e]),e=1+e|0;b=c.gb}b=(new kz).Qj(b);return ac(a,b)}throw(new v).d(c);};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Ima:0},!1,"amf.plugins.document.vocabularies.parser.vocabularies.VocabulariesReferencesParser",{Ima:1,f:1,A:1,w:1,q:1,n:1});function X5a(){var a=z(),b=[lfa(),mfa(),gfa(),efa(),hfa(),ifa(),kfa(),dfa(),jfa()];return H(a,(new J).aa(b))}function Y5a(a,b,c,e){var f=Bo().B9;a="Unsupported '"+e+"' on "+a.wh()+" plugin";e=jd(b);e=e.b()?b.k:e.c();var g=w(),h=w(),k=w();c.Hc(f.k,a,g,e,h,xc().tb,k);return b}function Z5a(a){a.l_(a.Pg().te());a.m_(!1)}
function $5a(){var a=z(),b=ufa(),c=kFa();a6a||(a6a=(new C2).a());return H(a,(new J).aa([b,c,a6a]))}
function b6a(){l1a||(l1a=(new n1).a());var a=(new P).N("parsed-json-schema",l1a);m1a||(m1a=(new p1).a());var b=(new P).N("parsed-raml-datatype",m1a);$_a||($_a=(new e0).a());var c=(new P).N("external-fragment-ref",$_a);g1a||(g1a=(new j1).a());var e=(new P).N("json-schema-id",g1a);Z_a||(Z_a=(new c0).a());var f=(new P).N("declared-element",Z_a);a0a||(a0a=(new i0).a());var g=(new P).N("inline-element",a0a);i1a||(i1a=(new k1).a());var h=(new P).N("local-link-path",i1a);e1a||(e1a=(new g1).a());var k=(new P).N("extension-provenance",
e1a);f1a||(f1a=(new h1).a());var l=(new P).N("form-body-parameter",f1a);k1a||(k1a=(new l1).a());var p=(new P).N("parameter-name-for-payload",k1a);o1a||(o1a=(new r1).a());var y=(new P).N("required-param-payload",o1a);X_a||(X_a=(new a0).a());a=[a,b,c,e,f,g,h,k,l,p,y,(new P).N("auto-generated-name",X_a)];b=Ry(new Sy,Xs());c=0;for(e=a.length|0;c<e;)Ty(b,a[c]),c=1+c|0;return b.gb}function D2(){d1.call(this);this.HDa=0;this.kHa=this.n6=null;this.Oxa=!1}D2.prototype=new S0a;D2.prototype.constructor=D2;
function c6a(){}d=c6a.prototype=D2.prototype;d.a=function(){d1.prototype.a.call(this);this.HDa=Hfa().xCa;this.n6="JSON + Refs";this.kHa=H(z(),(new J).aa([this.n6]));this.Oxa=!0;return this};d.bF=function(){return(new vN).a()};d.Gy=function(){return G()};
d.OA=function(a){var b=a.Gg;if(bd(b)){M();var c=(new N).a(),c=(new Bp).P((new Q).a(),c),c=Te(c,a.ga+"#/"),e=a.ue,f=Wl().Sd,c=Eb(c,f,e),e=Wl().Md,c=Eb(c,e,"application/json");c.Gg=(new A).d(b.Vd.Bd);b=a.U;e=t(new u,function(){return function(a){return a.Od}}(this));f=z();b=b.ka(e,f.s);M();var e=(new N).a(),e=(new zp).P((new Q).a(),e),f=a.ga,g=Ap().nc,e=Eb(e,g,f),e=Te(e,a.ga),f=Rl().ob,c=ff(e,f,c);a=a.ga;e=Ap().nc;a=Eb(c,e,a);b.Fa()&&(c=Nl().qc,Vg(a,c,b));return(new A).d(a)}return w()};
d.py=function(){return H(z(),(new J).aa(["application/json"]))};d.Nda=function(){return this.HDa};d.zF=function(){return this.kHa};d.dF=function(a){return a};d.wh=function(){return this.n6};d.Sp=function(){return G()};d.SB=function(a){return uka(kh(),a.ue)};d.cn=function(){return HB(ib(),this)};d.Xy=function(){return Xs()};d.LB=function(){return this.Oxa};d.$classData=q({Jma:0},!1,"amf.plugins.document.webapi.ExternalJsonRefsPlugin",{Jma:1,Kma:1,zz:1,f:1,wq:1,Fb:1});function E2(){d1.call(this)}
E2.prototype=new S0a;E2.prototype.constructor=E2;E2.prototype.a=function(){d1.prototype.a.call(this);return this};E2.prototype.$classData=q({qTa:0},!1,"amf.plugins.document.webapi.JsonSchemaPlugin$",{qTa:1,Kma:1,zz:1,f:1,wq:1,Fb:1});var d6a=void 0;function lFa(){d6a||(d6a=(new E2).a());return d6a}function WU(){this.jd=null}WU.prototype=new r;WU.prototype.constructor=WU;function F2(){}d=F2.prototype=WU.prototype;d.L=function(){return"RamlHeader"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.kv?this.jd===a.jd:!1};d.K=function(a){switch(a){case 0:return this.jd;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.e=function(a){this.jd=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function Qv(a){a="\\s*"+$v(ta(),a.jd," ","\\\\s*")+"\\s*";a=(new ph).e(a);var b=G();return(new qh).Di(a.ia,b)}
d.$classData=q({kv:0},!1,"amf.plugins.document.webapi.parser.RamlHeader",{kv:1,f:1,A:1,w:1,q:1,n:1});function Mv(){this.er=null}Mv.prototype=new r;Mv.prototype.constructor=Mv;d=Mv.prototype;d.a=function(){this.er=H(xz(),G());return this};d.L=function(){return"AbstractVariables"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Ana)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};
function e6a(a,b){var c=At().CN,c=Mt(c,b);b=new w2a;for(b.wV=c;b.Qa();)c=b.Sa(),a.er.Om(Uda(c,1))}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Ana:0},!1,"amf.plugins.document.webapi.parser.spec.common.AbstractVariables",{Ana:1,f:1,A:1,w:1,q:1,n:1});function kx(){this.m=this.sk=this.W=this.Se=null}kx.prototype=new r;kx.prototype.constructor=kx;d=kx.prototype;d.L=function(){return"AnnotationParser"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Bna){var b=this.Se,c=a.Se;if((null===b?null===c:b.h(c))&&Yj(this.W,a.W))return b=this.sk,a=a.sk,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Se;case 1:return this.W;case 2:return this.sk;default:throw(new X).e(""+a);}};function jx(a,b,c,e,f){a.Se=b;a.W=c;a.sk=e;a.m=f;return a}d.u=function(){return U(W(),this)};
function f6a(a,b){var c=yc((new K).Y(a.W),b);if(x(c)){var c=c.i,e=c.i.pb().nb,f=O().ua;if(e===f){var e=ZIa(),f=a.Se.k,c=c.i,g=Pc(),c=YIa(e,f,L(c,g,a.m),G(),a.m);c.X(t(new u,function(a,b){return function(a){a=Wa().Ia(B(a.g,bf().Zj));a.b()||a.c().ha().Wb((new F1).e(b))}}(a,b)));b=Wa().Ia(B(a.Se.ca(),Lc().Pm()));b=b.b()?G():b.c();c.Fa()&&(a=a.Se,e=z(),b=b.la(c,e.s),c=Lc().Pm(),qf(a,c,b))}}}
d.Pc=function(){var a=YIa(ZIa(),this.Se.k,this.W,this.sk,this.m),b=Wa().Ia(B(this.Se.ca(),Lc().Pm())),c=b.b()?G():b.c();if(a.Fa()){var b=this.Se,e=z(),a=c.la(a,e.s),c=Lc().Pm();qf(b,c,a)}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Bna:0},!1,"amf.plugins.document.webapi.parser.spec.common.AnnotationParser",{Bna:1,f:1,A:1,w:1,q:1,n:1});function Ov(){this.m=this.Dl=this.Rd=this.Wg=this.Ea=null}Ov.prototype=new r;Ov.prototype.constructor=Ov;d=Ov.prototype;
d.tda=function(a){xr();var b=Ke(M(),a),b=(new kA).P((new Q).a(),b),c=this.Dl.os("object"),e=lm().$,b=Eb(b,e,c),c=this.Rd;c.b()||(c=c.c(),M0(b,c,H(z(),G())));a=a.Bb;c=t(new u,function(a,b){return function(c){var e=c.Da,l=zc(),e=L(e,l,a.m).ya;e6a(a.Wg,e);l=c.i;c=Ke(M(),c);l=Zha(Nv(new Ov,l,a.Wg,(new A).d(b.k),a.Dl,a.m).Ir(),b.k);return mA(b,e,l,c)}}(this,b));e=uv();a.ka(c,e.gc);return b};d.L=function(){return"DataNodeParser"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Cna){if(Yj(this.Ea,a.Ea))var b=this.Wg,c=a.Wg,b=null===b?null===c:b.h(c);else b=!1;b?(b=this.Rd,c=a.Rd,b=null===b?null===c:b.h(c)):b=!1;return b?this.Dl===a.Dl:!1}return!1};d.K=function(a){switch(a){case 0:return this.Ea;case 1:return this.Wg;case 2:return this.Rd;case 3:return this.Dl;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ir=function(){var a=this.Ea.pb().nb;if(O().Nc===a){var a=this.Ea,b=Jc();return this.oda(L(a,b,this.m),this.Ea)}return O().ua===a?(a=this.Ea,b=Pc(),this.tda(L(a,b,this.m))):g6a(h6a(this.Wg,this.Rd,this.Dl,this.m),this.Ea)};
d.oda=function(a,b){or();b=Ke(M(),b);b=(new DL).P((new Q).a(),b);var c=this.Dl.os("array"),e=lm().$;b=Eb(b,e,c);c=this.Rd;c.b()||(c=c.c(),M0(b,c,H(z(),G())));var c=H(Wg(),G()),e=t(new u,function(a,b,c){return function(e){return vh(b,Zha(Nv(new Ov,e,a.Wg,(new A).d(c.k),a.Dl,a.m).Ir(),c.k))}}(this,c,b)),f=z();a.ka(e,f.s);DEa(b,c);return b};function Nv(a,b,c,e,f,g){a.Ea=b;a.Wg=c;a.Rd=e;a.Dl=f;a.m=g;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Cna:0},!1,"amf.plugins.document.webapi.parser.spec.common.DataNodeParser",{Cna:1,f:1,A:1,w:1,q:1,n:1});function JSa(){this.m=this.sk=this.zb=this.Rd=this.zi=null}JSa.prototype=new r;JSa.prototype.constructor=JSa;d=JSa.prototype;d.L=function(){return"ExtensionParser"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Dna&&this.zi===a.zi&&this.Rd===a.Rd&&this.zb===a.zb){var b=this.sk;a=a.sk;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.zi;case 1:return this.Rd;case 2:return this.zb;case 3:return this.sk;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function KSa(a,b){b=Wa().Ia(B(b.g,Zl().OF));if(x(b)){var c=b.i;if(c.Fa()&&Tc(a.sk)){b=t(new u,function(){return function(a){a=a.G;return a.b()?null:a.c()}}(a));var e=z();if(c.ka(b,e.s).Mo(a.sk).b()){b=Jw().lX.Ta(a.sk.fa());var e=t(new u,function(){return function(a){var b=Jw().lX;a=a.G;return b.Ta(a.b()?null:a.c()).wa()}}(a)),f=z(),g=c.md(e,f.s),c=a.m,e=rh().v6,f=a.Rd;b="Annotation "+a.zi+" not allowed in target "+(b.b()?"":b.c())+", allowed targets: "+g.ng(", ");a=a.zb;g=w();Cc(c,e,f,g,b,a.ga)}}}}
d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Dna:0},!1,"amf.plugins.document.webapi.parser.spec.common.ExtensionParser",{Dna:1,f:1,A:1,w:1,q:1,n:1});function i6a(){this.Gc=this.eCa=this.fc=this.o=this.Bi=this.Ff=null}i6a.prototype=new r;i6a.prototype.constructor=i6a;d=i6a.prototype;d.L=function(){return"JsonSchemaEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ena){var b=this.Ff,c=a.Ff;(null===b?null===c:b.h(c))?(b=this.Bi,c=a.Bi,b=null===b?null===c:b.h(c)):b=!1;return b&&this.o===a.o?this.fc===a.fc:!1}return!1};d.K=function(a){switch(a){case 0:return this.Ff;case 1:return this.Bi;case 2:return this.o;case 3:return this.fc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function Z0a(a,b,c,e){var f=new i6a;f.Ff=a;f.Bi=b;f.o=c;f.fc=e;a=new $U;if(null===f)throw Lb(Mb(),null);a.l=f;f.eCa=a;a=z();OSa||(OSa=(new aV).a());a=H(a,(new J).aa([OSa,f.eCa]));b=f.o;c=f.Bi;e=gC();var g=H(z(),G());b=b.Cb((new z1).xA(c,e,g,(new fQ).uU(f.fc.T9,f.fc)).Gc);c=z();f.Gc=a.la(b,c.s);return f}
d.XB=function(){var a=Ly(),b=(new My).e(a.Dh),c=(new ph).e(a.xh);Tc(c)&&Ny(b,a.xh);var c=b.r,e=b.da,f=(new pq).e(e);iq(Cq(),this.Gc,f);T(c,lq(R(),rq(sq(),f.r,e),O().ua));return(new Oy).mc(Py(vq(),a.Dh),b.r)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Ena:0},!1,"amf.plugins.document.webapi.parser.spec.common.JsonSchemaEmitter",{Ena:1,f:1,A:1,w:1,q:1,n:1});function sU(){this.jc=this.o=this.xl=null}sU.prototype=new r;sU.prototype.constructor=sU;d=sU.prototype;d.L=function(){return"PayloadEmitter"};
d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Gna?this.xl===a.xl?this.o===a.o:!1:!1};d.K=function(a){switch(a){case 0:return this.xl;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function YRa(a,b,c,e){a.xl=b;a.o=c;a.jc=e;return a}d.XB=function(){var a=Tw(new Uw,this.xl,this.o,!1,pc(Os(),G()),this.jc),b=Ly(),c=(new My).e(b.Dh),e=(new ph).e(b.xh);Tc(e)&&Ny(c,b.xh);a.Ob(c);return(new Oy).mc(Py(vq(),b.Dh),c.r)};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Gna:0},!1,"amf.plugins.document.webapi.parser.spec.common.PayloadEmitter",{Gna:1,f:1,A:1,w:1,q:1,n:1});function j6a(){this.m=this.Dl=this.Rd=this.Wg=null}j6a.prototype=new r;j6a.prototype.constructor=j6a;d=j6a.prototype;d.L=function(){return"ScalarNodeParser"};
function k6a(a,b,c){c=DKa(gwa(iwa(),b,c.ga.Of,a.m)).PA(!0).Ib(t(new u,function(){return function(a){return Ir(a)}}(a)));if(x(c)&&(c=c.i,Ir(c)))return Nv(new Ov,c,a.Wg,a.Rd,a.Dl,a.m).Ir();Dr();c=(new A).d(qi().Mj);b=Ar(0,b,c,(M(),(new N).a()));a=a.Rd;a=(a.b()?"":a.c())+"/included";return Te(b,a)}d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ina){var b=this.Wg,c=a.Wg;(null===b?null===c:b.h(c))?(b=this.Rd,c=a.Rd,b=null===b?null===c:b.h(c)):b=!1;return b?this.Dl===a.Dl:!1}return!1};d.K=function(a){switch(a){case 0:return this.Wg;case 1:return this.Rd;case 2:return this.Dl;default:throw(new X).e(""+a);}};
d.po=function(a,b){b=(new A).d(Vca(qi(),b));b=Ar(Dr(),a.ya,b,Ke(M(),a));var c=this.Dl.os("scalar"),e=lm().$;b=Eb(b,e,c);c=this.Rd;c.b()||(c=c.c(),M0(b,c,H(z(),G())));e6a(this.Wg,a.ya);return b};
function g6a(a,b){var c=b.pb().nb;if(O().Wa===c)return c=zc(),a.po(L(b,c,a.m),"string");if(O().Oi===c)return c=zc(),a.po(L(b,c,a.m),"integer");if(O().rg===c)return c=zc(),a.po(L(b,c,a.m),"double");if(O().ui===c)return c=zc(),a.po(L(b,c,a.m),"boolean");if(O().yd===c)return b=Hc(Ic(b),zc()),a.po(b.b()?mq(nq(),"null"):b.c(),"nil");if(O().fy===c)if(c=IL(gE(),b.u()).Mk(),x(c)){c=c.i;try{yua(zua(),c);if(c.Ex.b()){var e=zc();return a.po(L(b,e,a.m),"date")}if(c.Mx.b()){var f=zc();return a.po(L(b,f,a.m),"dateTimeOnly")}var g=
zc();return a.po(L(b,g,a.m),"dateTime")}catch(k){c=gi(Mb(),k);if(hi(c))return c=zc(),a.po(L(b,c,a.m),"string");throw k;}}else{if(w()===c)return c=zc(),a.po(L(b,c,a.m),"string");throw(new v).d(c);}else{e=b.pb().nb;f=O().vq;if(e===f)return l6a(a,b);e=a.po(mq(nq(),c.Ct.ya),"string");a=a.m;var f=Bc().FS,g=e.k,h=w();Cc(a,f,g,h,"Cannot parse scalar node from AST structure '"+c+"'",b.ga);return e}}d.u=function(){return U(W(),this)};
function h6a(a,b,c,e){var f=new j6a;f.Wg=a;f.Rd=b;f.Dl=c;f.m=e;return f}
function l6a(a,b){var c=b.we();if(rs(c)){var e=!1,f=null,g=a.m.yf.Ib(t(new u,function(a,b){return function(a){return a.oo.Bf===b.ya}}(a,c)));if(x(g)&&(e=!0,f=g,g=f.i,Ul(g.Od)))return c=B(Xp(g.Od.g,Rl().ob).g,Wl().Sd).G,c=c.b()?null:c.c(),k6a(a,c,b);if(e&&(b=f.i,au(b.Od)))return pEa(m6a(a,c.ya),b.Od.ze());b=a.m.yl().Ti.Ta(c.ya);b.b()?b=w():(b=b.c(),b=(new A).d(b.Vw));return x(b)?(b=b.i,pEa(m6a(a,c.ya),b)):m6a(a,c.ya)}return m6a(a,b.we().u())}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function m6a(a,b){if(-1!==(b.indexOf(":")|0))return a=bia(cia(),b,b,(M(),(new N).a())),b=Gia((new Cf).e(b)),Te(a,b);a=a.Rd;a=a.b()?"#":a.c();a=kd(ta(),a,"#",0);var c=Wj((new md).vc(a));if(re(ta(),c,"/"))a=c;else{if(-1!==(c.indexOf("://")|0)){a=kd(ta(),c,"://",0);a=Wj((new md).vc(a));var c=kd(ta(),c,"://",0),c=ld((new md).vc(c)),e=kd(ta(),c,"/",0),c=-1+e.j.length|0,c=0<c?c:0,f=e.j.length,c=c<f?c:f,f=0<c?c:0,c=Ht(It(),Jt(ka(e)),f);0<f&&Kt(ye(),e,0,c,0,f);e=(new lk).a();f=!0;nk(e,"");for(var g=0,h=c.j.length;g<
h;){var k=c.j[g];f?(ok(e,k),f=!1):(nk(e,"/"),ok(e,k));g=1+g|0}nk(e,"");a=a+"://"+e.Be.Ue}else{c=kd(ta(),c,"/",0);a=-1+c.j.length|0;a=0<a?a:0;e=c.j.length;a=a<e?a:e;e=0<a?a:0;a=Ht(It(),Jt(ka(c)),e);0<e&&Kt(ye(),c,0,a,0,e);c=(new lk).a();e=!0;nk(c,"");f=0;for(g=a.j.length;f<g;)h=a.j[f],e?(ok(c,h),e=!1):(nk(c,"/"),ok(c,h)),f=1+f|0;nk(c,"");a=c.Be.Ue}a+="/"}0<=(b.length|0)&&"/"===b.substring(0,1)?(c=(new ph).e(b),e=c.ia.length|0,c=Lh(Mh(),c.ia,1,e)):c=b;c=""+a+c;if(-1!==(c.indexOf("://")|0)){a=kd(ta(),
c,"://",0);a=Wj((new md).vc(a));c=kd(ta(),c,"://",0);c=ld((new md).vc(c));c=kd(ta(),c,"/",0);g=(new $g).a();e=0;for(f=c.j.length;e<f;){h=c.j[e];if("."!==h)if(".."===h){k=g;g=k.Ed();XOa(g,k,-1);h=k.kb().mE(1);for(k=k.kb();h.Qa();)g.Ic(k.Sa()),h.Sa();g=g.lc()}else vh(g,h);e=1+e|0}a=a+"://"+IG(g.Lb,"","/","")}else a=c;b=bia(cia(),b,a,(M(),(new N).a()));return Te(b,a)}d.$classData=q({Ina:0},!1,"amf.plugins.document.webapi.parser.spec.common.ScalarNodeParser",{Ina:1,f:1,A:1,w:1,q:1,n:1});
function G2(){this.BP=this.mQ=this.m=this.W=this.ra=null}G2.prototype=new r;G2.prototype.constructor=G2;d=G2.prototype;d.L=function(){return"ShapeExtensionParser"};d.H=function(){return 5};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Jna){var b=this.ra,c=a.ra;(null===b?null===c:b.h(c))&&Yj(this.W,a.W)?(b=this.m,c=a.m,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.mQ,c=a.mQ,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.BP,a=a.BP,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.W;case 2:return this.m;case 3:return this.mQ;case 4:return this.BP;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function n6a(a,b){b=a.m.Km.dh.Ta(b);if(!b.b()){b=b.c();var c=B(a.ra.ca(),$w()),e=t(new u,function(){return function(a){return B(a.ea,Pg().$).G.wa()}}(a)),f=z(),c=c.md(e,f.s),e=jA(a.ra,!0,H(xz(),G())).tu(fc().ci),f=t(new u,function(){return function(a){return a.pa()}}(a)),g=z(),e=e.ka(f,g.s);c.pg().p1(b).X(t(new u,function(a){return function(b){var c=a.m,e=rh().Gxa,f=a.ra.k;b="Custom defined facet '"+b+"' matches built-in type facets";var g=a.W,E=w();Cc(c,e,f,E,b,g.ga)}}(a)));c.Mo(e).X(t(new u,function(a){return function(b){var c=
a.m,e=rh().Fxa,f=a.ra.k;b="Custom defined facet '"+b+"' matches custom facet from inherited type";var g=a.W,E=w();Cc(c,e,f,E,b,g.ga)}}(a)))}}
d.Pc=function(){var a=jA(this.ra,!0,H(xz(),G())),b=t(new u,function(){return function(a){return(new dd).Qd(a)}}(this)),c=z(),a=a.md(b,c.s).Ri(),b=o6a(this.ra),c=t(new u,function(){return function(a){return B(a.ca(),$w())}}(this)),e=z(),b=b.md(c,e.s);a.X(t(new u,function(a,b){return function(c){var e=a.m.Pg();if(zja(e))e=B(c.ea,Pg().$).G,e=e.b()?null:e.c();else if(sja(e))e=B(c.ea,Pg().$).G,e="facet-"+(e.b()?null:e.c()),e=Hv((new Cf).e(e));else{var e=a.m,l=rh().v9,p=a.ra.k,y="Cannot parse shape extension for vendor "+
a.m.Pg(),I=a.W,E=w();Cc(e,l,p,E,y,I.ga);e=B(c.ea,Pg().$).G;e=e.b()?null:e.c()}l=yc((new K).Y(a.W),e);if(x(l))return l=l.i,p=l.i,e=(new A).d(a.ra.k+"/extension/"+e),y=(new Mv).a(),I=(new Ie).a(),e=Nv(new Ov,p,y,e,I,a.m).Ir(),DPa||(DPa=(new fT).a()),l=Ke(M(),l),l=(new m2).P((new Q).a(),l),p=Is().Rf,c=ff(l,p,c),l=Is().Zj,c=ff(c,l,e),e=a.ra,l=lA(),nh(e,l,c);w()===l&&b.Ja(c)&&(c=B(c.ea,rj().Uh).G,c.b()?0:0<(c.c()|0))&&(c=a.m,l=rh().K8,p=a.ra.k,e="Missing required facet '"+e+"'",y=a.W,I=w(),Cc(c,l,p,I,
e,y.ga))}}(this,b)));if(!B(this.ra.ca(),Pg().ld).Cd(t(new u,function(){return function(a){return a.$h}}(this)))){b=this.BP;c=x(b)&&"anyShape"===b.i?!0:x(b)&&"shape"===b.i?!0:!1;if(c)b=this.ra.Vv();else if(x(b))b=b.i;else{if(w()!==b)throw(new v).d(b);b=this.ra.Vv()}c=t(new u,function(){return function(a){return B(a.ea,Pg().$).G.wa()}}(this));e=z();a=a.md(c,e.s);a=rq(sq(),this.W.Bb.xb(t(new u,function(a,b){return function(a){return!b.Ja(a.Da.we().u())}}(this,a))),"");p6a(this.m,this.ra,a,b,this.mQ);
n6a(this,b)}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Jna:0},!1,"amf.plugins.document.webapi.parser.spec.common.ShapeExtensionParser",{Jna:1,f:1,A:1,w:1,q:1,n:1});function cV(){this.m=this.AG=this.oa=this.Rd=this.ni=null}cV.prototype=new r;cV.prototype.constructor=cV;d=cV.prototype;d.L=function(){return"AbstractDeclarationParser"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Mna){var b=this.ni,c=a.ni;return(null===b?null===c:b.h(c))&&this.Rd===a.Rd&&this.oa===a.oa?Yj(this.AG,a.AG):!1}return!1};d.K=function(a){switch(a){case 0:return this.ni;case 1:return this.Rd;case 2:return this.oa;case 3:return this.AG;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function QSa(a,b,c,e,f,g){a.ni=b;a.Rd=c;a.oa=e;a.AG=f;a.m=g;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function q6a(a,b,c,e){if(Mn(b))b=EIa(a.m.yl(),e,c,Or());else{if(!On(b))throw(new v).d(b);b=MIa(a.m.yl(),e,c,Or())}e=Ke(M(),e);c=gL(b,c,e);c.Uc(b.k);a=a.oa;M();b=(new N).a();return Ue(c,a,b)}
function H2(a){var b=a.AG.pb().nb,c=O().yd;if(b===c){var b=a.m,c=rh().fZ,e=a.Rd,f=a.AG,g=w();iL(b,c,e,g,"Generating abstract declaration (resource type / trait)  with null value",f.ga)}b=a.m.Oo(a.AG);if(Ep(b))return b=q6a(a,a.ni,b.i,a.AG),a=a.Rd,H(z(),G()),cj(b,a);if(Hp(b)){e=b.i;b=(new Mv).a();c=-1!==(a.Rd.indexOf("#")|0)?a.Rd+"/"+a.oa:a.Rd+"#/"+a.oa;f=e.pb().nb;if(O().ua===f){f=Pc();f=L(e,f,a.m);f=yc((new K).Y(f),"usage");if(!f.b()){var h=f.c(),f=a.ni,g=VN().fb,k=h.i,l=qe(),h=Nh(new Oh,L(k,l,a.m),
Ke(M(),h));ff(f,g,h)}f=Pc();e=L(e,f,a.m).Bb.xb(t(new u,function(a){return function(b){b=b.Da;var c=zc();return"usage"!==L(b,c,a.m).ya}}(a)));R();sq();f=e.pc();f.b()?f=w():(f=f.c(),f=(new A).d(f.ga.Of));e=rq(0,e,f.b()?"":f.c());R();e=lq(R(),e,O().ua)}c=Nv(new Ov,e,b,(new A).d(c),(new Ie).a(),a.m).Ir();e=a.ni;f=a.oa;M();g=(new N).a();e=Ue(e,f,g);f=a.Rd;H(z(),G());e=cj(e,f);f=VN().tD;ff(e,f,c);Tc(b.er)&&(b=yM(b.er),c=a.ni,e=VN().lj,dr(c,e,b));return a.ni}throw(new v).d(b);}
d.$classData=q({Mna:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.AbstractDeclarationParser",{Mna:1,f:1,A:1,w:1,q:1,n:1});function I2(){this.m=this.fO=this.W=this.Nb=this.oa=null}I2.prototype=new r;I2.prototype.constructor=I2;d=I2.prototype;d.L=function(){return"AbstractDeclarationsParser"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ona){if(this.oa===a.oa)var b=this.Nb,c=a.Nb,b=null===b?null===c:b.h(c);else b=!1;return b&&Yj(this.W,a.W)?this.fO===a.fO:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Nb;case 2:return this.W;case 3:return this.fO;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Pc=function(){var a=yc((new K).Y(this.W),this.oa);if(!a.b()){var b=a.c(),c=b.i.pb().nb;if(O().ua===c){var a=b.i,e=Pc(),a=L(a,e,this.m).Bb,e=t(new u,function(a){return function(b){return Ai(a.m.yl(),H2(PSa(SSa(),a.Nb.R(b),a.fO,b,a.m)))}}(this)),f=uv();a.ka(e,f.gc)}else if(O().yd!==c){var a=this.m,e=rh().WR,f=this.fO,c="Invalid type "+c+" for '"+this.oa+"' node.",b=b.i,g=w();Cc(a,e,f,g,c,b.ga)}}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function J2(a,b,c,e,f,g){a.oa=b;a.Nb=c;a.W=e;a.fO=f;a.m=g;return a}d.$classData=q({Ona:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.AbstractDeclarationsParser",{Ona:1,f:1,A:1,w:1,q:1,n:1});function r6a(){this.Q=this.o=this.Se=null}r6a.prototype=new r;r6a.prototype.constructor=r6a;d=r6a.prototype;d.L=function(){return"AnnotationsEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Rna){var b=this.Se,c=a.Se;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Se;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=B(this.Se.ca(),Lc().Pm()).xb(t(new u,function(){return function(a){return!Yh(B(a.g,bf().Zj).ha(),n(K2))}}(this))),b=t(new u,function(a){return function(b){return a.Q.of.QS().zf(b,a.o)}}(this)),c=z();return a.ka(b,c.s)};function Mw(a,b,c){var e=new r6a;e.Se=a;e.o=b;e.Q=c;return e}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Rna:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.AnnotationsEmitter",{Rna:1,f:1,A:1,w:1,q:1,n:1});
function s6a(){this.o=this.xc=null;this.zP=!1;this.jc=null}s6a.prototype=new r;s6a.prototype.constructor=s6a;d=s6a.prototype;d.L=function(){return"ExtendsEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Xna){var b=this.xc,c=a.xc;return(null===b?null===c:b.h(c))&&this.o===a.o?this.zP===a.zP:!1}return!1};d.K=function(a){switch(a){case 0:return this.xc;case 1:return this.o;case 2:return this.zP;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.Ua=function(){var a=H(Wg(),G()),b=this.xc.t.t.Tb,c=(new t6a).oba(this),e=z(),b=b.$b(c,e.s);if(b.Fa()){var c=new u6a,e=v6a(this,"type"),f=this.o,g=this.jc;c.oa=e;c.MP=b;c.o=f;c.jc=g;vh(a,c)}b=this.xc.t.t.Tb;c=(new w6a).oba(this);e=z();b.$b(c,e.s).Fa()&&(b=new x6a,c=v6a(this,"is"),e=this.xc,f=this.o,g=this.jc,b.oa=c,b.Ca=e,b.o=f,b.jc=g,vh(a,b));return a};function v6a(a,b){return a.zP?Hv((new Cf).e(b)):b}
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.xc)),a=zI().Ga(a,yI(zI(),this.o)),a=zI().Ga(a,this.zP?1231:1237);return zI().Wd(a,3)};function TTa(a,b,c,e){var f=new s6a;f.xc=a;f.o=b;f.zP=c;f.jc=e;return f}d.M=function(){return Z(this)};d.$classData=q({Xna:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.ExtendsEmitter",{Xna:1,f:1,A:1,w:1,q:1,n:1});function y6a(){this.Q=this.o=this.Se=null}y6a.prototype=new r;y6a.prototype.constructor=y6a;d=y6a.prototype;d.L=function(){return"FacetsEmitter"};
d.H=function(){return 2};function cna(a,b,c){var e=new y6a;e.Se=a;e.o=b;e.Q=c;return e}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Yna){var b=this.Se,c=a.Se;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Se;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=B(this.Se.ca(),lA()),b=t(new u,function(a){return function(b){return a.Q.of.uaa().zf(b,a.o)}}(this)),c=z();return a.ka(b,c.s)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Yna:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.FacetsEmitter",{Yna:1,f:1,A:1,w:1,q:1,n:1});function aTa(){this.rh=null}aTa.prototype=new r;aTa.prototype.constructor=aTa;d=aTa.prototype;d.L=function(){return"LibraryLocationParser"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.aoa?this.rh===a.rh:!1};d.K=function(a){switch(a){case 0:return this.rh;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({aoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.LibraryLocationParser",{aoa:1,f:1,A:1,w:1,q:1,n:1});function z6a(){this.m=this.bg=this.zb=null}z6a.prototype=new r;z6a.prototype.constructor=z6a;d=z6a.prototype;
d.L=function(){return"NodeDependencyParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.boa&&this.zb===a.zb){var b=this.bg;a=a.bg;return null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.zb;case 1:return this.bg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.wc=function(){var a=this.bg,b=this.zb.Da,c=zc(),a=a.Ta(L(b,c,this.m).ya);if(a.b())return w();a=a.c();lVa||(lVa=(new NW).a());var b=this.zb,b=Ke(M(),b),b=(new L2).P((new Q).a(),b),c=jo().uJ,a=Nh(new Oh,a.k,(new N).a()),e=Ke(M(),this.zb.Da),a=Fh(b,c,a,e),b=jo().vJ,c=gr(new hr,A6a(this),(new N).a()),e=Ke(M(),this.zb.i);return(new A).d(Fh(a,b,c,e))};
function A6a(a){var b=Iw(Bma().w_(a.zb.i,a.m).b3());a=t(new u,function(a){return function(b){var c=a.bg.Ta(ja(b.t));c.b()?b=w():(c=c.c(),b=(new A).d(Nh(new Oh,c.k,b.E)));return b.wa()}}(a));var c=z();return b.md(a,c.s)}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({boa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.NodeDependencyParser",{boa:1,f:1,A:1,w:1,q:1,n:1});function B6a(){this.Q=this.o=this.Yg=null}B6a.prototype=new r;B6a.prototype.constructor=B6a;
d=B6a.prototype;d.L=function(){return"Oas3OAuth2SettingsEmitters"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.hoa){var b=this.Yg,c=a.Yg;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Yg;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){var a=H(Wg(),G());vh(a,(new C6a).LU(this.Yg,this.o,this.Q));Er(a,Mw(this.Yg,this.o,this.Q).Ua());return a};
d.LU=function(a,b,c){this.Yg=a;this.o=b;this.Q=c;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({hoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Oas3OAuth2SettingsEmitters",{hoa:1,f:1,A:1,w:1,q:1,n:1});function D6a(){this.Q=this.o=this.Jw=null}D6a.prototype=new r;D6a.prototype.constructor=D6a;d=D6a.prototype;d.L=function(){return"OasApiKeySettingsEmitters"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.moa){var b=this.Jw,c=a.Jw;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Jw;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=Er(H(Wg(),G()),E6a(this.Jw,this.o).Ua()),b=H(Wg(),G()),c=Dd(this.Jw.g,Hn().nz);c.b()||(c=c.c(),Er(b,Tw(new Uw,c.t.t,this.o,!1,pc(Os(),G()),this.Q.Si()).Ua()));b.Fa()&&vh(a,F6a(b,this.Jw,this.o));return a};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({moa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasApiKeySettingsEmitters",{moa:1,f:1,A:1,w:1,q:1,n:1});function M2(){this.Q=this.o=this.bk=null}M2.prototype=new r;
M2.prototype.constructor=M2;d=M2.prototype;d.Z0=function(a,b,c){this.bk=a;this.o=b;this.Q=c;return this};d.L=function(){return"OasCreativeWorkItemsEmitter"};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.poa?this.bk===a.bk?this.o===a.o:!1:!1};d.K=function(a){switch(a){case 0:return this.bk;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=this.bk.g,b=H(Wg(),G()),c=Dd(a,Gi().Jf);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,"url",c,w()))));c=Dd(a,Gi().fb);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,"description",c,w()))));a=Dd(a,Gi().fu);a.b()||(a=a.c(),(new A).d(vh(b,Ih(new Jh,Hv((new Cf).e("title")),a,w()))));Er(b,Mw(this.bk,this.o,this.Q).Ua());return this.o.Cb(b)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({poa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasCreativeWorkItemsEmitter",{poa:1,f:1,A:1,w:1,q:1,n:1});function G6a(){this.Q=this.o=this.Yg=null}G6a.prototype=new r;G6a.prototype.constructor=G6a;d=G6a.prototype;d.L=function(){return"OasHttpSettingsEmitters"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.xoa){var b=this.Yg,c=a.Yg;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.Yg;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){var a=this.Yg.ca(),b=H(Wg(),G()),c=Dd(a,N2().Eq);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,"scheme",c,w()))));a=Dd(a,N2().OM);a.b()||(a=a.c(),(new A).d(vh(b,Ih(new Jh,"bearerFormat",a,w()))));return Er(b,Mw(this.Yg,this.o,this.Q).Ua())};d.OU=function(a,b,c){this.Yg=a;this.o=b;this.Q=c;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({xoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasHttpSettingsEmitters",{xoa:1,f:1,A:1,w:1,q:1,n:1});function H6a(){this.Q=this.o=this.rx=null}H6a.prototype=new r;H6a.prototype.constructor=H6a;d=H6a.prototype;d.L=function(){return"OasOAuth1SettingsEmitters"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Eoa){var b=this.rx,c=a.rx;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.rx;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){var a=Er(H(Wg(),G()),(new O2).b1(this.rx,this.o,this.Q).Ua()),b=Dd(this.rx.g,Hn().nz);b.b()||(b=b.c(),Er(a,Tw(new Uw,b.t.t,this.o,!1,pc(Os(),G()),this.Q.Si()).Ua()));return H(z(),(new J).aa([F6a(a,this.rx,this.o)]))};d.b1=function(a,b,c){this.rx=a;this.o=b;this.Q=c;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Eoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasOAuth1SettingsEmitters",{Eoa:1,f:1,A:1,w:1,q:1,n:1});function I6a(){this.Q=this.o=this.Yg=null}I6a.prototype=new r;I6a.prototype.constructor=I6a;d=I6a.prototype;d.L=function(){return"OasOAuth2SettingsEmitters"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Goa){var b=this.Yg,c=a.Yg;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.Yg;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=this.Yg.ca(),b=H(Wg(),G()),c=Dd(a,QP().rm);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,"authorizationUrl",c,w()))));c=Dd(a,QP().sq);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,"tokenUrl",c,w()))));c=Dd(a,QP().Wx);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,"flow",c,w()))));var c=B(this.Yg.ca(),Lc().Pm()).xb(t(new u,function(){return function(a){return Yh(B(a.g,bf().Zj).ha(),n(K2))}}(this))),e=Dd(a,QP().sr);e.b()||(e=e.c(),vh(b,(new P2).Qq("scopes",e,this.o,c,this.Q)));c=H(Wg(),G());a=
Dd(a,QP().pz);a.b()||(a=a.c(),(new A).d(vh(c,Kw(new Lw,"authorizationGrants",a,this.o,!1))));a=Dd(this.Yg.ca(),Hn().nz);a.b()||(a=a.c(),Er(c,Tw(new Uw,a.t.t,this.o,!1,pc(Os(),G()),this.Q.Si()).Ua()));c.Fa()&&vh(b,F6a(c,this.Yg,this.o));Er(b,Mw(this.Yg,this.o,this.Q).Ua());return b};d.OU=function(a,b,c){this.Yg=a;this.o=b;this.Q=c;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Goa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasOAuth2SettingsEmitters",{Goa:1,f:1,A:1,w:1,q:1,n:1});function J6a(){this.Q=this.o=this.Yg=null}J6a.prototype=new r;J6a.prototype.constructor=J6a;d=J6a.prototype;d.L=function(){return"OasOpenIdConnectSettingsEmitters"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Hoa){var b=this.Yg,c=a.Yg;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.Yg;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){var a=this.Yg.ca(),b=H(Wg(),G()),a=Dd(a,K6a().Jf);a.b()||(a=a.c(),(new A).d(vh(b,Ih(new Jh,"openIdConnectUrl",a,w()))));return Er(b,Mw(this.Yg,this.o,this.Q).Ua())};d.OU=function(a,b,c){this.Yg=a;this.o=b;this.Q=c;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Hoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasOpenIdConnectSettingsEmitters",{Hoa:1,f:1,A:1,w:1,q:1,n:1});function L6a(){this.Q=this.o=this.ra=null}L6a.prototype=new r;L6a.prototype.constructor=L6a;d=L6a.prototype;d.L=function(){return"OasSchemaShapeEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Qoa){var b=this.ra,c=a.ra;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){var a=H(Wg(),G()),b=this.ra.ea;vh(a,qla("object",this.ra));var c=Dd(b,fo().Md);c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,Hv((new Cf).e("mediaType")),c,w()))));b=Dd(b,fo().Sd);b.b()||(b=b.c(),(new A).d(vh(a,Ih(new Jh,Hv((new Cf).e("schema")),b,w()))));Er(a,Mw(this.ra,this.o,this.Q).Ua());Er(a,cna(this.ra,this.o,this.Q).Ua());return a};
function M6a(a,b,c){var e=new L6a;e.ra=a;e.o=b;e.Q=c;return e}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Qoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasSchemaShapeEmitter",{Qoa:1,f:1,A:1,w:1,q:1,n:1});function N6a(){this.Ca=null}N6a.prototype=new r;N6a.prototype.constructor=N6a;d=N6a.prototype;d.L=function(){return"OasScopeValuesEmitters"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Roa){var b=this.Ca;a=a.Ca;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ca;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){var a=this.Ca.t.t.Tb,b;b=new O6a;var c=z();return a.$b(b,c.s)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Roa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasScopeValuesEmitters",{Roa:1,f:1,A:1,w:1,q:1,n:1});function Q2(){this.Q=this.o=this.DA=this.Gf=null}Q2.prototype=new r;Q2.prototype.constructor=Q2;d=Q2.prototype;d.L=function(){return"OasSecuritySchemeEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Soa){var b=this.Gf,c=a.Gf;(null===b?null===c:b.h(c))?(b=this.DA,c=a.DA,b=null===b?null===c:b.h(c)):b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Gf;case 1:return this.DA;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=H(Wg(),G()),b=this.Gf.g,c=Dd(b,vi().Nj);if(!c.b()){var e=c.c(),c=this.DA.jd,e=jq(Cq(),e.t.E,n(Fd)),f=O().Wa;(new A).d(vh(a,Bv(new Cv,"type",c,f,e)))}c=Dd(b,vi().gd);c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,Hv((new Cf).e("displayName")),c,w()))));c=Dd(b,vi().fb);c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,"description",c,w()))));var c=Hv((new Cf).e("describedBy")),e=this.Gf,f=this.o,g=G(),h=this.Q;vh(a,(new R2).QU(c,e,f,g,(new OU).Ci(h.Si(),h.Sy,(new ob).a())));b=Dd(b,vi().li);b.b()||
(b=b.c(),(new A).d(Er(a,(new P6a).XG(b,this.o,this.Q).Ua())));return this.o.Cb(a)};d.NU=function(a,b,c,e){this.Gf=a;this.DA=b;this.o=c;this.Q=e;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Soa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasSecuritySchemeEmitter",{Soa:1,f:1,A:1,w:1,q:1,n:1});function P6a(){this.Q=this.o=this.Ca=null}P6a.prototype=new r;P6a.prototype.constructor=P6a;d=P6a.prototype;d.L=function(){return"OasSecuritySettingsEmitter"};
d.XG=function(a,b,c){this.Ca=a;this.o=b;this.Q=c;return this};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Voa){var b=this.Ca,c=a.Ca;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=this.Ca.t.t,b=!1,c=null;if(I_a(a))return(new H6a).b1(a,this.o,this.Q).Ua();if(OP(a)){var b=!0,c=a,e=this.Q.Pg(),f=Sp().bs;if(e===f)return(new B6a).LU(c,this.o,this.Q).Ua()}if(b)return(new I6a).OU(c,this.o,this.Q).Ua();if(PP(a))return b=this.o,c=this.Q,e=new D6a,e.Jw=a,e.o=b,e.Q=c,e.Ua();if(M_a(a))return(new G6a).OU(a,this.o,this.Q).Ua();if(O_a(a))return(new J6a).OU(a,this.o,this.Q).Ua();b=H(Wg(),G());c=Dd(a.ca(),Hn().nz);c.b()||(c=c.c(),Er(b,Tw(new Uw,c.t.t,this.o,!1,pc(Os(),
G()),this.Q.Si()).Ua()));return b.Fa()?H(z(),(new J).aa([F6a(b,a,this.o)])):G()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Voa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasSecuritySettingsEmitter",{Voa:1,f:1,A:1,w:1,q:1,n:1});function ox(){this.kf=this.Le=this.U=this.qj=this.o=this.ra=null;this.lx=!1;this.Q=null}ox.prototype=new r;ox.prototype.constructor=ox;d=ox.prototype;d.L=function(){return"OasTypeEmitter"};d.H=function(){return 7};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.bpa){var b=this.ra,c=a.ra;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.qj,c=a.qj,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Le,c=a.Le,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.kf,c=a.kf,b=null===b?null===c:b.h(c)):b=!1;return b?this.lx===a.lx:!1}return!1};
d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.qj;case 3:return this.U;case 4:return this.Le;case 5:return this.kf;case 6:return this.lx;default:throw(new X).e(""+a);}};function Q6a(a){return 1===B(a.ea,lo().Ee).lb()&&Yh(B(a.ea,lo().Ee).fa().ha(),n(ana))}d.u=function(){return U(W(),this)};
d.Ua=function(){var a=this.Le,b=t(new u,function(){return function(a){return"/"+a}}(this)),c=z(),b="#"+a.ka(b,c.s).lm(),a=this.kf,c=(new P).N(this.ra.k,b),e=z(),a=a.hg(c,e.s),c=this.ra;dda(c)&&Yh(this.ra.ha(),n(Zt))&&(c=c.lU,b=t(new u,function(a,b){return function(a){return(new P).N(a,b)}}(this,b)),e=Mi(),b=c.ka(b,e.s),c=z(),a=a.la(b,c.s));e=!1;c=null;b=this.ra;if(null!==b&&yb(b).qa())return a=z(),b=[CN(new DN,this.ra,B(b.ca(),Db().wd).G,G(),this.Q)],H(a,(new J).aa(b));if(ai(b))return a=ls(b.ea,t(new u,
function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),a=(new Ui).P(a,b.ab),M6a(a,this.o,this.Q).Ua();if(bi(b))return c=ls(b.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),b=(new si).P(c,b.ab),R6a(b,this.o,this.U,this.Le,a,this.lx,this.Q).Ua();if(Ni(b)&&(e=!0,c=b,Q6a(c)))return nx(new ox,B(c.ea,lo().Ee).fa(),this.o,this.qj,this.U,G(),G(),!1,this.Q).Ua();if(e)return b=ls(c.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),b=(new ti).P(b,
c.ab),S6a(b,this.o,this.U,this.Le,a,this.Q).Ua();if(Vh(b))return c=ls(b.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),b=(new ri).P(c,b.ab),T6a(new S2,b,this.o,this.U,this.Le,a,this.lx,this.Q).Ua();if(Oi(b))return c=ls(b.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),c=(new Pi).P(c,b.ab),b=Te(c,b.k),T6a(new S2,b.lI(),this.o,this.U,this.Le,a,this.lx,this.Q).Ua();if(Qi(b))return c=ls(b.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),
b=(new Ri).P(c,b.ab),U6a(b,this.o,this.U,this.Le,a,this.lx,this.Q).Ua();if(Ti(b))return a=ls(b.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),a=(new ii).P(a,b.ab),H(z(),(new J).aa([V6a(a,this.o)]));if(Si(b)){if(Xma(this.Q))return a=(new pi).P(b.ea,b.ab),c=qi().Mj,e=xh().af,a=Eb(a,e,c),b=ls(b.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),a=(new pi).P(b,a.ab),W6a(a,this.o,this.U,this.lx,this.Q).Ua();a=ls(b.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this)));
a=(new ui).P(a,b.ab);return X6a(a,this.o,this.U,this.lx,this.Q).Ua()}return di(b)?(a=ls(b.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),a=(new pi).P(a,b.ab),W6a(a,this.o,this.U,this.lx,this.Q).Ua()):no(b)?H(z(),(new J).aa([Y6a(b,this.o,this.kf,this.Q)])):Xh(b)?(b=Z6a(b,ls(b.ca(),t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),b.ha()),(new hO).LK(b,this.o,this.U,this.Le,a,this.lx,this.Q).Ua()):H(z(),G())};
function nx(a,b,c,e,f,g,h,k,l){a.ra=b;a.o=c;a.qj=e;a.U=f;a.Le=g;a.kf=h;a.lx=k;a.Q=l;return a}d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.ra)),a=zI().Ga(a,yI(zI(),this.o)),a=zI().Ga(a,yI(zI(),this.qj)),a=zI().Ga(a,yI(zI(),this.U)),a=zI().Ga(a,yI(zI(),this.Le)),a=zI().Ga(a,yI(zI(),this.kf)),a=zI().Ga(a,this.lx?1231:1237);return zI().Wd(a,7)};d.Yw=function(){var a=this.Ua(),b;b=new $6a;var c=z();return a.$b(b,c.s)};d.M=function(){return Z(this)};
d.$classData=q({bpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeEmitter",{bpa:1,f:1,A:1,w:1,q:1,n:1});function a7a(){this.l=this.qb=this.Iq=null}a7a.prototype=new r;a7a.prototype.constructor=a7a;d=a7a.prototype;d.L=function(){return"AllOfParser"};d.H=function(){return 2};function b7a(a,b,c,e){a.Iq=c;a.qb=e;if(null===b)throw Lb(Mb(),null);a.l=b;return a}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.dpa&&a.l===this.l){var b=this.Iq,c=a.Iq;if(null===b?null===c:b.h(c))return b=this.qb,a=a.qb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Iq;case 1:return this.qb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.fh=function(){var a=this.Iq,b=t(new u,function(a){return function(b){var c=Hc(Ic(b),Pc());if(c.b())c=w();else if(c=c.c(),c=yc((new K).Y(c),"$ref"),c.b())c=w();else{var c=c.c(),h=a.l.va.Mh.to,k=c.i,l=qe(),k=L(k,l,a.l.va),k=(new ph).e(k),h=h.Ta(Zo(k,"#/definitions/"));h.b()?c=w():(h=h.c(),k=c.i,l=qe(),c=h.gk(L(k,l,a.l.va),Ke(M(),c.i)),h=B(h.ca(),Pg().$).G,h=h.b()?"schema":h.c(),M(),k=(new N).a(),c=(new A).d(Ue(c,h,k)))}return(c.b()?gTa(sV(),b,"",a.qb,a.l.Ok,a.l.va).wc():c).wa()}}(this)),c=z();return a.md(b,
c.s)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({dpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$AllOfParser",{dpa:1,f:1,A:1,w:1,q:1,n:1});function tna(){this.l=this.ra=this.W=null}tna.prototype=new r;tna.prototype.constructor=tna;d=tna.prototype;d.L=function(){return"AndConstraintParser"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.epa&&a.l===this.l&&Yj(this.W,a.W)){var b=this.ra;a=a.ra;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.ra;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.IK=function(a,b,c){this.W=b;this.ra=c;if(null===a)throw Lb(Mb(),null);this.l=a;return this};
d.Pc=function(){this.l.Df.R(this.ra);var a=yc((new K).Y(this.W),"allOf");if(!a.b()){var a=a.c(),b=a.i,c=Jc(),b=sv(b,c);if(Hp(b)){var b=b.i,c=z(),b=b.cg(c.s),c=t(new u,function(a){return function(b){if(null!==b){var c=b.pa();b=b.si();c=gF(jC(),Th(R(),"item"+b),c);return qV(sV(),c,t(new u,function(a,b){return function(c){c.Qb(a.ra.k+"/and/"+b,c.Ub())}}(a,b)),a.l.Ok,a.l.va).wc()}throw(new v).d(b);}}(this)),e=z(),b=b.ka(c,e.s).xb(t(new u,function(){return function(a){return a.qa()}}(this))),c=t(new u,
function(){return function(a){return a.c()}}(this)),e=z(),b=b.ka(c,e.s),c=this.ra,e=Pg().Th,a=Ke(M(),a.i);jr(c,e,b,a)}else{var b=this.l.va,c=rh().mY,e=this.ra.k,a=a.i,f=w();Cc(b,c,e,f,"And constraints are built from multiple shape nodes",a.ga)}}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({epa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$AndConstraintParser",{epa:1,f:1,A:1,w:1,q:1,n:1});
function c7a(){this.l=this.qb=this.W=this.Lc=this.ba=null}c7a.prototype=new r;c7a.prototype.constructor=c7a;d=c7a.prototype;d.L=function(){return"DataArrangementParser"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ipa&&a.l===this.l){if(this.ba===a.ba)var b=this.Lc,c=a.Lc,b=null===b?null===c:b.h(c);else b=!1;if(b&&Yj(this.W,a.W))return b=this.qb,a=a.qb,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.ba;case 1:return this.Lc;case 2:return this.W;case 3:return this.qb;default:throw(new X).e(""+a);}};
d.Hi=function(){var a=!1,b=null,c;var e=yc((new K).Y(this.W),"items");if(x(e))e=e.i.i,c=Jc(),e=sv(e,c),Hp(e)?(Zf(),e=qVa(sVa(),this.Lc),e=Ue(e,this.ba,this.l.xj),c=(new A).d((new $f).d(e))):(Zf(),e=dVa(fVa(),this.Lc),e=Ue(e,this.ba,this.l.xj),c=(new A).d((new ag).d(e)));else if(w()===e)c=w();else throw(new v).d(e);if(w()===c)return a=dVa(fVa(),this.Lc),a=Ue(a,this.ba,this.l.xj),d7a(this.l,a,this.W,this.qb).Hi();if(x(c)&&(a=!0,b=c,e=b.i,Ep(e))){a=this.l;b=this.W;c=this.qb;var f=new e7a;f.xa=e.i;f.eb=
b;f.Lg=c;jO.prototype.uy.call(f,a);return f.Hi()}if(a&&(a=b.i,Hp(a)))return d7a(this.l,a.i,this.W,this.qb).Hi();throw(new v).d(c);};d.u=function(){return U(W(),this)};function f7a(a,b,c,e,f,g){a.ba=c;a.Lc=e;a.W=f;a.qb=g;if(null===b)throw Lb(Mb(),null);a.l=b;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({ipa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$DataArrangementParser",{ipa:1,f:1,A:1,w:1,q:1,n:1});
function g7a(){this.l=this.zb=this.ra=null}g7a.prototype=new r;g7a.prototype.constructor=g7a;function h7a(a,b){var c=b.i,e=Pc(),c=L(c,e,a.l.va).Bb,e=t(new u,function(a){return function(b){$Va||($Va=(new tX).a());var c=b.Da,e=qe(),c=L(c,e,a.l.va);b=b.i;e=qe();b=L(b,e,a.l.va);M();var e=(new N).a(),e=(new T2).P((new Q).a(),e),f=so().ND,c=Eb(e,f,c),e=so().XF;return Eb(c,e,b)}}(a)),f=uv(),c=c.ka(e,f.gc);a=a.ra;e=ci().VI;b=Ke(M(),b);jr(a,e,c,b)}d=g7a.prototype;d.L=function(){return"DiscriminatorParser"};
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.jpa&&a.l===this.l){var b=this.ra,c=a.ra;return(null===b?null===c:b.h(c))?this.zb===a.zb:!1}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.zb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Pc=function(){var a=this.zb.i,b=Pc(),a=L(a,b,this.l.va),b=(new K).Y(a),c=this.l,e=ci().dt;Bh(b,"propertyName",Ch(Dh(c,e,this.l.va),this.ra));b=yc((new K).Y(a),"mapping");b.b()||(b=b.c(),h7a(this,b));xO(this.l.va,this.ra.k,a,"discriminator")};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function i7a(a,b,c){var e=new g7a;e.ra=b;e.zb=c;if(null===a)throw Lb(Mb(),null);e.l=a;return e}
d.$classData=q({jpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$DiscriminatorParser",{jpa:1,f:1,A:1,w:1,q:1,n:1});function vna(){this.l=this.ra=this.W=null}vna.prototype=new r;vna.prototype.constructor=vna;d=vna.prototype;d.L=function(){return"NotConstraintParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.mpa&&a.l===this.l&&Yj(this.W,a.W)){var b=this.ra;a=a.ra;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.W;case 1:return this.ra;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.IK=function(a,b,c){this.W=b;this.ra=c;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.Pc=function(){this.l.Df.R(this.ra);var a=yc((new K).Y(this.W),"not");if(!a.b()&&(a=a.c(),a=qV(sV(),a,t(new u,function(a){return function(b){b.Qb(a.ra.k+"/not",b.Ub())}}(this)),this.l.Ok,this.l.va).wc(),x(a))){var a=a.i,b=this.ra,c=Pg().ki;ff(b,c,a)}};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({mpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$NotConstraintParser",{mpa:1,f:1,A:1,w:1,q:1,n:1});function sna(){this.l=this.ra=this.W=null}sna.prototype=new r;sna.prototype.constructor=sna;d=sna.prototype;d.L=function(){return"OrConstraintParser"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.npa&&a.l===this.l&&Yj(this.W,a.W)){var b=this.ra;a=a.ra;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.ra;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.IK=function(a,b,c){this.W=b;this.ra=c;if(null===a)throw Lb(Mb(),null);this.l=a;return this};
d.Pc=function(){var a=yc((new K).Y(this.W),"anyOf");if(!a.b()){var a=a.c(),b=a.i,c=Jc(),b=sv(b,c);if(Hp(b)){var b=b.i,c=z(),b=b.cg(c.s),c=t(new u,function(a){return function(b){if(null!==b){var c=b.pa();b=b.si();c=gF(jC(),Th(R(),"item"+b),c);return qV(sV(),c,t(new u,function(a,b){return function(c){c.Qb(a.ra.k+"/or/"+b,c.Ub())}}(a,b)),a.l.Ok,a.l.va).wc()}throw(new v).d(b);}}(this)),e=z(),b=b.ka(c,e.s).xb(t(new u,function(){return function(a){return a.qa()}}(this))),c=t(new u,function(){return function(a){return a.c()}}(this)),
e=z(),b=b.ka(c,e.s),c=this.ra,e=Pg().Vh,a=Ke(M(),a.i);jr(c,e,b,a)}else{var b=this.l.va,c=rh().rY,e=this.ra.k,a=a.i,f=w();Cc(b,c,e,f,"Or constraints are built from multiple shape nodes",a.ga)}}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({npa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$OrConstraintParser",{npa:1,f:1,A:1,w:1,q:1,n:1});function hx(){this.Xv=this.Nb=this.W=null;this.ux=!1;this.l=null}hx.prototype=new r;
hx.prototype.constructor=hx;function pna(a,b,c,e,f,g){a.W=c;a.Nb=e;a.Xv=f;a.ux=g;if(null===b)throw Lb(Mb(),null);a.l=b;return a}d=hx.prototype;d.L=function(){return"PropertiesParser"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.opa&&a.l===this.l){if(Yj(this.W,a.W))var b=this.Nb,c=a.Nb,b=null===b?null===c:b.h(c);else b=!1;b?(b=this.Xv,c=a.Xv,b=null===b?null===c:O1(b,c)):b=!1;return b?this.ux===a.ux:!1}return!1};
d.K=function(a){switch(a){case 0:return this.W;case 1:return this.Nb;case 2:return this.Xv;case 3:return this.ux;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fh=function(){var a=this.W.Bb,b=t(new u,function(a){return function(b){var c=j7a,h=a.l,k=a.Nb,l=a.Xv,p=a.ux,y=new k7a;y.zb=b;y.Nb=k;y.Xv=l;y.ux=p;if(null===h)throw Lb(Mb(),null);y.l=h;return c(y)}}(this)),c=uv();return a.ka(b,c.gc)};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.W)),a=zI().Ga(a,yI(zI(),this.Nb)),a=zI().Ga(a,yI(zI(),this.Xv)),a=zI().Ga(a,this.ux?1231:1237);return zI().Wd(a,4)};d.M=function(){return Z(this)};d.$classData=q({opa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$PropertiesParser",{opa:1,f:1,A:1,w:1,q:1,n:1});function U2(){this.Pa=null}U2.prototype=new hPa;U2.prototype.constructor=U2;U2.prototype.uy=function(a){if(null===a)throw Lb(Mb(),null);this.Pa=a;return this};
U2.prototype.nu=function(a,b,c,e){return pna(new hx,this.Pa,a,b,c,!!e)};U2.prototype.u=function(){return"PropertiesParser"};U2.prototype.$classData=q({fWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$PropertiesParser$",{fWa:1,lGa:1,f:1,hha:1,q:1,n:1});function k7a(){this.Xv=this.Nb=this.zb=null;this.ux=!1;this.l=null}k7a.prototype=new r;k7a.prototype.constructor=k7a;d=k7a.prototype;d.L=function(){return"PropertyShapeParser"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ppa&&a.l===this.l){if(this.zb===a.zb)var b=this.Nb,c=a.Nb,b=null===b?null===c:b.h(c);else b=!1;b?(b=this.Xv,c=a.Xv,b=null===b?null===c:O1(b,c)):b=!1;return b?this.ux===a.ux:!1}return!1};d.K=function(a){switch(a){case 0:return this.zb;case 1:return this.Nb;case 2:return this.Xv;case 3:return this.ux;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function j7a(a){var b=a.zb.Da,c=zc(),b=L(b,c,a.l.va).ya,e=a.Xv.Ja(b),c=a.Xv.Ta(b);c.b()?c=w():(c=c.c(),c=(new A).d(Ke(M(),c)));var c=c.b()?(M(),(new N).a()):c.c(),f=a.Nb.R(b),g=Ke(M(),a.zb),f=cc(f,g),g=rj().Uh,h=Nh(new Oh,e?1:0,(new N).a()),c=c.Wb((new Xi).a()),c=Fh(f,g,h,c),f=rj().$f,g=C().zg,h=a.zb.Da,k=zc(),h=L(h,k,a.l.va).ya,h=(new Cf).e(h),h=Gj(h.zd),g=Nh(new Oh,Gc(D(new F,g,h)),Ke(M(),a.zb.Da));ff(c,f,g);f=Hc(Ic(a.zb.i),Pc());f.b()||(f=f.c(),f=yc((new K).Y(f),"readOnly"),f.b()||(f=f.c(),g=a.l,
h=rj().MD,ZN(Ch(Dh(g,h,a.l.va),c),f),cTa(a.l.Ok)?(g=B(c.ea,rj().MD),g=gd(g)):g=!1,g&&e&&(e=a.l.va,g=rh().zZ,h=c.k,k=w(),iL(e,g,h,k,"Read only property should not be marked as required by a schema",f.ga))));dTa(a.l.Ok)&&(e=Hc(Ic(a.zb.i),Pc()),e.b()||(e=e.c(),e=(new K).Y(e),f=a.l,g=rj().WZ,Bh(e,"writeOnly",Ch(Dh(f,g,a.l.va),c))),e=Hc(Ic(a.zb.i),Pc()),e.b()||(e=e.c(),e=(new K).Y(e),f=a.l,g=rj().gp,Bh(e,"deprecated",Ch(Dh(f,g,a.l.va),c))));e=Hc(Ic(a.zb.i),Pc());if(!e.b()&&(e=e.c(),e=yc((new K).Y(e),"required"),
!e.b()&&(e=e.c(),f=e.i.pb().nb,g=O().ui,f===g))){f=a.l.Ok;g=fJa();if(null!==f&&f===g||iJa(a.l.Ok))f=a.l.va,g=rh().M6,h=c.k,k=w(),Cc(f,g,h,k,"Required property boolean value is only supported in JSON Schema draft-3",e.ga);g=!!(new Eh).Vb(e.i,a.l.va).Ip().t;f=rj().Uh;g=Nh(new Oh,g?1:0,(new N).a());e=Ke(M(),e).Wb((new Xi).a());Fh(c,f,g,e)}e=qV(sV(),a.zb,t(new u,function(a,b){return function(a){a.Qb(b.k,a.Ub())}}(a,c)),a.l.Ok,a.l.va).wc();e.b()||(e=e.c(),f=rj().If,ff(c,f,e));a.ux&&(a=rj().rv,Eb(c,a,b));
return c}d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.zb)),a=zI().Ga(a,yI(zI(),this.Nb)),a=zI().Ga(a,yI(zI(),this.Xv)),a=zI().Ga(a,this.ux?1231:1237);return zI().Wd(a,4)};d.M=function(){return Z(this)};d.$classData=q({ppa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$PropertyShapeParser",{ppa:1,f:1,A:1,w:1,q:1,n:1});function una(){this.l=this.ra=this.W=null}una.prototype=new r;una.prototype.constructor=una;d=una.prototype;d.L=function(){return"XoneConstraintParser"};
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.upa&&a.l===this.l&&Yj(this.W,a.W)){var b=this.ra;a=a.ra;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.ra;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.IK=function(a,b,c){this.W=b;this.ra=c;if(null===a)throw Lb(Mb(),null);this.l=a;return this};
d.Pc=function(){this.l.Df.R(this.ra);var a=yc((new K).Y(this.W),"oneOf");if(!a.b()){var a=a.c(),b=a.i,c=Jc(),b=sv(b,c);if(Hp(b)){var b=b.i,c=z(),b=b.cg(c.s),c=t(new u,function(a){return function(b){if(null!==b){var c=b.pa();b=b.si();c=gF(jC(),Th(R(),"item"+b),c);return qV(sV(),c,t(new u,function(a,b){return function(c){c.Qb(a.ra.k+"/xone/"+b,c.Ub())}}(a,b)),a.l.Ok,a.l.va).wc()}throw(new v).d(b);}}(this)),e=z(),b=b.ka(c,e.s).xb(t(new u,function(){return function(a){return a.qa()}}(this))),c=t(new u,
function(){return function(a){return a.c()}}(this)),e=z(),b=b.ka(c,e.s),c=this.ra,e=Pg().Xh,a=Ke(M(),a.i);jr(c,e,b,a)}else{var b=this.l.va,c=rh().xY,e=this.ra.k,a=a.i,f=w();Cc(b,c,e,f,"Xone constraints are built from multiple shape nodes",a.ga)}}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({upa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$XoneConstraintParser",{upa:1,f:1,A:1,w:1,q:1,n:1});function l7a(){this.Q=this.o=this.UV=null}
l7a.prototype=new r;l7a.prototype.constructor=l7a;function m7a(a,b,c){var e=new l7a;e.UV=a;e.o=b;e.Q=c;return e}d=l7a.prototype;d.L=function(){return"OrphanAnnotationsEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.zpa){var b=this.UV,c=a.UV;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.UV;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=this.UV,b=t(new u,function(a){return function(b){return a.Q.of.QS().zf(b,a.o)}}(this)),c=z();return a.ka(b,c.s)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({zpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OrphanAnnotationsEmitter",{zpa:1,f:1,A:1,w:1,q:1,n:1});function n7a(){this.m=this.qb=this.Lc=this.ba=this.Sk=null}n7a.prototype=new r;n7a.prototype.constructor=n7a;d=n7a.prototype;d.L=function(){return"Raml08DefaultTypeParser"};
function o7a(a,b,c,e,f){var g=new n7a;g.Sk=a;g.ba=b;g.Lc=c;g.qb=e;g.m=f;return g}d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Bpa){if(this.Sk===a.Sk&&this.ba===a.ba)var b=this.Lc,c=a.Lc,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.qb,a=a.qb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Sk;case 1:return this.ba;case 2:return this.Lc;case 3:return this.qb;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};
d.wc=function(){var a=this.Sk;if(Eg()===a){var a=KW(LW(),this.Lc),b=this.ba;M();var c=(new N).a(),a=Ue(a,b,c),b=(new V2).a(),a=(new A).d(ac(a,b))}else if(Dg()===a)a=HW(IW(),this.Lc),b=this.ba,M(),c=(new N).a(),a=(new A).d(Ue(a,b,c));else if(eda(a)){a=PW(QW(),this.Lc);b=this.ba;M();var c=(new N).a(),a=Ue(a,b,c),b=xh().af,c=Nh(new Oh,sB(tB(),this.Sk),(new N).a()),e=(M(),(new N).a()).Wb((new V2).a()),a=(new A).d(Fh(a,b,c,e))}else if(Xv()===a)a=Pqa(Rqa(),this.Lc),b=this.ba,M(),c=(new N).a(),a=Ue(a,b,
c),b=(new V2).a(),a=(new A).d(ac(a,b));else{var a=this.m,b=rh().w9,c="Cannot set default type "+this.Sk+" in raml 08",e=this.Lc,f=w();Cc(a,b,"",f,c,e.ga);a=w()}b=this.qb;a.b()||(new A).d(b.R(a.c()));return a};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Bpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08DefaultTypeParser",{Bpa:1,f:1,A:1,w:1,q:1,n:1});function p7a(){this.l=this.m=this.ba=this.Ea=this.jd=null}p7a.prototype=new r;
p7a.prototype.constructor=p7a;d=p7a.prototype;d.L=function(){return"Raml08ReferenceParser"};d.H=function(){return 3};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Gpa&&a.l===this.l?this.jd===a.jd&&Yj(this.Ea,a.Ea)?this.ba===a.ba:!1:!1};d.K=function(a){switch(a){case 0:return this.jd;case 1:return this.Ea;case 2:return this.ba;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Gpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08TypeParser$Raml08ReferenceParser",{Gpa:1,f:1,A:1,w:1,q:1,n:1});function q7a(){this.l=this.m=this.qb=this.W=null}q7a.prototype=new r;q7a.prototype.constructor=q7a;d=q7a.prototype;d.L=function(){return"Raml08SchemaParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Hpa&&a.l===this.l&&Yj(this.W,a.W)){var b=this.qb;a=a.qb;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.W;case 1:return this.qb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.wc=function(){var a=yc((new K).Y(this.W),"schema");if(a.b())return w();var a=a.c(),b=a.i.pb().nb;return O().ua===b||O().Nc===b?HU(IU(),a,this.qb,!1,tO(),this.m).wc():r7a(this.l,a.i,this.qb,"schema",this.l.oy,this.m).wc()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function s7a(a,b,c,e){var f=new q7a;f.W=b;f.qb=c;f.m=e;if(null===a)throw Lb(Mb(),null);f.l=a;return f}d.$classData=q({Hpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08TypeParser$Raml08SchemaParser",{Hpa:1,f:1,A:1,w:1,q:1,n:1});function t7a(){this.l=this.m=this.Sk=this.ba=this.qb=this.t=null}t7a.prototype=new r;t7a.prototype.constructor=t7a;d=t7a.prototype;d.L=function(){return"Raml08TextParser"};d.H=function(){return 4};
function r7a(a,b,c,e,f,g){var h=new t7a;h.t=b;h.qb=c;h.ba=e;h.Sk=f;h.m=g;if(null===a)throw Lb(Mb(),null);h.l=a;return h}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ipa&&a.l===this.l){if(Yj(this.t,a.t))var b=this.qb,c=a.qb,b=null===b?null===c:b.h(c);else b=!1;return b&&this.ba===a.ba?this.Sk===a.Sk:!1}return!1};d.K=function(a){switch(a){case 0:return this.t;case 1:return this.qb;case 2:return this.ba;case 3:return this.Sk;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};
d.wc=function(){var a=this.t.pb().nb;if(O().yd===a){a=o7a(this.Sk.sF,this.ba,this.t,this.qb,this.m).wc();if(a.b())return w();var a=a.c(),a=ac(a,oia(this.t)),b=(new Hr).e(this.t.ga.Of);return(new A).d(ac(a,b))}a=this.t;b=zc();b=L(a,b,this.m).ya;if(!Xla().cj(b).b())return a=Wa(),b=(new W2).PK(this.l.ox,this.t,this.qb,!1,this.m),a.Ia(mO(b));if(!Yla().cj(b).b())return a=Wa(),b=(new X2).PK(this.l.ox,this.t,this.qb,!1,this.m),a.Ia(mO(b));if(bma(ei(),b).qa())a=Wa().Ia(u7a(new Y2,this.ba,this.qb,sq().Td,
bma(ei(),b).c(),this.m).Hi());else{var c=this.l,e=this.l.Bd,f=this.ba,g=this.m,a=new p7a;a.jd=b;a.Ea=e;a.ba=f;a.m=g;if(null===c)throw Lb(Mb(),null);a.l=c;c=cz(a.m.le(),a.jd,Nr(),w());a:{if(x(c)&&(b=c.i,null!==b)){c=b.gk(a.jd,Ke(M(),a.Ea.we()));a=a.ba;b=B(b.ca(),Pg().$).E;a=Ue(c,a,b);break a}if(w()===c){b=LVa(Zoa(),a.jd,a.Ea);c=a.jd;M();e=(new N).a();b=Ue(b,c,e);hc(b,a.m);a.l.Lg.R(b);if(dFa((new Cf).e(a.jd)))c=!1;else{c=Pd(a.m.le().ai).ah.Tq();for(e=!1;!e&&c.Qa();)e=c.Sa(),f=a.jd,f=kd(ta(),f,"\\.",
0),e=e===Wj((new md).vc(f));c=e}if(c){var c=a.m,e=rh().GR,f=b.k,g="Chained reference '"+a.jd,a=a.Ea,h=w();Cc(c,e,f,h,g,a.ga)}else dz(b,a.jd,a.Ea,a.m);a=b}else throw(new v).d(c);}a=(new A).d(a)}return a};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Ipa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08TypeParser$Raml08TextParser",{Ipa:1,f:1,A:1,w:1,q:1,n:1});function v7a(){this.m=this.Lc=this.YA=this.ra=null}v7a.prototype=new r;
v7a.prototype.constructor=v7a;d=v7a.prototype;d.L=function(){return"Raml08UnionTypeParser"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Kpa){var b=this.ra,c=a.ra;(null===b?null===c:b.h(c))?(b=this.YA,c=a.YA,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Lc,a=a.Lc,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.YA;case 2:return this.Lc;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};function w7a(a,b,c,e,f){a.ra=b;a.YA=c;a.Lc=e;a.m=f;return a}
d.DP=function(){var a=this.YA,b=z(),a=a.cg(b.s),b=t(new u,function(a){return function(b){if(null!==b){var c=b.pa();b=b.si();return mTa(IU(),c,"item"+b,t(new u,function(a,b){return function(c){return c.Qb(a.ra.k+"/items/"+b,c.Ub())}}(a,b)),cO(),a.m).wc()}throw(new v).d(b);}}(this)),c=z(),a=a.ka(b,c.s).xb(t(new u,function(){return function(a){return a.qa()}}(this))),b=t(new u,function(){return function(a){return a.c()}}(this)),c=z(),a=a.ka(b,c.s),b=this.ra,c=lo().Ee,e=Ke(M(),this.Lc);return jr(b,c,
a,e)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Kpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08UnionTypeParser",{Kpa:1,f:1,A:1,w:1,q:1,n:1});function Z2(){this.Q=this.U=this.qj=this.o=this.ra=null}Z2.prototype=new r;Z2.prototype.constructor=Z2;d=Z2.prototype;d.L=function(){return"Raml10TypeEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Opa){var b=this.ra,c=a.ra;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.qj,c=a.qj,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.qj;case 3:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=!1,b=null,c=this.ra;if(Wa().Ia(this.ra).qa()&&Xh(this.ra)&&rda(this.ra)&&this.U.Fa())var e=this.U,f=(new x7a).pba(this),e=hd(e,f).qa();else e=!1;if(e)return H(z(),(new J).aa([y7a(this.ra,this.U)]));if(null!==c&&yb(c).qa()){c=tla(this.Q,this.ra,this.U);if(x(c)&&(c=c.i,au(c)))return b=z(),a=B(this.ra.ca(),Db().wd).G,a.b()?jd(c).c():a.c(),H(b,(new J).aa([CSa(this.ra)]));c=z();b=[this.Q.gL(this.ra)];return H(c,(new J).aa(b))}return ai(c)?H(z(),(new J).aa([z7a(new $2,c,this.o,this.U,
this.Q)])):bi(c)&&(a=!0,b=c,Zb(b.ab,n(Zh)).qa())?H(z(),(new J).aa([A7a(new a3,b,this.o,this.U,"type",this.Q)])):a?(c=ls(b.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),c=(new si).P(c,b.ab),B7a(c,this.o,this.U,this.Q).Ua()):Ni(c)?(b=ls(c.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),c=(new ti).P(b,c.ab),(new C7a).NK(c,this.o,this.U,this.Q).Ua()):Si(c)?(b=ls(c.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),c=(new ui).P(b,
c.ab),D7a(c,this.o,this.U,this.Q).Ua()):di(c)?(b=ls(c.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),c=(new pi).P(b,c.ab),E7a(c,this.o,this.U,this.Q).Ua()):Vh(c)?(b=ls(c.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),c=(new ri).P(b,c.ab),(new b3).Y0(c,this.o,this.U,this.Q).Ua()):Qi(c)?(b=ls(c.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),c=(new Ri).P(b,c.ab),(new F7a).Aba(c,this.o,this.U,this.Q).Ua()):Oi(c)?(b=ls(c.ea,
t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),c=(new Pi).P(b,c.ab),(new b3).Y0(c.lI(),this.o,this.U,this.Q).Ua()):Ti(c)?(b=ls(c.ea,t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),c=(new ii).P(b,c.ab),G7a(new c3,c,this.o,this.U,this.Q).Ua()):Xh(c)?(c=Z6a(c,ls(c.ca(),t(new u,function(a){return function(b){return!a.qj.Ja(b.pa())}}(this))),c.ha()),(new DV).wy(c,this.o,this.U,this.Q).Ua()):no(c)?(new rx).QO(c,this.o,this.U,this.Q).Ua():H(z(),G())};
function d3(a,b,c,e,f,g){a.ra=b;a.o=c;a.qj=e;a.U=f;a.Q=g;return a}d.y=function(){return Y(this)};d.Yw=function(){var a=this.Ua(),b=(new H7a).pba(this),c=z();return a.$b(b,c.s)};d.M=function(){return Z(this)};d.$classData=q({Opa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml10TypeEmitter",{Opa:1,f:1,A:1,w:1,q:1,n:1});function I7a(){this.o=this.Jw=null}I7a.prototype=new r;I7a.prototype.constructor=I7a;d=I7a.prototype;d.L=function(){return"RamlApiKeySettingsEmitters"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Vpa){var b=this.Jw,c=a.Jw;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Jw;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){var a=this.Jw.g,b=H(Wg(),G()),c=Dd(a,NP().$);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,"name",c,w()))));a=Dd(a,NP().uz);a.b()||(a=a.c(),(new A).d(vh(b,Ih(new Jh,"in",a,w()))));return b};
function E6a(a,b){var c=new I7a;c.Jw=a;c.o=b;return c}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Vpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlApiKeySettingsEmitters",{Vpa:1,f:1,A:1,w:1,q:1,n:1});function e3(){this.o=this.em=null;this.wQ=!1;this.Q=null}e3.prototype=new r;e3.prototype.constructor=e3;d=e3.prototype;d.L=function(){return"RamlCreativeWorkItemsEmitter"};d.H=function(){return 3};
d.CU=function(a,b,c,e){this.em=a;this.o=b;this.wQ=c;this.Q=e;return this};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Zpa?this.em===a.em&&this.o===a.o?this.wQ===a.wQ:!1:!1};d.K=function(a){switch(a){case 0:return this.em;case 1:return this.o;case 2:return this.wQ;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=H(Wg(),G()),b=this.em.g,c=Dd(b,Gi().Jf);c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,this.wQ?Kh((new Cf).e("url")):"url",c,w()))));c=Dd(b,Gi().fb);c.b()||(c=c.c(),(new A).d(vh(a,Gh(Hh(),"content",c,w(),this.Q))));b=Dd(b,Gi().fu);b.b()||(b=b.c(),(new A).d(vh(a,Gh(Hh(),"title",b,w(),this.Q))));Er(a,Mw(this.em,this.o,this.Q).Ua());return this.o.Cb(a)};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.em)),a=zI().Ga(a,yI(zI(),this.o)),a=zI().Ga(a,this.wQ?1231:1237);return zI().Wd(a,3)};d.M=function(){return Z(this)};d.$classData=q({Zpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlCreativeWorkItemsEmitter",{Zpa:1,f:1,A:1,w:1,q:1,n:1});function f3(){this.m=this.Dg=this.W=this.oa=null}f3.prototype=new r;f3.prototype.constructor=f3;d=f3.prototype;d.L=function(){return"RamlDescribedByParser"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.cqa&&this.oa===a.oa&&Yj(this.W,a.W)){var b=this.Dg;a=a.Dg;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.W;case 2:return this.Dg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function J7a(a,b,c,e,f){a.oa=b;a.W=c;a.Dg=e;a.m=f;return a}
d.Pc=function(){var a=yc((new K).Y(this.W),this.oa);if(!a.b()){var b=a.c(),a=b.i.pb().nb;if(O().ua===a){var a=b.i,c=Pc(),a=L(a,c,this.m);xO(this.m,this.Dg.k,a,"describedBy");c=yc((new K).Y(a),"headers");if(!c.b()){var c=c.c(),e=c.i,b=Pc(),e=g3(new h3,L(e,b,this.m),t(new u,function(a){return function(b){var c=a.Dg.k;H(z(),G());cj(b,c)}}(this)),this.m).fh(),b=t(new u,function(){return function(a){var b=Ej().df;return Eb(a,b,"header")}}(this)),f=z(),f=e.ka(b,f.s),e=this.Dg,b=vi().Qg,f=gr(new hr,f,Ke(M(),
c.i)),c=Ke(M(),c);Fh(e,b,f,c)}yc((new K).Y(a),"queryParameters").qa()&&yc((new K).Y(a),"queryString").qa()&&(c=this.m,e=rh().YM,b=this.Dg.k,f=w(),Cc(c,e,b,f,"Properties 'queryString' and 'queryParameters' are exclusive and cannot be declared together",a.ga));c=yc((new K).Y(a),"queryParameters");c.b()||(c=c.c(),e=c.i,b=Pc(),e=g3(new h3,L(e,b,this.m),t(new u,function(a){return function(b){var c=a.Dg.k;H(z(),G());cj(b,c)}}(this)),this.m).fh(),b=t(new u,function(){return function(a){var b=Ej().df;return Eb(a,
b,"query")}}(this)),f=z(),f=e.ka(b,f.s),e=this.Dg,b=vi().um,f=gr(new hr,f,Ke(M(),c.i)),c=Ke(M(),c),Fh(e,b,f,c));c=yc((new K).Y(a),"queryString");c.b()||(c=c.c(),c=RU(SU(),c,t(new u,function(a){return function(b){return b.Qb(a.Dg.k,b.Ub())}}(this)),TU(!1,!1),tO(),this.m).wc(),c.b()||(e=c.c(),c=this.Dg,e=oB(kB(),e,this.Dg.k,w()),b=vi().Dq,ff(c,b,e)));c=yc((new K).Y(a),"responses");if(!c.b()){c=c.c();e=H(Wg(),G());b=c.i.pb().nb;if(O().yd!==b){var b=c.i,f=Pc(),b=L(b,f,this.m).Bb.xb(t(new u,function(a){return function(b){var c=
Bw();b=b.Da;var e=zc();return!vma(c,L(b,e,a.m).ya)}}(this))),f=t(new u,function(a){return function(b){b=b.Da;var c=zc();return L(b,c,a.m).ya}}(this)),g=uv(),f=b.ka(f,g.gc),g=Pf(),g=Qf(g),g=Ei(f,g);if(f.lb()>g.lb()){var f=this.m,g=rh().$X,h=this.Dg.k,k=w();Cc(f,g,h,k,"RAML Responses must not have duplicated status codes",c.i.ga)}b.X(t(new u,function(a,b){return function(c){return vh(b,ax(a.m.Oh.o2(),c,t(new u,function(a){return function(b){var c=a.Dg.k;H(z(),G());cj(b,c)}}(a)),!1).KH())}}(this,e)))}b=
this.Dg;f=vi().Zl;e=gr(new hr,e,Ke(M(),c.i));c=Ke(M(),c);Fh(b,f,e,c)}jx(new kx,this.Dg,a,G(),this.m).Pc()}else O().yd!==a&&(a=this.m,c=rh().O6,e=this.Dg.k,b=b.i,f=w(),Cc(a,c,e,f,"Invalid 'describedBy' type, map expected",b.ga))}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({cqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlDescribedByParser",{cqa:1,f:1,A:1,w:1,q:1,n:1});function oO(){this.l=this.TT=this.AL=this.Pt=this.jd=null}oO.prototype=new r;
oO.prototype.constructor=oO;d=oO.prototype;d.L=function(){return"ValueAndOrigin"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.eqa&&a.l===this.l){if(this.jd===a.jd&&Yj(this.Pt,a.Pt))var b=this.AL,c=a.AL,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.TT,a=a.TT,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.jd;case 1:return this.Pt;case 2:return this.AL;case 3:return this.TT;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};function oJa(a,b,c,e,f,g){a.jd=c;a.Pt=e;a.AL=f;a.TT=g;if(null===b)throw Lb(Mb(),null);a.l=b;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({eqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlExternalTypesParser$ValueAndOrigin",{eqa:1,f:1,A:1,w:1,q:1,n:1});function i3(){this.Pa=null}i3.prototype=new hPa;i3.prototype.constructor=i3;i3.prototype.nu=function(a,b,c,e){return oJa(new oO,this.Pa,a,b,c,e)};
i3.prototype.u=function(){return"ValueAndOrigin"};function K7a(a){var b=new i3;if(null===a)throw Lb(Mb(),null);b.Pa=a;return b}i3.prototype.$classData=q({wWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlExternalTypesParser$ValueAndOrigin$",{wWa:1,lGa:1,f:1,hha:1,q:1,n:1});function L7a(){this.l=this.qo=this.Xw=null}L7a.prototype=new r;L7a.prototype.constructor=L7a;d=L7a.prototype;d.L=function(){return"MixedEmitters"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.jqa&&a.l===this.l){var b=this.Xw,c=a.Xw;if(null===b?null===c:b.h(c))return b=this.qo,a=a.qo,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Xw;case 1:return this.qo;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function M7a(a,b){a.qo.X(t(new u,function(a,b){return function(a){a.Ob(b)}}(a,b)));if(a.Xw.Fa()){var c=b.r;b=b.da;var e=(new pq).e(b);a.Xw.X(t(new u,function(a,b){return function(a){a.Va(b)}}(a,e)));T(c,lq(R(),rq(sq(),e.r,b),O().ua))}}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({jqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlInlinedUnionShapeEmitter$MixedEmitters",{jqa:1,f:1,A:1,w:1,q:1,n:1});
function N7a(){this.l=this.Hg=this.Pt=this.jd=this.m=null}N7a.prototype=new r;N7a.prototype.constructor=N7a;d=N7a.prototype;d.L=function(){return"RamlExternalOasLibParser"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.mqa&&a.l===this.l){var b=this.m,c=a.m;return(null===b?null===c:b.h(c))&&this.jd===a.jd&&Yj(this.Pt,a.Pt)?this.Hg===a.Hg:!1}return!1};
d.K=function(a){switch(a){case 0:return this.m;case 1:return this.jd;case 2:return this.Pt;case 3:return this.Hg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Pc=function(){var a=Gia((new Cf).e(this.Hg))+(re(ta(),this.Hg,"/")?"":"/"),b=CF(DF(),this.jd,this.Pt.ga.Of,qE().xn,this.m).PA(!0),b=hd(b,new O7a);if(x(b))var c=b.i;else{var b=this.m,e=rh().qY,c=this.Pt,f=w();Cc(b,e,"",f,"invalid json schema expression",c.ga);R();b=sq().Td;R();b=lq(R(),b,O().ua);c=YE(ZE(),b)}b=P7a(this.l,this.m,this.Pt);b.rH=(new A).d(c.Bd);c1a(b,c.Bd);var e=(new j3).ty(Lga(Mga(),Vp(new Wp,c,w()),a,"application/json",G(),JDa(),this.jd),b),c=c.Bd,f=Pc(),g=Ac().fi;e.wda(L(c,f,g),a+
"#/definitions/");b=b.Mh.to;a=(new yz).vt(!1,this.m);b=(new dd).Qd(b);b=XPa(a,b.Rb.gf().kd());a=pc(Os(),G());e=t(new u,function(){return function(a){return(new P).N(a,Zb(a.ha(),n(Q7a)))}}(this));c=z();b.ka(e,c.s).X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa(),e=a.Ba();if(Xh(c)&&x(e)){var e=e.i.k,f=B(c.ca(),Pg().$).G,f=f.b()?null:f.c();if(e===f)return a=B(c.ca(),Pg().$).G,a=a.b()?null:a.c(),b.Ih((new P).N(a,c))}}if(null!==a&&(c=a.pa(),e=a.Ba(),Xh(c)&&x(e)))return a=e.i,e=B(c.ca(),
Pg().$).G,e=e.b()?null:e.c(),b.Ih((new P).N(e,c)),b.Ih((new P).N(a.k,c));if(null!==a&&(c=a.pa(),e=a.Ba(),Xh(c)&&w()===e))return a=B(c.ca(),Pg().$).G,a=a.b()?null:a.c(),b.Ih((new P).N(a,c));throw(new v).d(a);}}(this,a)));b=this.m.le();e=this.Hg;c=fc().ci;f=Ry(new Sy,Xs());a.X(t(new u,function(a,b,c){return function(a){return c.Ic(a)}}(a,c,f)));b.WT=b.WT.Zb((new P).N(e,f.gb))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({mqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlJsonSchemaExpression$RamlExternalOasLibParser",{mqa:1,f:1,A:1,w:1,q:1,n:1});function O2(){this.Q=this.o=this.rx=null}O2.prototype=new r;O2.prototype.constructor=O2;d=O2.prototype;d.L=function(){return"RamlOAuth1SettingsEmitters"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.tqa){var b=this.rx,c=a.rx;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.rx;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=this.rx.g,b=H(Wg(),G()),c=Dd(a,oX().AJ);c.b()||(c=c.c(),(new A).d(vh(b,Gh(Hh(),"requestTokenUri",c,w(),this.Q))));c=Dd(a,oX().rm);c.b()||(c=c.c(),(new A).d(vh(b,Gh(Hh(),"authorizationUri",c,w(),this.Q))));c=Dd(a,oX().EJ);c.b()||(c=c.c(),(new A).d(vh(b,Gh(Hh(),"tokenCredentialsUri",c,w(),this.Q))));a=Dd(a,oX().BJ);a.b()||(a=a.c(),(new A).d(vh(b,Kw(new Lw,"signatures",a,this.o,!1))));return b};d.b1=function(a,b,c){this.rx=a;this.o=b;this.Q=c;return this};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({tqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlOAuth1SettingsEmitters",{tqa:1,f:1,A:1,w:1,q:1,n:1});function R7a(){this.Q=this.o=this.IV=null}R7a.prototype=new r;R7a.prototype.constructor=R7a;d=R7a.prototype;d.L=function(){return"RamlOAuth2SettingsEmitters"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.vqa){var b=this.IV,c=a.IV;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.IV;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=this.IV.g,b=H(Wg(),G()),c=Dd(a,QP().rm);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,"authorizationUri",c,w()))));c=Dd(a,QP().sq);c.b()||(c=c.c(),(new A).d(vh(b,Gh(Hh(),"accessTokenUri",c,w(),this.Q))));c=Dd(a,QP().pz);c.b()||(c=c.c(),(new A).d(vh(b,Kw(new Lw,"authorizationGrants",c,this.o,!1))));a=Dd(a,QP().sr);a.b()||(a=a.c(),(new A).d(vh(b,(new S7a).Lba("scopes",a,this.o))));return b};d.LU=function(a,b,c){this.IV=a;this.o=b;this.Q=c;return this};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({vqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlOAuth2SettingsEmitters",{vqa:1,f:1,A:1,w:1,q:1,n:1});function rx(){this.U=this.o=this.ra=null}rx.prototype=new r;rx.prototype.constructor=rx;d=rx.prototype;d.L=function(){return"RamlRecursiveShapeEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Aqa&&this.ra===a.ra&&this.o===a.o){var b=this.U;a=a.U;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){var a=H(Wg(),G());vh(a,Bv(new Cv,"type","object",O().Wa,Gd()));var b=Kh((new Cf).e("recursive")),c=B(this.ra.ea,ej().it).G;vh(a,Bv(new Cv,b,c.b()?null:c.c(),O().Wa,Gd()));return a};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.QO=function(a,b,c){this.ra=a;this.o=b;this.U=c;return this};
d.$classData=q({Aqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlRecursiveShapeEmitter",{Aqa:1,f:1,A:1,w:1,q:1,n:1});function k3(){this.Q=this.o=this.Ca=null}k3.prototype=new r;k3.prototype.constructor=k3;d=k3.prototype;d.L=function(){return"RamlSecuritySettingsValuesEmitters"};d.XG=function(a,b,c){this.Ca=a;this.o=b;this.Q=c;return this};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Hqa){var b=this.Ca,c=a.Ca;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=this.Ca.t.t,b=H(Wg(),G()),c=I_a(a)?(new O2).b1(a,this.o,this.Q).Ua():OP(a)?(new R7a).LU(a,this.o,this.Q).Ua():PP(a)?E6a(a,this.o).Ua():G();Er(b,c);a=Dd(a.ca(),Hn().nz);a.b()||(a=a.c(),Er(b,Tw(new Uw,a.t.t,this.o,!1,pc(Os(),G()),this.Q.Si()).Ua()));return b};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Hqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlSecuritySettingsValuesEmitters",{Hqa:1,f:1,A:1,w:1,q:1,n:1});
function l3(){nO.call(this);this.Av=this.Bd=this.me=this.rga=this.Xd=this.va=this.IJ=this.PB=this.Hq=this.Da=this.vZ=null}l3.prototype=new B1;l3.prototype.constructor=l3;function T7a(){}T7a.prototype=l3.prototype;
l3.prototype.lC=function(a,b,c,e,f,g){this.Da=b;this.Hq=c;this.PB=e;this.IJ=f;this.va=g;nO.prototype.qs.call(this,g);c=zc();this.Xd=L(b,c,g).ya;if(Hp(a))b=g=a.i;else{if(!Ep(a))throw(new v).d(a);b=a.i;g=b.i}this.rga=(new P).N(b,g);this.me=this.rga.pa();this.Bd=this.rga.Ba();a=(new Qx).wp(a).Mk();a.b()?a=w():(a=a.c(),a=(new A).d(Ke(M(),a.Da)));this.Av=a.b()?(M(),(new N).a()):a.c();return this};
function U7a(a){var b=Pqa(Rqa(),a.me),b=Ue(b,a.Xd,a.Av);a.Hq.R(b);var c=a.me;if(Kr(c)&&Aw(c.i.we())){var e=new V7a,c=c.i.we();e.xa=b;e.eb=c;w1.prototype.iC.call(e,a);e.NV=Aca((new lO).wA(!0,!0,!1),b);return w1.prototype.Hi.call(e)}return b}function W7a(a){var b=a.Bd,c=Pc(),b=sv(b,c);if(Hp(b))a=X7a(new Y7a,a,a.Xd,a.me,b.i,t(new u,function(a){return function(b){a.Hq.R(b)}}(a))).ZV();else{if(!Ep(b))throw(new v).d(b);b=a.Hq;c=dVa(fVa(),a.me);a=b.R(Ue(c,a.Xd,a.Av))}return a}
l3.prototype.wc=function(){Jna||(Jna=(new sx).a());var a=this.Bd,b=Hc(Ic(this.Bd),Pc());if(b.b())b=w();else{var b=b.c(),c=yc((new K).Y(b),"format"),b=c.b()?yc((new K).Y(b),Kh((new Cf).e("format"))):c;b.b()?b=w():(b=b.c(),b=(new A).d(b.i.u()))}b=Z7a($7a("",b,this.IJ,!1,this.Mb()),a);if(b.b())a=w();else{a=b.c();if(ama()===a)a=(new W2).PK(this.Da,this.Bd,this.Hq,!0,this.Mb()),a=mO(a);else if($la()===a)a=(new X2).PK(this.Da,this.Bd,this.Hq,!0,this.Mb()),a=mO(a);else if(rLa()===a)a=a8a(this);else if(Tca()===
a)if(a=this.Bd.we(),rs(a)){var c=this.Hq,e=(new A).d(this.me),a=Xy(c,0,e,!1,this.Mb()).EP(a.ya).c();"schema"!==this.Xd&&"type"!==this.Xd&&this.Hq.R(Ue(a,this.Xd,this.Av))}else if(Aw(a))a=b8a(this);else throw(new v).d(a);else if(Yv()===a)a=this.xda();else if(xg()===a||Dg()===a||Gg()===a)a=b8a(this);else if(wg()===a)a=W7a(this);else if(Xv()===a)a=U7a(this);else if(eda(a))a=c8a(this,a);else{if(pLa()!==a)throw(new v).d(a);a=this.IJ.sF;a=eda(a)?c8a(this,a):xg()===a?b8a(this):U7a(this);a.ha().Wb((new d0).a())}a=
(new A).d(a)}a.b()||(c=a.c(),e=this.Bd.we(),rs(e)&&!b.Ja(pLa())&&(b=(new m3).a(),ac(c,b)));e=a;b=this.Bd.we();if(Aw(b)&&e.qa()){var c=new G2,e=e.c(),f=this.Mb(),g=this.PB,h=w();c.ra=e;c.W=b;c.m=f;c.mQ=g;c.BP=h;c.Pc()}b=this.Bd.we();Aw(b)&&a.qa()&&(c=a.c(),this.PB.kx?(Di(),e=[Jw().P$],e=(new J).aa(e),f=Di().s,e=Ei(e,f)):(e=G(),Di(),f=[Jw().ra,Jw().fe,Jw().Tj],f=(new J).aa(f),g=Di().s,f=Ei(f,g),g=Di(),e=e.la(f,g.s)),jx(new kx,c,b,e,this.Mb()).Pc());return a};
function a8a(a){M();var b=(new N).a(),b=(new ti).P((new Q).a(),b),b=Ue(b,a.Xd,a.Av);a.Hq.R(b);var c=a.Bd.we();if(rs(c)){jC();var e=Th(R(),"");R();c=(new ph).e(c.ya);e=gF(0,e,Th(0,JO(c,"?")))}else{if(!Aw(c))throw(new v).d(c);var e=c.Bb,c=t(new u,function(a){return function(b){var c=b.Da,e=zc();return"type"===L(c,e,a.Mb()).ya?(jC(),R(),c=Th(R(),"type"),R(),b=b.i,e=zc(),b=L(b,e,a.Mb()).ya,b=(new ph).e(b),b=JO(b,"?"),gF(0,c,Th(R(),b))):b}}(a)),f=uv(),c=e.ka(c,f.gc);jC();e=Th(R(),"");R();sq();f=c.pc();
f.b()?f=w():(f=f.c(),f=(new A).d(f.ga.Of));c=rq(0,c,f.b()?"":f.c());R();e=gF(0,e,lq(R(),c,O().ua))}e=a.Mb().Oh.uF().nu(e,t(new u,function(a,b){return function(a){return Te(a,b.k)}}(a,b)),a.PB.kx,a.IJ).wc().c();a=z();M();c=(new N).a();c=(new ii).P((new Q).a(),c);e=[e,Te(c,b.k)];a=H(a,(new J).aa(e));e=lo().Ee;return qf(b,e,a)}
function c8a(a,b){if(Eg()===b){var c=KW(LW(),a.me),c=Ue(c,a.Xd,a.Av);a.Hq.R(c);b=a.Bd.pb().nb;if(O().ua===b){var e=a.Bd,f=Pc();b=new d8a;e=L(e,f,a.Mb());b.xa=c;b.eb=e;w1.prototype.iC.call(b,a);return b.Hi()}return c}c=PW(QW(),a.me);c=Ue(c,a.Xd,a.Av);a.Hq.R(c);e=a.Bd.pb().nb;if(O().ua===e){var f=a.Bd,g=Pc(),e=new e8a,f=L(f,g,a.Mb());e.mq=b;e.xa=c;e.eb=f;w1.prototype.iC.call(e,a);return e.JH()}if(O().Nc===e)return e=a.me,rJa(new qO,a,e,c,w(),a.Mb()).Pc(),a=xh().af,b=Nh(new Oh,sB(tB(),b),(new N).a()),
e=Ke(M(),e),Fh(c,a,b,e),c;e=xh().af;a=Nh(new Oh,sB(tB(),b),Ke(M(),a.Bd.we()));return ff(c,e,a)}
function b8a(a){if(f8a(a)){var b=a.Bd.pb().nb;if(O().Wa===b)a=a.Hq,M(),b=(new N).a(),a=a.R((new ui).P((new Q).a(),b));else{if(O().ua!==b)throw(new v).d(b);a=g8a(a,a.Bd,a.Hq).IH()}return a}b=iVa(kVa(),a.me);b=Ue(b,a.Xd,a.Av);a.Hq.R(b);var c=a.Bd.pb().nb;if(O().ua===c){var c=a.Bd,e=Pc();return h8a(new i8a,a,b,L(c,e,a.Mb())).Hi()}if(O().Nc===c)return rJa(new qO,a,a.me,b,w(),a.Mb()).Pc(),b;if(Hc(Ic(a.Bd),zc()).qa()){c=a.Mb().Oo(a.Bd);Ep(c)?(c=c.i,e=(new P).N(c,cz(a.Mb().le(),c,Or(),(new A).d(t(new u,
function(a,b){return function(c){var e=a.Mb(),f=rh().vz,g=b.k,h=a.Bd,k=w();Cc(e,f,g,k,c,h.ga)}}(a,b)))))):(c=a.Bd,e=zc(),c=L(c,e,a.Mb()).ya,e=(new P).N(c,cz(a.Mb().le(),c,Pr(),w())));if(null!==e){var c=e.pa(),f=e.Ba();if(null!==c&&x(f))return c=f.i.gk(c,Lr(M(),a.Bd)),Ue(c,a.Xd,a.Av).Uc(b.k)}if(null!==e&&(c=e.pa(),null!==c&&(f=Gg(),ei(),ei(),c=fi(ei(),c,"",f,!1),f=xg(),null!==c&&c===f)))return b.ab.Wb((new Xi).a()),b;if(null!==e&&(c=e.pa(),null!==c)){e=Vi(new Wi,(new Q).a(),Ke(M(),a.Bd),c,w(),(new A).d(t(new u,
function(a,b){return function(a){var c=Db().kg;Eb(b,c,a)}}(a,b))),!1);e=Ue(e,c,a.Av);hc(e,a.Mb());a.Hq.R(e);if(dFa((new Cf).e(c)))f=!1;else{for(var f=Pd(a.Mb().le().ai).ah.Tq(),g=!1;!g&&f.Qa();)var g=f.Sa(),h=kd(ta(),c,"\\.",0),g=g===Wj((new md).vc(h));f=g}if(f){var f=a.Mb(),g=rh().GR,h=b.k,k="Chained reference '"+c;a=a.Bd;var l=w();Cc(f,g,h,l,k,a.ga)}else dz(e,c,a.Bd,a.Mb());a=Jb(b,e);b=Db().wd;return Eb(a,b,c)}throw(new v).d(e);}throw(new v).d(c);}
l3.prototype.xda=function(){var a=Ke(M(),this.Bd),a=(new ti).P((new Q).a(),a),a=Ue(a,this.Xd,this.Av);this.Hq.R(a);var b=this.Bd.pb().nb;if(O().ua===b){var c=this.Bd,e=Pc(),b=new j8a,c=L(c,e,this.Mb());b.eb=c;b.xa=a;w1.prototype.iC.call(b,this);return b.DP()}if(O().Nc===b)rJa(new qO,this,this.me,a,w(),this.Mb()).Pc();else{var b=this.Mb(),c=of().cN,e=a.k,f="Invalid node for union shape '"+this.Bd.u(),g=this.Bd,h=w();Cc(b,c,e,h,f,g.ga)}return a};
function f8a(a){var b=a.Bd,c=Pc(),b=sv(b,c);if(Hp(b))return b=b.i,a=a.sM(b),a.b()?a=!1:(a=a.c().i,c=zc(),a=sv(a,c),a=Hp(a)?"file"===a.i.ya:!1),a?!0:yc((new K).Y(b),"fileTypes").qa();if(Ep(b))return b=a.Bd,a=zc(),b=sv(b,a),Hp(b)?"file"===b.i.ya:!1;throw(new v).d(b);}function tJa(){this.l=this.ra=this.W=null}tJa.prototype=new r;tJa.prototype.constructor=tJa;d=tJa.prototype;d.L=function(){return"AndConstraintParser"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Pqa&&a.l===this.l&&Yj(this.W,a.W)){var b=this.ra;a=a.ra;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.ra;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.JK=function(a,b,c){this.W=b;this.ra=c;if(null===a)throw Lb(Mb(),null);this.l=a;return this};
d.Pc=function(){var a=(new K).Y(this.W),b=Kh((new Cf).e("and")),a=yc(a,b);if(!a.b()){var a=a.c(),b=a.i,c=Jc(),b=sv(b,c);if(Hp(b)){var b=b.i,c=z(),b=b.cg(c.s),c=t(new u,function(a){return function(b){if(null!==b){var c=b.pa();b=b.si();return $B(a.l.nQ(),(Zf(),(new ag).d(c)),"item"+b,t(new u,function(a,b){return function(c){return c.Qb(a.ra.k+"/and/"+b,c.Ub())}}(a,b)),a.l.PB.kx,cO()).wc()}throw(new v).d(b);}}(this)),e=z(),b=b.ka(c,e.s).xb(t(new u,function(){return function(a){return a.qa()}}(this))),
c=t(new u,function(){return function(a){return a.c()}}(this)),e=z(),b=b.ka(c,e.s),c=this.ra,e=Pg().Th,a=Ke(M(),a.i);jr(c,e,b,a)}else{var b=this.l.Mb(),c=rh().mY,e=this.ra.k,f=w();Cc(b,c,e,f,"And constraints are built from multiple shape nodes",a.ga)}}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Pqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$AndConstraintParser",{Pqa:1,f:1,A:1,w:1,q:1,n:1});
function Y7a(){this.l=this.qb=this.W=this.Lc=this.ba=null}Y7a.prototype=new r;Y7a.prototype.constructor=Y7a;d=Y7a.prototype;d.L=function(){return"DataArrangementParser"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Sqa&&a.l===this.l){if(this.ba===a.ba)var b=this.Lc,c=a.Lc,b=null===b?null===c:b.h(c);else b=!1;if(b&&Yj(this.W,a.W))return b=this.qb,a=a.qb,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.ba;case 1:return this.Lc;case 2:return this.W;case 3:return this.qb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.ZV=function(){var a;a=yc((new K).Y(this.W),Kh((new Cf).e("tuple")));if(x(a)){a=a.i.i;var b=Jc();a=sv(a,b);if(Hp(a))Zf(),a=qVa(sVa(),this.Lc),a=Ue(a,this.ba,this.l.Av);else{a=qVa(sVa(),this.Lc);a=Ue(a,this.ba,this.l.Av);var b=this.l.Mb(),c=rh().Q6,e=a.k,f=this.Lc,g=w();Cc(b,c,e,g,"Tuples must have a list of types",f.ga);Zf()}a=(new $f).d(a)}else if(w()===a)Zf(),a=dVa(fVa(),this.Lc),a=Ue(a,this.ba,this.l.Av),a=(new ag).d(a);else throw(new v).d(a);if(Ep(a))return b=k8a,c=this.l,e=this.W,f=this.qb,
g=new l8a,g.xa=a.i,g.eb=e,g.Lg=f,w1.prototype.iC.call(g,c),b(g);if(Hp(a))return b=this.l,c=this.W,e=this.qb,f=new m8a,f.xa=a.i,f.eb=c,f.Lg=e,w1.prototype.iC.call(f,b),f.Hi();throw(new v).d(a);};function X7a(a,b,c,e,f,g){a.ba=c;a.Lc=e;a.W=f;a.qb=g;if(null===b)throw Lb(Mb(),null);a.l=b;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Sqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$DataArrangementParser",{Sqa:1,f:1,A:1,w:1,q:1,n:1});
function vJa(){this.l=this.ra=this.W=null}vJa.prototype=new r;vJa.prototype.constructor=vJa;d=vJa.prototype;d.L=function(){return"NotConstraintParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Xqa&&a.l===this.l&&Yj(this.W,a.W)){var b=this.ra;a=a.ra;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.ra;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.JK=function(a,b,c){this.W=b;this.ra=c;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.Pc=function(){var a=(new K).Y(this.W),b=Kh((new Cf).e("not")),a=yc(a,b);if(!a.b()&&(a=a.c(),b=$B(this.l.nQ(),(Zf(),(new $f).d(a)),"not",t(new u,function(a){return function(b){return Te(b,a.ra.k+"/not")}}(this)),!1,this.l.IJ).wc(),x(b))){var b=b.i,c=this.ra,e=Pg().ki,a=Ke(M(),a.i);Fh(c,e,b,a)}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Xqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$NotConstraintParser",{Xqa:1,f:1,A:1,w:1,q:1,n:1});function sJa(){this.l=this.ra=this.W=null}sJa.prototype=new r;sJa.prototype.constructor=sJa;d=sJa.prototype;d.L=function(){return"OrConstraintParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Yqa&&a.l===this.l&&Yj(this.W,a.W)){var b=this.ra;a=a.ra;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.W;case 1:return this.ra;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.JK=function(a,b,c){this.W=b;this.ra=c;if(null===a)throw Lb(Mb(),null);this.l=a;return this};
d.Pc=function(){var a=(new K).Y(this.W),b=Kh((new Cf).e("or")),a=yc(a,b);if(!a.b()){var a=a.c(),b=a.i,c=Jc(),b=sv(b,c);if(Hp(b)){var b=b.i,c=z(),b=b.cg(c.s),c=t(new u,function(a){return function(b){if(null!==b){var c=b.pa();b=b.si();return $B(a.l.nQ(),(Zf(),(new ag).d(c)),"item"+b,t(new u,function(a,b){return function(c){return c.Qb(a.ra.k+"/or/"+b,c.Ub())}}(a,b)),a.l.PB.kx,cO()).wc()}throw(new v).d(b);}}(this)),e=z(),b=b.ka(c,e.s).xb(t(new u,function(){return function(a){return a.qa()}}(this))),
c=t(new u,function(){return function(a){return a.c()}}(this)),e=z(),b=b.ka(c,e.s),c=this.ra,e=Pg().Vh,a=Ke(M(),a.i);jr(c,e,b,a)}else{var b=this.l.Mb(),c=rh().rY,e=this.ra.k,f=w();Cc(b,c,e,f,"Or constraints are built from multiple shape nodes",a.ga)}}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Yqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$OrConstraintParser",{Yqa:1,f:1,A:1,w:1,q:1,n:1});function rO(){this.l=this.Nb=this.Lc=null}
rO.prototype=new r;rO.prototype.constructor=rO;d=rO.prototype;d.L=function(){return"PropertiesParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Zqa&&a.l===this.l&&Yj(this.Lc,a.Lc)){var b=this.Nb;a=a.Nb;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Lc;case 1:return this.Nb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.fh=function(){var a=this.Lc.Bb,b=t(new u,function(a){return function(b){var c=a.l,h=a.Nb,k=new n8a;k.zb=b;k.Nb=h;if(null===c)throw Lb(Mb(),null);k.l=c;return k.wc().wa()}}(this)),c=uv();return a.md(b,c.gc)};function wJa(a,b,c,e){a.Lc=c;a.Nb=e;if(null===b)throw Lb(Mb(),null);a.l=b;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Zqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$PropertiesParser",{Zqa:1,f:1,A:1,w:1,q:1,n:1});
function n8a(){this.l=this.Nb=this.zb=null}n8a.prototype=new r;n8a.prototype.constructor=n8a;d=n8a.prototype;d.L=function(){return"PropertyShapeParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.$qa&&a.l===this.l&&this.zb===a.zb){var b=this.Nb;a=a.Nb;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.zb;case 1:return this.Nb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.wc=function(){var a=id(this.zb.Da);if(x(a)){var b=a.i.ya,a=this.Nb.R(b),c=Ke(M(),this.zb),a=cc(a,c);if(0<=(b.length|0)&&"/"===b.substring(0,1)&&re(ta(),b,"/"))if("//"===b)c=rj().rv,Eb(a,c,"^.*$");else{var c=(new ph).e(b),e=c.ia.length|0,c=Lh(Mh(),c.ia,1,e),c=(new ph).e(c),c=Lca(c,1),e=rj().rv;Eb(a,e,c)}c=Hc(Ic(this.zb.i),Pc());if(x(c)){c=c.i;e=yc((new K).Y(c),"required");if(!e.b()){var f=e.c(),g=!!(new Eh).Vb(f.i,this.l.Mb()).Ip().t,e=rj().Uh,g=Nh(new Oh,g?1:0,(new N).a()),f=Ke(M(),f).Wb((new Xi).a());
Fh(a,e,g,f)}c=(new K).Y(c);e=Kh((new Cf).e("readOnly"));f=this.l;g=rj().MD;Bh(c,e,Ch(Dh(f,g,this.l.Mb()),a))}c=rj().$f;e=C().zg;f=this.zb.Da;g=zc();f=L(f,g,this.l.Mb()).ya;f=(new Cf).e(f);f=Gj(f.zd);e=Nh(new Oh,Gc(D(new F,e,f)),Ke(M(),this.zb.Da));ff(a,c,e);kr(a.ea,rj().Uh).b()&&(B(a.ea,rj().rv).G.qa()?(b=rj().Uh,lr(a,b,0)):(e=!re(ta(),b,"?"),c=rj().Uh,lr(a,c,e?1:0),c=rj().$,e||(b=(new ph).e(b),b=JO(b,"?"),b=(new ph).e(b),b=Zo(b,"/"),b=(new ph).e(b),b=JO(b,"/")),Eb(a,c,b),b=rj().$f,c=C().zg,e=this.zb.Da,
f=zc(),e=L(e,f,this.l.Mb()).ya,e=(new ph).e(e),e=JO(e,"?"),Eb(a,b,Gc(D(new F,c,e)))));b=RU(SU(),this.zb,t(new u,function(a,b){return function(a){return a.Qb(b.k,a.Ub())}}(this,a)),TU(!1,!0),tO(),this.l.Mb()).wc();b.b()||(b=b.c(),c=this.zb.i.pb().nb,e=O().yd,c===e&&b.ha().Wb((new GO).a()),c=rj().If,ff(a,c,b));return(new A).d(a)}if(w()===a)return a=this.l.Mb(),b=rh().K6,c=this.zb.Da,e=w(),Cc(a,b,"",e,"Invalid property name",c.ga),w();throw(new v).d(a);};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({$qa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$PropertyShapeParser",{$qa:1,f:1,A:1,w:1,q:1,n:1});function uJa(){this.l=this.ra=this.W=null}uJa.prototype=new r;uJa.prototype.constructor=uJa;d=uJa.prototype;d.L=function(){return"XoneConstraintParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.era&&a.l===this.l&&Yj(this.W,a.W)){var b=this.ra;a=a.ra;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.W;case 1:return this.ra;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.JK=function(a,b,c){this.W=b;this.ra=c;if(null===a)throw Lb(Mb(),null);this.l=a;return this};
d.Pc=function(){this.l.Hq.R(this.ra);var a=(new K).Y(this.W),b=Kh((new Cf).e("xor")),a=yc(a,b);if(!a.b()){var a=a.c(),b=a.i,c=Jc(),b=sv(b,c);if(Hp(b)){var b=b.i,c=z(),b=b.cg(c.s),c=t(new u,function(a){return function(b){if(null!==b){var c=b.pa();b=b.si();return $B(a.l.nQ(),(Zf(),(new ag).d(c)),"item"+b,t(new u,function(a,b){return function(c){return c.Qb(a.ra.k+"/xor/"+b,c.Ub())}}(a,b)),a.l.PB.kx,cO()).wc()}throw(new v).d(b);}}(this)),e=z(),b=b.ka(c,e.s).xb(t(new u,function(){return function(a){return a.qa()}}(this))),
c=t(new u,function(){return function(a){return a.c()}}(this)),e=z(),b=b.ka(c,e.s),c=this.ra,e=Pg().Xh,a=Ke(M(),a.i);jr(c,e,b,a)}else{var b=this.l.Mb(),c=rh().xY,e=this.ra.k,f=w();Cc(b,c,e,f,"Xone constraints are built from multiple shape nodes",a.ga)}}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({era:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$XoneConstraintParser",{era:1,f:1,A:1,w:1,q:1,n:1});function vTa(){this.m=this.U=null}
vTa.prototype=new r;vTa.prototype.constructor=vTa;d=vTa.prototype;d.L=function(){return"ReferenceDeclarations"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ira){var b=this.U;a=a.U;return null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Yt=function(a,b){this.U.Ih((new P).N(a,b));var c=CIa(this.m.yl(),a);if(vd(b)||o8a(b))this.m.yl().ida=this.m.yl().ida.Zb((new P).N(a,b));else if(sd(b))b.ak().X(t(new u,function(a,b){return function(a){return Ai(b,a)}}(this,c)));else throw(new v).d(b);};function n3(a){a=a.U.Rr().pg();return xx(a)}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({ira:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.ReferenceDeclarations",{ira:1,f:1,A:1,w:1,q:1,n:1});
function Fx(){this.m=this.U=this.W=this.oa=this.nf=null}Fx.prototype=new r;Fx.prototype.constructor=Fx;d=Fx.prototype;d.L=function(){return"ReferencesParser"};d.H=function(){return 4};
function Dx(a,b){b=p8a(a,b);a.U.X(t(new u,function(a,b){return function(a){a:{if(null!==a){var c=a.Od,h=a.oo;if(Sl(c)&&null!==h){a=h.Bf;b.U.Ih((new P).N(a,c));var h=b.m.yl(),k=h.Ti,c=XB(new YB,c.ze(),jd(c));h.Ti=k.Zb((new P).N(a,c));break a}}if(null!==a&&(c=a.Od,h=a.oo,Ol(c)&&null!==h)){b.U.Ih((new P).N(h.Bf,c));break a}null!==a&&(c=a.Od,a=a.oo,(vd(c)||o8a(c))&&null!==a&&b.Yt(a.Bf,c))}}}(a,b)));return b}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.jra){var b=this.nf,c=a.nf;if((null===b?null===c:b.h(c))&&this.oa===a.oa&&Yj(this.W,a.W))return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.nf;case 1:return this.oa;case 2:return this.W;case 3:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.jM=function(a){a=this.U.Ib(t(new u,function(a,c){return function(a){return a.oo.Bf===c}}(this,a)));if(a.b())return w();a=a.c();return(new A).d(a.Od)};function Ex(a,b,c,e,f,g){a.nf=b;a.oa=c;a.W=e;a.U=f;a.m=g;return a}
d.uG=function(a,b){var c=Zb(a.ha(),n(nd));if(x(c)){var c=c.i,e=a.ha(),f=e.jf;Wg();for(var g=Yg(new Zg,(new $g).a()),f=f.Lb;!f.b();){var h=f.fa();!1!==!lz(h)&&ah(g,h);f=f.sa()}e.jf=g.gb;b=c.Xb.Ij(b);b=(new kz).Qj(b);return ac(a,b)}if(w()===c){b=[b];if(0===(b.length|0))b=Yd();else{c=Zd(new ee,Yd());e=0;for(g=b.length|0;e<g;)fe(c,b[e]),e=1+e|0;b=c.gb}b=(new kz).Qj(b);return ac(a,b)}throw(new v).d(c);};d.y=function(){return Y(this)};
function p8a(a,b){wTa||(wTa=(new GV).a());var c=uTa(a.m),e=yc((new K).Y(a.W),a.oa);if(!e.b()){var e=e.c(),f=e.i.pb().nb;if(O().ua===f)e=e.i,f=Pc(),L(e,f,a.m).Bb.X(t(new u,function(a,b,c){return function(e){var f=e.Da,g=zc(),f=L(f,g,a.m).ya,g=sKa(tKa(),e,a.m);if(!g.b()){var h=g.c(),g=a.jM(h);if(!g.b())if(g=g.c(),sd(g))e=a.nf,h=(new P).N(g.k,h),a.uG(e,(new P).N(f,h)),b.Yt(f,g);else{var f=a.m,h=Bc().PR,g="Expected module but found: "+g,da=w();Cc(f,h,c,da,g,e.ga)}}}}(a,c,b)));else if(O().yd!==f){a=a.m;
var f=of().YR,g="Invalid ast type for uses: "+e.i.pb().nb,e=e.i,h=w();Cc(a,f,b,h,g,e.ga)}}return c}d.M=function(){return Z(this)};d.$classData=q({jra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.ReferencesParser",{jra:1,f:1,A:1,w:1,q:1,n:1});function o3(){this.Xk=this.ra=null}o3.prototype=new r;o3.prototype.constructor=o3;d=o3.prototype;d.L=function(){return"RequiredShapeEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.kra){var b=this.ra,c=a.ra;if(null===b?null===c:b.h(c))return b=this.Xk,a=a.Xk,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.Xk;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function q8a(a,b,c){a.ra=b;a.Xk=c;return a}
function r8a(a){a=a.Xk;if(a.b())return w();a=a.c();return Yh(a.t.E,n(p3))?(new A).d(Vw(new Ww,"required",s8a(new q3,0<Aa(tj(a.t.t))?"true":"false",O().ui),O().Wa,Gd())):w()}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({kra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RequiredShapeEmitter",{kra:1,f:1,A:1,w:1,q:1,n:1});function r3(){this.m=this.bg=this.W=null}r3.prototype=new r;r3.prototype.constructor=r3;d=r3.prototype;d.L=function(){return"ShapeDependenciesParser"};
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.mra&&Yj(this.W,a.W)){var b=this.bg;a=a.bg;return null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.bg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function t8a(a,b,c,e){a.W=b;a.bg=c;a.m=e;return a}
d.fh=function(){var a=this.W.Bb,b=t(new u,function(a){return function(b){var c=a.bg,h=a.m,k=new z6a;k.zb=b;k.bg=c;k.m=h;return k.wc().wa()}}(this)),c=uv();return a.md(b,c.gc)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({mra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.ShapeDependenciesParser",{mra:1,f:1,A:1,w:1,q:1,n:1});function u8a(){this.jP=this.kx=!1}u8a.prototype=new r;u8a.prototype.constructor=u8a;d=u8a.prototype;d.L=function(){return"TypeInfo"};
d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.qra?this.kx===a.kx&&this.jP===a.jP:!1};d.K=function(a){switch(a){case 0:return this.kx;case 1:return this.jP;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){var a=-889275714,a=zI().Ga(a,this.kx?1231:1237),a=zI().Ga(a,this.jP?1231:1237);return zI().Wd(a,2)};d.M=function(){return Z(this)};function TU(a,b){var c=new u8a;c.kx=a;c.jP=b;return c}
d.$classData=q({qra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.TypeInfo",{qra:1,f:1,A:1,w:1,q:1,n:1});function gx(){this.W=this.m=this.Ea=this.R_=null}gx.prototype=new r;gx.prototype.constructor=gx;d=gx.prototype;d.L=function(){return"XMLSerializerParser"};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.tra?this.R_===a.R_?Yj(this.Ea,a.Ea):!1:!1};
d.K=function(a){switch(a){case 0:return this.R_;case 1:return this.Ea;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function nna(a){NVa||(NVa=(new kX).a());var b;b=a.Ea;b=Lr(M(),b);b=(new s3).P((new Q).a(),b);var c=ho().JF;b=dj(b,c,!1);c=ho().HJ;b=dj(b,c,!1);c=yc((new K).Y(a.W),"attribute");if(!c.b()){var e=c.c(),f=(new Eh).Vb(e.i,a.m),c=ho().JF,f=f.Ip(),e=Ke(M(),e).Wb((new Xi).a());Fh(b,c,f,e)}c=yc((new K).Y(a.W),"wrapped");c.b()||(e=c.c(),f=(new Eh).Vb(e.i,a.m),c=ho().HJ,f=f.Ip(),e=Ke(M(),e).Wb((new Xi).a()),Fh(b,c,f,e));c=yc((new K).Y(a.W),"name");c.b()||(e=c.c(),f=(new Eh).Vb(e.i,a.m),c=ho().$,f=f.Pf(),e=Ke(M(),
e).Wb((new Xi).a()),Fh(b,c,f,e));c=yc((new K).Y(a.W),"namespace");c.b()||(e=c.c(),f=(new Eh).Vb(e.i,a.m),c=ho().kN,f=f.Pf(),e=Ke(M(),e),Fh(b,c,f,e));c=yc((new K).Y(a.W),"prefix");c.b()||(e=c.c(),f=(new Eh).Vb(e.i,a.m),c=ho().nN,f=f.Pf(),e=Ke(M(),e),Fh(b,c,f,e));xO(a.m,b.k,a.W,"xmlSerialization");return b}d.y=function(){return Y(this)};d.M=function(){return Z(this)};function ona(a,b,c,e){a.R_=b;a.Ea=c;a.m=e;b=Pc();a.W=L(c,b,e);return a}
d.$classData=q({tra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.XMLSerializerParser",{tra:1,f:1,A:1,w:1,q:1,n:1});function t3(){this.xl=this.p0=null}t3.prototype=new r;t3.prototype.constructor=t3;d=t3.prototype;d.L=function(){return"DataNodeParserResult"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ura){var b=this.p0,c=a.p0;if(null===b?null===c:b.h(c))return b=this.xl,a=a.xl,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.p0;case 1:return this.xl;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fH=function(a,b){this.p0=a;this.xl=b;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({ura:0},!1,"amf.plugins.document.webapi.parser.spec.domain.DataNodeParserResult",{ura:1,f:1,A:1,w:1,q:1,n:1});function lO(){this.mx=this.Tv=this.hM=!1}lO.prototype=new r;lO.prototype.constructor=lO;function v8a(){}d=v8a.prototype=lO.prototype;
d.L=function(){return"ExampleOptions"};d.H=function(){return 3};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.U7?this.hM===a.hM&&this.Tv===a.Tv&&this.mx===a.mx:!1};d.K=function(a){switch(a){case 0:return this.hM;case 1:return this.Tv;case 2:return this.mx;default:throw(new X).e(""+a);}};function Aca(a,b){return di(b)?(new lO).wA(a.hM,a.Tv,!0):a}d.u=function(){return U(W(),this)};
d.y=function(){var a=-889275714,a=zI().Ga(a,this.hM?1231:1237),a=zI().Ga(a,this.Tv?1231:1237),a=zI().Ga(a,this.mx?1231:1237);return zI().Wd(a,3)};d.wA=function(a,b,c){this.hM=a;this.Tv=b;this.mx=c;return this};d.M=function(){return Z(this)};d.$classData=q({U7:0},!1,"amf.plugins.document.webapi.parser.spec.domain.ExampleOptions",{U7:1,f:1,A:1,w:1,q:1,n:1});function w8a(){this.eh=this.Ea=null;this.mx=this.EO=this.Tv=!1;this.m=null}w8a.prototype=new r;w8a.prototype.constructor=w8a;d=w8a.prototype;
d.L=function(){return"NodeDataNodeParser"};d.H=function(){return 5};function dx(a,b,c,e,f,g){var h=new w8a;h.Ea=a;h.eh=b;h.Tv=c;h.EO=e;h.mx=f;h.m=g;return h}d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.yra?Yj(this.Ea,a.Ea)&&this.eh===a.eh&&this.Tv===a.Tv&&this.EO===a.EO?this.mx===a.mx:!1:!1};d.K=function(a){switch(a){case 0:return this.Ea;case 1:return this.eh;case 2:return this.Tv;case 3:return this.EO;case 4:return this.mx;default:throw(new X).e(""+a);}};
function cx(a){var b=a.Tv?(new x8a).e(a.m.Xg):a.m,c=w(),e=!1,f=null,g=Hc(Ic(a.Ea),zc());a:{if(x(g)&&(e=!0,f=g,kva(f.i.tH))){e=(new A).d(a.Ea);break a}if(!e||!a.mx){if(e&&(g=f.i,Yla().cj(g.ya).qa())){c=(new A).d(g.ya);e=Hc(Ic(a.Ea),zc());if(e.b())e=w();else{f=e.c();if(a.EO)e=CF(DF(),f.ya,f.ga.Of,qE().xn,a.m);else{DF();var e=f.ya,f=f.ga.Of,g=a.Ea.ga,g=Af(Bf(),g.vf,g.Ef,g.ag,g.fg).vf,h=a.Ea.ga,h=Af(Bf(),h.vf,h.Ef,h.ag,h.fg).Ef,e=CF(0,e,f,pE(qE(),g,h,(qE(),0)),b)}e=e.PA(!0);e=hd(e,new y8a)}break a}if(e&&
(e=f.i,Xla().cj(e.ya).qa())){e=w();break a}}e=(new A).d(a.Ea)}f=!1;g=null;if(b&&b.$classData&&b.$classData.v.q7&&(f=!0,g=b,g.sX&&c.qa()))return b=c,b.b()?b=w():(b=b.c(),b=(new A).d((new u3).e(b))),b=b.wa(),z8a(a,e,b);if(f&&g.sX)return(new t3).fH(e,w());b=c;b.b()?b=w():(b=b.c(),b=(new A).d((new u3).e(b)));b=b.wa();return z8a(a,e,b)}d.u=function(){return U(W(),this)};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.Ea)),a=zI().Ga(a,yI(zI(),this.eh)),a=zI().Ga(a,this.Tv?1231:1237),a=zI().Ga(a,this.EO?1231:1237),a=zI().Ga(a,this.mx?1231:1237);return zI().Wd(a,5)};d.M=function(){return Z(this)};
function z8a(a,b,c){if(b.b())a=w();else{var e=b.c(),f=(new A).d(a.eh),g=(new Mv).a(),h=(new Ie).a(),f=Nv(new Ov,e,g,f,h,a.m).Ir(),g=f.ha(),k=g.jf;Wg();h=Yg(new Zg,(new $g).a());for(k=k.Lb;!k.b();){var l=k.fa();!1!==!o0a(l)&&ah(h,l);k=k.sa()}g.jf=h.gb;g=f.ha();tf();e=e.we().ga;g.Wb((new uf).Ui(zf(0,Af(Bf(),e.vf,e.Ef,e.ag,e.fg))));c.X(t(new u,function(a,b){return function(a){return b.ha().Wb(a)}}(a,f)));a=(new A).d(f)}return(new t3).fH(b,a)}
d.$classData=q({yra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.NodeDataNodeParser",{yra:1,f:1,A:1,w:1,q:1,n:1});function v3(){this.m=this.Ys=null}v3.prototype=new r;v3.prototype.constructor=v3;d=v3.prototype;d.L=function(){return"Oas3ResponseExampleParser"};
d.Dt=function(){var a=this.Ys.Da,b=zc(),a=L(a,b,this.m).ya,b=Tqa(Vqa(),this.Ys);M();var c=(new N).a(),b=Ue(b,a,c),c=this.m.Km,e=aP();return null!==c&&c===e?(new A8a).g1(this.Ys,t(new u,function(a,b){return function(c){var e=Ke(M(),a.Ys);cc(c,e);M();e=(new N).a();Ue(c,b,e)}}(this,a)),(new lO).wA(!1,!0,!1),this.m).Dt():w3(x3(new y3,this.Ys.i,b,(new lO).wA(!1,!0,!1),this.m))};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Hra?this.Ys===a.Ys:!1};
d.K=function(a){switch(a){case 0:return this.Ys;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.jC=function(a,b){this.Ys=a;this.m=b;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Hra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas3ResponseExampleParser",{Hra:1,f:1,A:1,w:1,q:1,n:1});function z3(){this.m=this.zb=null}z3.prototype=new r;z3.prototype.constructor=z3;d=z3.prototype;d.L=function(){return"Oas3ResponseExamplesParser"};
d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Ira?this.zb===a.zb:!1};d.K=function(a){switch(a){case 0:return this.zb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fh=function(){var a=H(Wg(),G()),b=this.zb.i,c=Pc(),b=L(b,c,this.m).Bb,c=t(new u,function(a,b){return function(c){return vh(b,(new v3).jC(c,a.m).Dt())}}(this,a)),e=uv();b.ka(c,e.gc);return a};d.jC=function(a,b){this.zb=a;this.m=b;return this};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({Ira:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas3ResponseExamplesParser",{Ira:1,f:1,A:1,w:1,q:1,n:1});function B8a(){this.m=this.eh=this.W=null}B8a.prototype=new r;B8a.prototype.constructor=B8a;d=B8a.prototype;d.L=function(){return"OasExamplesParser"};function C8a(a,b,c){var e=new B8a;e.W=a;e.eh=b;e.m=c;return e}d.H=function(){return 2};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Ura?Yj(this.W,a.W)?this.eh===a.eh:!1:!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.eh;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.fh=function(){var a=yc((new K).Y(this.W),"example"),b=yc((new K).Y(this.W),"examples");if(x(a)){var c=a.i;if(w()===b)return Di(),a=[(new v3).jC(c,this.m).Dt()],a=(new J).aa(a),b=Di().s,Ei(a,b)}if(w()===a&&x(b))return(new z3).jC(b.i,this.m).fh();if(x(a)&&x(b)){var a=this.m,b=rh().YM,c=this.eh,e=this.W,f=w();Cc(a,b,c,f,"Properties 'example' and 'examples' are exclusive and cannot be declared together",e.ga)}return G()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Ura:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasExamplesParser",{Ura:1,f:1,A:1,w:1,q:1,n:1});function A3(){this.m=this.qb=this.W=null}A3.prototype=new r;A3.prototype.constructor=A3;d=A3.prototype;d.L=function(){return"OasHeaderParametersParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Xra&&Yj(this.W,a.W)){var b=this.qb;a=a.qb;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.W;case 1:return this.qb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.hx=function(a,b,c){this.W=a;this.qb=b;this.m=c;return this};d.fh=function(){var a=this.W.Bb,b=t(new u,function(a){return function(b){var c=b.i,h=Pc();return(new B3).hx(L(c,h,a.m),t(new u,function(a,b){return function(c){var e=Ke(M(),b);cc(c,e);var e=Ej().$,f=(new Eh).Vb(b.Da,a.m).Pf();ff(c,e,f);a.qb.R(c)}}(a,b)),a.m).BC()}}(this)),c=uv();return a.ka(b,c.gc)};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Xra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasHeaderParametersParser",{Xra:1,f:1,A:1,w:1,q:1,n:1});function C3(){this.Q=this.U=this.Qo=this.o=this.Wg=this.oa=null}C3.prototype=new r;C3.prototype.constructor=C3;function D8a(a,b,c,e,f,g,h){a.oa=b;a.Wg=c;a.o=e;a.Qo=f;a.U=g;a.Q=h;return a}d=C3.prototype;d.L=function(){return"OasParametersEmitter"};d.H=function(){return 5};
function E8a(a){var b=z();a=[F8a(a,a.Wg,a.U)];return H(b,(new J).aa(a))}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.asa){if(this.oa===a.oa)var b=this.Wg,c=a.Wg,b=null===b?null===c:b.h(c);else b=!1;b&&this.o===a.o?(b=this.Qo,c=a.Qo,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Wg;case 2:return this.o;case 3:return this.Qo;case 4:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function G8a(a){var b=H(Wg(),G()),c=a.Wg.jn(t(new u,function(a){return function(b){var c=a.Q.Pg();Sp().bs===c?(c=B(b.g,Ej().df),Xb(c,"query")?c=!0:(c=B(b.g,Ej().df),c=Xb(c,"header")),c?c=!0:(c=B(b.g,Ej().df),c=Xb(c,"path")),c?b=!0:(b=B(b.g,Ej().df),b=Xb(b,"cookie"))):b=Wa().Ia(B(b.g,Ej().Fc)).b()||di(B(b.g,Ej().Fc))||Vh(B(b.g,Ej().Fc))||Si(B(b.g,Ej().Fc));return b}}(a)));if(null===c)throw(new v).d(c);var e=c.pa(),c=c.Ba();(e.Fa()||a.Qo.Fa())&&vh(b,F8a(a,e,a.U));c.Fa()&&(e=c.xb(t(new u,function(){return function(a){a=
B(a.g,Ej().df);return Xb(a,"path")}}(a))),e.Fa()&&vh(b,H8a(new D3,a,Hv((new Cf).e("uriParameters")),e)));return b}
d.Ua=function(){var a=H(Wg(),G()),b=this.Wg.jn(t(new u,function(){return function(a){return Wa().Ia(B(a.g,Ej().Fc)).b()||di(B(a.g,Ej().Fc))||Vh(B(a.g,Ej().Fc))||Si(B(a.g,Ej().Fc))}}(this)));if(null===b)throw(new v).d(b);var c=b.pa(),b=b.Ba();(c.Fa()||this.Qo.Fa())&&vh(a,F8a(this,c,this.U));if(b.Fa()){var c=b.xb(t(new u,function(){return function(a){a=B(a.g,Ej().df);return Xb(a,"query")}}(this))),e=b.xb(t(new u,function(){return function(a){a=B(a.g,Ej().df);return Xb(a,"header")}}(this))),b=b.xb(t(new u,
function(){return function(a){a=B(a.g,Ej().df);return Xb(a,"path")}}(this)));c.Fa()&&vh(a,H8a(new D3,this,Hv((new Cf).e("queryParameters")),c));e.Fa()&&vh(a,H8a(new D3,this,Hv((new Cf).e("headers")),e));b.Fa()&&vh(a,H8a(new D3,this,Hv((new Cf).e("baseUriParameters")),b))}return a};
function I8a(a,b,c,e){var f=H(Wg(),G());b.X(t(new u,function(a,b,c,e){return function(f){return vh(b,J8a(f,c,e,!1,a.Q))}}(a,f,c,e)));a.Qo.X(t(new u,function(a,b,c,e){return function(f){return vh(b,(new E3).GU(f,c,e,a.Q))}}(a,f,c,e)));return c.Cb(f)}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({asa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasParametersEmitter",{asa:1,f:1,A:1,w:1,q:1,n:1});function NO(){this.m=this.eh=this.Tb=null}NO.prototype=new r;
NO.prototype.constructor=NO;d=NO.prototype;d.L=function(){return"OasParametersParser"};function $Ja(a,b,c,e){a.Tb=b;a.eh=c;a.m=e;return a}d.H=function(){return 2};
function K8a(a,b){if(b.b())return w();M();var c=(new N).a(),c=(new si).P((new Q).a(),c);M();var e=(new N).a(),c=Ue(c,"formData",e),e=a.eh,f=H(z(),G()),c=L8a(c,e,f);b.X(t(new u,function(a,b){return function(a){if(yb(a).qa())var c=H(z(),G()),c=Px(a,c);else c=a;a=B(c.g,vn().$).G;a=F3(b,a.b()?null:a.c());var e=!1,f=null,g=Zb(c.E,n(M8a));a:if(w()===g){var E=rj().Uh;lr(a,E,0)}else{if(x(g)&&(e=!0,f=g,E=f.i,!E.RL)){e=rj().Uh;E=Nh(new Oh,0,(M(),(new N).a()).Wb((new uf).Ui(E.cc)).Wb((new Xi).a()));ff(a,e,E);
break a}if(e)e=f.i,E=rj().Uh,e=Nh(new Oh,1,(M(),(new N).a()).Wb((new uf).Ui(e.cc)).Wb((new Xi).a())),ff(a,E,e);else throw(new v).d(g);}c=Wa().Ia(B(c.g,vn().Fc));c.b()||(c=c.c(),E=rj().If,c=ff(a,E,c),a=a.k,E=H(z(),G()),N8a(c,a,E))}}(a,c)));M();b=(new N).a();b=(new VO).P((new Q).a(),b);M();e=(new N).a();b=Ue(b,"formData",e);a=a.eh;H(z(),G());a=cj(b,a);b=vn().Fc;a=ff(a,b,c);c=(new i1).a();return(new A).d(ac(a,c))}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.dsa){var b=this.Tb,c=a.Tb;return(null===b?null===c:b.h(c))?this.eh===a.eh:!1}return!1};d.K=function(a){switch(a){case 0:return this.Tb;case 1:return this.eh;default:throw(new X).e(""+a);}};
function O8a(a,b){var c=t(new u,function(a){return function(b){var c=b.Se;if(Ep(c)){var c=c.i,e=H(z(),G()),c=Px(c,e),e=Wa(),l=B(c.g,Ej().Fw).G,e=e.Ia(l.b()?null:l.c());e.b()?b=w():(e=e.c(),l=Wa(),c=B(c.g,Ej().df).G,c=l.Ia(c.b()?null:c.c()),c.b()?b=w():(c=c.c(),b=(new A).d(P8a(a,b,e,c))));return b.wa()}if(Hp(c))return c=c.i,e=H(z(),G()),c=Px(c,e),e=c.g,l=vn().$,e=e.Pb.Ta(l),e.b()?e=w():(e=Zb(e.c().E,n(Q8a)),e.b()?e=w():(e=e.c(),e=(new A).d(e.BL))),e.b()?(c=B(c.g,vn().$).G,c=c.b()?null:c.c()):c=e.c(),
(new A).d(P8a(a,b,c,b.dV?"formData":"body")).wa();throw(new v).d(c);}}(a)),e=z();b=b.md(c,e.s).Ym(t(new u,function(){return function(a){if(null!==a)return(new P).N(a.ba,a.YN);throw(new v).d(a);}}(a)));for(b=(new dd).Qd(b).Rb.gf();b.Qa();)c=b.Sa(),1<c.Ka()&&c.sa().X(t(new u,function(a){return function(b){if(null!==b){var c=b.JV,e=b.ba;b=b.YN;var l=c.Lc;if(x(l)){var l=l.i,p=a.m,y=rh().aY,c=c.zr.k,e="Parameter "+e+" of type "+b+" was found duplicated";b=w();Cc(p,y,c,b,e,l.ga)}else{if(w()!==l)throw(new v).d(l);
l=a.m;p=rh().aY;c=c.zr.k;e="Parameter "+e+" of type "+b+" was found duplicated";b=w();var y=w(),I=w();l.Hc(p.k,c,b,e,y,xc().tb,I)}}else throw(new v).d(b);}}(a)))}d.u=function(){return U(W(),this)};function R8a(a,b){var c=rh().iZ;1<b.Ka()&&b.sa().X(t(new u,function(a,b){return function(c){var h=a.m,k=c.zr.k;c=c.Lc.c();var l=w();Cc(h,b,k,l,"Cannot declare more than one body parameter for a request",c.ga)}}(a,c)))}
function aKa(a,b){var c=(new Ie).a(),e=a.Tb,c=t(new u,function(a,b){return function(c){return a.m.Oh.YV((Zf(),(new ag).d(c)),a.eh,w(),b).FL()}}(a,c)),f=z(),f=e.ka(c,f.s),e=t(new u,function(){return function(a){return(a.dV?(new Ox).wp(a.Se).Mk():w()).wa()}}(a)),c=z(),e=f.md(e,c.s),c=f.xb(t(new u,function(){return function(a){return a.HBa}}(a)));O8a(a,f);if(b){if(c.Fa()&&e.Fa()){var g=c.fa();b=a.m;var h=rh().gZ,k=g.zr.k,g=g.Lc.c(),l=w();Cc(b,h,k,l,"Cannot declare body and formData params at the same time for a request",
g.ga)}R8a(a,c)}b=t(new u,function(){return function(a){a=a.CL;if(a.b())var b=!0;else b=B(a.c().g,Ej().df),b=Xb(b,"query");return(b?a:w()).wa()}}(a));h=z();b=f.md(b,h.s);h=t(new u,function(){return function(a){a=a.CL;if(a.b())var b=!0;else{var b=a.c(),c=B(b.g,Ej().df);Xb(c,"query")?c=!1:(c=B(b.g,Ej().df),c=!Xb(c,"header"));c?(c=B(b.g,Ej().df),c=!Xb(c,"path")):c=!1;c?(b=B(b.g,Ej().df),b=!Xb(b,"cookie")):b=!1}return(b?a:w()).wa()}}(a));k=z();h=f.md(h,k.s);k=z();b=b.la(h,k.s);var h=t(new u,function(){return function(a){a=
a.CL;if(a.b())var b=!0;else b=B(a.c().g,Ej().df),b=Xb(b,"path");return(b?a:w()).wa()}}(a)),k=z(),h=f.md(h,k.s),k=t(new u,function(){return function(a){a=a.CL;if(a.b())var b=!0;else b=B(a.c().g,Ej().df),b=Xb(b,"header");return(b?a:w()).wa()}}(a)),g=z(),k=f.md(k,g.s),g=t(new u,function(){return function(a){a=a.CL;if(a.b())var b=!0;else b=B(a.c().g,Ej().df),b=Xb(b,"cookie");return(b?a:w()).wa()}}(a)),l=z(),f=f.md(g,l.s),g=G(),l=t(new u,function(){return function(a){return(a.dV?w():(new Ox).wp(a.Se).Mk()).wa()}}(a)),
p=z(),c=c.md(l,p.s);a=K8a(a,e).wa();e=z();return KO(new LO,b,h,k,f,g,c.la(a,e.s))}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({dsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasParametersParser",{dsa:1,f:1,A:1,w:1,q:1,n:1});function S8a(){this.l=this.YN=this.ba=this.JV=null}S8a.prototype=new r;S8a.prototype.constructor=S8a;d=S8a.prototype;d.L=function(){return"ParameterInformation"};d.H=function(){return 3};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.esa&&a.l===this.l?this.JV===a.JV&&this.ba===a.ba?this.YN===a.YN:!1:!1};d.K=function(a){switch(a){case 0:return this.JV;case 1:return this.ba;case 2:return this.YN;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function P8a(a,b,c,e){var f=new S8a;f.JV=b;f.ba=c;f.YN=e;if(null===a)throw Lb(Mb(),null);f.l=a;return f}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({esa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasParametersParser$ParameterInformation",{esa:1,f:1,A:1,w:1,q:1,n:1});function GTa(){this.EH=this.$n=null}GTa.prototype=new r;GTa.prototype.constructor=GTa;d=GTa.prototype;d.L=function(){return"OasPayloads"};d.H=function(){return 2};d.dP=function(a,b){this.$n=a;this.EH=b;return this};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.isa){var b=this.$n,c=a.$n;if(null===b?null===c:b.h(c))return b=this.EH,a=a.EH,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.$n;case 1:return this.EH;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({isa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasPayloads",{isa:1,f:1,A:1,w:1,q:1,n:1});
function T8a(){this.m=this.Ys=null}T8a.prototype=new r;T8a.prototype.constructor=T8a;d=T8a.prototype;d.L=function(){return"OasResponseExampleParser"};d.Dt=function(){var a=Tqa(Vqa(),this.Ys),b=lh().Md,c=this.Ys.Da,e=zc(),c=L(c,e,this.m).ya,a=Eb(a,b,c);return w3(x3(new y3,this.Ys.i,a,(new lO).wA(!1,!0,!1),this.m))};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.msa?this.Ys===a.Ys:!1};
d.K=function(a){switch(a){case 0:return this.Ys;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.jC=function(a,b){this.Ys=a;this.m=b;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({msa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasResponseExampleParser",{msa:1,f:1,A:1,w:1,q:1,n:1});function WO(){this.m=this.zb=null}WO.prototype=new r;WO.prototype.constructor=WO;d=WO.prototype;d.L=function(){return"OasResponseExamplesParser"};
d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.osa?this.zb===a.zb:!1};d.K=function(a){switch(a){case 0:return this.zb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fh=function(){var a=H(Wg(),G()),b=this.zb.i,c=Pc(),b=L(b,c,this.m),b=qs((new K).Y(b),".*/.*"),c=t(new u,function(a,b){return function(c){return vh(b,(new T8a).jC(c,a.m).Dt())}}(this,a)),e=pf();b.ka(c,e.s);return a};d.jC=function(a,b){this.zb=a;this.m=b;return this};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({osa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasResponseExamplesParser",{osa:1,f:1,A:1,w:1,q:1,n:1});function LO(){this.Nw=this.RB=this.ky=this.Fg=this.Hg=this.Ft=null}LO.prototype=new r;LO.prototype.constructor=LO;d=LO.prototype;d.L=function(){return"Parameters"};
function U8a(a,b,c){var e=t(new u,function(){return function(a){var b=B(a.g,Ej().$).G,b=b.b()?null:b.c();return(new P).N(b,a)}}(a)),f=z();b=b.ka(e,f.s).$g(fc().ci);a=t(new u,function(){return function(a){var b=B(a.g,Ej().$).G,b=b.b()?null:b.c();return(new P).N(b,a)}}(a));e=z();c=c.ka(a,e.s).$g(fc().ci);c=b.gr(c);return(new dd).Qd(c).Rb.gf().kd()}d.H=function(){return 6};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.vsa){var b=this.Ft,c=a.Ft;(null===b?null===c:b.h(c))?(b=this.Hg,c=a.Hg,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Fg,c=a.Fg,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.ky,c=a.ky,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.RB,c=a.RB,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Nw,a=a.Nw,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Ft;case 1:return this.Hg;case 2:return this.Fg;case 3:return this.ky;case 4:return this.RB;case 5:return this.Nw;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function dMa(a,b){var c=V8a(a,a.Ft,b.Ft),e=V8a(a,a.Hg,b.Hg),f=V8a(a,a.Fg,b.Fg),g=V8a(a,a.ky,b.ky);a=V8a(a,a.RB,b.RB);return KO(new LO,c,e,f,g,a,b.Nw)}function KO(a,b,c,e,f,g,h){a.Ft=b;a.Hg=c;a.Fg=e;a.ky=f;a.RB=g;a.Nw=h;return a}
function MO(a,b){var c=U8a(a,a.Ft,b.Ft),e=U8a(a,a.Hg,b.Hg),f=U8a(a,a.Fg,b.Fg),g=U8a(a,a.ky,b.ky),h=U8a(a,a.RB,b.RB);a=a.Nw;b=b.Nw;var k=z();return KO(new LO,c,e,f,g,h,a.la(b,k.s))}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Fa=function(){return this.Ft.Fa()||this.Hg.Fa()||this.Fg.Fa()||this.Nw.Fa()||this.ky.Fa()};
function V8a(a,b,c){var e=t(new u,function(){return function(a){var b=B(a.g,Ej().$).G,b=b.b()?null:b.c();return(new P).N(b,a)}}(a)),f=z();b=b.ka(e,f.s).$g(fc().ci);a=t(new u,function(){return function(a){var b=B(a.g,Ej().$).G,b=b.b()?null:b.c();return(new P).N(b,a)}}(a));e=z();c=c.ka(a,e.s).$g(fc().ci);c=b.gr(c);return(new dd).Qd(c).Rb.gf().kd()}d.$classData=q({vsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Parameters",{vsa:1,f:1,A:1,w:1,q:1,n:1});
function HO(){this.m=this.Bi=this.Nb=this.Ea=null}HO.prototype=new r;HO.prototype.constructor=HO;d=HO.prototype;d.L=function(){return"ParametrizedDeclarationParser"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.wsa){if(Yj(this.Ea,a.Ea))var b=this.Nb,c=a.Nb,b=null===b?null===c:b.h(c);else b=!1;return b?this.Bi===a.Bi:!1}return!1};
function W8a(a,b){var c=a.m.Oo(b);if(Ep(c)){var c=c.i,e=a.Nb.R(c);b=Lr(M(),b);b=cc(e,b);e=zW().ef;a=a.Bi.zf(c,Or());M();var f=(new N).a();a=gL(a,c,f);return ff(b,e,a)}if(Hp(c)){c=c.i;e=zc();f=L(c,e,a.m).ya;e=a.Bi.zf(f,Nr());M();var g=(new N).a(),e=gL(e,f,g);a=a.Nb.R(f);X8a(a,f,c);b=Lr(M(),b);a=cc(a,b);b=zW().ef;return ff(a,b,e)}throw(new v).d(c);}d.K=function(a){switch(a){case 0:return this.Ea;case 1:return this.Nb;case 2:return this.Bi;default:throw(new X).e(""+a);}};
function X8a(a,b,c){var e=zW().$;b=Nh(new Oh,b,(new N).a());c=Ke(M(),c);Fh(a,e,b,c)}d.u=function(){return U(W(),this)};function TJa(a,b,c,e,f){a.Ea=b;a.Nb=c;a.Bi=e;a.m=f;return a}
function SJa(a){var b=Hc(Ic(a.Ea),Pc()),b=b.b()?w():b.c().Bb.pc();if(x(b)){var c=b.i,b=c.i.pb().nb;if(O().yd===b)return W8a(a,c.Da);var b=c.Da,e=zc(),e=L(b,e,a.m).ya,b=a.Nb.R(e),f=Lr(M(),a.Ea),b=cc(b,f);X8a(b,e,c.Da);vj(b.ca(),zW().ef,a.Bi.zf(e,Pr()),(M(),(new N).a()));c=c.i;e=Pc();c=L(c,e,a.m).Bb;e=uv();c=c.cg(e.gc);a=t(new u,function(a,b){return function(c){if(null!==c){var e=c.pa(),f=c.si();c=e.i;var f=(new A).d(b.k+"_"+f),g=(new Mv).a(),E=(new Ie).a();c=Nv(new Ov,c,g,f,E,a.m).Ir();EPa||(EPa=(new gT).a());
f=Ke(M(),e);f=(new n2).P((new Q).a(),f);e=e.Da;g=zc();e=L(e,g,a.m).ya;g=om().$;e=Eb(f,g,e);f=om().rf;return ff(e,f,c)}throw(new v).d(c);}}(a,b));e=uv();a=c.ka(a,e.gc);c=zW().lj;return qf(b,c,a)}b=a.Ea.pb().nb;c=O().Wa;if(b===c)return W8a(a,a.Ea);b=a.Nb.R("");c=a.m;e=rh().WR;f=b.k;a=a.Ea;var g=w();Cc(c,e,f,g,"Invalid model extension.",a.ga);return b}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({wsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.ParametrizedDeclarationParser",{wsa:1,f:1,A:1,w:1,q:1,n:1});function Y8a(){this.Jfa=this.dya=this.o=this.fe=null}Y8a.prototype=new r;Y8a.prototype.constructor=Y8a;d=Y8a.prototype;d.L=function(){return"Raml08PayloadEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Fsa){var b=this.fe,c=a.fe;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.fe;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){var a=Dd(this.fe.g,vn().Md);if(x(a)){var a=z(),b=[(new PV).rba(this)];return H(a,(new J).aa(b))}if(w()===a)return this.Jfa;throw(new v).d(a);};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Fsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08PayloadEmitter",{Fsa:1,f:1,A:1,w:1,q:1,n:1});
function Z8a(){this.m=this.eh=this.W=null}Z8a.prototype=new r;Z8a.prototype.constructor=Z8a;d=Z8a.prototype;d.L=function(){return"Raml08WebFormParser"};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Lsa?Yj(this.W,a.W)?this.eh===a.eh:!1:!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.eh;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function $8a(a,b,c,e){a.W=b;a.eh=c;a.m=e;return a}
d.wc=function(){var a=yc((new K).Y(this.W),"formParameters");if(a.b())return w();var b=a.c(),a=b.i,c=Pc(),a=L(a,c,this.m).Bb,c=a.pc();if(c.b())return w();c.c();b=iVa(kVa(),b.i);M();var c=(new N).a(),b=Ue(b,"schema",c),c=this.eh,e=H(z(),G()),b=L8a(b,c,e);a.X(t(new u,function(a,b){return function(c){var e=HU(IU(),c,t(new u,function(a,b){return function(a){return a.Qb(b.k,a.Ub())}}(a,b)),!1,tO(),a.m).wc();if(!e.b()){var l=e.c(),e=F3(b,c.Da.u()),p=rj().Uh;lr(e,p,0);var p=c.i,y=Pc(),p=p.Gp(y).Mk();if(x(p)&&
(p=yc((new K).Y(p.i),"required"),!p.b())){var y=p.c(),I=!!(new Eh).Vb(y.i,a.m).Ip().t,p=rj().Uh,I=Nh(new Oh,I?1:0,(new N).a()),y=Ke(M(),y).Wb((new Xi).a());Fh(e,p,I,y)}c=Ke(M(),c);c=cc(e,c);p=rj().If;l=ff(c,p,l);e=e.k;c=H(z(),G());N8a(l,e,c)}}}(this,b)));a=ci().Pk;dj(b,a,!0);return(new A).d(b)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Lsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08WebFormParser",{Lsa:1,f:1,A:1,w:1,q:1,n:1});
function a9a(){this.Q=this.U=this.o=this.fe=null}a9a.prototype=new r;a9a.prototype.constructor=a9a;d=a9a.prototype;d.L=function(){return"Raml10Payloads"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Tsa){var b=this.fe,c=a.fe;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.fe;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.Ua=function(){if(Dd(this.fe.g,vn().Md).qa())return H(z(),(new J).aa([(new b9a).Bba(this.fe,this.o,this.U,this.Q)]));var a=!1,b=null,c=Wa().Ia(B(this.fe.g,vn().Fc));if(x(c)&&(a=!0,b=c,c=b.i,Xh(c))){var a=this.o,b=this.U,e=G();return d3(new Z2,c,a,e,b,this.Q).Ua()}if(a){var b=b.i,c=this.Q.jc,a=Bc().nh,b=b.k,e=w(),f=Zb(this.fe.E,n(Fd)),g=Yb(this.fe);c.Hc(a.k,b,e,"Cannot emit a non WebAPI shape",f,xc().tb,g)}return G()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Bba=function(a,b,c,e){this.fe=a;this.o=b;this.U=c;this.Q=e;return this};d.$classData=q({Tsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml10Payloads",{Tsa:1,f:1,A:1,w:1,q:1,n:1});function y3(){this.m=this.fc=this.oe=this.Ea=null}y3.prototype=new r;y3.prototype.constructor=y3;d=y3.prototype;d.L=function(){return"RamlExampleValueAsString"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ysa){if(Yj(this.Ea,a.Ea))var b=this.oe,c=a.oe,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.fc,a=a.fc,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ea;case 1:return this.oe;case 2:return this.fc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function w3(a){if(Dd(a.oe.g,lh().Fq).b()){var b=a.oe,c=lh().Fq,e=Nh(new Oh,a.fc.hM,(new N).a()),f=(M(),(new N).a()).Wb((new GO).a());Fh(b,c,e,f)}b=a.Ea;if(mG(b)){c=a.m.yl().Ti.Ta(b.TV.ya);if(!c.b()){var c=c.c(),e=a.oe,f=c.Vw.k,g=jh().Lj;Eb(e,g,f);e=a.oe;f=jh().nc;c=c.ga;c=c.b()?a.m.Xg:c.c();Eb(e,f,c)}b=b.cw;b=b.b()?a.Ea:b.c();c=!0}else b=a.Ea,c=!1;c=!!c;e=!1;f=null;g=Hc(Ic(a.Ea),zc());a:{if(x(g)){var e=!0,f=g,g=a.Ea.pb().nb,h=O().yd;if(g===h){e=a.oe;f=lh().Sd;g=Nh(new Oh,"null",Lr(M(),a.Ea));h=Lr(M(),
a.Ea);Fh(e,f,g,h);break a}}e?(g=f.i,e=a.oe,f=lh().Sd,g=Nh(new Oh,g.ya,Lr(M(),a.Ea))):(e=a.oe,f=lh().Sd,hda(),g=Nh(new Oh,gda(0,b),Lr(M(),a.Ea)));h=Lr(M(),a.Ea);Fh(e,f,g,h)}b=cx(dx(b,a.oe.k,a.fc.Tv,c,a.fc.mx,a.m)).xl;b.b()||(b=b.c(),c=a.oe,e=lh().Ho,f=Ke(M(),a.Ea),Fh(c,e,b,f));return a.oe}function x3(a,b,c,e,f){a.Ea=b;a.oe=c;a.fc=e;a.m=f;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Ysa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlExampleValueAsString",{Ysa:1,f:1,A:1,w:1,q:1,n:1});function sh(){this.m=this.fc=this.Nb=this.eh=this.rL=this.dM=this.W=null}sh.prototype=new r;sh.prototype.constructor=sh;d=sh.prototype;d.L=function(){return"RamlExamplesParser"};d.H=function(){return 6};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Zsa){if(Yj(this.W,a.W)&&this.dM===a.dM&&this.rL===a.rL)var b=this.eh,c=a.eh,b=null===b?null===c:b.h(c);else b=!1;b?(b=this.Nb,c=a.Nb,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.fc,a=a.fc,null===b?null===a:b.h(a)}return!1};function zca(a,b,c,e,f,g,h){a.W=b;a.dM="example";a.rL=c;a.eh=e;a.Nb=f;a.fc=g;a.m=h;return a}
d.K=function(a){switch(a){case 0:return this.W;case 1:return this.dM;case 2:return this.rL;case 3:return this.eh;case 4:return this.Nb;case 5:return this.fc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.fh=function(){if(yc((new K).Y(this.W),this.dM).qa()&&yc((new K).Y(this.W),this.rL).qa()&&this.eh.qa()){var a=this.m,b=rh().YM,c=this.eh.c(),e="Properties '"+this.dM+"' and '"+this.rL+"' are exclusive and cannot be declared together",f=this.W,g=w();Cc(a,b,c,g,e,f.ga)}a=(new c9a).RU(this.rL,this.W,this.Nb,this.fc,this.m).fh();b=(new G3).RU(this.dM,this.W,this.Nb,this.fc,this.m).wc().wa();c=z();return a.la(b,c.s)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Zsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlExamplesParser",{Zsa:1,f:1,A:1,w:1,q:1,n:1});function c9a(){this.m=this.fc=this.Nb=this.W=this.oa=null}c9a.prototype=new r;c9a.prototype.constructor=c9a;d=c9a.prototype;d.L=function(){return"RamlMultipleExampleParser"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.$sa){if(this.oa===a.oa&&Yj(this.W,a.W))var b=this.Nb,c=a.Nb,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.fc,a=a.fc,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.W;case 2:return this.Nb;case 3:return this.fc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.fh=function(){var a=H(Wg(),G()),b=yc((new K).Y(this.W),this.oa);if(!b.b()){var b=b.c(),c=this.m.Oo(b.i);if(Ep(c)){c=c.i;b=OIa(this.m.yl(),b.i,c);M();var e=(new N).a();vh(a,gL(b,c,e))}else if(Hp(c))if(c=c.i,e=c.pb().nb,O().ua===e)b=Pc(),b=L(c,b,this.m).Bb,c=t(new u,function(a){return function(b){return(new H3).g1(b,a.Nb,a.fc,a.m).Dt()}}(this)),e=uv(),Er(a,b.ka(c,e.gc));else{if(O().yd!==e){if(O().Wa===e){c=c.u();if(null===c)throw(new Rg).a();Sg(Tg(),"\x3c\x3c.*\x3e\x3e",c)?(c=this.m.Dv,e=py().On,
c=!(null===c?null===e:c.h(e))):c=!1}else c=!1;if(!c){var c=this.m,e=rh().a6,f="Property '"+this.oa+"' should be a map",g=w();Cc(c,e,"",g,f,b.ga)}}}else throw(new v).d(c);}return a};d.RU=function(a,b,c,e,f){this.oa=a;this.W=b;this.Nb=c;this.fc=e;this.m=f;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({$sa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlMultipleExampleParser",{$sa:1,f:1,A:1,w:1,q:1,n:1});
function H3(){this.m=this.fc=this.Nb=this.zb=null}H3.prototype=new r;H3.prototype.constructor=H3;d=H3.prototype;
d.Dt=function(){var a=(new Eh).Vb(this.zb.Da,this.m),b=jb(function(a,b){return function(){return a.Nb.R((new A).d(b.Hf().u()))}}(this,a)),c=this.m.Oo(this.zb.i);if(Ep(c)){var c=c.i,e=LIa(this.m.yl(),c,w());if(e.b())c=w();else{e=e.c();M();var f=(new N).a(),c=(new A).d(gL(e,c,f))}b=c.b()?d9a(this.zb,b,this.fc,this.m).Dt():c.c()}else{if(!Hp(c))throw(new v).d(c);b=d9a(this.zb,b,this.fc,this.m).Dt()}c=lh().$;a=a.Hf();e=Ke(M(),this.zb);return Fh(b,c,a,e)};d.L=function(){return"RamlNamedExampleParser"};
d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ata){if(this.zb===a.zb)var b=this.Nb,c=a.Nb,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.fc,a=a.fc,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.zb;case 1:return this.Nb;case 2:return this.fc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.g1=function(a,b,c,e){this.zb=a;this.Nb=b;this.fc=c;this.m=e;return this};
d.M=function(){return Z(this)};d.$classData=q({ata:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlNamedExampleParser",{ata:1,f:1,A:1,w:1,q:1,n:1});function h3(){this.Pp=this.W=null;this.hn=!1;this.m=null}h3.prototype=new r;h3.prototype.constructor=h3;function g3(a,b,c,e){a.W=b;a.Pp=c;a.hn=!1;a.m=e;return a}d=h3.prototype;d.L=function(){return"RamlParametersParser"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.dta){if(Yj(this.W,a.W))var b=this.Pp,c=a.Pp,b=null===b?null===c:b.h(c);else b=!1;return b?this.hn===a.hn:!1}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.Pp;case 2:return this.hn;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fh=function(){var a=this.W.Bb,b=t(new u,function(a){return function(b){return ax(a.m.Oh.Q1(),b,a.Pp,a.hn).BC()}}(this)),c=uv();return a.ka(b,c.gc)};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.W)),a=zI().Ga(a,yI(zI(),this.Pp)),a=zI().Ga(a,this.hn?1231:1237);return zI().Wd(a,3)};d.M=function(){return Z(this)};d.$classData=q({dta:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlParametersParser",{dta:1,f:1,A:1,w:1,q:1,n:1});function ZTa(){this.m=this.Nb=this.Ea=null}ZTa.prototype=new r;ZTa.prototype.constructor=ZTa;d=ZTa.prototype;d.L=function(){return"RamlParametrizedSecuritySchemeParser"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.fta&&Yj(this.Ea,a.Ea)){var b=this.Nb;a=a.Nb;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ea;case 1:return this.Nb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Iba=function(a,b,c){this.Ea=a;this.Nb=b;this.m=c;return this};d.y=function(){return Y(this)};
function YTa(a){var b=a.Ea.pb().nb;if(O().yd===b)return b=a.Nb.R("null"),a=Ke(M(),a.Ea).Wb((new B0).a()),cc(b,a);if(O().ua===b){var b=a.Ea,c=Pc(),c=L(b,c,a.m).Bb.fa(),b=c.Da,e=zc(),e=L(b,e,a.m).ya,b=a.Nb.R(e),f=Ke(M(),a.Ea),b=cc(b,f),f=WN(a.m.yl(),e,Pr());if(x(f))e=f.i,f=rn().Eq,ff(b,f,e),c=c.i,f=Pc(),c=L(c,f,a.m),e=B(e.g,vi().Nj).G,a=e9a(f9a(new I3,c,e.b()?null:e.c(),b,a.m)),c=rn().li,ff(b,c,a);else if(w()===f){var c=a.m,f=rh().IS,g=b.k,e="Security scheme '"+e+"' not found in declarations (and name cannot be 'null').";
a=a.Ea;var h=w();Cc(c,f,g,h,e,a.ga)}else throw(new v).d(f);return b}if(O().vq===b)return b=a.m,c=rh().IS,e=a.Ea,f=w(),Cc(b,c,"",f,"'securedBy' property doesn't accept !include tag, only references to security schemes.",e.ga),b=a.Nb.R("invalid"),a=Ke(M(),a.Ea),cc(b,a);b=a.Ea;c=zc();c=L(b,c,a.m).ya;b=a.Nb.R(c);e=Ke(M(),a.Ea);b=cc(b,e);e=WN(a.m.yl(),c,Pr());if(x(e))return a=e.i,vj(b.g,rn().Eq,a,(M(),(new N).a())),b;if(w()===e)return e=a.m,f=rh().IS,g=b.k,c="Security scheme '"+c+"' not found in declarations.",
a=a.Ea,h=w(),Cc(e,f,g,h,c,a.ga),b;throw(new v).d(e);}d.M=function(){return Z(this)};d.$classData=q({fta:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlParametrizedSecuritySchemeParser",{fta:1,f:1,A:1,w:1,q:1,n:1});function g9a(){this.Q=this.U=this.o=this.Ca=null}g9a.prototype=new r;g9a.prototype.constructor=g9a;d=g9a.prototype;d.L=function(){return"RamlServersEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ita){var b=this.Ca,c=a.Ca;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};
function h9a(a,b,c){b=b.g;var e=Dd(b,fn().Jf);e.b()||(e=e.c(),(new A).d(vh(c,Gh(Hh(),"baseUri",e,w(),a.Q))));e=Dd(b,fn().fb);e.b()||(e=e.c(),(new A).d(vh(c,Gh(Hh(),Kh((new Cf).e("serverDescription")),e,w(),a.Q))));b=Dd(b,fn().lj);b.b()?w():(b=b.c(),(new A).d(vh(c,(new gV).Qq("baseUriParameters",b,a.o,a.U,a.Q))))}d.u=function(){return U(W(),this)};d.GK=function(a,b,c,e){this.Ca=a;this.o=b;this.U=c;this.Q=e;return this};
d.Ua=function(){var a=cUa(hUa(),this.Ca),b=H(Wg(),G()),c=!1,e=a.$n;a:if(x(e))h9a(this,e.i,b),i9a(this,a.Mt,b);else{if(w()===e&&(c=!0,a.Mt.Fa())){h9a(this,a.Mt.fa(),b);i9a(this,a.Mt.sa(),b);break a}if(!c)throw(new v).d(e);}return b};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function i9a(a,b,c){b.Fa()&&vh(c,(new Vx).eH(Kh((new Cf).e("servers")),b,a.o,a.Q))}d.$classData=q({ita:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlServersEmitter",{ita:1,f:1,A:1,w:1,q:1,n:1});
function G3(){this.m=this.fc=this.Nb=this.W=this.oa=null}G3.prototype=new r;G3.prototype.constructor=G3;d=G3.prototype;d.L=function(){return"RamlSingleExampleParser"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.kta){if(this.oa===a.oa&&Yj(this.W,a.W))var b=this.Nb,c=a.Nb,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.fc,a=a.fc,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.W;case 2:return this.Nb;case 3:return this.fc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.wc=function(){var a=jb(function(a){return function(){return a.Nb.R(w())}}(this)),b=yc((new K).Y(this.W),this.oa);if(b.b())return w();var b=b.c(),c=this.m.Oo(b.i);if(Ep(c)){a=c.i;b=LIa(this.m.yl(),a,(new A).d(t(new u,function(a,b,c){return function(e){var l=a.m,p=rh().vz,y=c.i,I=w();Cc(l,p,b,I,e,y.ga)}}(this,a,b))));if(b.b())return w();b=b.c();M();c=(new N).a();return(new A).d(gL(b,a,c))}if(!Hp(c))throw(new v).d(c);var c=c.i,e=c.pb().nb;if(O().ua===e)return Wa().Ia(d9a(b,a,this.fc,this.m).Dt());
if(O().yd===e)return w();e=Wa();a=gc(a);b=Ke(M(),b.i);return e.Ia(w3(x3(new y3,c,cc(a,b),this.fc,this.m)))};d.RU=function(a,b,c,e,f){this.oa=a;this.W=b;this.Nb=c;this.fc=e;this.m=f;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({kta:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlSingleExampleParser",{kta:1,f:1,A:1,w:1,q:1,n:1});function dUa(){this.Mt=this.$n=null}dUa.prototype=new r;dUa.prototype.constructor=dUa;d=dUa.prototype;d.L=function(){return"Servers"};
d.H=function(){return 2};d.dP=function(a,b){this.$n=a;this.Mt=b;return this};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.mta){var b=this.$n,c=a.$n;if(null===b?null===c:b.h(c))return b=this.Mt,a=a.Mt,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.$n;case 1:return this.Mt;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({mta:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Servers",{mta:1,f:1,A:1,w:1,q:1,n:1});function j9a(){this.l=this.Gc=this.U=this.Qe=this.o=this.Sn=null}j9a.prototype=new r;j9a.prototype.constructor=j9a;d=j9a.prototype;d.L=function(){return"WebApiEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ita&&a.l===this.l){var b=this.Sn,c=a.Sn;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.Qe,c=a.Qe,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Sn;case 1:return this.o;case 2:return this.Qe;case 3:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function w1a(a,b,c,e,f){var g=new j9a;g.Sn=b;g.o=c;g.Qe=e;g.U=f;if(null===a)throw Lb(Mb(),null);g.l=a;f=b.g;e=H(Wg(),G());vh(e,k9a(g,f,c));var h=Dd(f,Jn().Wh);h.b()||(h=h.c(),(new A).d(Er(e,g.l.tj().of.aGa(g.Sn,h,g.o,g.U).Ua())));h=Dd(f,Jn().Jp);h.b()||(h=h.c(),(new A).d(vh(e,Kw(new Lw,"consumes",h,g.o,!0))));h=Dd(f,Jn().tl);h.b()||(h=h.c(),(new A).d(vh(e,Kw(new Lw,"produces",h,g.o,!0))));h=Dd(f,Jn().yk);h.b()||(h=h.c(),(new A).d(vh(e,Kw(new Lw,"schemes",h,g.o,!1))));h=Dd(f,Jn().wv);h.b()||(h=h.c(),
(new A).d(vh(e,(new J3).eH("tags",h.t.t.Tb,g.o,g.l.tj()))));h=Dd(f,Jn().tw);h.b()||(h=h.c(),(new A).d(Er(e,l9a(h,g.o,g.l.tj()).Ua())));var h=B(b.g,Lc().Pm()).xb(t(new u,function(){return function(a){return Yh(B(a.g,bf().Zj).ha(),n(K2))}}(g))),k=Dd(f,Jn().kr);k.b()?vh(e,Vw(new Ww,"paths",m9a(),O().Wa,Gd())):(k=k.c(),vh(e,n9a(g.l,k,g.o,g.U,h)));f=Dd(f,Jn().oc);f.b()||(f=f.c(),(new A).d(vh(e,(new TV).DE("security",f,g.o,g.l.tj()))));Er(e,Mw(b,c,a.tj()).Ua());g.Gc=c.Cb(e);return g}d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({Ita:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentEmitter$WebApiEmitter",{Ita:1,f:1,A:1,w:1,q:1,n:1});function K3(){A1.call(this);this.va=this.Yd=null}K3.prototype=new z1a;K3.prototype.constructor=K3;function o9a(){}d=o9a.prototype=K3.prototype;
d.sDa=function(a,b){a=yc((new K).Y(a),"parameters");if(!a.b()){a=a.c().i;var c=Pc();L(a,c,this.Sb()).Bb.X(t(new u,function(a,b){return function(c){var h=c.Da,k=(new Ie).a(),l=c.i,p=Pc(),l=sv(l,p);if(Hp(l))c=a.Sb().Oh.YV((Zf(),(new $f).d(c)),b,(new A).d(h),k).FL();else{l=a.Sb().Oh;Zf();R();p=sq().Td;R();var p=lq(R(),p,O().ua),h=l.YV((new ag).d(p),b,(new A).d(h),k).FL(),k=a.Sb(),l=rh().sY,p=h.zr.k,y=w();Cc(k,l,p,y,"Map needed to parse a parameter declaration",c.ga);c=h}qIa(a.Sb().Mh,c)}}(this,b)))}};
function p9a(a,b){var c=qz().Jc,e=a.Yd.Gg.Vd,f=Pc(),e=L(e,f,a.Sb());q9a(a,e,b).Pc();e=yc((new K).Y(e),Hv((new Cf).e("extends")));e.b()||(e=e.c(),f=a.Sb().Oo(e.i),Ep(f)&&(a=a.Yd.U.Ib(t(new u,function(a,b){return function(a){return a.oo.Bf===b}}(a,f.i))),a.b()||(a=a.c(),a=Nh(new Oh,a.Od.k,Ke(M(),e.i)),e=Ke(M(),e),Fh(b,c,a,e))))}
function r9a(a,b){var c=a.Yd.ga;H(z(),G());var c=cj(b,c),e=a.Yd.ga,f=Ap().nc;Eb(c,f,e);c=a.Yd.Gg.Vd;e=Pc();e=L(c,e,a.Sb());c1a(a.Sb(),(R(),R(),lq(R(),e,O().ua)));c=Dx(Ex(new Fx,b,Hv((new Cf).e("uses")),e,a.Yd.U,a.Sb()),a.Yd.ga);a.MA(a.Yd,e);e=a.DL(e);f=E0(new F0,a.Sb().Pg());e=ac(e,f);f=Rl().ob;e=ff(b,f,e);f=a.Yd.ga;H(z(),G());cj(e,f);e=a.Sb().Mh.qu();e.Fa()&&(f=Ug().Mc,Vg(b,f,e));Tc(c.U)&&(c=n3(c),e=Nl().qc,Vg(b,e,c));ec(a.Sb().Yh);return b}
d.rda=function(){M();var a=(new N).a(),a=r9a(this,(new L3).P((new Q).a(),a));p9a(this,a);return a};d.ty=function(a,b){this.Yd=a;this.va=b;A1.prototype.BE.call(this,b);return this};
d.wda=function(a,b){a=yc((new K).Y(a),this.T_);if(!a.b()){a=a.c().i;var c=Pc();L(a,c,this.Sb()).Bb.X(t(new u,function(a,b){return function(c){var h=c.Da,k=zc(),l=L(h,k,a.Sb()).ya,h=rV(sV(),c,t(new u,function(a,b,c,e){return function(a){var f=Pg().$,g=Nh(new Oh,b,Ke(M(),c.Da.we())),h=Ke(M(),c.Da);Fh(a,f,g,h);a.Qb(e,a.Ub())}}(a,l,c,b)),a.Sb()).wc();if(x(h))return c=h.i,h=a.Sb().Mh,k=(new zi).a(),Ai(h,ac(c,k));if(w()===h){h=a.Sb();k=rh().RZ;M();var p=(new N).a(),p=(new si).P((new Q).a(),p),y=H(z(),G()),
p=L8a(p,b,y).k,l="Error parsing shape at "+l,y=w();Cc(h,k,p,y,l,c.ga)}else throw(new v).d(h);}}(this,b)))}};d.vda=function(){M();var a=(new N).a(),a=r9a(this,(new M3).P((new Q).a(),a));p9a(this,a);return a};
d.V1=function(a,b,c){a=yc((new K).Y(b),a);a.b()||(a=a.c().i,b=Pc(),L(a,b,this.Sb()).Bb.X(t(new u,function(a,b){return function(c){var h=(new Eh).Vb(c.Da,a.Sb()).Hf(),k=a.Sb().Mh,l=c.i,p=Pc();return Ai(k,(new N3).hx(L(l,p,a.Sb()),t(new u,function(a,b,c,e){return function(a){var f=Bn().$,f=ff(a,f,b);H(z(),G());var f=cj(f,c),g=(new zi).a();ac(f,g);a.E.Ur(Ke(M(),e))}}(a,h,b,c)),a.Sb()).KH())}}(this,c))))};
d.MA=function(a,b){a=a.ga+"#/declarations";this.wda(b,a+"/types");this.T1(b,a);J2(new I2,Hv((new Cf).e("resourceTypes")),t(new u,function(){return function(a){return PB(RB(),a)}}(this)),b,a+"/resourceTypes",this.Sb()).Pc();J2(new I2,Hv((new Cf).e("traits")),t(new u,function(){return function(a){return TB(VB(),a)}}(this)),b,a+"/traits",this.Sb()).Pc();this.FH(b,a+"/securitySchemes");this.sDa(b,a+"/parameters");this.V1("responses",b,a+"/responses")};
d.T1=function(a,b){a=(new K).Y(a);var c=Hv((new Cf).e("annotationTypes"));a=yc(a,c);a.b()||(a=a.c().i,c=Pc(),a=L(a,c,this.Sb()).Bb,b=t(new u,function(a,b){return function(c){var h=c.Da,k=zc(),h=L(h,k,a.Sb()).ya;c=A1a(a).r$(c,t(new u,function(a,b,c){return function(a){M();var e=(new N).a();a=Ue(a,b,e);H(z(),G());s9a(a,c)}}(a,h,b)));h=a.Sb().Mh;k=(new zi).a();return Ai(h,ac(c,k))}}(this,b)),c=uv(),a.ka(b,c.gc))};
d.DL=function(a){var b=bWa(dWa(),this.Yd.Gg.Vd.Bd),c=this.Yd.ga;H(z(),G());b=cj(b,c);c=yc((new K).Y(a),"info");if(!c.b()){var c=c.c().i,e=Pc(),c=L(c,e,this.Sb());xO(this.Sb(),b.k,c,"info");var e=(new K).Y(c),f=Jn().$;Bh(e,"title",Ch(Dh(this,f,this.Sb()),b));e=(new K).Y(c);f=Jn().fb;Bh(e,"description",Ch(Dh(this,f,this.Sb()),b));e=(new K).Y(c);f=Jn().dG;Bh(e,"termsOfService",Ch(Dh(this,f,this.Sb()),b));e=(new K).Y(c);f=Jn().Tm;Bh(e,"version",Ch(Dh(this,f,this.Sb()),b));e=(new K).Y(c);f=Jn().bG;Bh(e,
"contact",ex(Ch(Dh(this,f,this.Sb()),b),t(new u,function(a){return function(b){goa();var c=a.Sb();goa();b=(new CO).Dr(b,Lx(Jx(),c));return FJa(b)}}(this))));c=(new K).Y(c);e=Jn().WF;Bh(c,"license",ex(Ch(Dh(this,e,this.Sb()),b),t(new u,function(a){return function(b){$na();var c=a.Sb();$na();b=(new uO).Dr(b,Lx(Jx(),c));return yJa(b)}}(this))))}this.Sb().Oh.dGa(a,b).Pc();c=yc((new K).Y(a),"tags");if(!c.b()&&(c=c.c(),e=c.i.pb().nb,O().Nc===e)){var e=c.i,f=Pc(),g=uv().gc,e=L(e,CM(g,f),this.Sb()),f=t(new u,
function(a,b){return function(c){return hKa(ooa(qoa(),(R(),R(),lq(R(),c,O().ua)),t(new u,function(a,b){return function(a){var c=b.k;H(z(),G());return cj(a,c)}}(a,b)),a.Sb()))}}(this,b)),g=z(),f=e.ka(f,g.s),e=Jn().wv,f=gr(new hr,f,Ke(M(),c.i)),c=Ke(M(),c);Fh(b,e,f,c)}c=yc((new K).Y(a),"security");c.b()||(c=c.c(),e=c.i.pb().nb,O().Nc===e&&(e=c.i,f=Jc(),e=L(e,f,this.Sb()),f=t(new u,function(a,b){return function(c){return t9a(new O3,a,c,t(new u,function(a,b){return function(a){return b.tI(a)}}(a,b))).wc()}}(this,
b)),g=z(),e=e.ka(f,g.s),f=new u9a,g=z(),f=e.$b(f,g.s),e=Jn().oc,f=gr(new hr,f,Ke(M(),c.i)),c=Ke(M(),c),Fh(b,e,f,c)));c=H(Wg(),G());e=yc((new K).Y(a),"externalDocs");e.b()||(e=e.c(),vh(c,(new mV).Dr(e.i,this.Sb()).HH()));e=(new K).Y(a);f=Hv((new Cf).e("userDocumentation"));e=yc(e,f);e.b()||(e=e.c().i,f=Jc(),Er(c,v9a(new w9a,this,L(e,f,this.Sb())).fh()));c.Fa()&&(e=Jn().tw,qf(b,e,c));c=yc((new K).Y(a),"paths");c.b()||(c=c.c(),e=c.i,f=Pc(),e=L(e,f,this.Sb()),f=qs((new K).Y(e),"^/.*"),f.Fa()&&(g=H(Wg(),
G()),f.X(t(new u,function(a,b,c){return function(e){x9a(new P3,a,e,t(new u,function(a,b){return function(a){return y9a(b,a)}}(a,b)),c).Pc()}}(this,b,g))),f=Jn().kr,g=gr(new hr,g,(new N).a()),c=Ke(M(),c.i),Fh(b,f,g,c)),xO(this.Sb(),b.k,e,"paths"));jx(new kx,b,a,G(),this.Sb()).Pc();f6a(jx(new kx,b,a,G(),this.Sb()),"paths");xO(this.Sb(),b.k,a,"webApi");return b};
d.FH=function(a,b){var c=yc((new K).Y(a),this.J2);if(!c.b()){var c=c.c().i,e=Pc();L(c,e,this.Sb()).Bb.X(t(new u,function(a,b){return function(c){var e=a.Sb().Mh;c=Yca(Zca(),c,qd(function(a,b,c){return function(a,e){var f=rn().$;e=Nh(new Oh,e,Ke(M(),b.Da.we()));var g=Ke(M(),b.Da);Fh(a,f,e,g);return yi(a,c,H(z(),G()))}}(a,c,b)),a.Sb()).LH();var l=(new zi).a();return Ai(e,ac(c,l))}}(this,b)))}a=(new K).Y(a);c=Hv((new Cf).e("securitySchemes"));a=yc(a,c);a.b()||(a=a.c().i,c=Pc(),L(a,c,this.Sb()).Bb.X(t(new u,
function(a,b){return function(c){var e=a.Sb().Mh;c=Yca(Zca(),c,qd(function(a,b,c){return function(a,e){var f=rn().$;e=Nh(new Oh,e,Ke(M(),b.Da.we()));var g=Ke(M(),b.Da);Fh(a,f,e,g);return yi(a,c,H(z(),G()))}}(a,c,b)),a.Sb()).LH();var l=(new zi).a();return Ai(e,ac(c,l))}}(this,b))))};function Q3(){this.l=this.qb=this.W=null}Q3.prototype=new r;Q3.prototype.constructor=Q3;d=Q3.prototype;d.L=function(){return"CallbackParser"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Kta&&a.l===this.l&&Yj(this.W,a.W)){var b=this.qb;a=a.qb;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.qb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function z9a(a){var b=a.l.Sb();R();var c=a.W;R();b=b.Oo(lq(R(),c,O().ua));if(Ep(b)){var c=b.i,b=Ey(Hy(),c,"callbacks"),e=zIa(a.l.Sb().Mh,b);if(e.b())e=w();else{var e=e.c(),f=Ke(M(),a.W),e=gL(e,b,f);a.qb.R(e);e=(new A).d(e)}if(e.b()){e=R3(a.l.Sb(),c,a.l.Sb());if(x(e))return b=e.i,c=a.l,e=Pc(),z9a(A9a(new Q3,c,L(b,e,a.l.Sb()),a.qb));if(w()!==e)throw(new v).d(e);var e=a.l.Sb(),f=Bc().iu,c="Cannot find callback reference "+c,g=a.W,h=w();Cc(e,f,"",h,c,g.ga);return(new B9a).Rq(b,a.W)}return e.c()}if(Hp(b))return b=
a.W.Bb,M(),c=(new N).a(),c=(new S3).P((new Q).a(),c),e=Ke(M(),a.W),c=cc(c,e),a.qb.R(c),1===b.lb()&&(e=a.l,b=b.fa(),a=t(new u,function(a,b){return function(a){M();var c=(new N).a(),e=(new Q).a(),c=(new aC).P(e,c),e=Tm().$f;a=Eb(c,e,a);c=hn().XM;ff(b,c,a);return a}}(a,c)),Wg(),f=Yg(new Zg,(new $g).a()),x9a(new P3,e,b,a,f.gb).Pc()),c;throw(new v).d(b);}function A9a(a,b,c,e){a.W=c;a.qb=e;if(null===b)throw Lb(Mb(),null);a.l=b;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Kta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentParser$CallbackParser",{Kta:1,f:1,A:1,w:1,q:1,n:1});function P3(){this.l=this.Jq=this.Nb=this.zb=null}P3.prototype=new r;P3.prototype.constructor=P3;d=P3.prototype;d.L=function(){return"EndpointParser"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Lta&&a.l===this.l){if(this.zb===a.zb)var b=this.Nb,c=a.Nb,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.Jq,a=a.Jq,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.zb;case 1:return this.Nb;case 2:return this.Jq;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function x9a(a,b,c,e,f){a.zb=c;a.Nb=e;a.Jq=f;if(null===b)throw Lb(Mb(),null);a.l=b;return a}
d.Pc=function(){var a=this.zb.Da,b=zc(),b=L(a,b,this.l.Sb()).ya,a=this.Nb.R(b),c=Ke(M(),this.zb),a=cc(a,c),c=this.zb.i,e=a.k,f=Gc(Tm().$f.t);wca(b,c,e,f,this.l.Sb());c=Tm().$f;e=Nh(new Oh,b,Ke(M(),this.zb.Da));ff(a,c,e);if(!zka(Uu(),b)){var c=this.l.Sb(),e=rh().XR,f=a.k,g=yka(Uu(),b),h=this.zb.i,k=w();Cc(c,e,f,k,g,h.ga)}a:{for(c=this.Jq.Lb;!c.b();){e=B(c.fa().g,Tm().$f);if(Xb(e,b)){c=!0;break a}c=c.sa()}c=!1}if(c)c=this.l.Sb(),e=rh().ZX,a=a.k,b="Duplicated resource path "+b,f=this.zb,g=w(),Cc(c,e,
a,g,b,f.ga);else a:if(b=this.l.Sb().Oo(this.zb.i),Ep(b))b:{if(b=b.i,e=!1,f=null,g=this.l.Sb().Mh.Aya.Ta(b),x(g)&&(e=!0,f=g,c=f.i,h=c.pb().nb,k=O().ua,h===k)){b=Pc();C9a(this,a,L(c,b,this.l.Sb()));break b}if(e)b=f.i,c=this.l.Sb(),e=rh().D6,a=a.k,f=w(),Cc(c,e,a,f,"Invalid node for path item",b.ga);else if(w()===g)c=this.l.Sb(),e=rh().XR,a=a.k,b="Cannot find fragment path item ref "+b,f=this.zb.i,g=w(),Cc(c,e,a,g,b,f.ga);else throw(new v).d(g);}else{if(Hp(b)&&(b=b.i,c=b.pb().nb,e=O().ua,c===e)){c=Pc();
C9a(this,a,L(b,c,this.l.Sb()));break a}vh(this.Jq,a)}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function C9a(a,b,c){xO(a.l.Sb(),b.k,c,"pathItem");var e=(new K).Y(c),f=Hv((new Cf).e("displayName")),g=a.l,h=Tm().$;Bh(e,f,Ch(Dh(g,h,a.l.Sb()),b));e=(new K).Y(c);f=Hv((new Cf).e("description"));g=a.l;h=Tm().fb;Bh(e,f,Ch(Dh(g,h,a.l.Sb()),b));e=(new K).Y(c);f=a.l;g=Tm().Mp;Bh(e,"summary",Ch(Dh(f,g,a.l.Sb()),b));f=null;f=KO(new LO,G(),G(),G(),G(),G(),G());e=H(Wg(),G());a.l.Sb().Oh.bGa(c,b).Pc();g=yc((new K).Y(c),"parameters");g.b()||(g=g.c(),vh(e,g),g=g.i,h=Jc(),g=$Ja(new NO,L(g,h,a.l.Sb()),b.k,a.l.Sb()),
f=MO(f,aKa(g,!1)));g=yc((new K).Y(c),Hv((new Cf).e("uriParameters")));if(!g.b()){g=g.c();vh(e,g);var g=g.i,h=Pc(),g=g3(new h3,L(g,h,a.l.Sb()),t(new u,function(a,b){return function(a){var c=b.k;H(z(),G());cj(a,c)}}(a,b)),Ix(Jx(),a.l.Sb())).fh(),h=t(new u,function(){return function(a){var b=Ej().df;return Eb(a,b,"path")}}(a)),k=z(),g=g.ka(h,k.s),h=G(),k=G(),l=G(),p=G(),y=G(),f=MO(f,KO(new LO,h,g,k,l,p,y))}g=f;null!==g&&(l=g.Ft,p=g.Hg,k=g.Fg,h=g.ky,l.Fa()||p.Fa()||k.Fa()||h.Fa())&&(g=Tm().Pn,y=z(),l=
l.la(p,y.s),p=z(),k=l.la(k,p.s),l=z(),h=gr(new hr,k.la(h,l.s),Ke(M(),e.Lb.fa().i)),k=Ke(M(),e.Lb.fa()),Fh(b,g,h,k));f.Nw.Fa()&&(g=Tm().mf,f=gr(new hr,f.Nw,(new N).a()),e=Ke(M(),e.Lb.fa()),Fh(b,g,f,e));e=(new K).Y(c);f=Hv((new Cf).e("is"));g=a.l;h=Tm().wi();g=Ch(Dh(g,h,a.l.Sb()),b);Bh(e,f,aO(ex(g,t(new u,function(a,b){return function(c){return QJa(RJa(),b,c,a.l.Sb())}}(a,t(new u,function(a,b){return function(a){return Bda(b,a)}}(a,b)))))));e=(new K).Y(c);f=Hv((new Cf).e("type"));e=yc(e,f);e.b()||(e=
e.c(),SJa(TJa(new HO,e.i,t(new u,function(a,b){return function(a){return Ada(b,a)}}(a,b)),qd(function(a,b){return function(c,e){return MIa(a.l.Sb().Mh,b.i,c,e)}}(a,e)),a.l.Sb())));vh(a.Jq,b);jx(new kx,b,c,G(),a.l.Sb()).Pc();e=(new K).Y(c);f=Hv((new Cf).e("security"));e=yc(e,f);e.b()||(e=e.c(),f=e.i,g=Jc(),f=L(f,g,a.l.Sb()),g=t(new u,function(a,b){return function(c){return t9a(new O3,a.l,c,t(new u,function(a,b){return function(a){return b.tI(a)}}(a,b))).wc()}}(a,b)),h=z(),f=f.ka(g,h.s),g=new D9a,h=
z(),g=f.$b(g,h.s),g.Fa()&&(f=Zm().oc,g=gr(new hr,g,Ke(M(),e.i)),e=Ke(M(),e),Fh(b,f,g,e)));e=qs((new K).Y(c),"get|patch|put|post|delete|options|head|connect|trace");e.Fa()&&(c=H(Wg(),G()),e.X(t(new u,function(a,b,c){return function(e){return vh(b,E9a(new F9a,a.l,e,t(new u,function(a,b){return function(a){return VJa(b,a)}}(a,c))).W1())}}(a,c,b))),a=Tm().xk,c=gr(new hr,c,(new N).a()),ff(b,a,c))}
d.$classData=q({Lta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentParser$EndpointParser",{Lta:1,f:1,A:1,w:1,q:1,n:1});function G9a(){this.l=this.m=this.qb=this.W=null}G9a.prototype=new r;G9a.prototype.constructor=G9a;d=G9a.prototype;d.L=function(){return"Oas2RequestParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Mta&&a.l===this.l&&Yj(this.W,a.W)){var b=this.qb;a=a.qb;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.W;case 1:return this.qb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.wc=function(){var a=(new vu).LO(jb(function(a){return function(){M();var b=(new N).a(),b=(new T3).P((new Q).a(),b);a.qb.R(b);return b}}(this))),b=null,b=KO(new LO,G(),G(),G(),G(),G(),G()),c=null,c=H(Wg(),G()),e=yc((new K).Y(this.W),"parameters");if(!e.b()){e=e.c();vh(c,e);var e=e.i,f=Jc(),b=MO(b,aKa($Ja(new NO,L(e,f,this.m),wu(a).k,this.m),!0))}e=yc((new K).Y(this.W),Hv((new Cf).e("queryParameters")));if(!e.b()){e=e.c();vh(c,e);var e=e.i,f=Pc(),e=g3(new h3,L(e,f,this.m),t(new u,function(a,b){return function(a){var c=
wu(b).k;H(z(),G());cj(a,c)}}(this,a)),Ix(Jx(),this.m)).fh(),f=t(new u,function(){return function(a){var b=Ej().df;return Eb(a,b,"query")}}(this)),g=z(),e=e.ka(f,g.s),b=MO(b,KO(new LO,e,G(),G(),G(),G(),G()))}e=yc((new K).Y(this.W),Hv((new Cf).e("headers")));if(!e.b()){e=e.c();vh(c,e);var e=e.i,f=Pc(),e=g3(new h3,L(e,f,this.m),t(new u,function(a,b){return function(a){var c=wu(b).k;H(z(),G());cj(a,c)}}(this,a)),Ix(Jx(),this.m)).fh(),f=t(new u,function(){return function(a){var b=Ej().df;return Eb(a,b,
"header")}}(this)),g=z(),e=e.ka(f,g.s),f=G(),g=G(),h=G(),k=G(),l=G(),b=MO(b,KO(new LO,f,g,e,h,k,l))}e=(new K).Y(this.W);f=Hv((new Cf).e("baseUriParameters"));e=yc(e,f);e.b()||(e=e.c().i,f=Pc(),e=L(e,f,this.m).Bb.pc(),e.b()||(e=e.c(),e=(new RO).$m(e,t(new u,function(a,b){return function(a){var c=wu(b).k;H(z(),G());cj(a,c)}}(this,a)),!1,Ix(Jx(),this.m)).BC(),f=Ej().df,e=Eb(e,f,"path"),e=H(z(),(new J).aa([e])),f=G(),g=G(),h=G(),k=G(),l=G(),b=MO(b,KO(new LO,f,g,h,k,e,l))));f=b;if(null!==f){l=f.Ft;e=f.Hg;
g=f.Fg;f=f.RB;if(l.Fa()){h=wu(a);k=yn().um;M();var l=gr(new hr,l,Ke(0,c.Lb.fa())),p=Ke(M(),c.Lb.fa());Fh(h,k,l,p)}g.Fa()&&(h=wu(a),k=yn().Qg,M(),g=gr(new hr,g,Ke(0,c.Lb.fa())),l=Ke(M(),c.Lb.fa()),Fh(h,k,g,l));if(e.Fa()||f.Fa())g=wu(a),h=yn().lp,k=z(),e=e.la(f,k.s),M(),e=gr(new hr,e,Ke(0,c.Lb.fa())),c=Ke(M(),c.Lb.fa()),Fh(g,h,e,c)}else throw(new v).d(f);c=H(Wg(),G());b.Nw.X(t(new u,function(a,b){return function(a){return vh(b,a)}}(this,c)));b=(new K).Y(this.W);e=Hv((new Cf).e("requestPayloads"));b=
yc(b,e);b.b()||(b=b.c().i,e=Jc(),b=L(b,e,this.m),e=t(new u,function(a,b,c){return function(e){var f=wu(c);return vh(b,(new U3).YO(e,t(new u,function(a,b){return function(a){return b.Sr(a)}}(a,f)),a.m).Sv())}}(this,c,a)),f=z(),b.ka(e,f.s));c.Fa()&&(b=wu(a),e=yn().mf,c=gr(new hr,c,(new N).a()),ff(b,e,c));c=(new K).Y(this.W);b=Hv((new Cf).e("queryString"));c=yc(c,b);c.b()||(c=c.c(),c=RU(SU(),c,t(new u,function(a,b){return function(a){return a.Qb(wu(b).k,a.Ub())}}(this,a)),TU(!1,!1),tO(),Ix(Jx(),this.m)).wc(),
c.b()||(b=c.c(),c=wu(a),b=oB(kB(),b,wu(a).k,w()),e=yn().Dq,(new A).d(ff(c,e,b))));return a.t};d.$G=function(a,b,c,e){this.W=b;this.qb=c;this.m=e;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Mta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentParser$Oas2RequestParser",{Mta:1,f:1,A:1,w:1,q:1,n:1});function H9a(){this.l=this.m=this.Nb=this.W=null}H9a.prototype=new r;H9a.prototype.constructor=H9a;d=H9a.prototype;
d.L=function(){return"Oas3ParametersParser"};d.H=function(){return 2};function V9a(a,b,c,e,f){a.W=c;a.Nb=e;a.m=f;if(null===b)throw Lb(Mb(),null);a.l=b;return a}d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Nta&&a.l===this.l?Yj(this.W,a.W)?this.Nb===a.Nb:!1:!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.Nb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function W9a(a){var b=(new vu).LO(a.Nb),c=yc((new K).Y(a.W),"parameters");if(!c.b()){var c=c.c(),e=c.i,f=Jc(),f=aKa($Ja(new NO,L(e,f,a.m),wu(b).k,a.m),!0);if(null!==f){var g=f.Ft,e=f.Hg,h=f.Fg;a=f.ky;f=f.RB;if(g.Fa()){var k=wu(b),l=yn().um,g=gr(new hr,g,Ke(M(),c)),p=Ke(M(),c);Fh(k,l,g,p)}h.Fa()&&(k=wu(b),l=yn().Qg,h=gr(new hr,h,Ke(M(),c)),g=Ke(M(),c),Fh(k,l,h,g));if(e.Fa()||f.Fa())h=wu(b),k=yn().lp,l=z(),e=gr(new hr,e.la(f,l.s),Ke(M(),c)),f=Ke(M(),c),Fh(h,k,e,f);a.Fa()&&(b=wu(b),e=yn().TI,a=gr(new hr,
a,Ke(M(),c)),c=Ke(M(),c),Fh(b,e,a,c))}else throw(new v).d(f);}}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Nta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentParser$Oas3ParametersParser",{Nta:1,f:1,A:1,w:1,q:1,n:1});function V3(){this.l=this.m=this.qb=this.W=null}V3.prototype=new r;V3.prototype.constructor=V3;d=V3.prototype;d.L=function(){return"Oas3RequestParser"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ota&&a.l===this.l&&Yj(this.W,a.W)){var b=this.qb;a=a.qb;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.qb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.wc=function(){var a=this.m;R();var b=this.W;R();a=a.Oo(lq(R(),b,O().ua));if(Ep(a))return X9a(this,a.i);if(Hp(a)){M();a=(new N).a();a=(new T3).P((new Q).a(),a);this.qb.R(a);var b=(new K).Y(this.W),c=this.l,e=yn().fb;Bh(b,"description",Ch(Dh(c,e,this.m),a));b=(new K).Y(this.W);c=this.l;e=yn().kj;Bh(b,"required",Ch(Dh(c,e,this.m),a));b=H(Wg(),G());c=yc((new K).Y(this.W),"content");c.b()||(c=c.c().i,e=Pc(),L(c,e,this.m).Bb.X(t(new u,function(a,b,c){return function(e){var l=ja((new Eh).Vb(e.Da,a.m).Hf().t);
return vh(b,(new W3).QK(e.i,l,t(new u,function(a,b){return function(a){return b.Sr(a)}}(a,c)),a.m).Sv())}}(this,b,a))));c=Bn().mf;b=gr(new hr,b,(new N).a());ff(a,c,b);jx(new kx,a,this.W,G(),this.m).Pc();xO(this.m,a.k,this.W,"request");return(new A).d(a)}throw(new v).d(a);};d.$G=function(a,b,c,e){this.W=b;this.qb=c;this.m=e;if(null===a)throw Lb(Mb(),null);this.l=a;return this};
function X9a(a,b){var c=Ey(Hy(),b,"requestBodies"),e=HIa(a.m.Mh,c);if(e.b())c=w();else{var e=e.c(),f=Ke(M(),a.W),e=gL(e,c,f);M();f=(new N).a();Ue(e,c,f);a.qb.R(e);c=(new A).d(e)}if(c.b()){c=R3(a.m,b,a.m);if(x(c))return b=c.i,c=a.l,e=Pc(),(new V3).$G(c,L(b,e,a.m),a.qb,a.m).wc();if(w()!==c)throw(new v).d(c);c=a.m;e=Bc().iu;b="Cannot find requestBody reference "+b;a=a.W;f=w();Cc(c,e,"",f,b,a.ga);return w()}return c}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Ota:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentParser$Oas3RequestParser",{Ota:1,f:1,A:1,w:1,q:1,n:1});function F9a(){this.l=this.Nb=this.zb=null}F9a.prototype=new r;F9a.prototype.constructor=F9a;d=F9a.prototype;d.L=function(){return"OperationParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Pta&&a.l===this.l&&this.zb===a.zb){var b=this.Nb;a=a.Nb;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.zb;case 1:return this.Nb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.W1=function(){var a=this.Nb.R(ja((new Eh).Vb(this.zb.Da,this.l.Sb()).Pf().t)),b=Ke(M(),this.zb),c=cc(a,b),e=this.zb.i,f=Pc(),g=L(e,f,this.l.Sb()),h=yc((new K).Y(g),"operationId");if(!h.b()){var k=h.c(),l=k.i.u();if(!this.l.Sb().bDa.Pz(l)){var p=this.l.Sb(),y=rh().T5,I=c.k,E="Duplicated operation id '"+l+"'",V=k.i,da=w();Cc(p,y,I,da,E,V.ga)}}var sa=(new K).Y(g),ua=this.l,Ia=Zm().$;Bh(sa,"operationId",Ch(Dh(ua,Ia,this.l.Sb()),c));var Pa=(new K).Y(g),Za=this.l,db=Zm().fb;Bh(Pa,"description",Ch(Dh(Za,
db,this.l.Sb()),c));var Qb=(new K).Y(g),bc=this.l,rc=Zm().gp;Bh(Qb,"deprecated",Ch(Dh(bc,rc,this.l.Sb()),c));var Fc=(new K).Y(g),Rd=this.l,Ld=Zm().Mp;Bh(Fc,"summary",Ch(Dh(Rd,Ld,this.l.Sb()),c));var ze=(new K).Y(g),Td=this.l,Je=Zm().bh;Bh(ze,"externalDocs",ex(Ch(Dh(Td,Je,this.l.Sb()),c),t(new u,function(a){return function(b){return kna(lna(),b,a.l.Sb())}}(this))));var $d=this.l.Sb().Km,te=lKa();if(null!==$d&&$d===te){var Hd=(new K).Y(g),ie=this.l,Nd=Zm().yk;Bh(Hd,"schemes",Ch(Dh(ie,Nd,this.l.Sb()),
c));var td=(new K).Y(g),yd=this.l,ud=Zm().Jp;Bh(td,"consumes",Ch(Dh(yd,ud,this.l.Sb()),c));var Ve=(new K).Y(g),Me=this.l,Rc=Zm().tl;Bh(Ve,"produces",Ch(Dh(Me,Rc,this.l.Sb()),c))}var me=(new K).Y(g),Ae=this.l,We=Zm().wv;Bh(me,"tags",Ch(Dh(Ae,We,this.l.Sb()),c));var od=this.l.Sb().Km,Ad=aP();if(null!==od&&od===Ad){var ue=yc((new K).Y(g),"requestBody");if(!ue.b()){var Id=ue.c(),gf=this.l,Jd=Id.i,Vd=Pc();(new V3).$G(gf,L(Jd,Vd,this.l.Sb()),t(new u,function(a,b){return function(a){var c=Zm().kp;ff(b,c,
a)}}(this,c)),this.l.Sb()).wc()}var je=this.l,Wd=Wa().Ia(B(c.g,Zm().kp));if(Wd.b())var ve=w();else var $c=Wd.c(),ve=(new A).d(jb(function(a,b){return function(){return b}}(this,$c)));W9a(V9a(new H9a,je,g,ve.b()?jb(function(a,b){return function(){return YLa(b)}}(this,c)):ve.c(),this.l.Sb()));var we=yc((new K).Y(g),"callbacks");if(!we.b()){var cd=we.c().i,ae=Pc(),be=L(cd,ae,this.l.Sb()).Bb,xe=t(new u,function(a,b){return function(c){var e=c.Da,f=zc(),e=L(e,f,a.l.Sb()).ya,f=a.l;c=c.i;var g=Pc();return z9a(A9a(new Q3,
f,L(c,g,a.l.Sb()),t(new u,function(a,b,c){return function(a){M();var e=(new N).a();a=Ue(a,b,e);e=c.k;H(z(),G());cj(a,e)}}(a,e,b))))}}(this,c)),ne=uv(),Ed=be.ka(xe,ne.gc),Ne=Zm().NF;qf(c,Ne,Ed)}this.l.Sb().Oh.cGa(g,c).Pc()}var hf=(new K).Y(g),Ef=Hv((new Cf).e("is")),Vf=yc(hf,Ef);if(!Vf.b()){var Xe=Vf.c(),Ye=Xe.i,vf=Jc(),Oe=L(Ye,vf,this.l.Sb()),Xd=t(new u,function(a,b){return function(c){return SJa(TJa(new HO,c,t(new u,function(a,b){return function(a){return Bda(b,a)}}(a,b)),qd(function(a,b){return function(c,
e){return EIa(a.l.Sb().Mh,b,c,e)}}(a,c)),a.l.Sb()))}}(this,c)),Ff=z(),rf=Oe.ka(Xd,Ff.s);if(rf.Fa()){var cf=Lc().wi(),hg=Ke(M(),Xe);jr(c,cf,rf,hg)}}var kg=yc((new K).Y(g),"security");if(!kg.b()){var oe=kg.c(),wf=oe.i,ce=Jc(),jf=L(wf,ce,this.l.Sb()),Kf=t(new u,function(a,b){return function(c){return t9a(new O3,a.l,c,t(new u,function(a,b){return function(a){return b.tI(a)}}(a,b))).wc()}}(this,c)),xf=z(),Pe=jf.ka(Kf,xf.s),Ze=new Y9a,Oc=z(),ke=Pe.$b(Ze,Oc.s),Lf=Zm().oc,df=gr(new hr,ke,Ke(M(),oe.i)),de=
Ke(M(),oe);Fh(c,Lf,df,de)}var yg=this.l.Sb().Km,Mf=lKa();if(null!==yg&&yg===Mf){var pe=(new Z9a).$G(this.l,g,t(new u,function(a,b){return function(a){var c=Zm().kp;ff(b,c,a)}}(this,c)),this.l.Sb()).wc();if(!pe.b()){var Qe=pe.c(),$e=Zm().kp,kf=(M(),(new N).a()).Wb((new GO).a());(new A).d(Fh(c,$e,Qe,kf))}}var Re=yc((new K).Y(g),"responses");if(!Re.b()){var le=Re.c(),Se=H(Wg(),G()),Nf=le.i,Gf=Pc();L(Nf,Gf,this.l.Sb()).Bb.xb(t(new u,function(a){return function(b){var c=Bw();b=b.Da;var e=zc();return!Jma(c,
L(b,e,a.l.Sb()).ya)}}(this))).X(t(new u,function(a,b,c){return function(e){var f=(new Eh).Vb(e.Da,a.l.Sb()).Hf(),g=e.i,h=Pc();return vh(b,(new N3).hx(L(g,h,a.l.Sb()),t(new u,function(a,b,c,e){return function(a){var f=Bn().$,f=ff(a,f,b),g=c.k;H(z(),G());var f=cj(f,g),g=B(a.g,Bn().$).G,g=g.b()?null:g.c(),h=Bn().vn;Eb(f,h,g);a.E.Ur(Ke(M(),e))}}(a,f,c,e)),a.l.Sb()).KH())}}(this,Se,c)));var yf=Zm().Zl,ef=gr(new hr,Se,Ke(M(),le.i)),lf=Ke(M(),le);Fh(c,yf,ef,lf)}f6a(jx(new kx,c,g,G(),this.l.Sb()),"responses");
jx(new kx,c,g,G(),this.l.Sb()).Pc();xO(this.l.Sb(),c.k,g,"operation");return c};function E9a(a,b,c,e){a.zb=c;a.Nb=e;if(null===b)throw Lb(Mb(),null);a.l=b;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Pta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentParser$OperationParser",{Pta:1,f:1,A:1,w:1,q:1,n:1});function O3(){this.l=this.Nb=this.Ea=null}O3.prototype=new r;O3.prototype.constructor=O3;d=O3.prototype;d.L=function(){return"ParametrizedSecuritySchemeParser"};
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Qta&&a.l===this.l&&Yj(this.Ea,a.Ea)){var b=this.Nb;a=a.Nb;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ea;case 1:return this.Nb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.wc=function(){var a=!1,b=null,c=this.Ea,e=Pc(),c=sv(c,e);if(Hp(c)&&(a=!0,b=c,c=b.i,Tc(c.Bb))){a=c.Bb.fa();b=a.Da;e=zc();b=L(b,e,this.l.Sb()).ya;e=this.Nb.R(b);c=Ke(M(),c);c=cc(e,c);b=$9a(this,b,c,a);e=yb(b);if(x(e))b=e.i;else if(w()!==e)throw(new v).d(e);b=B(b.g,vi().Nj);if(Xb(b,"OAuth 2.0")){M();b=(new N).a();b=(new X3).P((new Q).a(),b);e=c.k;H(z(),G());var b=cj(b,e),e=a.i,f=Jc(),e=L(e,f,this.l.Sb()),f=t(new u,function(a){return function(b){var c=eWa(gWa(),b),e=En().$,f=qe(),f=Nh(new Oh,L(b,f,
a.l.Sb()),(new N).a());b=Ke(M(),b);return Fh(c,e,f,b)}}(this)),g=z(),f=e.ka(f,g.s),e=rn().li,g=QP().sr,a=Ke(M(),a.i),a=jr(b,g,f,a);ff(c,e,a)}return(new A).d(c)}if(a&&b.i.Bb.b())return w();b=this.Nb.R(this.Ea.u());a=this.l.Sb();c=rh().ZR;b=b.k;e="Invalid type "+this.Ea;f=this.Ea;g=w();Cc(a,c,b,g,e,f.ga);return w()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function t9a(a,b,c,e){a.Ea=c;a.Nb=e;if(null===b)throw Lb(Mb(),null);a.l=b;return a}
function $9a(a,b,c,e){var f=WN(a.l.Sb().Mh,b,Nr());if(x(f))return e=f.i,b=rn().Eq,ff(c,b,e),e;if(w()===f){M();var f=(new N).a(),g=(new Q).a(),f=(new NB).P(g,f),g=rn().Eq;ff(c,g,f);c=a.l.Sb();a=Bc().vD;g=f.k;b="Security scheme '"+b+"' not found in declarations.";var h=w();Cc(c,a,g,h,b,e.ga);return f}throw(new v).d(f);}d.$classData=q({Qta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentParser$ParametrizedSecuritySchemeParser",{Qta:1,f:1,A:1,w:1,q:1,n:1});
function Z9a(){this.l=this.m=this.qb=this.W=null}Z9a.prototype=new r;Z9a.prototype.constructor=Z9a;d=Z9a.prototype;d.L=function(){return"RequestParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Rta&&a.l===this.l&&Yj(this.W,a.W)){var b=this.qb;a=a.qb;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.qb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.wc=function(){var a=this.m.Km,b=aP();return null!==a&&a===b?(new V3).$G(this.l,this.W,this.qb,this.m).wc():(new G9a).$G(this.l,this.W,this.qb,this.m).wc()};d.$G=function(a,b,c,e){this.W=b;this.qb=c;this.m=e;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Rta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentParser$RequestParser",{Rta:1,f:1,A:1,w:1,q:1,n:1});
function gQ(){y1.call(this);this.ge=this.gU=null}gQ.prototype=new u1a;gQ.prototype.constructor=gQ;function a$a(){}d=a$a.prototype=gQ.prototype;
d.cK=function(){var a=Jy(Ky(),vt(),this.gU.ha()),b=this.gU;if(Fm(b)){var c,e=new b$a;e.Ev=b;e.o=a;if(null===this)throw Lb(Mb(),null);e.l=this;e.Fg=Y3(new Z3,this,wla());e.Gc=(new M2).Z0(Xp(b.g,Rl().ob),a,this.tj()).Ua();c=e}else if(ym(b))c=c$a(this,b,a);else{if(Jm(b)){var f=this.tj().Si(),e=new d$a;e.n2=b;e.o=a;if(null===this)throw Lb(Mb(),null);e.l=this;e.Fg=Y3(new Z3,this,zla());var b=Tw(new Uw,Xp(b.g,Rl().ob).jA(),a,!1,pc(Os(),G()),f).Ua(),f=new $3,g=z();e.Gc=b.$b(f,g.s)}else if(Nm(b)){f=this.tj().Si();
e=new e$a;e.f3=b;e.o=a;if(null===this)throw Lb(Mb(),null);e.l=this;e.Fg=Y3(new Z3,this,Ala());b=Tw(new Uw,Xp(b.g,Rl().ob).jA(),a,!1,pc(Os(),G()),f).Ua();f=new a4;g=z();e.Gc=b.$b(f,g.s)}else if(wm(b)){e=new f$a;e.zi=b;e.o=a;if(null===this)throw Lb(Mb(),null);e.l=this;e.Fg=Y3(new Z3,this,Bla());b=this.tj().of.RN().zf(Xp(b.g,Rl().ob),a).NT();if(Ep(b))b=b.i;else if(Hp(b))f=b.i,b=z(),f=[Vw(new Ww,"type",f,O().Wa,Gd())],b=H(b,(new J).aa(f));else throw(new v).d(b);e.Gc=b}else if(Lm(b)){e=new g$a;e.Gf=b;
e.o=a;if(null===this)throw Lb(Mb(),null);e.l=this;e.Fg=Y3(new Z3,this,Cla());f=Xp(b.g,Rl().ob);xoa||(xoa=(new gy).a());b=B(Xp(b.g,Rl().ob).g,vi().Nj).G;e.Gc=(new Q2).NU(f,roa(b.b()?null:b.c()),a,this.tj()).Ua()}else{if(!Hm(b))throw(new Gt).e("Unsupported fragment type");e=new h$a;e.H1=b;e.o=a;if(null===this)throw Lb(Mb(),null);e.l=this;e.Fg=Y3(new Z3,this,yla());f=z();b=[(new b4).tA(Xp(b.g,Rl().ob),a,this.tj())];e.Gc=H(f,(new J).aa(b))}c=e}a=v1a(this,this.gU,a);b=Dd(this.gU.ca(),Ap().Ud);if(b.b())var h=
w();else b=b.c(),h=(new A).d(Ih(new Jh,Hv((new Cf).e("usage")),b,w()));b=Ly();e=(new My).e(b.Dh);f=(new ph).e(b.xh);Tc(f)&&Ny(e,b.xh);var f=e.r,g=e.da,k=(new pq).e(g),l=Cq(),p=H(z(),(new J).aa([c.Fg]));c=c.Ua();var y=z();c=p.la(c,y.s);h=h.wa();p=z();c=c.la(h,p.s);h=z();iq(l,c.hg(a,h.s),k);T(f,lq(R(),rq(sq(),k.r,g),O().ua));return(new Oy).mc(Py(vq(),b.Dh),e.r)};d.Wfa=function(a){yYa(a,"swagger",lq(R(),mq(nq(),"2.0"),O().Wa))};d.Uaa=function(a,b){this.gU=a;this.ge=b;y1.prototype.CK.call(this,a,b);return this};
d.tj=function(){return this.ge};d.$classData=q({Sta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentEmitter",{Sta:1,X7:1,jS:1,f:1,fS:1,RY:1});function i$a(){this.l=this.W=null}i$a.prototype=new r;i$a.prototype.constructor=i$a;d=i$a.prototype;d.L=function(){return"AnnotationFragmentParser"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.bua&&a.l===this.l?Yj(this.W,a.W):!1};
d.K=function(a){switch(a){case 0:return this.W;default:throw(new X).e(""+a);}};d.fx=function(a,b){this.W=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.yda=function(){M();var a=(new N).a(),a=(new c4).P((new Q).a(),a),b=this.l.Yd.ga;H(z(),G());var a=cj(a,b),b=mUa(new gW,this.l,this.W,"annotation",this.W,t(new u,function(a){return function(b){s9a(b,a.l.Yd.ga+"#/",H(z(),G()))}}(this))).GH(),c=Rl().ob;return ff(a,c,b)};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({bua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentParser$AnnotationFragmentParser",{bua:1,f:1,A:1,w:1,q:1,n:1});function j$a(){this.l=this.W=null}j$a.prototype=new r;j$a.prototype.constructor=j$a;d=j$a.prototype;d.L=function(){return"DataTypeFragmentParser"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.cua&&a.l===this.l?Yj(this.W,a.W):!1};d.fx=function(a,b){this.W=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};
d.K=function(a){switch(a){case 0:return this.W;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.zda=function(){M();var a=(new N).a(),a=(new dQ).P((new Q).a(),a),b=this.l.Yd.ga;H(z(),G());a=cj(a,b);sq();b=this.W.Bb.xb(t(new u,function(a){return function(b){if(null===b)return!0;b=(new Eh).Vb(b.Da,a.l.va).Hf().u();var c=xla().oa;return b!==c?(c=Jv().Y2,b!==c):!1}}(this)));b=rq(0,b,this.W.ga.Of);sV();R();R();b=lq(R(),b,O().ua);b=gTa(0,b,"type",t(new u,function(a){return function(b){Te(b,a.l.Yd.ga+"#/shape")}}(this)),(new jV).dH("schema",this.l.va),this.l.va).wc();if(!b.b()){var b=b.c(),c=Rl().ob;
(new A).d(ff(a,c,b))}return a};d.$classData=q({cua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentParser$DataTypeFragmentParser",{cua:1,f:1,A:1,w:1,q:1,n:1});function k$a(){this.l=this.W=null}k$a.prototype=new r;k$a.prototype.constructor=k$a;d=k$a.prototype;d.L=function(){return"DocumentationItemFragmentParser"};d.H=function(){return 1};
d.Ada=function(){M();var a=(new N).a(),a=(new d4).P((new Q).a(),a),b=this.l.Yd.ga+"#/";H(z(),G());a=cj(a,b);R();b=this.W;R();var b=(new mV).Dr(lq(R(),b,O().ua),this.l.va).HH(),c=Rl().ob;ff(a,c,b);return a};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.dua&&a.l===this.l?Yj(this.W,a.W):!1};d.fx=function(a,b){this.W=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.K=function(a){switch(a){case 0:return this.W;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({dua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentParser$DocumentationItemFragmentParser",{dua:1,f:1,A:1,w:1,q:1,n:1});function l$a(){this.l=this.W=null}l$a.prototype=new r;l$a.prototype.constructor=l$a;d=l$a.prototype;d.L=function(){return"NamedExampleFragmentParser"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.eua&&a.l===this.l?Yj(this.W,a.W):!1};
d.fx=function(a,b){this.W=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.K=function(a){switch(a){case 0:return this.W;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function m$a(a){var b=a.W.Bb.xb(t(new u,function(a){return function(b){b=b.Da;var c=wN();return L(b,c,a.l.va).ya!==Hv((new Cf).e("fragmentType"))}}(a)));M();var c=(new N).a(),c=(new e4).P((new Q).a(),c),e=a.l.Yd.ga+"#/";H(z(),G());c=cj(c,e);e=t(new u,function(a,b){return function(a){M();var c=(new N).a(),e=(new Q).a(),c=(new iB).P(e,c);a.b()||(a=a.c(),M(),e=(new N).a(),Ue(c,a,e));a=Rl().ob;ff(b,a,c);return c}}(a,c));a=(new H3).g1(b.fa(),e,(new lO).wA(!0,!0,!1),a.l.va).Dt();b=Rl().ob;return ff(c,b,
a)}d.$classData=q({eua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentParser$NamedExampleFragmentParser",{eua:1,f:1,A:1,w:1,q:1,n:1});function n$a(){this.l=this.W=null}n$a.prototype=new r;n$a.prototype.constructor=n$a;d=n$a.prototype;d.L=function(){return"ResourceTypeFragmentParser"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.fua&&a.l===this.l?Yj(this.W,a.W):!1};d.fx=function(a,b){this.W=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};
d.K=function(a){switch(a){case 0:return this.W;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Bda=function(){M();var a=(new N).a(),a=(new f4).P((new Q).a(),a),b=this.l.Yd.ga;H(z(),G());var a=cj(a,b),b=PB(RB(),this.W).Uc(a.k+"#/"),c=a.k;R();var e=this.W;R();b=H2(QSa(new cV,b,c,"resourceType",lq(R(),e,O().ua),this.l.va));c=Rl().ob;return ff(a,c,b)};
d.$classData=q({fua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentParser$ResourceTypeFragmentParser",{fua:1,f:1,A:1,w:1,q:1,n:1});function o$a(){this.l=this.W=null}o$a.prototype=new r;o$a.prototype.constructor=o$a;d=o$a.prototype;d.L=function(){return"SecuritySchemeFragmentParser"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.gua&&a.l===this.l?Yj(this.W,a.W):!1};
d.K=function(a){switch(a){case 0:return this.W;default:throw(new X).e(""+a);}};d.fx=function(a,b){this.W=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.u=function(){return U(W(),this)};d.Cda=function(){M();var a=(new N).a(),a=(new g4).P((new Q).a(),a),b=this.l.Yd.ga;H(z(),G());a=cj(a,b);R();b=this.W;R();var b=(new Kx).YO(lq(R(),b,O().ua),t(new u,function(a){return function(b){return yi(b,a.l.Yd.ga+"#/",H(z(),G()))}}(this)),this.l.va).LH(),c=Rl().ob;return ff(a,c,b)};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({gua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentParser$SecuritySchemeFragmentParser",{gua:1,f:1,A:1,w:1,q:1,n:1});function p$a(){this.l=this.W=null}p$a.prototype=new r;p$a.prototype.constructor=p$a;d=p$a.prototype;d.L=function(){return"TraitFragmentParser"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.hua&&a.l===this.l?Yj(this.W,a.W):!1};
d.fx=function(a,b){this.W=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.K=function(a){switch(a){case 0:return this.W;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.Dda=function(){M();var a=(new N).a(),a=(new h4).P((new Q).a(),a),b=this.l.Yd.ga;H(z(),G());var a=cj(a,b),b=TB(VB(),this.W).Uc(a.k+"#/"),c=a.k;R();var e=this.W;R();b=H2(QSa(new cV,b,c,"trait",lq(R(),e,O().ua),this.l.va));c=Rl().ob;return ff(a,c,b)};d.M=function(){return Z(this)};
d.$classData=q({hua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentParser$TraitFragmentParser",{hua:1,f:1,A:1,w:1,q:1,n:1});function my(){this.jd=null;this.iP=!1}my.prototype=new r;my.prototype.constructor=my;function i4(){}d=i4.prototype=my.prototype;d.L=function(){return"OasSecuritySchemeType"};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.nJ?this.jd===a.jd&&this.iP===a.iP:!1};
d.K=function(a){switch(a){case 0:return this.jd;case 1:return this.iP;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.jd)),a=zI().Ga(a,this.iP?1231:1237);return zI().Wd(a,2)};d.M=function(){return Z(this)};d.bP=function(a,b){this.jd=a;this.iP=b;return this};d.$classData=q({nJ:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSecuritySchemeType",{nJ:1,f:1,A:1,w:1,q:1,n:1});
function gW(){this.l=this.qb=this.W=this.vr=this.Lc=null}gW.prototype=new r;gW.prototype.constructor=gW;d=gW.prototype;d.L=function(){return"AnnotationTypesParser"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.pua&&a.l===this.l){var b=this.Lc,c=a.Lc;if((null===b?null===c:b.h(c))&&this.vr===a.vr&&Yj(this.W,a.W))return b=this.qb,a=a.qb,null===b?null===a:b.h(a)}return!1};
function mUa(a,b,c,e,f,g){a.Lc=c;a.vr=e;a.W=f;a.qb=g;if(null===b)throw Lb(Mb(),null);a.l=b;return a}d.K=function(a){switch(a){case 0:return this.Lc;case 1:return this.vr;case 2:return this.W;case 3:return this.qb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.GH=function(){var a=APa(CPa(),this.Lc),b=this.vr;M();var c=(new N).a();Ue(a,b,c);this.qb.R(a);b=yc((new K).Y(this.W),"allowedTargets");if(!b.b()){var c=b.c(),b=Ke(M(),c),e=c.i.we();if(rs(e))b.Wb((new C0).a()),e=z(),c=[(new Eh).Vb(c.i,this.l.Dn).Hf()],c=gr(new hr,H(e,(new J).aa(c)),(new N).a());else{if(!Ew(e))throw(new v).d(e);R();R();c=lq(R(),e,O().Nc);c=tDa((new Fw).Vb(c,this.l.Dn))}var c=c.Tb,e=t(new u,function(){return function(a){if(sj(a)){var b=Jw().Xda.Ta(a.u());if(x(b))return Nh(new Oh,b.i,
a.E);if(w()===b)return a;throw(new v).d(b);}return Nh(new Oh,a.u(),a.ha())}}(this)),f=z(),e=c.ka(e,f.s),c=Zl().OF,e=gr(new hr,e,(new N).a());Fh(a,c,e,b)}b=yc((new K).Y(this.W),"displayName");b.b()||(c=b.c(),e=(new Eh).Vb(c.i,this.l.Dn),b=Zl().gd,e=e.Pf(),c=Ke(M(),c),Fh(a,b,e,c));b=yc((new K).Y(this.W),"description");b.b()||(c=b.c(),e=(new Eh).Vb(c.i,this.l.Dn),b=Zl().fb,e=e.Pf(),c=Ke(M(),c),Fh(a,b,e,c));b=yc((new K).Y(this.W),"schema");b.b()||(b=b.c(),c=rV(sV(),b,t(new u,function(a,b){return function(a){a.Qb(b.k,
a.Ub())}}(this,a)),this.l.Dn).wc(),c.b()||(c=c.c(),oB(kB(),c,a.k,w()),e=Zl().Fc,b=Ke(M(),b),Fh(a,e,c,b)));jx(new kx,a,this.W,G(),this.l.Dn).Pc();return a};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({pua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSpecParser$AnnotationTypesParser",{pua:1,f:1,A:1,w:1,q:1,n:1});function fW(){this.l=this.qb=this.so=this.vr=this.Lc=null}fW.prototype=new r;fW.prototype.constructor=fW;d=fW.prototype;d.L=function(){return"LinkedAnnotationTypeParser"};
d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.qua&&a.l===this.l){var b=this.Lc,c=a.Lc;if((null===b?null===c:b.h(c))&&this.vr===a.vr&&Yj(this.so,a.so))return b=this.qb,a=a.qb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Lc;case 1:return this.vr;case 2:return this.so;case 3:return this.qb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function lUa(a,b,c,e,f,g){a.Lc=c;a.vr=e;a.so=f;a.qb=g;if(null===b)throw Lb(Mb(),null);a.l=b;return a}
d.GH=function(){var a=qia(this.l.Dn.Mh,this.so.ya);if(a.b())a=w();else{var a=a.c(),b=this.so.ya,c=Ke(M(),this.Lc),a=gL(a,b,c);a.k=null;b=this.qb;c=this.vr;M();var e=(new N).a();b.R(Ue(a,c,e));a=(new A).d(a)}if(a.b()){M();a=(new N).a();a=(new Le).P((new Q).a(),a);b=this.vr;M();c=(new N).a();a=Ue(a,b,c);this.qb.R(a);var b=this.l.Dn,c=Bc().vD,e=a.k,f=this.so,g=w();Cc(b,c,e,g,"Could not find declared annotation link in references",f.ga);return a}return a.c()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({qua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSpecParser$LinkedAnnotationTypeParser",{qua:1,f:1,A:1,w:1,q:1,n:1});function q$a(){this.l=this.nf=this.W=null}q$a.prototype=new r;q$a.prototype.constructor=q$a;d=q$a.prototype;d.L=function(){return"UsageParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.rua&&a.l===this.l&&Yj(this.W,a.W)){var b=this.nf;a=a.nf;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.W;case 1:return this.nf;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Pc=function(){var a=(new K).Y(this.W),b=Hv((new Cf).e("usage")),a=yc(a,b);if(!a.b()){var c=a.c(),e=(new Eh).Vb(c.i,this.l.Dn),a=this.nf,b=Ap().Ud,e=e.Pf(),c=Ke(M(),c);Fh(a,b,e,c)}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function q9a(a,b,c){var e=new q$a;e.W=b;e.nf=c;if(null===a)throw Lb(Mb(),null);e.l=a;return e}
d.$classData=q({rua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSpecParser$UsageParser",{rua:1,f:1,A:1,w:1,q:1,n:1});function w9a(){this.l=this.UA=null}w9a.prototype=new r;w9a.prototype.constructor=w9a;d=w9a.prototype;d.L=function(){return"UserDocumentationParser"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.sua&&a.l===this.l){var b=this.UA;a=a.UA;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.UA;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.fh=function(){var a=this.UA,b=t(new u,function(a){return function(b){var c=b.pb().nb;if(O().ua===c)return(new j4).Dr(b,a.l.Dn).HH();if(O().Wa===c){var c=zc(),c=L(b,c,a.l.Dn).ya,h=BIa(a.l.Dn.Mh,c,Nr(),w());if(x(h))return h=h.i,b=Ke(M(),b),gL(h,c,b);R();var c=sq().Td,c=(new j4).Dr(lq(R(),c,O().ua),a.l.Dn).HH(),h=a.l.Dn,k=Bc().vD,l=c.k,p="not supported scalar "+b+".text for documentation item",y=w();Cc(h,k,l,y,p,b.ga);return c}throw(new v).d(c);}}(this)),c=z();return a.ka(b,c.s)};
function v9a(a,b,c){a.UA=c;if(null===b)throw Lb(Mb(),null);a.l=b;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({sua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSpecParser$UserDocumentationParser",{sua:1,f:1,A:1,w:1,q:1,n:1});function r$a(){this.Q=this.o=this.Ca=null}r$a.prototype=new r;r$a.prototype.constructor=r$a;d=r$a.prototype;d.L=function(){return"OasUserDocumentationsEmitter"};d.H=function(){return 2};
function l9a(a,b,c){var e=new r$a;e.Ca=a;e.o=b;e.Q=c;return e}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.tua){var b=this.Ca,c=a.Ca;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=this.Ca.t.t.Tb,b;b=new s$a;var c=z(),c=a.$b(b,c.s).wa();b=!1;a=null;if(ft(c)){b=!0;var a=c,c=a.Aj,e=a.ve;if(G().h(e))return H(z(),(new J).aa([Xw(new Yw,"externalDocs",c,this.o,this.Q)]))}return b?(b=a.Aj,a=a.ve,H(z(),(new J).aa([Xw(new Yw,"externalDocs",b,this.o,this.Q),(new t$a).UU(a,this.o,this.Q)]))):G()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({tua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasUserDocumentationsEmitter",{tua:1,f:1,A:1,w:1,q:1,n:1});function Zy(){this.KP=this.Jt=null}Zy.prototype=new r;Zy.prototype.constructor=Zy;d=Zy.prototype;d.L=function(){return"ParsingResult"};d.H=function(){return 2};d.dP=function(a,b){this.Jt=a;this.KP=b;return this};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.yua){var b=this.Jt,c=a.Jt;if(null===b?null===c:b.h(c))return b=this.KP,a=a.KP,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Jt;case 1:return this.KP;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({yua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.ParsingResult",{yua:1,f:1,A:1,w:1,q:1,n:1});
function k4(){this.Q=this.bk=null}k4.prototype=new r;k4.prototype.constructor=k4;d=k4.prototype;d.L=function(){return"RamlDocumentEmitter"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Gua){var b=this.bk;a=a.bk;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.bk;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function u$a(a,b,c){a.bk=b;a.Q=c;return a}
d.XB=function(){var a=this.bk,b=Jy(Ky(),mc(),a.ze().ha()),a=this.Q.of.lea().zf(a,b).Ua(),c,e;c=this.bk;if(Ol(c))e=c.ze();else throw Lb(Mb(),(new Nb).e("BaseUnit doesn't encode a WebApi."));c=Zb(e.E,n($S));if(c.b())var f=w();else c=c.c(),f=(new A).d(c.Qe);c=new v$a;var g=f,h=this.bk.Pe(),f=this.Q;c.Sn=e;c.o=b;c.Qe=g;c.U=h;c.Q=f;if(null===this)throw Lb(Mb(),null);c.l=this;var h=e.g,g=H(Wg(),G()),k=Dd(h,Jn().$);k.b()||(k=k.c(),(new A).d(vh(g,Gh(Hh(),"title",k,w(),c.Q))));k=Dd(h,Jn().Wh);k.b()||(k=k.c(),
(new A).d(Er(g,(new g9a).GK(k,c.o,c.U,c.Q).Ua())));k=Dd(h,Jn().fb);k.b()||(k=k.c(),(new A).d(vh(g,Gh(Hh(),"description",k,w(),c.Q))));k=Dd(h,Jn().tl);k.b()||(k=k.c(),(new A).d(vh(g,Kw(new Lw,"mediaType",k,c.o,!1))));k=Dd(h,Jn().Tm);k.b()||(k=k.c(),(new A).d(vh(g,Gh(Hh(),"version",k,w(),c.Q))));k=Dd(h,Jn().dG);k.b()||(k=k.c(),(new A).d(vh(g,Ih(new Jh,Kh((new Cf).e("termsOfService")),k,w()))));k=Dd(h,Jn().yk);k.b()||(k=k.c(),(new A).d(vh(g,Kw(new Lw,"protocols",k,c.o,!1))));k=Dd(h,Jn().bG);k.b()||(k=
k.c(),(new A).d(vh(g,(new w$a).vba(c.l,Kh((new Cf).e("contact")),k,c.o))));k=Dd(h,Jn().wv);if(!k.b()){var k=k.c(),l=Kh((new Cf).e("tags")),p=c.Q;(new A).d(vh(g,(new J3).eH(l,k.t.t.Tb,c.o,(new tU).Ci(p.jc,p.Sy,(new ob).a()))))}k=Dd(h,Jn().tw);k.b()||(k=k.c(),(new A).d(vh(g,x$a(k,c.o,c.Q))));k=Dd(h,Jn().WF);k.b()||(k=k.c(),(new A).d(vh(g,(new y$a).vba(c.l,Kh((new Cf).e("license")),k,c.o))));k=Dd(h,Jn().kr);k.b()||(k=k.c(),(new A).d(Er(g,z$a(c,k,c.o,c.Qe))));Er(g,Mw(e,b,f).Ua());e=Dd(h,Jn().oc);e.b()||
(e=e.c(),(new A).d(vh(g,(new TV).DE("securedBy",e,c.o,c.Q))));c.Gc=b.Cb(g);c=c.Gc;e=z();a=a.la(c,e.s);c=Ly();e=(new My).e(c.Dh);f=(new ph).e(c.xh);Tc(f)&&Ny(e,c.xh);f=this.Q.of.gEa(this.bk);f.b()||(f=f.c(),Ny(e,f));f=e.r;g=e.da;h=(new pq).e(g);iq(Cq(),b.Cb(a),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));return(new Oy).mc(Py(vq(),c.Dh),e.r)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Gua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlDocumentEmitter",{Gua:1,f:1,A:1,w:1,q:1,n:1});function v$a(){this.l=this.Gc=this.Q=this.U=this.Qe=this.o=this.Sn=null}v$a.prototype=new r;v$a.prototype.constructor=v$a;d=v$a.prototype;d.L=function(){return"WebApiEmitter"};d.H=function(){return 4};function A$a(a,b){return b.Ej(B$a(a))}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Jua&&a.l===this.l){var b=this.Sn,c=a.Sn;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.Qe,c=a.Qe,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Sn;case 1:return this.o;case 2:return this.Qe;case 3:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function z$a(a,b,c,e){b=b.t.t.Tb;if(e.Ja(vt()))return a=t(new u,function(a,b){return function(c){return a.Q.of.oaa().nu(c,b,H(Wg(),G()),a.U)}}(a,c)),c=z(),b.ka(a,c.s);e=t(new u,function(){return function(a){var b=SV(a).wa(),c=Pf(),c=Qf(c);return(new P).N(a,Ei(b,c))}}(a));var f=z();e=b.ka(e,f.s).$g(fc().ci);b=pc(br(),G());rka||(rka=(new xu).a());e=qka(e);Hp(e)&&e.i.X(t(new u,function(a,b,c){return function(e){var f=a.Q.of.oaa().nu(e,b,H(Wg(),G()),a.U),y=SV(e);x(y)&&(y=Eba(c,y.i),vh(y.Uf,f));return $q(c,
(new P).N(e,f))}}(a,c,b)));c=(new l4).l1(b,t(new u,function(){return function(a){return SV(a).b()}}(a)));c=(new dd).Qd(c);return A$a(a,c.Rb.gf().kd())}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Jua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlDocumentEmitter$WebApiEmitter",{Jua:1,f:1,A:1,w:1,q:1,n:1});function C$a(){this.l=this.W=null}C$a.prototype=new r;C$a.prototype.constructor=C$a;d=C$a.prototype;d.L=function(){return"AnnotationFragmentParser"};
d.H=function(){return 1};d.gx=function(a,b){this.W=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Tua&&a.l===this.l?Yj(this.W,a.W):!1};d.K=function(a){switch(a){case 0:return this.W;default:throw(new X).e(""+a);}};
d.yda=function(){M();var a=(new N).a(),a=(new c4).P((new Q).a(),a),b=this.l.Yd.ga;H(z(),G());var a=cj(a,b),b=C1a(new D1,this.l,this.W,"annotation",this.W,t(new u,function(a){return function(b){s9a(b,a.l.Yd.ga+"#/",H(z(),G()))}}(this))).GH(),c=Rl().ob;return ff(a,c,b)};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Tua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentParser$AnnotationFragmentParser",{Tua:1,f:1,A:1,w:1,q:1,n:1});function D$a(){this.l=this.W=null}D$a.prototype=new r;D$a.prototype.constructor=D$a;d=D$a.prototype;d.L=function(){return"DataTypeFragmentParser"};d.gx=function(a,b){this.W=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Uua&&a.l===this.l?Yj(this.W,a.W):!1};
d.K=function(a){switch(a){case 0:return this.W;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.zda=function(){M();var a=(new N).a(),a=(new dQ).P((new Q).a(),a),b=this.l.Yd.ga;H(z(),G());a=cj(a,b);SU();R();b=this.W;R();b=pTa(lq(R(),b,O().ua),"type",t(new u,function(a){return function(b){return Te(b,a.l.Yd.ga+"#/shape")}}(this)),tO(),this.l.va).wc();if(!b.b()){var b=b.c(),c=Rl().ob;ff(a,c,b)}return a};
d.$classData=q({Uua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentParser$DataTypeFragmentParser",{Uua:1,f:1,A:1,w:1,q:1,n:1});function E$a(){this.l=this.W=null}E$a.prototype=new r;E$a.prototype.constructor=E$a;d=E$a.prototype;d.L=function(){return"DocumentationItemFragmentParser"};d.gx=function(a,b){this.W=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.H=function(){return 1};
d.Ada=function(){M();var a=(new N).a(),a=(new d4).P((new Q).a(),a),b=this.l.Yd.ga;H(z(),G());a=cj(a,b);R();b=this.W;R();var b=(new j4).Dr(lq(R(),b,O().ua),this.l.va).HH(),c=Rl().ob;ff(a,c,b);return a};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Vua&&a.l===this.l?Yj(this.W,a.W):!1};d.K=function(a){switch(a){case 0:return this.W;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Vua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentParser$DocumentationItemFragmentParser",{Vua:1,f:1,A:1,w:1,q:1,n:1});function F$a(){this.l=this.W=null}F$a.prototype=new r;F$a.prototype.constructor=F$a;d=F$a.prototype;d.L=function(){return"NamedExampleFragmentParser"};d.gx=function(a,b){this.W=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Wua&&a.l===this.l?Yj(this.W,a.W):!1};d.K=function(a){switch(a){case 0:return this.W;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Wua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentParser$NamedExampleFragmentParser",{Wua:1,f:1,A:1,w:1,q:1,n:1});function G$a(){this.l=this.W=null}G$a.prototype=new r;
G$a.prototype.constructor=G$a;d=G$a.prototype;d.L=function(){return"ResourceTypeFragmentParser"};d.gx=function(a,b){this.W=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Xua&&a.l===this.l?Yj(this.W,a.W):!1};d.K=function(a){switch(a){case 0:return this.W;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Bda=function(){M();var a=(new N).a(),a=(new f4).P((new Q).a(),a),b=this.l.Yd.ga+"#";H(z(),G());var a=cj(a,b),b=PB(RB(),this.W).Uc(a.k),c=a.k;R();var e=this.W;R();b=H2(QSa(new cV,b,c,"resourceType",lq(R(),e,O().ua),this.l.va));c=Rl().ob;return ff(a,c,b)};d.$classData=q({Xua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentParser$ResourceTypeFragmentParser",{Xua:1,f:1,A:1,w:1,q:1,n:1});function H$a(){this.l=this.W=null}H$a.prototype=new r;H$a.prototype.constructor=H$a;d=H$a.prototype;
d.L=function(){return"SecuritySchemeFragmentParser"};d.H=function(){return 1};d.gx=function(a,b){this.W=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Yua&&a.l===this.l?Yj(this.W,a.W):!1};d.K=function(a){switch(a){case 0:return this.W;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Cda=function(){M();var a=(new N).a(),a=(new g4).P((new Q).a(),a),b=this.l.Yd.ga;H(z(),G());a=cj(a,b);b=this.W;R();var c=this.W;R();b=Xna(new Hx,b,"securityDefinitions",lq(R(),c,O().ua),qd(function(a){return function(b){return yi(b,a.l.Yd.ga+"#/",H(z(),G()))}}(this)),this.l.va).LH();c=Rl().ob;return ff(a,c,b)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Yua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentParser$SecuritySchemeFragmentParser",{Yua:1,f:1,A:1,w:1,q:1,n:1});function I$a(){this.l=this.W=null}I$a.prototype=new r;I$a.prototype.constructor=I$a;d=I$a.prototype;d.L=function(){return"TraitFragmentParser"};d.gx=function(a,b){this.W=b;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Zua&&a.l===this.l?Yj(this.W,a.W):!1};d.K=function(a){switch(a){case 0:return this.W;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.Dda=function(){M();var a=(new N).a(),a=(new h4).P((new Q).a(),a),b=this.l.Yd.ga+"#";H(z(),G());var a=cj(a,b),b=TB(VB(),this.W).Uc(a.k),c=a.k;R();var e=this.W;R();b=H2(QSa(new cV,b,c,"trait",lq(R(),e,O().ua),this.l.va));c=Rl().ob;return ff(a,c,b)};
d.M=function(){return Z(this)};d.$classData=q({Zua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentParser$TraitFragmentParser",{Zua:1,f:1,A:1,w:1,q:1,n:1});function J$a(){this.Q=this.tP=null}J$a.prototype=new r;J$a.prototype.constructor=J$a;d=J$a.prototype;d.L=function(){return"RamlModuleEmitter"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.$ua){var b=this.tP;a=a.tP;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.tP;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.d0=function(){var a=Jy(Ky(),mc(),this.tP.E),b=this.Q.of.lea().zf(this.tP,a).Ua(),c=Ly(),e=(new My).e(c.Dh),f=(new ph).e(c.xh);Tc(f)&&Ny(e,c.xh);Ny(e,DSa().jd);if(b.Fa()){var f=e.r,g=e.da,h=(new pq).e(g);iq(Cq(),a.Cb(b),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua))}return(new Oy).mc(Py(vq(),c.Dh),e.r)};function K$a(a,b,c){a.tP=b;a.Q=c;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({$ua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlModuleEmitter",{$ua:1,f:1,A:1,w:1,q:1,n:1});function D1(){this.l=this.qb=this.W=this.vr=this.Lc=null}D1.prototype=new r;D1.prototype.constructor=D1;d=D1.prototype;d.L=function(){return"AnnotationTypesParser"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.bva&&a.l===this.l){var b=this.Lc,c=a.Lc;if((null===b?null===c:b.h(c))&&this.vr===a.vr&&Yj(this.W,a.W))return b=this.qb,a=a.qb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Lc;case 1:return this.vr;case 2:return this.W;case 3:return this.qb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function C1a(a,b,c,e,f,g){a.Lc=c;a.vr=e;a.W=f;a.qb=g;if(null===b)throw Lb(Mb(),null);a.l=b;return a}
d.GH=function(){var a=APa(CPa(),this.Lc),b=this.vr;M();var c=(new N).a();Ue(a,b,c);this.qb.R(a);b=this.Lc;b=Kr(b)?(new A).d(b):Aw(b)?(new A).d(gF(jC(),Th(R(),"annotationType"),(R(),lq(R(),b,O().ua)))):w();if(x(b)){b=b.i;b=RU(SU(),b,t(new u,function(a,b){return function(a){M();var c=(new N).a();a=Ue(a,"schema",c);var c=b.k,e=a.Ub();return a.Qb(c,e)}}(this,a)),TU(!0,!1),tO(),this.l.Rn).wc();if(!b.b()){b=b.c();oB(kB(),b,a.k,w());var c=Zl().Fc,e=Ke(M(),this.Lc);Fh(a,c,b,e)}b=yc((new K).Y(this.W),"allowedTargets");
if(!b.b()){c=b.c();b=Ke(M(),c);e=c.i.pb().nb;if(O().Nc===e)c=zDa((new Fw).Vb(c.i,this.l.Rn));else if(O().ua===e){var e=this.l.Rn,f=rh().u6,g=a.k,c=c.i,h=w();Cc(e,f,g,h,"Property 'allowedTargets' in a RAML annotation can only be a valid scalar or an array of valid scalars",c.ga);c=gr(new hr,H(z(),G()),(new N).a())}else b.Wb((new C0).a()),e=z(),c=[(new Eh).Vb(c.i,this.l.Rn).Pf()],c=gr(new hr,H(e,(new J).aa(c)),(new N).a());c=c.Tb;e=t(new u,function(){return function(a){if(sj(a)){var b=Jw().Xda.Ta(a.u());
if(x(b))return Nh(new Oh,b.i,a.E);if(w()===b)return a;throw(new v).d(b);}return Nh(new Oh,a.u(),a.ha())}}(this));f=z();e=c.ka(e,f.s);c=Zl().OF;e=gr(new hr,e,(new N).a());Fh(a,c,e,b)}b=yc((new K).Y(this.W),"description");b.b()||(c=b.c(),e=(new Eh).Vb(c.i,this.l.Rn),b=Zl().fb,e=e.Pf(),c=Ke(M(),c),Fh(a,b,e,c));jx(new kx,a,this.W,G(),this.l.Rn).Pc();return a}if(w()===b)return b=this.l.Rn,c=rh().$M,e=a.k,f=this.Lc,g=w(),Cc(b,c,e,g,"Cannot parse annotation type fragment, cannot find information map",f.ga),
a;throw(new v).d(b);};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({bva:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlSpecParser$AnnotationTypesParser",{bva:1,f:1,A:1,w:1,q:1,n:1});function L$a(){this.l=this.nf=this.W=null}L$a.prototype=new r;L$a.prototype.constructor=L$a;d=L$a.prototype;d.L=function(){return"UsageParser"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.cva&&a.l===this.l&&Yj(this.W,a.W)){var b=this.nf;a=a.nf;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.nf;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function M$a(a,b,c){var e=new L$a;e.W=b;e.nf=c;if(null===a)throw Lb(Mb(),null);e.l=a;return e}
d.Pc=function(){var a=yc((new K).Y(this.W),"usage");if(!a.b()){var a=a.c(),b=a.i.pb().nb;if(O().Wa===b){var c=(new Eh).Vb(a.i,this.l.Rn),b=this.nf,e=Ap().Ud,c=c.Pf(),a=Ke(M(),a);Fh(b,e,c,a)}}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({cva:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlSpecParser$UsageParser",{cva:1,f:1,A:1,w:1,q:1,n:1});function N$a(){this.l=this.Rd=this.Bi=this.UA=null}N$a.prototype=new r;N$a.prototype.constructor=N$a;d=N$a.prototype;
d.L=function(){return"UserDocumentationsParser"};d.H=function(){return 3};function O$a(a,b,c,e,f){a.UA=c;a.Bi=e;a.Rd=f;if(null===b)throw Lb(Mb(),null);a.l=b;return a}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.dva&&a.l===this.l){var b=this.UA,c=a.UA;return(null===b?null===c:b.h(c))&&this.Bi===a.Bi?this.Rd===a.Rd:!1}return!1};d.K=function(a){switch(a){case 0:return this.UA;case 1:return this.Bi;case 2:return this.Rd;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};
d.fh=function(){var a=H(Wg(),G());this.UA.X(t(new u,function(a,c){return function(e){var f=e.pb().nb;if(O().ua===f)return vh(c,(new j4).Dr(e,a.l.Rn).HH());if(O().Nc===f){var f=a.l.Rn,g=rh().C6,h=a.Rd,k=w();Cc(f,g,h,k,"Unexpected sequence. Options are object or scalar ",e.ga)}else{f=zc();e=L(e,f,a.l.Rn);f=BIa(a.Bi,e.ya,Or(),(new A).d(t(new u,function(a,b){return function(c){var e=a.l.Rn,f=rh().vz,g=w();Cc(e,f,"",g,c,b.ga)}}(a,e))));if(x(f))return f=f.i,e=e.ya,M(),g=(new N).a(),vh(c,gL(f,e,g));var f=
a.l.Rn,g=Bc().vD,h=a.Rd,k="not supported scalar "+e.ya+" for documentation",l=w();Cc(f,g,h,l,k,e.ga)}}}(this,a)));return a};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({dva:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlSpecParser$UserDocumentationsParser",{dva:1,f:1,A:1,w:1,q:1,n:1});function n4(){this.MJ=null}n4.prototype=new r;n4.prototype.constructor=n4;d=n4.prototype;d.L=function(){return"BranchContainer"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.hva){var b=this.MJ;a=a.MJ;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.MJ;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function P$a(a,b,c,e){a:for(;;){var f=H(Wg(),G());e.X(t(new u,function(a,b,c){return function(e){e.Uf.xb(t(new u,function(a,b){return function(a){return b.Pz(a.oa)}}(a,b))).X(t(new u,function(a,b){return function(a){return vh(b,a)}}(a,c)))}}(a,b,f)));vh(c,f);if(f.Fa()){e=f;continue a}break}}
function MUa(a){var b=H(xz(),G()),c=H(Wg(),G());vh(c,a.MJ);var e=a.MJ,f=t(new u,function(){return function(a){return a.oa}}(a)),g=z(),e=e.ka(f,g.s);Yi(b,e);P$a(a,b,c,a.MJ);a=H(z(),G());for(c=c.Lb;!c.b();)b=c.fa(),e=z(),a=a.la(b,e.s),c=c.sa();return a}d.ss=function(a){this.MJ=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({hva:0},!1,"amf.plugins.document.webapi.resolution.stages.BranchContainer",{hva:1,f:1,A:1,w:1,q:1,n:1});
function uW(){this.er=this.bi=null}uW.prototype=new r;uW.prototype.constructor=uW;d=uW.prototype;d.L=function(){return"Context"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.iva){var b=this.bi,c=a.bi;if(null===b?null===c:b.h(c))return b=this.er,a=a.er,null===b?null===a:o4(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.bi;case 1:return this.er;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function yUa(a,b,c){var e=a.er;Dr();var f=w();b=e.Ij((new p2).Kba(b,Ar(0,c,f,(M(),(new N).a()))));return zUa(new uW,a.bi,b)}function zUa(a,b,c){a.bi=b;a.er=c;return a}function VUa(a,b){var c=a.er,e=t(new u,function(){return function(a){var b=B(a.g,om().$).G;return(new p2).Kba(b.b()?null:b.c(),B(a.g,om().rf))}}(a)),f=z();b=c.vk(b.ka(e,f.s));return zUa(new uW,a.bi,b)}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({iva:0},!1,"amf.plugins.document.webapi.resolution.stages.Context",{iva:1,f:1,A:1,w:1,q:1,n:1});function Q$a(){this.l=this.Vza=null}Q$a.prototype=new r;Q$a.prototype.constructor=Q$a;function IUa(a,b){var c=new Q$a;c.Vza=b;if(null===a)throw Lb(Mb(),null);c.l=a;return c}d=Q$a.prototype;d.L=function(){return"Branches"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.jva)&&a.l===this.l&&!0};d.K=function(a){throw(new X).e(""+a);};
d.u=function(){return U(W(),this)};function JUa(a,b,c,e,f){return(new n4).ss(R$a(a,b,c.g3(),e,f.oF))}function LUa(a,b,c,e,f,g){var h=B(c.g,Tm().xk).Ib(t(new u,function(a,b){return function(a){a=B(a.g,Zm().nt).G;return(a.b()?null:a.c())===b}}(a,f)));if(h.b())f=w();else{var h=h.c(),k=g.oF.Ib(t(new u,function(a,b){return function(a){return a.oa===b}}(a,f)));f=(new A).d(MUa(JUa(a,b,h,e,k.b()?(new gz).Di(f,G()):k.c())))}f=f.b()?H(z(),G()):f.c();a=MUa(KUa(a,b,c,e,g));return(new n4).ss(uUa(wUa(),f,a))}
function R$a(a,b,c,e,f){a=t(new u,function(a,b,c,e){return function(f){return S$a(b,f,c,a.Vza,e).wa()}}(a,b,e,f));b=z();return c.md(a,b.s)}d.y=function(){return Y(this)};d.M=function(){return Z(this)};function KUa(a,b,c,e,f){return(new n4).ss(R$a(a,b,c.g3(),e,f.oF))}d.$classData=q({jva:0},!1,"amf.plugins.document.webapi.resolution.stages.ExtendsResolutionStage$Branches",{jva:1,f:1,A:1,w:1,q:1,n:1});function GUa(){this.l=this.Gm=null}GUa.prototype=new r;GUa.prototype.constructor=GUa;d=GUa.prototype;
d.L=function(){return"TraitResolver"};d.xba=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;this.Gm=pc(Os(),G());return this};d.H=function(){return 0};function S$a(a,b,c,e,f){var g=VUa(c,b.rI()),h=TUa(b).k,g=T$a(h,g.er);b=U$a(a,g,b,c,e,f);if(x(b))return(new A).d(a.Gm.IO(g,jb(function(a,b){return function(){return b}}(a,b.i))));a.Gm.Xt(g);return w()}d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.nva)&&a.l===this.l&&!0};
function U$a(a,b,c,e,f,g){var h=VUa(e,c.rI()),k=!1,l=null,p=Wa().Ia(TUa(c));if(x(p)&&(k=!0,l=p,ISa(l.i)))return a=a.l,M(),e=(new N).a(),(new A).d(V$a(new p4,a,b,(new cC).P((new Q).a(),e),H(z(),G())));if(k&&(k=l.i,Mn(k))){p=H(z(),G());if((p=Px(k,p))&&p.$classData&&p.$classData.v.Q7)return a=a.l,M(),e=(new N).a(),e=(new cC).P((new Q).a(),e),(new A).d(V$a(new p4,a,b,Te(e,p.k+"_op"),G()));if(Mn(p)){k=p.jA().QJ();k.PL(h.er,g,t(new u,function(a,b,c,e){return function(a){var f=Bc().nh,g=c.k,h=w(),k=Zb(e.ab,
n(Fd)),l=Yb(e);b.Hc(f.k,g,h,a,k,xc().tb,l)}}(a,f,p,c)));var h=Az(),l=a.l.o_,y=e.bi,I=B(c.ea,zW().$).G;c=Wra(h,l,k,y,I.b()?"":I.c(),c.ab,p.k,zz(Az(),p.k,e.bi),a.l.jm,(new A).d(f));p=c.g3();e=t(new u,function(a,b,c,e){return function(f){return S$a(a,f,b,c,e).wa()}}(a,e,f,g));f=z();e=p.md(e,f.s);return(new A).d(V$a(new p4,a.l,b,c,e))}throw(new v).d(p);}b=a.l.ub;a=Bc().nh;sz(b,a,c.k,"Looking for trait but "+p+" was found on model "+e.bi,c.ab);return w()}d.K=function(a){throw(new X).e(""+a);};
d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({nva:0},!1,"amf.plugins.document.webapi.resolution.stages.ExtendsResolutionStage$TraitResolver",{nva:1,f:1,A:1,w:1,q:1,n:1});function W$a(){this.l=this.Xp=this.vV=null}W$a.prototype=new r;W$a.prototype.constructor=W$a;d=W$a.prototype;d.L=function(){return"IriMerger"};d.H=function(){return 2};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.ova&&a.l===this.l?this.vV===a.vV&&this.Xp===a.Xp:!1};d.K=function(a){switch(a){case 0:return this.vV;case 1:return this.Xp;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function npa(a,b,c,e){a=LBa(ta(),e.u(),a.Xp,a.vV);Eb(b,c,a)}function Epa(a,b,c){var e=new W$a;e.vV=b;e.Xp=c;if(null===a)throw Lb(Mb(),null);e.l=a;return e}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({ova:0},!1,"amf.plugins.document.webapi.resolution.stages.ExtensionLikeResolutionStage$IriMerger",{ova:1,f:1,A:1,w:1,q:1,n:1});function jz(){this.$K=null}jz.prototype=new r;jz.prototype.constructor=jz;d=jz.prototype;d.a=function(){this.$K=H(xz(),G());return this};d.L=function(){return"IdTracker"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.pva)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};
function spa(a,b){return b.Ng(t(new u,function(a){return function(b){return!a.$K.Ja(b)}}(a)))}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({pva:0},!1,"amf.plugins.document.webapi.resolution.stages.IdTracker",{pva:1,f:1,A:1,w:1,q:1,n:1});function X$a(){this.er=this.ba=null}X$a.prototype=new r;X$a.prototype.constructor=X$a;d=X$a.prototype;d.L=function(){return"Key"};function T$a(a,b){var c=new X$a;c.ba=a;c.er=b;return c}d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.qva&&this.ba===a.ba){var b=this.er;a=a.er;return null===b?null===a:o4(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.ba;case 1:return this.er;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({qva:0},!1,"amf.plugins.document.webapi.resolution.stages.Key",{qva:1,f:1,A:1,w:1,q:1,n:1});function Y$a(){this.RW=this.iA=null}
Y$a.prototype=new r;Y$a.prototype.constructor=Y$a;function Z$a(a,b){var c=$$a(a,b),e=!1,f=null;b=b.Ta(a.iA.k);if(x(b)){var e=!0,f=b,g=f.i;if(c.Fa())return(new A).d(aab(a,g,bab(a,c)))}if(e)return(new A).d(aab(a,f.i,w()));if(w()===b&&c.Fa()){e=bab(a,c);e=e.b()?"":e.c();f=c.Cd(t(new u,function(){return function(a){return a.km===xc().tb}}(a)))?xc().tb:xc().Eg;b=a.iA.k;var g=c.fa().fw,c=c.fa().Us,h=Zb(a.iA.ha(),n(Fd));a=Yb(a.iA);return(new A).d(vc(new wc,e,f,b,g,c,h,a,null))}return w()}d=Y$a.prototype;
d.L=function(){return"DataNodeEntry"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.rva&&this.iA===a.iA){var b=this.RW;a=a.RW;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.iA;case 1:return this.RW;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function bab(a,b){var c=(new Qd).d(""),e=t(new u,function(){return function(a){return a.Ad}}(a)),f=z();b.ka(e,f.s).Ri().X(t(new u,function(a,b){return function(a){var c=b.ta;a+="\n";if(null===c)throw(new Rg).a();b.ta=c+a}}(a,c)));return Wa().Ia(c.ta)}function cab(a){CB();var b=fc().ci;return a.Ej(DB(b))}
function aab(a,b,c){b=cab(b);var e=!1,f=null;if(ft(b)){var e=!0,f=b,g=f.Aj,h=f.ve;if(G().h(h)&&c.qa())return a=g.Ad+"\n"+(c.b()?"":c.c()),vc(new wc,a,g.km,g.Wu,g.fw,g.Us,g.og,g.ga,g.Yy)}if(e&&(g=f.Aj,f=f.ve,G().h(f)))return g;if(e)return e=b.Cd(t(new u,function(){return function(a){return a.km===xc().tb}}(a)))?xc().tb:xc().Eg,f=(new Qd).d(""),g=t(new u,function(){return function(a){return a.Ad}}(a)),h=z(),b.ka(g,h.s).Ri().X(t(new u,function(a,b){return function(a){b.ta=""+b.ta+a+"\n"}}(a,f))),c.b()?
c=f.ta:(c=c.c(),c=""+f.ta+c),f=b.fa().Wu,g=Wa().Ia(a.iA.k),b=b.fa().Us,h=Zb(a.iA.ha(),n(Fd)),a=Yb(a.iA),vc(new wc,c,e,f,g,b,h,a,null);throw(new v).d(b);}function $$a(a,b){var c=a.RW;a=t(new u,function(a,b){return function(c){return b.vu(c,jb(function(){return function(){return G()}}(a)))}}(a,b));b=z();return cab(c.md(a,b.s))}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({rva:0},!1,"amf.plugins.document.webapi.validation.DataNodeEntry",{rva:1,f:1,A:1,w:1,q:1,n:1});
function dab(){this.bx=this.p_=null}dab.prototype=new r;dab.prototype.constructor=dab;d=dab.prototype;d.L=function(){return"DataNodeIndex"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.sva){var b=this.p_;a=a.p_;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p_;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function eab(a,b){var c=a.bx;a=t(new u,function(a,b){return function(a){if(null!==a)return Z$a(a.Ba(),b).wa();throw(new v).d(a);}}(a,b));b=Ce().s;return eA(c,a,b).ce()}d.ss=function(a){this.p_=a;var b=t(new u,function(a){return function(b){var c=b.k,h=new Y$a,k=fab(a,b);h.iA=b;h.RW=k;return(new P).N(c,h)}}(this)),c=z();this.bx=a.ka(b,c.s).$g(fc().ci);return this};d.y=function(){return Y(this)};
function fab(a,b){if(fm(b)){b=A3a(b);var c=(new dd).Qd(b);pf();pf();Ce();b=(new $g).a();for(c=c.Rb.gf();c.Qa();){var e=c.Sa(),f=e.k,e=fab(a,e),g=z(),f=e.Tr(f,g.s).td();Er(b,f)}return b.wa()}return jm(b)?(b=B(b.ea,im().du),a=t(new u,function(a){return function(b){var c=b.k;b=fab(a,b);var e=z();return b.Tr(c,e.s)}}(a)),c=z(),b.md(a,c.s)):G()}d.M=function(){return Z(this)};d.$classData=q({sva:0},!1,"amf.plugins.document.webapi.validation.DataNodeIndex",{sva:1,f:1,A:1,w:1,q:1,n:1});
function oA(){this.nk=null;this.bHa=this.pE=!1}oA.prototype=new r;oA.prototype.constructor=oA;function gab(){}d=gab.prototype=oA.prototype;d.L=function(){return"ResultContainer"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.c8){var b=this.nk;a=a.nk;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.nk;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.ss=function(a){this.nk=a;this.pE=a.Cd(t(new u,function(){return function(a){return a.km===xc().tb}}(this)));this.bHa=!this.pE;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({c8:0},!1,"amf.plugins.document.webapi.validation.ResultContainer",{c8:1,f:1,A:1,w:1,q:1,n:1});function hab(){this.bx=this.eA=this.na=this.nf=null}hab.prototype=new r;hab.prototype.constructor=hab;d=hab.prototype;d.L=function(){return"UnitPayloadsValidation"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.xva){var b=this.nf,c=a.nf;return(null===b?null===c:b.h(c))?this.na===a.na:!1}return!1};d.K=function(a){switch(a){case 0:return this.nf;case 1:return this.na;default:throw(new X).e(""+a);}};function iab(a,b){wp(xp(),"UnitPayloadsValidation#validate: Validating all candidates "+a.eA.lb());return $pa().o3(a.eA,xc().Eg,b).Lf(t(new u,function(a){return function(b){return jab(a,b)}}(a)),um())}
function jab(a,b){b=b.nk.wa();CB();var c=fc().ci,c=nv(b,DB(c)).Ym(t(new u,function(){return function(a){return a.Wu}}(a)));b=eab(a.bx,c);c=c.xb(t(new u,function(){return function(a){if(null!==a){for(a=a.Ba();!a.b();){if(a.fa().Us===vo().FZ.k)return!0;a=a.sa()}return!1}throw(new v).d(a);}}(a)));a=t(new u,function(){return function(a){return a.Ba()}}(a));var e=Ce();a=c.md(a,e.s);c=z();return b.la(a,c.s)}d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};
d.qU=function(a,b){this.nf=a;this.na=b;bqa||(bqa=(new fA).a());var c=Wpa((new $z).BK(a));hqa||(hqa=(new nA).a());var e=hqa.q$(a,b),f=z(),c=c.la(e,f.s);Rpa||(Rpa=(new Xz).a());a=Rpa.q$(a,b);b=z();this.eA=c.la(a,b.s);a=this.eA.xb(t(new u,function(){return function(a){a=a.fe.g;var b=Dm().ob;return a.Pb.Ja(b)}}(this)));b=t(new u,function(){return function(a){return Xp(a.fe.g,Dm().ob)}}(this));c=z();a=a.ka(b,c.s);b=this.eA;c=t(new u,function(){return function(a){return B(a.ra.ca(),Pg().Kg)}}(this));e=
z();b=b.md(c,e.s);c=z();a=a.la(b,c.s);this.bx=(new dab).ss(a);return this};d.M=function(){return Z(this)};d.$classData=q({xva:0},!1,"amf.plugins.document.webapi.validation.UnitPayloadsValidation",{xva:1,f:1,A:1,w:1,q:1,n:1});function kab(){this.Nq=this.qf=this.Ov=this.na=this.Hl=this.nf=null}kab.prototype=new r;kab.prototype.constructor=kab;d=kab.prototype;d.L=function(){return"ValidationContext"};d.H=function(){return 6};
function mqa(a,b,c,e,f,g){var h=new kab;h.nf=a;h.Hl=b;h.na=c;h.Ov=e;h.qf=f;h.Nq=g;return h}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.yva){var b=this.nf,c=a.nf;(null===b?null===c:b.h(c))?(b=this.Hl,c=a.Hl,b=null===b?null===c:b.h(c)):b=!1;if(b&&this.na===a.na&&this.Ov===a.Ov&&this.qf===a.qf)return b=this.Nq,a=a.Nq,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.nf;case 1:return this.Hl;case 2:return this.na;case 3:return this.Ov;case 4:return this.qf;case 5:return this.Nq;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({yva:0},!1,"amf.plugins.document.webapi.validation.ValidationContext",{yva:1,f:1,A:1,w:1,q:1,n:1});function lqa(){this.wDa=this.Uza=this.FCa=this.dj=null}lqa.prototype=new r;
lqa.prototype.constructor=lqa;d=lqa.prototype;d.L=function(){return"WebApiValidationsRunner"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ava){var b=this.dj;a=a.dj;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.dj;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.KK=function(a){this.dj=a;this.FCa=(new lab).KK(a);this.Uza=(new mab).KK(a);this.wDa=(new nab).KK(a);return this};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};function kqa(a){var b=a.wDa;oab||(oab=(new q4).a());return iqa(b,oab).ei(t(new u,function(a){return function(b){return(b.pE?HB(ib(),b):iqa(a.FCa,b)).ei(t(new u,function(a){return function(b){return(b.pE?HB(ib(),b):iqa(a.Uza,b)).Lf(t(new u,function(a){return function(b){return dp(new ep,b.bHa,a.dj.nf.k,a.dj.Hl,b.nk)}}(a)),um())}}(a)),um())}}(a)),um())}d.$classData=q({Ava:0},!1,"amf.plugins.document.webapi.validation.WebApiValidationsRunner",{Ava:1,f:1,A:1,w:1,q:1,n:1});
function AW(){vE.call(this)}AW.prototype=new Q1;AW.prototype.constructor=AW;AW.prototype.gm=function(a){Hg.prototype.gm.call(this,a);return this};function iLa(a){return!!(a&&a.$classData&&a.$classData.v.Bva)}AW.prototype.$classData=q({Bva:0},!1,"amf.plugins.document.webapi.validation.remote.InvalidJsonObject",{Bva:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function pab(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.vJ=this.uJ=null;this.ma=0}pab.prototype=new r;pab.prototype.constructor=pab;d=pab.prototype;
d.a=function(){qab=this;Iq(this);cT(this);var a=Xc(),b=C().Gb;this.uJ=Rb(new Sb,a,D(new F,b,"propertySource"),Tb(new Ub,Vb().Gb,"property source","Source property shape in the dependency",G()));a=(new Ki).Ld(Xc());b=C().Gb;this.vJ=Rb(new Sb,a,D(new F,b,"propertyTarget"),Tb(new Ub,Vb().Gb,"property target","Target property shape in the dependency",G()));Di();var a=C().Gb,a=(new J).aa([D(new F,a,"PropertyDependencies")]),b=Di().s,a=Ei(a,b),b=Lc().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().Gb,
"Property Dependencies","Dependency between sets of property shapes",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){Di();var a=(new J).aa([this.uJ,this.vJ]),b=Di().s,a=Ei(a,b),b=Lc().g,c=Di();return a.la(b,c.s)};d.Zc=function(){M();var a=(new N).a();return(new L2).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({m_a:0},!1,"amf.plugins.domain.shapes.metamodel.PropertyDependenciesModel$",{m_a:1,f:1,se:1,Oc:1,ic:1,Xc:1});
var qab=void 0;function jo(){qab||(qab=(new pab).a());return qab}function rab(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.g=this.nN=this.kN=this.$=this.HJ=this.JF=null;this.ma=0}rab.prototype=new r;rab.prototype.constructor=rab;d=rab.prototype;
d.a=function(){sab=this;Iq(this);cT(this);var a=Yc(),b=C().Gb;this.JF=Rb(new Sb,a,D(new F,b,"xmlAttribute"),Tb(new Ub,Vb().Gb,"xml attribute","XML attribute mapping",G()));a=Yc();b=C().Gb;this.HJ=Rb(new Sb,a,D(new F,b,"xmlWrapped"),Tb(new Ub,Vb().Gb,"xml wrapped","XML wrapped mapping flag",G()));a=Pb();b=C().Gb;this.$=Rb(new Sb,a,D(new F,b,"xmlName"),Tb(new Ub,Vb().Gb,"xml name","XML name mapping",G()));a=Pb();b=C().Gb;this.kN=Rb(new Sb,a,D(new F,b,"xmlNamespace"),Tb(new Ub,Vb().Gb,"xml namespace",
"XML namespace mapping",G()));a=Pb();b=C().Gb;this.nN=Rb(new Sb,a,D(new F,b,"xmlPrefix"),Tb(new Ub,Vb().Gb,"xml prefix","XML prefix mapping",G()));Di();var a=(new J).aa([this.JF,this.HJ,this.$,this.kN,this.nN]),b=Di().s,a=Ei(a,b),b=Lc().g,c=Di();this.g=a.la(b,c.s);Di();a=C().Gb;a=(new J).aa([D(new F,a,"XMLSerializer")]);b=Di().s;a=Ei(a,b);b=Lc().ja;c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().Gb,"XML Serializer","Information about how to encode into XML a particular data shape",G());return this};
d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.Zc=function(){M();var a=(new N).a();return(new s3).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({r_a:0},!1,"amf.plugins.domain.shapes.metamodel.XMLSerializerModel$",{r_a:1,f:1,se:1,Oc:1,ic:1,Xc:1});var sab=void 0;function ho(){sab||(sab=(new rab).a());return sab}
function r4(){this.E=this.g=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}r4.prototype=new r;r4.prototype.constructor=r4;d=r4.prototype;d.Ub=function(){return H(z(),G())};d.Zu=function(a){this.Nk=a};d.Qb=function(a){return cj(this,a)};d.es=function(){};d.It=function(a){this.Zi=a};d.Uc=function(a){return Te(this,a)};d.El=function(){M();var a=(new N).a(),b=(new Q).a(),a=(new r4).P(b,a);return Te(a,this.k)};d.rc=function(){return Gi()};
d.Mq=function(){return H(z(),G())};d.ha=function(){return this.E};d.lu=function(a){this.Zg=a};d.Nt=function(){return this.Zg};function tab(a){var b=yb(a);if(x(b)&&(b=b.i,Xn(b))){a=B(b.g,Gi().fu).G;a=a.b()?B(b.g,Gi().Jf).G:a;if(a.b())return w();a=a.c();a=(new Cf).e(a);return(new A).d(Gj(a.zd))}b=B(a.g,Gi().fu).G;a=b.b()?B(a.g,Gi().Jf).G:b;if(a.b())return w();a=a.c();a=(new Cf).e(a);return(new A).d(Gj(a.zd))}d.Nd=function(){var a=tab(this);return"/creative-work/"+(a.b()?null:a.c())};d.Hu=function(){};
d.Is=function(a,b,c,e){return fL(this,a,b,c,e)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.gk=function(a,b){return gL(this,a,b)};d.Qk=function(){return qd(function(){return function(a,b){return(new r4).P(a,b)}}(this))};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.Ht=function(a){this.Jk=a};d.Up=function(a){return Px(this,a)};d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};
d.Te=function(a){this.k=a};d.ku=function(a){this.zk=a};d.P=function(a,b){this.g=a;this.E=b;hL(this);return this};function Xn(a){return!!(a&&a.$classData&&a.$classData.v.Hva)}d.$classData=q({Hva:0},!1,"amf.plugins.domain.shapes.models.CreativeWork",{Hva:1,f:1,de:1,Wc:1,Rc:1,Pi:1});function xLa(){this.w$=null}xLa.prototype=new r;xLa.prototype.constructor=xLa;d=xLa.prototype;d.a=function(){this.w$=H(Wg(),G());return this};d.L=function(){return"RecursionErrorRegister"};d.H=function(){return 0};
d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Rva)&&!0};function uab(a,b){a=a.b()?b.k:a.c();b=eia(pda(),b);var c=ej().it;return Eb(b,c,a)}d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};function vab(a,b,c,e,f,g){var h=!uh(a.w$.Lb,c.k),k=B(c.ea,Db().Je).G;!k.b()&&k.c()||g4a(e,c,f)||!h?g4a(e,c,f)&&(a=Db().Je,dj(c,a,!0)):(e=g.ub,f=Bc().pN,g=b.k,h=w(),k=Zb(b.ha(),n(Fd)),b=b.Yb(),e.Hc(f.k,g,h,"Error recursive shape",k,xc().tb,b),vh(a.w$,c.k));return c}d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({Rva:0},!1,"amf.plugins.domain.shapes.resolution.stages.RecursionErrorRegister",{Rva:1,f:1,A:1,w:1,q:1,n:1});function wab(){this.Oj=null}wab.prototype=new r;wab.prototype.constructor=wab;d=wab.prototype;d.L=function(){return"AnyShapeAdjuster"};d.H=function(){return 1};d.vy=function(a){this.Oj=a;return this};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Sva){var b=this.Oj;a=a.Oj;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Oj;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function s4(a,b){for(;!b.b();){var c=b.fa();if(a.Oj.ca().Pb.Ja(c))return!0;b=b.sa()}return!1}d.$classData=q({Sva:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.AnyShapeAdjuster",{Sva:1,f:1,A:1,w:1,q:1,n:1});function GLa(){this.Xi=0;this.hA=null}GLa.prototype=new r;GLa.prototype.constructor=GLa;d=GLa.prototype;
d.ps=function(a,b){ADa(this,a,b)};d.cC=function(){throw Lb(Mb(),(new Nb).e("raising exceptions in union processing"));};d.Vs=function(a,b,c,e,f,g){this.Hc(a.k,b,c,e,f,xc().Eg,g)};d.Hc=function(){throw Lb(Mb(),(new Nb).e("raising exceptions in union processing"));};d.DU=function(){this.Xi=0;this.hA="";return this};function LLa(a,b){return hra(new wB,a,b.lo,b.Hl,b.qh)}
d.$classData=q({s0a:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.MinShapeAlgorithm$$anon$1",{s0a:1,f:1,p7:1,zq:1,Lp:1,ip:1});function F1a(){this.EA=this.aC=this.hT=this.qh=null}F1a.prototype=new r;F1a.prototype.constructor=F1a;d=F1a.prototype;d.a=function(){this.qh=pc(Os(),G());this.hT=pc(Os(),G());this.aC=pc(Os(),G());this.EA=pc(Os(),G());return this};d.L=function(){return"NormalizationCache"};d.H=function(){return 0};
d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Tva)&&!0};d.K=function(a){throw(new X).e(""+a);};function xab(a,b){a.aC.Rr().tu(fc().ci).xb(t(new u,function(a,b){return function(a){a=a.dn;return a.b()?!1:a.c().k===b.k}}(a,b))).X(t(new u,function(a,b){return function(a){return fj(a,b)}}(a,b)))}d.u=function(){return U(W(),this)};
function yab(a,b){var c=B(b.ea,ej().it).G;if(!c.b()){var c=c.c(),e=a.EA.Ta(c),f=a.aC.Ta(c);if(x(f)){var f=f.i,g=z();b=f.hg(b,g.s);e.b()||(e=e.c(),b.X(t(new u,function(a,b){return function(a){var c=ej().it;return Eb(a,c,b)}}(a,e))),a.aC.Hs(c),c=e);a.aC.Oe(c,b)}else e.b()||(c=e.c(),e=ej().it,Eb(b,e,c)),a=a.aC,e=z(),a.Oe(c,H(e,(new J).aa([b])))}}
function zab(a,b,c){var e=b.Mg.kb();a:{for(;e.Qa();){var f=e.Sa();if(f.k===b.k){e=(new A).d(f);break a}}e=w()}x(e)&&(b.Mg.uW(e.i),b.Mg.Pz(b));no(b)&&b.dn.qa()&&b.dn.c().k===b.k&&fj(b,b);c||(xab(a,b),c=a.hT.Ta(b.k),x(c)&&c.i.X(t(new u,function(a,b){return function(a){var c=a.Mg.kb();a:{for(;c.Qa();){var e=c.Sa(),f=e;if(f.k===b.k&&(null===f?null!==b:!f.h(b))){c=(new A).d(e);break a}}c=w()}if(x(c))return a.Mg.uW(c.i),a.Mg.Om(b)}}(a,b))))}
function Aab(a,b,c){var e=a.EA.Ta(c);if(x(e))e=e.i,a.EA.Hs(c),a.EA.Oe(b,e);else if(a.EA.Oe(b,c),e=a.aC.Ta(b),!e.b()){e=e.c();a.aC.Hs(b);b=a.aC;a=t(new u,function(a,b){return function(a){var c=ej().it;return Eb(a,c,b)}}(a,c));var f=z();b.Oe(c,e.ka(a,f.s))}}d.y=function(){return Y(this)};function JLa(a,b,c){b.X(t(new u,function(a,b){return function(c){return Bab(a,c.k,b)}}(a,c)))}d.M=function(){return Z(this)};
function Bab(a,b,c){var e=a.hT.Ta(b);if(x(e)){var e=e.i,f=a.hT,g=z();f.Rl(b,e.hg(c,g.s))}else e=a.hT,f=z(),e.Rl(b,H(f,(new J).aa([c])));return a}d.$classData=q({Tva:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.NormalizationCache",{Tva:1,f:1,A:1,w:1,q:1,n:1});function Cab(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.XF=this.ND=null;this.ma=0}Cab.prototype=new r;Cab.prototype.constructor=Cab;d=Cab.prototype;
d.a=function(){Dab=this;Iq(this);cT(this);var a=Pb(),b=C().bb;this.ND=Rb(new Sb,a,D(new F,b,"variable"),Tb(new Ub,Vb().bb,"variable","Variable defined inside an URL tempplate",G()));a=Pb();b=C().bb;this.XF=Rb(new Sb,a,D(new F,b,"linkExpression"),Tb(new Ub,Vb().bb,"link expression","OAS 3 link expression",G()));a=C().bb;a=D(new F,a,"IriTemplateMapping");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().bb,"Iri Template","",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};
d.Tc=function(){return this.Aa};d.sc=function(){var a=this.ND,b=this.XF,c=Lc().g;return oz(new pz,a,oz(new pz,b,c))};d.Zc=function(){M();var a=(new N).a();return(new T2).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({N0a:0},!1,"amf.plugins.domain.webapi.metamodel.IriTemplateMappingModel$",{N0a:1,f:1,se:1,Oc:1,ic:1,Xc:1});var Dab=void 0;function so(){Dab||(Dab=(new Cab).a());return Dab}function Eab(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.fb=this.$=null;this.ma=0}
Eab.prototype=new r;Eab.prototype.constructor=Eab;d=Eab.prototype;
d.a=function(){Fab=this;Iq(this);cT(this);var a=Pb(),b=C().dc;this.$=Rb(new Sb,a,D(new F,b,"name"),Tb(new Ub,Vb().dc,"name","Name of the scope",G()));a=Pb();b=C().dc;this.fb=Rb(new Sb,a,D(new F,b,"description"),Tb(new Ub,Vb().oc,"description","Human readable description for the scope",G()));Di();var a=C().oc,a=(new J).aa([D(new F,a,"Scope")]),b=Di().s,a=Ei(a,b),b=Lc().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().oc,"Scope","",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};
d.Tc=function(){return this.Aa};d.sc=function(){Di();var a=(new J).aa([this.$,this.fb]),b=Di().s,a=Ei(a,b),b=Lc().g,c=Di();return a.la(b,c.s)};d.Zc=function(){M();var a=(new N).a();return(new RP).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({e1a:0},!1,"amf.plugins.domain.webapi.metamodel.security.ScopeModel$",{e1a:1,f:1,se:1,Oc:1,ic:1,Xc:1});var Fab=void 0;function En(){Fab||(Fab=(new Eab).a());return Fab}function xW(){this.EDa=this.nHa=this.m=null}xW.prototype=new r;
xW.prototype.constructor=xW;d=xW.prototype;d.L=function(){return"DomainElementMerging"};function Gab(a,b,c,e,f){f.Tb.X(t(new u,function(a,b,c,e){return function(a){if(wj(a)){if(hd(b,Hab(a)).b())return nh(c,e,a)}else{if(null!==a)return nh(c,e,a);throw(new v).d(a);}}}(a,e.Tb,b,c)))}d.H=function(){return 0};
function wW(a,b,c,e){isa(msa(),b,c,e);var f=(new mk).rs(!1);c=c.ca().Pb;var g=zx(),g=Va(g),h=Ce().s;De(c,g,h).xb(t(new u,function(){return function(a){return Iab(a)}}(a))).X(t(new u,function(a,b,c,e){return function(f){if(null!==f){var g=Dd(b.ca(),f.xc);if(w()===g)Jab(a,b,f,c);else{if(!x(g))throw(new v).d(g);var h=g.i,g=f.xc,da=f.t,sa=h.t,ua=Wa().Ia(sa).qa(),Ia=Wa().Ia(sa);if(x(Ia))var Pa=Wa().Ia(sa.t).qa();else{if(w()!==Ia)throw(new v).d(Ia);Pa=!1}Ia=!0;if(ua&&Pa){var ua=Xh(sa.t),Pa=Xh(da.t),Za=
Yh(sa.t.ha(),n(upa)),db=Yh(sa.t.ha(),n(Kab));if(ua&&Pa&&Za)Ia=h.t.t,ua=da.t,Pa=w(),Za=w(),db=(new yL).a(),ua=kda(ua,Pa,Za,db,!1),Pa=B(Ia.ca(),Pg().$).G,Pa=Pa.b()?null:Pa.c(),M(),Za=(new N).a(),ua=Ue(ua,Pa,Za),B(Ia.ca(),th().Vc).Fa()&&(Ia=B(Ia.ca(),th().Vc),Pa=th().Vc,qf(ua,Pa,Ia)),Ia=t4(a,b.k,ua,u4(a)),ff(b,g,Ia),Ia=!1;else if(db){Ia=g.ja;a:if(!nDa(Ia)||!v4(Ia,da.t))if(fs(Ia))Ia=(new A).d(Ia.Se).i,Lab(a,b,g,da,Ia);else if(nz(Ia)){Ia=sa.t;if(di(Ia)&&(ua=B(Ia.ea,xh().af).G,(ua.b()?null:ua.c())===qi().Mj)){Za=
!1;ua=null;Pa=da.t;if(di(Pa)&&(Za=!0,ua=Pa,db=B(ua.ea,xh().af).G,(db.b()?null:db.c())===qi().Mj)){wW(a,h.t.t,f.t.t,c);break a}if(Za){Pa=xh().af;ua=B(ua.ea,xh().af).G;ua=ua.b()?null:ua.c();Eb(Ia,Pa,ua);wW(a,h.t.t,f.t.t,c);break a}if(Xh(Pa)){Ia=B(Ia.ea,th().Vc);ua=t4(a,b.k,Pa,u4(a));ff(b,g,ua);Ia.Fa()&&(ua=Dd(b.ca(),g),ua.b()||(ua=ua.c().t.t,Pa=th().Vc,qf(ua,Pa,Ia)));break a}Ia=t4(a,b.k,Pa,u4(a));ff(b,g,Ia);break a}Xh(Ia)?wW(a,h.t.t,f.t.t,c):(Ia=t4(a,b.k,da.t,u4(a)),ff(b,g,Ia))}else Ia=t4(a,b.k,da.t,
u4(a)),ff(b,g,Ia);Ia=!1}}Ia&&(ua=g.ja,tz(ua)||(fs(ua)?(f=(new A).d(ua.Se).i,sa=sa.t,da=da.t,tz(f)?Mab(a,b,g,sa,da):f&&f.$classData&&f.$classData.v.Kj?Nab(a,b,g,f,f,sa,da,c):lm()===f?Gab(a,b,g,sa,da):(g=Bc().nh,sz(c,g,b.k,"Cannot merge '"+f+"': not a KeyField nor a Scalar",b.ha()))):nz(ua)?wW(a,h.t.t,f.t.t,c):(da=Bc().nh,sz(c,da,b.k,"Cannot merge '"+g.ja+"':not a (Scalar|Array|Object)",b.ha()))));e.ta=Ia}}else throw(new v).d(f);}}(a,b,e,f)));return os(b)&&f.ta?Oab(a,b,H(fc().Sg,G())):b}
function Lab(a,b,c,e,f){nDa(f)?(e=e.t.Tb.xb(t(new u,function(a,b){return function(a){return!v4(b,a)}}(a,f))),a=t4(a,b.k,gr(new hr,e,(new N).a()),u4(a))):a=t4(a,b.k,e.t,u4(a));ff(b,c,a)}d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.uwa)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};
function Mab(a,b,c,e,f){e=e.Tb;var g=t(new u,function(){return function(a){return a.t}}(a)),h=z();e=e.ka(g,h.s).pg();f.Tb.X(t(new u,function(a,b,c,e){return function(a){a=a.t;if(!b.Ja(a))return a=Nh(new Oh,a,(new N).a()),nh(c,e,a)}}(a,e,b,c)))}function Pab(a,b,c){return di(b)||bi(b)?(a=a.nHa,b=Qab(b.rc().sc(),a),uh(b,c)):!0}function Rab(a,b){return uh(a.EDa,b.xc)?Yh(b.t.E,n(p3)):!0}
d.qs=function(a){this.m=a;Di();a=[Lc().Pm(),Zm().Ew];a=(new J).aa(a);var b=Di().s;this.nHa=Ei(a,b);Di();a=[ci().Pk,xh().af,lo().Ee];a=(new J).aa(a);b=Di().s;this.EDa=Ei(a,b);return this};
function Oab(a,b,c){try{if(c.Ja(b.k)){if(no(b))return b;if(dm(b)){var e=eia(pda(),B(b.ea,rj().If)),f=rj().If;return ff(b,f,e)}return eia(pda(),b)}var g=z(),h=c.vk(H(g,(new J).aa([b.k])));b.ca().Pb.X(t(new u,function(a,b,c){return function(e){a:{if(null!==e){var f=e.pa(),g=e.Ba();if(null!==f&&null!==g){e=g.t;g=g.E;if(os(e))vj(b.ca(),f,Oab(a,e,c),g);else if(es(e)){var g=e.Tb,h=t(new u,function(a,b){return function(c){return os(c)?Oab(a,c,b):c}}(a,c)),da=z(),g=g.ka(h,da.s);vj(b.ca(),f,gr(new hr,g,e.E),
(M(),(new N).a()))}else vj(b.ca(),f,e,g);break a}}throw(new v).d(e);}}}(a,b,h)));return b}catch(k){if(k&&k.$classData&&k.$classData.v.x1)return b;throw k;}}
function Nab(a,b,c,e,f,g,h,k){g=g.Tb;var l=t(new u,function(a,b){return function(a){var c=Dd(a.ca(),b.oa);c.b()?c=w():(c=c.c(),c=(new A).d(c.t.t.t));c=c.b()?w():c.c();return(new P).N(c,a)}}(a,f)),p=z();g=g.ka(l,p.s).$g(fc().ci);h.Tb.X(t(new u,function(a,b,c,e,f,g,h){return function(k){var l=Dd(k.ca(),b.oa);if(x(l)){var p=l.i;if(!c.Ja(w())){if(c.Ja(p.t.t.t))return l=Tm().xk,(null===e?null===l:e.h(l))&&Sab(a.m,k.k),wW(a,c.R(p.t.t.t),k.Qb(f.k,k.Ub()),g);if(v4(h,k))return;p=Tm().xk;(null===e?null===p:
e.h(p))&&Sab(a.m,k.k);k=t4(a,f.k,k,u4(a));return nh(f,e,k)}}if(w()===l){p=c.kb();for(l=!0;l&&p.Qa();)var l=p.Sa().pa(),db=w(),l=!(null!==l&&pa(l,db));p=!l}else p=!1;if(p){if(c.Ja(w()))return wW(a,c.R(w()),k.Qb(f.k,k.Ub()),g);if(!v4(h,k))return k=t4(a,f.k,k,u4(a)),nh(f,e,k)}}}(a,f,g,c,b,k,e)))}function Iab(a){a=a.xc;var b=Lc().wi();(null===b?null===a:b.h(a))?a=!0:(b=Lc().Hb,(null===b?null===a:b.h(a))?a=!0:(b=Db().ef,a=null===b?null===a:b.h(a)));return!a}d.y=function(){return Y(this)};
function t4(a,b,c,e){if(es(c)){var f=c.Tb;a=t(new u,function(a,b,c){return function(e){return t4(a,b,e,c)}}(a,b,e));b=z();return gr(new hr,f.ka(a,b.s),c.E)}Yl(c)&&!e.Pp.Ja(c.k)&&(f=c.k,Tab(c,b),Uab(e,c.k),c.ca().Pb.X(t(new u,function(a,b,c){return function(e){if(null!==e){var f=e.pa();e=e.Ba();Iab(Rh(new Sh,f,e))&&t4(a,b.k,e.t,c)}else throw(new v).d(e);}}(a,c,e))),wn(c)&&oB(kB(),B(c.g,vn().Fc),c.k,(new A).d(f)));return c}d.M=function(){return Z(this)};
function Jab(a,b,c,e){var f=c.xc,g=c.t,h=Tm().xk;(null===f?null===h:f.h(h))&&g.t.Tb.X(t(new u,function(a){return function(b){$m(b)&&(v4(Zm(),b)||Sab(a.m,b.k))}}(a)));Pab(a,b,f)?(e=f.ja,nDa(e)&&v4(e,g.t)||(fs(e)?(e=(new A).d(e.Se).i,Lab(a,b,f,g,e)):(e=t4(a,b.k,g.t,u4(a)),ff(b,f,e)))):Rab(a,c)&&(a=Bc().nh,g=b.k,f="Cannot merge '"+f.t.ba+"' into "+b.rc().Tc().JT,sz(e,a,g,f,b.ha()))}function v4(a,b){return nDa(a)?(a=Dd(b.ca(),a.Ew),a.b()?!1:Cj(a.c().t.t)):!1}
function Tab(a,b){os(a)?cj(a,b):mm(a)?qr(rr(),b,a):a.Qb(b,a.Ub())}d.$classData=q({uwa:0},!1,"amf.plugins.domain.webapi.resolution.stages.DomainElementMerging",{uwa:1,f:1,A:1,w:1,q:1,n:1});function Vab(){this.l=this.Pp=null}Vab.prototype=new r;Vab.prototype.constructor=Vab;d=Vab.prototype;d.L=function(){return"Adopted"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.vwa)&&a.l===this.l&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};
function Uab(a,b){var c=a.Pp,e=z();a.Pp=c.hg(b,e.s)}d.y=function(){return Y(this)};d.M=function(){return Z(this)};function u4(a){var b=new Vab;if(null===a)throw Lb(Mb(),null);b.l=a;b.Pp=G();return b}d.$classData=q({vwa:0},!1,"amf.plugins.domain.webapi.resolution.stages.DomainElementMerging$Adopted",{vwa:1,f:1,A:1,w:1,q:1,n:1});function tp(){this.Io=this.iv=null;this.Uw=!1}tp.prototype=new r;tp.prototype.constructor=tp;function Wab(){}Wab.prototype=tp.prototype;
function zfa(){var a=Qk(Rk());a.Uw=!0;a.Io=pc(fc().db,G())}function HPa(a,b,c,e,f,g,h,k,l){c=vc(new wc,g,b,e,f,c,h,l,a);if(a.Uw)if(b=a.Io.Ta(k),x(b))vh(b.i,c);else if(w()===b){b=a.Io;Wg();c=[c];if(0===(c.length|0))c=Yg(new Zg,(new $g).a()).gb;else{e=Yg(new Zg,(new $g).a());f=0;for(g=c.length|0;f<g;)ah(e,c[f]),f=1+f|0;c=e.gb}a.Io=b.Zb((new P).N(k,c))}else throw(new v).d(b);else if(b===xc().tb)throw Lb(Mb(),(new Nb).e(c.u()));}d=tp.prototype;
d.a=function(){this.iv="Parser side AMF Validation";this.Io=pc(fc().db,G());this.Uw=!0;return this};d.sQ=function(a,b,c){return Xab(this,a,b,c)};
function Xab(a,b,c,e){var f=Dka(Cka(),Yab(a,c)),g=b.Ke;x(g)?(g=a.Io.vu(g.i|0,jb(function(){return function(){return G()}}(a))),e=t(new u,function(a,b,c){return function(a){var b=a.Ad,b=""===b?"Constraint violation":b,e=sba(a.Us,c,a.km);return vc(new wc,b,e,a.Wu,a.fw,a.Us,a.og,a.ga,a.Yy)}}(a,e,f)),f=z(),g=g.ka(e,f.s)):g=G();return hb(ib(),jb(function(a,b,c,e){return function(){return dp(new ep,!b.Cd(t(new u,function(){return function(a){return a.km===xc().tb}}(a))),c.k,e,b)}}(a,g,b,c)),um())}
d.wh=function(){return this.iv};d.Sp=function(){return H(z(),G())};d.cn=function(){return hb(ib(),jb(function(a){return function(){var b=Rk().r3;if(!x(b))if(w()===b)dka(Rk(),(new tp).a());else throw(new v).d(b);return a}}(this)),um())};d.rV=function(){return hb(ib(),jb(function(a){return function(){return EB(FB(),a.wh())}}(this)),um())};
function Yab(a,b){var c=tN().qf;Di();for(var e=(new $g).a();!c.b();){var f=c.fa(),g=f;ZP(tN(),g.k,b)===xc().tb!==!1&&vh(e,f);c=c.sa()}c=e.wa();e=function(){return function(a){return a.ba}}(a);f=Di().s;if(f===Di().s)if(c===G())e=G();else{f=c.fa();g=f=oz(new pz,e(f),G());for(c=c.sa();c!==G();)var h=c.fa(),h=oz(new pz,e(h),G()),g=g.ve=h,c=c.sa();e=f}else{for(f=Rf(c,f);!c.b();)g=c.fa(),f.Ic(e(g)),c=c.sa();e=f.lc()}f=tN().qf;Di();for(c=(new $g).a();!f.b();)h=g=f.fa(),ZP(tN(),h.k,b)===xc().vw!==!1&&vh(c,
g),f=f.sa();f=c.wa();c=function(){return function(a){return a.ba}}(a);g=Di().s;if(g===Di().s)if(f===G())c=G();else{g=f.fa();h=g=oz(new pz,c(g),G());for(f=f.sa();f!==G();)var k=f.fa(),k=oz(new pz,c(k),G()),h=h.ve=k,f=f.sa();c=g}else{for(g=Rf(f,g);!f.b();)h=f.fa(),g.Ic(c(h)),f=f.sa();c=g.lc()}g=tN().qf;Di();for(f=(new $g).a();!g.b();)k=h=g.fa(),ZP(tN(),k.k,b)===xc().Eg!==!1&&vh(f,h),g=g.sa();f=f.wa();b=function(){return function(a){return a.ba}}(a);g=Di().s;if(g===Di().s)if(f===G())b=G();else{g=f.fa();
h=g=oz(new pz,b(g),G());for(f=f.sa();f!==G();)k=f.fa(),k=oz(new pz,b(k),G()),h=h.ve=k,f=f.sa();b=g}else{for(g=Rf(f,g);!f.b();)h=f.fa(),g.Ic(b(h)),f=f.sa();b=g.lc()}a=EB(FB(),a.wh());f=w();g=tN().qf;z();Oj();h=(new $g).a().wa();k=(new ct).a();return KHa(new uN,a,f,e,c,b,h,g,k)}d.ifa=function(){return hb(ib(),jb(function(){return function(){return new zQ}}(this)),um())};d.MT=function(){throw Lb(Mb(),(new Nb).e("SHACL Support not available"));};
d.$classData=q({xwa:0},!1,"amf.plugins.features.validation.ParserSideValidationPlugin",{xwa:1,f:1,gja:1,wq:1,qPa:1,FD:1});function w4(){}w4.prototype=new S1a;w4.prototype.constructor=w4;function Zab(){}Zab.prototype=w4.prototype;w4.prototype.o6a=function(){return this};function x4(){}x4.prototype=new r;x4.prototype.constructor=x4;function $ab(){}$ab.prototype=x4.prototype;x4.prototype.hm=function(a){a.b()||a.c();return this};function Xfa(a){return!!(a&&a.$classData&&a.$classData.v.D2a)}
function OD(){vE.call(this)}OD.prototype=new Q1;OD.prototype.constructor=OD;OD.prototype.a=function(){vE.prototype.pe.call(this,null,null,0,!0);return this};OD.prototype.$classData=q({x8:0},!1,"java.nio.BufferOverflowException",{x8:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function QD(){vE.call(this)}QD.prototype=new Q1;QD.prototype.constructor=QD;QD.prototype.a=function(){vE.prototype.pe.call(this,null,null,0,!0);return this};
QD.prototype.$classData=q({y8:0},!1,"java.nio.BufferUnderflowException",{y8:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function abb(){vE.call(this)}abb.prototype=new Q1a;abb.prototype.constructor=abb;function bbb(){}bbb.prototype=abb.prototype;function PQ(){this.Hg=null}PQ.prototype=new bNa;PQ.prototype.constructor=PQ;function cbb(a){var b=(new uE).a();Jaa.readFile(a.Hg,"UTF-8",function(a,b){return function(a,c){null===a?a=gk(b,c):(a=(new K1).e(a.message),a=ek(b,a));return a}}(a,b));return b}
PQ.prototype.Fba=function(a,b){NQ.prototype.Fba.call(this,a,b);return this};function wja(a,b){var c=(new uE).a();Jaa.writeFile(a.Hg,ja(b),"UTF-8",function(a,b){return function(a){null===a?a=gk(b,void 0):(a=(new K1).e(a.message),a=ek(b,a));return a}}(a,c))}PQ.prototype.$classData=q({m3a:0},!1,"org.mulesoft.common.io.JsAsyncFile",{m3a:1,ofb:1,f:1,mfb:1,lfb:1,nfb:1});function y4(){this.dL=0;this.ZN=null}y4.prototype=new r;y4.prototype.constructor=y4;d=y4.prototype;d.L=function(){return"LimitedStringBuffer"};
d.H=function(){return 1};d.h=function(a){return this===a?!0:Yfa(a)?this.dL===a.dL:!1};d.Zo=function(){return this.ZN.u()};d.K=function(a){switch(a){case 0:return this.dL;default:throw(new X).e(""+a);}};d.u=function(){return this.ZN.u()};d.$d=function(a){this.dL=a;this.ZN=(new ik).a();return this};function fNa(a,b){if((xa(b)+a.ZN.Ka()|0)>a.dL)throw(new z4).a();dNa(a.ZN,b);return a}d.y=function(){var a=-889275714,a=zI().Ga(a,this.dL);return zI().Wd(a,1)};d.M=function(){return Z(this)};
y4.prototype.append=function(a){return fNa(this,a)};y4.prototype.toString=function(){return this.Zo()};Object.defineProperty(y4.prototype,"length",{get:function(){return this.ZN.Ka()},configurable:!0});Object.defineProperty(y4.prototype,"limit",{get:function(){return this.dL},configurable:!0});function Yfa(a){return!!(a&&a.$classData&&a.$classData.v.Gwa)}y4.prototype.$classData=q({Gwa:0},!1,"org.mulesoft.common.io.LimitedStringBuffer",{Gwa:1,f:1,A:1,w:1,q:1,n:1});
function JX(){this.my=this.Hy=this.ez=0;this.Mx=this.Ex=null}JX.prototype=new r;JX.prototype.constructor=JX;d=JX.prototype;d.L=function(){return"SimpleDateTime"};d.H=function(){return 5};d.h=function(a){if(this===a)return!0;if(wM(a)){if(this.ez===a.ez&&this.Hy===a.Hy&&this.my===a.my)var b=this.Ex,c=a.Ex,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.Mx,a=a.Mx,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.ez;case 1:return this.Hy;case 2:return this.my;case 3:return this.Ex;case 4:return this.Mx;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function HWa(a,b,c,e,f,g){a.ez=b;a.Hy=c;a.my=e;a.Ex=f;a.Mx=g;a:{gE();if(0===b)a=b;else if(1>c||12<c)a=c;else{if(!(1>e||31<e||31===e&&(4===c||6===c||9===c||11===c)||2===c&&(29<e||29===e&&(0!==(b%4|0)||1600<=b&&0===(b%100|0)&&0!==(b%400|0)))))break a;a=e}throw JWa(new LX,(new MX).$d(a));}return a}
d.y=function(){var a=-889275714,a=zI().Ga(a,this.ez),a=zI().Ga(a,this.Hy),a=zI().Ga(a,this.my),a=zI().Ga(a,yI(zI(),this.Ex)),a=zI().Ga(a,yI(zI(),this.Mx));return zI().Wd(a,5)};d.M=function(){return Z(this)};function wM(a){return!!(a&&a.$classData&&a.$classData.v.Jwa)}d.$classData=q({Jwa:0},!1,"org.mulesoft.common.time.SimpleDateTime",{Jwa:1,f:1,A:1,w:1,q:1,n:1});function IX(){this.sL=this.eI=this.vH=this.KG=0}IX.prototype=new r;IX.prototype.constructor=IX;d=IX.prototype;d.L=function(){return"TimeOfDay"};
d.H=function(){return 4};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Kwa?this.KG===a.KG&&this.vH===a.vH&&this.eI===a.eI&&this.sL===a.sL:!1};d.K=function(a){switch(a){case 0:return this.KG;case 1:return this.vH;case 2:return this.eI;case 3:return this.sL;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.NO=function(a,b,c,e){this.KG=a;this.vH=b;this.eI=c;this.sL=e;LWa||(LWa=(new NX).a());a:{if(!(0>a||24<a))if(0>b||60<b||24===a&&0<b)a=b;else if(0>c||60<c||24===a&&0<c)a=c;else{if(!(0>e||999999999<e||24===a&&0<e))break a;a=e}throw JWa(new LX,(new MX).$d(a));}return this};d.y=function(){var a=-889275714,a=zI().Ga(a,this.KG),a=zI().Ga(a,this.vH),a=zI().Ga(a,this.eI),a=zI().Ga(a,this.sL);return zI().Wd(a,4)};d.M=function(){return Z(this)};
d.$classData=q({Kwa:0},!1,"org.mulesoft.common.time.TimeOfDay",{Kwa:1,f:1,A:1,w:1,q:1,n:1});function GF(){this.cc=this.jd=this.jQ=null}GF.prototype=new r;GF.prototype.constructor=GF;d=GF.prototype;d.L=function(){return"AstToken"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Lwa&&this.jQ===a.jQ&&this.jd===a.jd){var b=this.cc;a=a.cc;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.jQ;case 1:return this.jd;case 2:return this.cc;default:throw(new X).e(""+a);}};d.u=function(){var a=this.jQ;aE();return a+" '"+$D(0,this.jd)+"'"};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var IF=q({Lwa:0},!1,"org.mulesoft.lexer.AstToken",{Lwa:1,f:1,A:1,w:1,q:1,n:1});GF.prototype.$classData=IF;function PX(){this.fg=this.ag=this.Ef=this.vf=0}PX.prototype=new r;PX.prototype.constructor=PX;d=PX.prototype;d.L=function(){return"InputRange"};
d.H=function(){return 4};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Nwa?this.vf===a.vf&&this.Ef===a.Ef&&this.ag===a.ag&&this.fg===a.fg:!1};d.K=function(a){switch(a){case 0:return this.vf;case 1:return this.Ef;case 2:return this.ag;case 3:return this.fg;default:throw(new X).e(""+a);}};d.u=function(){return"["+this.vf+","+this.Ef+".."+this.ag+","+this.fg+"]"};d.NO=function(a,b,c,e){this.vf=a;this.Ef=b;this.ag=c;this.fg=e;return this};
d.y=function(){var a=-889275714,a=zI().Ga(a,this.vf),a=zI().Ga(a,this.Ef),a=zI().Ga(a,this.ag),a=zI().Ga(a,this.fg);return zI().Wd(a,4)};d.M=function(){return Z(this)};d.$classData=q({Nwa:0},!1,"org.mulesoft.lexer.InputRange",{Nwa:1,f:1,A:1,w:1,q:1,n:1});function iNa(){this.cc=this.Gx=null}iNa.prototype=new r;iNa.prototype.constructor=iNa;d=iNa.prototype;d.L=function(){return"TokenData"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Qwa&&this.Gx===a.Gx){var b=this.cc;a=a.cc;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Gx;case 1:return this.cc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Qwa:0},!1,"org.mulesoft.lexer.TokenData",{Qwa:1,f:1,A:1,w:1,q:1,n:1});function xE(){this.t=this.iM=null}xE.prototype=new r;
xE.prototype.constructor=xE;d=xE.prototype;d.L=function(){return"Scalar"};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Vwa?this.iM===a.iM?ub(vb(),this.t,a.t):!1:!1};d.K=function(a){switch(a){case 0:return this.iM;case 1:return this.t;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function wE(a,b,c){a.iM=b;a.t=c;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Vwa:0},!1,"org.yaml.builder.DocBuilder$Scalar",{Vwa:1,f:1,A:1,w:1,q:1,n:1});function dbb(){vE.call(this)}dbb.prototype=new Q1;dbb.prototype.constructor=dbb;function A4(){}A4.prototype=dbb.prototype;function QE(){vE.call(this);this.tHa=null}QE.prototype=new Q1;QE.prototype.constructor=QE;QE.prototype.f1=function(a){this.tHa=a;a=gc(a.Wp);vE.prototype.pe.call(this,a,null,0,!0);return this};QE.prototype.$classData=q({dxa:0},!1,"org.yaml.model.YException",{dxa:1,Qh:1,Kf:1,Fe:1,f:1,n:1});
function GR(){nF.call(this);this.PS=null}GR.prototype=new h2a;GR.prototype.constructor=GR;function ebb(){}ebb.prototype=GR.prototype;GR.prototype.mc=function(a,b){jF.prototype.mc.call(this,a,b);this.PS=w();return this};function iF(){nF.call(this);this.PS=this.yfa=this.nq=null}iF.prototype=new h2a;iF.prototype.constructor=iF;iF.prototype.pb=function(){return this.yfa};iF.prototype.we=function(){return this.nq};
iF.prototype.$classData=q({U4a:0},!1,"org.yaml.model.YNodePlain",{U4a:1,qS:1,kt:1,f:1,qJ:1,AB:1});function BX(){vE.call(this)}BX.prototype=new Q1;BX.prototype.constructor=BX;BX.prototype.e=function(a){vE.prototype.pe.call(this,a,null,0,!0);return this};function fbb(a){return!!(a&&a.$classData&&a.$classData.v.YBa)}BX.prototype.$classData=q({YBa:0},!1,"java.lang.ArithmeticException",{YBa:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function yNa(a){return!!(a&&a.$classData&&a.$classData.v.yfb)}
function rk(){vE.call(this)}rk.prototype=new Q1;rk.prototype.constructor=rk;function gbb(){}gbb.prototype=rk.prototype;rk.prototype.a=function(){vE.prototype.pe.call(this,null,null,0,!0);return this};rk.prototype.e=function(a){vE.prototype.pe.call(this,a,null,0,!0);return this};rk.prototype.$classData=q({Ay:0},!1,"java.lang.IllegalArgumentException",{Ay:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function fk(){vE.call(this)}fk.prototype=new Q1;fk.prototype.constructor=fk;function hbb(){}hbb.prototype=fk.prototype;
fk.prototype.a=function(){vE.prototype.pe.call(this,null,null,0,!0);return this};fk.prototype.e=function(a){vE.prototype.pe.call(this,a,null,0,!0);return this};fk.prototype.FE=function(a,b){vE.prototype.pe.call(this,a,b,0,!0);return this};fk.prototype.$classData=q({$Ba:0},!1,"java.lang.IllegalStateException",{$Ba:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function X(){vE.call(this)}X.prototype=new Q1;X.prototype.constructor=X;function ibb(){}ibb.prototype=X.prototype;
X.prototype.a=function(){vE.prototype.pe.call(this,null,null,0,!0);return this};X.prototype.e=function(a){vE.prototype.pe.call(this,a,null,0,!0);return this};X.prototype.$classData=q({lca:0},!1,"java.lang.IndexOutOfBoundsException",{lca:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function B4(){}B4.prototype=new S1a;B4.prototype.constructor=B4;B4.prototype.a=function(){return this};B4.prototype.$classData=q({Q6a:0},!1,"java.lang.JSConsoleBasedPrintStream$DummyOutputStream",{Q6a:1,B2a:1,f:1,VY:1,kca:1,w8:1});
function S1(){vE.call(this)}S1.prototype=new Q1;S1.prototype.constructor=S1;S1.prototype.a=function(){vE.prototype.pe.call(this,null,null,0,!0);return this};S1.prototype.$classData=q({U6a:0},!1,"java.lang.NegativeArraySizeException",{U6a:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function Rg(){vE.call(this)}Rg.prototype=new Q1;Rg.prototype.constructor=Rg;Rg.prototype.a=function(){vE.prototype.pe.call(this,null,null,0,!0);return this};Rg.prototype.e=function(a){vE.prototype.pe.call(this,a,null,0,!0);return this};
Rg.prototype.$classData=q({V6a:0},!1,"java.lang.NullPointerException",{V6a:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function RG(){vE.call(this)}RG.prototype=new Q1;RG.prototype.constructor=RG;RG.prototype.e=function(a){vE.prototype.pe.call(this,a,null,0,!0);return this};RG.prototype.$classData=q({Z6a:0},!1,"java.lang.SecurityException",{Z6a:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function Gt(){vE.call(this)}Gt.prototype=new Q1;Gt.prototype.constructor=Gt;function jbb(){}jbb.prototype=Gt.prototype;
Gt.prototype.a=function(){vE.prototype.pe.call(this,null,null,0,!0);return this};Gt.prototype.e=function(a){vE.prototype.pe.call(this,a,null,0,!0);return this};Gt.prototype.$classData=q({dCa:0},!1,"java.lang.UnsupportedOperationException",{dCa:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function PH(){vE.call(this)}PH.prototype=new Q1;PH.prototype.constructor=PH;PH.prototype.a=function(){vE.prototype.pe.call(this,null,null,0,!0);return this};PH.prototype.e=function(a){vE.prototype.pe.call(this,a,null,0,!0);return this};
PH.prototype.$classData=q({x7a:0},!1,"java.util.NoSuchElementException",{x7a:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function WYa(){vY.call(this)}WYa.prototype=new V1;WYa.prototype.constructor=WYa;d=WYa.prototype;d.a=function(){vY.prototype.bn.call(this,"NANOSECONDS",0);return this};d.oM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,-129542144,13);return(new aq).La(a,b.be)};d.lM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,817405952,838);return(new aq).La(a,b.be)};
d.pM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,1E9,0);return(new aq).La(a,b.be)};d.mM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,1E3,0);return(new aq).La(a,b.be)};d.kM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,-1857093632,20116);return(new aq).La(a,b.be)};d.nM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,1E6,0);return(new aq).La(a,b.be)};d.SJ=function(a,b){return b.Fx(a)};d.Fx=function(a){return a};d.$classData=q({B7a:0},!1,"java.util.concurrent.TimeUnit$$anon$1",{B7a:1,oH:1,lH:1,f:1,sh:1,n:1});
function XYa(){vY.call(this)}XYa.prototype=new V1;XYa.prototype.constructor=XYa;d=XYa.prototype;d.a=function(){vY.prototype.bn.call(this,"MICROSECONDS",1);return this};d.oM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,6E7,0);return(new aq).La(a,b.be)};d.lM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,-694967296,0);return(new aq).La(a,b.be)};d.pM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,1E6,0);return(new aq).La(a,b.be)};d.mM=function(a){return a};
d.kM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,500654080,20);return(new aq).La(a,b.be)};d.nM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,1E3,0);return(new aq).La(a,b.be)};d.SJ=function(a,b){return b.mM(a)};d.Fx=function(a){return EY(FY(),a,(new aq).La(1E3,0),(new aq).La(-1511828489,2147483))};d.$classData=q({C7a:0},!1,"java.util.concurrent.TimeUnit$$anon$2",{C7a:1,oH:1,lH:1,f:1,sh:1,n:1});function YYa(){vY.call(this)}YYa.prototype=new V1;YYa.prototype.constructor=YYa;d=YYa.prototype;
d.a=function(){vY.prototype.bn.call(this,"MILLISECONDS",2);return this};d.oM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,6E4,0);return(new aq).La(a,b.be)};d.lM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,36E5,0);return(new aq).La(a,b.be)};d.pM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,1E3,0);return(new aq).La(a,b.be)};d.mM=function(a){return EY(FY(),a,(new aq).La(1E3,0),(new aq).La(-1511828489,2147483))};d.kM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,864E5,0);return(new aq).La(a,b.be)};d.nM=function(a){return a};
d.SJ=function(a,b){return b.nM(a)};d.Fx=function(a){return EY(FY(),a,(new aq).La(1E6,0),(new aq).La(2077252342,2147))};d.$classData=q({D7a:0},!1,"java.util.concurrent.TimeUnit$$anon$3",{D7a:1,oH:1,lH:1,f:1,sh:1,n:1});function ZYa(){vY.call(this)}ZYa.prototype=new V1;ZYa.prototype.constructor=ZYa;d=ZYa.prototype;d.a=function(){vY.prototype.bn.call(this,"SECONDS",3);return this};d.oM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,60,0);return(new aq).La(a,b.be)};
d.lM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,3600,0);return(new aq).La(a,b.be)};d.pM=function(a){return a};d.mM=function(a){return EY(FY(),a,(new aq).La(1E6,0),(new aq).La(2077252342,2147))};d.kM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,86400,0);return(new aq).La(a,b.be)};d.nM=function(a){return EY(FY(),a,(new aq).La(1E3,0),(new aq).La(-1511828489,2147483))};d.SJ=function(a,b){return b.pM(a)};d.Fx=function(a){return EY(FY(),a,(new aq).La(1E9,0),(new aq).La(633437444,2))};
d.$classData=q({E7a:0},!1,"java.util.concurrent.TimeUnit$$anon$4",{E7a:1,oH:1,lH:1,f:1,sh:1,n:1});function $Ya(){vY.call(this)}$Ya.prototype=new V1;$Ya.prototype.constructor=$Ya;d=$Ya.prototype;d.a=function(){vY.prototype.bn.call(this,"MINUTES",4);return this};d.oM=function(a){return a};d.lM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,60,0);return(new aq).La(a,b.be)};d.pM=function(a){return EY(FY(),a,(new aq).La(60,0),(new aq).La(572662306,35791394))};
d.mM=function(a){return EY(FY(),a,(new aq).La(6E7,0),(new aq).La(-895955376,35))};d.kM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,1440,0);return(new aq).La(a,b.be)};d.nM=function(a){return EY(FY(),a,(new aq).La(6E4,0),(new aq).La(1692789776,35791))};d.SJ=function(a,b){return b.oM(a)};d.Fx=function(a){return EY(FY(),a,(new aq).La(-129542144,13),(new aq).La(153722867,0))};d.$classData=q({F7a:0},!1,"java.util.concurrent.TimeUnit$$anon$5",{F7a:1,oH:1,lH:1,f:1,sh:1,n:1});function aZa(){vY.call(this)}
aZa.prototype=new V1;aZa.prototype.constructor=aZa;d=aZa.prototype;d.a=function(){vY.prototype.bn.call(this,"HOURS",5);return this};d.oM=function(a){return EY(FY(),a,(new aq).La(60,0),(new aq).La(572662306,35791394))};d.lM=function(a){return a};d.pM=function(a){return EY(FY(),a,(new aq).La(3600,0),(new aq).La(1011703407,596523))};d.mM=function(a){return EY(FY(),a,(new aq).La(-694967296,0),(new aq).La(-1732919508,0))};d.kM=function(a){var b=Fa();a=jD(b,a.Na,a.$a,24,0);return(new aq).La(a,b.be)};
d.nM=function(a){return EY(FY(),a,(new aq).La(36E5,0),(new aq).La(-2047687697,596))};d.SJ=function(a,b){return b.lM(a)};d.Fx=function(a){return EY(FY(),a,(new aq).La(817405952,838),(new aq).La(2562047,0))};d.$classData=q({G7a:0},!1,"java.util.concurrent.TimeUnit$$anon$6",{G7a:1,oH:1,lH:1,f:1,sh:1,n:1});function bZa(){vY.call(this)}bZa.prototype=new V1;bZa.prototype.constructor=bZa;d=bZa.prototype;d.a=function(){vY.prototype.bn.call(this,"DAYS",6);return this};
d.oM=function(a){return EY(FY(),a,(new aq).La(1440,0),(new aq).La(381774870,1491308))};d.lM=function(a){return EY(FY(),a,(new aq).La(24,0),(new aq).La(1431655765,89478485))};d.pM=function(a){return EY(FY(),a,(new aq).La(86400,0),(new aq).La(579025220,24855))};d.mM=function(a){return EY(FY(),a,(new aq).La(500654080,20),(new aq).La(106751991,0))};d.kM=function(a){return a};d.nM=function(a){return EY(FY(),a,(new aq).La(864E5,0),(new aq).La(-622191233,24))};d.SJ=function(a,b){return b.kM(a)};
d.Fx=function(a){return EY(FY(),a,(new aq).La(-1857093632,20116),(new aq).La(106751,0))};d.$classData=q({H7a:0},!1,"java.util.concurrent.TimeUnit$$anon$7",{H7a:1,oH:1,lH:1,f:1,sh:1,n:1});function C4(){this.l=this.yea=null}C4.prototype=new r;C4.prototype.constructor=C4;function kbb(){}d=kbb.prototype=C4.prototype;d.h=function(a){return a&&a.$classData&&a.$classData.v.b8a?this.yea===a.yea&&this.fk===a.fk:!1};d.Wn=function(a){return this.fk<a.fk?-1:this.fk===a.fk?0:1};
d.Xn=function(a){return this.fk<a.fk?-1:this.fk===a.fk?0:1};d.z6a=function(a){if(null===a)throw Lb(Mb(),null);this.yea=this.l=a;return this};d.y=function(){return this.fk};function v(){vE.call(this);this.KV=this.WCa=null;this.A$=!1}v.prototype=new Q1;v.prototype.constructor=v;
v.prototype.Xm=function(){if(!this.A$&&!this.A$){var a;if(null===this.KV)a="null";else try{a=ja(this.KV)+" ("+("of class "+dk(ka(this.KV)))+")"}catch(b){if(null!==gi(Mb(),b))a="an instance of class "+dk(ka(this.KV));else throw b;}this.WCa=a;this.A$=!0}return this.WCa};v.prototype.d=function(a){this.KV=a;vE.prototype.pe.call(this,null,null,0,!0);return this};v.prototype.$classData=q({d8a:0},!1,"scala.MatchError",{d8a:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function D4(){}D4.prototype=new r;
D4.prototype.constructor=D4;function lbb(){}lbb.prototype=D4.prototype;D4.prototype.wa=function(){return this.b()?G():oz(new pz,this.c(),G())};D4.prototype.qa=function(){return!this.b()};D4.prototype.Ja=function(a){return!this.b()&&ub(vb(),this.c(),a)};function gza(){}gza.prototype=new r;gza.prototype.constructor=gza;d=gza.prototype;d.a=function(){return this};d.R=function(a){this.WS(a)};d.QA=function(){return sG().VEa};d.Tn=function(a){return this.WS(a)|0};d.u=function(){return"\x3cfunction1\x3e"};
d.rp=function(a){return!!this.WS(a)};d.Xa=function(){return!1};d.Za=function(a,b){return HH(this,a,b)};d.WS=function(a){throw(new v).d(a);};d.$classData=q({j8a:0},!1,"scala.PartialFunction$$anon$1",{j8a:1,f:1,Ha:1,za:1,q:1,n:1});function E4(){this.zDa=null}E4.prototype=new wS;E4.prototype.constructor=E4;E4.prototype.R=function(a){return this.Ia(a)};function Qr(a){var b=new E4;b.zDa=a;return b}E4.prototype.Ia=function(a){a=this.zDa.Za(a,sG().PP);return eza(sG(),a)?w():(new A).d(a)};
E4.prototype.$classData=q({l8a:0},!1,"scala.PartialFunction$Lifted",{l8a:1,T2:1,f:1,za:1,q:1,n:1});function OY(){}OY.prototype=new t2a;OY.prototype.constructor=OY;OY.prototype.a=function(){return this};OY.prototype.R=function(a){return a};OY.prototype.$classData=q({n8a:0},!1,"scala.Predef$$anon$1",{n8a:1,Lfb:1,f:1,za:1,q:1,n:1});function PY(){}PY.prototype=new s2a;PY.prototype.constructor=PY;PY.prototype.a=function(){return this};PY.prototype.R=function(a){return a};
PY.prototype.$classData=q({o8a:0},!1,"scala.Predef$$anon$2",{o8a:1,Kfb:1,f:1,za:1,q:1,n:1});function mbb(){}mbb.prototype=new r;mbb.prototype.constructor=mbb;function nbb(){}nbb.prototype=mbb.prototype;mbb.prototype.Wn=function(a){return this.fE(a)};var pbb=function obb(b,c){return c.lg.isArrayClass?(c=Jt(c),"Array["+obb(b,c)+"]"):dk(c)};function qbb(){}qbb.prototype=new r;qbb.prototype.constructor=qbb;function rbb(){}rbb.prototype=qbb.prototype;
qbb.prototype.Mk=function(){return Hp(this)?(new A).d(this.i):w()};function Qx(){this.rh=null}Qx.prototype=new r;Qx.prototype.constructor=Qx;d=Qx.prototype;d.L=function(){return"LeftProjection"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.wEa){var b=this.rh;a=a.rh;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.rh;default:throw(new X).e(""+a);}};
d.c=function(){var a=this.rh;if(Ep(a))return a.i;throw(new PH).e("Either.left.get on Right");};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.wp=function(a){this.rh=a;return this};d.Mk=function(){var a=this.rh;return Ep(a)?(new A).d(a.i):w()};d.$classData=q({wEa:0},!1,"scala.util.Either$LeftProjection",{wEa:1,f:1,A:1,w:1,q:1,n:1});function Ox(){this.rh=null}Ox.prototype=new r;Ox.prototype.constructor=Ox;d=Ox.prototype;d.L=function(){return"RightProjection"};
d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.xEa){var b=this.rh;a=a.rh;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.rh;default:throw(new X).e(""+a);}};d.c=function(){var a=this.rh;if(Hp(a))return a.i;throw(new PH).e("Either.right.get on Left");};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.wp=function(a){this.rh=a;return this};
d.Mk=function(){var a=this.rh;return Hp(a)?(new A).d(a.i):w()};d.$classData=q({xEa:0},!1,"scala.util.Either$RightProjection",{xEa:1,f:1,A:1,w:1,q:1,n:1});function sbb(){}sbb.prototype=new r;sbb.prototype.constructor=sbb;function tbb(){}tbb.prototype=sbb.prototype;function GZa(a){return!!(a&&a.$classData&&a.$classData.v.CEa)}function sI(){vE.call(this)}sI.prototype=new UR;sI.prototype.constructor=sI;sI.prototype.a=function(){vE.prototype.pe.call(this,null,null,0,!0);return this};
sI.prototype.cU=function(){ZZa||(ZZa=(new gZ).a());return ZZa.Iga?vE.prototype.cU.call(this):this};sI.prototype.$classData=q({D9a:0},!1,"scala.util.control.BreakControl",{D9a:1,Fe:1,f:1,n:1,CW:1,uea:1});
function O1(a,b){if(b&&b.$classData&&b.$classData.v.Ep){var c;if(!(c=a===b)&&(c=a.lb()===b.lb()))try{var e=a.kb();for(a=!0;a&&e.Qa();){var f=e.Sa();if(null===f)throw(new v).d(f);var g=f.pa(),h=f.Ba(),k=b.Ta(g);b:{if(x(k)){var l=k.i;if(ub(vb(),h,l)){a=!0;break b}}a=!1}}c=a}catch(p){if(yNa(p))c=!1;else throw p;}b=c}else b=!1;return b}function xxa(a,b,c){return a.fm(t(new u,function(a,b){return function(a){return ub(vb(),b,a)}}(a,b)),c)}
function F4(a,b){return b&&b.$classData&&b.$classData.v.Nf?a.Jl(b):!1}function G4(a,b){return 0<=b&&b<a.Ka()}function H4(){this.s=null}H4.prototype=new lS;H4.prototype.constructor=H4;H4.prototype.a=function(){kS.prototype.a.call(this);return this};H4.prototype.Ed=function(){Ce();return(new $g).a()};H4.prototype.$classData=q({V9a:0},!1,"scala.collection.Iterable$",{V9a:1,Os:1,Ln:1,f:1,Qs:1,Mn:1});var ubb=void 0;function pf(){ubb||(ubb=(new H4).a());return ubb}function Sz(){this.sO=this.Pa=null}
Sz.prototype=new b2;Sz.prototype.constructor=Sz;Sz.prototype.Sa=function(){return this.sO.R(this.Pa.Sa())};Sz.prototype.Cu=function(a,b){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.sO=b;return this};Sz.prototype.Qa=function(){return this.Pa.Qa()};Sz.prototype.$classData=q({c$a:0},!1,"scala.collection.Iterator$$anon$10",{c$a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function I4(){this.Wza=this.Pa=this.Rk=null}I4.prototype=new b2;I4.prototype.constructor=I4;
I4.prototype.Sa=function(){return(this.Qa()?this.Rk:Uz().Td).Sa()};I4.prototype.Cu=function(a,b){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.Wza=b;this.Rk=Uz().Td;return this};I4.prototype.Qa=function(){for(;!this.Rk.Qa();){if(!this.Pa.Qa())return!1;this.Rk=this.Wza.R(this.Pa.Sa()).pm()}return!0};I4.prototype.$classData=q({d$a:0},!1,"scala.collection.Iterator$$anon$11",{d$a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function J4(){this.nA=null;this.dC=!1;this.mDa=this.Pa=null}J4.prototype=new b2;
J4.prototype.constructor=J4;J4.prototype.Sa=function(){return this.Qa()?(this.dC=!1,this.nA):Uz().Td.Sa()};J4.prototype.Cu=function(a,b){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.mDa=b;this.dC=!1;return this};J4.prototype.Qa=function(){if(!this.dC){do{if(!this.Pa.Qa())return!1;this.nA=this.Pa.Sa()}while(!this.mDa.R(this.nA));this.dC=!0}return!0};J4.prototype.$classData=q({e$a:0},!1,"scala.collection.Iterator$$anon$12",{e$a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});
function Pz(){this.nA=null;this.bw=0;this.Jda=this.Pa=null}Pz.prototype=new b2;Pz.prototype.constructor=Pz;Pz.prototype.Sa=function(){return this.Qa()?(this.bw=0,this.Jda.R(this.nA)):Uz().Td.Sa()};function Ppa(a,b,c){if(null===b)throw Lb(Mb(),null);a.Pa=b;a.Jda=c;a.bw=0;return a}Pz.prototype.Qa=function(){for(;0===this.bw;)this.Pa.Qa()?(this.nA=this.Pa.Sa(),this.Jda.Xa(this.nA)&&(this.bw=1)):this.bw=-1;return 1===this.bw};
Pz.prototype.$classData=q({f$a:0},!1,"scala.collection.Iterator$$anon$13",{f$a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function K4(){this.nA=null;this.dC=!1;this.nDa=this.a3=null}K4.prototype=new b2;K4.prototype.constructor=K4;K4.prototype.Sa=function(){return this.Qa()?(this.dC=!1,this.nA):Uz().Td.Sa()};K4.prototype.Cu=function(a,b){this.nDa=b;this.dC=!1;this.a3=a;return this};
K4.prototype.Qa=function(){return this.dC?!0:this.a3.Qa()?(this.nA=this.a3.Sa(),this.nDa.R(this.nA)?this.dC=!0:this.a3=Uz().Td,this.dC):!1};K4.prototype.$classData=q({g$a:0},!1,"scala.collection.Iterator$$anon$15",{g$a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function L4(){this.bw=0;this.oDa=this.Pa=this.FO=null}L4.prototype=new b2;L4.prototype.constructor=L4;L4.prototype.Sa=function(){if(this.Qa()){if(1===this.bw)return this.Pa.Sa();this.bw=1;return this.FO}return Uz().Td.Sa()};
L4.prototype.Cu=function(a,b){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.oDa=b;this.bw=-1;return this};L4.prototype.Qa=function(){if(1===this.bw)return this.Pa.Qa();if(0===this.bw)return!0;for(;this.Pa.Qa();){var a=this.Pa.Sa();if(!this.oDa.R(a))return this.FO=a,this.bw=0,!0}this.bw=1;return!1};L4.prototype.$classData=q({h$a:0},!1,"scala.collection.Iterator$$anon$17",{h$a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function M4(){this.Cfa=this.Pa=null}M4.prototype=new b2;M4.prototype.constructor=M4;
M4.prototype.Sa=function(){return this.Rca()};M4.prototype.Rca=function(){return(new P).N(this.Pa.Sa(),this.Cfa.Sa())};M4.prototype.Qa=function(){return this.Pa.Qa()&&this.Cfa.Qa()};M4.prototype.$classData=q({i$a:0},!1,"scala.collection.Iterator$$anon$18",{i$a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function CI(){}CI.prototype=new b2;CI.prototype.constructor=CI;CI.prototype.Sa=function(){throw(new PH).e("next on empty iterator");};CI.prototype.a=function(){return this};CI.prototype.Qa=function(){return!1};
CI.prototype.$classData=q({j$a:0},!1,"scala.collection.Iterator$$anon$2",{j$a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function N4(){this.K0=!1;this.Iza=null}N4.prototype=new b2;N4.prototype.constructor=N4;N4.prototype.Sa=function(){return this.K0?(this.K0=!1,this.Iza):Uz().Td.Sa()};N4.prototype.d=function(a){this.Iza=a;this.K0=!0;return this};N4.prototype.Qa=function(){return this.K0};N4.prototype.$classData=q({k$a:0},!1,"scala.collection.Iterator$$anon$3",{k$a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});
function eS(){this.pQ=null;this.aK=this.NC=0}eS.prototype=new b2;eS.prototype.constructor=eS;eS.prototype.Sa=function(){vbb(this);return 0<this.NC?(this.NC=-1+this.NC|0,this.pQ.Sa()):0>this.NC?this.pQ.Sa():Uz().Td.Sa()};function wbb(a,b){if(0>a.NC)return-1;a=a.NC-b|0;return 0>a?0:a}eS.prototype.TC=function(a,b){a=0<a?a:0;if(0>b)b=wbb(this,a);else if(b<=a)b=0;else if(0>this.NC)b=b-a|0;else{var c=wbb(this,a);b=b-a|0;b=c<b?c:b}if(0===b)return Uz().Td;this.aK=this.aK+a|0;this.NC=b;return this};
function vbb(a){for(;0<a.aK;)a.pQ.Qa()?(a.pQ.Sa(),a.aK=-1+a.aK|0):a.aK=0}eS.prototype.Qa=function(){vbb(this);return 0!==this.NC&&this.pQ.Qa()};eS.prototype.$classData=q({m$a:0},!1,"scala.collection.Iterator$SliceIterator",{m$a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function O4(){this.Yu=null}O4.prototype=new b2;O4.prototype.constructor=O4;O4.prototype.Sa=function(){if(this.Qa()){var a=this.Yu.fa();this.Yu=this.Yu.sa();return a}return Uz().Td.Sa()};function Uc(a){var b=new O4;b.Yu=a;return b}
O4.prototype.wa=function(){var a=this.Yu.wa();this.Yu=this.Yu.Wj(0);return a};O4.prototype.Qa=function(){return!this.Yu.b()};O4.prototype.$classData=q({n$a:0},!1,"scala.collection.LinearSeqLike$$anon$1",{n$a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function P4(){this.Eu=null}P4.prototype=new b2;P4.prototype.constructor=P4;P4.prototype.Sa=function(){return this.Eu.Sa().pa()};P4.prototype.Qa=function(){return this.Eu.Qa()};P4.prototype.Qd=function(a){this.Eu=a.kb();return this};
P4.prototype.$classData=q({p$a:0},!1,"scala.collection.MapLike$$anon$1",{p$a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function Q4(){this.Eu=null}Q4.prototype=new b2;Q4.prototype.constructor=Q4;Q4.prototype.Sa=function(){return this.Eu.Sa().Ba()};Q4.prototype.Qa=function(){return this.Eu.Qa()};Q4.prototype.Qd=function(a){this.Eu=a.kb();return this};Q4.prototype.$classData=q({q$a:0},!1,"scala.collection.MapLike$$anon$2",{q$a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function R4(){}R4.prototype=new z2a;
R4.prototype.constructor=R4;R4.prototype.a=function(){return this};R4.prototype.lA=function(){return Yd()};R4.prototype.Ed=function(){return Zd(new ee,Yd())};R4.prototype.$classData=q({M$a:0},!1,"scala.collection.Set$",{M$a:1,UP:1,TP:1,Ln:1,f:1,Mn:1});var xbb=void 0;function ybb(){xbb||(xbb=(new R4).a());return xbb}function YH(){this.s=null}YH.prototype=new lS;YH.prototype.constructor=YH;YH.prototype.a=function(){kS.prototype.a.call(this);Hza=this;(new rI).a();return this};
YH.prototype.Ed=function(){zbb||(zbb=(new S4).a());return(new $g).a()};YH.prototype.$classData=q({N$a:0},!1,"scala.collection.Traversable$",{N$a:1,Os:1,Ln:1,f:1,Qs:1,Mn:1});var Hza=void 0;function Tz(){this.v1=this.hca=null}Tz.prototype=new b2;Tz.prototype.constructor=Tz;Tz.prototype.Sa=function(){return this.Qa()?this.v1.Sa():Uz().Td.Sa()};Tz.prototype.Qa=function(){for(;;){if(this.v1.Qa())return!0;if(this.hca.Qa())this.v1=this.hca.Sa().pm();else return!1}};
Tz.prototype.$classData=q({R$a:0},!1,"scala.collection.TraversableOnce$FlattenOps$$anon$1",{R$a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function T4(){}T4.prototype=new z2a;T4.prototype.constructor=T4;function Abb(){}Abb.prototype=T4.prototype;T4.prototype.lA=function(){return this.h0()};T4.prototype.Ed=function(){return Zd(new ee,this.h0())};function Bbb(){}Bbb.prototype=new z2a;Bbb.prototype.constructor=Bbb;function Cbb(){}Cbb.prototype=Bbb.prototype;Bbb.prototype.Ed=function(){return Yg(new Zg,this.lA())};
function U4(){this.s=null}U4.prototype=new lS;U4.prototype.constructor=U4;U4.prototype.a=function(){kS.prototype.a.call(this);return this};U4.prototype.Ed=function(){return(new $g).a()};U4.prototype.$classData=q({qab:0},!1,"scala.collection.immutable.Iterable$",{qab:1,Os:1,Ln:1,f:1,Qs:1,Mn:1});var Dbb=void 0;function Ce(){Dbb||(Dbb=(new U4).a());return Dbb}function V4(){this.Yu=null}V4.prototype=new b2;V4.prototype.constructor=V4;d=V4.prototype;
d.Sa=function(){if(!this.Qa())return Uz().Td.Sa();var a=OAa(this.Yu),b=a.fa();this.Yu=NAa(new PI,this,jb(function(a,b){return function(){return b.sa()}}(this,a)));return b};d.wa=function(){var a=this.kd(),b=Di().s;return Ei(a,b)};d.n1=function(a){this.Yu=NAa(new PI,this,jb(function(a,c){return function(){return c}}(this,a)));return this};d.Qa=function(){var a=OAa(this.Yu);return Tc(a)};
d.kd=function(){var a=OAa(this.Yu);this.Yu=NAa(new PI,this,jb(function(){return function(){Js();return gS()}}(this)));return a};d.$classData=q({bbb:0},!1,"scala.collection.immutable.StreamIterator",{bbb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function W4(){this.tfa=null;this.Bj=this.pH=0;this.Pa=null}W4.prototype=new b2;W4.prototype.constructor=W4;W4.prototype.Sa=function(){return this.My()};
W4.prototype.My=function(){if(this.Bj>=this.pH)throw(new PH).e("next on empty iterator");for(var a=this.Bj;;){if(this.Bj<this.pH)var b=this.Pa.nG(this.Bj),b=!(10===b||12===b);else b=!1;if(b)this.Bj=1+this.Bj|0;else break}var b=this.Bj=1+this.Bj|0,c=this.pH;return this.tfa.substring(a,b<c?b:c)};W4.prototype.Qa=function(){return this.Bj<this.pH};W4.prototype.$classData=q({obb:0},!1,"scala.collection.immutable.StringLike$$anon$1",{obb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function S4(){this.s=null}
S4.prototype=new lS;S4.prototype.constructor=S4;S4.prototype.a=function(){kS.prototype.a.call(this);return this};S4.prototype.Ed=function(){return(new $g).a()};S4.prototype.$classData=q({qbb:0},!1,"scala.collection.immutable.Traversable$",{qbb:1,Os:1,Ln:1,f:1,Qs:1,Mn:1});var zbb=void 0;function X4(){this.je=null;this.xx=0;this.SP=this.Lea=this.C2=null;this.bI=0;this.XL=null}X4.prototype=new b2;X4.prototype.constructor=X4;function Ebb(){}Ebb.prototype=X4.prototype;
X4.prototype.Sa=function(){if(null!==this.XL){var a=this.XL.Sa();this.XL.Qa()||(this.XL=null);return a}a:{var a=this.SP,b=this.bI;for(;;){b===(-1+a.j.length|0)?(this.xx=-1+this.xx|0,0<=this.xx?(this.SP=this.C2.j[this.xx],this.bI=this.Lea.j[this.xx],this.C2.j[this.xx]=null):(this.SP=null,this.bI=0)):this.bI=1+this.bI|0;if((a=a.j[b])&&a.$classData&&a.$classData.v.lFa||Fbb(a)){a=this.gAa(a);break a}if(Gbb(a)||Y4(a))0<=this.xx&&(this.C2.j[this.xx]=this.SP,this.Lea.j[this.xx]=this.bI),this.xx=1+this.xx|
0,this.SP=Hbb(a),this.bI=0,a=Hbb(a),b=0;else{this.XL=a.kb();a=this.Sa();break a}}}return a};X4.prototype.Qa=function(){return null!==this.XL||0<=this.xx};function Hbb(a){if(Gbb(a))return a.Uk;if(!Y4(a))throw(new v).d(a);return a.tf}X4.prototype.pAa=function(a){this.je=a;this.xx=0;this.C2=ia(La(La(Ibb)),[6]);this.Lea=ia(La(Ra),[6]);this.SP=this.je;this.bI=0;this.XL=null;return this};function Z4(){this.fk=0;this.Pa=null}Z4.prototype=new b2;Z4.prototype.constructor=Z4;
Z4.prototype.Sa=function(){return 0<this.fk?(this.fk=-1+this.fk|0,this.Pa.jb(this.fk)):Uz().Td.Sa()};Z4.prototype.Qa=function(){return 0<this.fk};function Jbb(a){var b=new Z4;if(null===a)throw Lb(Mb(),null);b.Pa=a;b.fk=a.Ka();return b}Z4.prototype.$classData=q({tbb:0},!1,"scala.collection.immutable.Vector$$anon$1",{tbb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function SI(){this.Hv=this.Kk=null}SI.prototype=new r;SI.prototype.constructor=SI;function QAa(a,b,c){a.Hv=c;a.Kk=b;return a}d=SI.prototype;
d.h=function(a){return null!==a&&(a===this||a===this.Kk||pa(a,this.Kk))};d.uk=function(a){this.Kk.Ic(a);return this};d.u=function(){return""+this.Kk};d.lc=function(){return this.Hv.R(this.Kk.lc())};d.Ss=function(a,b){this.Kk.Ss(a,b)};d.Ic=function(a){this.Kk.Ic(a);return this};d.y=function(){return this.Kk.y()};d.Gh=function(a){this.Kk.Gh(a)};d.Cf=function(a){this.Kk.Cf(a);return this};d.$classData=q({Obb:0},!1,"scala.collection.mutable.Builder$$anon$1",{Obb:1,f:1,ll:1,kl:1,jl:1,t8a:1});
function $4(){this.fk=0;this.Pa=null}$4.prototype=new b2;$4.prototype.constructor=$4;$4.prototype.Sa=function(){return this.Qa()?(this.fk=1+this.fk|0,gea(this.Pa.qe.j[-1+this.fk|0])):Uz().Td.Sa()};$4.prototype.Qa=function(){for(;this.fk<this.Pa.qe.j.length&&null===this.Pa.qe.j[this.fk];)this.fk=1+this.fk|0;return this.fk<this.Pa.qe.j.length};$4.prototype.$classData=q({Rbb:0},!1,"scala.collection.mutable.FlatHashTable$$anon$1",{Rbb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function a5(){this.Eu=null}
a5.prototype=new b2;a5.prototype.constructor=a5;a5.prototype.Sa=function(){return this.Eu.Sa().oa};a5.prototype.Qa=function(){return this.Eu.Qa()};a5.prototype.fo=function(a){this.Eu=Kbb(a);return this};a5.prototype.$classData=q({Xbb:0},!1,"scala.collection.mutable.HashMap$$anon$3",{Xbb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function b5(){this.Eu=null}b5.prototype=new b2;b5.prototype.constructor=b5;b5.prototype.Sa=function(){return this.Eu.Sa().t};b5.prototype.Qa=function(){return this.Eu.Qa()};
b5.prototype.fo=function(a){this.Eu=Kbb(a);return this};b5.prototype.$classData=q({Ybb:0},!1,"scala.collection.mutable.HashMap$$anon$4",{Ybb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function c5(){this.gca=null;this.KO=0;this.mK=null}c5.prototype=new b2;c5.prototype.constructor=c5;c5.prototype.Sa=function(){var a=this.mK;for(this.mK=this.mK.Sa();null===this.mK&&0<this.KO;)this.KO=-1+this.KO|0,this.mK=this.gca.j[this.KO];return a};function Kbb(a){var b=new c5;b.gca=a.qe;b.KO=dC(a);b.mK=b.gca.j[b.KO];return b}
c5.prototype.Qa=function(){return null!==this.mK};c5.prototype.$classData=q({bcb:0},!1,"scala.collection.mutable.HashTable$$anon$1",{bcb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function d5(){this.s=null}d5.prototype=new lS;d5.prototype.constructor=d5;d5.prototype.a=function(){kS.prototype.a.call(this);return this};d5.prototype.Ed=function(){return(new pk).a()};d5.prototype.$classData=q({jcb:0},!1,"scala.collection.mutable.Iterable$",{jcb:1,Os:1,Ln:1,f:1,Qs:1,Mn:1});var Lbb=void 0;
function aqa(){Lbb||(Lbb=(new d5).a());return Lbb}function Mbb(){this.qo=null}Mbb.prototype=new r;Mbb.prototype.constructor=Mbb;function Nbb(){}d=Nbb.prototype=Mbb.prototype;d.a=function(){this.qo=(new $g).a();return this};d.uk=function(a){return Obb(this,a)};function Obb(a,b){var c=a.qo;Di();b=(new J).aa([b]);var e=Di().s;vh(c,Ei(b,e));return a}d.Ss=function(a,b){sS(this,a,b)};d.Ic=function(a){return Obb(this,a)};d.Gh=function(){};d.Cf=function(a){vh(this.qo,a);return this};
function Pbb(){this.Rk=null}Pbb.prototype=new b2;Pbb.prototype.constructor=Pbb;d=Pbb.prototype;d.Sa=function(){return this.Rca()};d.Rca=function(){if(this.Qa()){var a=(new P).N(this.Rk.oa,this.Rk.t);this.Rk=this.Rk.mo;return a}return Uz().Td.Sa()};d.Qa=function(){return null!==this.Rk};d.TK=function(a){this.Rk=a.ut;return this};d.$classData=q({ncb:0},!1,"scala.collection.mutable.LinkedHashMap$$anon$1",{ncb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function e5(){this.Rk=null}e5.prototype=new b2;
e5.prototype.constructor=e5;e5.prototype.Sa=function(){if(this.Qa()){var a=this.Rk.oa;this.Rk=this.Rk.mo;return a}return Uz().Td.Sa()};e5.prototype.Qa=function(){return null!==this.Rk};e5.prototype.TK=function(a){this.Rk=a.ut;return this};e5.prototype.$classData=q({ocb:0},!1,"scala.collection.mutable.LinkedHashMap$$anon$2",{ocb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function f5(){this.Rk=null}f5.prototype=new b2;f5.prototype.constructor=f5;
f5.prototype.Sa=function(){if(this.Qa()){var a=this.Rk.t;this.Rk=this.Rk.mo;return a}return Uz().Td.Sa()};f5.prototype.Qa=function(){return null!==this.Rk};f5.prototype.TK=function(a){this.Rk=a.ut;return this};f5.prototype.$classData=q({pcb:0},!1,"scala.collection.mutable.LinkedHashMap$$anon$3",{pcb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function g5(){this.Rk=null}g5.prototype=new b2;g5.prototype.constructor=g5;g5.prototype.Sa=function(){if(this.Qa()){var a=this.Rk.oa;this.Rk=this.Rk.mo;return a}return Uz().Td.Sa()};
g5.prototype.Qa=function(){return null!==this.Rk};g5.prototype.$classData=q({tcb:0},!1,"scala.collection.mutable.LinkedHashSet$$anon$1",{tcb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function h5(){this.yT=null}h5.prototype=new b2;h5.prototype.constructor=h5;h5.prototype.Sa=function(){if(this.Qa()){var a=this.yT.fa();this.yT=this.yT.sa();return a}throw(new PH).e("next on empty Iterator");};h5.prototype.Qa=function(){return this.yT!==G()};
h5.prototype.$classData=q({wcb:0},!1,"scala.collection.mutable.ListBuffer$$anon$1",{wcb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function Sy(){this.gb=this.Td=null}Sy.prototype=new r;Sy.prototype.constructor=Sy;function Ty(a,b){a.gb=a.gb.Zt(b);return a}d=Sy.prototype;d.uk=function(a){return Ty(this,a)};d.lc=function(){return this.gb};d.Ss=function(a,b){sS(this,a,b)};function Ry(a,b){a.Td=b;a.gb=b;return a}d.Ic=function(a){return Ty(this,a)};d.Gh=function(){};d.Cf=function(a){return Yi(this,a)};
d.$classData=q({Bcb:0},!1,"scala.collection.mutable.MapBuilder",{Bcb:1,f:1,Lt:1,ll:1,kl:1,jl:1});function ee(){this.gb=this.Td=null}ee.prototype=new r;ee.prototype.constructor=ee;d=ee.prototype;d.uk=function(a){return fe(this,a)};d.lc=function(){return this.gb};d.Ss=function(a,b){sS(this,a,b)};function fe(a,b){a.gb=a.gb.Ij(b);return a}function Zd(a,b){a.Td=b;a.gb=b;return a}d.Ic=function(a){return fe(this,a)};d.Gh=function(){};d.Cf=function(a){return Yi(this,a)};
d.$classData=q({Fcb:0},!1,"scala.collection.mutable.SetBuilder",{Fcb:1,f:1,Lt:1,ll:1,kl:1,jl:1});function Qbb(){this.gb=this.Ze=null;this.mF=this.TB=0}Qbb.prototype=new r;Qbb.prototype.constructor=Qbb;d=Qbb.prototype;d.k1=function(a){this.Ze=a;this.mF=this.TB=0;return this};d.uk=function(a){return Rbb(this,a)};function Rbb(a,b){var c=1+a.mF|0;if(a.TB<c){for(var e=0===a.TB?16:a.TB<<1;e<c;)e<<=1;c=e;a.gb=Sbb(a,c);a.TB=c}a.gb.cz(a.mF,b);a.mF=1+a.mF|0;return a}
function Sbb(a,b){var c=a.Ze.Dp();b=c===n(Oa)?(new i5).MG(ia(La(Oa),[b])):c===n(Qa)?(new j5).SG(ia(La(Qa),[b])):c===n(Na)?(new az).dx(ia(La(Na),[b])):c===n(Ra)?(new k5).QG(ia(La(Ra),[b])):c===n(Sa)?(new l5).RG(ia(La(Sa),[b])):c===n(Ta)?(new m5).PG(ia(La(Ta),[b])):c===n(Ua)?(new n5).OG(ia(La(Ua),[b])):c===n(Ma)?(new o5).TG(ia(La(Ma),[b])):c===n(waa)?(new p5).UG(ia(La(na),[b])):(new FH).vc(a.Ze.As(b));0<a.mF&&Kt(ye(),a.gb.z,0,b.z,0,a.mF);return b}
d.lc=function(){var a;0!==this.TB&&this.TB===this.mF?(this.TB=0,a=this.gb):a=Sbb(this,this.mF);return a};d.Ss=function(a,b){sS(this,a,b)};d.Ic=function(a){return Rbb(this,a)};d.Gh=function(a){this.TB<a&&(this.gb=Sbb(this,a),this.TB=a)};d.Cf=function(a){return Yi(this,a)};d.$classData=q({Kcb:0},!1,"scala.collection.mutable.WrappedArrayBuilder",{Kcb:1,f:1,Lt:1,ll:1,kl:1,jl:1});function Ax(){vE.call(this);this.fHa=this.Da=null}Ax.prototype=new UR;Ax.prototype.constructor=Ax;function Tbb(){}
d=Tbb.prototype=Ax.prototype;d.cU=function(){return this};d.Qt=function(){return this.fHa};d.gHa=function(){this.Qt()};d.N=function(a,b){this.Da=a;this.fHa=b;vE.prototype.pe.call(this,null,null,0,!0);return this};d.Tfa=function(){return!!this.Qt()};function Bx(a){return!!(a&&a.$classData&&a.$classData.v.U2)}d.$classData=q({U2:0},!1,"scala.runtime.NonLocalReturnControl",{U2:1,Fe:1,f:1,n:1,CW:1,uea:1});function q5(){this.Rya=this.gT=0;this.sHa=null}q5.prototype=new b2;q5.prototype.constructor=q5;
q5.prototype.Sa=function(){var a=this.sHa.K(this.gT);this.gT=1+this.gT|0;return a};function Z(a){var b=new q5;b.sHa=a;b.gT=0;b.Rya=a.H();return b}q5.prototype.Qa=function(){return this.gT<this.Rya};q5.prototype.$classData=q({xdb:0},!1,"scala.runtime.ScalaRunTime$$anon$1",{xdb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function r5(){zS.call(this)}r5.prototype=new f2;r5.prototype.constructor=r5;r5.prototype.a=function(){var a=yt().ba;zS.prototype.kC.call(this,a,wk());return this};
r5.prototype.$classData=q({xHa:0},!1,"amf.AmfProfile$",{xHa:1,xz:1,f:1,A:1,w:1,q:1,n:1});var Ubb=void 0;function yk(){Ubb||(Ubb=(new r5).a());return Ubb}function Hk(){zS.call(this)}Hk.prototype=new f2;Hk.prototype.constructor=Hk;Hk.prototype.a=function(){var a=Cl().ba;zS.prototype.kC.call(this,a,wk());return this};Hk.prototype.$classData=q({yHa:0},!1,"amf.AmlProfile$",{yHa:1,xz:1,f:1,A:1,w:1,q:1,n:1});var kea=void 0;function s5(){zS.call(this)}s5.prototype=new f2;s5.prototype.constructor=s5;
s5.prototype.a=function(){zS.prototype.kC.call(this,wt().ba,tc());return this};s5.prototype.$classData=q({DHa:0},!1,"amf.Oas20Profile$",{DHa:1,xz:1,f:1,A:1,w:1,q:1,n:1});var Vbb=void 0;function Ck(){Vbb||(Vbb=(new s5).a());return Vbb}function t5(){zS.call(this)}t5.prototype=new f2;t5.prototype.constructor=t5;t5.prototype.a=function(){zS.prototype.kC.call(this,xt().ba,tc());return this};t5.prototype.$classData=q({EHa:0},!1,"amf.Oas30Profile$",{EHa:1,xz:1,f:1,A:1,w:1,q:1,n:1});var Wbb=void 0;
function Dk(){Wbb||(Wbb=(new t5).a());return Wbb}function u5(){zS.call(this)}u5.prototype=new f2;u5.prototype.constructor=u5;u5.prototype.a=function(){zS.prototype.kC.call(this,vt().ba,tc());return this};u5.prototype.$classData=q({FHa:0},!1,"amf.OasProfile$",{FHa:1,xz:1,f:1,A:1,w:1,q:1,n:1});var Xbb=void 0;function Bk(){Xbb||(Xbb=(new u5).a());return Xbb}function Ik(){zS.call(this)}Ik.prototype=new f2;Ik.prototype.constructor=Ik;
Ik.prototype.a=function(){var a=ih().ba;zS.prototype.kC.call(this,a,wk());return this};Ik.prototype.$classData=q({GHa:0},!1,"amf.PayloadProfile$",{GHa:1,xz:1,f:1,A:1,w:1,q:1,n:1});var lea=void 0;function v5(){zS.call(this)}v5.prototype=new f2;v5.prototype.constructor=v5;v5.prototype.a=function(){zS.prototype.kC.call(this,oc().ba,sc());return this};v5.prototype.$classData=q({KHa:0},!1,"amf.Raml08Profile$",{KHa:1,xz:1,f:1,A:1,w:1,q:1,n:1});var Ybb=void 0;
function Gk(){Ybb||(Ybb=(new v5).a());return Ybb}function w5(){zS.call(this)}w5.prototype=new f2;w5.prototype.constructor=w5;w5.prototype.a=function(){zS.prototype.kC.call(this,nc().ba,sc());return this};w5.prototype.$classData=q({LHa:0},!1,"amf.Raml10Profile$",{LHa:1,xz:1,f:1,A:1,w:1,q:1,n:1});var Zbb=void 0;function Fk(){Zbb||(Zbb=(new w5).a());return Zbb}function x5(){zS.call(this)}x5.prototype=new f2;x5.prototype.constructor=x5;
x5.prototype.a=function(){zS.prototype.kC.call(this,mc().ba,sc());return this};x5.prototype.$classData=q({MHa:0},!1,"amf.RamlProfile$",{MHa:1,xz:1,f:1,A:1,w:1,q:1,n:1});var $bb=void 0;function Ek(){$bb||($bb=(new x5).a());return $bb}function I2a(){}I2a.prototype=new oZ;I2a.prototype.constructor=I2a;d=I2a.prototype;d.Un=function(a,b){return y5(a)?a:b.R(a)};d.Saa=function(){return this};d.Xa=function(a){return this.jo(a)};d.Za=function(a,b){return this.Un(a,b)};d.jo=function(a){return y5(a)};
d.$classData=q({YJa:0},!1,"amf.client.model.Annotations$$anonfun$custom$1",{YJa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function M2a(){}M2a.prototype=new oZ;M2a.prototype.constructor=M2a;d=M2a.prototype;d.Un=function(a,b){return mB(a)?a:b.R(a)};d.Saa=function(){return this};d.Xa=function(a){return this.jo(a)};d.Za=function(a,b){return this.Un(a,b)};d.jo=function(a){return mB(a)};d.$classData=q({ZJa:0},!1,"amf.client.model.Annotations$$anonfun$isTracked$1",{ZJa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});
function N2a(){this.qM=null}N2a.prototype=new oZ;N2a.prototype.constructor=N2a;d=N2a.prototype;d.Un=function(a,b){return mB(a)&&a.Fs.Ja(this.qM)?a:b.R(a)};d.Xa=function(a){return this.jo(a)};d.Za=function(a,b){return this.Un(a,b)};d.jo=function(a){return mB(a)&&a.Fs.Ja(this.qM)?!0:!1};d.$classData=q({$Ja:0},!1,"amf.client.model.Annotations$$anonfun$isTrackedBy$1",{$Ja:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function WA(){this.na=this.p=null}WA.prototype=new r;WA.prototype.constructor=WA;d=WA.prototype;
d.a=function(){M();var a=(new N).a();WA.prototype.yAa.call(this,(new oN).P((new Q).a(),a));return this};d.Wo=function(a){return BS(this,a)};d.ap=function(a){return FS(this,a)};d.Mm=function(a){return JS(this,a)};d.Yo=function(){return DS(this)};d.cp=function(){return MS(this)};d.Wl=function(){return LS(this)};d.nw=function(){lM();var a=B(this.p.g,ed().ob),b;b=lM();if(null===lM().dZ&&null===lM().dZ){var c=lM(),e=new ZZ;if(null===b)throw Lb(Mb(),null);e.l=b;c.dZ=e}b=lM().dZ;return dt(b.l.na,a)};
d.kw=function(a){return GK(this,a)};d.Xo=function(a){return NS(this,a)};d.$o=function(a){return CS(this,a)};d.Nm=function(){return KS(this)};d.bc=function(){return Eo(this)};d.bp=function(a){return ES(this,a)};d.yAa=function(a){this.p=a;this.na=ju().na;return this};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.yI=function(a){var b=this.p,c=lM(),e=z5();a=ml(nl(new ol,c,a,e));c=ge().ch;qf(b,c,a);return this};d.Nn=function(){return HS(this)};d.dp=function(){return GS(this)};
d.FI=function(){return this.qK()};d.qK=function(){var a=lM(),b=xd(this.p),c=z5();return Il(a,b,c).sb()};WA.prototype.annotations=function(){return this.bc()};Object.defineProperty(WA.prototype,"sourceVendor",{get:function(){return this.Nn()},configurable:!0});WA.prototype.findByType=function(a){return this.Xo(a)};WA.prototype.findById=function(a){return this.Wo(a)};WA.prototype.withUsage=function(a){return this.bp(a)};WA.prototype.withLocation=function(a){return this.$o(a)};WA.prototype.withRaw=function(a){return this.Mm(a)};
WA.prototype.withReferences=function(a){return this.ap(a)};Object.defineProperty(WA.prototype,"modelVersion",{get:function(){return this.cp()},configurable:!0});Object.defineProperty(WA.prototype,"usage",{get:function(){return this.dp()},configurable:!0});Object.defineProperty(WA.prototype,"location",{get:function(){return this.Wl()},configurable:!0});Object.defineProperty(WA.prototype,"raw",{get:function(){return this.Nm()},configurable:!0});WA.prototype.references=function(){return this.Yo()};
Object.defineProperty(WA.prototype,"id",{get:function(){return this.hc()},configurable:!0});WA.prototype.withEncodes=function(a){if(a&&a.$classData&&a.$classData.v.Y6){var b=this.p;a=a.p;var c=ed().ob;ff(b,c,a);return this}if(pPa(a))return this.kw(a);throw"No matching overload";};WA.prototype.withExternals=function(a){return this.yI(a)};Object.defineProperty(WA.prototype,"externals",{get:function(){return this.FI()},configurable:!0});
Object.defineProperty(WA.prototype,"encodes",{get:function(){return this.nw()},configurable:!0});WA.prototype.$classData=q({bKa:0},!1,"amf.client.model.document.DialectFragment",{bKa:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1});function dB(){this.na=this.p=null}dB.prototype=new r;dB.prototype.constructor=dB;d=dB.prototype;d.a=function(){M();var a=(new N).a();dB.prototype.AAa.call(this,(new A5).P((new Q).a(),a));return this};d.Wo=function(a){return BS(this,a)};d.ap=function(a){return FS(this,a)};
d.Mm=function(a){return JS(this,a)};d.Yo=function(){return DS(this)};d.S3=function(a){var b=this.p;a=a.p;var c=Rl().ob;ff(b,c,a);return this};d.AAa=function(a){this.p=a;this.na=ju().na;return this};d.cp=function(){return MS(this)};d.Wl=function(){return LS(this)};d.PT=function(){return(new yA).Lv(B(this.p.g,ZA().ob))};d.nw=function(){return this.PT()};d.kw=function(a){return GK(this,a)};d.Xo=function(a){return NS(this,a)};d.$o=function(a){return CS(this,a)};d.Nm=function(){return KS(this)};d.bc=function(){return Eo(this)};
d.bp=function(a){return ES(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Nn=function(){return HS(this)};d.dp=function(){return GS(this)};dB.prototype.annotations=function(){return this.bc()};Object.defineProperty(dB.prototype,"sourceVendor",{get:function(){return this.Nn()},configurable:!0});dB.prototype.findByType=function(a){return this.Xo(a)};dB.prototype.findById=function(a){return this.Wo(a)};dB.prototype.withUsage=function(a){return this.bp(a)};
dB.prototype.withLocation=function(a){return this.$o(a)};dB.prototype.withRaw=function(a){return this.Mm(a)};dB.prototype.withReferences=function(a){return this.ap(a)};Object.defineProperty(dB.prototype,"modelVersion",{get:function(){return this.cp()},configurable:!0});Object.defineProperty(dB.prototype,"usage",{get:function(){return this.dp()},configurable:!0});Object.defineProperty(dB.prototype,"location",{get:function(){return this.Wl()},configurable:!0});
Object.defineProperty(dB.prototype,"raw",{get:function(){return this.Nm()},configurable:!0});dB.prototype.references=function(){return this.Yo()};Object.defineProperty(dB.prototype,"id",{get:function(){return this.hc()},configurable:!0});dB.prototype.withEncodes=function(a){if(acb(a))return this.S3(a);if(pPa(a))return this.kw(a);throw"No matching overload";};Object.defineProperty(dB.prototype,"encodes",{get:function(){return this.nw()},configurable:!0});
dB.prototype.$classData=q({dKa:0},!1,"amf.client.model.document.DialectInstanceFragment",{dKa:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1});function eB(){this.na=this.p=null}eB.prototype=new r;eB.prototype.constructor=eB;d=eB.prototype;d.a=function(){M();var a=(new N).a();eB.prototype.BAa.call(this,(new B5).P((new Q).a(),a));return this};d.Wo=function(a){return BS(this,a)};d.Mm=function(a){return JS(this,a)};d.ap=function(a){return FS(this,a)};d.BAa=function(a){this.p=a;this.na=ju().na;return this};d.Yo=function(){return DS(this)};
d.cp=function(){return MS(this)};d.Wl=function(){return LS(this)};d.St=function(a){return FK(this,a)};d.Xo=function(a){return NS(this,a)};d.$o=function(a){return CS(this,a)};d.Nm=function(){return KS(this)};d.bc=function(){return Eo(this)};d.bp=function(a){return ES(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Ut=function(){return EK(this)};d.Rt=function(a){return DK(this,a)};d.Nn=function(){return HS(this)};d.dp=function(){return GS(this)};eB.prototype.annotations=function(){return this.bc()};
Object.defineProperty(eB.prototype,"sourceVendor",{get:function(){return this.Nn()},configurable:!0});eB.prototype.findByType=function(a){return this.Xo(a)};eB.prototype.findById=function(a){return this.Wo(a)};eB.prototype.withUsage=function(a){return this.bp(a)};eB.prototype.withLocation=function(a){return this.$o(a)};eB.prototype.withRaw=function(a){return this.Mm(a)};eB.prototype.withReferences=function(a){return this.ap(a)};
Object.defineProperty(eB.prototype,"modelVersion",{get:function(){return this.cp()},configurable:!0});Object.defineProperty(eB.prototype,"usage",{get:function(){return this.dp()},configurable:!0});Object.defineProperty(eB.prototype,"location",{get:function(){return this.Wl()},configurable:!0});Object.defineProperty(eB.prototype,"raw",{get:function(){return this.Nm()},configurable:!0});eB.prototype.references=function(){return this.Yo()};
Object.defineProperty(eB.prototype,"id",{get:function(){return this.hc()},configurable:!0});eB.prototype.withDeclares=function(a){return this.St(a)};eB.prototype.withDeclaredElement=function(a){return this.Rt(a)};Object.defineProperty(eB.prototype,"declares",{get:function(){return this.Ut()},configurable:!0});eB.prototype.$classData=q({eKa:0},!1,"amf.client.model.document.DialectInstanceLibrary",{eKa:1,f:1,hp:1,Id:1,xd:1,Fb:1,CD:1});function YA(){this.na=this.p=null}YA.prototype=new r;
YA.prototype.constructor=YA;d=YA.prototype;d.a=function(){M();var a=(new N).a();YA.prototype.V0.call(this,(new nN).P((new Q).a(),a));return this};d.Wo=function(a){return BS(this,a)};d.Mm=function(a){return JS(this,a)};d.ap=function(a){return FS(this,a)};d.Yo=function(){return DS(this)};d.cp=function(){return MS(this)};d.Wl=function(){return LS(this)};d.St=function(a){return FK(this,a)};d.Xo=function(a){return NS(this,a)};d.V0=function(a){this.p=a;this.na=ju().na;return this};
d.$o=function(a){return CS(this,a)};d.Nm=function(){return KS(this)};d.bc=function(){return Eo(this)};d.bp=function(a){return ES(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Ut=function(){return EK(this)};d.Rt=function(a){return DK(this,a)};d.Nn=function(){return HS(this)};d.dp=function(){return GS(this)};YA.prototype.annotations=function(){return this.bc()};Object.defineProperty(YA.prototype,"sourceVendor",{get:function(){return this.Nn()},configurable:!0});
YA.prototype.findByType=function(a){return this.Xo(a)};YA.prototype.findById=function(a){return this.Wo(a)};YA.prototype.withUsage=function(a){return this.bp(a)};YA.prototype.withLocation=function(a){return this.$o(a)};YA.prototype.withRaw=function(a){return this.Mm(a)};YA.prototype.withReferences=function(a){return this.ap(a)};Object.defineProperty(YA.prototype,"modelVersion",{get:function(){return this.cp()},configurable:!0});
Object.defineProperty(YA.prototype,"usage",{get:function(){return this.dp()},configurable:!0});Object.defineProperty(YA.prototype,"location",{get:function(){return this.Wl()},configurable:!0});Object.defineProperty(YA.prototype,"raw",{get:function(){return this.Nm()},configurable:!0});YA.prototype.references=function(){return this.Yo()};Object.defineProperty(YA.prototype,"id",{get:function(){return this.hc()},configurable:!0});YA.prototype.withDeclares=function(a){return this.St(a)};
YA.prototype.withDeclaredElement=function(a){return this.Rt(a)};Object.defineProperty(YA.prototype,"declares",{get:function(){return this.Ut()},configurable:!0});YA.prototype.$classData=q({gKa:0},!1,"amf.client.model.document.DialectLibrary",{gKa:1,f:1,hp:1,Id:1,xd:1,Fb:1,CD:1});function Tl(){this.na=this.p=null}Tl.prototype=new r;Tl.prototype.constructor=Tl;function C5(){}d=C5.prototype=Tl.prototype;d.Wo=function(a){return BS(this,a)};d.ap=function(a){return FS(this,a)};
d.Mm=function(a){return JS(this,a)};d.Yo=function(){return DS(this)};d.cp=function(){return MS(this)};d.Wl=function(){return LS(this)};d.nw=function(){return SCa(this)};d.fC=function(a){this.p=a;this.na=ju().na;return this};d.kw=function(a){return GK(this,a)};d.Xo=function(a){return NS(this,a)};d.$o=function(a){return CS(this,a)};d.Nm=function(){return KS(this)};d.bc=function(){return Eo(this)};d.bp=function(a){return ES(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};
d.Nn=function(){return HS(this)};d.dp=function(){return GS(this)};Tl.prototype.annotations=function(){return this.bc()};Object.defineProperty(Tl.prototype,"sourceVendor",{get:function(){return this.Nn()},configurable:!0});Tl.prototype.findByType=function(a){return this.Xo(a)};Tl.prototype.findById=function(a){return this.Wo(a)};Tl.prototype.withUsage=function(a){return this.bp(a)};Tl.prototype.withLocation=function(a){return this.$o(a)};Tl.prototype.withRaw=function(a){return this.Mm(a)};
Tl.prototype.withReferences=function(a){return this.ap(a)};Object.defineProperty(Tl.prototype,"modelVersion",{get:function(){return this.cp()},configurable:!0});Object.defineProperty(Tl.prototype,"usage",{get:function(){return this.dp()},configurable:!0});Object.defineProperty(Tl.prototype,"location",{get:function(){return this.Wl()},configurable:!0});Object.defineProperty(Tl.prototype,"raw",{get:function(){return this.Nm()},configurable:!0});Tl.prototype.references=function(){return this.Yo()};
Object.defineProperty(Tl.prototype,"id",{get:function(){return this.hc()},configurable:!0});Tl.prototype.withEncodes=function(a){return this.kw(a)};Object.defineProperty(Tl.prototype,"encodes",{get:function(){return this.nw()},configurable:!0});Tl.prototype.$classData=q({qB:0},!1,"amf.client.model.document.Fragment",{qB:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1});function SA(){this.na=this.p=null}SA.prototype=new r;SA.prototype.constructor=SA;d=SA.prototype;d.W0=function(a){this.p=a;this.na=ju().na;return this};
d.a=function(){M();var a=(new N).a();SA.prototype.W0.call(this,(new VM).P((new Q).a(),a));return this};d.Xf=function(){lM();var a=B(this.p.g,wd().$);lM().wb();return Gb(a)};d.Mm=function(a){return JS(this,a)};d.Wo=function(a){return BS(this,a)};d.ap=function(a){return FS(this,a)};d.Ie=function(){return this.Xf()};d.Yo=function(){return DS(this)};d.cp=function(){return MS(this)};d.Wl=function(){return LS(this)};d.O3=function(a){var b=this.p,c=wd().uh;Eb(b,c,a);return this};d.B4=function(){return this.y$()};
d.St=function(a){return FK(this,a)};d.yj=function(){lM();var a=B(this.p.g,Ap().Ud);lM().wb();return Gb(a)};d.Xo=function(a){return NS(this,a)};d.$o=function(a){return CS(this,a)};d.Nm=function(){return KS(this)};d.y$=function(){lM();var a=B(this.p.g,wd().uh);lM().wb();return Gb(a)};d.bc=function(){return Eo(this)};d.bp=function(a){return ES(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Rh=function(){return this.yj()};
d.yI=function(a){var b=this.p,c=lM(),e=z5();a=ml(nl(new ol,c,a,e));c=ge().ch;qf(b,c,a);return this};d.Ut=function(){return EK(this)};d.xe=function(a){var b=this.p,c=wd().$;Eb(b,c,a);return this};d.Rt=function(a){return DK(this,a)};d.Nn=function(){return HS(this)};d.dp=function(){return GS(this)};d.FI=function(){return this.qK()};d.qK=function(){var a=lM(),b=xd(this.p),c=z5();return Il(a,b,c).sb()};SA.prototype.annotations=function(){return this.bc()};
Object.defineProperty(SA.prototype,"sourceVendor",{get:function(){return this.Nn()},configurable:!0});SA.prototype.findByType=function(a){return this.Xo(a)};SA.prototype.findById=function(a){return this.Wo(a)};SA.prototype.withUsage=function(a){return this.bp(a)};SA.prototype.withLocation=function(a){return this.$o(a)};SA.prototype.withRaw=function(a){return this.Mm(a)};SA.prototype.withReferences=function(a){return this.ap(a)};
Object.defineProperty(SA.prototype,"modelVersion",{get:function(){return this.cp()},configurable:!0});Object.defineProperty(SA.prototype,"usage",{get:function(){return this.dp()},configurable:!0});Object.defineProperty(SA.prototype,"location",{get:function(){return this.Wl()},configurable:!0});Object.defineProperty(SA.prototype,"raw",{get:function(){return this.Nm()},configurable:!0});SA.prototype.references=function(){return this.Yo()};
Object.defineProperty(SA.prototype,"id",{get:function(){return this.hc()},configurable:!0});SA.prototype.withDeclares=function(a){return this.St(a)};SA.prototype.withDeclaredElement=function(a){return this.Rt(a)};Object.defineProperty(SA.prototype,"declares",{get:function(){return this.Ut()},configurable:!0});
SA.prototype.classTerms=function(){var a=lM(),b=B(this.p.g,wd().Mc),c=(new bcb).nU(this),e=z(),b=b.$b(c,e.s),c=lM();if(null===lM().QX&&null===lM().QX){var e=lM(),f=new uZ;if(null===c)throw Lb(Mb(),null);f.l=c;e.QX=f}c=lM().QX;return Il(a,b,c).sb()};SA.prototype.datatypePropertyTerms=function(){var a=lM(),b=B(this.p.g,wd().Mc),c=(new ccb).nU(this),e=z(),b=b.$b(c,e.s),c=lM();if(null===lM().SX&&null===lM().SX){var e=lM(),f=new IZ;if(null===c)throw Lb(Mb(),null);f.l=c;e.SX=f}c=lM().SX;return Il(a,b,c).sb()};
SA.prototype.objectPropertyTerms=function(){var a=lM(),b=B(this.p.g,wd().Mc),c=(new dcb).nU(this),e=z(),b=b.$b(c,e.s),c=lM();if(null===lM().lZ&&null===lM().lZ){var e=lM(),f=new a_;if(null===c)throw Lb(Mb(),null);f.l=c;e.lZ=f}c=lM().lZ;return Il(a,b,c).sb()};SA.prototype.withImports=function(a){var b=this.p,c=lM(),e=ecb();a=ml(nl(new ol,c,a,e));c=wd().BD;qf(b,c,a);return this};SA.prototype.withExternals=function(a){return this.yI(a)};SA.prototype.withBase=function(a){return this.O3(a)};
SA.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(SA.prototype,"externals",{get:function(){return this.FI()},configurable:!0});Object.defineProperty(SA.prototype,"imports",{get:function(){var a=lM(),b=B(this.p.g,wd().BD),c=ecb();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(SA.prototype,"base",{get:function(){return this.B4()},configurable:!0});Object.defineProperty(SA.prototype,"description",{get:function(){return this.Rh()},configurable:!0});
Object.defineProperty(SA.prototype,"name",{get:function(){return this.Ie()},configurable:!0});SA.prototype.$classData=q({hKa:0},!1,"amf.client.model.document.Vocabulary",{hKa:1,f:1,hp:1,Id:1,xd:1,Fb:1,CD:1});function bcb(){}bcb.prototype=new oZ;bcb.prototype.constructor=bcb;d=bcb.prototype;d.Ag=function(a,b){return AA(a)?a:b.R(a)};d.Bg=function(a){return AA(a)};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};d.nU=function(){return this};
d.$classData=q({iKa:0},!1,"amf.client.model.document.Vocabulary$$anonfun$classTerms$1",{iKa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function ccb(){}ccb.prototype=new oZ;ccb.prototype.constructor=ccb;d=ccb.prototype;d.Ag=function(a,b){return Jqa(a)?a:b.R(a)};d.Bg=function(a){return Jqa(a)};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};d.nU=function(){return this};
d.$classData=q({jKa:0},!1,"amf.client.model.document.Vocabulary$$anonfun$datatypePropertyTerms$1",{jKa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function dcb(){}dcb.prototype=new oZ;dcb.prototype.constructor=dcb;d=dcb.prototype;d.Ag=function(a,b){return Hqa(a)?a:b.R(a)};d.Bg=function(a){return Hqa(a)};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};d.nU=function(){return this};
d.$classData=q({kKa:0},!1,"amf.client.model.document.Vocabulary$$anonfun$objectPropertyTerms$1",{kKa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function fcb(){}fcb.prototype=new oZ;fcb.prototype.constructor=fcb;d=fcb.prototype;d.Wf=function(a){return xA(a)};d.Sf=function(a,b){return xA(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};d.$classData=q({lKa:0},!1,"amf.client.model.domain.DialectDomainElement$$anonfun$1",{lKa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});
function gcb(a){Ab();a=B(a.qg().ca(),Pg().$);Ab().wb();return Gb(a)}function hcb(a,b){var c=a.qg();M();var e=(new N).a();Ue(c,b,e);return a}function icb(a){Ab();a=B(a.qg().ca(),Pg().ki);return AS(Ab().wj(),a)}function jcb(a,b){var c=a.qg(),e=Pg().gd;Eb(c,e,b);return a}function kcb(a){Ab();a=B(a.qg().ca(),Pg().vh);return nm(Ab().tq(),a)}function lcb(a,b){var c=a.qg(),e=Ab(),f=Ab().wj();b=ml(nl(new ol,e,b,f));e=Pg().ld;qf(c,e,b);return a}
function mcb(a){var b=Ab();a=B(a.qg().ca(),Pg().Vh);var c=Ab().wj();return Il(b,a,c).sb()}function ncb(a){Ab();a=B(a.qg().ca(),Pg().fb);Ab().wb();return Gb(a)}function ocb(a){var b=Ab();a=B(a.qg().ca(),Pg().ld);var c=Ab().wj();return Il(b,a,c).sb()}function pcb(a,b){var c=a.qg(),e=Ab(),f=Ab().wj();b=ml(nl(new ol,e,b,f));e=Pg().Th;qf(c,e,b);return a}function qcb(a,b){var c=a.qg(),e=Ab(),f=Ab().wj();b=ml(nl(new ol,e,b,f));e=Pg().Xh;qf(c,e,b);return a}
function rcb(a){var b=Ab();a=B(a.qg().ca(),lA());var c=scb();return Il(b,a,c).sb()}function tcb(a,b){var c=a.qg(),e=Pg().Jj;Eb(c,e,b);return a}function ucb(a,b){var c=a.qg();Ab();Ab().wj();b=b.qg();var e=Pg().ki;ff(c,e,b);return a}function vcb(a){var b=Ab();a=B(a.qg().ca(),Pg().Kg);var c=Ab().tq();return Il(b,a,c).sb()}function wcb(a,b){Ab();a=qna(a.qg(),b);return A_a(Ab().FB(),a)}function xcb(a,b){var c=a.qg(),e=Ab(),f=scb();b=ml(nl(new ol,e,b,f));e=lA();qf(c,e,b);return a}
function ycb(a,b){var c=a.qg(),e=Pg().fb;Eb(c,e,b);return a}function zcb(a){var b=Ab();a=B(a.qg().ca(),$w());var c=Ab().FB();return Il(b,a,c).sb()}function Acb(a){Ab();a=B(a.qg().ca(),Pg().Jj);Ab().wb();return Gb(a)}function Bcb(a){var b=Ab();a=B(a.qg().ca(),Pg().Xh);var c=Ab().wj();return Il(b,a,c).sb()}function Ccb(a,b){var c=a.qg(),e=Ab(),f=Ab().wj();b=ml(nl(new ol,e,b,f));e=Pg().Vh;qf(c,e,b);return a}function Dcb(a){Ab();a=B(a.qg().ca(),Pg().gd);Ab().wb();return Gb(a)}
function Ecb(a,b){var c=a.qg(),e=Ab(),f=Ab().FB();b=ml(nl(new ol,e,b,f));e=$w();qf(c,e,b);return a}function Fcb(a,b){var c=a.qg();Ab();Ab().tq();b=b.p;var e=Pg().vh;ff(c,e,b);return a}function Gcb(a){var b=Ab();a=B(a.qg().ca(),Pg().Th);var c=Ab().wj();return Il(b,a,c).sb()}function Hcb(a,b){var c=a.qg(),e=Ab(),f=Ab().tq();b=ml(nl(new ol,e,b,f));e=Pg().Kg;qf(c,e,b);return a}function EL(){this.Xp=null}EL.prototype=new r;EL.prototype.constructor=EL;d=EL.prototype;d.WG=function(a){this.Xp=a;return this};
d.L=function(){return"DomainExtensionAnnotation"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(y5(a)){var b=this.Xp;a=a.Xp;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Xp;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function y5(a){return!!(a&&a.$classData&&a.$classData.v.qja)}
var Icb=q({qja:0},!1,"amf.core.annotations.DomainExtensionAnnotation",{qja:1,f:1,lf:1,A:1,w:1,q:1,n:1});EL.prototype.$classData=Icb;function Qt(){}Qt.prototype=new r;Qt.prototype.constructor=Qt;d=Qt.prototype;d.a=function(){return this};d.L=function(){return"ErrorRegistered"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.rja)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
var Qja=q({rja:0},!1,"amf.core.annotations.ErrorRegistered",{rja:1,f:1,lf:1,A:1,w:1,q:1,n:1});Qt.prototype.$classData=Qja;function Xi(){}Xi.prototype=new r;Xi.prototype.constructor=Xi;d=Xi.prototype;d.a=function(){return this};d.L=function(){return"ExplicitField"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.sja)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
var p3=q({sja:0},!1,"amf.core.annotations.ExplicitField",{sja:1,f:1,lf:1,A:1,w:1,q:1,n:1});Xi.prototype.$classData=p3;function Cr(){this.oj=null}Cr.prototype=new r;Cr.prototype.constructor=Cr;d=Cr.prototype;d.L=function(){return"ScalarType"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Dja?this.oj===a.oj:!1};d.K=function(a){switch(a){case 0:return this.oj;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.e=function(a){this.oj=a;return this};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};var e4a=q({Dja:0},!1,"amf.core.annotations.ScalarType",{Dja:1,f:1,lf:1,A:1,w:1,q:1,n:1});Cr.prototype.$classData=e4a;function D5(){this.Lc=null}D5.prototype=new r;D5.prototype.constructor=D5;d=D5.prototype;d.L=function(){return"SourceAST"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(p0a(a)){var b=this.Lc;a=a.Lc;return null===b?null===a:b.h(a)}return!1};function oia(a){var b=new D5;b.Lc=a;return b}
d.K=function(a){switch(a){case 0:return this.Lc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function p0a(a){return!!(a&&a.$classData&&a.$classData.v.Fja)}var Lt=q({Fja:0},!1,"amf.core.annotations.SourceAST",{Fja:1,f:1,lf:1,A:1,w:1,q:1,n:1});D5.prototype.$classData=Lt;function Jr(){this.Ea=null}Jr.prototype=new r;Jr.prototype.constructor=Jr;d=Jr.prototype;d.L=function(){return"SourceNode"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.f7?Yj(this.Ea,a.Ea):!1};d.K=function(a){switch(a){case 0:return this.Ea;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.PU=function(a){this.Ea=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({f7:0},!1,"amf.core.annotations.SourceNode",{f7:1,f:1,lf:1,A:1,w:1,q:1,n:1});function E5(){this.ja=this.k=null}E5.prototype=new r;E5.prototype.constructor=E5;function F5(){}
d=F5.prototype=E5.prototype;d.L=function(){return"Scalar"};d.H=function(){return 1};d.h=function(a){return this===a?!0:tz(a)?this.k===a.k:!1};d.K=function(a){switch(a){case 0:return this.k;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.e=function(a){this.k=a;Di();var b=C().mj;a=(new J).aa([D(new F,b,a)]);b=Di().s;this.ja=Ei(a,b);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.ec=function(){return this.ja};
function tz(a){return!!(a&&a.$classData&&a.$classData.v.Yx)}function G5(a){var b=C().Zd,b=D(new F,b,"Document"),c=C().Zd,c=D(new F,c,"Fragment"),e=C().Zd,e=D(new F,e,"Module"),f=Ap().ja;a.SD(oz(new pz,b,oz(new pz,c,oz(new pz,e,f))));b=a.ob;c=a.Mc;e=Ap().g;a.RD(oz(new pz,b,oz(new pz,c,e)))}function Jcb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Aa=this.ja=this.g=null}Jcb.prototype=new r;Jcb.prototype.constructor=Jcb;d=Jcb.prototype;
d.a=function(){Kcb=this;Iq(this);bT(this);H0(this);this.g=Rl().g;Di();var a=C().Zd,a=(new J).aa([D(new F,a,"ExternalFragment")]),b=Di().s,a=Ei(a,b),b=Rl().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().dg,"External Fragment","Fragment encoding an external entity",G());return this};d.Yc=function(){};d.yn=function(a){this.ug=a};d.Bn=function(a){this.qc=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.An=function(a){this.jg=a};
d.Zc=function(){M();var a=(new N).a();return(new zp).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.Qp=function(a){this.ob=a};d.zn=function(a){this.nc=a};d.$classData=q({qMa:0},!1,"amf.core.metamodel.document.ExternalFragmentModel$",{qMa:1,f:1,xq:1,tn:1,Oc:1,ic:1,Xc:1});var Kcb=void 0;function Wea(){Kcb||(Kcb=(new Jcb).a());return Kcb}function Lcb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Aa=this.g=this.ja=null}Lcb.prototype=new r;
Lcb.prototype.constructor=Lcb;d=Lcb.prototype;d.a=function(){Mcb=this;Iq(this);bT(this);H0(this);Di();var a=C().Zd,a=(new J).aa([D(new F,a,"Fragment")]),b=Di().s,a=Ei(a,b),b=Ap().ja,c=Di();this.ja=a.la(b,c.s);a=this.ob;b=Ap().g;this.g=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().dg,"Fragment","A Fragment is a parsing Unit that encodes a DomainElement",G());return this};d.Bn=function(a){this.qc=a};d.yn=function(a){this.ug=a};d.Yc=function(){};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};
d.An=function(a){this.jg=a};d.Zc=function(){return e0a()};d.Qp=function(a){this.ob=a};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.zn=function(a){this.nc=a};d.$classData=q({rMa:0},!1,"amf.core.metamodel.document.FragmentModel$",{rMa:1,f:1,xq:1,tn:1,Oc:1,ic:1,Xc:1});var Mcb=void 0;function Rl(){Mcb||(Mcb=(new Lcb).a());return Mcb}function Ncb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.Mc=this.Aa=this.g=this.ja=null}Ncb.prototype=new r;Ncb.prototype.constructor=Ncb;d=Ncb.prototype;
d.a=function(){Ocb=this;Iq(this);bT(this);I0(this);Di();var a=C().Zd,a=(new J).aa([D(new F,a,"Module")]),b=Di().s,a=Ei(a,b),b=Ap().ja,c=Di();this.ja=a.la(b,c.s);a=this.Mc;b=Ap().g;this.g=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().dg,"Module","A Module is a parsing Unit that declares DomainElements that can be referenced from the DomainElements in other parsing Units.\nIt main purpose is to expose the declared references so they can be re-used",G());return this};d.Bn=function(a){this.qc=a};
d.yn=function(a){this.ug=a};d.Yc=function(){};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.An=function(a){this.jg=a};d.gy=function(a){this.Mc=a};d.Zc=function(){M();var a=(new N).a();return(new mh).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.zn=function(a){this.nc=a};d.$classData=q({sMa:0},!1,"amf.core.metamodel.document.ModuleModel$",{sMa:1,f:1,Az:1,tn:1,Oc:1,ic:1,Xc:1});var Ocb=void 0;function Ug(){Ocb||(Ocb=(new Ncb).a());return Ocb}
function Pcb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Aa=this.ja=this.g=this.Md=null}Pcb.prototype=new r;Pcb.prototype.constructor=Pcb;d=Pcb.prototype;
d.a=function(){Qcb=this;Iq(this);bT(this);H0(this);var a=Pb(),b=C().dc;this.Md=Rb(new Sb,a,D(new F,b,"mediaType"),Tb(new Ub,Vb().dc,"mediaType","HTTP Media type associated to the encoded fragment information",G()));var a=this.ob,b=this.Md,c=Ap().g;this.g=oz(new pz,a,oz(new pz,b,c));Di();a=C().bb;a=(new J).aa([D(new F,a,"PayloadFragment")]);b=Di().s;a=Ei(a,b);b=Rl().ja;c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().bb,"Payload Fragment","Fragment encoding HTTP payload information",G());return this};
d.Bn=function(a){this.qc=a};d.yn=function(a){this.ug=a};d.Yc=function(){};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.An=function(a){this.jg=a};d.Zc=function(){return e0a()};d.Qp=function(a){this.ob=a};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.zn=function(a){this.nc=a};d.$classData=q({tMa:0},!1,"amf.core.metamodel.document.PayloadFragmentModel$",{tMa:1,f:1,xq:1,tn:1,Oc:1,ic:1,Xc:1});var Qcb=void 0;function Dm(){Qcb||(Qcb=(new Pcb).a());return Qcb}
function Rcb(){this.ke=this.Hb=this.Jc=this.$=this.Aa=this.ja=this.g=null;this.ma=0}Rcb.prototype=new r;Rcb.prototype.constructor=Rcb;d=Rcb.prototype;d.a=function(){Scb=this;Iq(this);cT(this);Wb(this);Di();var a=(new J).aa([this.$]),b=Di().s,a=Ei(a,b),b=Lc().g,c=Di();this.g=a.la(b,c.s);a=C().zg;a=D(new F,a,"Node");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().zg,"Data Node","Base class for all data nodes parsed from the data structure",G());return this};d.Ce=function(a){this.Hb=a};
d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.GA=function(){throw Lb(Mb(),(new Nb).e("DataNode is an abstract class and it cannot be instantiated directly"));};d.Zc=function(){this.GA()};d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};d.$classData=q({wMa:0},!1,"amf.core.metamodel.domain.DataNodeModel$",{wMa:1,f:1,se:1,Oc:1,ic:1,Xc:1,yq:1});var Scb=void 0;function lm(){Scb||(Scb=(new Rcb).a());return Scb}
function Tcb(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=null;this.ma=0}Tcb.prototype=new r;Tcb.prototype.constructor=Tcb;d=Tcb.prototype;d.a=function(){Ucb=this;Iq(this);cT(this);j0a(this);return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return lm().g};d.Txa=function(a){this.Aa=a};d.Uxa=function(a){this.ja=a};d.Zc=function(){xr();M();var a=(new N).a();return(new kA).P((new Q).a(),a)};d.ec=function(){return this.ja};
d.$classData=q({FMa:0},!1,"amf.core.metamodel.domain.ObjectNodeModel$",{FMa:1,f:1,EMa:1,se:1,Oc:1,ic:1,Xc:1});var Ucb=void 0;function Zea(){Ucb||(Ucb=(new Tcb).a());return Ucb}function Vcb(a){Di();a=(new J).aa([a.$,a.ef,a.lj]);var b=Di().s;a=Ei(a,b);var b=Lc().g,c=Di();return a.la(b,c.s)}
function Wcb(a){var b=VN(),c=C().Zd;a.Y9(Rb(new Sb,b,D(new F,c,"target"),Tb(new Ub,Vb().dg,"target","Target node for the parameter",G())));b=(new Ki).Ld(om());c=C().Zd;a.Z9(Rb(new Sb,b,D(new F,c,"variable"),Tb(new Ub,Vb().dg,"variable","Variables to be replaced in the graph template introduced by an AbstractDeclaration",G())));a.$9(a.$)}function l0a(){this.xK=null}l0a.prototype=new oZ;l0a.prototype.constructor=l0a;d=l0a.prototype;d.Wf=function(a){return Yl(a)&&a.k===this.xK?!0:!1};
d.Sf=function(a,b){return Yl(a)&&a.k===this.xK?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};d.$classData=q({VMa:0},!1,"amf.core.model.document.BaseUnit$$anonfun$findById$1",{VMa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Xcb(){this.Mda=null}Xcb.prototype=new oZ;Xcb.prototype.constructor=Xcb;function m0a(a){var b=new Xcb;b.Mda=a;return b}d=Xcb.prototype;d.Wf=function(a){return Yl(a)&&this.Mda.R(a)?!0:!1};d.Sf=function(a,b){return Yl(a)&&this.Mda.R(a)?a:b.R(a)};
d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};d.$classData=q({WMa:0},!1,"amf.core.model.document.BaseUnit$$anonfun$findByType$3",{WMa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function eL(){}eL.prototype=new oZ;eL.prototype.constructor=eL;eL.prototype.a=function(){return this};eL.prototype.Xa=function(a){a=a.xc;var b=Nl().qc;return!(null===a?null===b:a.h(b))};eL.prototype.Za=function(a,b){var c=a.xc,e=Nl().qc;return(null===c?null===e:c.h(e))?b.R(a):a.t.t};
eL.prototype.$classData=q({$Ma:0},!1,"amf.core.model.document.FieldsFilter$Local$$anonfun$filter$1",{$Ma:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Sl(a){return!!(a&&a.$classData&&a.$classData.v.vB)}function hr(){this.E=this.Tb=null}hr.prototype=new r;hr.prototype.constructor=hr;d=hr.prototype;d.L=function(){return"AmfArray"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(es(a)){var b=this.Tb,c=a.Tb;return(null===b?null===c:b.h(c))?this.E===a.E:!1}return!1};
d.K=function(a){switch(a){case 0:return this.Tb;case 1:return this.E;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Yb=function(){return Yb(this)};function gr(a,b,c){a.Tb=b;a.E=c;return a}d.y=function(){return Y(this)};function Iw(a){a=a.Tb;var b;b=new Ycb;var c=z();return a.$b(b,c.s)}d.M=function(){return Z(this)};function es(a){return!!(a&&a.$classData&&a.$classData.v.lka)}
d.$classData=q({lka:0},!1,"amf.core.model.domain.AmfArray",{lka:1,f:1,Rc:1,A:1,w:1,q:1,n:1});function Ycb(){}Ycb.prototype=new oZ;Ycb.prototype.constructor=Ycb;d=Ycb.prototype;d.Wf=function(a){return sj(a)};d.Sf=function(a,b){return sj(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};d.$classData=q({dNa:0},!1,"amf.core.model.domain.AmfArray$$anonfun$scalars$1",{dNa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Zcb(){this.qM=null}Zcb.prototype=new oZ;
Zcb.prototype.constructor=Zcb;d=Zcb.prototype;d.Un=function(a,b){return mB(a)&&a.Fs.Ja(this.qM)?a:b.R(a)};d.DK=function(a,b){this.qM=b;return this};d.Xa=function(a){return this.jo(a)};d.Za=function(a,b){return this.Un(a,b)};d.jo=function(a){return mB(a)&&a.Fs.Ja(this.qM)?!0:!1};d.$classData=q({eNa:0},!1,"amf.core.model.domain.AmfElement$$anonfun$isTrackedBy$1",{eNa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Oh(){this.E=this.t=null}Oh.prototype=new r;Oh.prototype.constructor=Oh;
function $cb(a){a=Wa().Ia(a.t);if(a.b())return w();a=a.c();Lo(a)&&(a=(new ph).e(a),a=rC(wa(),a.ia));return(new A).d(a)}d=Oh.prototype;d.L=function(){return"AmfScalar"};d.H=function(){return 2};function tj(a){a=$cb(a);if(x(a)){var b=a.i;if(null!==b)return b}if(w()===a)throw Lb(Mb(),(new Nb).e("Cannot transform null value into Number"));throw(new v).d(a);}d.h=function(a){return sj(a)?pa(this.t,a.t):!1};
d.K=function(a){switch(a){case 0:return this.t;case 1:return this.E;default:throw(new X).e(""+a);}};d.ha=function(){return this.E};d.u=function(){var a=Wa().Ia(this.t);if(x(a))return ja(a.i);if(w()===a)return"";throw(new v).d(a);};function Nh(a,b,c){a.t=b;a.E=c;return a}d.Yb=function(){return Yb(this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function Cj(a){var b=!1,c=null;a=Wa().Ia(a.t);if(x(a)&&(b=!0,c=a,a=c.i,Lo(a)))return b=(new ph).e(a),HL(b.ia);if(b&&(a=c.i,ub(vb(),!0,a)))return!0;if(b&&(b=c.i,ub(vb(),!1,b)))return!1;throw Lb(Mb(),(new Nb).e("Cannot transform scalar value into Boolean"));}function sj(a){return!!(a&&a.$classData&&a.$classData.v.mka)}d.$classData=q({mka:0},!1,"amf.core.model.domain.AmfScalar",{mka:1,f:1,Rc:1,A:1,w:1,q:1,n:1});function adb(){}adb.prototype=new oZ;adb.prototype.constructor=adb;d=adb.prototype;
d.XD=function(a,b){var c=is(js(),a);return!c.b()&&(c=c.c().pa(),mm(c))?c:b.R(a)};d.xE=function(){return this};d.ME=function(a){a=is(js(),a);return!a.b()&&(a=a.c().pa(),mm(a))?!0:!1};d.Xa=function(a){return this.ME(a)};d.Za=function(a,b){return this.XD(a,b)};d.$classData=q({kNa:0},!1,"amf.core.model.domain.ObjectNode$$anonfun$getFromKey$1",{kNa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function C3a(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=null;this.ma=0;this.l=null}C3a.prototype=new r;
C3a.prototype.constructor=C3a;d=C3a.prototype;d.xE=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;Iq(this);cT(this);j0a(this);a=C().zg;a=D(new F,a,"Object");var b=lm().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().zg,"Object Node","Node that represents a dynamic object with records data structure",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){var a=sr(this.l).wa(),b=lm().g,c=Di();return a.la(b,c.s)};d.Txa=function(){};
d.Zc=function(){xr();M();var a=(new N).a();return(new kA).P((new Q).a(),a)};d.Uxa=function(){};d.ec=function(){return this.ja};d.$classData=q({lNa:0},!1,"amf.core.model.domain.ObjectNode$ObjectNodeDynamicModel",{lNa:1,f:1,EMa:1,se:1,Oc:1,ic:1,Xc:1});function H5(){this.g=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}H5.prototype=new r;H5.prototype.constructor=H5;function bdb(){}d=bdb.prototype=H5.prototype;d.Ub=function(){return H(z(),G())};
d.Zu=function(a){this.Nk=a};d.Qb=function(a){return cj(this,a)};d.es=function(){};d.It=function(a){this.Zi=a};d.Uc=function(a){return Te(this,a)};d.Mq=function(){return H(z(),G())};d.lu=function(a){this.Zg=a};d.Nt=function(){return this.Zg};d.Nd=function(){var a=B(this.ca(),VN().$).G,a=a.b()?"default-abstract":a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};d.Hu=function(){};d.jA=function(){return B(this.g,VN().tD)};d.Is=function(a,b,c,e){return fL(this,a,b,c,e)};
d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.gk=function(a,b){return gL(this,a,b)};d.rI=function(){return B(this.g,VN().lj)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.Ht=function(a){this.Jk=a};d.Ch=function(){return VN().$};d.Up=function(a){return Px(this,a)};d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};d.Te=function(a){this.k=a};d.ku=function(a){this.zk=a};d.P=function(a){this.g=a;hL(this);return this};
function lia(){}lia.prototype=new oZ;lia.prototype.constructor=lia;d=lia.prototype;d.Un=function(a,b){return zPa(a)?a:b.R(a)};d.Xa=function(a){return this.jo(a)};d.Yp=function(){return this};d.Za=function(a,b){return this.Un(a,b)};d.jo=function(a){return zPa(a)};d.$classData=q({wNa:0},!1,"amf.core.parser.Annotations$$anonfun$eternals$1",{wNa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function kia(){}kia.prototype=new oZ;kia.prototype.constructor=kia;d=kia.prototype;
d.Un=function(a,b){return a&&a.$classData&&a.$classData.v.mh&&!zPa(a)?a:b.R(a)};d.Xa=function(a){return this.jo(a)};d.Yp=function(){return this};d.Za=function(a,b){return this.Un(a,b)};d.jo=function(a){return a&&a.$classData&&a.$classData.v.mh&&!zPa(a)?!0:!1};d.$classData=q({xNa:0},!1,"amf.core.parser.Annotations$$anonfun$serializables$1",{xNa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function tia(){}tia.prototype=new oZ;tia.prototype.constructor=tia;d=tia.prototype;d.Ag=function(a,b){return $l(a)?a:b.R(a)};
d.Bg=function(a){return $l(a)};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};d.$classData=q({zNa:0},!1,"amf.core.parser.Declarations$$anonfun$findAnnotation$2",{zNa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function I5(){this.yf=null}I5.prototype=new L3a;I5.prototype.constructor=I5;I5.prototype.a=function(){AM.prototype.a.call(this);return this};I5.prototype.$classData=q({DNa:0},!1,"amf.core.parser.EmptyReferenceCollector$",{DNa:1,o7:1,f:1,A:1,w:1,q:1,n:1});var cdb=void 0;
function RDa(){cdb||(cdb=(new I5).a());return cdb}function kT(){this.eg=this.Ne=0}kT.prototype=new r;kT.prototype.constructor=kT;function ddb(){}d=ddb.prototype=kT.prototype;d.L=function(){return"Position"};d.eE=function(a){var b=this.Ne-a.Ne|0;return 0===b?this.eg-a.eg|0:b};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.m7?this.Ne===a.Ne&&this.eg===a.eg:!1};
d.K=function(a){switch(a){case 0:return this.Ne;case 1:return this.eg;default:throw(new X).e(""+a);}};function H3a(a,b){return a.Ne<b.Ne||a.Ne===b.Ne&&a.eg<=b.eg?a:b}d.Zo=function(){return this.u()};d.zy=function(){var a=Gd();return this.h(a)};d.u=function(){return"("+this.Ne+","+this.eg+")"};d.Wn=function(a){return this.eE(a)};d.La=function(a,b){this.Ne=a;this.eg=b;return this};function I3a(a,b){return a.Ne>b.Ne||a.Ne===b.Ne&&a.eg>=b.eg?a:b}
d.y=function(){var a=-889275714,a=zI().Ga(a,this.Ne),a=zI().Ga(a,this.eg);return zI().Wd(a,2)};d.M=function(){return Z(this)};kT.prototype.toString=function(){return this.Zo()};Object.defineProperty(kT.prototype,"isZero",{get:function(){return this.zy()},configurable:!0});kT.prototype.compareTo=function(a){return this.eE(a)};kT.prototype.max=function(a){return I3a(this,a)};kT.prototype.min=function(a){return H3a(this,a)};kT.prototype.lt=function(a){return 0>this.eE(a)};
Object.defineProperty(kT.prototype,"column",{get:function(){return this.eg},configurable:!0});Object.defineProperty(kT.prototype,"line",{get:function(){return this.Ne},configurable:!0});kT.prototype.$classData=q({m7:0},!1,"amf.core.parser.Position",{m7:1,f:1,sh:1,A:1,w:1,q:1,n:1});function J5(){jT.call(this)}J5.prototype=new G3a;J5.prototype.constructor=J5;J5.prototype.a=function(){jT.prototype.wU.call(this,Gd(),Gd());return this};
J5.prototype.$classData=q({NNa:0},!1,"amf.core.parser.Range$NONE$",{NNa:1,n7:1,f:1,A:1,w:1,q:1,n:1});var edb=void 0;function iga(){edb||(edb=(new J5).a());return edb}function f1(){this.na=this.yf=this.Bf=null}f1.prototype=new r;f1.prototype.constructor=f1;d=f1.prototype;d.Di=function(a,b){this.Bf=a;this.yf=b;this.na=ju().na;return this};d.L=function(){return"Reference"};d.H=function(){return 2};function M3a(a,b,c,e){var f=a.yf;b=K3a(b,c,e);c=z();f=f.hg(b,c.s);return(new f1).Di(a.Bf,f)}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Nka&&this.Bf===a.Bf){var b=this.yf;a=a.yf;return null===b?null===a:b.h(a)}return!1};function fdb(a,b){wp(xp(),"AMFCompiler#parserReferences: Recursive reference "+b);var c=a.na,e=bb();return Hga(c,b,e).Lf(t(new u,function(a,b){return function(a){var c=(new gdb).P((new Q).a(),(M(),(new N).a())),c=Te(c,b),e=Ap().nc,c=Eb(c,e,b);a=a.Dx.u();yga(c,a);return c}}(a,b)),um())}
d.K=function(a){switch(a){case 0:return this.Bf;case 1:return this.yf;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function hdb(a,b,c,e,f,g){if(Ll(b))e.Ja(oL())&&e.Ja(qL())?f.X(t(new u,function(a,b,c){return function(a){var e=Bc().PR,f=c.k,g=w();Cc(b,e,f,g,"The !include tag must be avoided when referencing a library",a.ga)}}(a,g,b))):oL()!==c&&f.X(t(new u,function(a,b,c){return function(a){var e=Bc().PR,f=c.k,g=w();Cc(b,e,f,g,"Libraries must be applied by using 'uses'",a.ga)}}(a,g,b)));else{a:{for(e=b.rc().ec();!e.b();){var h=Gc(e.fa()),k=C().Kc.he;if(-1!==(h.indexOf(k)|0)){e=!0;break a}e=e.sa()}e=!1}e||oL()===
c&&f.X(t(new u,function(a,b,c){return function(a){var e=Bc().pY,f=c.k,g=w();Cc(b,e,f,g,"Fragments must be imported by using '!include'",a.ga)}}(a,g,b)))}}function Oga(a,b,c,e,f,g,h){var k=f.UH;if(x(k))return k.i.$T(jja(b,a.Bf)).ei(t(new u,function(a){return function(b){return hb(ib(),jb(function(a,b){return function(){return(new r2).fH(w(),(new A).d(b.wr))}}(a,b)),um())}}(a)),um()).qW(idb(a,b,c,e,f,g,h),um());if(w()===k)return jdb(a,b,c,e,f,g,h);throw(new v).d(k);}
function jdb(a,b,c,e,f,g,h){var k=a.yf,l=t(new u,function(){return function(a){return a.pP}}(a)),p=z(),k=k.ka(l,p.s).Ri(),l=1<k.lb()?ab():k.fa();try{return eb($a(),a.Bf,w(),w(),b,l,c,(new A).d(e),f,($a(),(new cb).a())).Lf(t(new u,function(a,b,c,e,f){return function(g){hdb(a,g,b,c,e,f);return hb(ib(),jb(function(a,b){return function(){return(new r2).fH(w(),(new A).d(b))}}(a,g)),um())}}(a,l,k,g,e)),um()).rW(kdb(a,h),um()).ei(t(new u,function(){return function(a){return a}}(a)),um())}catch(y){b=gi(Mb(),
y);if(null!==b)return hb(ib(),jb(function(a,b){return function(){return(new r2).fH((new A).d(b),w())}}(a,b)),um());throw y;}}d.y=function(){return Y(this)};d.M=function(){return Z(this)};function Rga(a){return a.yf.Cd(t(new u,function(){return function(a){a=a.pP;var c=JDa();return null!==a&&a===c}}(a)))}d.$classData=q({Nka:0},!1,"amf.core.parser.Reference",{Nka:1,f:1,Fb:1,A:1,w:1,q:1,n:1});function ldb(){this.Pa=null;this.N9=!1}ldb.prototype=new oZ;ldb.prototype.constructor=ldb;
function kdb(a,b){var c=new ldb;if(null===a)throw Lb(Mb(),null);c.Pa=a;c.N9=b;return c}d=ldb.prototype;d.yt=function(a){return Qga(a)&&this.N9||null!==a};d.pt=function(a,b){return Qga(a)&&this.N9?(a=Rs(a.mAa),fdb(this.Pa,a).Lf(t(new u,function(){return function(a){return(new r2).fH(w(),(new A).d(a))}}(this)),um())):null!==a?hb(ib(),jb(function(a,b){return function(){return(new r2).fH((new A).d(b),w())}}(this,a)),um()):b.R(a)};d.Xa=function(a){return this.yt(a)};
d.Za=function(a,b){return this.pt(a,b)};d.$classData=q({PNa:0},!1,"amf.core.parser.Reference$$anonfun$1",{PNa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function mdb(){this.QCa=this.Pza=this.eO=this.Jya=this.Dya=this.Pa=null;this.Pxa=!1}mdb.prototype=new oZ;mdb.prototype.constructor=mdb;d=mdb.prototype;d.yt=function(){return!0};d.pt=function(){return jdb(this.Pa,this.Dya,this.Jya,this.eO,this.Pza,this.QCa,this.Pxa)};
function idb(a,b,c,e,f,g,h){var k=new mdb;if(null===a)throw Lb(Mb(),null);k.Pa=a;k.Dya=b;k.Jya=c;k.eO=e;k.Pza=f;k.QCa=g;k.Pxa=h;return k}d.Xa=function(a){return this.yt(a)};d.Za=function(a,b){return this.pt(a,b)};d.$classData=q({QNa:0},!1,"amf.core.parser.Reference$$anonfun$resolve$3",{QNa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Wp(){this.Cv=this.Vd=null}Wp.prototype=new Eia;Wp.prototype.constructor=Wp;function Vp(a,b,c){a.Vd=b;a.Cv=c;return a}d=Wp.prototype;d.L=function(){return"SyamlParsedDocument"};
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(bd(a)&&Yj(this.Vd,a.Vd)){var b=this.Cv;a=a.Cv;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Vd;case 1:return this.Cv;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function bd(a){return!!(a&&a.$classData&&a.$classData.v.Qka)}
d.$classData=q({Qka:0},!1,"amf.core.parser.SyamlParsedDocument",{Qka:1,KNa:1,f:1,A:1,w:1,q:1,n:1});function oMa(){this.qP=this.t=null}oMa.prototype=new Oia;oMa.prototype.constructor=oMa;d=oMa.prototype;d.L=function(){return"Literal"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(GL(a)&&this.t===a.t){var b=this.qP;a=a.qP;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.t;case 1:return this.qP;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Sq=function(a,b){this.qP=b;ts.prototype.e.call(this,a);return this};function GL(a){return!!(a&&a.$classData&&a.$classData.v.Ska)}d.$classData=q({Ska:0},!1,"amf.core.rdf.Literal",{Ska:1,eOa:1,f:1,A:1,w:1,q:1,n:1});function kc(){this.ys=null}kc.prototype=new Eia;kc.prototype.constructor=kc;d=kc.prototype;d.L=function(){return"RdfModelDocument"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:A0a(a)?this.ys===a.ys:!1};d.K=function(a){switch(a){case 0:return this.ys;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.xU=function(a){this.ys=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function A0a(a){return!!(a&&a.$classData&&a.$classData.v.Uka)}d.$classData=q({Uka:0},!1,"amf.core.rdf.RdfModelDocument",{Uka:1,KNa:1,f:1,A:1,w:1,q:1,n:1});function b4a(){}b4a.prototype=new oZ;b4a.prototype.constructor=b4a;
d=b4a.prototype;d.Un=function(a,b){return y5(a)?a:b.R(a)};d.Xa=function(a){return this.jo(a)};d.Za=function(a,b){return this.Un(a,b)};d.jo=function(a){return y5(a)};d.$classData=q({gOa:0},!1,"amf.core.rdf.RdfModelEmitter$Emitter$$anonfun$$nestedInanonfun$createCustomExtensions$3$1",{gOa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function aEa(){}aEa.prototype=new oZ;aEa.prototype.constructor=aEa;d=aEa.prototype;d.Un=function(a,b){return gia(a)?a:b.R(a)};d.cba=function(){return this};d.Xa=function(a){return this.jo(a)};
d.Za=function(a,b){return this.Un(a,b)};d.jo=function(a){return gia(a)};d.$classData=q({iOa:0},!1,"amf.core.rdf.RdfModelParser$$anonfun$parse$1",{iOa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function zEa(){}zEa.prototype=new oZ;zEa.prototype.constructor=zEa;d=zEa.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.cba=function(){return this};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({jOa:0},!1,"amf.core.rdf.RdfModelParser$$anonfun$parseList$4",{jOa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function pMa(){this.t=null}pMa.prototype=new Oia;pMa.prototype.constructor=pMa;d=pMa.prototype;d.L=function(){return"Uri"};d.H=function(){return 1};d.h=function(a){return this===a?!0:BL(a)?this.t===a.t:!1};d.K=function(a){switch(a){case 0:return this.t;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.e=function(a){ts.prototype.e.call(this,a);return this};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};function BL(a){return!!(a&&a.$classData&&a.$classData.v.Wka)}d.$classData=q({Wka:0},!1,"amf.core.rdf.Uri",{Wka:1,eOa:1,f:1,A:1,w:1,q:1,n:1});function ndb(){this.yGa=this.aHa=this.Pa=null}ndb.prototype=new oZ;ndb.prototype.constructor=ndb;d=ndb.prototype;d.yt=function(){return!0};d.pt=function(){return vja(this.Pa,this.aHa,this.yGa)};d.Xa=function(a){return this.yt(a)};d.Za=function(a,b){return this.pt(a,b)};
function xja(a,b,c){var e=new ndb;if(null===a)throw Lb(Mb(),null);e.Pa=a;e.aHa=b;e.yGa=c;return e}d.$classData=q({FOa:0},!1,"amf.core.remote.Platform$$anonfun$amf$core$remote$Platform$$loaderConcat$1",{FOa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function odb(){}odb.prototype=new oZ;odb.prototype.constructor=odb;d=odb.prototype;d.yt=function(a){return null!==a};d.pt=function(a,b){if(null!==a)throw(new K5).gm(a);return b.R(a)};d.Xa=function(a){return this.yt(a)};d.Za=function(a,b){return this.pt(a,b)};
d.$classData=q({NOa:0},!1,"amf.core.remote.browser.JsBrowserHttpResourceLoader$$anonfun$fetch$2",{NOa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function pdb(){this.yW=this.Pa=null}pdb.prototype=new oZ;pdb.prototype.constructor=pdb;d=pdb.prototype;d.yt=function(a){return L1(a)};function qdb(a,b){var c=new pdb;if(null===a)throw Lb(Mb(),null);c.Pa=a;c.yW=b;return c}
d.pt=function(a,b){return L1(a)?(a=FWa(),b=(new Cf).e(this.yW),cbb(a.z_(ba.decodeURI(b.zd))).Lf(t(new u,function(a){return function(b){b=tPa(a.yW,b);var f=rdb(a.yW);Ip();var g=mba(a.yW);g.b()?g=w():(g=g.c(),Ip(),g=nba(g));return(new j2).oU(b,f,g)}}(this)),um()).rW(new sdb,um())):b.R(a)};d.Xa=function(a){return this.yt(a)};d.Za=function(a,b){return this.pt(a,b)};d.$classData=q({POa:0},!1,"amf.core.remote.server.JsServerFileResourceLoader$$anonfun$fetchFile$3",{POa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});
function sdb(){}sdb.prototype=new oZ;sdb.prototype.constructor=sdb;d=sdb.prototype;d.yt=function(a){return L1(a)};d.pt=function(a,b){if(L1(a))throw(new tdb).gm(a);return b.R(a)};d.Xa=function(a){return this.yt(a)};d.Za=function(a,b){return this.pt(a,b)};d.$classData=q({QOa:0},!1,"amf.core.remote.server.JsServerFileResourceLoader$$anonfun$fetchFile$3$$anonfun$applyOrElse$3",{QOa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function udb(){}udb.prototype=new oZ;udb.prototype.constructor=udb;d=udb.prototype;
d.yt=function(a){return null!==a};d.pt=function(a,b){if(null!==a)throw(new K5).gm(a);return b.R(a)};d.Xa=function(a){return this.yt(a)};d.Za=function(a,b){return this.pt(a,b)};d.$classData=q({ROa:0},!1,"amf.core.remote.server.JsServerHttpResourceLoader$$anonfun$fetch$1",{ROa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Mja(){this.tGa=this.JBa=!1;this.HCa=this.Qza=null}Mja.prototype=new oZ;Mja.prototype.constructor=Mja;d=Mja.prototype;d.zh=function(a){return rs(a)&&kva(a.tH)?!0:!1};
d.ph=function(a,b){if(rs(a)&&kva(a.tH)){hda();a=mq(nq(),a.ya);a=gda(0,a);if(null===a)throw(new Rg).a();Sg(Tg()," *",a)&&this.JBa&&this.tGa&&this.Qza.R("Variable '"+this.HCa+"' cannot have an empty value");return a}return b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};d.$classData=q({UOa:0},!1,"amf.core.resolution.VariableReplacer$$anonfun$$nestedInanonfun$replaceMatch$1$1",{UOa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Vt(){ur.call(this);this.jGa=null}
Vt.prototype=new y3a;Vt.prototype.constructor=Vt;function Uja(a,b,c){a.jGa=b;ur.prototype.P.call(a,b.ea,b.ab);a.vC=(new A).d(c);return a}Vt.prototype.$classData=q({t7:0},!1,"amf.core.resolution.stages.ResolvedLinkNode",{t7:1,i7:1,cS:1,f:1,de:1,Wc:1,Rc:1});function fM(){this.xF=null}fM.prototype=new r;fM.prototype.constructor=fM;d=fM.prototype;d.L=function(){return"ResolvedNamedEntity"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.fla){var b=this.xF;a=a.xF;return null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.xF;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fo=function(a){this.xF=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var Vra=q({fla:0},!1,"amf.core.resolution.stages.ResolvedNamedEntity",{fla:1,f:1,lf:1,A:1,w:1,q:1,n:1});fM.prototype.$classData=Vra;
function vdb(){}vdb.prototype=new r;vdb.prototype.constructor=vdb;function L5(){}d=L5.prototype=vdb.prototype;d.L=function(){return"Selector"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.fN)&&!0};d.Tn=function(a){return this.mu(a)|0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"\x3cfunction1\x3e"};d.rp=function(a){return this.mu(a)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function ZB(){this.Ke=0}ZB.prototype=new r;
ZB.prototype.constructor=ZB;d=ZB.prototype;d.L=function(){return"AllValidationsMerger"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.ila?this.Ke===a.Ke:!1};d.K=function(a){switch(a){case 0:return this.Ke;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.$d=function(a){this.Ke=a;return this};d.y=function(){var a=-889275714,a=zI().Ga(a,this.Ke);return zI().Wd(a,1)};d.M=function(){return Z(this)};d.Bca=function(){return!0};
d.$classData=q({ila:0},!1,"amf.core.services.AllValidationsMerger",{ila:1,f:1,sPa:1,A:1,w:1,q:1,n:1});function wdb(){this.yv=null}wdb.prototype=new r;wdb.prototype.constructor=wdb;d=wdb.prototype;d.L=function(){return"ReferenceResolverAdapter"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.v7?this.yv===a.yv:!1};d.K=function(a){switch(a){case 0:return this.yv;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.$T=function(a){var b=Ab();a=this.yv.$B(a);var c;Ab();null===Ab().RM&&null===Ab().RM&&(Ab().RM=new rZ);c=Ab().RM;return qm(rm(new pm,b,a,c))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function C_a(a){var b=new wdb;b.yv=a;return b}d.$classData=q({v7:0},!1,"amf.internal.reference.ReferenceResolverAdapter",{v7:1,f:1,Ueb:1,A:1,w:1,q:1,n:1});function s_(){this.yv=null}s_.prototype=new r;s_.prototype.constructor=s_;d=s_.prototype;d.L=function(){return"ResourceLoaderAdapter"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.w7){var b=this.yv;a=a.yv;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.yv;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.$T=function(a){var b=Ab();a=this.yv.$B(a);var c;c=Ab();null===Ab().SM&&null===Ab().SM&&(Ab().SM=(new xZ).vp(c));c=Ab().SM;return qm(rm(new pm,b,a,c))};d.y=function(){return Y(this)};function r_(a,b){a.yv=b;return a}d.M=function(){return Z(this)};
d.hG=function(a){return this.yv.hG(a)};d.$classData=q({w7:0},!1,"amf.internal.resource.ResourceLoaderAdapter",{w7:1,f:1,XPa:1,A:1,w:1,q:1,n:1});function Ko(){this.Hga=this.wr=this.Bf=null}Ko.prototype=new r;Ko.prototype.constructor=Ko;d=Ko.prototype;d.tc=function(a,b){this.Bf=a;this.wr=b;this.Hga=(new j2).tc(b,a);return this};d.L=function(){return"StringResourceLoader"};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Dla?this.Bf===a.Bf&&this.wr===a.wr:!1};
d.K=function(a){switch(a){case 0:return this.Bf;case 1:return this.wr;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.$T=function(){return HB(ib(),this.Hga)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.hG=function(a){return a===this.Bf};d.$classData=q({Dla:0},!1,"amf.internal.resource.StringResourceLoader",{Dla:1,f:1,XPa:1,A:1,w:1,q:1,n:1});function Lka(){this.xK=null}Lka.prototype=new oZ;Lka.prototype.constructor=Lka;d=Lka.prototype;
d.Wf=function(a){return Kb(a)&&a.k===this.xK?!0:!1};d.Sf=function(a,b){return Kb(a)&&a.k===this.xK?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};d.$classData=q({cQa:0},!1,"amf.plugins.document.graph.emitter.EmissionContext$$anonfun$isDeclared$1",{cQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function NFa(){}NFa.prototype=new oZ;NFa.prototype.constructor=NFa;d=NFa.prototype;d.Un=function(a,b){return y5(a)?a:b.R(a)};d.Xa=function(a){return this.jo(a)};
d.Za=function(a,b){return this.Un(a,b)};d.jo=function(a){return y5(a)};d.$classData=q({fQa:0},!1,"amf.plugins.document.graph.emitter.JsonLdEmitter$$anonfun$$nestedInanonfun$createCustomExtensions$4$1",{fQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function q4a(){}q4a.prototype=new oZ;q4a.prototype.constructor=q4a;d=q4a.prototype;d.l$=function(a,b){return mm(a)?a:b.R(a)};d.Vba=function(a){return mm(a)};d.Xa=function(a){return this.Vba(a)};d.Za=function(a,b){return this.l$(a,b)};
d.$classData=q({jQa:0},!1,"amf.plugins.document.graph.parser.GraphParser$Parser$$anonfun$$nestedInanonfun$parseCustomProperties$5$1",{jQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function n4a(){this.ZGa=this.VCa=null}n4a.prototype=new oZ;n4a.prototype.constructor=n4a;d=n4a.prototype;d.l$=function(a,b){return mm(a)?mA(this.VCa,this.ZGa,a,(M(),(new N).a())):b.R(a)};d.Vba=function(a){return mm(a)};d.Xa=function(a){return this.Vba(a)};d.Za=function(a,b){return this.l$(a,b)};
d.$classData=q({kQa:0},!1,"amf.plugins.document.graph.parser.GraphParser$Parser$$anonfun$$nestedInanonfun$parseObjectNodeProperties$1$1",{kQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function zT(){this.SGa=null}zT.prototype=new oZ;zT.prototype.constructor=zT;function xdb(a,b,c){if(null!==b){a=B(b.g,ed().Mc).Ib(t(new u,function(a){return function(b){return he(b)?b.k===a.SGa:!1}}(a)));if(a.b())return w();a=a.c();return(new A).d((new P).N(b,a))}return c.R(b)}zT.prototype.Xa=function(a){return null!==a};
zT.prototype.Za=function(a,b){return xdb(this,a,b)};zT.prototype.$classData=q({rQa:0},!1,"amf.plugins.document.vocabularies.DialectsRegistry$$anonfun$1",{rQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function lQa(){}lQa.prototype=new oZ;lQa.prototype.constructor=lQa;d=lQa.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.yU=function(){return this};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({sQa:0},!1,"amf.plugins.document.vocabularies.DialectsRegistry$$anonfun$2",{sQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function iQa(){}iQa.prototype=new oZ;iQa.prototype.constructor=iQa;d=iQa.prototype;d.Ag=function(a,b){return he(a)?B(a.g,Tj().Qi).xb(t(new u,function(){return function(a){a=VGa(a);var b=JM();return null!==a&&a===b}}(this))):b.R(a)};d.Bg=function(a){return he(a)};d.yU=function(){return this};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};
d.$classData=q({tQa:0},!1,"amf.plugins.document.vocabularies.DialectsRegistry$$anonfun$3",{tQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function gQa(){}gQa.prototype=new oZ;gQa.prototype.constructor=gQa;d=gQa.prototype;d.KJ=function(a,b){if(null!==a){var c=a.pa(),e=a.Ba();if(x(e)&&(e=e.i,he(e)))return(new P).N(c,e)}return b.R(a)};d.yU=function(){return this};d.Xa=function(a){return this.UK(a)};d.Za=function(a,b){return this.KJ(a,b)};d.UK=function(a){return null!==a&&(a=a.Ba(),x(a)&&he(a.i))?!0:!1};
d.$classData=q({uQa:0},!1,"amf.plugins.document.vocabularies.DialectsRegistry$$anonfun$findNode$4",{uQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function ydb(){}ydb.prototype=new oZ;ydb.prototype.constructor=ydb;d=ydb.prototype;d.cV=function(a){a=id(a.Da);return a.b()?!1:"$dialect"===a.c().ya};d.VS=function(a,b){var c=id(a.Da);return(c.b()?0:"$dialect"===c.c().ya)?a:b.R(a)};d.Xa=function(a){return this.cV(a)};d.Za=function(a,b){return this.VS(a,b)};
d.$classData=q({xQa:0},!1,"amf.plugins.document.vocabularies.JsonHeaderExtractor$$anonfun$dialectForDoc$3",{xQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Kba(){this.Q$=null}Kba.prototype=new oZ;Kba.prototype.constructor=Kba;d=Kba.prototype;d.cV=function(a){a=id(a.Da);if(a.b())return!1;a=a.c();var b=B(this.Q$.g,ed().$);return Xb(b,a.ya)};d.VS=function(a,b){var c=id(a.Da);if(c.b())c=!1;else var c=c.c(),e=B(this.Q$.g,ed().$),c=Xb(e,c.ya);return c?a:b.R(a)};d.Xa=function(a){return this.cV(a)};
d.Za=function(a,b){return this.VS(a,b)};d.$classData=q({zQa:0},!1,"amf.plugins.document.vocabularies.KeyPropertyHeaderExtractor$$anonfun$containsVersion$3",{zQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Oba(){}Oba.prototype=new oZ;Oba.prototype.constructor=Oba;d=Oba.prototype;d.Ag=function(a,b){return Kd(a)?a:b.R(a)};d.Bg=function(a){return Kd(a)};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};
d.$classData=q({KQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.DialectDocumentsEmitters$$anonfun$7",{KQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function zdb(){this.Xb=this.o=this.rb=null}zdb.prototype=new r;zdb.prototype.constructor=zdb;d=zdb.prototype;d.L=function(){return"DialectEmitter"};
function Adb(a){var b=Mba(a,a.o),c=a.Y$(a.o),e=z(),b=b.la(c,e.s),c=Ly(),e=(new My).e(c.Dh),f=(new ph).e(c.xh);Tc(f)&&Ny(e,c.xh);Ny(e,"%Dialect 1.0");var f=e.r,g=e.da,h=(new pq).e(g);iq(Cq(),a.o.Cb(b),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));return(new Oy).mc(Py(vq(),c.Dh),e.r)}d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Kla){var b=this.rb;a=a.rb;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.rb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Y$=function(a){var b=G(),c=z(),e=[(new CT).zU(this)],c=H(c,(new J).aa(e)),e=z(),b=b.la(c,e.s),c=z(),e=[(new DT).zU(this)],c=H(c,(new J).aa(e)),e=z(),b=b.la(c,e.s),c=B(this.rb.g,Ap().Ud);eM(c)||(c=z(),e=[(new BT).zU(this)],c=H(c,(new J).aa(e)),e=z(),b=b.la(c,e.s));Wa().Ia(B(this.rb.g,ed().vj)).qa()&&(c=z(),a=[(new Bdb).AE(this.rb,a,this.Xb)],a=H(c,(new J).aa(a)),c=z(),b=b.la(a,c.s));return b};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.HK=function(a){this.rb=a;this.o=gC();this.Xb=Lba(this);return this};d.$classData=q({Kla:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.DialectEmitter",{Kla:1,f:1,HQa:1,A:1,w:1,q:1,n:1});function Cdb(){}Cdb.prototype=new oZ;Cdb.prototype.constructor=Cdb;d=Cdb.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({QQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.DocumentsModelEmitter$$anonfun$3",{QQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Ddb(){}Ddb.prototype=new oZ;Ddb.prototype.constructor=Ddb;d=Ddb.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({RQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.DocumentsModelOptionsEmitter$$anonfun$2",{RQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Edb(){}Edb.prototype=new oZ;Edb.prototype.constructor=Edb;d=Edb.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({TQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.LibraryDocumentModelEmitter$$anonfun$1",{TQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Fdb(){}Fdb.prototype=new oZ;Fdb.prototype.constructor=Fdb;d=Fdb.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({VQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.NodeMappingEmitter$$anonfun$5",{VQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Gdb(){}Gdb.prototype=new oZ;Gdb.prototype.constructor=Gdb;d=Gdb.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({YQa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.PropertyMappingEmitter$$anonfun$4",{YQa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Hdb(){this.Xb=this.rb=this.o=this.cL=null}Hdb.prototype=new r;Hdb.prototype.constructor=Hdb;d=Hdb.prototype;d.L=function(){return"RamlDialectLibraryEmitter"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Sla){var b=this.cL;a=a.cL;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.cL;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function Idb(a){var b=Mba(a,a.o),c=a.Y$(a.o),e=z(),b=b.la(c,e.s),c=Ly(),e=(new My).e(c.Dh),f=(new ph).e(c.xh);Tc(f)&&Ny(e,c.xh);Ny(e,"%Library / Dialect 1.0");var f=e.r,g=e.da,h=(new pq).e(g);iq(Cq(),a.o.Cb(b),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));return(new Oy).mc(Py(vq(),c.Dh),e.r)}
d.V0=function(a){this.cL=a;this.o=gC();var b=(new mN).P(a.g,a.E);this.rb=Te(b,a.k);this.Xb=Lba(this);return this};d.Y$=function(){var a=G(),b=B(this.rb.g,Ap().Ud);if(!eM(b)){var b=z(),c=new LT;if(null===this)throw Lb(Mb(),null);c.l=this;b=H(b,(new J).aa([c]));c=z();a=a.la(b,c.s)}return a};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Sla:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.RamlDialectLibraryEmitter",{Sla:1,f:1,HQa:1,A:1,w:1,q:1,n:1});
function Jdb(){}Jdb.prototype=new oZ;Jdb.prototype.constructor=Jdb;d=Jdb.prototype;d.Xa=function(a){return this.im(a)};d.Za=function(a,b){return this.am(a,b)};d.am=function(a,b){return sd(a)?a:b.R(a)};d.im=function(a){return sd(a)};d.$classData=q({$Qa:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.ReferencesEmitter$$anonfun$6",{$Qa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Kdb(){this.OCa=null}Kdb.prototype=new oZ;Kdb.prototype.constructor=Kdb;d=Kdb.prototype;d.Xa=function(a){return this.im(a)};
d.Za=function(a,b){return this.am(a,b)};d.am=function(a,b){return XA(a)?B(a.g,ed().Mc).Ib(t(new u,function(a){return function(b){return b.k===a.OCa}}(this))):b.R(a)};function Rba(a){var b=new Kdb;b.OCa=a;return b}d.im=function(a){return XA(a)};d.$classData=q({cRa:0},!1,"amf.plugins.document.vocabularies.emitters.instances.DialectEmitterHelper$$anonfun$$nestedInanonfun$maybeFindNodeMappingById$3$1",{cRa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Ldb(){this.Pa=null}Ldb.prototype=new oZ;
Ldb.prototype.constructor=Ldb;d=Ldb.prototype;d.ye=function(a,b){if(x(a)){var c=a.i;if(Kd(c))return(new P).N(this.Pa.rb,c)}return b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};function Sba(a){var b=new Ldb;if(null===a)throw Lb(Mb(),null);b.Pa=a;return b}d.Ae=function(a){return x(a)&&Kd(a.i)?!0:!1};
d.$classData=q({dRa:0},!1,"amf.plugins.document.vocabularies.emitters.instances.DialectEmitterHelper$$anonfun$$nestedInanonfun$maybeFindNodeMappingById$3$2",{dRa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Mdb(){this.Xb=this.o=this.Ro=this.rb=this.Og=null}Mdb.prototype=new r;Mdb.prototype.constructor=Mdb;
function Ndb(a,b,c){var e=B(a.rb.g,ed().$).G,e=e.b()?null:e.c(),f=B(a.rb.g,ed().Tm).G,e=e+" "+(f.b()?null:f.c());if($A(c)){var f=B(B(B(a.rb.g,ed().vj).g,fd().cs).g,OA().ft).G,f=f.b()?null:f.c(),g=B(B(a.rb.g,ed().vj).g,fd().wz);gd(g)?e=Odb(a):(Ny(b,"%"+e),e=G())}else{if(!cB(c))throw(new v).d(c);Ny(b,"%"+B(c.g,bB().RR)+" / "+e);e=G();f=B(B(a.rb.g,ed().vj).g,fd().tz).Ib(t(new u,function(a,b){return function(a){a=B(a.g,OA().Sx);var c=B(b.g,bB().RR).G,c=c.b()?null:c.c();return Xb(a,c)}}(a,c)));f.b()?f=
w():(f=B(f.c().g,OA().ft).G,f=(new A).d(f.b()?null:f.c()));f=f.c()}var h=e,e=Md(a,f);if(null===e)throw(new v).d(e);var e=e.Ba(),k=bg(e)?(new A).d(s4a(e,a)):w();c=c.ze();var f=a.Og,g=a.rb,l=a.o,p=a.Xb,y=w(),I=Tba(a.Og,a.o),E=z(),h=I.la(h,E.s),k=k.b()?w():QQa(k.c(),c);a=a.Ro;I=w();RQa(c,e,f,g,l,p,y,!0,I,k,!1,h,a).Ob(b)}d=Mdb.prototype;d.L=function(){return"DialectInstancesEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Xla){var b=this.Og,c=a.Og;(null===b?null===c:b.h(c))?(b=this.rb,c=a.rb,b=null===b?null===c:b.h(c)):b=!1;return b?this.Ro===a.Ro:!1}return!1};function Pdb(a){var b=Ly(),c=(new My).e(b.Dh),e=(new ph).e(b.xh);Tc(e)&&Ny(c,b.xh);e=a.Og;au(e)&&Ndb(a,c,e);return(new Oy).mc(Py(vq(),b.Dh),c.r)}d.K=function(a){switch(a){case 0:return this.Og;case 1:return this.rb;case 2:return this.Ro;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};function Odb(a){var b=z(),c=B(a.rb.g,ed().$).G,c=c.b()?null:c.c();a=B(a.rb.g,ed().Tm).G;a=a.b()?null:a.c();var e=(new kT).La(0,1),f=O().Wa;return H(b,(new J).aa([Bv(new Cv,c,a,f,e)]))}function Qdb(a,b,c,e){a.Og=b;a.rb=c;a.Ro=e;a.o=gC();a.Xb=Rdb(a);return a}
function Rdb(a){var b=jd(a.Og),b=b.b()?a.Og.k:b.c(),b=kd(ta(),b,"/",0),b=ld((new md).vc(b)),c=jd(a.Og),b=(c.b()?a.Og.k:c.c()).split(b).join(""),c=Zb(a.Og.ha(),n(nd));if(c.b())c=w();else var c=c.c().Xb,e=pc(fc().db,G()),c=(new A).d(pd(c,e,qd(function(){return function(a,b){a=(new P).N(a,b);b=a.ep;var c=a.rq;if(null!==c){var e=c.pa(),c=c.Ba();if(null!==c)return b.Zb((new P).N(c.pa(),e))}throw(new v).d(a);}}(a))));c=c.b()?pc(fc().db,G()):c.c();e=(new rd).a();return a.Og.Pe().ae(pc(fc().db,G()),qd(function(a,
b,c,e){return function(a,f){var y=(new P).N(a,f);a=y.ep;f=y.rq;if(null!==a&&sd(f)){y=jd(f);y=(y.b()?f.k:y.c()).split("#").join("");y=-1!==(y.indexOf(b)|0)?y.split(b).join(""):y.split("file://").join("");if(c.Ta(f.k).qa()){var I=c.R(f.k);f=f.k;y=(new P).N(I,y);return a.Zb((new P).N(f,y))}I=e.os("uses_");f=f.k;y=(new P).N(I,y);return a.Zb((new P).N(f,y))}a=y.ep;if(null!==a)return a;throw(new v).d(y);}}(a,b,c,e)))}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Xla:0},!1,"amf.plugins.document.vocabularies.emitters.instances.DialectInstancesEmitter",{Xla:1,f:1,Cz:1,A:1,w:1,q:1,n:1});function Sdb(){this.Sda=null}Sdb.prototype=new oZ;Sdb.prototype.constructor=Sdb;d=Sdb.prototype;d.Ag=function(a,b){return xA(a)&&this.Sda.Ja(Sj(a).k)?a:b.R(a)};d.Bg=function(a){return xA(a)&&this.Sda.Ja(Sj(a).k)?!0:!1};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};function Tdb(a){var b=new Sdb;b.Sda=a;return b}
d.$classData=q({hRa:0},!1,"amf.plugins.document.vocabularies.emitters.instances.DialectNodeEmitter$$anonfun$2",{hRa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Udb(){}Udb.prototype=new oZ;Udb.prototype.constructor=Udb;d=Udb.prototype;d.ye=function(a,b){if(x(a)){var c=a.i;if(null!==c)return c}return b.R(a)};d.dba=function(){return this};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)&&null!==a.i?!0:!1};
d.$classData=q({iRa:0},!1,"amf.plugins.document.vocabularies.emitters.instances.DialectNodeEmitter$$anonfun$3",{iRa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function M5(){}M5.prototype=new oZ;M5.prototype.constructor=M5;M5.prototype.dba=function(){return this};M5.prototype.Xa=function(a){return he(a)};M5.prototype.Za=function(a,b){return he(a)?a:b.R(a)};
M5.prototype.$classData=q({jRa:0},!1,"amf.plugins.document.vocabularies.emitters.instances.DialectNodeEmitter$$anonfun$findAllNodeMappings$2",{jRa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Vdb(){}Vdb.prototype=new oZ;Vdb.prototype.constructor=Vdb;d=Vdb.prototype;d.Xa=function(a){return this.im(a)};d.Za=function(a,b){return this.am(a,b)};d.am=function(a,b){return sd(a)?a:b.R(a)};d.im=function(a){return sd(a)};
d.$classData=q({kRa:0},!1,"amf.plugins.document.vocabularies.emitters.instances.ReferencesEmitter$$anonfun$1",{kRa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Wdb(){this.mp=this.cf=null}Wdb.prototype=new r;Wdb.prototype.constructor=Wdb;function Xdb(a,b){var c=B(a.cf.g,wd().Mc).xb(t(new u,function(){return function(a){return tRa(a)}}(a)));if(c.Fa()){var e=z();a=[(new WT).hba(a,b,c)];return H(e,(new J).aa(a))}return G()}d=Wdb.prototype;d.L=function(){return"VocabularyEmitter"};
d.W0=function(a){this.cf=a;this.mp=Vba(this,a);return this};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.fma){var b=this.cf;a=a.cf;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.cf;default:throw(new X).e(""+a);}};
function Ydb(a){var b=Jy(Ky(),mc(),a.cf.E),c;if(xd(a.cf).Fa()){c=z();var e=[(new XT).gba(a,b)];c=H(c,(new J).aa(e))}else c=G();if(B(a.cf.g,wd().BD).Fa())var e=z(),f=[(new YT).gba(a,b)],e=H(e,(new J).aa(f));else e=G();f=z();c=c.la(e,f.s);var e=G(),f=z(),g=[(new ZT).AU(a)],f=H(f,(new J).aa(g)),g=z(),e=e.la(f,g.s),f=z(),g=[(new $T).AU(a)],f=H(f,(new J).aa(g)),g=z(),e=e.la(f,g.s),f=B(a.cf.g,Ap().Ud);eM(f)||(f=z(),g=[(new aU).AU(a)],f=H(f,(new J).aa(g)),g=z(),e=e.la(f,g.s));f=Zdb(a,b);g=z();e=e.la(f,g.s);
a=Xdb(a,b);f=z();a=e.la(a,f.s);e=z();a=c.la(a,e.s);c=Ly();e=(new My).e(c.Dh);f=(new ph).e(c.xh);Tc(f)&&Ny(e,c.xh);Ny(e,"%Vocabulary 1.0");var f=e.r,g=e.da,h=(new pq).e(g);iq(Cq(),b.Cb(a),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));return(new Oy).mc(Py(vq(),c.Dh),e.r)}d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function Zdb(a,b){var c=B(a.cf.g,wd().Mc).xb(t(new u,function(){return function(a){return AA(a)}}(a)));if(c.Fa()){var e=z();a=[(new VT).hba(a,b,c)];return H(e,(new J).aa(a))}return G()}d.$classData=q({fma:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.VocabularyEmitter",{fma:1,f:1,bma:1,A:1,w:1,q:1,n:1});function N5(){u2.call(this);this.hw=null}N5.prototype=new B4a;N5.prototype.constructor=N5;
N5.prototype.a=function(){u2.prototype.a.call(this);$db=this;var a=C().qv,a=D(new F,a,"DatatypeProperty"),b=C().Kc,b=D(new F,b,"Property"),c=Lc().ja;this.hw=oz(new pz,a,oz(new pz,b,c));return this};N5.prototype.Zc=function(){M();var a=(new N).a();return(new TM).P((new Q).a(),a)};N5.prototype.ec=function(){return this.hw};N5.prototype.$classData=q({GRa:0},!1,"amf.plugins.document.vocabularies.metamodel.domain.DatatypePropertyTermModel$",{GRa:1,PRa:1,f:1,se:1,Oc:1,ic:1,Xc:1});var $db=void 0;
function Iqa(){$db||($db=(new N5).a());return $db}function vT(){this.Aa=this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.ja=this.g=this.NCa=this.Kfa=null;this.ma=0}vT.prototype=new r;vT.prototype.constructor=vT;d=vT.prototype;d.pp=function(a){this.ef=a};d.qp=function(a){this.kg=a};d.Ce=function(a){this.Hb=a};d.Yc=function(a){this.Aa=a};d.op=function(a){this.Je=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.np=function(a){this.wd=a};
d.Zc=function(){throw Lb(Mb(),(new Nb).e("DialectDomainElement is an abstract class and it cannot be isntantiated directly"));};function jQa(a,b,c,e){a.Kfa=b;a.NCa=e;Iq(a);cT(a);YK(a);e=pv().JX;var f=pv().TX,g=Lc().g,h=Db().g,k=Di(),g=g.la(h,k.s),h=Di();c=g.la(c,h.s);a.g=oz(new pz,e,oz(new pz,f,c));c=t(new u,function(){return function(a){return sT(tT(),a)}}(a));e=z();b=b.ka(c,e.s).wa();c=C().Kc;c=D(new F,c,"DialectDomainElement");e=Lc().ja;c=oz(new pz,c,e);e=Di();a.ja=b.la(c,e.s);return a}d.ec=function(){return this.ja};
d.$classData=q({x7:0},!1,"amf.plugins.document.vocabularies.metamodel.domain.DialectDomainElementModel",{x7:1,f:1,se:1,Oc:1,ic:1,Xc:1,Fo:1});function O5(){u2.call(this);this.hw=null}O5.prototype=new B4a;O5.prototype.constructor=O5;O5.prototype.a=function(){u2.prototype.a.call(this);aeb=this;var a=C().qv,a=D(new F,a,"ObjectProperty"),b=C().Kc,b=D(new F,b,"Property"),c=Lc().ja;this.hw=oz(new pz,a,oz(new pz,b,c));return this};
O5.prototype.Zc=function(){M();var a=(new N).a();return(new UM).P((new Q).a(),a)};O5.prototype.ec=function(){return this.hw};O5.prototype.$classData=q({NRa:0},!1,"amf.plugins.document.vocabularies.metamodel.domain.ObjectPropertyTermModel$",{NRa:1,PRa:1,f:1,se:1,Oc:1,ic:1,Xc:1});var aeb=void 0;function FA(){aeb||(aeb=(new O5).a());return aeb}function beb(a){return!!(a&&a.$classData&&a.$classData.v.MY)}function $ba(){}$ba.prototype=new oZ;$ba.prototype.constructor=$ba;d=$ba.prototype;d.Xa=function(a){return this.im(a)};
d.Za=function(a,b){return this.am(a,b)};d.am=function(a,b){return a&&a.$classData&&a.$classData.v.z7?a:b.R(a)};d.im=function(a){return!!(a&&a.$classData&&a.$classData.v.z7)};d.$classData=q({TRa:0},!1,"amf.plugins.document.vocabularies.model.document.MappingDeclarer$$anonfun$findNodeMapping$2",{TRa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function ceb(){}ceb.prototype=new oZ;ceb.prototype.constructor=ceb;d=ceb.prototype;
d.XD=function(a,b){var c=is(js(),a);return!c.b()&&(c=c.c().pa(),es(c))?(a=c.Tb,b=new deb,c=z(),a.$b(b,c.s)):b.R(a)};d.ME=function(a){a=is(js(),a);return!a.b()&&(a=a.c().pa(),es(a))?!0:!1};d.Lv=function(){return this};d.Xa=function(a){return this.ME(a)};d.Za=function(a,b){return this.XD(a,b)};d.$classData=q({VRa:0},!1,"amf.plugins.document.vocabularies.model.domain.DialectDomainElement$$anonfun$literalProperties$1",{VRa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function deb(){}deb.prototype=new oZ;
deb.prototype.constructor=deb;d=deb.prototype;d.Wf=function(a){return sj(a)};d.Sf=function(a,b){return sj(a)?a.t:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};d.$classData=q({WRa:0},!1,"amf.plugins.document.vocabularies.model.domain.DialectDomainElement$$anonfun$literalProperties$1$$anonfun$applyOrElse$2",{WRa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function eeb(){}eeb.prototype=new oZ;eeb.prototype.constructor=eeb;d=eeb.prototype;
d.XD=function(a,b){var c=is(js(),a);return!c.b()&&(c=c.c().pa(),sj(c))?c.t:b.R(a)};d.ME=function(a){a=is(js(),a);return!a.b()&&(a=a.c().pa(),sj(a))?!0:!1};d.Lv=function(){return this};d.Xa=function(a){return this.ME(a)};d.Za=function(a,b){return this.XD(a,b)};d.$classData=q({XRa:0},!1,"amf.plugins.document.vocabularies.model.domain.DialectDomainElement$$anonfun$literalProperty$1",{XRa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function feb(){}feb.prototype=new oZ;feb.prototype.constructor=feb;d=feb.prototype;
d.XD=function(a,b){var c=is(js(),a);return!c.b()&&(c=c.c().pa(),es(c))?(a=c.Tb,b=new geb,c=z(),a.$b(b,c.s)):b.R(a)};d.ME=function(a){a=is(js(),a);return!a.b()&&(a=a.c().pa(),es(a))?!0:!1};d.Lv=function(){return this};d.Xa=function(a){return this.ME(a)};d.Za=function(a,b){return this.XD(a,b)};d.$classData=q({YRa:0},!1,"amf.plugins.document.vocabularies.model.domain.DialectDomainElement$$anonfun$objectCollectionProperty$1",{YRa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function geb(){}geb.prototype=new oZ;
geb.prototype.constructor=geb;d=geb.prototype;d.Wf=function(a){return xA(a)};d.Sf=function(a,b){return xA(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};d.$classData=q({ZRa:0},!1,"amf.plugins.document.vocabularies.model.domain.DialectDomainElement$$anonfun$objectCollectionProperty$1$$anonfun$applyOrElse$1",{ZRa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function heb(){}heb.prototype=new oZ;heb.prototype.constructor=heb;d=heb.prototype;
d.XD=function(a,b){var c=is(js(),a);return!c.b()&&(c=c.c().pa(),xA(c))?c:b.R(a)};d.ME=function(a){a=is(js(),a);return!a.b()&&(a=a.c().pa(),xA(a))?!0:!1};d.Lv=function(){return this};d.Xa=function(a){return this.ME(a)};d.Za=function(a,b){return this.XD(a,b)};d.$classData=q({$Ra:0},!1,"amf.plugins.document.vocabularies.model.domain.DialectDomainElement$$anonfun$objectProperty$1",{$Ra:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function cca(){}cca.prototype=new oZ;cca.prototype.constructor=cca;d=cca.prototype;
d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.kba=function(){return this};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};d.$classData=q({qSa:0},!1,"amf.plugins.document.vocabularies.parser.common.AnnotationsParser$$anonfun$1",{qSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function fca(){}fca.prototype=new oZ;fca.prototype.constructor=fca;d=fca.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.kba=function(){return this};d.Xa=function(a){return this.Ae(a)};
d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};d.$classData=q({rSa:0},!1,"amf.plugins.document.vocabularies.parser.common.AnnotationsParser$$anonfun$2",{rSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function qRa(){}qRa.prototype=new oZ;qRa.prototype.constructor=qRa;d=qRa.prototype;d.Ag=function(a,b){return Kd(a)?a:b.R(a)};d.Bg=function(a){return Kd(a)};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};
d.$classData=q({uSa:0},!1,"amf.plugins.document.vocabularies.parser.dialects.DialectDeclarations$$anonfun$findNodeMapping$2",{uSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function rU(){}rU.prototype=new oZ;rU.prototype.constructor=rU;d=rU.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.ZG=function(){return this};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({wSa:0},!1,"amf.plugins.document.vocabularies.parser.dialects.DialectsParser$$anonfun$$nestedInanonfun$parsePropertyMapping$10$1",{wSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function VRa(){}VRa.prototype=new oZ;VRa.prototype.constructor=VRa;d=VRa.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.ZG=function(){return this};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({xSa:0},!1,"amf.plugins.document.vocabularies.parser.dialects.DialectsParser$$anonfun$$nestedInanonfun$parseRootDocumentMapping$2$1",{xSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function GRa(){}GRa.prototype=new oZ;GRa.prototype.constructor=GRa;d=GRa.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.ZG=function(){return this};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({ySa:0},!1,"amf.plugins.document.vocabularies.parser.dialects.DialectsParser$$anonfun$1",{ySa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function DRa(){}DRa.prototype=new oZ;DRa.prototype.constructor=DRa;d=DRa.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.ZG=function(){return this};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({zSa:0},!1,"amf.plugins.document.vocabularies.parser.dialects.DialectsParser$$anonfun$parseLibraries$5",{zSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function ieb(){}ieb.prototype=new oZ;ieb.prototype.constructor=ieb;d=ieb.prototype;d.ye=function(a,b){if(x(a)){var c=a.i;if(null!==c)return c}return b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)&&null!==a.i?!0:!1};
d.$classData=q({BSa:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceContext$$anonfun$$nestedInanonfun$parseDeclaredNodeMappings$2$1",{BSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function jeb(){this.zca=null}jeb.prototype=new oZ;jeb.prototype.constructor=jeb;d=jeb.prototype;d.Ag=function(a,b){return Kd(a)&&a.k===this.zca?a:b.R(a)};d.Bg=function(a){return Kd(a)&&a.k===this.zca?!0:!1};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};
d.$classData=q({CSa:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceContext$$anonfun$findNodeMapping$1",{CSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function P0a(){}P0a.prototype=new oZ;P0a.prototype.constructor=P0a;d=P0a.prototype;d.Ag=function(a,b){return xA(a)?a:b.R(a)};d.Bg=function(a){return xA(a)};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};
d.$classData=q({DSa:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceDeclarations$$anonfun$findAnyDialectDomainElement$2",{DSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function keb(){this.Uca=null}keb.prototype=new oZ;keb.prototype.constructor=keb;d=keb.prototype;d.Ag=function(a,b){return xA(a)&&this.Uca.Ja(Sj(a).k)?a:b.R(a)};d.Bg=function(a){return xA(a)&&this.Uca.Ja(Sj(a).k)?!0:!1};function R0a(a){var b=new keb;b.Uca=a;return b}d.Xa=function(a){return this.Bg(a)};
d.Za=function(a,b){return this.Ag(a,b)};d.$classData=q({ESa:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceDeclarations$$anonfun$findDialectDomainElement$2",{ESa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function c5a(){}c5a.prototype=new oZ;c5a.prototype.constructor=c5a;d=c5a.prototype;d.ye=function(a,b){if(x(a)){var c=a.i;if(he(c))return c}return b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Au=function(){return this};d.Za=function(a,b){return this.ye(a,b)};
d.Ae=function(a){return x(a)&&he(a.i)?!0:!1};d.$classData=q({GSa:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceParser$$anonfun$1",{GSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function y2(){}y2.prototype=new oZ;y2.prototype.constructor=y2;y2.prototype.Xa=function(a){return null!==a&&null!==a.i?!0:!1};y2.prototype.Au=function(){return this};y2.prototype.Za=function(a,b){a:{if(null!==a){var c=a.i;if(null!==c){a=c;break a}}a=b.R(a)}return a};
y2.prototype.$classData=q({HSa:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceParser$$anonfun$2",{HSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function J5a(){}J5a.prototype=new oZ;J5a.prototype.constructor=J5a;d=J5a.prototype;d.ye=function(a,b){if(x(a)){var c=a.i;if(null!==c)return c}return b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Au=function(){return this};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)&&null!==a.i?!0:!1};
d.$classData=q({ISa:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceParser$$anonfun$3",{ISa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function A2(){}A2.prototype=new oZ;A2.prototype.constructor=A2;A2.prototype.Xa=function(a){return z2(a)};A2.prototype.Au=function(){return this};A2.prototype.Za=function(a,b){return z2(a)?a.Ba():b.R(a)};
A2.prototype.$classData=q({JSa:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceParser$$anonfun$4",{JSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function y5a(){}y5a.prototype=new oZ;y5a.prototype.constructor=y5a;d=y5a.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Au=function(){return this};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({KSa:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceParser$$anonfun$5",{KSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function z5a(){}z5a.prototype=new oZ;z5a.prototype.constructor=z5a;d=z5a.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Au=function(){return this};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({LSa:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceParser$$anonfun$6",{LSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function V4a(){}V4a.prototype=new oZ;V4a.prototype.constructor=V4a;d=V4a.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Au=function(){return this};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({MSa:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceParser$$anonfun$parseNode$6",{MSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function K5a(){}K5a.prototype=new oZ;K5a.prototype.constructor=K5a;d=K5a.prototype;d.ye=function(a,b){if(x(a)){var c=a.i;if(null!==c)return c}return b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Au=function(){return this};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)&&null!==a.i?!0:!1};
d.$classData=q({NSa:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceParser$$anonfun$parseObjectMapProperty$3",{NSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function hHa(){}hHa.prototype=new oZ;hHa.prototype.constructor=hHa;d=hHa.prototype;d.ex=function(){return this};d.Wf=function(a){return xA(a)};d.Sf=function(a,b){return xA(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};
d.$classData=q({XSa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectPatchApplicationStage$$anonfun$1",{XSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function qHa(){}qHa.prototype=new oZ;qHa.prototype.constructor=qHa;d=qHa.prototype;d.ex=function(){return this};d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({YSa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectPatchApplicationStage$$anonfun$10",{YSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function iHa(){}iHa.prototype=new oZ;iHa.prototype.constructor=iHa;d=iHa.prototype;d.ex=function(){return this};d.Wf=function(a){return xA(a)};d.Sf=function(a,b){return xA(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};
d.$classData=q({ZSa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectPatchApplicationStage$$anonfun$2",{ZSa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function jHa(){this.MH=this.kI=this.Pa=null}jHa.prototype=new oZ;jHa.prototype.constructor=jHa;d=jHa.prototype;d.KJ=function(a,b){if(null!==a){b=a.pa();a=a.Ba();b=this.kI.Ta(b.split(this.MH).join(""));if(x(b))return w();if(w()===b)return(new A).d(a);throw(new v).d(b);}return b.R(a)};d.Xa=function(a){return this.UK(a)};
d.Za=function(a,b){return this.KJ(a,b)};d.BU=function(a,b,c){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.kI=b;this.MH=c;return this};d.UK=function(a){return null!==a};d.$classData=q({$Sa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectPatchApplicationStage$$anonfun$3",{$Sa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function kHa(){}kHa.prototype=new oZ;kHa.prototype.constructor=kHa;d=kHa.prototype;d.ex=function(){return this};d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};
d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};d.$classData=q({aTa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectPatchApplicationStage$$anonfun$4",{aTa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function lHa(){}lHa.prototype=new oZ;lHa.prototype.constructor=lHa;d=lHa.prototype;d.ex=function(){return this};d.Wf=function(a){return xA(a)};d.Sf=function(a,b){return xA(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};
d.$classData=q({bTa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectPatchApplicationStage$$anonfun$5",{bTa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function mHa(){this.MH=this.kI=this.Pa=null}mHa.prototype=new oZ;mHa.prototype.constructor=mHa;d=mHa.prototype;d.KJ=function(a,b){return null!==a?this.kI.Ta(a.pa().split(this.MH).join("")):b.R(a)};d.Xa=function(a){return this.UK(a)};d.Za=function(a,b){return this.KJ(a,b)};
d.BU=function(a,b,c){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.kI=b;this.MH=c;return this};d.UK=function(a){return null!==a};d.$classData=q({cTa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectPatchApplicationStage$$anonfun$6",{cTa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function nHa(){}nHa.prototype=new oZ;nHa.prototype.constructor=nHa;d=nHa.prototype;d.ex=function(){return this};d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};
d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};d.$classData=q({dTa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectPatchApplicationStage$$anonfun$7",{dTa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function oHa(){}oHa.prototype=new oZ;oHa.prototype.constructor=oHa;d=oHa.prototype;d.ex=function(){return this};d.Wf=function(a){return xA(a)};d.Sf=function(a,b){return xA(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};
d.$classData=q({eTa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectPatchApplicationStage$$anonfun$8",{eTa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function pHa(){this.MH=this.kI=this.Pa=null}pHa.prototype=new oZ;pHa.prototype.constructor=pHa;d=pHa.prototype;d.KJ=function(a,b){if(null!==a){b=a.pa();a=a.Ba();b=this.kI.Ta(b.split(this.MH).join(""));if(x(b))return(new A).d((new P).N(b.i,a));if(w()===b)return w();throw(new v).d(b);}return b.R(a)};d.Xa=function(a){return this.UK(a)};
d.Za=function(a,b){return this.KJ(a,b)};d.BU=function(a,b,c){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.kI=b;this.MH=c;return this};d.UK=function(a){return null!==a};d.$classData=q({fTa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectPatchApplicationStage$$anonfun$9",{fTa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function AHa(){}AHa.prototype=new oZ;AHa.prototype.constructor=AHa;d=AHa.prototype;d.rA=function(){return this};d.Xa=function(a){return this.im(a)};
d.Za=function(a,b){return this.am(a,b)};d.am=function(a,b){return vd(a)?a:b.R(a)};d.im=function(a){return vd(a)};d.$classData=q({hTa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectReferencesResolutionStage$$anonfun$$nestedInanonfun$findVocabularies$1$1",{hTa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function tHa(){}tHa.prototype=new oZ;tHa.prototype.constructor=tHa;d=tHa.prototype;d.Ag=function(a,b){return Kd(a)?a:b.R(a)};d.Bg=function(a){return Kd(a)};d.rA=function(){return this};d.Xa=function(a){return this.Bg(a)};
d.Za=function(a,b){return this.Ag(a,b)};d.$classData=q({iTa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectReferencesResolutionStage$$anonfun$1",{iTa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function xHa(){}xHa.prototype=new oZ;xHa.prototype.constructor=xHa;d=xHa.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.rA=function(){return this};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({jTa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectReferencesResolutionStage$$anonfun$2",{jTa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function yHa(){}yHa.prototype=new oZ;yHa.prototype.constructor=yHa;d=yHa.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.rA=function(){return this};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({kTa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectReferencesResolutionStage$$anonfun$3",{kTa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function uHa(){}uHa.prototype=new oZ;uHa.prototype.constructor=uHa;d=uHa.prototype;d.rA=function(){return this};d.Xa=function(a){return this.im(a)};d.Za=function(a,b){return this.am(a,b)};d.am=function(a,b){return sd(a)?a:b.R(a)};d.im=function(a){return sd(a)};
d.$classData=q({lTa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectReferencesResolutionStage$$anonfun$findDeclarations$2",{lTa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function BHa(){}BHa.prototype=new oZ;BHa.prototype.constructor=BHa;d=BHa.prototype;d.rA=function(){return this};d.Xa=function(a){return this.im(a)};d.Za=function(a,b){return this.am(a,b)};d.am=function(a,b){return XA(a)?a:b.R(a)};d.im=function(a){return XA(a)};
d.$classData=q({mTa:0},!1,"amf.plugins.document.vocabularies.resolution.stages.DialectReferencesResolutionStage$$anonfun$findVocabularies$2",{mTa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function C2(){D2.call(this)}C2.prototype=new c6a;C2.prototype.constructor=C2;C2.prototype.a=function(){D2.prototype.a.call(this);return this};C2.prototype.$classData=q({oTa:0},!1,"amf.plugins.document.webapi.ExternalJsonRefsPlugin$",{oTa:1,Jma:1,Kma:1,zz:1,f:1,wq:1,Fb:1});var a6a=void 0;function $0a(){}$0a.prototype=new oZ;
$0a.prototype.constructor=$0a;d=$0a.prototype;d.Ag=function(a,b){return Xh(a)?a:b.R(a)};d.Bg=function(a){return Xh(a)};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};d.$classData=q({rTa:0},!1,"amf.plugins.document.webapi.JsonSchemaPlugin$$anonfun$firstAnyShape$1",{rTa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});
function leb(a,b,c){c=a.Yya(b.ga,b.U,c,w());var e=b.JC;oL()===e?b=(new A).d((new meb).ty(b,c).sda()):qL()===e?b=(new A).d(neb(new P5,b,w(),c).U1()):(e=Jv().oG(b),e.b()?b=w():(e=e.c(),Ela()===e?b=(new j3).ty(b,c).vda():Dla()===e?b=(new j3).ty(b,c).rda():vla()===e?(b=(new j3).ty(b,c),M(),e=(new N).a(),b=r9a(b,(new Ig).P((new Q).a(),e))):Kv()===e?(b=(new oeb).ty(b,c),M(),e=(new N).a(),b=r9a(b,(new Ig).P((new Q).a(),e))):b=neb(new P5,b,(new A).d(e),c).U1(),b=(new A).d(b)));if(b.b())return w();b=b.c();
return(new A).d(peb(a,b,c))}function qeb(a){var b=z(),c=[a.Pg().te(),vt().ba];a.aya(H(b,(new J).aa(c)))}
function peb(a,b,c){var e=b.Pe().ae(pc(fc().db,G()),qd(function(){return function(a,b){var c=(new P).N(a,b);a=c.ep;b=c.rq;if(null!==a&&null!==b)return c=jd(b),c=c.b()?b.k:c.c(),a.Zb((new P).N(c,b));throw(new v).d(c);}}(a))),e=(new Qd).d(e);c.Mh.GP.X(t(new u,function(a,b){return function(a){var c=jd(a),c=c.b()?a.k:c.c();b.ta=b.ta.Zb((new P).N(c,a))}}(a,e)));a=(new dd).Qd(e.ta);return Tc(a)?(a=(new dd).Qd(e.ta).Rb.gf().kd(),c=Nl().qc,Vg(b,c,a)):b}
function reb(a,b,c){var e=a.N$(c,b,a.M$());seb(a,b,e);var f=(new yp).co(b.ga,b.U,(new Np).a(),c.Xi,w());a=a.N$(f,b,a.M$());a.up=c.up;a.Ru=c.Ru;c=zKa().oG(b);if(c.b())return w();c=c.c();f=!1;if(hSa().h(c)){var f=!0,g=b.JC,h=qL();if(null!==g&&g===h)return w()}if(f)return b=(new teb).wE(b,e),M(),e=(new N).a(),(new A).d(ueb(b,(new Ig).P((new Q).a(),e)));if(wSa().h(c))return b=(new veb).wE(b,e),M(),e=(new N).a(),(new A).d(ueb(b,(new Ig).P((new Q).a(),e)));Tv().h(c)?b=(new A).d(nUa(rUa(),b,e).vda()):Uv().h(c)?
b=(new A).d(nUa(rUa(),b,e).rda()):DSa().h(c)?b=(new A).d((new web).wE(b,a).sda()):c&&c.$classData&&c.$classData.v.UF?(a=xeb,f=new yeb,f.Yd=b,f.DO=c,f.va=e,nO.prototype.qs.call(f,e),b=a(f)):b=w();return b}function zeb(){return H(z(),(new J).aa("application/raml application/raml+json application/raml+yaml text/yaml text/x-yaml application/yaml application/x-yaml text/vnd.yaml".split(" ")))}function Aeb(a){var b=z(),c=[a.Pg().te(),mc().ba];a.bya(H(b,(new J).aa(c)))}
function Beb(a,b,c,e,f,g){b.X(t(new u,function(a,b,c,e,f){return function(g){g=g.Ea;if(mG(g))if(b.X(t(new u,function(a,b){return function(a){return CKa(b,a)}}(a,c))),w()===e){R();var E=B(f.g,Wl().Sd).G;g.cw=(new A).d(Th(0,E.b()?null:E.c()))}else g.cw=e}}(a,f,g,c,e)))}
function seb(a,b,c){b.U.X(t(new u,function(a,b,c){return function(h){var k=h.Od;if(Ul(k)){var l=h.oo.yf,p=h.Lc,k=Xp(k.g,Rl().ob);h=h.Od.Pe();Beb(a,l,p,k,h,b)}else if(vd(k)||TA(k)){l=k.ue;l=l.b()?"":l.c();M();var p=(new N).a(),p=(new zp).P((new Q).a(),p),y=jd(k),y=y.b()?c.ga:y.c(),I=Ap().nc,p=Eb(p,I,y),k=Te(p,k.k);M();p=(new N).a();p=(new Bp).P((new Q).a(),p);y=Wl().Sd;p=Eb(p,y,l);l=0<=(l.length|0)&&"#%"===l.substring(0,2)?"application/yaml":"application/json";y=Wl().Md;l=Eb(p,y,l);p=Rl().ob;p=ff(k,
p,l);l=h.oo.yf;k=w();p=Xp(p.g,Rl().ob);h=h.Od.Pe();Beb(a,l,k,p,h,b)}}}(a,c,b)))}function Q5(){}Q5.prototype=new r;Q5.prototype.constructor=Q5;d=Q5.prototype;d.a=function(){return this};d.L=function(){return"CollectionFormatFromItems"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Lma)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
var Ceb=q({Lma:0},!1,"amf.plugins.document.webapi.annotations.CollectionFormatFromItems",{Lma:1,f:1,lf:1,A:1,w:1,q:1,n:1});Q5.prototype.$classData=Ceb;function R5(){}R5.prototype=new r;R5.prototype.constructor=R5;d=R5.prototype;d.a=function(){return this};d.L=function(){return"DefaultPayload"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Mma)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
var ETa=q({Mma:0},!1,"amf.plugins.document.webapi.annotations.DefaultPayload",{Mma:1,f:1,lf:1,A:1,w:1,q:1,n:1});R5.prototype.$classData=ETa;function SO(){}SO.prototype=new r;SO.prototype.constructor=SO;d=SO.prototype;d.a=function(){return this};d.L=function(){return"EmptyPayload"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Nma)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
var lsa=q({Nma:0},!1,"amf.plugins.document.webapi.annotations.EmptyPayload",{Nma:1,f:1,lf:1,A:1,w:1,q:1,n:1});SO.prototype.$classData=lsa;var DTa=q({ATa:0},!1,"amf.plugins.document.webapi.annotations.EndPointBodyParameter",{ATa:1,f:1,lf:1,A:1,w:1,q:1,n:1});function eh(){this.Ik=null}eh.prototype=new r;eh.prototype.constructor=eh;d=eh.prototype;d.L=function(){return"GeneratedJSONSchema"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.G7?this.Ik===a.Ik:!1};
d.K=function(a){switch(a){case 0:return this.Ik;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.e=function(a){this.Ik=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var Deb=q({G7:0},!1,"amf.plugins.document.webapi.annotations.GeneratedJSONSchema",{G7:1,f:1,lf:1,A:1,w:1,q:1,n:1});eh.prototype.$classData=Deb;function oh(){this.Ik=null}oh.prototype=new r;oh.prototype.constructor=oh;d=oh.prototype;d.L=function(){return"GeneratedRamlDatatype"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.H7?this.Ik===a.Ik:!1};d.K=function(a){switch(a){case 0:return this.Ik;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.e=function(a){this.Ik=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var Eeb=q({H7:0},!1,"amf.plugins.document.webapi.annotations.GeneratedRamlDatatype",{H7:1,f:1,lf:1,A:1,w:1,q:1,n:1});oh.prototype.$classData=Eeb;function V2(){}V2.prototype=new r;
V2.prototype.constructor=V2;d=V2.prototype;d.a=function(){return this};d.L=function(){return"Inferred"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Qma)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var upa=q({Qma:0},!1,"amf.plugins.document.webapi.annotations.Inferred",{Qma:1,f:1,lf:1,A:1,w:1,q:1,n:1});V2.prototype.$classData=upa;function m3(){}m3.prototype=new r;
m3.prototype.constructor=m3;d=m3.prototype;d.a=function(){return this};d.L=function(){return"InlineDefinition"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Rma)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var Feb=q({Rma:0},!1,"amf.plugins.document.webapi.annotations.InlineDefinition",{Rma:1,f:1,lf:1,A:1,w:1,q:1,n:1});m3.prototype.$classData=Feb;function Jg(){}
Jg.prototype=new r;Jg.prototype.constructor=Jg;d=Jg.prototype;d.a=function(){return this};d.L=function(){return"JSONSchemaRoot"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.I7)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var Y0a=q({I7:0},!1,"amf.plugins.document.webapi.annotations.JSONSchemaRoot",{I7:1,f:1,lf:1,A:1,w:1,q:1,n:1});Jg.prototype.$classData=Y0a;
function S5(){}S5.prototype=new r;S5.prototype.constructor=S5;d=S5.prototype;d.a=function(){return this};d.L=function(){return"SchemaIsJsonSchema"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Xma)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var Qca=q({Xma:0},!1,"amf.plugins.document.webapi.annotations.SchemaIsJsonSchema",{Xma:1,f:1,lf:1,A:1,w:1,q:1,n:1});
S5.prototype.$classData=Qca;function lla(){}lla.prototype=new oZ;lla.prototype.constructor=lla;d=lla.prototype;d.a=function(){return this};d.Un=function(a,b){return y5(a)?a:b.R(a)};d.Xa=function(a){return this.jo(a)};d.Za=function(a,b){return this.Un(a,b)};d.jo=function(a){return y5(a)};d.$classData=q({cUa:0},!1,"amf.plugins.document.webapi.contexts.RamlScalarEmitter$$anonfun$1",{cUa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Geb(){this.eO=this.bea=null}Geb.prototype=new oZ;
Geb.prototype.constructor=Geb;d=Geb.prototype;d.Xba=function(a){return Ul(a.Od)||e1(a.Od)};function Heb(a,b){var c=new Geb;c.bea=a;c.eO=b;return c}d.Xa=function(a){return this.Xba(a)};d.Za=function(a,b){return this.n$(a,b)};d.n$=function(a,b){return Ul(a.Od)||e1(a.Od)?(a=a.Od,b1a(lFa(),a,this.bea,this.eO)):b.R(a)};d.$classData=q({iUa:0},!1,"amf.plugins.document.webapi.contexts.WebApiContext$$anonfun$1",{iUa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Ieb(){}Ieb.prototype=new oZ;
Ieb.prototype.constructor=Ieb;d=Ieb.prototype;d.Xba=function(a){return Ul(a.Od)||e1(a.Od)};d.Xa=function(a){return this.Xba(a)};d.Za=function(a,b){return this.n$(a,b)};d.n$=function(a,b){return Ul(a.Od)?a.Od:e1(a.Od)?a.Od:b.R(a)};d.$classData=q({jUa:0},!1,"amf.plugins.document.webapi.contexts.WebApiContext$$anonfun$obtainFragment$3",{jUa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Jeb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Aa=this.ja=this.g=null}Jeb.prototype=new r;
Jeb.prototype.constructor=Jeb;d=Jeb.prototype;d.a=function(){Keb=this;Iq(this);bT(this);H0(this);this.g=Rl().g;Di();var a=C().bb,a=(new J).aa([D(new F,a,"AnnotationTypeDeclarationFragment")]),b=Di().s,a=Ei(a,b),b=Rl().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().bb,"Annotation Type Fragment","Fragment encoding a RAML annotation type",G());return this};d.Yc=function(){};d.yn=function(a){this.ug=a};d.Bn=function(a){this.qc=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};
d.An=function(a){this.jg=a};d.Zc=function(){M();var a=(new N).a();return(new c4).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.Qp=function(a){this.ob=a};d.zn=function(a){this.nc=a};d.$classData=q({mUa:0},!1,"amf.plugins.document.webapi.metamodel.FragmentsTypesModels$AnnotationTypeDeclarationFragmentModel$",{mUa:1,f:1,xq:1,tn:1,Oc:1,ic:1,Xc:1});var Keb=void 0;function dfa(){Keb||(Keb=(new Jeb).a());return Keb}
function Leb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Aa=this.ja=this.g=null}Leb.prototype=new r;Leb.prototype.constructor=Leb;d=Leb.prototype;d.a=function(){Meb=this;Iq(this);bT(this);H0(this);this.g=Rl().g;Di();var a=C().Gb,a=(new J).aa([D(new F,a,"DataTypeFragment")]),b=Di().s,a=Ei(a,b),b=Rl().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().Gb,"Data Type Fragment","Fragment encoding a RAML data type",G());return this};d.Bn=function(a){this.qc=a};d.yn=function(a){this.ug=a};
d.Yc=function(){};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.An=function(a){this.jg=a};d.Zc=function(){M();var a=(new N).a();return(new dQ).P((new Q).a(),a)};d.Qp=function(a){this.ob=a};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.zn=function(a){this.nc=a};d.$classData=q({nUa:0},!1,"amf.plugins.document.webapi.metamodel.FragmentsTypesModels$DataTypeFragmentModel$",{nUa:1,f:1,xq:1,tn:1,Oc:1,ic:1,Xc:1});var Meb=void 0;
function efa(){Meb||(Meb=(new Leb).a());return Meb}function Neb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Aa=this.ja=this.g=null}Neb.prototype=new r;Neb.prototype.constructor=Neb;d=Neb.prototype;
d.a=function(){Oeb=this;Iq(this);bT(this);H0(this);this.g=Rl().g;Di();var a=C().bb,a=(new J).aa([D(new F,a,"UserDocumentationFragment")]),b=Di().s,a=Ei(a,b),b=Rl().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().bb,"Documentation Item Fragment","Fragment encoding a RAML documentation item",G());return this};d.Yc=function(){};d.yn=function(a){this.ug=a};d.Bn=function(a){this.qc=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.An=function(a){this.jg=a};
d.Zc=function(){M();var a=(new N).a();return(new d4).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.Qp=function(a){this.ob=a};d.zn=function(a){this.nc=a};d.$classData=q({oUa:0},!1,"amf.plugins.document.webapi.metamodel.FragmentsTypesModels$DocumentationItemFragmentModel$",{oUa:1,f:1,xq:1,tn:1,Oc:1,ic:1,Xc:1});var Oeb=void 0;function gfa(){Oeb||(Oeb=(new Neb).a());return Oeb}
function Peb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Aa=this.ja=this.g=null}Peb.prototype=new r;Peb.prototype.constructor=Peb;d=Peb.prototype;d.a=function(){Qeb=this;Iq(this);bT(this);H0(this);this.g=Rl().g;Di();var a=C().bb,a=(new J).aa([D(new F,a,"NamedExampleFragment")]),b=Di().s,a=Ei(a,b),b=Rl().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().bb,"Named Example Fragment","Fragment encoding a RAML named example",G());return this};d.Yc=function(){};d.yn=function(a){this.ug=a};
d.Bn=function(a){this.qc=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.An=function(a){this.jg=a};d.Zc=function(){M();var a=(new N).a();return(new e4).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.Qp=function(a){this.ob=a};d.zn=function(a){this.nc=a};d.$classData=q({pUa:0},!1,"amf.plugins.document.webapi.metamodel.FragmentsTypesModels$NamedExampleFragmentModel$",{pUa:1,f:1,xq:1,tn:1,Oc:1,ic:1,Xc:1});var Qeb=void 0;
function hfa(){Qeb||(Qeb=(new Peb).a());return Qeb}function Reb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Aa=this.ja=this.g=null}Reb.prototype=new r;Reb.prototype.constructor=Reb;d=Reb.prototype;d.a=function(){Seb=this;Iq(this);bT(this);H0(this);this.g=Rl().g;Di();var a=C().bb,a=(new J).aa([D(new F,a,"ResourceTypeFragment")]),b=Di().s,a=Ei(a,b),b=Rl().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().bb,"Resource Type Fragment","Fragment encoding a RAML resource type",G());return this};
d.Yc=function(){};d.yn=function(a){this.ug=a};d.Bn=function(a){this.qc=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.An=function(a){this.jg=a};d.Zc=function(){M();var a=(new N).a();return(new f4).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.Qp=function(a){this.ob=a};d.zn=function(a){this.nc=a};d.$classData=q({qUa:0},!1,"amf.plugins.document.webapi.metamodel.FragmentsTypesModels$ResourceTypeFragmentModel$",{qUa:1,f:1,xq:1,tn:1,Oc:1,ic:1,Xc:1});
var Seb=void 0;function ifa(){Seb||(Seb=(new Reb).a());return Seb}function Teb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Aa=this.ja=this.g=null}Teb.prototype=new r;Teb.prototype.constructor=Teb;d=Teb.prototype;
d.a=function(){Ueb=this;Iq(this);bT(this);H0(this);this.g=Rl().g;Di();var a=C().oc,a=(new J).aa([D(new F,a,"SecuritySchemeFragment")]),b=Di().s,a=Ei(a,b),b=Rl().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().oc,"Security Scheme Fragment","Fragment encoding a RAML security scheme",G());return this};d.Yc=function(){};d.yn=function(a){this.ug=a};d.Bn=function(a){this.qc=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.An=function(a){this.jg=a};
d.Zc=function(){M();var a=(new N).a();return(new g4).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.Qp=function(a){this.ob=a};d.zn=function(a){this.nc=a};d.$classData=q({rUa:0},!1,"amf.plugins.document.webapi.metamodel.FragmentsTypesModels$SecuritySchemeFragmentModel$",{rUa:1,f:1,xq:1,tn:1,Oc:1,ic:1,Xc:1});var Ueb=void 0;function jfa(){Ueb||(Ueb=(new Teb).a());return Ueb}function Veb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Aa=this.ja=this.g=null}
Veb.prototype=new r;Veb.prototype.constructor=Veb;d=Veb.prototype;d.a=function(){Web=this;Iq(this);bT(this);H0(this);this.g=Rl().g;Di();var a=C().bb,a=(new J).aa([D(new F,a,"TraitFragment")]),b=Di().s,a=Ei(a,b),b=Rl().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().bb,"Trait Fragment","Fragment encoding a RAML trait",G());return this};d.Yc=function(){};d.yn=function(a){this.ug=a};d.Bn=function(a){this.qc=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};
d.An=function(a){this.jg=a};d.Zc=function(){M();var a=(new N).a();return(new h4).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.Qp=function(a){this.ob=a};d.zn=function(a){this.nc=a};d.$classData=q({sUa:0},!1,"amf.plugins.document.webapi.metamodel.FragmentsTypesModels$TraitFragmentModel$",{sUa:1,f:1,xq:1,tn:1,Oc:1,ic:1,Xc:1});var Web=void 0;function kfa(){Web||(Web=(new Veb).a());return Web}function T5(){this.jd=null}T5.prototype=new F2;T5.prototype.constructor=T5;
T5.prototype.a=function(){WU.prototype.e.call(this,"%RAML 0.8");return this};T5.prototype.$classData=q({UUa:0},!1,"amf.plugins.document.webapi.parser.RamlHeader$Raml08$",{UUa:1,kv:1,f:1,A:1,w:1,q:1,n:1});var Xeb=void 0;function hSa(){Xeb||(Xeb=(new T5).a());return Xeb}function U5(){this.jd=null}U5.prototype=new F2;U5.prototype.constructor=U5;U5.prototype.a=function(){WU.prototype.e.call(this,"%RAML 1.0");return this};
U5.prototype.$classData=q({VUa:0},!1,"amf.plugins.document.webapi.parser.RamlHeader$Raml10$",{VUa:1,kv:1,f:1,A:1,w:1,q:1,n:1});var Yeb=void 0;function wSa(){Yeb||(Yeb=(new U5).a());return Yeb}function V5(){this.jd=null}V5.prototype=new F2;V5.prototype.constructor=V5;V5.prototype.a=function(){WU.prototype.e.call(this,"%RAML 1.0 Extension");return this};V5.prototype.$classData=q({WUa:0},!1,"amf.plugins.document.webapi.parser.RamlHeader$Raml10Extension$",{WUa:1,kv:1,f:1,A:1,w:1,q:1,n:1});var Zeb=void 0;
function Uv(){Zeb||(Zeb=(new V5).a());return Zeb}function W5(){this.jd=null}W5.prototype=new F2;W5.prototype.constructor=W5;W5.prototype.a=function(){WU.prototype.e.call(this,"%RAML 1.0 Library");return this};W5.prototype.$classData=q({XUa:0},!1,"amf.plugins.document.webapi.parser.RamlHeader$Raml10Library$",{XUa:1,kv:1,f:1,A:1,w:1,q:1,n:1});var $eb=void 0;function DSa(){$eb||($eb=(new W5).a());return $eb}function X5(){this.jd=null}X5.prototype=new F2;X5.prototype.constructor=X5;
X5.prototype.a=function(){WU.prototype.e.call(this,"%RAML 1.0 Overlay");return this};X5.prototype.$classData=q({YUa:0},!1,"amf.plugins.document.webapi.parser.RamlHeader$Raml10Overlay$",{YUa:1,kv:1,f:1,A:1,w:1,q:1,n:1});var afb=void 0;function Tv(){afb||(afb=(new X5).a());return afb}function AIa(){}AIa.prototype=new oZ;AIa.prototype.constructor=AIa;d=AIa.prototype;d.Ag=function(a,b){return jn(a)?a:b.R(a)};d.Bg=function(a){return jn(a)};d.Bu=function(){return this};d.Xa=function(a){return this.Bg(a)};
d.Za=function(a,b){return this.Ag(a,b)};d.$classData=q({kVa:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$$anonfun$findCallback$2",{kVa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function QIa(){}QIa.prototype=new oZ;QIa.prototype.constructor=QIa;d=QIa.prototype;d.Ag=function(a,b){return Zn(a)?a:b.R(a)};d.Bg=function(a){return Zn(a)};d.Bu=function(){return this};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};
d.$classData=q({lVa:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$$anonfun$findExample$2",{lVa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function yIa(){}yIa.prototype=new oZ;yIa.prototype.constructor=yIa;d=yIa.prototype;d.Ag=function(a,b){return dn(a)?a:b.R(a)};d.Bg=function(a){return dn(a)};d.Bu=function(){return this};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};
d.$classData=q({mVa:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$$anonfun$findHeader$2",{mVa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function KIa(){}KIa.prototype=new oZ;KIa.prototype.constructor=KIa;d=KIa.prototype;d.Ag=function(a,b){return dn(a)?a:b.R(a)};d.Bg=function(a){return dn(a)};d.Bu=function(){return this};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};
d.$classData=q({nVa:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$$anonfun$findParameter$2",{nVa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function SIa(){}SIa.prototype=new oZ;SIa.prototype.constructor=SIa;d=SIa.prototype;d.Ag=function(a,b){return wn(a)?a:b.R(a)};d.Bg=function(a){return wn(a)};d.Bu=function(){return this};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};
d.$classData=q({oVa:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$$anonfun$findPayload$2",{oVa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function IIa(){}IIa.prototype=new oZ;IIa.prototype.constructor=IIa;d=IIa.prototype;d.Ag=function(a,b){return zn(a)?a:b.R(a)};d.Bg=function(a){return zn(a)};d.Bu=function(){return this};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};
d.$classData=q({pVa:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$$anonfun$findRequestBody$2",{pVa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function DIa(){}DIa.prototype=new oZ;DIa.prototype.constructor=DIa;d=DIa.prototype;d.Ag=function(a,b){return Cn(a)?a:b.R(a)};d.Bg=function(a){return Cn(a)};d.Bu=function(){return this};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};
d.$classData=q({qVa:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$$anonfun$findResponse$2",{qVa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function sIa(){}sIa.prototype=new oZ;sIa.prototype.constructor=sIa;d=sIa.prototype;d.Ag=function(a,b){return qo(a)?a:b.R(a)};d.Bg=function(a){return qo(a)};d.Bu=function(){return this};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};
d.$classData=q({rVa:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$$anonfun$findTemplatedLink$2",{rVa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function bfb(){}bfb.prototype=new r;bfb.prototype.constructor=bfb;d=bfb.prototype;d.L=function(){return"EmptyTarget"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"EmptyTarget"};d.X=function(){};d.y=function(){return-1432904418};d.M=function(){return Z(this)};function yO(){return new bfb}
d.$classData=q({BVa:0},!1,"amf.plugins.document.webapi.parser.spec.common.SpecParserOps$EmptyTarget$",{BVa:1,f:1,Kna:1,A:1,w:1,q:1,n:1});function Fma(){this.l=this.ta=null}Fma.prototype=new r;Fma.prototype.constructor=Fma;d=Fma.prototype;d.L=function(){return"SingleTarget"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.S7&&a.l===this.l){var b=this.ta;a=a.ta;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.ta;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.X=function(a){a.R(this.ta)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({S7:0},!1,"amf.plugins.document.webapi.parser.spec.common.SpecParserOps$SingleTarget",{S7:1,f:1,Kna:1,A:1,w:1,q:1,n:1});function cfb(){this.Pa=null}cfb.prototype=new oZ;cfb.prototype.constructor=cfb;d=cfb.prototype;
d.sp=function(a){if(Eq(a))return(new A).d(a);if(dfb(a))return(new A).d(VSa(a));if(a&&a.$classData&&a.$classData.v.h7)return(new A).d(WSa(a));var b=this.Pa.n_,c=wo().ey,e=this.Pa.xl.k,f=w();a="Unsupported seq of emitter type in data node emitters "+a;var g=Zb(this.Pa.xl.ha(),n(Fd)),h=Yb(this.Pa.xl);b.Hc(c.k,e,f,a,g,xc().tb,h);return w()};function efb(a){var b=new cfb;if(null===a)throw Lb(Mb(),null);b.Pa=a;return b}d.xp=function(a){return Eq(a)||dfb(a)||!0};d.Xa=function(a){return this.xp(a)};
d.Za=function(a,b){return this.sp(a,b)};d.$classData=q({HVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.DataNodeEmitter$$anonfun$1",{HVa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function ffb(){}ffb.prototype=new oZ;ffb.prototype.constructor=ffb;d=ffb.prototype;d.zh=function(a){return Kr(a)};d.ph=function(a,b){return Kr(a)?Ke(M(),a.Da):b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};
d.$classData=q({KVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.DataPropertyEmitter$$anonfun$2",{KVa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Eca(){}Eca.prototype=new oZ;Eca.prototype.constructor=Eca;d=Eca.prototype;d.Wf=function(a){return Zn(a)};d.Sf=function(a,b){return Zn(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};
d.$classData=q({NVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.ExamplesEmitter$$anonfun$3",{NVa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function t6a(){}t6a.prototype=new oZ;t6a.prototype.constructor=t6a;d=t6a.prototype;d.Wf=function(a){return nn(a)};d.Sf=function(a,b){return nn(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};d.oba=function(){return this};
d.$classData=q({OVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.ExtendsEmitter$$anonfun$1",{OVa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function w6a(){}w6a.prototype=new oZ;w6a.prototype.constructor=w6a;d=w6a.prototype;d.Wf=function(a){return pn(a)};d.Sf=function(a,b){return pn(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};d.oba=function(){return this};
d.$classData=q({PVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.ExtendsEmitter$$anonfun$2",{PVa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function THa(){Hw.call(this);this.gI=this.hU=this.ud=this.Ma=this.Mr=null}THa.prototype=new Kma;THa.prototype.constructor=THa;d=THa.prototype;d.L=function(){return"OasAnnotationTypeEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.koa){var b=this.Mr,c=a.Mr;return(null===b?null===c:b.h(c))?this.Ma===a.Ma:!1}return!1};d.K=function(a){switch(a){case 0:return this.Mr;case 1:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Xaa=function(a,b,c){this.Mr=a;this.Ma=b;this.ud=c;Hw.prototype.Yaa.call(this,a,b,c);this.hU=a.g;a=Dd(this.hU,Zl().Fc);a.b()?a=w():(a=a.c(),a=(new A).d((new Y5).qA(a,this.Ma,G(),this.ud)));this.gI=a.wa();return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({koa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasAnnotationTypeEmitter",{koa:1,Qna:1,f:1,A:1,w:1,q:1,n:1});function jJa(){}jJa.prototype=new oZ;jJa.prototype.constructor=jJa;d=jJa.prototype;
d.Wf=function(a){return Zn(a)};d.Sf=function(a,b){return Zn(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};d.$classData=q({XVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasAnyShapeEmitter$$anonfun$4",{XVa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function mV(){this.yb=this.m=this.Ea=null}mV.prototype=new r;mV.prototype.constructor=mV;d=mV.prototype;d.L=function(){return"OasCreativeWorkParser"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.qoa?Yj(this.Ea,a.Ea):!1};d.K=function(a){switch(a){case 0:return this.Ea;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Dr=function(a,b){this.Ea=a;this.m=b;return this};d.Yj=function(){null===this.yb&&this.Ig();return this.yb};d.Ig=function(){null===this.yb&&(this.yb=yO())};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.HH=function(){var a=this.Ea,b=Pc(),a=L(a,b,this.m);Sqa||(Sqa=(new gB).a());var b=this.Ea,b=Lr(M(),b),c=(new Q).a(),b=(new r4).P(c,b),c=(new K).Y(a),e=Gi().Jf;Bh(c,"url",Ch(Dh(this,e,this.m),b));c=(new K).Y(a);e=Gi().fb;Bh(c,"description",Ch(Dh(this,e,this.m),b));var c=(new K).Y(a),e=Hv((new Cf).e("title")),f=Gi().fu;Bh(c,e,Ch(Dh(this,f,this.m),b));jx(new kx,b,a,G(),this.m).Pc();return b};
d.$classData=q({qoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasCreativeWorkParser",{qoa:1,f:1,ig:1,A:1,w:1,q:1,n:1});function O6a(){}O6a.prototype=new oZ;O6a.prototype.constructor=O6a;d=O6a.prototype;d.Wf=function(a){return Fn(a)};d.Sf=function(a,b){return Fn(a)?(b=B(a.g,En().$).G,b=b.b()?null:b.c(),a=B(a.g,En().fb).G,Bv(new Cv,b,a.b()?null:a.c(),O().Wa,Gd())):b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};
d.$classData=q({$Va:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasScopeValuesEmitters$$anonfun$emitters$32",{$Va:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function gfb(){}gfb.prototype=new oZ;gfb.prototype.constructor=gfb;d=gfb.prototype;d.sp=function(a,b){return Eq(a)?a:b.R(a)};d.xp=function(a){return Eq(a)};d.Xa=function(a){return this.xp(a)};d.Za=function(a,b){return this.sp(a,b)};
d.$classData=q({bWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTupleItemsShapeEmitter$$anonfun$5",{bWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function $6a(){}$6a.prototype=new oZ;$6a.prototype.constructor=$6a;d=$6a.prototype;d.sp=function(a,b){return Eq(a)?a:b.R(a)};d.xp=function(a){return Eq(a)};d.Xa=function(a){return this.xp(a)};d.Za=function(a,b){return this.sp(a,b)};
d.$classData=q({cWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeEmitter$$anonfun$entries$2",{cWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function hfb(){}hfb.prototype=new oZ;hfb.prototype.constructor=hfb;d=hfb.prototype;d.ye=function(a,b){if(x(a)){var c=a.i;if(null!==c)return c}return b.R(a)};d.uy=function(){return this};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)&&null!==a.i?!0:!1};
d.$classData=q({eWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$$anonfun$1",{eWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function ifb(){}ifb.prototype=new oZ;ifb.prototype.constructor=ifb;d=ifb.prototype;d.Yba=function(a){a=a.pb().nb;var b=O().ua;return a===b};d.o$=function(a,b){var c=a.pb().nb,e=O().ua;return c===e?a:b.R(a)};d.Xa=function(a){return this.Yba(a)};d.Za=function(a,b){return this.o$(a,b)};
d.$classData=q({gWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$TupleShapeParser$$anonfun$2",{gWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function zna(){}zna.prototype=new oZ;zna.prototype.constructor=zna;d=zna.prototype;d.sp=function(a,b){return Eq(a)?a:b.R(a)};d.xp=function(a){return Eq(a)};d.Xa=function(a){return this.xp(a)};d.Za=function(a,b){return this.sp(a,b)};
d.$classData=q({hWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypePartCollector$$anonfun$emitter$4",{hWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function jfb(){px.call(this);this.ud=this.Ma=this.Eb=this.mn=null}jfb.prototype=new Ana;jfb.prototype.constructor=jfb;d=jfb.prototype;d.L=function(){return"Raml08SecuritySchemeEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Dpa){var b=this.mn,c=a.mn;(null===b?null===c:b.h(c))?(b=this.Eb,c=a.Eb,b=null===b?null===c:b.h(c)):b=!1;return b?this.Ma===a.Ma:!1}return!1};d.K=function(a){switch(a){case 0:return this.mn;case 1:return this.Eb;case 2:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.uA=function(a,b,c,e){this.mn=a;this.Eb=b;this.Ma=c;this.ud=e;px.prototype.sBa.call(this,a,b,c,e);return this};d.y=function(){return Y(this)};
d.nza=function(){return yU(function(a){return function(b,c,e,f){return(new R2).QU(b,c,e,f,a.ud)}}(this))};d.M=function(){return Z(this)};d.$classData=q({Dpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08SecuritySchemeEmitter",{Dpa:1,BWa:1,f:1,A:1,w:1,q:1,n:1});function kfb(){this.Iw=this.o=this.ra=null}kfb.prototype=new r;kfb.prototype.constructor=kfb;d=kfb.prototype;d.L=function(){return"Raml08TypeEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Epa){var b=this.ra,c=a.ra;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=!1,b=null,c=this.ra;if(null!==c&&yb(c).qa())return b=z(),c=[this.Iw.gL(c)],H(b,(new J).aa(c));if(null!==c&&B(c.ca(),Pg().ld).Cd(t(new u,function(){return function(a){return Yh(a.ha(),n(Zh))}}(this))))return lfb(this);if(Xh(c)&&(a=!0,b=c,Zb(b.ha(),n(Zh)).qa()))return c=z(),b=[A7a(new a3,b,this.o,G(),"schema",this.Iw)],H(c,(new J).aa(b));if(di(c))return mfb(c,this.o,this.Iw).Ua();if(Vh(c)){b=B(c.ea,Wh().wf);if(di(b))return c=mfb(b,this.o,this.Iw).Ua(),b=Bv(new Cv,"repeat","true",
O().ui,Gd()),a=z(),c.hg(b,a.s);if(Si(b))return c=(new pi).P(b.ea,b.ab),b=fra(tB(),"file").pa().c(),a=xh().af,c=Eb(c,a,b),c=mfb(c,this.o,this.Iw).Ua(),b=Bv(new Cv,"repeat","true",O().ui,Gd()),a=z(),c.hg(b,a.s);c=z();b=[(new Z5).DK(b,"Cannot emit array shape with items "+ka(b).u()+" in raml 08")];return H(c,(new J).aa(b))}if(Ni(c))return b=z(),c=[lTa(this,c)],H(b,(new J).aa(c));if(ai(c))return b=z(),c=[z7a(new $2,c,this.o,G(),this.Iw)],H(b,(new J).aa(c));if(Ti(c))return G7a(new c3,c,this.o,H(z(),G()),
this.Iw).Ua();if(Si(c))return c=(new pi).P(c.ea,c.ab),b=fra(tB(),"file").pa().c(),a=xh().af,c=Eb(c,a,b),mfb(c,this.o,this.Iw).Ua();if(a)return c=b,b=this.o,a=G(),(new BV).wy(c,b,a,this.Iw).Ua();b=z();c=[(new Z5).DK(c,"Unsupported shape class for emit raml 08 spec "+ka(c).u()+"`")];return H(b,(new J).aa(c))};d.y=function(){return Y(this)};
function lfb(a){var b=B(a.ra.ca(),Pg().ld),b=hd(b,new nfb).c(),c=new tV;if(null===a)throw Lb(Mb(),null);c.l=a;c.xaa=b;b=H(Wg(),G());vh(b,c);c=a.ra;if(Xh(c)&&B(c.ca(),th().Vc).Fa()){var e=a.o,f=G();Bca(a,c,b,e,f,a.Iw)}return b}d.M=function(){return Z(this)};d.$classData=q({Epa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08TypeEmitter",{Epa:1,f:1,Dz:1,A:1,w:1,q:1,n:1});function kTa(){}kTa.prototype=new oZ;kTa.prototype.constructor=kTa;d=kTa.prototype;d.LE=function(a){return Xh(a)};
d.Xa=function(a){return this.LE(a)};d.Za=function(a,b){return this.WD(a,b)};d.WD=function(a,b){return Xh(a)?a:b.R(a)};d.$classData=q({kWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08TypeEmitter$$anon$3$$anonfun$$nestedInanonfun$emit$135$1",{kWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function nfb(){}nfb.prototype=new oZ;nfb.prototype.constructor=nfb;d=nfb.prototype;d.LE=function(a){return null!==a&&Yh(a.ha(),n(Zh))?!0:!1};d.Xa=function(a){return this.LE(a)};
d.Za=function(a,b){return this.WD(a,b)};d.WD=function(a,b){return null!==a&&Yh(a.ha(),n(Zh))?a:b.R(a)};d.$classData=q({lWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08TypeEmitter$$anonfun$6",{lWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function $5(){px.call(this);this.ud=this.Ma=this.Eb=this.mn=null}$5.prototype=new Ana;$5.prototype.constructor=$5;d=$5.prototype;d.L=function(){return"Raml10SecuritySchemeEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Npa){var b=this.mn,c=a.mn;(null===b?null===c:b.h(c))?(b=this.Eb,c=a.Eb,b=null===b?null===c:b.h(c)):b=!1;return b?this.Ma===a.Ma:!1}return!1};d.K=function(a){switch(a){case 0:return this.mn;case 1:return this.Eb;case 2:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.uA=function(a,b,c,e){this.mn=a;this.Eb=b;this.Ma=c;this.ud=e;px.prototype.sBa.call(this,a,b,c,e);return this};d.y=function(){return Y(this)};
d.nza=function(){return yU(function(a){return function(b,c,e,f){return(new R2).QU(b,c,e,f,a.ud)}}(this))};d.M=function(){return Z(this)};d.$classData=q({Npa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml10SecuritySchemeEmitter",{Npa:1,BWa:1,f:1,A:1,w:1,q:1,n:1});function x7a(){this.Pa=null}x7a.prototype=new oZ;x7a.prototype.constructor=x7a;d=x7a.prototype;d.pba=function(a){if(null===a)throw Lb(Mb(),null);this.Pa=a;return this};d.Xa=function(a){return this.im(a)};
d.Za=function(a,b){return this.am(a,b)};d.am=function(a,b){if(Ul(a)){var c=Xp(a.g,Rl().ob).k,e=qda(this.Pa.ra),e=e.b()?"":e.c();if(c===e)return a}return b.R(a)};d.im=function(a){if(Ul(a)){a=Xp(a.g,Rl().ob).k;var b=qda(this.Pa.ra),b=b.b()?"":b.c();if(a===b)return!0}return!1};d.$classData=q({oWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml10TypeEmitter$$anonfun$emitters$3",{oWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function H7a(){}H7a.prototype=new oZ;H7a.prototype.constructor=H7a;d=H7a.prototype;
d.sp=function(a,b){Eq(a)||(Fq(a)?(b=new yV,b.uga=a,a=b):a=b.R(a));return a};d.pba=function(){return this};d.xp=function(a){return Eq(a)||Fq(a)};d.Xa=function(a){return this.xp(a)};d.Za=function(a,b){return this.sp(a,b)};d.$classData=q({pWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml10TypeEmitter$$anonfun$entries$1",{pWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function ofb(){Hw.call(this);this.gI=this.hU=this.ud=this.Ma=this.Mr=null}ofb.prototype=new Kma;ofb.prototype.constructor=ofb;
d=ofb.prototype;d.L=function(){return"RamlAnnotationTypeEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Tpa){var b=this.Mr,c=a.Mr;return(null===b?null===c:b.h(c))?this.Ma===a.Ma:!1}return!1};d.K=function(a){switch(a){case 0:return this.Mr;case 1:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function sSa(a,b,c){var e=new ofb;e.Mr=a;e.Ma=b;e.ud=c;Hw.prototype.Yaa.call(e,a,b,c);e.hU=a.g;a=Dd(e.hU,Zl().Fc);if(a.b())a=w();else{c=a.c();a=!1;b=null;c=Wa().Ia(c.t.t);a:{if(x(c)&&(a=!0,b=c,c=b.i,Xh(c))){a=d3(new Z2,c,e.Ma,G(),G(),e.ud).Ua();if(!a.Ng(t(new u,function(){return function(a){return!!(a&&a.$classData&&a.$classData.v.Yeb)}}(e)))){if(!a.Ng(t(new u,function(){return function(a){return Eq(a)}}(e))))throw Lb(Mb(),(new Nb).e("IllegalTypeDeclarations found: "+a));b=new pfb;c=z();a=a.$b(b,
c.s)}break a}if(a&&(c=b.i,no(c))){a=(new rx).QO(c,e.Ma,G(),e.ud).Ua();break a}if(a){var f=b.i;a=e.ud.jc;b=wo().ey;c=e.Mr.k;var g=w(),h=Zb(f.ha(),n(Fd)),f=f.Yb();a.Hc(b.k,c,g,"Cannot emit raml type for a shape that is not an AnyShape",h,xc().tb,f)}a=G()}a=(new A).d(a)}e.gI=x(a)?a.i:G();return e}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Tpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlAnnotationTypeEmitter",{Tpa:1,Qna:1,f:1,A:1,w:1,q:1,n:1});
function pfb(){}pfb.prototype=new oZ;pfb.prototype.constructor=pfb;d=pfb.prototype;d.sp=function(a,b){return Eq(a)?a:b.R(a)};d.xp=function(a){return Eq(a)};d.Xa=function(a){return this.xp(a)};d.Za=function(a,b){return this.sp(a,b)};d.$classData=q({sWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlAnnotationTypeEmitter$$anonfun$$nestedInanonfun$shapeEmitters$1$1",{sWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function j4(){this.yb=this.m=this.Ea=null}j4.prototype=new r;
j4.prototype.constructor=j4;d=j4.prototype;d.L=function(){return"RamlCreativeWorkParser"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.$pa?Yj(this.Ea,a.Ea):!1};d.K=function(a){switch(a){case 0:return this.Ea;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Dr=function(a,b){this.Ea=a;this.m=b;return this};d.Yj=function(){null===this.yb&&this.yD();return this.yb};d.yD=function(){null===this.yb&&(this.yb=yO())};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};
d.HH=function(){var a=this.Ea,b=Pc(),a=L(a,b,this.m),b=Lr(M(),this.Ea),c=(new Q).a(),b=(new r4).P(c,b),c=(new K).Y(a),e=Gi().fu;Bh(c,"title",Uh(Ch(Dh(this,e,this.m),b)));c=(new K).Y(a);e=Gi().fb;Bh(c,"content",Uh(Ch(Dh(this,e,this.m),b)));var f=this.m.Pg();if(sja(f))c="url";else if(zja(f))c=Kh((new Cf).e("url"));else{c=this.m;e=rh().UZ;f="Unexpected vendor '"+f+"'";R();var g=this.Ea,h=this.m,k=qe(),g=L(g,k,h),h=w(),k=w(),l=w();c.Hc(e.k,f,h,g,k,xc().tb,l);c="url"}e=(new K).Y(a);f=Gi().Jf;Bh(e,c,Ch(Dh(this,
f,this.m),b));Di();c=[Jw().Ev];c=(new J).aa(c);e=Di().s;jx(new kx,b,a,Ei(c,e),this.m).Pc();return b};d.$classData=q({$pa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlCreativeWorkParser",{$pa:1,f:1,ig:1,A:1,w:1,q:1,n:1});function qfb(){this.Pa=null}qfb.prototype=new oZ;qfb.prototype.constructor=qfb;d=qfb.prototype;d.Xa=function(a){return this.im(a)};d.Za=function(a,b){return this.am(a,b)};
d.am=function(a,b){if(Ul(a)){var c=Xp(a.g,Rl().ob).k,e=qda(this.Pa.ra),e=e.b()?"":e.c();if(c===e)return Xp(a.g,Rl().ob)}return b.R(a)};d.im=function(a){if(Ul(a)){a=Xp(a.g,Rl().ob).k;var b=qda(this.Pa.ra),b=b.b()?"":b.c();if(a===b)return!0}return!1};d.$classData=q({uWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlExternalSourceEmitter$$anonfun$emit$7",{uWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function O7a(){}O7a.prototype=new oZ;O7a.prototype.constructor=O7a;d=O7a.prototype;d.zh=function(a){return kG(a)};
d.ph=function(a,b){return kG(a)?a:b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};d.$classData=q({yWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlJsonSchemaExpression$RamlExternalOasLibParser$$anonfun$1",{yWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function rfb(){}rfb.prototype=new oZ;rfb.prototype.constructor=rfb;d=rfb.prototype;d.Wf=function(a){return Fn(a)};d.Sf=function(a,b){return Fn(a)?(a=B(a.g,En().$).G,s8a(new q3,a.b()?null:a.c(),O().Wa)):b.R(a)};
d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};d.$classData=q({AWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlOAuth2ScopeEmitter$$anonfun$1",{AWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Dna(){}Dna.prototype=new oZ;Dna.prototype.constructor=Dna;d=Dna.prototype;d.LE=function(a){return no(a)};d.Xa=function(a){return this.LE(a)};d.Za=function(a,b){return this.WD(a,b)};d.WD=function(a,b){return no(a)?a:b.R(a)};
d.$classData=q({CWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlShapeEmitter$$anonfun$2",{CWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Pna(){this.l=this.na=this.m=this.fX=null}Pna.prototype=new r;Pna.prototype.constructor=Pna;d=Pna.prototype;d.L=function(){return"InheritsUnionMatcher"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Oqa&&a.l===this.l){var b=this.fX;a=a.fX;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.fX;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function Ona(a,b){var c=B(a.fX.ea,lo().Ee);a=t(new u,function(a,b){return function(c){return Lna(sfb(a.l.l),c,b,!0,a.m).wa()}}(a,b));b=z();c=c.md(a,b.s).pg();return 1===c.lb()?(new A).d(c.fa()):(new A).d(Yv())}
d.$classData=q({Oqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeDetector$ShapeClassTypeDefMatcher$InheritsUnionMatcher",{Oqa:1,f:1,Fb:1,A:1,w:1,q:1,n:1});function tfb(){}tfb.prototype=new oZ;tfb.prototype.constructor=tfb;d=tfb.prototype;d.Yba=function(a){a=a.pb().nb;var b=O().ua;return a===b};d.o$=function(a,b){var c=a.pb().nb,e=O().ua;return c===e?a:b.R(a)};d.Xa=function(a){return this.Yba(a)};d.Za=function(a,b){return this.o$(a,b)};
d.$classData=q({JWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$TupleShapeParser$$anonfun$1",{JWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function tTa(){}tTa.prototype=new oZ;tTa.prototype.constructor=tTa;d=tTa.prototype;d.sp=function(a,b){return Eq(a)?a:b.R(a)};d.xp=function(a){return Eq(a)};d.Xa=function(a){return this.xp(a)};d.Za=function(a,b){return this.sp(a,b)};
d.$classData=q({LWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypePartEmitter$$anonfun$1",{LWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function ufb(){this.yb=this.m=this.aD=this.ra=null}ufb.prototype=new r;ufb.prototype.constructor=ufb;d=ufb.prototype;d.L=function(){return"ScalarFormatType"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.lra){var b=this.ra,c=a.ra;return(null===b?null===c:b.h(c))?this.aD===a.aD:!1}return!1};
d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.aD;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Yj=function(){null===this.yb&&this.Ig();return this.yb};function vfb(a,b){return sda(a.aD)?(b="int"===b||"int8"===b||"int16"===b||"int32"===b?(new A).d(jg()):"int64"===b||"long"===b?(new A).d(og()):"double"===b?(new A).d(qg()):"float"===b?(new A).d(pg()):w(),b.b()?a.aD:b.c()):a.aD}
function Hca(a,b){b=yc((new K).Y(b),"format");if(b.b())b=w();else{b=b.c();var c=b.i,e=zc(),c=L(c,e,a.m).ya;Oma||(Oma=(new Nw).a());if(!Nma(c,a.aD)){var e=a.m,f=rh().uY,g=a.ra.k,h="Format "+c+" is not valid for type "+sB(tB(),a.aD),k=w();iL(e,f,g,k,h,b.ga)}e=xh().sn;ZN(Uh(Ch(Dh(a,e,a.m),a.ra)),b);b=(new A).d(vfb(a,c))}return b.b()?a.aD:b.c()}d.Ig=function(){null===this.yb&&(this.yb=yO())};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function Ica(a,b,c){var e=new ufb;e.ra=a;e.aD=b;e.m=c;return e}d.$classData=q({lra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.ScalarFormatType",{lra:1,f:1,ig:1,A:1,w:1,q:1,n:1});function wfb(){this.Q=this.o=this.ra=null}wfb.prototype=new r;wfb.prototype.constructor=wfb;d=wfb.prototype;d.L=function(){return"SimpleTypeEmitter"};d.H=function(){return 2};function mfb(a,b,c){var e=new wfb;e.ra=a;e.o=b;e.Q=c;return e}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.nra){var b=this.ra,c=a.ra;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=this.ra.ea,b=H(Wg(),G()),c=Dd(a,xh().gd);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,"displayName",c,w()))));c=B(this.ra.ea,xh().af).G;c.b()?c=w():(c=c.c(),c=(new A).d(bra(vx(),c)));var e=Dd(a,xh().af);if(!e.b()){var f=e.c();vx();var e=B(this.ra.ea,xh().af).G,e=cra(e.b()?null:e.c()),g=Zb(this.ra.ab,n(Av)),f=x(g)?g.i.cc.Dd:jq(Cq(),f.t.E,n(Fd)),g=O().Wa,e=vh(b,Bv(new Cv,"type",e,g,f));(new A).d(e)}e=Dd(a,xh().fb);e.b()||(e=e.c(),(new A).d(vh(b,Ih(new Jh,"description",e,w()))));e=
Dd(a,xh().Kg);e.b()||(e=e.c(),(new A).d(vh(b,$ma(e.t,this.o,this.Q))));e=Dd(a,xh().vl);e.b()||(e=e.c(),(new A).d(vh(b,Gh(Hh(),"pattern",Kca(e),w(),this.Q))));e=Dd(a,xh().Cq);e.b()||(e=e.c(),(new A).d(vh(b,Ih(new Jh,"minLength",e,w()))));e=Dd(a,xh().Aq);e.b()||(e=e.c(),(new A).d(vh(b,Ih(new Jh,"maxLength",e,w()))));e=Dd(a,xh().jj);e.b()||(e=e.c(),(new A).d(vh(b,Ih(new Jh,"minimum",e,(new A).d(Qw(Rw(),c))))));e=Dd(a,xh().ij);e.b()||(e=e.c(),(new A).d(vh(b,Ih(new Jh,"maximum",e,(new A).d(Qw(Rw(),c))))));
c=B(this.ra.ea,th().Vc).pc();c.b()||(c=c.c(),vh(b,Fca("example",c,this.o,this.Q)));a=Dd(a,Pg().vh);a.b()||(a=a.c(),c=B(this.ra.ea,Pg().vh),e=this.o,f=pc(Os(),G()),c=Tw(new Uw,c,e,!1,f,this.Q.jc),a=jq(Cq(),a.t.E,n(Fd)),e=O().Wa,(new A).d(vh(b,Vw(new Ww,"default",c,e,a))));return b};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({nra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.SimpleTypeEmitter",{nra:1,f:1,Xpa:1,A:1,w:1,q:1,n:1});
function Y2(){this.yb=this.m=this.Sk=this.W=this.qb=this.ba=null}Y2.prototype=new r;Y2.prototype.constructor=Y2;d=Y2.prototype;d.L=function(){return"SimpleTypeParser"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ora){if(this.ba===a.ba)var b=this.qb,c=a.qb,b=null===b?null===c:b.h(c);else b=!1;return b&&Yj(this.W,a.W)?this.Sk===a.Sk:!1}return!1};
d.K=function(a){switch(a){case 0:return this.ba;case 1:return this.qb;case 2:return this.W;case 3:return this.Sk;default:throw(new X).e(""+a);}};
d.Hi=function(){var a=yc((new K).Y(this.W),"repeat");if(a.b())a=!1;else var a=a.c().i,b=kL(),a=!!L(a,b,this.m);if(a){a=dVa(fVa(),this.W);b=this.ba;M();var c=(new N).a(),a=Ue(a,b,c);this.qb.R(a);b=t(new u,function(a,b){return function(a){return a.Qb(b.k,a.Ub())}}(this,a));sq();var c=this.W.Bb.xb(t(new u,function(a){return function(b){b=b.Da;var c=zc();return"repeat"!==L(b,c,a.m).ya}}(this))),e=this.W.Bb.pc();e.b()?e=w():(e=e.c(),e=(new A).d(e.ga.Of));b=u7a(new Y2,"items",b,rq(0,c,e.b()?"":e.c()),this.Sk,
this.m).Hi();Wy(a,b);return a}a=yc((new K).Y(this.W),"type");a.b()?a=w():(a=a.c(),b=a.i.pb().nb,a=O().yd===b?w():Hc(Ic(a.i),zc()));if(a.b())a=o7a(this.Sk,this.ba,this.W,this.qb,this.m).wc();else a:{if(a=a.c(),b=fra(tB(),a.ya),null!==b&&(c=b.pa(),x(c)&&(c=c.i,null!==c&&(null!==b.Ba()?(e=C().Gb,c=c===Gc(D(new F,e,"file"))):c=!1,c)))){a=HW(IW(),a);b=this.ba;M();c=(new N).a();a=(new A).d(Ue(a,b,c));break a}if(null!==b&&(c=b.pa(),b=b.Ba(),x(c))){var f=c.i;if(null!==f&&null!==b){c=PW(QW(),a);e=xh().af;
f=Nh(new Oh,f,(new N).a());a=Ke(M(),a);a=Fh(c,e,f,a);b.b()||(c=b.c(),""!==c&&(b=xh().sn,c=Nh(new Oh,c,(new N).a()),M(),e=(new N).a(),Fh(a,b,c,e)));b=this.ba;M();c=(new N).a();a=(new A).d(Ue(a,b,c));break a}}b=this.m;c=rh().bJ;e="Invalid type def "+a.ya+" for "+oc().ba;f=w();Cc(b,c,"",f,e,a.ga);a=w()}a.b()?(a=PW(QW(),this.W),b=qi().Mj,c=xh().af,a=Eb(a,c,b),b=this.ba,M(),c=(new N).a(),a=Ue(a,b,c)):a=a.c();b=yc((new K).Y(this.W),"type");b.b()||(c=b.c(),b=a.ha(),tf(),c=c.Da.ga,b.Wb((new ix).Ui(zf(0,Af(Bf(),
c.vf,c.Ef,c.ag,c.fg)))));this.qb.R(a);xfb(this,a);di(a)?(b=B(a.ea,xh().af).G,b=b.b()?null:b.c()):b="#shape";b=kd(ta(),b,"#",0);b=ld((new md).vc(b));xO(this.m,a.k,this.W,"integer"===b||"float"===b||"double"===b||"long"===b||"number"===b?"numberScalarShape":"string"===b?"stringScalarShape":"dateTime"===b?"dateScalarShape":"shape");return a};d.u=function(){return U(W(),this)};
function xfb(a,b){var c=(new K).Y(a.W),e=Pg().gd;Bh(c,"displayName",Ch(Dh(a,e,a.m),b));c=(new K).Y(a.W);e=Pg().fb;Bh(c,"description",Ch(Dh(a,e,a.m),b));var c=(new K).Y(a.W),e=Pg().Kg,e=Ch(Dh(a,e,a.m),b),f=(new A).d(b.k);Bh(c,"enum",ex(e,t(new u,function(a,b){return function(c){return ina(jna(),b,c,a.m)}}(a,f))));c=yc((new K).Y(a.W),"pattern");c.b()||(c=c.c(),e=c.i,f=qe(),f=e=L(e,f,a.m),0<=(f.length|0)&&"^"===f.substring(0,1)||(e="^"+e),re(ta(),e,"$")||(e+="$"),R(),e=Th(R(),e),e=(new Eh).Vb(e,a.m).Hf(),
f=Ke(M(),c),e=Nh(new Oh,e.t,f),f=xh().vl,c=Ke(M(),c),Fh(b,f,e,c));c=(new K).Y(a.W);e=xh().Cq;Bh(c,"minLength",Ch(Dh(a,e,a.m),b));c=(new K).Y(a.W);e=xh().Aq;Bh(c,"maxLength",Ch(Dh(a,e,a.m),b));c=yc((new K).Y(a.W),"minimum");c.b()||(e=c.c(),f=(new Eh).Vb(e.i,a.m),c=xh().jj,f=f.Hf(),e=Ke(M(),e),Fh(b,c,f,e));c=yc((new K).Y(a.W),"maximum");c.b()||(e=c.c(),f=(new Eh).Vb(e.i,a.m),c=xh().ij,f=f.Hf(),e=Ke(M(),e),Fh(b,c,f,e));di(b)&&(c=B(b.ea,xh().af).G,c=c.b()?"":c.c(),e=qi().Mj,null!==c&&pa(c,e));c=(new G3).RU("example",
a.W,t(new u,function(a,b){return function(a){return b.AF(a)}}(a,b)),Aca((new lO).wA(!0,!0,!1),b),a.m).wc();c.b()||(e=c.c(),c=xh().Vc,e=H(z(),(new J).aa([e])),qf(b,c,e));c=yc((new K).Y(a.W),"default");c.b()||(c=c.c(),e=c.i.pb().nb,O().yd!==e&&(a=cx(dx(c.i,b.k,!1,!1,!1,a.m)).xl,a.b()||(a=a.c(),e=Pg().vh,f=Ke(M(),c),Fh(b,e,a,f)),fda(b,c)))}d.Yj=function(){null===this.yb&&this.Ig();return this.yb};d.Ig=function(){null===this.yb&&(this.yb=yO())};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function u7a(a,b,c,e,f,g){a.ba=b;a.qb=c;a.W=e;a.Sk=f;a.m=g;return a}d.$classData=q({ora:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.SimpleTypeParser",{ora:1,f:1,ig:1,A:1,w:1,q:1,n:1});function yfb(){}yfb.prototype=new oZ;yfb.prototype.constructor=yfb;d=yfb.prototype;d.Wf=function(a){return pn(a)};d.Sf=function(a,b){return pn(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};
d.$classData=q({SWa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.TraitExtendsEmitter$$anonfun$collect$1",{SWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function a6(){lO.call(this)}a6.prototype=new v8a;a6.prototype.constructor=a6;a6.prototype.a=function(){lO.prototype.wA.call(this,!0,!1,!1);return this};a6.prototype.$classData=q({UWa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.DefaultExampleOptions$",{UWa:1,U7:1,f:1,A:1,w:1,q:1,n:1});var zfb=void 0;
function t1a(){zfb||(zfb=(new a6).a());return zfb}function Afb(){}Afb.prototype=new oZ;Afb.prototype.constructor=Afb;d=Afb.prototype;d.sp=function(a,b){return Eq(a)?a:b.R(a)};d.xp=function(a){return Eq(a)};d.Xa=function(a){return this.xp(a)};d.Za=function(a,b){return this.sp(a,b)};d.$classData=q({VWa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.ExampleValuesEmitter$$anonfun$1",{VWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function y8a(){}y8a.prototype=new oZ;y8a.prototype.constructor=y8a;d=y8a.prototype;
d.zh=function(a){return kG(a)};d.ph=function(a,b){return kG(a)?a.Bd:b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};d.$classData=q({YWa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.NodeDataNodeParser$$anonfun$$nestedInanonfun$parse$17$1",{YWa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Bfb(){Ux.call(this);this.ud=this.Eb=this.Ma=this.Ug=this.fs=null}Bfb.prototype=new eoa;Bfb.prototype.constructor=Bfb;d=Bfb.prototype;d.L=function(){return"Oas2ServersEmitter"};
d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.zra){var b=this.fs,c=a.fs;(null===b?null===c:b.h(c))?(b=this.Ug,c=a.Ug,b=null===b?null===c:b.h(c)):b=!1;if(b&&this.Ma===a.Ma)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.fs;case 1:return this.Ug;case 2:return this.Ma;case 3:return this.Eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=cUa(hUa(),this.Ug),b=H(Wg(),G()),c=a.$n;if(!c.b()){var c=c.c().g,e=Dd(c,fn().Jf);if(!e.b()){e=e.c();ima||(ima=(new ew).a());var f;f=e.t.t.u();f=Wa().Ia(f);if(f.b())f=(new dw).j1("","","");else{var g=f.c();f="";-1!==(g.indexOf("://")|0)&&(g=kd(ta(),g,"://",0),f=Wj((new md).vc(g)),g=g.j[1]);var h=g.indexOf("/")|0,k,l="";-1<h?(k=g.substring(0,h),l=g.substring(h)):k=g;f=(new dw).j1(f,k,l)}g=(new ph).e(f.aaa);Tc(g)&&(g=f.aaa,h=jq(Cq(),e.t.E,n(Cfb)),k=O().Wa,vh(b,Bv(new Cv,"host",
g,k,h)));g=(new ph).e(f.Hg);Tc(g)&&(g=f.Hg,h=jq(Cq(),e.t.E,n(Dfb)),k=O().Wa,vh(b,Bv(new Cv,"basePath",g,k,h)));g=(new ph).e(f.Rda);Tc(g)?(g=this.fs.g,h=Jn().yk,g=!g.Pb.Ja(h)):g=!1;g?(g=Jn().yk,h=z(),f=[Nh(new Oh,f.Rda,(new N).a())],f=gr(new hr,H(h,(new J).aa(f)),(new N).a()),e=vh(b,Kw(new Lw,"schemes",Rh(new Sh,g,Ph(new Qh,f,e.t.E)),this.Ma,!1))):e=void 0;(new A).d(e)}e=Dd(c,fn().fb);e.b()||(e=e.c(),(new A).d(vh(b,Gh(Hh(),Hv((new Cf).e("serverDescription")),e,w(),this.ud))));c=Dd(c,fn().lj);c.b()?
w():(c=c.c(),e=Hv((new Cf).e("baseUriParameters")),f=this.ud,(new A).d(vh(b,(new gV).Qq(e,c,this.Ma,this.Eb,(new OU).Ci(f.Si(),f.Sy,(new ob).a())))))}this.XN(Hv((new Cf).e("servers")),a.Mt,b);return b};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Cba=function(a,b,c,e,f){this.fs=a;this.Ug=b;this.Ma=c;this.Eb=e;this.ud=f;Ux.prototype.PO.call(this,a,b,c,e,f);return this};
d.$classData=q({zra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas2ServersEmitter",{zra:1,W7:1,f:1,A:1,w:1,q:1,n:1});function Efb(){Ux.call(this);this.Eb=this.Ma=this.Ug=this.dk=null}Efb.prototype=new eoa;Efb.prototype.constructor=Efb;d=Efb.prototype;d.L=function(){return"Oas3EndPointServersEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Bra){var b=this.dk,c=a.dk;(null===b?null===c:b.h(c))?(b=this.Ug,c=a.Ug,b=null===b?null===c:b.h(c)):b=!1;if(b&&this.Ma===a.Ma)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.dk;case 1:return this.Ug;case 2:return this.Ma;case 3:return this.Eb;default:throw(new X).e(""+a);}};
function Ffb(a,b,c,e,f){var g=new Efb;g.dk=a;g.Ug=b;g.Ma=c;g.Eb=e;Ux.prototype.PO.call(g,a,b,c,e,f);return g}d.u=function(){return U(W(),this)};d.Ua=function(){var a=H(Wg(),G());this.XN("servers",B(this.dk.g,Tm().Wh),a);return a};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Bra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas3EndPointServersEmitter",{Bra:1,W7:1,f:1,A:1,w:1,q:1,n:1});function b6(){this.yb=this.m=this.fc=this.qb=this.W=null}b6.prototype=new r;
b6.prototype.constructor=b6;d=b6.prototype;
d.Dt=function(){var a=this.m;R();var b=this.W;R();a=a.Oo(lq(R(),b,O().ua));if(Ep(a)){var b=a.i,a=Ey(Hy(),b,"examples"),c=PIa(this.m.yl(),a);if(c.b())c=w();else{c=c.c();M();var e=(new N).a(),c=gL(c,a,e);this.qb.R(c);c=(new A).d(c)}if(c.b()){c=R3(this.m,b,this.m);if(x(c)){var b=c.i,c=Pc(),a=new b6,b=L(b,c,this.m),c=this.qb,e=this.fc,f=this.m;a.W=b;a.qb=c;a.fc=e;a.m=f;return a.Dt()}if(w()!==c)throw(new v).d(c);var c=this.m,e=Bc().iu,b="Cannot find example reference "+b,f=this.W,g=w();Cc(c,e,"",g,b,f.ga);
return(new YN).Rq(a,this.W)}return c.c()}if(Hp(a)){M();a=(new N).a();b=(new Q).a();a=(new iB).P(b,a);this.qb.R(a);if(yc((new K).Y(this.W),"value").qa())return b=(new K).Y(this.W),c=lh().Mp,Bh(b,"summary",Uh(Ch(Dh(this,c,this.m),a))),b=(new K).Y(this.W),c=lh().fb,Bh(b,"description",Uh(Ch(Dh(this,c,this.m),a))),b=(new K).Y(this.W),c=lh().iY,Bh(b,"externalValue",Uh(Ch(Dh(this,c,this.m),a))),b=lh().Fq,dj(a,b,!1),b=yc((new K).Y(this.W),"value"),b.b()||(b=b.c(),w3(x3(new y3,b.i,a,this.fc,this.m))),b=this.W,
Di(),c=[Jw().oe],c=(new J).aa(c),e=Di().s,jx(new kx,a,b,Ei(c,e),this.m).Pc(),b=this.m.Pg(),pba(b)&&xO(this.m,a.k,this.W,"example"),a;R();b=this.W;R();return w3(x3(new y3,lq(R(),b,O().ua),a,this.fc,this.m))}throw(new v).d(a);};d.L=function(){return"Oas3ExampleValueParser"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Cra){if(Yj(this.W,a.W))var b=this.qb,c=a.qb,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.fc,a=a.fc,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.W;case 1:return this.qb;case 2:return this.fc;default:throw(new X).e(""+a);}};d.LR=function(){null===this.yb&&(this.yb=yO())};d.u=function(){return U(W(),this)};d.Yj=function(){null===this.yb&&this.LR();return this.yb};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Cra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas3ExampleValueParser",{Cra:1,f:1,ig:1,A:1,w:1,q:1,n:1});
function A8a(){this.yb=this.m=this.fc=this.qb=this.zb=null}A8a.prototype=new r;A8a.prototype.constructor=A8a;d=A8a.prototype;d.Dt=function(){var a=this.zb.i.pb().nb;if(O().ua===a){var a=this.zb.i,b=Pc(),a=L(a,b,this.m),b=new b6,c=this.qb,e=this.fc,f=this.m;b.W=a;b.qb=c;b.fc=e;b.m=f;return b.Dt()}if(O().yd===a)return M(),a=(new N).a(),b=(new Q).a(),a=(new iB).P(b,a),this.qb.R(a),a;M();a=(new N).a();b=(new Q).a();a=(new iB).P(b,a);this.qb.R(a);return w3(x3(new y3,this.zb.i,a,this.fc,this.m))};d.L=function(){return"Oas3SingleExampleValueParser"};
d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Kra){if(this.zb===a.zb)var b=this.qb,c=a.qb,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.fc,a=a.fc,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.zb;case 1:return this.qb;case 2:return this.fc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Yj=function(){null===this.yb&&this.yD();return this.yb};d.yD=function(){null===this.yb&&(this.yb=yO())};
d.y=function(){return Y(this)};d.g1=function(a,b,c,e){this.zb=a;this.qb=b;this.fc=c;this.m=e;return this};d.M=function(){return Z(this)};d.$classData=q({Kra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas3SingleExampleValueParser",{Kra:1,f:1,ig:1,A:1,w:1,q:1,n:1});function Gfb(){Ux.call(this);this.Eb=this.Ma=this.Ug=this.fs=null}Gfb.prototype=new eoa;Gfb.prototype.constructor=Gfb;d=Gfb.prototype;d.L=function(){return"Oas3WebApiServersEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Lra){var b=this.fs,c=a.fs;(null===b?null===c:b.h(c))?(b=this.Ug,c=a.Ug,b=null===b?null===c:b.h(c)):b=!1;if(b&&this.Ma===a.Ma)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.fs;case 1:return this.Ug;case 2:return this.Ma;case 3:return this.Eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=H(Wg(),G());this.XN("servers",VV(this.Ug),a);return a};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Cba=function(a,b,c,e,f){this.fs=a;this.Ug=b;this.Ma=c;this.Eb=e;Ux.prototype.PO.call(this,a,b,c,e,f);return this};d.$classData=q({Lra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas3WebApiServersEmitter",{Lra:1,W7:1,f:1,A:1,w:1,q:1,n:1});function W3(){this.yb=this.m=this.Nb=this.Bh=this.Ea=null}W3.prototype=new r;W3.prototype.constructor=W3;d=W3.prototype;
d.L=function(){return"OasContentParser"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ora&&Yj(this.Ea,a.Ea)&&this.Bh===a.Bh){var b=this.Nb;a=a.Nb;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ea;case 1:return this.Bh;case 2:return this.Nb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Yj=function(){null===this.yb&&this.Ig();return this.yb};
d.QK=function(a,b,c,e){this.Ea=a;this.Bh=b;this.Nb=c;this.m=e;return this};d.Ig=function(){null===this.yb&&(this.yb=yO())};d.y=function(){return Y(this)};
d.Sv=function(){var a=this.Ea,b=Pc(),a=L(a,b,this.m),b=this.Nb.R((new A).d(this.Bh)),c=Lr(M(),(R(),R(),lq(R(),a,O().ua))),b=cc(b,c),c=yc((new K).Y(a),"schema");if(!c.b()){var c=c.c(),e=rV(sV(),c,t(new u,function(a,b){return function(a){M();var c=(new N).a();a=Ue(a,"schema",c);var c=b.k,e=a.Ub();a.Qb(c,e)}}(this,b)),this.m).wc();if(!e.b()){var f=e.c(),e=vn().Fc,f=oB(kB(),f,b.k,w()),c=Ke(M(),c);(new A).d(Fh(b,e,f,c))}}e=C8a(a,b.k,this.m).fh();e.Fa()&&(e.X(t(new u,function(a,b){return function(c){var e=
a.Bh,f=lh().Md;Eb(c,f,e);return c.E.Wb(Zqa($qa(),b.k))}}(this,b))),c=vn().Vc,e=gr(new hr,e,(new N).a()),ff(b,c,e));c=yc((new K).Y(a),"encoding");c.b()||(c=c.c(),e=c.i,f=Pc(),e=(new Hfb).hx(L(e,f,this.m),t(new u,function(a,b){return function(a){return Ifb(b,a)}}(this,b)),this.m).fh(),f=vn().YI,c=Ke(M(),c),jr(b,f,e,c));jx(new kx,b,a,G(),this.m).Pc();xO(this.m,b.k,a,"content");return b};d.M=function(){return Z(this)};
d.$classData=q({Ora:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasContentParser",{Ora:1,f:1,ig:1,A:1,w:1,q:1,n:1});function Hfb(){this.yb=this.m=this.Nb=this.W=null}Hfb.prototype=new r;Hfb.prototype.constructor=Hfb;d=Hfb.prototype;d.L=function(){return"OasEncodingParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Sra&&Yj(this.W,a.W)){var b=this.Nb;a=a.Nb;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.W;case 1:return this.Nb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Yj=function(){null===this.yb&&this.Ig();return this.yb};d.hx=function(a,b,c){this.W=a;this.Nb=b;this.m=c;return this};
d.fh=function(){var a=this.W.Bb,b=t(new u,function(a){return function(b){var c=b.Da,h=zc(),c=L(c,h,a.m).ya;b=b.i;h=Pc();b=L(b,h,a.m);var c=a.Nb.R(c),h=(new K).Y(b),k=ln().tl;Bh(h,"contentType",Ch(Dh(a,k,a.m),c));h=yc((new K).Y(b),"headers");if(!h.b()){var h=h.c(),k=h.i,l=Pc(),k=(new A3).hx(L(k,l,a.m),t(new u,function(a,b){return function(a){var c=b.k;H(z(),G());cj(a,c);c=Bn().Qg;nh(b,c,a)}}(a,c)),a.m).fh(),l=ln().Qg,h=Ke(M(),h);jr(c,l,k,h)}h=(new K).Y(b);k=ln().eu;Bh(h,"style",Ch(Dh(a,k,a.m),c));
h=(new K).Y(b);k=ln().hv;Bh(h,"explode",Ch(Dh(a,k,a.m),c));h=(new K).Y(b);k=ln().bv;Bh(h,"allowReserved",Ch(Dh(a,k,a.m),c));jx(new kx,c,b,G(),a.m).Pc();xO(a.m,c.k,b,"encoding");return c}}(this)),c=uv();return a.ka(b,c.gc)};d.Ig=function(){null===this.yb&&(this.yb=yO())};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Sra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasEncodingParser",{Sra:1,f:1,ig:1,A:1,w:1,q:1,n:1});
function B3(){this.yb=this.m=this.qb=this.W=null}B3.prototype=new r;B3.prototype.constructor=B3;d=B3.prototype;
d.BC=function(){var a=this.m.Km,b=aP();if(null!==a&&a===b)if(a=this.m,R(),b=this.W,R(),a=a.Oo(lq(R(),b,O().ua)),Ep(a)){var b=a.i,a=Ey(Hy(),b,"headers"),c=xIa(this.m.Mh,a);if(c.b())c=w();else{c=c.c();M();var e=(new N).a(),c=gL(c,a,e);this.qb.R(c);c=(new A).d(c)}if(c.b())if(c=R3(this.m,b,this.m),x(c))a=c.i,b=Pc(),a=(new B3).hx(L(a,b,this.m),this.qb,this.m).BC();else{if(w()!==c)throw(new v).d(c);var c=this.m,e=Bc().iu,b="Cannot find header reference "+b,f=this.W,g=w();Cc(c,e,"",g,b,f.ga);a=(new Jfb).Rq(a,
this.W)}else a=c.c()}else{if(!Hp(a))throw(new v).d(a);a=Kfb(this);Lfb(this,a,this.W)}else a=Kfb(this),Mfb(this,a,this.W);b=Ej().df;Eb(a,b,"header");return a};d.L=function(){return"OasHeaderParameterParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Wra&&Yj(this.W,a.W)){var b=this.qb;a=a.qb;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.qb;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.Yj=function(){null===this.yb&&this.Ig();return this.yb};d.hx=function(a,b,c){this.W=a;this.qb=b;this.m=c;return this};function Kfb(a){M();var b=(new N).a(),b=(new JB).P((new Q).a(),b);a.qb.R(b);var c=(new K).Y(a.W),e=Ej().fb;Bh(c,"description",Ch(Dh(a,e,a.m),b));jx(new kx,b,a.W,G(),a.m).Pc();return b}
function Mfb(a,b,c){var e=Wa().Ia(B(b.g,Ej().$));e.b()?e=w():(e=e.c().G,e=(new A).d(e.b()?null:e.c()));var f=Ej().kj;if(e.b())g=!1;else var g=e.c(),g=re(ta(),g,"?");dj(b,f,!g);f=(new K).Y(c);g=Ej().kj;g=Ch(Dh(a,g,a.m),b);Bh(f,"x-amf-required",$N(g,(new Xi).a()));f=yc((new K).Y(c),"type");f.b()||(f.c(),a=fTa(sV(),(R(),R(),lq(R(),c,O().ua)),e.b()?"default":e.c(),t(new u,function(a,b){return function(a){M();var c=(new N).a();a=Ue(a,"schema",c);var c=b.k,e=a.Ub();a.Qb(c,e)}}(a,b)),a.m).wc(),a.b()||(e=
a.c(),a=Ej().Fc,e=oB(kB(),e,b.k,w()),c=Ke(M(),c),(new A).d(Fh(b,a,e,c))))}d.Ig=function(){null===this.yb&&(this.yb=yO())};
function Lfb(a,b,c){var e=(new K).Y(c),f=Ej().kj,f=Ch(Dh(a,f,a.m),b);Bh(e,"required",$N(f,(new Xi).a()));e=(new K).Y(c);f=Ej().gp;f=Ch(Dh(a,f,a.m),b);Bh(e,"deprecated",$N(f,(new Xi).a()));e=(new K).Y(c);f=Ej().IF;f=Ch(Dh(a,f,a.m),b);Bh(e,"allowEmptyValue",$N(f,(new Xi).a()));e=yc((new K).Y(c),"schema");if(!e.b()&&(e=e.c(),f=rV(sV(),e,t(new u,function(a,b){return function(a){M();var c=(new N).a();a=Ue(a,"schema",c);var c=b.k,e=a.Ub();a.Qb(c,e)}}(a,b)),a.m).wc(),!f.b())){var g=f.c(),f=Ej().Fc,g=oB(kB(),
g,b.k,w()),e=Ke(M(),e);(new A).d(Fh(b,f,g,e))}xO(a.m,b.k,c,"header")}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Wra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasHeaderParameterParser",{Wra:1,f:1,ig:1,A:1,w:1,q:1,n:1});function c6(){this.yb=this.m=this.qb=this.ba=this.Ea=null}c6.prototype=new r;c6.prototype.constructor=c6;d=c6.prototype;d.L=function(){return"OasLinkParser"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Zra&&Yj(this.Ea,a.Ea)&&this.ba===a.ba){var b=this.qb;a=a.qb;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ea;case 1:return this.ba;case 2:return this.qb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.wc=function(){var a=this.Ea,b=Pc(),a=L(a,b,this.m),b=this.m.Oo((R(),R(),lq(R(),a,O().ua)));if(Ep(b)){var b=b.i,c=Ey(Hy(),b,"links"),e=rIa(this.m.Mh,c);if(e.b())c=w();else{var e=e.c(),f=Ke(M(),a),c=gL(e,c,f),e=this.ba;M();f=(new N).a();Ue(c,e,f);this.qb.R(c);c=(new A).d(c)}if(c.b()){c=R3(this.m,b,this.m);if(x(c))return a=c.i,R(),b=Pc(),a=L(a,b,this.m),R(),(new c6).QK(lq(R(),a,O().ua),this.ba,this.qb,this.m).wc();if(w()!==c)throw(new v).d(c);c=this.m;e=Bc().iu;b="Cannot find link reference "+b;f=
w();Cc(c,e,"",f,b,a.ga);return w()}return c}if(Hp(b)){M();b=(new N).a();b=(new d6).P((new Q).a(),b);c=this.ba;M();e=(new N).a();b=Ue(b,c,e);c=Lr(M(),(R(),R(),lq(R(),a,O().ua)));b=cc(b,c);this.qb.R(b);c=(new K).Y(a);e=po().lN;Bh(c,"operationRef",Ch(Dh(this,e,this.m),b));c=(new K).Y(a);e=po().$F;Bh(c,"operationId",Ch(Dh(this,e,this.m),b));if(B(b.g,po().lN).G.qa()&&B(b.g,po().$F).G.qa()){var c=this.m,e=rh().fY,f=b.k,g=rh().fY.Ad;sz(c,e,f,g,b.E)}c=(new K).Y(a);e=po().fb;Bh(c,"description",Ch(Dh(this,
e,this.m),b));c=yc((new K).Y(a),"server");c.b()||(c=c.c().i,e=Pc(),c=L(c,e,this.m),c=DJa(EJa(new BO,b.k,c,this.m)),e=po().cG,ff(b,e,c));c=yc((new K).Y(a),"parameters");c.b()||(c=c.c().i,e=Pc(),c=L(c,e,this.m).Bb,e=t(new u,function(a,b){return function(c){var e=ja((new Eh).Vb(c.Da,a.m).Hf().t),f=ja((new Eh).Vb(c.i,a.m).Hf().t);c=(new A).d(Ke(M(),c.Da));c.b()?c=w():(c=c.c(),c=(new A).d((new T2).P((new Q).a(),c)));c.b()?(M(),c=(new N).a(),c=(new T2).P((new Q).a(),c)):c=c.c();var g=so().ND;Eb(c,g,e);
e=po().rJ;nh(b,e,c);e=c;c=so().XF;return Eb(e,c,f)}}(this,b)),f=uv(),c.ka(e,f.gc));c=(new K).Y(a);e=po().tN;Bh(c,"requestBody",Ch(Dh(this,e,this.m),b));jx(new kx,b,a,G(),this.m).Pc();xO(this.m,b.k,a,"link");return(new A).d(b)}throw(new v).d(b);};d.Yj=function(){null===this.yb&&this.Ig();return this.yb};d.QK=function(a,b,c,e){this.Ea=a;this.ba=b;this.qb=c;this.m=e;return this};d.Ig=function(){null===this.yb&&(this.yb=yO())};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Zra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasLinkParser",{Zra:1,f:1,ig:1,A:1,w:1,q:1,n:1});function U3(){this.yb=this.m=this.Nb=this.Ea=null}U3.prototype=new r;U3.prototype.constructor=U3;d=U3.prototype;d.L=function(){return"OasPayloadParser"};d.H=function(){return 2};d.YO=function(a,b,c){this.Ea=a;this.Nb=b;this.m=c;return this};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.hsa&&Yj(this.Ea,a.Ea)){var b=this.Nb;a=a.Nb;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ea;case 1:return this.Nb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Yj=function(){null===this.yb&&this.Ig();return this.yb};d.Ig=function(){null===this.yb&&(this.yb=yO())};d.y=function(){return Y(this)};
d.Sv=function(){var a=this.Ea,b=Pc(),a=L(a,b,this.m),b=this.Nb,c=yc((new K).Y(a),"mediaType");c.b()?c=w():(c=c.c().i,c=(new A).d(ja((new Eh).Vb(c,this.m).Hf().t)));var b=b.R(c),c=Lr(M(),(R(),R(),lq(R(),a,O().ua))),b=cc(b,c),c=(new K).Y(a),e=vn().$;Bh(c,"name",Ch(Dh(this,e,this.m),b));c=(new K).Y(a);e=vn().Md;Bh(c,"mediaType",Ch(Dh(this,e,this.m),b));c=yc((new K).Y(a),"schema");if(!c.b()&&(c=c.c(),e=rV(sV(),c,t(new u,function(a,b){return function(a){M();var c=(new N).a();a=Ue(a,"schema",c);var c=b.k,
e=a.Ub();a.Qb(c,e)}}(this,b)),this.m).wc(),!e.b())){var f=e.c(),e=vn().Fc,f=oB(kB(),f,b.k,w()),c=Ke(M(),c);(new A).d(Fh(b,e,f,c))}jx(new kx,b,a,G(),this.m).Pc();return b};d.M=function(){return Z(this)};d.$classData=q({hsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasPayloadParser",{hsa:1,f:1,ig:1,A:1,w:1,q:1,n:1});function JTa(){}JTa.prototype=new oZ;JTa.prototype.constructor=JTa;d=JTa.prototype;d.a=function(){return this};d.Wf=function(a){return Zn(a)};
d.Sf=function(a,b){return Zn(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};d.$classData=q({fXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasResponseExamplesEmitter$$anonfun$apply$1",{fXa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function N3(){this.yb=this.m=this.Pp=this.W=null}N3.prototype=new r;N3.prototype.constructor=N3;d=N3.prototype;d.L=function(){return"OasResponseParser"};
function Nfb(a,b,c){M();var e=(new N).a(),e=(new VO).P((new Q).a(),e),f=(new R5).a(),e=ac(e,f),f=(new K).Y(b),g=Hv((new Cf).e("mediaType")),f=yc(f,g);if(!f.b()){var h=f.c(),f=vn().Md,g=(new Eh).Vb(h.i,a.m).Pf(),h=Ke(M(),h);Fh(e,f,g,h)}H(z(),G());cj(e,c);b=yc((new K).Y(b),"schema");b.b()||(b=b.c(),a=rV(sV(),b,t(new u,function(a,b){return function(a){M();var c=(new N).a();a=Ue(a,"default",c);var c=b.k,e=a.Ub();a.Qb(c,e)}}(a,e)),a.m).wc(),a.b()?c=w():(a=a.c(),yb(a).qa()?yb(a).qa()?(c=yb(a),c=!(c.b()?
0:Yh(c.c().ha(),n(Zt)))):c=!1:c=!0,c&&(c=(new Zx).a(),ac(a,c)),c=(new A).d(oB(kB(),a,e.k,w()))),a=vn().Fc,c=c.b()?Pqa(Rqa(),b.i):c.c(),f=Ke(M(),b),Fh(e,a,c,f),e.E.Ur(Ke(M(),b)));return Tc(e.g.Pb)?(new A).d(e):w()}d.H=function(){return 2};
d.KH=function(){var a=this.m;R();var b=this.W;R();a=a.Oo(lq(R(),b,O().ua));if(Ep(a)){var b=a.i,a=Eoa(Hy(),b,this.m),c=wIa(this.m.Mh,a,Pr());if(c.b())c=w();else{c=c.c();M();var e=(new N).a(),c=gL(c,a,e);this.Pp.R(c);c=(new A).d(c)}if(c.b()){c=R3(this.m,b,this.m);if(x(c))return a=c.i,b=Pc(),(new N3).hx(L(a,b,this.m),this.Pp,this.m).KH();if(w()!==c)throw(new v).d(c);var c=this.m,e=Bc().iu,f="Cannot find response reference "+b,g=this.W,h=w();Cc(c,e,"",h,f,g.ga);b=(new XN).Rq(b,this.W);M();c=(new N).a();
a=gL(b,a,c);this.Pp.R(a);return a}return c.c()}if(Hp(a))return M(),a=(new N).a(),a=(new LB).P((new Q).a(),a),this.Pp.R(a),b=(new K).Y(this.W),c=Bn().fb,Bh(b,"description",Ch(Dh(this,c,this.m),a)),b=yc((new K).Y(this.W),"headers"),b.b()||(b=b.c(),c=b.i,e=Pc(),e=(new A3).hx(L(c,e,this.m),t(new u,function(a,b){return function(a){var c=b.k;H(z(),G());cj(a,c);c=Bn().Qg;nh(b,c,a)}}(this,a)),this.m).fh(),c=yn().Qg,e=gr(new hr,e,Ke(M(),b.i)),b=Ke(M(),b),Fh(a,c,e,b)),b=H(Wg(),G()),c=this.m.Km,e=lKa(),null!==
c&&c===e&&(c=Nfb(this,this.W,a.k),c.b()||(c=c.c(),vh(b,c)),c=yc((new K).Y(this.W),"examples"),c.b()||(e=c.c(),f=(new WO).jC(e,this.m).fh(),f.Fa()&&f.X(t(new u,function(a,b){return function(a){return a.E.Wb(Zqa($qa(),b.k))}}(this,a))),c=Bn().Vc,f=gr(new hr,f,Ke(M(),e.i)),e=Ke(M(),e),Fh(a,c,f,e)),xO(this.m,a.k,this.W,"response")),c=(new K).Y(this.W),e=Hv((new Cf).e("responsePayloads")),c=yc(c,e),c.b()||(c=c.c().i,e=Pc(),f=uv().gc,c=L(c,CM(f,e),this.m),e=t(new u,function(a,b,c){return function(e){return vh(b,
(new U3).YO((R(),R(),lq(R(),e,O().ua)),t(new u,function(a,b){return function(a){return b.Sr(a)}}(a,c)),a.m).Sv())}}(this,b,a)),f=z(),c.ka(e,f.s)),c=this.m.Km,e=aP(),null!==c&&c===e&&(c=yc((new K).Y(this.W),"content"),c.b()||(c=c.c().i,e=Pc(),L(c,e,this.m).Bb.X(t(new u,function(a,b,c){return function(e){var f=ja((new Eh).Vb(e.Da,a.m).Hf().t);return vh(b,(new W3).QK(e.i,f,t(new u,function(a,b){return function(a){return b.Sr(a)}}(a,c)),a.m).Sv())}}(this,b,a)))),c=yc((new K).Y(this.W),"links"),c.b()||
(c=c.c().i,e=Pc(),L(c,e,this.m).Bb.X(t(new u,function(a,b){return function(c){var e=ja((new Eh).Vb(c.Da,a.m).Hf().t);return(new c6).QK(c.i,e,t(new u,function(a,b){return function(a){var c=Bn().jN;a=nh(b,c,a);c=b.k;H(z(),G());cj(a,c)}}(a,b)),a.m).wc()}}(this,a))))),b.Fa()&&(c=Bn().mf,b=gr(new hr,b,(new N).a()),ff(a,c,b)),jx(new kx,a,this.W,G(),this.m).Pc(),a;throw(new v).d(a);};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.psa&&Yj(this.W,a.W)){var b=this.Pp;a=a.Pp;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.Pp;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Yj=function(){null===this.yb&&this.Ig();return this.yb};d.hx=function(a,b,c){this.W=a;this.Pp=b;this.m=c;return this};d.Ig=function(){null===this.yb&&(this.yb=yO())};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({psa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasResponseParser",{psa:1,f:1,ig:1,A:1,w:1,q:1,n:1});function BO(){this.yb=this.m=this.W=this.Rd=null}BO.prototype=new r;BO.prototype.constructor=BO;d=BO.prototype;d.L=function(){return"OasServerParser"};d.H=function(){return 2};
function DJa(a){M();var b=(new N).a(),b=(new e6).P((new Q).a(),b),c=(new K).Y(a.W),e=fn().Jf;Bh(c,"url",Ch(Dh(a,e,a.m),b));c=a.Rd;H(z(),G());cj(b,c);c=(new K).Y(a.W);e=fn().fb;Bh(c,"description",Ch(Dh(a,e,a.m),b));c=yc((new K).Y(a.W),Hv((new Cf).e("parameters")));c=c.b()?yc((new K).Y(a.W),"variables"):c;if(!c.b()){var c=c.c(),e=c.i,f=Pc(),e=L(e,f,a.m).Bb,f=t(new u,function(a,b){return function(c){return(new QU).$m(c,t(new u,function(a,b){return function(a){var c=b.k;H(z(),G());cj(a,c)}}(a,b)),!1,
Ix(Jx(),a.m)).BC()}}(a,b)),g=uv(),f=e.ka(f,g.gc),e=fn().lj,f=gr(new hr,f,Ke(M(),c.i)),c=Ke(M(),c);Fh(b,e,f,c)}jx(new kx,b,a.W,G(),a.m).Pc();return b}d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.rsa?this.Rd===a.Rd?Yj(this.W,a.W):!1:!1};d.K=function(a){switch(a){case 0:return this.Rd;case 1:return this.W;default:throw(new X).e(""+a);}};d.LR=function(){null===this.yb&&(this.yb=yO())};d.u=function(){return U(W(),this)};function EJa(a,b,c,e){a.Rd=b;a.W=c;a.m=e;return a}
d.Yj=function(){null===this.yb&&this.LR();return this.yb};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({rsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasServerParser",{rsa:1,f:1,ig:1,A:1,w:1,q:1,n:1});function Ofb(){}Ofb.prototype=new oZ;Ofb.prototype.constructor=Ofb;d=Ofb.prototype;d.Wf=function(a){return pfa(a)};d.Sf=function(a,b){return pfa(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};
d.$classData=q({lXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.ParametrizedSecuritiesSchemeEmitter$$anonfun$collect$1",{lXa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function QTa(){}QTa.prototype=new oZ;QTa.prototype.constructor=QTa;d=QTa.prototype;d.sp=function(a,b){return Eq(a)?a:b.R(a)};d.xp=function(a){return Eq(a)};d.Xa=function(a){return this.xp(a)};d.Za=function(a,b){return this.sp(a,b)};
d.$classData=q({qXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08PayloadEmitter$$anon$1$$anonfun$$nestedInanonfun$emit$14$1",{qXa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function nSa(){cy.call(this);this.Yi=this.kc=null;this.xg=!1;this.va=null}nSa.prototype=new moa;nSa.prototype.constructor=nSa;d=nSa.prototype;d.L=function(){return"Raml08PayloadParser"};d.$m=function(a,b,c,e){this.kc=a;this.Yi=b;this.xg=c;this.va=e;cy.prototype.$m.call(this,a,b,c,e);return this};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Gsa){if(this.kc===a.kc)var b=this.Yi,c=a.Yi,b=null===b?null===c:b.h(c);else b=!1;return b?this.xg===a.xg:!1}return!1};d.K=function(a){switch(a){case 0:return this.kc;case 1:return this.Yi;case 2:return this.xg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.kc)),a=zI().Ga(a,yI(zI(),this.Yi)),a=zI().Ga(a,this.xg?1231:1237);return zI().Wd(a,3)};
d.Sv=function(){var a=cy.prototype.Sv.call(this),b=B(a.g,vn().Md).G,b=b.b()?null:b.c();if(re(ta(),b,"?")){var c=vn().Ew;dj(a,c,!0);var c=vn().Md,e=(new ph).e(b),e=JO(e,"?");Eb(a,c,e)}c=this.kc.i.pb().nb;if(O().yd===c)M(),b=(new N).a(),c=(new Q).a(),b=(new oi).P(c,b),M(),c=(new N).a(),b=Ue(b,"schema",c),c=a.k,e=b.Ub(),b=b.Qb(c,e),b.ha().Wb((new GO).a()),c=vn().Fc,ff(a,c,b);else if(O().ua===c)Di(),c=(new J).aa(["application/x-www-form-urlencoded","multipart/form-data"]),e=Di().s,c=Ei(c,e),uh(c,b)?(b=
this.kc.i,c=Pc(),b=$8a(new Z8a,L(b,c,this.va),a.k,this.va).wc(),b.b()||(b=b.c(),c=vn().Fc,ff(a,c,b))):(b=HU(IU(),this.kc,t(new u,function(a,b){return function(a){return a.Qb(b.k,a.Ub())}}(this,a)),!1,cO(),this.va).wc(),b.b()||(b=b.c(),b=oB(kB(),b,a.k,w()),c=vn().Fc,ff(a,c,b)));else{var b=this.va,c=rh().tY,e=a.k,f=w(),g=w(),h=w();b.Hc(c.k,e,f,"Invalid payload. Payload must be a map or null",g,xc().tb,h)}return a};d.M=function(){return Z(this)};
d.$classData=q({Gsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08PayloadParser",{Gsa:1,EXa:1,f:1,A:1,w:1,q:1,n:1});function Pfb(){}Pfb.prototype=new oZ;Pfb.prototype.constructor=Pfb;d=Pfb.prototype;d.sp=function(a,b){return Eq(a)?a:b.R(a)};d.xp=function(a){return Eq(a)};d.Xa=function(a){return this.xp(a)};d.Za=function(a,b){return this.sp(a,b)};d.sba=function(){return this};
d.$classData=q({sXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08PayloadsEmitter$$anonfun$$nestedInanonfun$emit$11$1",{sXa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Qfb(){}Qfb.prototype=new oZ;Qfb.prototype.constructor=Qfb;d=Qfb.prototype;d.Wf=function(a){return wn(a)};d.Sf=function(a,b){return wn(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};d.sba=function(){return this};
d.$classData=q({tXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08PayloadsEmitter$$anonfun$1",{tXa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function OO(){cy.call(this);this.Yi=this.kc=null;this.xg=!1;this.va=null}OO.prototype=new moa;OO.prototype.constructor=OO;d=OO.prototype;d.L=function(){return"Raml10PayloadParser"};d.$m=function(a,b,c,e){this.kc=a;this.Yi=b;this.xg=c;this.va=e;cy.prototype.$m.call(this,a,b,c,e);return this};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ssa){if(this.kc===a.kc)var b=this.Yi,c=a.Yi,b=null===b?null===c:b.h(c);else b=!1;return b?this.xg===a.xg:!1}return!1};d.K=function(a){switch(a){case 0:return this.kc;case 1:return this.Yi;case 2:return this.xg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.kc)),a=zI().Ga(a,yI(zI(),this.Yi)),a=zI().Ga(a,this.xg?1231:1237);return zI().Wd(a,3)};
d.Sv=function(){var a=cy.prototype.Sv.call(this),b=this.kc.i.pb().nb;if(O().ua!==b){var b=this.kc.i,c=Pc(),b=sv(b,c);Hp(b)&&jx(new kx,a,b.i,G(),this.va).Pc()}b=this.kc.i.pb().nb;O().yd===b?(b=RU(SU(),this.kc,t(new u,function(a,b){return function(a){M();var c=(new N).a();a=Ue(a,"schema",c);var c=b.k,e=a.Ub();return a.Qb(c,e)}}(this,a)),TU(!1,!1),cO(),this.va).wc(),b.b()||(b=b.c(),b.ha().Wb((new GO).a()),Yx($x(),b),b=oB(kB(),b,a.k,w()),c=vn().Fc,ff(a,c,b))):(b=RU(SU(),this.kc,t(new u,function(a,b){return function(a){M();
var c=(new N).a();a=Ue(a,"schema",c);var c=b.k,e=a.Ub();return a.Qb(c,e)}}(this,a)),TU(!1,!1),cO(),this.va).wc(),b.b()||(b=b.c(),Yx($x(),b),b=oB(kB(),b,a.k,w()),c=vn().Fc,ff(a,c,b)));return a};d.M=function(){return Z(this)};d.$classData=q({Ssa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml10PayloadParser",{Ssa:1,EXa:1,f:1,A:1,w:1,q:1,n:1});function Rfb(){}Rfb.prototype=new oZ;Rfb.prototype.constructor=Rfb;d=Rfb.prototype;d.sp=function(a,b){return Eq(a)?a:b.R(a)};d.xp=function(a){return Eq(a)};
d.Xa=function(a){return this.xp(a)};d.Za=function(a,b){return this.sp(a,b)};d.$classData=q({uXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml10PayloadsEmitter$$anonfun$$nestedInanonfun$emit$26$1",{uXa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function YJa(){}YJa.prototype=new oZ;YJa.prototype.constructor=YJa;d=YJa.prototype;d.cV=function(a){a=a.i.pb().nb;var b=O().ua;return a===b};d.VS=function(a,b){var c=a.i.pb().nb,e=O().ua;return c===e?a:b.R(a)};d.Xa=function(a){return this.cV(a)};
d.Za=function(a,b){return this.VS(a,b)};d.$classData=q({xXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlEndpointParser$$anonfun$1",{xXa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function IO(){this.Nb=this.zb=null;this.hn=!1;this.yb=this.m=null}IO.prototype=new r;IO.prototype.constructor=IO;d=IO.prototype;d.L=function(){return"RamlOperationParser"};d.$m=function(a,b,c,e){this.zb=a;this.Nb=b;this.hn=c;this.m=e;return this};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.bta){if(this.zb===a.zb)var b=this.Nb,c=a.Nb,b=null===b?null===c:b.h(c);else b=!1;return b?this.hn===a.hn:!1}return!1};d.K=function(a){switch(a){case 0:return this.zb;case 1:return this.Nb;case 2:return this.hn;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Yj=function(){null===this.yb&&this.Ig();return this.yb};
d.W1=function(){var a=this.zb.Da,b=zc(),b=L(a,b,this.m).ya,a=this.Nb.R(b),c=Ke(M(),this.zb),a=cc(a,c),c=Zm().nt,e=(new Eh).Vb(this.zb.Da,this.m).Pf();ff(a,c,e);this.hn&&re(ta(),b,"?")&&(c=Zm().Ew,dj(a,c,!0),c=Zm().nt,e=(new ph).e(b),e=JO(e,"?"),Eb(a,c,e));c=this.zb.i.pb().nb;if(O().ua===c)return b=this.zb.i,c=Pc(),Sfb(this,L(b,c,this.m),a);c=Hc(Ic(this.zb.i),zc());c.b()?c=w():(c=c.c(),c=(new A).d(c.ya));c.b()?c=!1:(c=c.c(),c=""===c||"null"===c);if(!c){var c=this.m,e=rh().J6,f=a.k,b="Invalid node "+
this.zb.i+" for method "+b,g=this.zb.i,h=w();Cc(c,e,f,h,b,g.ga)}return a};d.Ig=function(){null===this.yb&&(this.yb=yO())};d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.zb)),a=zI().Ga(a,yI(zI(),this.Nb)),a=zI().Ga(a,this.hn?1231:1237);return zI().Wd(a,3)};d.M=function(){return Z(this)};
function Sfb(a,b,c){b=a.zb.i;var e=Pc();b=L(b,e,a.m);var e=a.m.Dv,f=py().m9,e=null===e?null===f:e.h(f);xO(a.m,c.k,b,e?"trait":"operation");var f=(new K).Y(b),g=Zm().$;Bh(f,"displayName",Ch(Dh(a,g,a.m),c));var f=(new K).Y(b),g=Kh((new Cf).e("oasDeprecated")),h=Zm().gp;Bh(f,g,Ch(Dh(a,h,a.m),c));f=(new K).Y(b);g=Kh((new Cf).e("summary"));h=Zm().Mp;Bh(f,g,Ch(Dh(a,h,a.m),c));f=(new K).Y(b);g=Kh((new Cf).e("externalDocs"));h=Zm().bh;Bh(f,g,ex(Ch(Dh(a,h,a.m),c),t(new u,function(a){return function(b){return kna(lna(),
b,a.m)}}(a))));f=(new K).Y(b);g=Zm().yk;Bh(f,"protocols",aO(Ch(Dh(a,g,a.m),c)));f=(new K).Y(b);g=Kh((new Cf).e("consumes"));h=Zm().Jp;Bh(f,g,Ch(Dh(a,h,a.m),c));f=(new K).Y(b);g=Kh((new Cf).e("produces"));h=Zm().tl;Bh(f,g,Ch(Dh(a,h,a.m),c));f=(new K).Y(b);g=Kh((new Cf).e("tags"));h=Zm().wv;Bh(f,g,Ch(Dh(a,h,a.m),c));f=t(new u,function(a,b){return function(c){return QJa(RJa(),b,c,a.m)}}(a,t(new u,function(a,b){return function(a){return Bda(b,a)}}(a,c))));g=(new K).Y(b);h=Lc().wi();Bh(g,"is",aJa(aO(ex(Ch(Dh(a,
h,a.m),c),f))));f=ax(a.m.Oh.aEa(),b,jb(function(a,b){return function(){return YLa(b)}}(a,c)),a.hn).wc();f.b()||(f=f.c(),g=Zm().kp,h=(M(),(new N).a()).Wb((new GO).a()),Fh(c,g,f,h));f=(new K).Y(b);g=Kh((new Cf).e("defaultResponse"));f=yc(f,g);f.b()||(g=f.c(),f=g.i.pb().nb,h=O().ua,f===h&&(f=H(Wg(),G()),g=g.i,h=Pc(),L(g,h,a.m).Bb.X(t(new u,function(a,b,c){return function(e){return vh(b,ax(a.m.Oh.o2(),e,t(new u,function(a,b){return function(a){var c=b.k;H(z(),G());cj(a,c)}}(a,c)),a.hn).KH())}}(a,f,c))),
g=Zm().Zl,qf(c,g,f)));f=yc((new K).Y(b),"responses");if(!f.b()){f=f.c();g=H(Wg(),G());h=f.i.pb().nb;if(O().yd!==h){var h=f.i,k=Pc(),h=L(h,k,a.m).Bb.xb(t(new u,function(a){return function(b){var c=Bw();b=b.Da;var e=zc();return!vma(c,L(b,e,a.m).ya)}}(a))),k=t(new u,function(a){return function(b){b=b.Da;var c=zc();return L(b,c,a.m).ya}}(a)),l=uv(),k=h.ka(k,l.gc),l=Pf(),l=Qf(l),l=Ei(k,l);if(k.lb()>l.lb()){var k=a.m,l=rh().$X,p=c.k,y=w();Cc(k,l,p,y,"RAML Responses must not have duplicated status codes",
f.i.ga)}h.X(t(new u,function(a,b,c){return function(e){return vh(b,ax(a.m.Oh.o2(),e,t(new u,function(a,b){return function(a){var c=b.k;H(z(),G());cj(a,c)}}(a,c)),a.hn).KH())}}(a,g,c)))}k=B(c.g,Zm().Zl);h=Zm().Zl;g=Er((new $g).a(),g);k=k.td();g=gr(new hr,Er(g,k),Ke(M(),f.i));f=Ke(M(),f);Fh(c,h,g,f)}f=t(new u,function(a,b){return function(c){return WJa(XJa(),b,c,a.m)}}(a,t(new u,function(a,b){return function(a){return b.tI(a)}}(a,c))));g=(new K).Y(b);h=Zm().oc;Bh(g,"securedBy",aO(ex(Ch(Dh(a,h,a.m),
c),f)));f=(new K).Y(b);g=Zm().fb;Bh(f,"description",Uh(Ch(Dh(a,g,a.m),c)));e?(Di(),e=[Jw().Gfa]):(Di(),e=[Jw().Fl]);e=(new J).aa(e);f=Di().s;e=Ei(e,f);jx(new kx,c,b,e,a.m).Pc();return c}d.$classData=q({bta:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlOperationParser",{bta:1,f:1,ig:1,A:1,w:1,q:1,n:1});function I3(){this.yb=this.xya=this.m=this.Dg=this.ja=this.W=null}I3.prototype=new r;I3.prototype.constructor=I3;d=I3.prototype;d.L=function(){return"RamlSecuritySettingsParser"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.hta&&Yj(this.W,a.W)&&this.ja===a.ja){var b=this.Dg;a=a.Dg;return null===b?null===a:b.h(a)}return!1};
function Tfb(a,b,c){c=a.W.Bb.Ph(t(new u,function(a,b){return function(c){c=c.Da;var e=zc();c=L(c,e,a.m).ya;return b.Ja(c)||vma(Bw(),c)}}(a,c)));if(Tc(c)){R();sq();var e=c.pc();e.b()?e=w():(e=e.c(),e=(new A).d(e.ga.Of));c=rq(0,c,e.b()?"":e.c());c=lq(R(),c,O().ua);var e=(new A).d(b.k),f=(new Mv).a(),g=(new Ie).a();a=Nv(new Ov,c,f,e,g,a.m).Ir();c=Hn().nz;ff(b,c,a)}return b}d.K=function(a){switch(a){case 0:return this.W;case 1:return this.ja;case 2:return this.Dg;default:throw(new X).e(""+a);}};
function e9a(a){var b=a.ja;if("OAuth 1.0"===b){var b=a.Dg.vX(),c=(new K).Y(a.W),e=oX().AJ;Bh(c,"requestTokenUri",Uh(Ch(Dh(a,e,a.m),b)));c=(new K).Y(a.W);e=oX().rm;Bh(c,"authorizationUri",Uh(Ch(Dh(a,e,a.m),b)));c=(new K).Y(a.W);e=oX().EJ;Bh(c,"tokenCredentialsUri",Uh(Ch(Dh(a,e,a.m),b)));c=(new K).Y(a.W);e=oX().BJ;Bh(c,"signatures",Ch(Dh(a,e,a.m),b));b=Tfb(a,b,(new J).aa(["requestTokenUri","authorizationUri","tokenCredentialsUri","signatures"]))}else"OAuth 2.0"===b?b=Ufb(a):a.xya===b?(b=a.Dg.uQ(),c=
(new K).Y(a.W),e=NP().$,Bh(c,"name",Ch(Dh(a,e,a.m),b)),c=(new K).Y(a.W),e=NP().uz,Bh(c,"in",Ch(Dh(a,e,a.m),b)),b=Tfb(a,b,(new J).aa(["name","in"]))):(b=a.Dg.tX(),b=Tfb(a,b,(new J).aa([])));c=a.W;Di();var e=[Jw().efa],e=(new J).aa(e),f=Di().s;jx(new kx,b,c,Ei(e,f),a.m).Pc();a=Ke(M(),a.W);return cc(b,a)}d.u=function(){return U(W(),this)};
function Ufb(a){var b=a.Dg.xQ(),c=(new K).Y(a.W),e=QP().rm;Bh(c,"authorizationUri",Ch(Dh(a,e,a.m),b));c=(new K).Y(a.W);e=QP().sq;Bh(c,"accessTokenUri",Uh(Ch(Dh(a,e,a.m),b)));var c=(new K).Y(a.W),e=Kh((new Cf).e("flow")),f=QP().Wx;Bh(c,e,Ch(Dh(a,f,a.m),b));c=(new K).Y(a.W);e=QP().pz;Bh(c,"authorizationGrants",aO(Ch(Dh(a,e,a.m),b)));c=t(new u,function(a){return function(b){var c=(new Eh).Vb(b,a.m).Hf(),e=a.Dg;if(pfa(e)){var f=!1,y=B(B(e.g,rn().Eq).g,vi().li);if(OP(y)){var f=!0,y=B(y.g,QP().sr),I=t(new u,
function(){return function(a){a=B(a.g,En().$).G;return a.b()?null:a.c()}}(a)),E=z();if(y.ka(I,E.s).Ja(c.u()))return M(),e=(new N).a(),e=(new RP).P((new Q).a(),e),c=En().$,b=(new Eh).Vb(b,a.m).Hf(),b=ff(e,c,b),e=a.Dg.k,H(z(),G()),cj(b,e)}if(f)return M(),f=(new N).a(),f=(new RP).P((new Q).a(),f),y=a.Dg.k,H(z(),G()),f=cj(f,y),y=a.m,I=rh().A9,E=f.k,c=c.u(),e=B(B(e.g,rn().Eq).g,vi().$).G,e="Scope '"+c+"' not found in settings of declared secured by "+(e.b()?null:e.c())+".",c=w(),Cc(y,I,E,c,e,b.ga),f;M();
e=(new N).a();e=(new RP).P((new Q).a(),e);c=En().$;b=(new Eh).Vb(b,a.m).Hf();b=ff(e,c,b);e=a.Dg.k;H(z(),G());return cj(b,e)}M();e=(new N).a();e=(new RP).P((new Q).a(),e);c=En().$;b=(new Eh).Vb(b,a.m).Hf();b=ff(e,c,b);e=a.Dg.k;H(z(),G());return cj(b,e)}}(a));e=(new K).Y(a.W);f=QP().sr;Bh(e,"scopes",aO(ex(Ch(Dh(a,f,a.m),b),c)));return Tfb(a,b,(new J).aa(["authorizationUri","accessTokenUri","authorizationGrants","scopes"]))}d.Yj=function(){null===this.yb&&this.Ig();return this.yb};
d.Ig=function(){null===this.yb&&(this.yb=yO())};d.y=function(){return Y(this)};function f9a(a,b,c,e,f){a.W=b;a.ja=c;a.Dg=e;a.m=f;a.xya=Hv((new Cf).e("apiKey"));return a}d.M=function(){return Z(this)};d.$classData=q({hta:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlSecuritySettingsParser",{hta:1,f:1,ig:1,A:1,w:1,q:1,n:1});function Vfb(){this.yb=this.m=this.Sn=this.W=null}Vfb.prototype=new r;Vfb.prototype.constructor=Vfb;
function Wfb(a,b,c){var e=yc((new K).Y(a.W),"baseUriParameters");if(x(e)){var e=e.i,f=e.i.pb().nb;if(O().ua===f){var f=e.i,g=Pc(),f=g3(new h3,L(f,g,a.m),t(new u,function(a,b){return function(a){var c=b.k;H(z(),G());cj(a,c)}}(a,b)),a.m).fh(),g=t(new u,function(){return function(a){var b=Ej().df;return Eb(a,b,"path")}}(a)),h=z(),f=f.ka(g,h.s),g=t(new u,function(a,b,c){return function(e){var f=b.Ib(t(new u,function(a,b){return function(a){a=B(a.g,Ej().$).G;return(a.b()?null:a.c())===b}}(a,e)));return x(f)?
f.i:Xfb(e,c.k)}}(a,f,b)),h=z(),g=c.ka(g,h.s);c=f.jn(t(new u,function(a,b){return function(a){return b.Ja(a)}}(a,g)));if(null===c)throw(new v).d(c);c=c.Ba();f=z();g=g.la(c,f.s);f=fn().lj;g=gr(new hr,g,Ke(M(),e.i));e=Ke(M(),e);Fh(b,f,g,e);c.X(t(new u,function(a){return function(b){var c=a.m,e=rh().GJ,f=b.k,g=w(),h=B(b.g,Ej().$).G;c.Vs(e,f,g,"Unused base uri parameter "+(h.b()?null:h.c()),Zb(b.E,n(Fd)),Yb(b))}}(a)))}else O().yd!==f&&(b=a.m,a=rh().x6,e=e.i,c=w(),Cc(b,a,"",c,"Invalid node for baseUriParameters",
e.ga))}else if(w()===e)c.Fa()&&(e=fn().lj,a=t(new u,function(a,b){return function(a){return Xfb(a,b.k)}}(a,b)),f=z(),a=gr(new hr,c.ka(a,f.s),(M(),(new N).a())),M(),c=(new N).a(),Fh(b,e,a,c));else throw(new v).d(e);}d=Vfb.prototype;d.L=function(){return"RamlServersParser"};d.H=function(){return 2};function Yfb(a,b,c){var e=new Vfb;e.W=a;e.Sn=b;e.m=c;return e}
function Xfb(a,b){M();var c=(new N).a(),c=(new JB).P((new Q).a(),c);M();var e=(new N).a(),c=Ue(c,a,e),e=Ej().df,c=Eb(c,e,"path"),e=Ej().kj,c=dj(c,e,!0);H(z(),G());cj(c,b);a=c.wX(a);b=qi().Mj;e=xh().af;Eb(a,e,b);c.E.Wb((new GO).a());return c}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.jta&&Yj(this.W,a.W)){var b=this.Sn;a=a.Sn;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.Sn;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.Yj=function(){null===this.yb&&this.Ig();return this.yb};
d.Pc=function(){var a=yc((new K).Y(this.W),"baseUri");if(x(a)){var a=a.i,b=tma(wma(),a.i,this.m).Hf().u(),c=this.Sn.BM(b),e=fn().Jf;ZN(Uh(Ch(Dh(this,e,this.m),c)),a);var e=a.i,f=c.k,g=Gc(fn().Jf.t);wca(b,e,f,g,this.m);if(!zka(Uu(),b)){var e=this.m,f=rh().P6,g=this.Sn.k,h=yka(Uu(),b),k=a.i,l=w();Cc(e,f,g,l,h,k.ga)}e=(new K).Y(this.W);f=Kh((new Cf).e("serverDescription"));g=fn().fb;Bh(e,f,Ch(Dh(this,g,this.m),c));Wfb(this,c,Aka(Uu(),b));b=this.Sn;e=Jn().Wh;f=z();g=(new GO).a();c=[ac(c,g)];c=gr(new hr,
H(f,(new J).aa(c)),Ke(M(),a.i));a=Ke(M(),a);Fh(b,e,c,a)}else if(w()===a)a=yc((new K).Y(this.W),"baseUriParameters"),a.b()||(a=a.c(),c=this.m,b=rh().$8,e=this.Sn.k,f=w(),Cc(c,b,e,f,"'baseUri' not defined and 'baseUriParameters' defined.",a.ga),M(),c=(new N).a(),c=(new e6).P((new Q).a(),c),b=this.Sn.k,H(z(),G()),f=cj(c,b),Wfb(this,f,G()),c=this.Sn,b=Jn().Wh,e=z(),g=(new GO).a(),f=[ac(f,g)],e=gr(new hr,H(e,(new J).aa(f)),Ke(M(),a.i)),a=Ke(M(),a),Fh(c,b,e,a));else throw(new v).d(a);a=yc((new K).Y(this.W),
Kh((new Cf).e("servers")));a.b()||(a=a.c().i,c=Pc(),b=uv().gc,a=L(a,CM(b,c),this.m),c=t(new u,function(a){return function(b){return DJa(EJa(new BO,a.Sn.k,b,Lx(Jx(),a.m)))}}(this)),b=z(),a.ka(c,b.s).X(t(new u,function(a){return function(b){var c=a.Sn,e=Jn().Wh;return nh(c,e,b)}}(this))))};d.Ig=function(){null===this.yb&&(this.yb=yO())};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({jta:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlServersParser",{jta:1,f:1,ig:1,A:1,w:1,q:1,n:1});function Zfb(){this.yb=this.m=this.fc=this.Nb=this.zb=null}Zfb.prototype=new r;Zfb.prototype.constructor=Zfb;d=Zfb.prototype;
d.Dt=function(){var a=gc(this.Nb),b=Ke(M(),this.zb),a=cc(a,b),b=this.zb.i.pb().nb;if(O().ua===b){var b=this.zb.i,c=Pc(),b=L(b,c,this.m);if(yc((new K).Y(b),"value").qa()){var c=(new K).Y(b),e=lh().gd;Bh(c,"displayName",Uh(Ch(Dh(this,e,this.m),a)));c=(new K).Y(b);e=lh().fb;Bh(c,"description",Uh(Ch(Dh(this,e,this.m),a)));c=(new K).Y(b);e=lh().Fq;Bh(c,"strict",Uh(Ch(Dh(this,e,this.m),a)));c=yc((new K).Y(b),"value");c.b()||(c=c.c(),w3(x3(new y3,c.i,a,this.fc,this.m)));Di();c=[Jw().oe];c=(new J).aa(c);
e=Di().s;jx(new kx,a,b,Ei(c,e),this.m).Pc();c=this.m.Pg();pba(c)&&xO(this.m,a.k,b,"example")}else w3(x3(new y3,this.zb.i,a,this.fc,this.m))}else O().yd!==b&&w3(x3(new y3,this.zb.i,a,this.fc,this.m));return a};d.L=function(){return"RamlSingleExampleValueParser"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.lta&&this.zb===a.zb&&this.Nb===a.Nb){var b=this.fc;a=a.fc;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.zb;case 1:return this.Nb;case 2:return this.fc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Yj=function(){null===this.yb&&this.Ig();return this.yb};function d9a(a,b,c,e){var f=new Zfb;f.zb=a;f.Nb=b;f.fc=c;f.m=e;return f}d.Ig=function(){null===this.yb&&(this.yb=yO())};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({lta:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlSingleExampleValueParser",{lta:1,f:1,ig:1,A:1,w:1,q:1,n:1});function $fb(){}$fb.prototype=new oZ;$fb.prototype.constructor=$fb;d=$fb.prototype;d.zh=function(a){return kG(a)};d.ph=function(a,b){return kG(a)?a:b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};
d.$classData=q({OXa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.StringToAstEmitter$$anonfun$2",{OXa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function eQ(){gQ.call(this);this.C0=null}eQ.prototype=new a$a;eQ.prototype.constructor=eQ;
eQ.prototype.cK=function(){var a=Jy(Ky(),vt(),this.C0.E),b=Xp(this.C0.g,Rl().ob).Mg,c=yM(b),b=Ly(),e=(new My).e(b.Dh),f=(new ph).e(b.xh);Tc(f)&&Ny(e,b.xh);var f=e.r,g=e.da,h=(new pq).e(g),k=Cq(),l=c$a(this,this.C0,a).Gc,p=z(),a=[ZHa(new EN,c,G(),a,this.ge)],a=H(p,(new J).aa(a)),c=z();iq(k,l.la(a,c.s),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));return(new Oy).mc(Py(vq(),b.Dh),e.r)};eQ.prototype.tj=function(){return this.ge};
eQ.prototype.$classData=q({RXa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.JsonSchemaValidationFragmentEmitter",{RXa:1,Sta:1,X7:1,jS:1,f:1,fS:1,RY:1});function z1(){this.na=this.Gc=this.U=this.o=this.ny=null}z1.prototype=new r;z1.prototype.constructor=z1;d=z1.prototype;
d.xA=function(a,b,c,e){this.ny=a;this.o=b;this.U=c;this.na=ju().na;var f=nma(pma(),a,w());a=H(Wg(),G());if(Tc(f.to)){var g=YHa(e.of),h=(new dd).Qd(f.to);vh(a,ax(g,h.Rb.gf().kd(),c,b))}Tc(f.E)&&(g=(new dd).Qd(f.E),vh(a,(new agb).UU(g.Rb.gf().kd(),b,e)));Tc(f.ro)&&(g=Hv((new Cf).e("resourceTypes")),h=(new dd).Qd(f.ro),vh(a,(new f6).GE(g,h.Rb.gf().kd(),b,G(),e)));Tc(f.wo)&&(g=Hv((new Cf).e("traits")),h=(new dd).Qd(f.wo),vh(a,(new f6).GE(g,h.Rb.gf().kd(),b,G(),e)));Tc(f.Fp)&&(g=(new dd).Qd(f.Fp),vh(a,
(new bgb).UU(g.Rb.gf().kd(),b,e)));h=(new dd).Qd(f.Es);g=pf().s;g=Rf(h,g);for(h=h.Rb.gf();h.Qa();){var k=h.Sa();g.Ic(Sx(Tx(),k,w()))}g=g.lc();k=(new dd).Qd(f.Gs);h=pf().s;h=Rf(k,h);for(k=k.Rb.gf();k.Qa();){var l=k.Sa();h.Ic(coa(Tx(),l,w()))}h=h.lc();k=pf();h=g.la(h,k.s);h.Fa()&&(g=new g6,h=h.ce(),g.Lu=h,g.o=b,g.U=c,g.oa="parameters",g.Q=e,vh(a,g));Tc(f.uE)&&(g=(new dd).Qd(f.uE),vh(a,(new cgb).xA(g.Rb.gf().kd(),b,c,e)));Tc(f.Cp)&&(g=(new dd).Qd(f.Cp),vh(a,(new h6).cP("responses",g.Rb.gf().kd(),b,c,
e)));Tc(f.nK)&&(g=(new dd).Qd(f.nK),vh(a,(new LV).eH("examples",g.Rb.gf().kd(),b,e)));Tc(f.QL)&&(g=(new dd).Qd(f.QL),vh(a,(new dgb).xA(g.Rb.gf().kd(),b,c,e)));Tc(f.eL)&&(g=(new dd).Qd(f.eL),vh(a,(new egb).xA(g.Rb.gf().kd(),b,c,e)));Tc(f.NJ)&&(f=(new dd).Qd(f.NJ).Rb.gf().kd(),g=Ps(f),g.b()?g=w():(g=g.c(),g=(new A).d(g.E)),g=g.b()?(M(),(new N).a()):g.c(),b=(new WV).HE(f,b,c,g,e),c=jq(Cq(),g,n(Fd)),e=O().Wa,vh(a,Vw(new Ww,"callbacks",b,e,c)));this.Gc=a;return this};d.L=function(){return"OasDeclarationsEmitter"};
d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Cta){var b=this.ny,c=a.ny;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ny;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Cta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDeclarationsEmitter",{Cta:1,f:1,Fb:1,A:1,w:1,q:1,n:1});function u9a(){}u9a.prototype=new oZ;u9a.prototype.constructor=u9a;d=u9a.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};d.$classData=q({XXa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentParser$$anonfun$1",{XXa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});
function D9a(){}D9a.prototype=new oZ;D9a.prototype.constructor=D9a;d=D9a.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};d.$classData=q({YXa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentParser$EndpointParser$$anonfun$2",{YXa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Y9a(){}Y9a.prototype=new oZ;Y9a.prototype.constructor=Y9a;d=Y9a.prototype;
d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};d.$classData=q({ZXa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentParser$OperationParser$$anonfun$3",{ZXa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function f$a(){this.l=this.Gc=this.Fg=this.o=this.zi=null}f$a.prototype=new r;f$a.prototype.constructor=f$a;d=f$a.prototype;d.L=function(){return"AnnotationFragmentEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Tta&&a.l===this.l){var b=this.zi,c=a.zi;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.zi;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){return this.Gc};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Tta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentEmitter$AnnotationFragmentEmitter",{Tta:1,f:1,hN:1,A:1,w:1,q:1,n:1});function fgb(){this.l=this.Gc=this.Fg=this.o=this.js=null}fgb.prototype=new r;fgb.prototype.constructor=fgb;d=fgb.prototype;d.L=function(){return"DataTypeFragmentEmitter"};
function c$a(a,b,c){var e=new fgb;e.js=b;e.o=c;if(null===a)throw Lb(Mb(),null);e.l=a;e.Fg=Y3(new Z3,a,xla());var f=Xp(b.g,Rl().ob);b=Xp(b.g,Nl().qc);var g=G(),h=G(),k=G();e.Gc=nx(new ox,f,c,g,b,h,k,!1,a.tj()).Yw();return e}d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Uta&&a.l===this.l){var b=this.js,c=a.js;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.js;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){return this.Gc};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Uta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentEmitter$DataTypeFragmentEmitter",{Uta:1,f:1,hN:1,A:1,w:1,q:1,n:1});function b$a(){this.l=this.Gc=this.Fg=this.o=this.Ev=null}b$a.prototype=new r;b$a.prototype.constructor=b$a;d=b$a.prototype;
d.L=function(){return"DocumentationItemFragmentEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Vta&&a.l===this.l){var b=this.Ev,c=a.Ev;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Ev;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){return this.Gc};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Vta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentEmitter$DocumentationItemFragmentEmitter",{Vta:1,f:1,hN:1,A:1,w:1,q:1,n:1});function h$a(){this.l=this.Gc=this.Fg=this.o=this.H1=null}h$a.prototype=new r;h$a.prototype.constructor=h$a;d=h$a.prototype;d.L=function(){return"NamedExampleFragmentEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Wta&&a.l===this.l){var b=this.H1,c=a.H1;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.H1;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){return this.Gc};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Wta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentEmitter$NamedExampleFragmentEmitter",{Wta:1,f:1,hN:1,A:1,w:1,q:1,n:1});function d$a(){this.l=this.Gc=this.Fg=this.o=this.n2=null}d$a.prototype=new r;d$a.prototype.constructor=d$a;d=d$a.prototype;d.L=function(){return"ResourceTypeFragmentEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Yta&&a.l===this.l){var b=this.n2,c=a.n2;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.n2;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){return this.Gc};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Yta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentEmitter$ResourceTypeFragmentEmitter",{Yta:1,f:1,hN:1,A:1,w:1,q:1,n:1});function $3(){}$3.prototype=new oZ;$3.prototype.constructor=$3;$3.prototype.JJ=function(a){if(null!==a)return a;throw Lb(Mb(),(new Nb).e("Fragment not encoding DataObjectNode but "+a));};$3.prototype.Xa=function(){return!0};$3.prototype.Za=function(a,b){return this.JJ(a,b)};
$3.prototype.$classData=q({$Xa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentEmitter$ResourceTypeFragmentEmitter$$anonfun$1",{$Xa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function g$a(){this.l=this.Gc=this.Fg=this.o=this.Gf=null}g$a.prototype=new r;g$a.prototype.constructor=g$a;d=g$a.prototype;d.L=function(){return"SecuritySchemeFragmentEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Zta&&a.l===this.l){var b=this.Gf,c=a.Gf;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Gf;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){return this.Gc};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Zta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentEmitter$SecuritySchemeFragmentEmitter",{Zta:1,f:1,hN:1,A:1,w:1,q:1,n:1});function e$a(){this.l=this.Gc=this.Fg=this.o=this.f3=null}e$a.prototype=new r;e$a.prototype.constructor=e$a;d=e$a.prototype;d.L=function(){return"TraitFragmentEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.$ta&&a.l===this.l){var b=this.f3,c=a.f3;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.f3;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){return this.Gc};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({$ta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentEmitter$TraitFragmentEmitter",{$ta:1,f:1,hN:1,A:1,w:1,q:1,n:1});function a4(){}a4.prototype=new oZ;a4.prototype.constructor=a4;a4.prototype.JJ=function(a){if(null!==a)return a;throw Lb(Mb(),(new Nb).e("Fragment not encoding DataObjectNode but "+a));};a4.prototype.Xa=function(){return!0};a4.prototype.Za=function(a,b){return this.JJ(a,b)};
a4.prototype.$classData=q({aYa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentEmitter$TraitFragmentEmitter$$anonfun$2",{aYa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function jy(){my.call(this)}jy.prototype=new i4;jy.prototype.constructor=jy;jy.prototype.a=function(){my.prototype.bP.call(this,"apiKey",!0);return this};jy.prototype.$classData=q({cYa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSecuritySchemeTypeMapping$ApiKeyOas$",{cYa:1,nJ:1,f:1,A:1,w:1,q:1,n:1});var uoa=void 0;
function iy(){my.call(this)}iy.prototype=new i4;iy.prototype.constructor=iy;iy.prototype.a=function(){my.prototype.bP.call(this,"basic",!0);return this};iy.prototype.$classData=q({dYa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSecuritySchemeTypeMapping$BasicAuthOas$",{dYa:1,nJ:1,f:1,A:1,w:1,q:1,n:1});var toa=void 0;function ky(){my.call(this)}ky.prototype=new i4;ky.prototype.constructor=ky;ky.prototype.a=function(){my.prototype.bP.call(this,"http",!0);return this};
ky.prototype.$classData=q({eYa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSecuritySchemeTypeMapping$Http$",{eYa:1,nJ:1,f:1,A:1,w:1,q:1,n:1});var voa=void 0;function hy(){my.call(this)}hy.prototype=new i4;hy.prototype.constructor=hy;hy.prototype.a=function(){my.prototype.bP.call(this,"oauth2",!0);return this};hy.prototype.$classData=q({fYa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSecuritySchemeTypeMapping$OAuth20Oas$",{fYa:1,nJ:1,f:1,A:1,w:1,q:1,n:1});var soa=void 0;
function ly(){my.call(this)}ly.prototype=new i4;ly.prototype.constructor=ly;ly.prototype.a=function(){my.prototype.bP.call(this,"openIdConnect",!0);return this};ly.prototype.$classData=q({gYa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSecuritySchemeTypeMapping$OpenIdConnect$",{gYa:1,nJ:1,f:1,A:1,w:1,q:1,n:1});var woa=void 0;function ggb(){}ggb.prototype=new oZ;ggb.prototype.constructor=ggb;d=ggb.prototype;d.uba=function(){return this};d.Xa=function(a){return this.im(a)};
d.Za=function(a,b){return this.am(a,b)};d.am=function(a,b){return Ll(a)?a:b.R(a)};d.im=function(a){return Ll(a)};d.$classData=q({hYa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSpecEmitter$ReferencesEmitter$$anonfun$1",{hYa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function hgb(){}hgb.prototype=new oZ;hgb.prototype.constructor=hgb;d=hgb.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.uba=function(){return this};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};
d.Ae=function(a){return x(a)};d.$classData=q({iYa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSpecEmitter$ReferencesEmitter$$anonfun$2",{iYa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function s$a(){}s$a.prototype=new oZ;s$a.prototype.constructor=s$a;d=s$a.prototype;d.Wf=function(a){return Xn(a)};d.Sf=function(a,b){return Xn(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};
d.$classData=q({kYa:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasUserDocumentationsEmitter$$anonfun$1",{kYa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function igb(){}igb.prototype=new oZ;igb.prototype.constructor=igb;d=igb.prototype;d.Xa=function(a){return this.im(a)};d.Za=function(a,b){return this.am(a,b)};d.am=function(a,b){return vz(a)||Ol(a)?a:b.R(a)};d.im=function(a){return vz(a)||Ol(a)};
d.$classData=q({oYa:0},!1,"amf.plugins.document.webapi.parser.spec.raml.ExtensionLikeParser$$anonfun$getParent$2",{oYa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function gSa(){this.Ma=this.Vd=this.Q=null}gSa.prototype=new Roa;gSa.prototype.constructor=gSa;d=gSa.prototype;d.OO=function(a,b,c){this.Vd=a;this.Ma=b;Qy.prototype.OO.call(this,a,b,c);return this};d.L=function(){return"Raml08RootLevelEmitters"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Aua){var b=this.Vd,c=a.Vd;return(null===b?null===c:b.h(c))?this.Ma===a.Ma:!1}return!1};d.K=function(a){switch(a){case 0:return this.Vd;case 1:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){return this.W$()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.W$=function(){var a=nma(pma(),this.Vd.ak(),w()),b=H(Wg(),G());if(Tc(a.to)){var c=jla(this.Q.of),e=(new dd).Qd(a.to);vh(b,ax(c,e.Rb.gf().kd(),this.Vd.Pe(),this.Ma))}Tc(a.ro)&&(c=(new dd).Qd(a.ro),vh(b,(new f6).GE("resourceTypes",c.Rb.gf().kd(),this.Ma,this.Vd.Pe(),this.Q)));Tc(a.wo)&&(c=(new dd).Qd(a.wo),vh(b,(new f6).GE("traits",c.Rb.gf().kd(),this.Ma,this.Vd.Pe(),this.Q)));if(Tc(a.Fp)){var e=(new dd).Qd(a.Fp),c=new i6,e=e.Rb.gf().kd(),f=this.Vd.Pe(),g=this.Ma,h=this.Q.of.Kca();c.$v=e;c.U=f;c.o=
g;c.vP=h;vh(b,c)}Tc(a.Cp)&&(c=Kh((new Cf).e("responses")),a=(new dd).Qd(a.Cp).Rb.gf().kd(),e=this.Ma,f=this.Vd.Pe(),g=this.Q,vh(b,(new h6).cP(c,a,e,f,(new tU).Ci(g.jc,g.Sy,(new ob).a()))));return b};d.$classData=q({Aua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.Raml08RootLevelEmitters",{Aua:1,vYa:1,f:1,A:1,w:1,q:1,n:1});function uSa(){this.Ma=this.Vd=this.Q=null}uSa.prototype=new Roa;uSa.prototype.constructor=uSa;d=uSa.prototype;
d.OO=function(a,b,c){this.Vd=a;this.Ma=b;Qy.prototype.OO.call(this,a,b,c);return this};d.L=function(){return"Raml10RootLevelEmitters"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Dua){var b=this.Vd,c=a.Vd;return(null===b?null===c:b.h(c))?this.Ma===a.Ma:!1}return!1};d.K=function(a){switch(a){case 0:return this.Vd;case 1:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=this.W$(),b=Qoa(this.Vd,this.Ma),c;var e=Dd(this.Vd.ca(),qz().Jc);if(e.b())c=w();else{c=e.c();e=c.t.t.u();c=jq(Cq(),c.t.E,n(Fd));var f=O().Wa;c=(new A).d(Bv(new Cv,"extends",e,f,c))}e=Dd(this.Vd.ca(),Ap().Ud);e.b()?e=w():(e=e.c(),e=(new A).d(Ih(new Jh,"usage",e,w())));c=c.wa();f=z();a=a.la(c,f.s);e=e.wa();c=z();a=a.la(e,c.s);e=z();return a.hg(b,e.s)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.W$=function(){var a=nma(pma(),this.Vd.ak(),w()),b=H(Wg(),G());if(Tc(a.to)){var c=jla(this.Q.of),e=(new dd).Qd(a.to);vh(b,ax(c,e.Rb.gf().kd(),this.Vd.Pe(),this.Ma))}if(Tc(a.E)){var e=(new dd).Qd(a.E),c=new jgb,e=e.Rb.gf().kd(),f=this.Vd.Pe(),g=this.Ma;c.bg=e;c.U=f;c.o=g;if(null===this)throw Lb(Mb(),null);c.l=this;vh(b,c)}Tc(a.ro)&&(c=(new dd).Qd(a.ro),vh(b,(new f6).GE("resourceTypes",c.Rb.gf().kd(),this.Ma,this.Vd.Pe(),this.Q)));Tc(a.wo)&&(c=(new dd).Qd(a.wo),vh(b,(new f6).GE("traits",c.Rb.gf().kd(),
this.Ma,this.Vd.Pe(),this.Q)));if(Tc(a.Fp)){var e=(new dd).Qd(a.Fp),c=new i6,e=e.Rb.gf().kd(),f=this.Vd.Pe(),g=this.Ma,h=this.Q.of.Kca();c.$v=e;c.U=f;c.o=g;c.vP=h;vh(b,c)}e=(new dd).Qd(a.Es);c=pf().s;c=Rf(e,c);for(e=e.Rb.gf();e.Qa();)f=e.Sa(),c.Ic(Sx(Tx(),f,w()));c=c.lc();f=(new dd).Qd(a.Gs);e=pf().s;e=Rf(f,e);for(f=f.Rb.gf();f.Qa();)g=f.Sa(),e.Ic(coa(Tx(),g,w()));e=e.lc();f=pf();c=c.la(e,f.s);if(c.Fa()){var c=c.ce(),e=this.Ma,f=this.Vd.Pe(),g=Kh((new Cf).e("parameters")),k=this.Q,h=new g6,k=(new tU).Ci(k.jc,
k.Sy,(new ob).a());h.Lu=c;h.o=e;h.U=f;h.oa=g;h.Q=k;vh(b,h)}Tc(a.Cp)&&(c=Kh((new Cf).e("responses")),a=(new dd).Qd(a.Cp).Rb.gf().kd(),e=this.Ma,f=this.Vd.Pe(),g=this.Q,vh(b,(new h6).cP(c,a,e,f,(new tU).Ci(g.jc,g.Sy,(new ob).a()))));return b};d.$classData=q({Dua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.Raml10RootLevelEmitters",{Dua:1,vYa:1,f:1,A:1,w:1,q:1,n:1});function j6(){nO.call(this);this.va=null}j6.prototype=new B1;j6.prototype.constructor=j6;function kgb(){}kgb.prototype=j6.prototype;
function lgb(a,b,c){b=a.sM(b);if(!b.b()){var e=b.c(),f=e.i.pb().nb;if(O().ua===f)b=e.i,e=Pc(),L(b,e,a.va).Bb.X(t(new u,function(a,b){return function(c){var e=c.Da,f=zc(),e=L(e,f,a.va).ya;if(Wca(e,!1)){var f=a.va,g=rh().bJ,E="'"+e+"' cannot be used to name a custom type",V=c.Da,da=w();Cc(f,g,b,da,E,V.ga)}e=RU(SU(),c,t(new u,function(a,b,c,e){return function(a){var f=Pg().$,g=Nh(new Oh,b,Ke(M(),c.Da.we())),h=Ke(M(),c.Da);Fh(a,f,g,h);return a.Qb(e,a.Ub())}}(a,e,c,b)),TU(!1,!1),tO(),a.va).wc();if(x(e))return e=
e.i,c=c.i.pb().nb,f=O().yd,c===f&&e.ha().Wb((new GO).a()),c=a.va.le(),f=(new zi).a(),Ai(c,ac(e,f));if(w()===e)e=a.va,f=rh().RZ,g="Error parsing shape '"+c+"'",E=w(),Cc(e,f,b,E,g,c.ga);else throw(new v).d(e);}}(a,c)));else if(O().yd!==f){a=a.va;b=rh().vY;var f="Invalid type "+f+" for 'types' node.",e=e.i,g=w();Cc(a,b,c,g,f,e.ga)}}}d=j6.prototype;d.qs=function(a){this.va=a;nO.prototype.qs.call(this,a);return this};
d.V1=function(a,b,c){a=yc((new K).Y(b),a);a.b()||(a=a.c().i,b=Pc(),L(a,b,this.va).Bb.X(t(new u,function(a,b){return function(c){var h=(new Eh).Vb(c.Da,a.va).Hf(),k=c.i,l=Pc();c=(new N3).hx(L(k,l,a.va),t(new u,function(a,b,c,e){return function(a){var f=Bn().$,f=ff(a,f,b);H(z(),G());cj(f,c);a.E.Ur(Ke(M(),e))}}(a,h,b,c)),Lx(Jx(),a.va)).KH();h=(new zi).a();ac(c,h);return Ai(a.va.le(),c)}}(this,c))))};
d.MA=function(a,b){var c=a.ga+"#/declarations";this.T1(b,c+"/annotations");lgb(this,b,c+"/types");J2(new I2,"traits",t(new u,function(a,b){return function(c){var h=TB(VB(),c),k=c.Da,l=zc(),k=L(k,l,a.va).ya;M();l=(new N).a();h=Ue(h,k,l);c=c.Da;k=zc();c=L(c,k,a.va).ya;c=(new Cf).e(c);return h.Uc(b+"/traits/"+Gj(c.zd))}}(this,c)),b,c+"/traits",this.va).Pc();J2(new I2,"resourceTypes",t(new u,function(a,b){return function(c){var h=PB(RB(),c),k=c.Da,l=zc(),k=L(k,l,a.va).ya;M();l=(new N).a();h=Ue(h,k,l);
c=c.Da;k=zc();c=L(c,k,a.va).ya;c=(new Cf).e(c);return h.Uc(b+"/resourceTypes/"+Gj(c.zd))}}(this,c)),b,c+"/resourceTypes",this.va).Pc();this.FH(b,c+"/securitySchemes");mgb(this,Kh((new Cf).e("parameters")),b,a.ga+"#/parameters");this.V1(Kh((new Cf).e("responses")),b,a.ga+"#/responses")};
function mgb(a,b,c,e){b=yc((new K).Y(c),b);b.b()||(b=b.c().i,c=Pc(),L(b,c,a.va).Bb.X(t(new u,function(a,b){return function(c){var e=c.Da,l=(new Ie).a(),p=c.i,y=Pc(),p=sv(p,y);if(Hp(p))c=(new k6).eP((Zf(),(new $f).d(c)),b,(new A).d(e),l,Lx(Jx(),a.va)).FL();else{Zf();R();p=sq().Td;R();var p=lq(R(),p,O().ua),e=(new k6).eP((new ag).d(p),b,(new A).d(e),l,Lx(Jx(),a.va)).FL(),l=a.va,p=rh().sY,y=e.zr.k,I=w();Cc(l,p,y,I,"Map needed to parse a parameter declaration",c.ga);c=e}qIa(a.va.le(),c)}}(a,e))))}
d.sM=function(a){var b=yc((new K).Y(a),"types");a=yc((new K).Y(a),"schemas");if(!b.b()&&(b.c(),!a.b())){var c=a.c(),e=this.va,f=rh().e6,c=c.Da,g=w();Cc(e,f,"",g,"'schemas' and 'types' properties are mutually exclusive",c.ga)}a.b()||(c=a.c(),e=this.va,f=rh().HZ,c=c.Da,g=w(),iL(e,f,"",g,"'schemas' keyword it's deprecated for 1.0 version, should use 'types' instead",c.ga));return b.b()?a:b};
d.T1=function(a,b){a=yc((new K).Y(a),"annotationTypes");if(!a.b()){var c=a.c(),e=c.i.pb().nb;if(O().ua===e){a=c.i;var f=Pc();a=L(a,f,this.va).Bb;b=t(new u,function(a,b){return function(c){var e=c.Da,f=zc(),e=L(e,f,a.va).ya;c=B1a(a).r$(c,t(new u,function(a,b,c,e){return function(a){var f=Zl().$,g=Nh(new Oh,b,Ke(M(),c.Da.we())),h=Ke(M(),c.Da);Fh(a,f,g,h);s9a(a,e,H(z(),G()))}}(a,e,c,b)));e=a.va.le();f=(new zi).a();return Ai(e,ac(c,f))}}(this,b));f=uv();a.ka(b,f.gc)}else if(O().yd!==e){a=this.va;var f=
rh().$M,e="Invalid type "+e+" for 'annotationTypes' node.",c=c.i,g=w();Cc(a,f,b,g,e,c.ga)}}};function Ooa(){this.l=this.Fg=this.o=this.zi=null}Ooa.prototype=new r;Ooa.prototype.constructor=Ooa;d=Ooa.prototype;d.L=function(){return"AnnotationFragmentEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Lua&&a.l===this.l){var b=this.zi,c=a.zi;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.zi;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.gK=function(){var a=this.l.Q.of.RN().zf(Xp(this.zi.g,Rl().ob),this.o).NT();if(Ep(a))return a.i;if(Hp(a)){var b=a.i,a=z(),b=[Vw(new Ww,"type",b,O().Wa,Gd())];return H(a,(new J).aa(b))}throw(new v).d(a);};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Lua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentEmitter$AnnotationFragmentEmitter",{Lua:1,f:1,iN:1,A:1,w:1,q:1,n:1});function Koa(){this.l=this.Fg=this.o=this.js=null}Koa.prototype=new r;Koa.prototype.constructor=Koa;d=Koa.prototype;d.L=function(){return"DataTypeFragmentEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Mua&&a.l===this.l){var b=this.js,c=a.js;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.js;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.gK=function(){var a=!1,b=null,c=Wa().Ia(Xp(this.js.g,Rl().ob));if(x(c)&&(a=!0,b=c,c=b.i,Xh(c))){var a=this.o,b=G(),e=G();return d3(new Z2,c,a,e,b,this.l.Q).Yw()}if(a){var f=b.i,c=this.l.Q.jc,a=Bc().nh,b=f.k,e=w(),g=Zb(f.ha(),n(Fd)),f=f.Yb();c.Hc(a.k,b,e,"Cannot emit non WebApi Shape",g,xc().tb,f)}return G()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Mua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentEmitter$DataTypeFragmentEmitter",{Mua:1,f:1,iN:1,A:1,w:1,q:1,n:1});function Joa(){this.l=this.Fg=this.o=this.Ev=null}Joa.prototype=new r;Joa.prototype.constructor=Joa;d=Joa.prototype;d.L=function(){return"DocumentationItemFragmentEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Nua&&a.l===this.l){var b=this.Ev,c=a.Ev;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Ev;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.gK=function(){return(new e3).CU(Xp(this.Ev.g,Rl().ob),this.o,!0,this.l.Q).Ua()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Nua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentEmitter$DocumentationItemFragmentEmitter",{Nua:1,f:1,iN:1,A:1,w:1,q:1,n:1});function Loa(){this.l=this.Fg=this.o=this.oe=null}Loa.prototype=new r;Loa.prototype.constructor=Loa;d=Loa.prototype;d.L=function(){return"FragmentNamedExampleEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Oua&&a.l===this.l){var b=this.oe,c=a.oe;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.oe;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.gK=function(){var a=z(),b=[(new b4).tA(Xp(this.oe.g,Rl().ob),this.o,this.l.Q)];return H(a,(new J).aa(b))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Oua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentEmitter$FragmentNamedExampleEmitter",{Oua:1,f:1,iN:1,A:1,w:1,q:1,n:1});function Moa(){this.l=this.Fg=this.jc=this.o=this.mg=null}Moa.prototype=new r;Moa.prototype.constructor=Moa;d=Moa.prototype;d.L=function(){return"ResourceTypeFragmentEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Pua&&a.l===this.l){var b=this.mg,c=a.mg;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.mg;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.gK=function(){var a=Tw(new Uw,Xp(this.mg.g,Rl().ob).jA(),this.o,!1,pc(Os(),G()),this.jc).Ua(),b;b=new l6;var c=z();return a.$b(b,c.s)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Pua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentEmitter$ResourceTypeFragmentEmitter",{Pua:1,f:1,iN:1,A:1,w:1,q:1,n:1});function l6(){}l6.prototype=new oZ;l6.prototype.constructor=l6;l6.prototype.JJ=function(a){if(null!==a)return a;throw Lb(Mb(),(new Nb).e("Fragment not encoding DataObjectNode but "+a));};l6.prototype.Xa=function(){return!0};l6.prototype.Za=function(a,b){return this.JJ(a,b)};
l6.prototype.$classData=q({tYa:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentEmitter$ResourceTypeFragmentEmitter$$anonfun$emitters$1",{tYa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Poa(){this.l=this.Fg=this.o=this.Gf=null}Poa.prototype=new r;Poa.prototype.constructor=Poa;d=Poa.prototype;d.L=function(){return"SecuritySchemeFragmentEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Qua&&a.l===this.l){var b=this.Gf,c=a.Gf;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Gf;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.gK=function(a){return(new $5).uA(Xp(this.Gf.g,Rl().ob),a,this.o,this.l.Q).Ua()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Qua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentEmitter$SecuritySchemeFragmentEmitter",{Qua:1,f:1,iN:1,A:1,w:1,q:1,n:1});function Noa(){this.l=this.Fg=this.jc=this.o=this.mg=null}Noa.prototype=new r;Noa.prototype.constructor=Noa;d=Noa.prototype;d.L=function(){return"TraitFragmentEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Rua&&a.l===this.l){var b=this.mg,c=a.mg;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.mg;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.gK=function(){var a=Tw(new Uw,Xp(this.mg.g,Rl().ob).jA(),this.o,!1,pc(Os(),G()),this.jc).Ua(),b;b=new m6;var c=z();return a.$b(b,c.s)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Rua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentEmitter$TraitFragmentEmitter",{Rua:1,f:1,iN:1,A:1,w:1,q:1,n:1});function m6(){}m6.prototype=new oZ;m6.prototype.constructor=m6;m6.prototype.JJ=function(a){if(null!==a)return a;throw Lb(Mb(),(new Nb).e("Fragment not encoding DataObjectNode but "+a));};m6.prototype.Xa=function(){return!0};m6.prototype.Za=function(a,b){return this.JJ(a,b)};
m6.prototype.$classData=q({uYa:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentEmitter$TraitFragmentEmitter$$anonfun$emitters$2",{uYa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function ngb(){}ngb.prototype=new oZ;ngb.prototype.constructor=ngb;d=ngb.prototype;d.wba=function(){return this};d.Xa=function(a){return this.im(a)};d.Za=function(a,b){return this.am(a,b)};d.am=function(a,b){return Ll(a)?a:b.R(a)};d.im=function(a){return Ll(a)};
d.$classData=q({zYa:0},!1,"amf.plugins.document.webapi.parser.spec.raml.ReferencesEmitter$$anonfun$1",{zYa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function ogb(){}ogb.prototype=new oZ;ogb.prototype.constructor=ogb;d=ogb.prototype;d.wba=function(){return this};d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({AYa:0},!1,"amf.plugins.document.webapi.parser.spec.raml.ReferencesEmitter$$anonfun$2",{AYa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function pgb(){}pgb.prototype=new oZ;pgb.prototype.constructor=pgb;d=pgb.prototype;d.Wf=function(a){return Xn(a)};d.Sf=function(a,b){return Xn(a)?a:b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};
d.$classData=q({BYa:0},!1,"amf.plugins.document.webapi.parser.spec.raml.UserDocumentationsEmitter$$anonfun$$nestedInanonfun$emit$31$1",{BYa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function EKa(){}EKa.prototype=new oZ;EKa.prototype.constructor=EKa;d=EKa.prototype;d.zh=function(a){return kG(a)};d.ph=function(a,b){return kG(a)?a:b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};
d.$classData=q({DYa:0},!1,"amf.plugins.document.webapi.references.WebApiReferenceHandler$$anonfun$resolveUnitDocument$2",{DYa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function vW(){this.Pa=null}vW.prototype=new oZ;vW.prototype.constructor=vW;vW.prototype.xba=function(a){if(null===a)throw Lb(Mb(),null);this.Pa=a;return this};vW.prototype.Xa=function(a){return qgb(a)&&a.l===this.Pa};vW.prototype.Za=function(a,b){return qgb(a)&&a.l===this.Pa?a:b.R(a)};
vW.prototype.$classData=q({mZa:0},!1,"amf.plugins.document.webapi.resolution.stages.ExtendsResolutionStage$$anonfun$$nestedInanonfun$convert$3$1",{mZa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function epa(){}epa.prototype=new oZ;epa.prototype.constructor=epa;d=epa.prototype;d.zh=function(a){return Kr(a)};d.ph=function(a,b){return Kr(a)?a:b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};
d.$classData=q({oZa:0},!1,"amf.plugins.document.webapi.resolution.stages.ExtendsResolutionStage$ElementTreeBuilder$$anonfun$1",{oZa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function rgb(){fz.call(this);this.r2=this.dk=null}rgb.prototype=new cpa;rgb.prototype.constructor=rgb;d=rgb.prototype;d.L=function(){return"EndPointTreeBuilder"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.kva&&a.l===this.l){var b=this.dk;a=a.dk;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.dk;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.zya=function(){var a=Ly(),b=(new My).e(a.Dh),c=(new ph).e(a.xh);Tc(c)&&Ny(b,a.xh);var c=this.dk,e=gC(),f=H(Wg(),G()),g=H(z(),G()),c=(new MU).$0(c,e,f,g,(new OU).Ci(this.l.ub,HN(),(new ob).a())),e=b.r,f=b.da,g=(new pq).e(f);c.Va(g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));a=(new Oy).mc(Py(vq(),a.Dh),b.r).Bd;a=Hc(Ic(a),Pc());a.b()?a=w():(a=a.c(),a=(new A).d(a.Bb));a=(a.b()?G():a.c()).pc();a.b()?a=w():(a=a.c(),a=(new A).d(a.i));return a.b()?R().yd:a.c()};d.y=function(){return Y(this)};
function CUa(a,b){var c=new rgb;c.dk=b;fz.prototype.RAa.call(c,a,b);a=B(b.g,Tm().$f).G;c.r2=a.b()?null:a.c();return c}d.M=function(){return Z(this)};d.$classData=q({kva:0},!1,"amf.plugins.document.webapi.resolution.stages.ExtendsResolutionStage$EndPointTreeBuilder",{kva:1,nZa:1,f:1,A:1,w:1,q:1,n:1});function sgb(){fz.call(this);this.r2=this.Cs=null}sgb.prototype=new cpa;sgb.prototype.constructor=sgb;d=sgb.prototype;d.L=function(){return"OperationTreeBuilder"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.lva&&a.l===this.l){var b=this.Cs;a=a.Cs;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Cs;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.zya=function(){var a=Ly(),b=(new My).e(a.Dh),c=(new ph).e(a.xh);Tc(c)&&Ny(b,a.xh);var c=this.Cs,e=gC(),f=G(),c=(new NU).OK(c,e,f,(new OU).Ci(this.l.ub,HN(),(new ob).a())),e=b.r,f=b.da,g=(new pq).e(f);c.Va(g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));a=(new Oy).mc(Py(vq(),a.Dh),b.r).Bd;b=Pc();a=L(a,b,this.l.ub).Bb.pc();a.b()?a=w():(a=a.c(),a=(new A).d(a.i));return a.b()?R().yd:a.c()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function HUa(a,b){var c=new sgb;c.Cs=b;fz.prototype.RAa.call(c,a,b);a=B(b.g,Zm().nt).G;c.r2=a.b()?null:a.c();return c}d.$classData=q({lva:0},!1,"amf.plugins.document.webapi.resolution.stages.ExtendsResolutionStage$OperationTreeBuilder",{lva:1,nZa:1,f:1,A:1,w:1,q:1,n:1});function p4(){this.l=this.Uf=this.Fl=this.oa=null}p4.prototype=new r;p4.prototype.constructor=p4;d=p4.prototype;d.L=function(){return"TraitBranch"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(qgb(a)&&a.l===this.l){var b=this.oa,c=a.oa;(null===b?null===c:b.h(c))?(b=this.Fl,c=a.Fl,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Uf,a=a.Uf,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Fl;case 2:return this.Uf;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function V$a(a,b,c,e,f){a.oa=c;a.Fl=e;a.Uf=f;if(null===b)throw Lb(Mb(),null);a.l=b;return a}function qgb(a){return!!(a&&a.$classData&&a.$classData.v.mva)}d.$classData=q({mva:0},!1,"amf.plugins.document.webapi.resolution.stages.ExtendsResolutionStage$TraitBranch",{mva:1,f:1,$eb:1,A:1,w:1,q:1,n:1});function opa(){}opa.prototype=new oZ;opa.prototype.constructor=opa;d=opa.prototype;d.Wf=function(a){return Yl(a)};d.Sf=function(a,b){return Yl(a)?a:b.R(a)};d.yba=function(){return this};d.Xa=function(a){return this.Wf(a)};
d.Za=function(a,b){return this.Sf(a,b)};d.$classData=q({qZa:0},!1,"amf.plugins.document.webapi.resolution.stages.ExtensionLikeResolutionStage$$anonfun$$nestedInanonfun$adoptIris$1$1",{qZa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function qpa(){}qpa.prototype=new oZ;qpa.prototype.constructor=qpa;d=qpa.prototype;d.yba=function(){return this};d.Xa=function(a){return this.im(a)};d.Za=function(a,b){return this.am(a,b)};d.am=function(a,b){return Ll(a)?a:Sl(a)?a:b.R(a)};d.im=function(a){return Ll(a)||Sl(a)};
d.$classData=q({rZa:0},!1,"amf.plugins.document.webapi.resolution.stages.ExtensionLikeResolutionStage$$anonfun$1",{rZa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function q4(){oA.call(this)}q4.prototype=new gab;q4.prototype.constructor=q4;q4.prototype.a=function(){oA.prototype.ss.call(this,G());return this};q4.prototype.$classData=q({DZa:0},!1,"amf.plugins.document.webapi.validation.EmptyResultContainer$",{DZa:1,c8:1,f:1,A:1,w:1,q:1,n:1});var oab=void 0;function Qpa(){}Qpa.prototype=new oZ;
Qpa.prototype.constructor=Qpa;d=Qpa.prototype;d.Wf=function(a){if(bm(a)){var b=Wa().Ia(B(a.g,bf().Rf));if(b.b())b=!1;else{var c=b.c();Wa().Ia(B(c.g,Zl().Fc)).qa()?(b=Bw(),c=B(c.g,Zl().$).G,b=Hma(b,"("+(c.b()?null:c.c())+")").qa()):b=!1}if(b)return!0}return tgb(a)&&(Wa().Ia(B(a.g,Is().Rf)).qa()?(b=Wa(),c=B(a.g,Is().Rf),b=b.Ia(B(c.ea,rj().If)).qa()):b=!1,b)?!0:sj(a)&&Yh(a.E,n(Icb))?!0:!1};
d.Sf=function(a,b){if(bm(a)){var c=Wa().Ia(B(a.g,bf().Rf));if(c.b())c=!1;else{var e=c.c();Wa().Ia(B(e.g,Zl().Fc)).qa()?(c=Bw(),e=B(e.g,Zl().$).G,c=Hma(c,"("+(e.b()?null:e.c())+")").qa()):c=!1}if(c)return H(z(),(new J).aa([a]))}return tgb(a)&&(Wa().Ia(B(a.g,Is().Rf)).qa()?(c=Wa(),e=B(a.g,Is().Rf),c=c.Ia(B(e.ea,rj().If)).qa()):c=!1,c)?H(z(),(new J).aa([a])):sj(a)&&Yh(a.E,n(Icb))?(b=new ugb,a=a.E.jf,c=Wg().s,Fr(a,b,c)):b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};
d.$classData=q({GZa:0},!1,"amf.plugins.document.webapi.validation.ExtensionsCandidatesCollector$$anonfun$findExtensionsWithTypes$1",{GZa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function ugb(){}ugb.prototype=new oZ;ugb.prototype.constructor=ugb;d=ugb.prototype;d.Un=function(a,b){return y5(a)?a.Xp:b.R(a)};d.Xa=function(a){return this.jo(a)};d.Za=function(a,b){return this.Un(a,b)};d.jo=function(a){return y5(a)};
d.$classData=q({HZa:0},!1,"amf.plugins.document.webapi.validation.ExtensionsCandidatesCollector$$anonfun$findExtensionsWithTypes$1$$anonfun$applyOrElse$2",{HZa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function vgb(){hu.call(this)}vgb.prototype=new eka;vgb.prototype.constructor=vgb;d=vgb.prototype;d.a=function(){hu.prototype.a.call(this);return this};d.L=function(){return"FilterDataNodeOptions"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.uva)&&!0};
d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({uva:0},!1,"amf.plugins.document.webapi.validation.FilterDataNodeOptions",{uva:1,jla:1,f:1,A:1,w:1,q:1,n:1});function n6(){this.Pa=null}n6.prototype=new oZ;n6.prototype.constructor=n6;function Xpa(a){var b=new n6;if(null===a)throw Lb(Mb(),null);b.Pa=a;return b}
n6.prototype.Xa=function(a){a:{if(null!==a){var b=a.g,c=lh().Ho;b.Pb.Ja(c)?(b=B(a.g,lh().Fq).G,b=!(!b.b()&&!b.c())):b=!1;if(b){a=!0;break a}}if(null!==a&&(b=a.g,c=lh().Sd,b.Pb.Ja(c)?(a=B(a.g,lh().Fq).G,a=!(!a.b()&&!a.c())):a=!1,a)){a=!0;break a}a=!1}return a};
n6.prototype.Za=function(a,b){a:{if(null!==a){var c=a.g,e=lh().Ho;c.Pb.Ja(e)?(c=B(a.g,lh().Fq).G,c=!(!c.b()&&!c.c())):c=!1;if(c){b=this.Pa;var c=B(a.g,lh().Ho),e=a.k,f=B(a.g,jh().Sd).G;a=Upa(new aA,b,c,e,f.b()?null:f.c(),a.E);break a}}if(null!==a&&(c=a.g,e=lh().Sd,c.Pb.Ja(e)?(c=B(a.g,lh().Fq).G,c=!(!c.b()&&!c.c())):c=!1,c)){b=this.Pa;c=a.k;e=B(a.g,jh().Sd).G;a=(new bA).TO(b,c,e.b()?null:e.c(),a.E);break a}a=b.R(a)}return a};
n6.prototype.$classData=q({MZa:0},!1,"amf.plugins.document.webapi.validation.PayloadsInApiCollector$$anonfun$1",{MZa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function aA(){gA.call(this);this.zT=null}aA.prototype=new cqa;aA.prototype.constructor=aA;d=aA.prototype;d.L=function(){return"DataNodeCollectedElement"};d.H=function(){return 4};function Upa(a,b,c,e,f,g){a.zT=c;gA.prototype.TO.call(a,b,e,f,g);return a}
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.a8&&a.l===this.l?this.zT===a.zT&&this.k===a.k&&this.ue===a.ue?this.fG===a.fG:!1:!1};d.K=function(a){switch(a){case 0:return this.zT;case 1:return this.k;case 2:return this.ue;case 3:return this.fG;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({a8:0},!1,"amf.plugins.document.webapi.validation.PayloadsInApiCollector$DataNodeCollectedElement",{a8:1,NZa:1,f:1,A:1,w:1,q:1,n:1});function bA(){gA.call(this)}bA.prototype=new cqa;bA.prototype.constructor=bA;d=bA.prototype;d.TO=function(a,b,c,e){gA.prototype.TO.call(this,a,b,c,e);return this};d.L=function(){return"StringCollectedElement"};d.H=function(){return 3};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.b8&&a.l===this.l?this.k===a.k&&this.ue===a.ue?this.fG===a.fG:!1:!1};d.K=function(a){switch(a){case 0:return this.k;case 1:return this.ue;case 2:return this.fG;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({b8:0},!1,"amf.plugins.document.webapi.validation.PayloadsInApiCollector$StringCollectedElement",{b8:1,NZa:1,f:1,A:1,w:1,q:1,n:1});
function wgb(){this.Lfa=null}wgb.prototype=new oZ;wgb.prototype.constructor=wgb;d=wgb.prototype;d.Wf=function(a){return Yl(a)&&R2a(a.bf()).Cd(t(new u,function(a){return function(c){return a.Lfa.Ja(c)}}(this)))?!0:!1};d.Sf=function(a,b){return Yl(a)&&R2a(a.bf()).Cd(t(new u,function(a){return function(b){return a.Lfa.Ja(b)}}(this)))?a:b.R(a)};function fqa(a){var b=new wgb;b.Lfa=a;return b}d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};
d.$classData=q({QZa:0},!1,"amf.plugins.document.webapi.validation.ShapeFacetsCandidatesCollector$$anonfun$1",{QZa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function fLa(){}fLa.prototype=new oZ;fLa.prototype.constructor=fLa;d=fLa.prototype;d.zh=function(a){return kG(a)};d.zba=function(){return this};d.ph=function(a,b){return kG(a)?a.Bd:b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};
d.$classData=q({WZa:0},!1,"amf.plugins.document.webapi.validation.remote.PlatformPayloadValidator$$anonfun$1",{WZa:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function NLa(){}NLa.prototype=new oZ;NLa.prototype.constructor=NLa;d=NLa.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.DU=function(){return this};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({t0a:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.MinShapeAlgorithm$$anonfun$1",{t0a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function SLa(){}SLa.prototype=new oZ;SLa.prototype.constructor=SLa;d=SLa.prototype;d.ye=function(a,b){return x(a)?a.i:b.R(a)};d.DU=function(){return this};d.Xa=function(a){return this.Ae(a)};d.Za=function(a,b){return this.ye(a,b)};d.Ae=function(a){return x(a)};
d.$classData=q({u0a:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.MinShapeAlgorithm$$anonfun$2",{u0a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function xda(){}xda.prototype=new oZ;xda.prototype.constructor=xda;d=xda.prototype;d.Wf=function(a){return wj(a)};d.Sf=function(a,b){return wj(a)?(a=B(a.ea,xj().rf).G,a.b()?null:a.c()):b.R(a)};d.Xa=function(a){return this.Wf(a)};d.Za=function(a,b){return this.Sf(a,b)};
d.$classData=q({w0a:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.RestrictionComputation$$anonfun$1",{w0a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function PVa(){this.sf=null;this.CM=!1}PVa.prototype=new r;PVa.prototype.constructor=PVa;d=PVa.prototype;d.EU=function(a){this.sf=a;this.CM=!1;return this};
function xgb(a,b){o6(a,b);if(B(b.ea,Pg().ld).Fa())return p6(a,b);var c=z(),e=[H(z(),G())],c=H(c,(new J).aa(e)),c=(new Qd).d(c),e=B(b.ea,Un().Np),f=t(new u,function(a){return function(b){b=Dj(a,b);if(null!==b)return H(z(),(new J).aa([b]));throw(new v).d(b);}}(a)),g=z();e.ka(f,g.s).X(t(new u,function(a,b){return function(c){c.X(t(new u,function(a,b){return function(c){var e=b.ta;c=t(new u,function(a,b){return function(a){var c=H(z(),(new J).aa([b])),e=z();return a.la(c,e.s)}}(a,c));var f=z();b.ta=e.ka(c,
f.s)}}(a,b)))}}(a,c)));if(1===c.ta.Ka())return a=b.ea,e=Un().Np,c=gr(new hr,c.ta.fa(),(new N).a()),f=Wa().Ia(uj(b.ea,Un().Np)),f.b()?f=w():(f=f.c(),f=(new A).d(f.E)),vj(a,e,c,f.b()?(M(),(new N).a()):f.c()),b;c=c.ta;a=t(new u,function(a,b){return function(c){var e=(new A).d(a.sf.ub),f=w(),g=(new yL).a(),e=kda(b,e,f,g,!1).ea,f=Un().wf;c=gr(new hr,c,(new N).a());g=Wa().Ia(uj(b.ea,Un().wf));g.b()?g=w():(g=g.c(),g=(new A).d(g.E));return vj(e,f,c,g.b()?(M(),(new N).a()):g.c())}}(a,b));e=z();c.ka(a,e.s);
M();a=(new N).a();a=(new ti).P((new Q).a(),a);a.k=b.k+"resolved";b=B(b.ea,Pg().$).G;b=b.b()?null:b.c();M();c=(new N).a();Ue(a,b,c);return a}d.L=function(){return"ShapeCanonizer"};d.H=function(){return 0};
function p6(a,b){if(ygb(a,b)){var c=B(b.ca(),Pg().ld).fa();zgb(a,b,c);Yh(b.ha(),n(dM))&&(b=(new Zx).a(),ac(c,b));no(c)||c.ha().Wb((new Yt).a());return Dj(a,c)}c=B(b.ca(),Pg().ld);if(a.sf.lo)var e=B(b.ca(),Pg().ld),f=new Agb,g=z(),f=e.$b(f,g.s);else f=G();gs(b.ca(),Pg().ld);var e=Bgb(a,b),e=(new Qd).d(e),g=G(),h=(new Qd).d(g),g=G(),g=(new Qd).d(g);c.X(t(new u,function(a,b,c,e){return function(f){f=Dj(a,f);if(bi(f)&&B(f.ea,ci().dt).G.qa()){var g=b.ta,h=H(z(),(new J).aa([f])),k=z();b.ta=g.la(h,k.s)}if(dda(f)){var g=
c.ta,h=H(z(),(new J).aa([f.k])),k=f.lU,l=z(),h=h.la(k,l.s),k=z();c.ta=g.la(h,k.s)}else g=c.ta,h=f.k,k=z(),c.ta=g.hg(h,k.s);f=yB(a.sf,e.ta,f);a.CM=!0;f=a.Vca(f);a.CM=!1;e.ta=f}}(a,h,g,e)));if(a.sf.lo){var k=e.ta.ha(),l=t(new u,function(){return function(a){return a.k}}(a)),p=z();k.Wb((new h0).ss(f.ka(l,p.s)))}b.k!==e.ta.k&&(Aab(a.sf.qh,b.k,e.ta.k),Te(e.ta,b.k));f=e.ta;Xh(f)&&h.ta.X(t(new u,function(a,b){return function(a){cda(a,b);bda(b,a)}}(a,f)));f=e.ta;dda(f)&&(h=f.lU,g=g.ta,k=Mi(),f.lU=h.la(g,
k.s));bi(b)&&Cgb(b,c)&&zgb(a,e.ta,c.fa());return e.ta}d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Uva)&&!0};
d.Vca=function(a){var b=a.ha(),c=b.jf;Wg();for(var e=Yg(new Zg,(new $g).a()),c=c.Lb;!c.b();){var f=c.fa();!1!==!!(f&&f.$classData&&f.$classData.v.Sm)&&ah(e,f);c=c.sa()}b.jf=e.gb;if(Ni(a))a=Dgb(this,a);else if(di(a))o6(this,a),a=Wa().Ia(B(a.ea,Pg().ld)).qa()&&B(a.ea,Pg().ld).Fa()?p6(this,a):a;else if(Vh(a))o6(this,a),B(a.ea,Pg().ld).Fa()?a=p6(this,a):(b=Wa().Ia(B(a.ea,Wh().wf)),b.b()||(b=b.c(),b=Dj(this,b),a.ab.Wb((new Xi).a()),gs(a.ea,Wh().wf),a=Vh(b)?(vj(a.ea,Wh().wf,b,(M(),(new N).a())),Vy(a)):
(vj(a.ea,Wh().wf,b,(M(),(new N).a())),a)));else if(Oi(a))a=Egb(this,a);else if(Qi(a))a=xgb(this,a);else if(dm(a))b=a.ea,e=rj().If,c=B(a.ea,rj().If),vj(b,e,Dj(this,c),uj(a.ea,rj().If).E);else if(Si(a))a=Fgb(this,a);else if(Ti(a))a=Fgb(this,a);else if(bi(a))a=Ggb(this,a);else if(!no(a)){if(!Xh(a))throw(new v).d(a);o6(this,a);B(a.ca(),Pg().ld).Fa()?a=p6(this,a):(OVa||(OVa=(new lX).a()),a=(new wab).vy(a),s4(a,ci().uo)?(a=vB(a,a.Oj),b=(new si).P(a.Oj.ca(),a.Oj.ha()),a=Te(b,a.Oj.k)):s4(a,Wh().uo)?a=vB(a,
a.Oj).lI():s4(a,ao().uo)?(a=vB(a,a.Oj),b=(new ui).P(a.Oj.ca(),a.Oj.ha()),a=Te(b,a.Oj.k)):s4(a,xh().uo)?(a=vB(a,a.Oj),b=(new pi).P(a.Oj.ca(),a.Oj.ha()),a=Te(b,a.Oj.k)):s4(a,fo().uo)?(a=vB(a,a.Oj),b=(new Ui).P(a.Oj.ca(),a.Oj.ha()),a=Te(b,a.Oj.k)):s4(a,lo().uo)?(a=vB(a,a.Oj),b=(new ti).P(a.Oj.ca(),a.Oj.ha()),a=Te(b,a.Oj.k)):a=a.Oj)}this.CM||(b=this.sf.qh,e=a,no(e)&&yab(b,e),b.qh.Oe(e.k,e));zab(this.sf.qh,a,this.CM);return a};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};
function Bgb(a,b){a.CM=!0;b=Dj(a,b);a.CM=!1;return b}
function Egb(a,b){o6(a,b);if(B(b.ea,Pg().ld).Fa())return p6(a,b);var c=Wa().Ia(B(b.ea,Wh().wf));if(x(c)){c=Dj(a,c.i);gs(b.ea,Wh().wf);if(Ni(c)){var e=B(c.ea,lo().Ee);a=t(new u,function(a,b){return function(c){if(Vh(c)){var e=(new A).d(a.sf.ub),f=w(),y=(new yL).a(),e=kda(b,e,f,y,!1),f=Wh().wf;return ff(e,f,c)}e=(new A).d(a.sf.ub);f=w();y=(new yL).a();return Wy(kda(b,e,f,y,!1).lI(),c)}}(a,b));var f=z(),e=e.ka(a,f.s);a=lo().Ee;Vg(c,a,e);b=Wa().Ia(uj(b.ea,Pg().$));return x(b)?(b=b.i.t.u(),M(),e=(new N).a(),
Ue(c,b,e)):c}return Vh(c)?(e=Wh().wf,ff(b,e,c)):Wy(b.lI(),c)}return b}
function zgb(a,b,c){if(Xh(b)&&Xh(c)){if(Yh(b.ha(),n(Zt)))var e=c;else e=b,b=c;Hgb(a,e,b);e=H(xz(),G());1<B(b.ca(),th().Vc).lb()&&B(b.ca(),th().Vc).X(t(new u,function(a,b){return function(a){if(B(a.g,lh().$).G.b())var c=!0;else c=B(a.g,lh().$).G,c=b.Ja(c.b()?null:c.c());if(c){for(var c=0,e="example_"+c;b.Ja(e);)c=1+c|0,e="example_"+c;b.Pz(e);c=e;M();e=(new N).a();return Ue(a,c,e)}a=B(a.g,lh().$).G;return b.Pz(a.b()?null:a.c())}}(a,e)));void 0}}
function ygb(a,b){var c=!1,e=null;if(Xh(b)&&(c=!0,e=b,Yh(e.ha(),n(Zt))))return!1;if(c&&1===B(e.ca(),Pg().ld).lb()){var c=B(e.ca(),Pg().ld).fa(),e=z(),f=[Pg().ld,th().Vc,th().$],e=H(e,(new J).aa(f));b=b.ca().Pb;var f=zx(),f=Va(f),g=Ce().s;b=De(b,f,g).Ph(t(new u,function(a,b){return function(a){return b.Ja(a.xc)}}(a,e)));return Igb(a,b,c)}return!1}function Cgb(a,b){return Yh(a.ab,n(Zt))&&1===b.lb()&&B(a.ea,ci().Rg).b()}
function Dgb(a,b){if(B(b.ea,Pg().ld).Fa())return p6(a,b);var c=H(Wg(),G());B(b.ea,lo().Ee).X(t(new u,function(a,b,c){return function(h){h=Bgb(a,h);if(Ni(h))Yi(b.Mg,h.Mg),JLa(a.sf.qh,yM(h.Mg),b),B(h.ea,lo().Ee).X(t(new u,function(a,b){return function(a){return vh(b,a)}}(a,c)));else{if(no(h)){var k=h.dn;if(!k.b()){var k=k.c(),l=b.Mg,p=H(z(),(new J).aa([k])).xb(t(new u,function(a,b){return function(a){return a.k!==b.k}}(a,b)));Yi(l,p);Bab(a.sf.qh,k.k,b)}return vh(c,h)}if(null!==h)return JLa(a.sf.qh,
yM(h.Mg),b),Yi(b.Mg,h.Mg),vh(c,h);throw(new v).d(h);}}}(a,b,c)));a=Wa().Ia(uj(b.ea,lo().Ee));x(a)?a=a.i.E:(M(),a=(new N).a());vj(b.ea,lo().Ee,gr(new hr,c,(new N).a()),a);return b}function Jgb(a,b){a=Zb(a.E,n(lB));if(!a.b()){var c=a.c();a=b.E;var e=Zb(b.E,n(lB));if(e.b())c=(new nB).Qj(c.Fs);else{e=e.c();b=b.E;var f=b.jf;Wg();for(var g=Yg(new Zg,(new $g).a()),f=f.Lb;!f.b();){var h=f.fa();!1!==!mB(h)&&ah(g,h);f=f.sa()}b.jf=g.gb;c=(new nB).Qj(e.Fs.vk(c.Fs))}a.Wb(c)}}
function o6(a,b){var c=uj(b.ca(),Pg().Th);if(Wa().Ia(c).qa()){var e=B(b.ca(),Pg().Th),f=t(new u,function(a){return function(b){return Dj(a,b)}}(a)),g=z(),e=e.ka(f,g.s),f=Pg().Th;ir(b,f,e,c.E)}c=uj(b.ca(),Pg().Vh);Wa().Ia(c).qa()&&(e=B(b.ca(),Pg().Vh),f=t(new u,function(a){return function(b){return Dj(a,b)}}(a)),g=z(),e=e.ka(f,g.s),f=Pg().Vh,ir(b,f,e,c.E));c=uj(b.ca(),Pg().Xh);Wa().Ia(c).qa()&&(e=B(b.ca(),Pg().Xh),f=t(new u,function(a){return function(b){return Dj(a,b)}}(a)),g=z(),e=e.ka(f,g.s),f=
Pg().Xh,ir(b,f,e,c.E));c=uj(b.ca(),Pg().ki);Wa().Ia(c).qa()&&(e=B(b.ca(),Pg().ki),a=Dj(a,e),e=Pg().ki,Fh(b,e,a,c.E))}
function Hgb(a,b,c){B(b.ca(),th().Vc).X(t(new u,function(a,b){return function(c){var h=B(b.ca(),th().Vc).Ib(t(new u,function(a,b){return function(a){if(b.k===a.k)return!0;var c=B(b.g,jh().Sd).G,c=(c.b()?"":c.c()).trim(),e=B(a.g,jh().Sd).G,e=e.b()?"":e.c();return c===e.trim()?(c=B(b.g,lh().$).G,c=c.b()?null:c.c(),a=B(a.g,lh().$).G,c===(a.b()?null:a.c())):!1}}(a,c)));if(x(h))Jgb(c,h.i);else{if(w()===h){c.E.Wb((new q6).a());var h=th().Vc,k=B(b.ca(),th().Vc);c=H(z(),(new J).aa([c]));var l=z(),k=k.la(c,
l.s);return Vg(b,h,k)}throw(new v).d(h);}}}(a,c)))}function Igb(a,b,c){var e=(new ck).a();try{return b.X(t(new u,function(a,b,c){return function(a){var e=Dd(b.ca(),a.xc);if(!x(e)||!e.i.t.t.h(a.t.t))if(a=a.xc,e=ci().Pk,(null===a?null!==e:!a.h(e))||bi(b))throw fUa(c);}}(a,c,e))),!0}catch(f){if(Bx(f)&&f.Da===e)return f.Tfa();throw f;}}d.y=function(){return Y(this)};function Fgb(a,b){o6(a,b);return B(b.ca(),Pg().ld).Fa()?p6(a,b):b}d.M=function(){return Z(this)};
function Ggb(a,b){o6(a,b);var c=(new Xi).a();ac(b,c);if(B(b.ea,Pg().ld).Fa())return p6(a,b);c=B(b.ea,ci().Rg);a=t(new u,function(a){return function(b){var c=Dj(a,b);if(dm(c)){var e=Zb(b.ab,n(Aj));b=Zb(c.ab,n(Aj));x(e)&&(e=e.i,w()===b&&c.ab.Wb(e));return c}var e=a.sf.ub,l=Bc().nh,p=c.k,y=w(),I="Resolution error: Expecting property shape, found "+c,E=Zb(c.ha(),n(Fd)),c=c.Yb();e.Hc(l.k,p,y,I,E,xc().tb,c);return b}}(a));var e=z(),c=c.ka(a,e.s);a=ci().Rg;return Vg(b,a,c)}
d.$classData=q({Uva:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.ShapeCanonizer",{Uva:1,f:1,B0a:1,A:1,w:1,q:1,n:1});function Agb(){}Agb.prototype=new oZ;Agb.prototype.constructor=Agb;d=Agb.prototype;d.LE=function(a){return no(a)||null!==a};d.Xa=function(a){return this.LE(a)};d.Za=function(a,b){return this.WD(a,b)};d.WD=function(a,b){return no(a)?a:null!==a?(b=B(a.ca(),Pg().$).G,a.gk(b.b()?null:b.c(),(M(),(new N).a()))):b.R(a)};
d.$classData=q({y0a:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.ShapeCanonizer$$anonfun$1",{y0a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function RVa(){this.dr=this.sf=this.aF=this.Ff=null}RVa.prototype=new r;RVa.prototype.constructor=RVa;d=RVa.prototype;d.L=function(){return"ShapeExpander"};
function Kgb(a,b){var c=uj(b.ca(),Pg().ld);if(Wa().Ia(c).qa()){var e=B(b.ca(),Pg().ld);a=t(new u,function(a,b){return function(c){var e=!1,f=null;if(no(c)){var e=!0,f=c,y=B(f.ea,ej().it).G;if(y.b()?0:y.c()===b.k)return c=f.dn,c.b()||(c=c.c(),r6(a,c,b)),s6(a,yM(f.Mg),b),vab(a.aF,b,f,a.dr,w(),a.sf)}if(e)return c=f.dn,c.b()||(c=c.c(),r6(a,c,b)),s6(a,yM(f.Mg),b),f;f=t6(a,c);no(f)?(c=f.dn,c.b()||(c=c.c(),r6(a,c,b)),s6(a,yM(f.Mg),b)):(s6(a,yM(f.Mg),b),JLa(a.sf.qh,yM(b.Mg),b));return f}}(a,b));var f=z(),
e=e.ka(a,f.s);a=Pg().ld;ir(b,a,e,c.E)}}d.H=function(){return 2};
function Lgb(a,b){var c=yb(b);if(x(c)){var e=a.dr,c=[a.Ff.k,c.i.k];if(0===(c.length|0))var f=Yd();else{for(var f=Zd(new ee,Yd()),g=0,h=c.length|0;g<h;)fe(f,c[g]),g=1+g|0;f=f.gb}c=e.pq;e.pq=e.pq.vk(f);f=e.Zn;a=Dj(a,b);e.Zn=f;e.pq=c;return a}if(w()===c&&B(b.ca(),Pg().ld).Fa())return e=a.dr,c=B(b.ca(),Pg().ld),f=t(new u,function(){return function(a){return a.k}}(a)),g=z(),f=c.ka(f,g.s).pg().Ij(a.Ff.k),c=e.pq,e.pq=e.pq.vk(f),f=e.Zn,a=Dj(a,b),e.Zn=f,e.pq=c,a;if(no(b))return b;e=a.dr;c=[a.Ff.k];if(0===
(c.length|0))f=Yd();else{f=Zd(new ee,Yd());g=0;for(h=c.length|0;g<h;)fe(f,c[g]),g=1+g|0;f=f.gb}c=e.pq;e.pq=e.pq.vk(f);f=e.Zn;a=Dj(a,b);e.Zn=f;e.pq=c;return a}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Vva){var b=this.Ff,c=a.Ff;if(null===b?null===c:b.h(c))return b=this.aF,a=a.aF,null===b?null===a:b.h(a)}return!1};
d.Vca=function(a){if(null!==a&&yb(a).qa()){var b=this.aF,c=this.Ff,e=(new A).d(this.Ff.k),f=this.dr,g=this.sf;a=uab(e,a);return vab(b,c,a,f,(new A).d(c.k),g)}b=this.dr;if(b.Zn.Ja(a.k)&&!b.P9.Ja(ka(a))&&!no(a))return b=this.aF,c=this.Ff,e=w(),f=this.dr,g=this.sf,a=uab(e,a),vab(b,c,a,f,(new A).d(c.k),g);if(this.dr.Yfa.Ja(a.k))return a;if(Wa().Ia(a.k).b()){var b=this.sf.ub,c=Bc().nh,f=a.k,g=w(),e="Resolution error: Found shape without ID: "+a,h=Zb(a.ha(),n(Fd)),k=a.Yb();b.Hc(c.k,f,g,e,h,xc().tb,k)}oda(this.dr,
a.k);b=this.dr;c=b.Zn;if(Ni(a))a=Mgb(this,a);else if(di(a))a=Ngb(this,a);else if(Vh(a))a=Ogb(this,a);else if(Oi(a))Pgb(this,a),f=uj(a.ea,tfa().wf),Wa().Ia(f).qa()&&(g=t6(this,B(a.ea,Wh().wf)),no(g)?(e=g.dn,e.b()||(e=e.c(),r6(this,e,a))):s6(this,yM(g.Mg),a),vj(a.ea,tfa().wf,g,f.E));else if(Qi(a))a=Qgb(this,a);else if(dm(a)){f=!1;g=Dd(a.ea,rj().Uh);if(w()!==g)if(x(g))g=g.i,g.t.E.Wb((new Xi).a()),0!==Aa(tj(g.t.t))&&(f=!0);else throw(new v).d(g);g=uj(a.ea,rj().If);Wa().Ia(g).qa()?(f=f?t6(this,B(a.ea,
rj().If)):Lgb(this,B(a.ea,rj().If)),vj(a.ea,rj().If,f,g.E)):(f=this.sf.ub,g=Bc().nh,sz(f,g,a.k,"Resolution error: Property shape with missing range: "+a,a.ab))}else if(Si(a))a=Ngb(this,a);else if(!Ti(a))if(bi(a))a=Rgb(this,a);else if(no(a))a=vab(this.aF,a,a,this.dr,w(),this.sf);else{if(!Xh(a))throw(new v).d(a);a=Ngb(this,a)}b.Zn=c;return a};d.K=function(a){switch(a){case 0:return this.Ff;case 1:return this.aF;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function Ogb(a,b){Kgb(a,b);Pgb(a,b);var c=B(b.ea,Wh().Bq).G,e=c.b()?!1:0<(c.c()|0),c=uj(b.ea,Wh().wf);if(e){var f=B(b.ea,Pg().ld),g=new Sgb,h=z();f.$b(g,h.s).X(t(new u,function(a,b){return function(c){c=B(c.ea,Wh().wf);vab(a.aF,b,c,a.dr,(new A).d(b.k),a.sf);c=c.dn;c.b()||(c=c.c(),r6(a,c,b))}}(a,b)))}Wa().Ia(c).qa()&&(e=e?t6(a,B(b.ea,Wh().wf)):Lgb(a,B(b.ea,Wh().wf)),no(e)?(f=e.dn,f.b()||(f=f.c(),r6(a,f,b))):s6(a,yM(e.Mg),b),vj(b.ea,Wh().wf,e,c.E));return b}
function r6(a,b,c){for(var e=c.Mg,f=Di().s,f=Ei(e,f);!f.b();){var g=f.fa(),h=B(g.ca(),Pg().$).G,h=h.b()?null:h.c(),k=B(b.ca(),Pg().$).G;h===(k.b()?null:k.c())&&e.BX(g);f=f.sa()}c.Mg.Om(b);Bab(a.sf.qh,b.k,c);return c}
function Pgb(a,b){var c=uj(b.ca(),Pg().Th);if(Wa().Ia(c).qa()){var e=B(b.ca(),Pg().Th),f=t(new u,function(a,b){return function(c){c=t6(a,c);if(no(c)){var e=c.dn;e.b()||(e=e.c(),r6(a,e,b))}else s6(a,yM(c.Mg),b);return c}}(a,b)),g=z(),e=e.ka(f,g.s),f=Pg().Th;ir(b,f,e,c.E)}c=uj(b.ca(),Pg().Vh);Wa().Ia(c).qa()&&(e=B(b.ca(),Pg().Vh),f=t(new u,function(a,b){return function(c){c=t6(a,c);if(no(c)){var e=c.dn;e.b()||(e=e.c(),r6(a,e,b))}else s6(a,yM(c.Mg),b);return c}}(a,b)),g=z(),e=e.ka(f,g.s),f=Pg().Vh,ir(b,
f,e,c.E));c=uj(b.ca(),Pg().Xh);Wa().Ia(c).qa()&&(e=B(b.ca(),Pg().Xh),f=t(new u,function(a,b){return function(c){c=t6(a,c);if(no(c)){var e=c.dn;e.b()||(e=e.c(),r6(a,e,b))}else s6(a,yM(c.Mg),b);return c}}(a,b)),g=z(),e=e.ka(f,g.s),f=Pg().Xh,ir(b,f,e,c.E));c=uj(b.ca(),Pg().ki);Wa().Ia(c).qa()&&(e=t6(a,B(b.ca(),Pg().ki)),no(e)?(f=e.dn,f.b()||(f=f.c(),r6(a,f,b))):s6(a,yM(e.Mg),b),a=Pg().ki,Fh(b,a,e,c.E))}
function Qgb(a,b){Pgb(a,b);var c=uj(b.ea,Un().Np);if(Wa().Ia(c).qa()){var e=B(b.ea,Un().Np);a=t(new u,function(a,b){return function(c){c=t6(a,c);if(no(c)){var e=c.dn;e.b()||(e=e.c(),r6(a,e,b))}else s6(a,yM(c.Mg),b);return c}}(a,b));var f=z(),e=e.ka(a,f.s);a=Un().Np;ir(b,a,e,c.E)}return b}
function Rgb(a,b){var c=uj(b.ea,ci().Rg);if(Wa().Ia(c).qa()){var e=B(b.ea,ci().Rg),f=t(new u,function(a,b){return function(c){c=t6(a,c);var e=B(c.ea,rj().If);if(no(e)){var f=e.dn;f.b()||(f=f.c(),r6(a,f,b))}s6(a,yM(e.Mg),b);return c}}(a,b)),g=z(),e=e.ka(f,g.s),f=ci().Rg;ir(b,f,e,c.E)}Kgb(a,b);Pgb(a,b);a=Dd(b.ea,ci().Pk);if(x(a))a=a.i,vj(b.ea,ci().Pk,a.t.t,a.t.E.Wb((new Xi).a()));else if(w()===a)a=ci().Pk,c=Nh(new Oh,!1,(new N).a()),e=(M(),(new N).a()).Wb((new Xi).a()),Fh(b,a,c,e);else throw(new v).d(a);
return b}function t6(a,b){var c=a.dr,e=c.Zn;a=Dj(a,b);c.Zn=e;return a}d.y=function(){return Y(this)};function s6(a,b,c){b.X(t(new u,function(a,b){return function(c){return r6(a,c,b)}}(a,c)))}d.M=function(){return Z(this)};
function Mgb(a,b){Kgb(a,b);var c=uj(b.ea,lo().Ee);if(Wa().Ia(c).qa()){var e=B(b.ea,lo().Ee);a=t(new u,function(a,b){return function(c){var e=a.dr,f=e.Zn.Ij(c.k),y=e.pq;e.pq=e.pq.vk(f);f=e.Zn;c=t6(a,c);e.Zn=f;e.pq=y;no(c)?(e=c.dn,e.b()||(e=e.c(),r6(a,e,b))):s6(a,yM(c.Mg),b);return c}}(a,b));var f=z(),e=e.ka(a,f.s);a=lo().Ee;ir(b,a,e,c.E)}else if(Wa().Ia(B(b.ea,Pg().ld)).b()||B(b.ea,Pg().ld).b())c=a.sf.ub,e=Bc().nh,sz(c,e,b.k,"Resolution error: Union shape with missing anyof: "+b,b.ab);return b}
function Ngb(a,b){Kgb(a,b);Pgb(a,b);return b}d.$classData=q({Vva:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.ShapeExpander",{Vva:1,f:1,B0a:1,A:1,w:1,q:1,n:1});function Sgb(){}Sgb.prototype=new oZ;Sgb.prototype.constructor=Sgb;d=Sgb.prototype;d.LE=function(a){return Vh(a)&&no(B(a.ea,Wh().wf))?!0:!1};d.Xa=function(a){return this.LE(a)};d.Za=function(a,b){return this.WD(a,b)};d.WD=function(a,b){return Vh(a)&&no(B(a.ea,Wh().wf))?a:b.R(a)};
d.$classData=q({A0a:0},!1,"amf.plugins.domain.shapes.resolution.stages.shape_normalization.ShapeExpander$$anonfun$expandArray$2",{A0a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Tgb(){this.Nq=this.Vm=this.ra=null}Tgb.prototype=new r;Tgb.prototype.constructor=Tgb;d=Tgb.prototype;d.L=function(){return"AnyMathPayloadValidator"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Xva){var b=this.ra,c=a.ra;return(null===b?null===c:b.h(c))?this.Vm===a.Vm:!1}return!1};
d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.Vm;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fca=function(a,b){return this.nX(a,b).Lf(t(new u,function(){return function(a){return a.Pw}}(this)),um())};
d.nX=function(a,b){a="Unsupported validation for mediatype: "+b+" and shape "+this.ra.k;b=this.Vm;var c=C().Zd,c=(new A).d(Gc(D(new F,c,"value"))),e=this.Vm===xc().tb?rh().zN.k:vo().KS.k,f=w(),g=w();a=vc(new wc,a,b,"",c,e,f,g,null);return hb(ib(),jb(function(a,b){return function(){var a=aQa(),c=EB(FB(),""),e=z();return ZPa(a,c,H(e,(new J).aa([b])))}}(this,a)),um())};
d.mX=function(a){var b=B(a.g,Dm().Md).G,b="Unsupported validation for mediatype: "+(b.b()?null:b.c())+" and shape "+this.ra.k,c=this.Vm,e=Xp(a.g,Dm().ob).k,f=C().Zd,f=(new A).d(Gc(D(new F,f,"value"))),g=this.Vm===xc().tb?rh().zN.k:vo().KS.k,h=Zb(Xp(a.g,Dm().ob).ha(),n(Fd));a=Xp(a.g,Dm().ob);a=Yb(a);b=vc(new wc,b,c,e,f,g,h,a,null);return hb(ib(),jb(function(a,b){return function(){var a=aQa(),c=EB(FB(),""),e=z();return ZPa(a,c,H(e,(new J).aa([b])))}}(this,b)),um())};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({Xva:0},!1,"amf.plugins.domain.shapes.validation.PayloadValidationPluginsHandler$AnyMathPayloadValidator",{Xva:1,f:1,qla:1,A:1,w:1,q:1,n:1});function Ugb(){this.ke=this.Hb=this.Jc=this.Aa=this.oa=this.ja=this.bv=this.hv=this.eu=this.Qg=this.tl=this.aG=null;this.ma=0}Ugb.prototype=new r;Ugb.prototype.constructor=Ugb;d=Ugb.prototype;
d.a=function(){Vgb=this;Iq(this);cT(this);var a=Pb(),b=C().bb;this.aG=Rb(new Sb,a,D(new F,b,"propertyName"),Tb(new Ub,Vb().bb,"property name","",G()));a=Pb();b=C().bb;this.tl=Rb(new Sb,a,D(new F,b,"contentType"),Tb(new Ub,Vb().bb,"content type","",G()));a=(new Ki).Ld(Ej());b=C().bb;this.Qg=Rb(new Sb,a,D(new F,b,"header"),Tb(new Ub,Vb().bb,"header","",G()));a=Pb();b=C().bb;this.eu=Rb(new Sb,a,D(new F,b,"style"),Tb(new Ub,Vb().bb,"style","",G()));a=Yc();b=C().bb;this.hv=Rb(new Sb,a,D(new F,b,"explode"),
Tb(new Ub,Vb().bb,"explode","",G()));a=Yc();b=C().bb;this.bv=Rb(new Sb,a,D(new F,b,"allowReserved"),Tb(new Ub,Vb().bb,"allow reserved","",G()));a=C().bb;a=D(new F,a,"Encoding");b=Lc().ja;this.ja=oz(new pz,a,b);this.oa=this.aG;this.Aa=Tb(new Ub,Vb().bb,"Encoding","",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.sc=function(){var a=this.aG,b=this.tl,c=this.Qg,e=this.eu,f=this.hv,g=this.bv,h=Lc().g;return oz(new pz,a,oz(new pz,b,oz(new pz,c,oz(new pz,e,oz(new pz,f,oz(new pz,g,h))))))};
d.Tc=function(){return this.Aa};d.Zc=function(){M();var a=(new N).a();return(new u6).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({L0a:0},!1,"amf.plugins.domain.webapi.metamodel.EncodingModel$",{L0a:1,f:1,se:1,Oc:1,ic:1,Xc:1,Kj:1});var Vgb=void 0;function ln(){Vgb||(Vgb=(new Ugb).a());return Vgb}function Wgb(){this.ke=this.Hb=this.Jc=this.$=this.Aa=this.ja=this.Jf=null;this.ma=0}Wgb.prototype=new r;Wgb.prototype.constructor=Wgb;d=Wgb.prototype;
d.a=function(){Xgb=this;Iq(this);cT(this);Wb(this);var a=Xc(),b=C().dc;this.Jf=Rb(new Sb,a,D(new F,b,"url"),Tb(new Ub,Vb().dc,"url","URL identifying the organization",G()));a=C().dc;a=D(new F,a,"License");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().dc,"License","Licensing information for a resource",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){var a=this.Jf,b=this.$,c=Lc().g;return oz(new pz,a,oz(new pz,b,c))};
d.Zc=function(){M();var a=(new N).a();return(new wO).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};d.$classData=q({O0a:0},!1,"amf.plugins.domain.webapi.metamodel.LicenseModel$",{O0a:1,f:1,se:1,Oc:1,ic:1,Xc:1,yq:1});var Xgb=void 0;function Xm(){Xgb||(Xgb=(new Wgb).a());return Xgb}function Ygb(){this.ke=this.Hb=this.Jc=this.$=this.Aa=this.ja=this.XI=this.Jf=null;this.ma=0}Ygb.prototype=new r;Ygb.prototype.constructor=Ygb;d=Ygb.prototype;
d.a=function(){Zgb=this;Iq(this);cT(this);Wb(this);var a=Xc(),b=C().dc;this.Jf=Rb(new Sb,a,D(new F,b,"url"),Tb(new Ub,Vb().dc,"url","URL identifying the organization",G()));a=Pb();b=C().dc;this.XI=Rb(new Sb,a,D(new F,b,"email"),Tb(new Ub,Vb().dc,"email","Contact email for the organization",G()));a=C().dc;a=D(new F,a,"Organization");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().dc,"Organization","Organization providing an good or service",G());return this};d.Ce=function(a){this.Hb=a};
d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){Di();var a=(new J).aa([this.Jf,this.$,this.XI]),b=Di().s,a=Ei(a,b),b=Lc().g,c=Di();return a.la(b,c.s)};d.Zc=function(){M();var a=(new N).a();return(new EO).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};d.$classData=q({Q0a:0},!1,"amf.plugins.domain.webapi.metamodel.OrganizationModel$",{Q0a:1,f:1,se:1,Oc:1,ic:1,Xc:1,yq:1});var Zgb=void 0;function bn(){Zgb||(Zgb=(new Ygb).a());return Zgb}
function $gb(){this.ke=this.Hb=this.Jc=this.fb=this.Aa=this.ja=this.lj=this.Jf=null;this.ma=0}$gb.prototype=new r;$gb.prototype.constructor=$gb;d=$gb.prototype;
d.a=function(){ahb=this;Iq(this);cT(this);Ob(this);var a=Pb(),b=C().dc;this.Jf=Rb(new Sb,a,D(new F,b,"urlTemplate"),Tb(new Ub,Vb().dc,"urlTemplate","URL (potentially a template) for the server",G()));a=(new Ki).Ld(Ej());b=C().bb;this.lj=Rb(new Sb,a,D(new F,b,"variable"),Tb(new Ub,Vb().bb,"variable","Variables in the URL for the server",G()));a=C().bb;a=D(new F,a,"Server");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().bb,"Server","Information about the network accessible locations where the API is available",
G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){Di();var a=(new J).aa([this.Jf,this.fb,this.lj]),b=Di().s,a=Ei(a,b),b=Lc().g,c=Di();return a.la(b,c.s)};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a();return(new e6).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({V0a:0},!1,"amf.plugins.domain.webapi.metamodel.ServerModel$",{V0a:1,f:1,se:1,Oc:1,ic:1,Xc:1,ul:1});var ahb=void 0;
function fn(){ahb||(ahb=(new $gb).a());return ahb}function bhb(){this.ke=this.Hb=this.Jc=this.Aa=this.g=this.ja=this.uz=this.$=null;this.ma=0}bhb.prototype=new r;bhb.prototype.constructor=bhb;d=bhb.prototype;
d.a=function(){chb=this;Iq(this);cT(this);var a=Pb(),b=C().dc;this.$=Rb(new Sb,a,D(new F,b,"name"),Tb(new Ub,Vb().oc,"name","",G()));a=Pb();b=C().oc;this.uz=Rb(new Sb,a,D(new F,b,"in"),Tb(new Ub,Vb().oc,"in","",G()));Di();var a=C().oc,a=(new J).aa([D(new F,a,"ApiKeySettings")]),b=Di().s,a=Ei(a,b),b=Hn().ja,c=Di();this.ja=a.la(b,c.s);Di();a=(new J).aa([this.$,this.uz]);b=Di().s;a=Ei(a,b);b=Hn().g;c=Di();this.g=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().oc,"API Key Settings","Settings for an API Key security scheme",
G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.Zc=function(){M();var a=(new N).a();return(new v6).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({Z0a:0},!1,"amf.plugins.domain.webapi.metamodel.security.ApiKeySettingsModel$",{Z0a:1,f:1,kS:1,se:1,Oc:1,ic:1,Xc:1});var chb=void 0;function NP(){chb||(chb=(new bhb).a());return chb}
function dhb(){this.ke=this.Hb=this.Jc=this.Aa=this.g=this.ja=this.OM=this.Eq=null;this.ma=0}dhb.prototype=new r;dhb.prototype.constructor=dhb;d=dhb.prototype;
d.a=function(){ehb=this;Iq(this);cT(this);var a=Pb(),b=C().oc;this.Eq=Rb(new Sb,a,D(new F,b,"scheme"),Tb(new Ub,Vb().oc,"scheme","",G()));a=Pb();b=C().oc;this.OM=Rb(new Sb,a,D(new F,b,"bearerFormat"),Tb(new Ub,Vb().oc,"bearer format","",G()));Di();var a=C().oc,a=(new J).aa([D(new F,a,"HttpSettings")]),b=Di().s,a=Ei(a,b),b=Hn().ja,c=Di();this.ja=a.la(b,c.s);Di();a=(new J).aa([this.Eq,this.OM]);b=Di().s;a=Ei(a,b);b=Hn().g;c=Di();this.g=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().oc,"HTTP Settings","Settings for an HTTP security scheme",
G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.Zc=function(){M();var a=(new N).a();return(new v6).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({$0a:0},!1,"amf.plugins.domain.webapi.metamodel.security.HttpSettingsModel$",{$0a:1,f:1,kS:1,se:1,Oc:1,ic:1,Xc:1});var ehb=void 0;function N2(){ehb||(ehb=(new dhb).a());return ehb}
function fhb(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.BJ=this.EJ=this.rm=this.AJ=null;this.ma=0}fhb.prototype=new r;fhb.prototype.constructor=fhb;d=fhb.prototype;
d.a=function(){ghb=this;Iq(this);cT(this);var a=Pb(),b=C().oc;this.AJ=Rb(new Sb,a,D(new F,b,"requestTokenUri"),Tb(new Ub,Vb().oc,"request token URI","",G()));a=Pb();b=C().oc;this.rm=Rb(new Sb,a,D(new F,b,"authorizationUri"),Tb(new Ub,Vb().oc,"authorization URI","",G()));a=Pb();b=C().oc;this.EJ=Rb(new Sb,a,D(new F,b,"tokenCredentialsUri"),Tb(new Ub,Vb().oc,"token credentials URI","",G()));a=(new Ki).Ld(Pb());b=C().oc;this.BJ=Rb(new Sb,a,D(new F,b,"signature"),Tb(new Ub,Vb().oc,"signature","",G()));
Di();var a=C().oc,a=(new J).aa([D(new F,a,"OAuth1Settings")]),b=Di().s,a=Ei(a,b),b=Hn().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().oc,"OAuth1 Settings","Settings for an OAuth1 security scheme",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){Di();var a=(new J).aa([this.AJ,this.rm,this.EJ,this.BJ]),b=Di().s,a=Ei(a,b),b=Hn().g,c=Di();return a.la(b,c.s)};d.Zc=function(){M();var a=(new N).a();return(new w6).P((new Q).a(),a)};
d.ec=function(){return this.ja};d.$classData=q({a1a:0},!1,"amf.plugins.domain.webapi.metamodel.security.OAuth1SettingsModel$",{a1a:1,f:1,kS:1,se:1,Oc:1,ic:1,Xc:1});var ghb=void 0;function oX(){ghb||(ghb=(new fhb).a());return ghb}function hhb(){this.ke=this.Hb=this.Jc=this.Aa=this.g=this.ja=this.sr=this.sN=this.Wx=this.pz=this.sq=this.rm=null;this.ma=0}hhb.prototype=new r;hhb.prototype.constructor=hhb;d=hhb.prototype;
d.a=function(){ihb=this;Iq(this);cT(this);var a=Pb(),b=C().oc;this.rm=Rb(new Sb,a,D(new F,b,"authorizationUri"),Tb(new Ub,Vb().oc,"authorization URI","",G()));a=Pb();b=C().oc;this.sq=Rb(new Sb,a,D(new F,b,"accessTokenUri"),Tb(new Ub,Vb().oc,"access token URI","",G()));a=(new Ki).Ld(Pb());b=C().oc;this.pz=Rb(new Sb,a,D(new F,b,"authorizationGrant"),Tb(new Ub,Vb().oc,"authorization grant","",G()));a=Pb();b=C().oc;this.Wx=Rb(new Sb,a,D(new F,b,"flow"),Tb(new Ub,Vb().oc,"flow","",G()));a=Pb();b=C().oc;
this.sN=Rb(new Sb,a,D(new F,b,"refreshUri"),Tb(new Ub,Vb().oc,"refresh URI","",G()));a=(new Ki).Ld(En());b=C().oc;this.sr=Rb(new Sb,a,D(new F,b,"scope"),Tb(new Ub,Vb().oc,"scope","",G()));Di();var a=C().oc,a=(new J).aa([D(new F,a,"OAuth2Settings")]),b=Di().s,a=Ei(a,b),b=Hn().ja,c=Di();this.ja=a.la(b,c.s);Di();a=(new J).aa([this.rm,this.sq,this.pz,this.Wx,this.sN,this.sr]);b=Di().s;a=Ei(a,b);b=Hn().g;c=Di();this.g=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().oc,"OAuth2 Settings","Settings for an OAuth2 security scheme",
G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.Zc=function(){M();var a=(new N).a();return(new X3).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({b1a:0},!1,"amf.plugins.domain.webapi.metamodel.security.OAuth2SettingsModel$",{b1a:1,f:1,kS:1,se:1,Oc:1,ic:1,Xc:1});var ihb=void 0;function QP(){ihb||(ihb=(new hhb).a());return ihb}
function jhb(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.Jf=null;this.ma=0}jhb.prototype=new r;jhb.prototype.constructor=jhb;d=jhb.prototype;
d.a=function(){khb=this;Iq(this);cT(this);var a=Pb(),b=C().oc;this.Jf=Rb(new Sb,a,D(new F,b,"openIdConnectUrl"),Tb(new Ub,Vb().oc,"OpenID connect URL","",G()));Di();var a=C().oc,a=(new J).aa([D(new F,a,"OpenIdConnectSettings")]),b=Di().s,a=Ei(a,b),b=Hn().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().oc,"OpenID Settings","Settings for an OpenID security scheme",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};
d.sc=function(){Di();var a=(new J).aa([this.Jf]),b=Di().s,a=Ei(a,b),b=Hn().g,c=Di();return a.la(b,c.s)};d.Zc=function(){M();var a=(new N).a();return(new v6).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({c1a:0},!1,"amf.plugins.domain.webapi.metamodel.security.OpenIdConnectSettingsModel$",{c1a:1,f:1,kS:1,se:1,Oc:1,ic:1,Xc:1});var khb=void 0;function K6a(){khb||(khb=(new jhb).a());return khb}
function lhb(){this.ke=this.Hb=this.Jc=this.Aa=this.ja=this.oa=this.li=this.Eq=this.fb=this.$=null;this.ma=0}lhb.prototype=new r;lhb.prototype.constructor=lhb;d=lhb.prototype;
d.a=function(){mhb=this;Iq(this);cT(this);var a=Pb(),b=C().dc,b=D(new F,b,"name"),c=Vb().dc,e=z(),f=C().dc;this.$=Rb(new Sb,a,b,Tb(new Ub,c,"name","Name for the security scheme",H(e,(new J).aa([Gc(D(new F,f,"name"))]))));a=Pb();b=C().dc;b=D(new F,b,"description");c=Vb().oc;e=z();f=C().dc;this.fb=Rb(new Sb,a,b,Tb(new Ub,c,"description","Name for the security scheme",H(e,(new J).aa([Gc(D(new F,f,"description"))]))));a=vi();b=C().oc;this.Eq=Rb(new Sb,a,D(new F,b,"scheme"),Tb(new Ub,Vb().oc,"scheme",
"",G()));a=Hn();b=C().oc;this.li=Rb(new Sb,a,D(new F,b,"settings"),Tb(new Ub,Vb().oc,"settings","Security scheme settings",G()));this.oa=this.$;Di();a=C().oc;a=(new J).aa([D(new F,a,"ParametrizedSecurityScheme")]);b=Di().s;a=Ei(a,b);b=Lc().ja;c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().oc,"Parametrized Security Scheme","",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};
d.sc=function(){Di();var a=(new J).aa([this.$,this.Eq,this.li]),b=Di().s,a=Ei(a,b),b=Lc().g,c=Di();return a.la(b,c.s)};d.Zc=function(){M();var a=(new N).a();return(new x6).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({d1a:0},!1,"amf.plugins.domain.webapi.metamodel.security.ParametrizedSecuritySchemeModel$",{d1a:1,f:1,se:1,Oc:1,ic:1,Xc:1,Kj:1});var mhb=void 0;function rn(){mhb||(mhb=(new lhb).a());return mhb}
function nhb(){this.ke=this.Hb=this.Jc=this.Aa=this.g=this.ja=this.nz=null;this.ma=0}nhb.prototype=new r;nhb.prototype.constructor=nhb;d=nhb.prototype;
d.a=function(){ohb=this;Iq(this);cT(this);var a=lm(),b=C().oc;this.nz=Rb(new Sb,a,D(new F,b,"additionalProperties"),Tb(new Ub,Vb().oc,"additional properties","",G()));Di();var a=C().oc,a=(new J).aa([D(new F,a,"Settings")]),b=Di().s,a=Ei(a,b),b=Lc().ja,c=Di();this.ja=a.la(b,c.s);Di();a=(new J).aa([this.nz]);b=Di().s;a=Ei(a,b);b=Lc().g;c=Di();this.g=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().oc,"Settings","Settings for a security scheme",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};
d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.Zc=function(){M();var a=(new N).a();return(new I1).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({g1a:0},!1,"amf.plugins.domain.webapi.metamodel.security.SettingsModel$",{g1a:1,f:1,kS:1,se:1,Oc:1,ic:1,Xc:1});var ohb=void 0;function Hn(){ohb||(ohb=(new nhb).a());return ohb}function aC(){this.k=this.mb=this.BCa=this.E=this.g=null;this.ma=!1}aC.prototype=new r;aC.prototype.constructor=aC;function phb(){}
d=phb.prototype=aC.prototype;d.BM=function(a){M();var b=(new N).a(),b=(new e6).P((new Q).a(),b),c=fn().Jf;a=Eb(b,c,a);b=Tm().Wh;nh(this,b,a);return a};d.Ub=function(){return H(z(),G())};d.Qb=function(a){return cj(this,a)};d.tI=function(a){M();var b=(new N).a(),b=(new x6).P((new Q).a(),b),c=rn().$;a=Eb(b,c,a);b=Tm().oc;nh(this,b,a);return a};d.Uc=function(a){return Te(this,a)};d.rc=function(){return this.BCa};d.ha=function(){return this.E};
d.Nd=function(){var a=B(this.g,Tm().$f).G,a=a.b()?null:a.c(),a=(new Cf).e(a);return"/end-points/"+Gj(a.zd)};function LJa(a,b){M();var c=(new N).a(),c=(new JB).P((new Q).a(),c);M();var e=(new N).a(),c=Ue(c,b,e),e=Ej().Fw;b=Eb(c,e,b);c=Tm().Pn;nh(a,c,b);return b}d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.g3=function(){var a=B(this.g,Lc().wi()),b=(new qhb).UO(this),c=z();return a.$b(b,c.s)};
d.ca=function(){return this.g};function VJa(a,b){M();var c=(new N).a(),c=(new cC).P((new Q).a(),c),e=Zm().nt;b=Eb(c,e,b);c=Tm().xk;nh(a,c,b);return b}function STa(a){var b=SV(a);if(b.b())b=w();else var b=b.c(),c=B(a.g,Tm().$f).G,c=c.b()?null:c.c(),c=(new ph).e(c),b=B(b.g,Tm().$f).G,b=b.b()?null:b.c(),b=(new A).d(Zo(c,b));return b.b()?(a=B(a.g,Tm().$f).G,a.b()?null:a.c()):b.c()}d.Ch=function(){return Tm().$};function SV(a){a=Zb(a.E,n(rhb));return a.b()?w():a.c().Rd}d.Te=function(a){this.k=a};
d.P=function(a,b){this.g=a;this.E=b;this.BCa=Tm();return this};d.Sr=function(a){M();var b=(new N).a(),b=(new VO).P((new Q).a(),b);if(!a.b()){a=a.c();var c=vn().Md;Eb(b,c,a)}a=Tm().mf;nh(this,a,b);return b};function Um(a){return!!(a&&a.$classData&&a.$classData.v.l8)}d.$classData=q({l8:0},!1,"amf.plugins.domain.webapi.models.EndPoint",{l8:1,f:1,Jh:1,de:1,Wc:1,Rc:1,dwa:1});function UUa(){}UUa.prototype=new oZ;UUa.prototype.constructor=UUa;d=UUa.prototype;d.Ag=function(a,b){return nn(a)?a:b.R(a)};
d.Bg=function(a){return nn(a)};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};d.UO=function(){return this};d.$classData=q({l1a:0},!1,"amf.plugins.domain.webapi.models.EndPoint$$anonfun$resourceType$1",{l1a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function qhb(){}qhb.prototype=new oZ;qhb.prototype.constructor=qhb;d=qhb.prototype;d.Ag=function(a,b){return pn(a)?a:b.R(a)};d.Bg=function(a){return pn(a)};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};
d.UO=function(){return this};d.$classData=q({m1a:0},!1,"amf.plugins.domain.webapi.models.EndPoint$$anonfun$traits$1",{m1a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function shb(){}shb.prototype=new oZ;shb.prototype.constructor=shb;d=shb.prototype;d.Ag=function(a,b){return pn(a)?a:b.R(a)};d.FU=function(){return this};d.Bg=function(a){return pn(a)};d.Xa=function(a){return this.Bg(a)};d.Za=function(a,b){return this.Ag(a,b)};
d.$classData=q({p1a:0},!1,"amf.plugins.domain.webapi.models.Operation$$anonfun$traits$1",{p1a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function JB(){this.E=this.g=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}JB.prototype=new r;JB.prototype.constructor=JB;function thb(){}d=thb.prototype=JB.prototype;d.Zu=function(a){this.Nk=a};d.Ub=function(){return H(z(),G())};d.Qb=function(a){return cj(this,a)};d.es=function(){};d.It=function(a){this.Zi=a};
d.Uc=function(a){return Te(this,a)};d.El=function(){M();var a=(new N).a(),a=(new JB).P((new Q).a(),a),b=B(this.g,Ej().df).G,b=b.b()?null:b.c(),c=Ej().df;return Eb(a,c,b).Uc(this.k)};d.rc=function(){return Ej()};d.Mq=function(){return H(z(),G())};d.ha=function(){return this.E};d.lu=function(a){this.Zg=a};d.Nt=function(){return this.Zg};d.Nd=function(){var a=B(this.g,Ej().$).G,a=a.b()?"default-parameter":a.c(),a=(new Cf).e(a);return"/parameter/"+Gj(a.zd)};d.Hu=function(){};
d.hga=function(a){M();var b=(new N).a(),b=(new si).P((new Q).a(),b);M();var c=(new N).a();a=Ue(b,a,c);b=Ej().Fc;ff(this,b,a);return a};d.wX=function(a){M();var b=(new N).a(),b=(new pi).P((new Q).a(),b);M();var c=(new N).a();a=Ue(b,a,c);b=Ej().Fc;ff(this,b,a);return a};d.Is=function(a,b,c,e){return fL(this,a,b,c,e)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.gk=function(a,b){return gL(this,a,b)};
d.Qk=function(){return qd(function(){return function(a,b){return(new JB).P(a,b)}}(this))};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.Ht=function(a){this.Jk=a};d.Ch=function(){return Ej().$};d.Up=function(a){return Px(this,a)};d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};
function KJa(a,b){var c=zj(M(),a.E),c=(new JB).P((new Q).a(),c),e=B(a.g,Ej().$).G,e=e.b()?null:e.c();M();var f=(new N).a(),c=Ue(c,e,f);H(z(),G());b=cj(c,b);a.g.Pb.X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();var e=a.t,e=os(e)?e.aO(w(),e.G$(),e.H_(),!1):e;Fh(b,c,e,a.E)}else throw(new v).d(a);}}(a,b)));return b}d.AF=function(a){M();var b=(new N).a(),c=(new Q).a(),b=(new iB).P(c,b);a.b()||(a=a.c(),M(),c=(new N).a(),Ue(b,a,c));a=Ej().Vc;nh(this,a,b);return b};
d.Te=function(a){this.k=a};d.ku=function(a){this.zk=a};d.P=function(a,b){this.g=a;this.E=b;hL(this);return this};function dn(a){return!!(a&&a.$classData&&a.$classData.v.p8)}d.$classData=q({p8:0},!1,"amf.plugins.domain.webapi.models.Parameter",{p8:1,f:1,Jh:1,de:1,Wc:1,Rc:1,Pi:1});function T3(){this.E=this.g=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}T3.prototype=new r;T3.prototype.constructor=T3;d=T3.prototype;d.Zu=function(a){this.Nk=a};
d.Ub=function(){return H(z(),G())};d.Qb=function(a){return cj(this,a)};d.es=function(){};d.It=function(a){this.Zi=a};d.sI=function(a){M();var b=(new N).a(),b=(new JB).P((new Q).a(),b);M();var c=(new N).a();a=Ue(b,a,c);b=yn().Qg;nh(this,b,a);return a};d.Uc=function(a){return Te(this,a)};d.El=function(){M();var a=(new N).a(),a=(new T3).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return yn()};d.Mq=function(){return H(z(),G())};d.ha=function(){return this.E};d.lu=function(a){this.Zg=a};
d.Nt=function(){return this.Zg};d.Nd=function(){return"/request"};d.Hu=function(){};d.Is=function(a,b,c,e){return fL(this,a,b,c,e)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.gk=function(a,b){return gL(this,a,b)};d.x3=function(a){M();var b=(new N).a(),b=(new JB).P((new Q).a(),b);M();var c=(new N).a();a=Ue(b,a,c);b=yn().um;nh(this,b,a);return a};d.Qk=function(){return qd(function(){return function(a,b){return(new T3).P(a,b)}}(this))};
d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.Ht=function(a){this.Jk=a};d.Ch=function(){return kDa().$};d.Up=function(a){return Px(this,a)};d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};d.Te=function(a){this.k=a};d.ku=function(a){this.zk=a};d.P=function(a,b){this.g=a;this.E=b;hL(this);return this};
d.Sr=function(a){M();var b=(new N).a(),b=(new VO).P((new Q).a(),b);if(!a.b()){a=a.c();var c=vn().Md;(new A).d(Eb(b,c,a))}a=yn().mf;nh(this,a,b);return b};function zn(a){return!!(a&&a.$classData&&a.$classData.v.gwa)}d.$classData=q({gwa:0},!1,"amf.plugins.domain.webapi.models.Request",{gwa:1,f:1,Jh:1,de:1,Wc:1,Rc:1,Pi:1});function LB(){this.E=this.g=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}LB.prototype=new r;LB.prototype.constructor=LB;
function uhb(){}d=uhb.prototype=LB.prototype;d.Ub=function(){return H(z(),G())};d.Zu=function(a){this.Nk=a};d.Qb=function(a){return cj(this,a)};d.es=function(){};d.It=function(a){this.Zi=a};d.sI=function(a){M();var b=(new N).a(),b=(new JB).P((new Q).a(),b);M();var c=(new N).a();a=Ue(b,a,c);b=Bn().Qg;nh(this,b,a);return a};d.Uc=function(a){return Te(this,a)};d.El=function(){M();var a=(new N).a(),a=(new LB).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return Bn()};
d.Mq=function(){return H(z(),G())};d.ha=function(){return this.E};d.lu=function(a){this.Zg=a};d.Nt=function(){return this.Zg};d.Nd=function(){var a=B(this.g,Bn().$).G,a=a.b()?"default-response":a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};d.Hu=function(){};d.Is=function(a,b,c,e){return fL(this,a,b,c,e)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.gk=function(a,b){return gL(this,a,b)};
d.Qk=function(){return qd(function(){return function(a,b){return(new LB).P(a,b)}}(this))};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.Ht=function(a){this.Jk=a};d.Ch=function(){return Bn().$};d.Up=function(a){return Px(this,a)};d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};d.Te=function(a){this.k=a};d.ku=function(a){this.zk=a};d.P=function(a,b){this.g=a;this.E=b;hL(this);return this};
d.Sr=function(a){M();var b=(new N).a(),b=(new VO).P((new Q).a(),b);if(!a.b()){a=a.c();var c=vn().Md;(new A).d(Eb(b,c,a))}a=Bn().mf;nh(this,a,b);return b};function Cn(a){return!!(a&&a.$classData&&a.$classData.v.q8)}d.$classData=q({q8:0},!1,"amf.plugins.domain.webapi.models.Response",{q8:1,f:1,Jh:1,de:1,Wc:1,Rc:1,Pi:1});function Qra(){}Qra.prototype=new oZ;Qra.prototype.constructor=Qra;d=Qra.prototype;d.a=function(){return this};d.Un=function(a,b){return vhb(a)?a:b.R(a)};d.Xa=function(a){return this.jo(a)};
d.Za=function(a,b){return this.Un(a,b)};d.jo=function(a){return vhb(a)};d.$classData=q({D1a:0},!1,"amf.plugins.domain.webapi.resolution.ExtendsHelper$$anonfun$$nestedInanonfun$annotateExtensionId$1$1",{D1a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function $ra(){}$ra.prototype=new oZ;$ra.prototype.constructor=$ra;d=$ra.prototype;d.a=function(){return this};d.zh=function(a){return Kr(a)};d.ph=function(a,b){return Kr(a)?Ke(M(),a.Da):b.R(a)};d.Xa=function(a){return this.zh(a)};
d.Za=function(a,b){return this.ph(a,b)};d.$classData=q({E1a:0},!1,"amf.plugins.domain.webapi.resolution.ExtendsHelper$$anonfun$$nestedInanonfun$asEndpoint$3$1",{E1a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Xra(){}Xra.prototype=new oZ;Xra.prototype.constructor=Xra;d=Xra.prototype;d.a=function(){return this};d.zh=function(a){return Kr(a)};d.ph=function(a,b){return Kr(a)?Ke(M(),a.Da):b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};
d.$classData=q({F1a:0},!1,"amf.plugins.domain.webapi.resolution.ExtendsHelper$$anonfun$$nestedInanonfun$asOperation$3$1",{F1a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Rra(){this.LT=null}Rra.prototype=new oZ;Rra.prototype.constructor=Rra;d=Rra.prototype;d.Xa=function(a){return this.im(a)};d.e=function(a){this.LT=a;return this};d.Za=function(a,b){return this.am(a,b)};
d.am=function(a,b){return Ll(a)&&Xp(a.g,Ug().Mc).Cd(t(new u,function(a){return function(b){return b.k===a.LT}}(this)))||Sl(a)&&a.ze().k===this.LT?(b=jd(a),b.b()?a.k:b.c()):b.R(a)};d.im=function(a){return Ll(a)&&Xp(a.g,Ug().Mc).Cd(t(new u,function(a){return function(c){return c.k===a.LT}}(this)))||Sl(a)&&a.ze().k===this.LT?!0:!1};d.$classData=q({G1a:0},!1,"amf.plugins.domain.webapi.resolution.ExtendsHelper$$anonfun$findUnitLocationOfElement$1",{G1a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function dsa(){}
dsa.prototype=new oZ;dsa.prototype.constructor=dsa;d=dsa.prototype;d.a=function(){return this};d.Wba=function(a){return wj(a)};d.m$=function(a,b){return wj(a)?B(a.ea,xj().rf):b.R(a)};d.Xa=function(a){return this.Wba(a)};d.Za=function(a,b){return this.m$(a,b)};d.$classData=q({I1a:0},!1,"amf.plugins.domain.webapi.resolution.stages.DataNodeMerging$$anonfun$1",{I1a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function whb(){this.sga=null}whb.prototype=new oZ;whb.prototype.constructor=whb;d=whb.prototype;
d.Wba=function(a){if(wj(a)){a=B(a.ea,xj().rf).G;var b=B(this.sga.ea,xj().rf).G;if(a.Ja(b.b()?"":b.c()))return!0}return!1};d.m$=function(a,b){if(wj(a)){var c=B(a.ea,xj().rf).G,e=B(this.sga.ea,xj().rf).G;if(c.Ja(e.b()?"":e.c()))return a}return b.R(a)};function Hab(a){var b=new whb;b.sga=a;return b}d.Xa=function(a){return this.Wba(a)};d.Za=function(a,b){return this.m$(a,b)};
d.$classData=q({J1a:0},!1,"amf.plugins.domain.webapi.resolution.stages.DomainElementMerging$$anonfun$$nestedInanonfun$mergeDataNodes$1$1",{J1a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function mC(){this.TW=this.RC=this.eU=this.SW=this.Hg=this.Ad=null}mC.prototype=new r;mC.prototype.constructor=mC;d=mC.prototype;d.L=function(){return"CustomValidationResult"};d.M2=function(){return this.RC};d.H=function(){return 6};d.CC=function(){return this.Hg};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.wwa){var b=this.Ad,c=a.Ad;return(null===b?null===c:b.h(c))&&this.Hg===a.Hg&&this.SW===a.SW&&this.eU===a.eU&&this.RC===a.RC?this.TW===a.TW:!1}return!1};d.mL=function(){return this.Ad};d.K=function(a){switch(a){case 0:return this.Ad;case 1:return this.Hg;case 2:return this.SW;case 3:return this.eU;case 4:return this.RC;case 5:return this.TW;default:throw(new X).e(""+a);}};d.S2=function(){return this.SW};
d.u=function(){return U(W(),this)};d.yO=function(){return this.eU};function qsa(a,b,c,e,f,g,h){a.Ad=b;a.Hg=c;a.SW=e;a.eU=f;a.RC=g;a.TW=h;return a}d.aw=function(){return this.TW};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({wwa:0},!1,"amf.plugins.features.validation.CustomValidationResult",{wwa:1,f:1,RPa:1,A:1,w:1,q:1,n:1});function O1a(){}O1a.prototype=new oZ;O1a.prototype.constructor=O1a;d=O1a.prototype;d.a=function(){return this};d.zh=function(a){return jG(a)};
d.ph=function(a,b){return jG(a)?a:b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};d.$classData=q({s2a:0},!1,"amf.plugins.syntax.SYamlSyntaxPlugin$$anonfun$1",{s2a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function N1a(){}N1a.prototype=new oZ;N1a.prototype.constructor=N1a;d=N1a.prototype;d.a=function(){return this};d.zh=function(a){return kG(a)};d.ph=function(a,b){return kG(a)?a:b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};
d.$classData=q({t2a:0},!1,"amf.plugins.syntax.SYamlSyntaxPlugin$$anonfun$parse$2",{t2a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function P1a(){}P1a.prototype=new oZ;P1a.prototype.constructor=P1a;d=P1a.prototype;d.a=function(){return this};d.zh=function(a){return jG(a)};d.ph=function(a,b){return jG(a)?a:b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};d.$classData=q({u2a:0},!1,"amf.plugins.syntax.SYamlSyntaxPlugin$$anonfun$parse$4",{u2a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});
function Rp(){this.dT=null}Rp.prototype=new $ab;Rp.prototype.constructor=Rp;d=Rp.prototype;d.a=function(){x4.prototype.hm.call(this,w());this.dT=(new ik).a();return this};d.u=function(){return this.dT.u()};d.US=function(a){dNa(this.dT,a);return this};d.nT=function(){};d.$classData=q({C2a:0},!1,"java.io.StringWriter",{C2a:1,D2a:1,f:1,iV:1,VY:1,kca:1,w8:1});function y6(){CD.call(this);this.Ni=null;this.wk=0}y6.prototype=new Rta;y6.prototype.constructor=y6;function xhb(){}d=xhb.prototype=y6.prototype;
d.h=function(a){return a&&a.$classData&&a.$classData.v.Ewa?0===yhb(this,a):!1};d.u=function(){if(null!==this.Ni)return XD(ta(),this.Ni,this.hd+this.wk|0,this.$e-this.hd|0);var a=ia(La(Na),[this.$e-this.hd|0]),b=this.hd;this.hAa(a,0,a.j.length);CD.prototype.gg.call(this,b);return XD(ta(),a,0,a.j.length)};d.Wn=function(a){return yhb(this,a)};d.US=function(a){return gua(this,ja(a))};
function gua(a,b){var c=b.length|0;b=Xta(aua(),b,c);if(b===a)throw(new rk).a();if(a.jH())throw(new ND).a();var c=b.$e,e=b.hd,f=c-e|0,g=a.hd,h=g+f|0;if(h>a.$e)throw(new OD).a();a.hd=h;CD.prototype.gg.call(b,c);h=b.Ni;if(null!==h)a.rGa(g,h,b.wk+e|0,f);else for(;e!==c;)f=g,h=b.sV(e),a.sGa(f,h),e=1+e|0,g=1+g|0;return a}d.Ka=function(){return this.$e-this.hd|0};
function yhb(a,b){if(a===b)return 0;for(var c=a.hd,e=a.$e-c|0,f=b.hd,g=b.$e-f|0,h=e<g?e:g,k=0;k!==h;){var l=a.sV(c+k|0),p=b.sV(f+k|0),l=l-p|0;if(0!==l)return l;k=1+k|0}return e===g?0:e<g?-1:1}d.qAa=function(a,b,c){this.Ni=b;this.wk=c;CD.prototype.$d.call(this,a);return this};d.y=function(){for(var a=this.hd,b=this.$e,c=-182887236,e=a;e!==b;){var f=xI();zI();var g=this.sV(e),c=f.Ga(c,yI(0,Dc(g))),e=1+e|0}return xI().Wd(c,b-a|0)};d.Ow=function(a){return this.iAa(this.hd+a|0)};
function ND(){vE.call(this)}ND.prototype=new jbb;ND.prototype.constructor=ND;ND.prototype.a=function(){vE.prototype.pe.call(this,null,null,0,!0);return this};ND.prototype.$classData=q({W2a:0},!1,"java.nio.ReadOnlyBufferException",{W2a:1,dCa:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function RD(){vE.call(this);this.aV=0}RD.prototype=new bbb;RD.prototype.constructor=RD;RD.prototype.Xm=function(){return"Input length \x3d "+this.aV};RD.prototype.$d=function(a){this.aV=a;vE.prototype.pe.call(this,null,null,0,!0);return this};
RD.prototype.$classData=q({f3a:0},!1,"java.nio.charset.MalformedInputException",{f3a:1,Z2a:1,WY:1,Kf:1,Fe:1,f:1,n:1});function SD(){vE.call(this);this.aV=0}SD.prototype=new bbb;SD.prototype.constructor=SD;SD.prototype.Xm=function(){return"Input length \x3d "+this.aV};SD.prototype.$d=function(a){this.aV=a;vE.prototype.pe.call(this,null,null,0,!0);return this};SD.prototype.$classData=q({g3a:0},!1,"java.nio.charset.UnmappableCharacterException",{g3a:1,Z2a:1,WY:1,Kf:1,Fe:1,f:1,n:1});
function KWa(){this.uP=this.t=null}KWa.prototype=new r;KWa.prototype.constructor=KWa;d=KWa.prototype;d.tc=function(a,b){this.t=a;this.uP=b;return this};d.L=function(){return"FormatError"};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Hwa?this.t===a.t&&this.uP===a.uP:!1};d.K=function(a){switch(a){case 0:return this.t;case 1:return this.uP;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Dca=function(){var a=this.uP;if(null===a)throw(new Rg).a();return"Format Error"+(""===a?"":" ("+this.uP+")")+" in '"+this.t+"'"};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Hwa:0},!1,"org.mulesoft.common.parse.FormatError",{Hwa:1,f:1,r3a:1,A:1,w:1,q:1,n:1});function MX(){this.t=0}MX.prototype=new r;MX.prototype.constructor=MX;d=MX.prototype;d.L=function(){return"RangeError"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Iwa?this.t===a.t:!1};d.K=function(a){switch(a){case 0:return this.t;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.$d=function(a){this.t=a;return this};d.Dca=function(){return"Value '"+this.t+"' out of range"};d.y=function(){var a=-889275714,a=zI().Ga(a,this.t);return zI().Wd(a,1)};d.M=function(){return Z(this)};d.$classData=q({Iwa:0},!1,"org.mulesoft.common.parse.RangeError",{Iwa:1,f:1,r3a:1,A:1,w:1,q:1,n:1});
function zhb(){this.ac=this.Bs=this.rj=this.Ne=this.eg=0}zhb.prototype=new r;zhb.prototype.constructor=zhb;d=zhb.prototype;d.L=function(){return"InputState"};d.H=function(){return 5};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Mwa?this.eg===a.eg&&this.Ne===a.Ne&&this.rj===a.rj&&this.Bs===a.Bs&&this.ac===a.ac:!1};
function YQ(a,b,c){10===a.ac?(a.eg=0,a.Ne=1+a.Ne|0):a.eg=a.eg+(a.Bs-a.rj|0)|0;a.rj=a.Bs;if(a.rj>=c)a.ac=mE().ht;else{var e=ya(b,a.rj);a.Bs=1+a.Bs|0;if(55296===(64512&e)&&a.Bs<c&&(b=ya(b,a.Bs),56320===(64512&b))){a.Bs=1+a.Bs|0;a.ac=65536+(((1023&e)<<10)+(1023&b)|0)|0;return}a.ac=e}}d.K=function(a){switch(a){case 0:return this.eg;case 1:return this.Ne;case 2:return this.rj;case 3:return this.Bs;case 4:return this.ac;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function ZX(a){return a.ac!==mE().ht}function lNa(a,b,c,e,f){var g=new zhb;g.eg=a;g.Ne=b;g.rj=c;g.Bs=e;g.ac=f;return g}d.y=function(){var a=-889275714,a=zI().Ga(a,this.eg),a=zI().Ga(a,this.Ne),a=zI().Ga(a,this.rj),a=zI().Ga(a,this.Bs),a=zI().Ga(a,this.ac);return zI().Wd(a,5)};d.M=function(){return Z(this)};d.$classData=q({Mwa:0},!1,"org.mulesoft.lexer.CharSequenceLexerInput$InputState",{Mwa:1,f:1,rfb:1,A:1,w:1,q:1,n:1});function Ahb(){}Ahb.prototype=new r;Ahb.prototype.constructor=Ahb;d=Ahb.prototype;
d.a=function(){return this};d.L=function(){return"Bool"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"Bool"};d.y=function(){return 2076426};d.M=function(){return Z(this)};d.$classData=q({G3a:0},!1,"org.yaml.builder.DocBuilder$SType$Bool$",{G3a:1,f:1,A8:1,A:1,w:1,q:1,n:1});var Bhb=void 0;function tM(){Bhb||(Bhb=(new Ahb).a());return Bhb}function Chb(){}Chb.prototype=new r;Chb.prototype.constructor=Chb;d=Chb.prototype;d.a=function(){return this};d.L=function(){return"Float"};
d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"Float"};d.y=function(){return 67973692};d.M=function(){return Z(this)};d.$classData=q({H3a:0},!1,"org.yaml.builder.DocBuilder$SType$Float$",{H3a:1,f:1,A8:1,A:1,w:1,q:1,n:1});var Dhb=void 0;function vM(){Dhb||(Dhb=(new Chb).a());return Dhb}function Ehb(){}Ehb.prototype=new r;Ehb.prototype.constructor=Ehb;d=Ehb.prototype;d.a=function(){return this};d.L=function(){return"Int"};d.H=function(){return 0};
d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"Int"};d.y=function(){return 73679};d.M=function(){return Z(this)};d.$classData=q({I3a:0},!1,"org.yaml.builder.DocBuilder$SType$Int$",{I3a:1,f:1,A8:1,A:1,w:1,q:1,n:1});var Fhb=void 0;function uM(){Fhb||(Fhb=(new Ehb).a());return Fhb}function Ghb(){}Ghb.prototype=new r;Ghb.prototype.constructor=Ghb;d=Ghb.prototype;d.a=function(){return this};d.L=function(){return"Str"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"Str"};
d.y=function(){return 83473};d.M=function(){return Z(this)};d.$classData=q({J3a:0},!1,"org.yaml.builder.DocBuilder$SType$Str$",{J3a:1,f:1,A8:1,A:1,w:1,q:1,n:1});var Hhb=void 0;function yE(){Hhb||(Hhb=(new Ghb).a());return Hhb}function Ihb(){}Ihb.prototype=new JE;Ihb.prototype.constructor=Ihb;d=Ihb.prototype;d.a=function(){return this};d.L=function(){return"BlockIn"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"BlockIn"};d.y=function(){return 1643214450};
d.M=function(){return Z(this)};d.$classData=q({f4a:0},!1,"org.yaml.lexer.BlockIn$",{f4a:1,oS:1,f:1,A:1,w:1,q:1,n:1});var Jhb=void 0;function eY(){Jhb||(Jhb=(new Ihb).a());return Jhb}function Khb(){}Khb.prototype=new JE;Khb.prototype.constructor=Khb;d=Khb.prototype;d.a=function(){return this};d.L=function(){return"BlockKey"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"BlockKey"};d.y=function(){return-599957838};d.M=function(){return Z(this)};
d.$classData=q({g4a:0},!1,"org.yaml.lexer.BlockKey$",{g4a:1,oS:1,f:1,A:1,w:1,q:1,n:1});var Lhb=void 0;function kY(){Lhb||(Lhb=(new Khb).a());return Lhb}function Mhb(){}Mhb.prototype=new JE;Mhb.prototype.constructor=Mhb;d=Mhb.prototype;d.a=function(){return this};d.L=function(){return"BlockOut"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"BlockOut"};d.y=function(){return-599953503};d.M=function(){return Z(this)};
d.$classData=q({h4a:0},!1,"org.yaml.lexer.BlockOut$",{h4a:1,oS:1,f:1,A:1,w:1,q:1,n:1});var Nhb=void 0;function AXa(){Nhb||(Nhb=(new Mhb).a());return Nhb}function Ohb(){}Ohb.prototype=new JE;Ohb.prototype.constructor=Ohb;d=Ohb.prototype;d.a=function(){return this};d.L=function(){return"FlowIn"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"FlowIn"};d.y=function(){return 2107204371};d.M=function(){return Z(this)};
d.$classData=q({i4a:0},!1,"org.yaml.lexer.FlowIn$",{i4a:1,oS:1,f:1,A:1,w:1,q:1,n:1});var Phb=void 0;function mXa(){Phb||(Phb=(new Ohb).a());return Phb}function Qhb(){}Qhb.prototype=new JE;Qhb.prototype.constructor=Qhb;d=Qhb.prototype;d.a=function(){return this};d.L=function(){return"FlowKey"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"FlowKey"};d.y=function(){return 898827825};d.M=function(){return Z(this)};
d.$classData=q({j4a:0},!1,"org.yaml.lexer.FlowKey$",{j4a:1,oS:1,f:1,A:1,w:1,q:1,n:1});var Rhb=void 0;function hY(){Rhb||(Rhb=(new Qhb).a());return Rhb}function Shb(){}Shb.prototype=new JE;Shb.prototype.constructor=Shb;d=Shb.prototype;d.a=function(){return this};d.L=function(){return"FlowOut"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"FlowOut"};d.y=function(){return 898832160};d.M=function(){return Z(this)};
d.$classData=q({k4a:0},!1,"org.yaml.lexer.FlowOut$",{k4a:1,oS:1,f:1,A:1,w:1,q:1,n:1});var Thb=void 0;function lXa(){Thb||(Thb=(new Shb).a());return Thb}function d2a(){}d2a.prototype=new oZ;d2a.prototype.constructor=d2a;d=d2a.prototype;d.zh=function(a){return Ir(a)};d.ph=function(a,b){return Ir(a)?a:b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};d.Hba=function(){return this};
d.$classData=q({F4a:0},!1,"org.yaml.model.YDocument$$anonfun$1",{F4a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function e2a(){}e2a.prototype=new oZ;e2a.prototype.constructor=e2a;d=e2a.prototype;d.zh=function(a){return jG(a)};d.ph=function(a,b){return jG(a)?a.Bt:b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};d.Hba=function(){return this};d.$classData=q({G4a:0},!1,"org.yaml.model.YDocument$$anonfun$2",{G4a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function g2a(){}g2a.prototype=new oZ;
g2a.prototype.constructor=g2a;d=g2a.prototype;d.zh=function(a){return Kr(a)};d.ph=function(a,b){return Kr(a)?a:b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};d.Y=function(){return this};d.$classData=q({P4a:0},!1,"org.yaml.model.YMap$$anonfun$1",{P4a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function yva(){}yva.prototype=new oZ;yva.prototype.constructor=yva;d=yva.prototype;d.a=function(){return this};d.zh=function(a){return Ir(a)};d.ph=function(a,b){return Ir(a)?a:b.R(a)};
d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};d.$classData=q({R4a:0},!1,"org.yaml.model.YMapEntry$$anonfun$2",{R4a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function iOa(){}iOa.prototype=new oZ;iOa.prototype.constructor=iOa;d=iOa.prototype;d.a=function(){return this};d.zh=function(a){return Ir(a)};d.ph=function(a,b){return Ir(a)?a:b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};
d.$classData=q({S4a:0},!1,"org.yaml.model.YMapEntry$$anonfun$3",{S4a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function FR(){GR.call(this);this.cw=this.ICa=null}FR.prototype=new ebb;FR.prototype.constructor=FR;FR.prototype.u=function(){return"*"+this.ICa};FR.prototype.pb=function(){return this.cw.pb()};FR.prototype.we=function(){return this.cw.we()};FR.prototype.$classData=q({hxa:0},!1,"org.yaml.model.YNode$Alias",{hxa:1,jxa:1,qS:1,kt:1,f:1,qJ:1,AB:1});
function lF(){GR.call(this);this.cw=this.hda=this.TV=null}lF.prototype=new ebb;lF.prototype.constructor=lF;function Gva(a,b,c,e,f){a.TV=b;a.hda=c;GR.prototype.mc.call(a,e,f);a.cw=w();return a}lF.prototype.pb=function(){var a=this.cw;a.b()?a=w():(a=a.c(),a=(new A).d(a.pb()));return a.b()?this.hda:a.c()};lF.prototype.we=function(){var a=this.cw;a.b()?a=w():(a=a.c(),a=(new A).d(a.we()));return a.b()?this.TV:a.c()};function mG(a){return!!(a&&a.$classData&&a.$classData.v.ixa)}
lF.prototype.$classData=q({ixa:0},!1,"org.yaml.model.YNode$MutRef",{ixa:1,jxa:1,qS:1,kt:1,f:1,qJ:1,AB:1});function k2a(){}k2a.prototype=new oZ;k2a.prototype.constructor=k2a;d=k2a.prototype;d.zh=function(a){return Ir(a)};d.ph=function(a,b){return Ir(a)?a:b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};d.$classData=q({a5a:0},!1,"org.yaml.model.YSequence$$anonfun$1",{a5a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function aOa(){this.l=null}aOa.prototype=new r;
aOa.prototype.constructor=aOa;d=aOa.prototype;d.L=function(){return"MapEntryParser"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.pxa)&&a.l===this.l&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.$O=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};
d.Pc=function(){this.l.gn.Oz();PNa(this.l);var a;a=bOa(this.l);if(!a){VNa(this.l);for(var b=this.l,c=[NE().ii,NE().Tx];;){if(LNa(b))e=!1;else{for(var e=tR(b),f=0;;){if(f<(c.length|0))var g=c[f],g=!1===ub(vb(),g,e);else g=!1;if(g)f=1+f|0;else break}var e=f===(c.length|0)}if(e)uR(b);else break}}if(a||NNa(this.l,NE().ii,":")){MNa(this.l,NE().ii,":")&&(uR(this.l),cOa(this.l),this.l.gn.Oz());if(b=RNa(this.l))this.l.gn.Oz();else for(VNa(this.l),c=this.l,e=[NE().ii,NE().Tx];;){if(LNa(c))f=!1;else{f=tR(c);
for(g=0;;){if(g<(e.length|0))var h=e[g],h=!1===ub(vb(),h,f);else h=!1;if(h)g=1+g|0;else break}f=g===(e.length|0)}if(f)uR(c);else break}a=!!(a&b)}else{a=this.l;for(b=[(new P).N(NE().ii,(new A).d(",")),(new P).N(NE().Tx,w())];;){if(LNa(a))c=!1;else{for(c=0;;)if(c<(b.length|0)&&!1===dOa(a,b[c]))c=1+c|0;else break;c=c===(b.length|0)}if(c)uR(a);else break}a=!1}a?(a=this.l.gn.ou(),UNa(this.l,iC(jC(),vl(fc(),a)))):(this.l.gn.ou(),SNa(this.l))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({pxa:0},!1,"org.yaml.parser.JsonParser$MapEntryParser",{pxa:1,f:1,g5a:1,A:1,w:1,q:1,n:1});function ZNa(){this.l=null}ZNa.prototype=new r;ZNa.prototype.constructor=ZNa;d=ZNa.prototype;d.L=function(){return"SequenceValueParser"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.qxa)&&a.l===this.l&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.$O=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};
d.Pc=function(){if(!RNa(this.l)){VNa(this.l);for(var a=this.l,b=[(new P).N(NE().ii,(new A).d(",")),(new P).N(NE().zD,w())];;){if(LNa(a))c=!1;else{for(c=0;;)if(c<(b.length|0)&&!1===dOa(a,b[c]))c=1+c|0;else break;var c=c===(b.length|0)}if(c)uR(a);else break}}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({qxa:0},!1,"org.yaml.parser.JsonParser$SequenceValueParser",{qxa:1,f:1,g5a:1,A:1,w:1,q:1,n:1});function fOa(){this.Pa=null}fOa.prototype=new oZ;
fOa.prototype.constructor=fOa;d=fOa.prototype;d.zh=function(a){return Gwa(a)};d.ph=function(a,b){return Gwa(a)?vh(this.Pa.SV,a.ya):b.R(a)};d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};d.$classData=q({q5a:0},!1,"org.yaml.parser.YamlLoader$DirectiveBuilder$$anonfun$create$3",{q5a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Swa(){}Swa.prototype=new oZ;Swa.prototype.constructor=Swa;d=Swa.prototype;d.zh=function(a){return jG(a)};d.ph=function(a,b){return jG(a)?" #"+a.Bt:b.R(a)};
d.Xa=function(a){return this.zh(a)};d.Za=function(a,b){return this.ph(a,b)};d.$classData=q({H5a:0},!1,"org.yaml.render.YamlRender$$anonfun$1",{H5a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function Uhb(){}Uhb.prototype=new r;Uhb.prototype.constructor=Uhb;d=Uhb.prototype;d.a=function(){return this};d.L=function(){return"Arg"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"Arg"};d.y=function(){return 66102};d.M=function(){return Z(this)};
d.$classData=q({I5a:0},!1,"scopt.Arg$",{I5a:1,f:1,sS:1,A:1,w:1,q:1,n:1});var Vhb=void 0;function BG(){Vhb||(Vhb=(new Uhb).a());return Vhb}function Whb(){}Whb.prototype=new r;Whb.prototype.constructor=Whb;d=Whb.prototype;d.a=function(){return this};d.L=function(){return"Check"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"Check"};d.y=function(){return 65074408};d.M=function(){return Z(this)};
d.$classData=q({J5a:0},!1,"scopt.Check$",{J5a:1,f:1,sS:1,A:1,w:1,q:1,n:1});var Xhb=void 0;function zG(){Xhb||(Xhb=(new Whb).a());return Xhb}function Yhb(){}Yhb.prototype=new r;Yhb.prototype.constructor=Yhb;d=Yhb.prototype;d.a=function(){return this};d.L=function(){return"Cmd"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"Cmd"};d.y=function(){return 67866};d.M=function(){return Z(this)};d.$classData=q({K5a:0},!1,"scopt.Cmd$",{K5a:1,f:1,sS:1,A:1,w:1,q:1,n:1});
var Zhb=void 0;function AG(){Zhb||(Zhb=(new Yhb).a());return Zhb}function $hb(){}$hb.prototype=new r;$hb.prototype.constructor=$hb;d=$hb.prototype;d.a=function(){return this};d.L=function(){return"Head"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"Head"};d.y=function(){return 2245120};d.M=function(){return Z(this)};d.$classData=q({L5a:0},!1,"scopt.Head$",{L5a:1,f:1,sS:1,A:1,w:1,q:1,n:1});var aib=void 0;function yG(){aib||(aib=(new $hb).a());return aib}
function bib(){}bib.prototype=new r;bib.prototype.constructor=bib;d=bib.prototype;d.a=function(){return this};d.L=function(){return"Note"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"Note"};d.y=function(){return 2434066};d.M=function(){return Z(this)};d.$classData=q({M5a:0},!1,"scopt.Note$",{M5a:1,f:1,sS:1,A:1,w:1,q:1,n:1});var cib=void 0;function ixa(){cib||(cib=(new bib).a());return cib}function dib(){}dib.prototype=new r;dib.prototype.constructor=dib;
d=dib.prototype;d.a=function(){return this};d.L=function(){return"Opt"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"Opt"};d.y=function(){return 79507};d.M=function(){return Z(this)};d.$classData=q({N5a:0},!1,"scopt.Opt$",{N5a:1,f:1,sS:1,A:1,w:1,q:1,n:1});var eib=void 0;function tG(){eib||(eib=(new dib).a());return eib}function Vxa(){}Vxa.prototype=new r;Vxa.prototype.constructor=Vxa;d=Vxa.prototype;d.a=function(){return this};d.L=function(){return"OneColumn"};
d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"OneColumn"};d.y=function(){return-1151817412};d.M=function(){return Z(this)};d.$classData=q({V5a:0},!1,"scopt.RenderingMode$OneColumn$",{V5a:1,f:1,U5a:1,A:1,w:1,q:1,n:1});var Uxa=void 0;function fib(){}fib.prototype=new r;fib.prototype.constructor=fib;d=fib.prototype;d.a=function(){return this};d.L=function(){return"TwoColumns"};d.H=function(){return 0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"TwoColumns"};
d.y=function(){return-1168155631};d.M=function(){return Z(this)};d.$classData=q({W5a:0},!1,"scopt.RenderingMode$TwoColumns$",{W5a:1,f:1,U5a:1,A:1,w:1,q:1,n:1});var gib=void 0;function Txa(){gib||(gib=(new fib).a());return gib}function bxa(){this.x_=this.W_=null}bxa.prototype=new oZ;bxa.prototype.constructor=bxa;d=bxa.prototype;d.tc=function(a,b){this.W_=a;this.x_=b;return this};d.yt=function(a){return NF(a)||!!(a&&a.$classData&&a.$classData.v.F8)||null!==a};
d.pt=function(a,b){return NF(a)?(Zf(),a=H(z(),(new J).aa([this.W_+" expects a number but was given '"+this.x_+"'"])),(new $f).d(a)):a&&a.$classData&&a.$classData.v.F8?(Zf(),a=H(z(),(new J).aa([this.W_+" expects a Scala duration but was given '"+this.x_+"'"])),(new $f).d(a)):null!==a?(Zf(),a=H(z(),(new J).aa([this.W_+" failed when given '"+this.x_+"'. "+a.Xm()])),(new $f).d(a)):b.R(a)};d.Xa=function(a){return this.yt(a)};d.Za=function(a,b){return this.pt(a,b)};
d.$classData=q({Z5a:0},!1,"scopt.platform$$anonfun$applyArgumentExHandler$1",{Z5a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function P(){this.rq=this.ep=null}P.prototype=new r;P.prototype.constructor=P;function hib(){}d=hib.prototype=P.prototype;d.L=function(){return"Tuple2"};d.GM=function(){return this.pa()|0};d.o5=function(){var a=this.Ba();return null===a?0:a.t};d.H=function(){return 2};d.h=function(a){return this===a?!0:z2(a)?ub(vb(),this.pa(),a.pa())&&ub(vb(),this.Ba(),a.Ba()):!1};
d.K=function(a){a:switch(a){case 0:a=this.pa();break a;case 1:a=this.Ba();break a;default:throw(new X).e(""+a);}return a};d.Dga=function(){return+this.pa()};d.N=function(a,b){this.ep=a;this.rq=b;return this};d.u=function(){return"("+this.pa()+","+this.Ba()+")"};d.Ega=function(){return+this.Ba()};d.Ba=function(){return this.rq};d.si=function(){return this.Ba()|0};d.y=function(){return Y(this)};d.pa=function(){return this.ep};d.M=function(){return Z(this)};
function z2(a){return!!(a&&a.$classData&&a.$classData.v.HS)}var W_a=q({HS:0},!1,"scala.Tuple2",{HS:1,f:1,nea:1,A:1,w:1,q:1,n:1});P.prototype.$classData=W_a;function Be(){this.th=this.yg=this.Co=null}Be.prototype=new r;Be.prototype.constructor=Be;d=Be.prototype;d.L=function(){return"Tuple3"};d.H=function(){return 3};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Axa?ub(vb(),this.Co,a.Co)&&ub(vb(),this.yg,a.yg)&&ub(vb(),this.th,a.th):!1};
d.K=function(a){a:switch(a){case 0:a=this.Co;break a;case 1:a=this.yg;break a;case 2:a=this.th;break a;default:throw(new X).e(""+a);}return a};d.u=function(){return"("+this.Co+","+this.yg+","+this.th+")"};d.Er=function(a,b,c){this.Co=a;this.yg=b;this.th=c;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Axa:0},!1,"scala.Tuple3",{Axa:1,f:1,Ofb:1,A:1,w:1,q:1,n:1});function z6(){this.HM=this.th=this.yg=this.Co=null}z6.prototype=new r;
z6.prototype.constructor=z6;d=z6.prototype;d.L=function(){return"Tuple4"};d.H=function(){return 4};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Bxa?ub(vb(),this.Co,a.Co)&&ub(vb(),this.yg,a.yg)&&ub(vb(),this.th,a.th)&&ub(vb(),this.HM,a.HM):!1};d.K=function(a){return zOa(this,a)};d.u=function(){return"("+this.Co+","+this.yg+","+this.th+","+this.HM+")"};d.vA=function(a,b,c,e){this.Co=a;this.yg=b;this.th=c;this.HM=e;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Bxa:0},!1,"scala.Tuple4",{Bxa:1,f:1,Pfb:1,A:1,w:1,q:1,n:1});function xS(){vE.call(this)}xS.prototype=new ibb;xS.prototype.constructor=xS;xS.prototype.$d=function(a){vE.prototype.pe.call(this,"Array index out of range: "+a,null,0,!0);return this};xS.prototype.$classData=q({D6a:0},!1,"java.lang.ArrayIndexOutOfBoundsException",{D6a:1,lca:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function uY(){vE.call(this)}uY.prototype=new gbb;uY.prototype.constructor=uY;
uY.prototype.e=function(a){vE.prototype.pe.call(this,a,null,0,!0);return this};function NF(a){return!!(a&&a.$classData&&a.$classData.v.aCa)}uY.prototype.$classData=q({aCa:0},!1,"java.lang.NumberFormatException",{aCa:1,Ay:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function uu(){vE.call(this)}uu.prototype=new ibb;uu.prototype.constructor=uu;uu.prototype.a=function(){vE.prototype.pe.call(this,null,null,0,!0);return this};
uu.prototype.$d=function(a){vE.prototype.pe.call(this,"String index out of range: "+a,null,0,!0);return this};uu.prototype.$classData=q({c7a:0},!1,"java.lang.StringIndexOutOfBoundsException",{c7a:1,lca:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function iE(){this.xr=null}iE.prototype=new r;iE.prototype.constructor=iE;d=iE.prototype;d.a=function(){iE.prototype.ABa.call(this,new ba.Date);return this};function rha(){var a=(new iE).a(),b=Fa(),a=+a.xr.getTime(),a=hE(b,a);return(new aq).La(a,b.be)}
d.mU=function(a){iE.prototype.ABa.call(this,new ba.Date(sC(Fa(),a.Na,a.$a)));return this};d.h=function(a){return a&&a.$classData&&a.$classData.v.fCa?+a.xr.getTime()===+this.xr.getTime():!1};d.Wn=function(a){var b=+this.xr.getTime();a=+a.xr.getTime();return raa(wa(),b,a)};
d.u=function(){this.xr.getTimezoneOffset();CY();CY();return CY().TBa.j[this.xr.getDay()|0]+" "+CY().UBa.j[this.xr.getMonth()|0]+" "+UYa(CY(),this.xr.getDate()|0)+" "+UYa(CY(),this.xr.getHours()|0)+":"+UYa(CY(),this.xr.getMinutes()|0)+":"+UYa(CY(),this.xr.getSeconds()|0)+" GMT "+(this.xr.getFullYear()|0)};d.ABa=function(a){this.xr=a;return this};d.y=function(){var a=+this.xr.getTime();return oaa(paa(),a)};d.$classData=q({fCa:0},!1,"java.util.Date",{fCa:1,f:1,q:1,n:1,bl:1,Dk:1,sh:1});
function DJ(){vE.call(this)}DJ.prototype=new hbb;DJ.prototype.constructor=DJ;DJ.prototype.a=function(){vE.prototype.pe.call(this,null,null,0,!0);return this};DJ.prototype.$classData=q({p7a:0},!1,"java.util.FormatterClosedException",{p7a:1,$Ba:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function iib(){vE.call(this)}iib.prototype=new gbb;iib.prototype.constructor=iib;function A6(){}A6.prototype=iib.prototype;function Mya(){this.Uf=null}Mya.prototype=new r;Mya.prototype.constructor=Mya;d=Mya.prototype;d.L=function(){return"DisjunctNode"};
d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(yH(a)){var b=this.Uf;a=a.Uf;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Uf;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.ss=function(a){this.Uf=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function yH(a){return!!(a&&a.$classData&&a.$classData.v.gCa)}
d.$classData=q({gCa:0},!1,"java.util.regex.GroupStartMap$DisjunctNode",{gCa:1,f:1,hCa:1,A:1,w:1,q:1,n:1});function rH(){this.AC=0}rH.prototype=new r;rH.prototype.constructor=rH;d=rH.prototype;d.L=function(){return"OriginallyGroupped"};d.H=function(){return 1};d.h=function(a){return this===a?!0:pH(a)?this.AC===a.AC:!1};d.K=function(a){switch(a){case 0:return this.AC;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.$d=function(a){this.AC=a;return this};
d.y=function(){var a=-889275714,a=zI().Ga(a,this.AC);return zI().Wd(a,1)};d.M=function(){return Z(this)};function pH(a){return!!(a&&a.$classData&&a.$classData.v.iCa)}d.$classData=q({iCa:0},!1,"java.util.regex.GroupStartMap$OriginallyGroupped",{iCa:1,f:1,P7a:1,A:1,w:1,q:1,n:1});function mH(){this.LC=this.sC=null}mH.prototype=new r;mH.prototype.constructor=mH;d=mH.prototype;d.tc=function(a,b){this.sC=a;this.LC=b;return this};d.L=function(){return"OriginallyWrapped"};d.H=function(){return 2};
d.h=function(a){return this===a?!0:kH(a)?this.sC===a.sC&&this.LC===a.LC:!1};d.K=function(a){switch(a){case 0:return this.sC;case 1:return this.LC;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function kH(a){return!!(a&&a.$classData&&a.$classData.v.jCa)}d.$classData=q({jCa:0},!1,"java.util.regex.GroupStartMap$OriginallyWrapped",{jCa:1,f:1,P7a:1,A:1,w:1,q:1,n:1});function qH(){this.Uf=null}qH.prototype=new r;
qH.prototype.constructor=qH;d=qH.prototype;d.L=function(){return"ParentNode"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(xH(a)){var b=this.Uf;a=a.Uf;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Uf;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.ss=function(a){this.Uf=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function xH(a){return!!(a&&a.$classData&&a.$classData.v.kCa)}
d.$classData=q({kCa:0},!1,"java.util.regex.GroupStartMap$ParentNode",{kCa:1,f:1,hCa:1,A:1,w:1,q:1,n:1});function sH(){this.SH=null}sH.prototype=new r;sH.prototype.constructor=sH;d=sH.prototype;d.L=function(){return"RegexLeaf"};d.H=function(){return 1};d.h=function(a){return this===a?!0:lH(a)?this.SH===a.SH:!1};d.K=function(a){switch(a){case 0:return this.SH;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.e=function(a){this.SH=a;return this};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};function lH(a){return!!(a&&a.$classData&&a.$classData.v.lCa)}d.$classData=q({lCa:0},!1,"java.util.regex.GroupStartMap$RegexLeaf",{lCa:1,f:1,hCa:1,A:1,w:1,q:1,n:1});function B6(){C4.call(this);this.fk=0;this.Xd=null}B6.prototype=new kbb;B6.prototype.constructor=B6;B6.prototype.u=function(){return null!==this.Xd?this.Xd:"\x3cUnknown name for enum field #"+this.fk+" of class "+ka(this)+"\x3e"};
function q1a(a,b,c){var e=new B6;e.fk=b;e.Xd=c;C4.prototype.z6a.call(e,a);if(a.Aea.Ja(b))throw(new fJ).d("assertion failed: Duplicate id: "+e.fk);a.Aea.Rl(b,e);a.UEa=!1;a.WE=1+b|0;a.WE>a.zea&&(a.zea=a.WE);b<a.xea&&(a.xea=b);return e}B6.prototype.$classData=q({a8a:0},!1,"scala.Enumeration$Val",{a8a:1,b8a:1,f:1,vx:1,sh:1,q:1,n:1});function jib(){}jib.prototype=new lbb;jib.prototype.constructor=jib;d=jib.prototype;d.a=function(){return this};d.L=function(){return"None"};d.H=function(){return 0};
d.b=function(){return!0};d.c=function(){throw(new PH).e("None.get");};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return"None"};d.y=function(){return 2433880};d.M=function(){return Z(this)};d.$classData=q({e8a:0},!1,"scala.None$",{e8a:1,g8a:1,f:1,A:1,w:1,q:1,n:1});var kib=void 0;function w(){kib||(kib=(new jib).a());return kib}function JH(){}JH.prototype=new oZ;JH.prototype.constructor=JH;JH.prototype.a=function(){return this};JH.prototype.Xa=function(){return!0};JH.prototype.Za=function(){return sG().PP};
JH.prototype.$classData=q({k8a:0},!1,"scala.PartialFunction$$anonfun$1",{k8a:1,hb:1,f:1,za:1,Ha:1,q:1,n:1});function A(){this.i=null}A.prototype=new lbb;A.prototype.constructor=A;d=A.prototype;d.L=function(){return"Some"};d.H=function(){return 1};d.h=function(a){return this===a?!0:x(a)?ub(vb(),this.i,a.i):!1};d.b=function(){return!1};d.K=function(a){switch(a){case 0:return this.i;default:throw(new X).e(""+a);}};d.c=function(){return this.i};d.u=function(){return U(W(),this)};
d.d=function(a){this.i=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function x(a){return!!(a&&a.$classData&&a.$classData.v.mEa)}d.$classData=q({mEa:0},!1,"scala.Some",{mEa:1,g8a:1,f:1,A:1,w:1,q:1,n:1});function lib(){}lib.prototype=new nbb;lib.prototype.constructor=lib;function mib(){}mib.prototype=lib.prototype;function UY(){this.tC=OG();this.tM=null}UY.prototype=new nbb;UY.prototype.constructor=UY;d=UY.prototype;
d.h=function(a){if(a&&a.$classData&&a.$classData.v.rea){var b=this.tM.Fx(this.tC),c=b.Na,b=b.$a;a=a.tM.Fx(a.tC);return c===a.Na&&b===a.$a}return this===a};d.u=function(){var a=this.tC+" ",b=QR().LGa.R(this.tM),c=this.tC,e=c.$a;return a+(b+(1===c.Na&&0===e?"":"s"))};
function TY(a,b,c){a.tC=b;a.tM=c;FY().wS===c?b=C6(a,(new aq).La(-1,2147483647)):FY().tS===c?b=C6(a,(new aq).La(-1511828489,2147483)):FY().uS===c?b=C6(a,(new aq).La(2077252342,2147)):FY().BS===c?b=C6(a,(new aq).La(633437444,2)):FY().vS===c?b=C6(a,(new aq).La(153722867,0)):FY().UR===c?b=C6(a,(new aq).La(2562047,0)):FY().UI===c?b=C6(a,(new aq).La(106751,0)):(c=FY().UI.SJ(b,c),b=c.Na,c=c.$a,b=(-1===c?2147376897<=(-2147483648^b):-1<c)&&(0===c?-2147376897>=(-2147483648^b):0>c));if(!b)throw(new rk).e("requirement failed: Duration is limited to +-(2^63-1)ns (ca. 292 years)");
return a}d.Xn=function(a){return this.fE(a)};d.fE=function(a){if(a&&a.$classData&&a.$classData.v.rea){var b=this.tM.Fx(this.tC),c=b.Na,b=b.$a,c=(new nib).mU((new aq).La(c,b)),b=a.tM.Fx(a.tC);a=b.Na;var b=b.$a,c=c.Kk,e=Ea((new aq).La(c.Na,c.$a)),c=e.Na,e=e.$a,b=Ea((new aq).La(a,b));a=b.Na;b=b.$a;return p_a(Fa(),c,e,a,b)}return-a.fE(this)|0};
function C6(a,b){var c=b.Na,e=b.$a,e=0!==c?~e:-e|0,f=a.tC,g=f.$a;return(e===g?(-2147483648^(-c|0))<=(-2147483648^f.Na):e<g)?(c=a.tC,a=c.Na,c=c.$a,e=b.$a,c===e?(-2147483648^a)<=(-2147483648^b.Na):c<e):!1}d.y=function(){return this.tM.Fx(this.tC).Na};d.$classData=q({rea:0},!1,"scala.concurrent.duration.FiniteDuration",{rea:1,qea:1,f:1,q:1,n:1,vx:1,sh:1});function Dza(){this.Jt=null}Dza.prototype=new r;Dza.prototype.constructor=Dza;d=Dza.prototype;d.bX=function(){return!1};d.CO=function(){};d.u=function(){return IZa(this)};
d.ei=function(){return this};d.KA=function(a,b){FZa(EZa(b,a),this.Jt)};d.xga=function(){return this};d.Ufa=function(){return(new A).d(this.Jt)};d.Lf=function(){return this};d.rW=function(a,b){return sza(this,a,b)};d.qW=function(a,b){return tza(this,a,b)};d.Uba=function(){return!0};d.uO=function(){return yza(zza(),(new Ee).d(this.Jt.ms))};d.$classData=q({M8a:0},!1,"scala.concurrent.impl.Promise$KeptPromise$Failed",{M8a:1,f:1,N8a:1,sEa:1,qEa:1,pea:1,nEa:1});function Cza(){this.Jt=null}
Cza.prototype=new r;Cza.prototype.constructor=Cza;d=Cza.prototype;d.CO=function(a,b){mza(this,a,b)};d.bX=function(){return!1};d.u=function(){return IZa(this)};d.ei=function(a,b){return nza(this,a,b)};d.KA=function(a,b){FZa(EZa(b,a),this.Jt)};d.xga=function(a,b,c){return rza(this,a,b,c)};d.Lf=function(a,b){return pza(this,a,b)};d.Ufa=function(){return(new A).d(this.Jt)};d.rW=function(){return this};d.Uba=function(){return!0};d.qW=function(){return this};d.uO=function(){return yza(zza(),(new Fe).gm((new PH).e("Future.failed not completed with a throwable.")))};
d.$classData=q({O8a:0},!1,"scala.concurrent.impl.Promise$KeptPromise$Successful",{O8a:1,f:1,N8a:1,sEa:1,qEa:1,pea:1,nEa:1});function Fe(){this.ms=null}Fe.prototype=new tbb;Fe.prototype.constructor=Fe;d=Fe.prototype;d.L=function(){return"Failure"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(nf(a)){var b=this.ms;a=a.ms;return null===b?null===a:b.h(a)}return!1};d.yCa=function(){return this};d.K=function(a){switch(a){case 0:return this.ms;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.X=function(){};d.gm=function(a){this.ms=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.TDa=function(a){try{return a.Xa(this.ms)?(new Ee).d(a.R(this.ms)):this}catch(c){a=gi(Mb(),c);if(null!==a){var b=uI(vI(),a);if(!b.b())return a=b.c(),(new Fe).gm(a);throw Lb(Mb(),a);}throw c;}};function nf(a){return!!(a&&a.$classData&&a.$classData.v.yEa)}d.$classData=q({yEa:0},!1,"scala.util.Failure",{yEa:1,CEa:1,f:1,A:1,w:1,q:1,n:1});
function $f(){this.i=null}$f.prototype=new rbb;$f.prototype.constructor=$f;d=$f.prototype;d.L=function(){return"Left"};d.H=function(){return 1};d.h=function(a){return this===a?!0:Ep(a)?ub(vb(),this.i,a.i):!1};d.K=function(a){switch(a){case 0:return this.i;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.d=function(a){this.i=a;return this};d.KBa=function(){return!0};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.MBa=function(){return!1};
function Ep(a){return!!(a&&a.$classData&&a.$classData.v.zEa)}d.$classData=q({zEa:0},!1,"scala.util.Left",{zEa:1,z9a:1,f:1,A:1,w:1,q:1,n:1});function ag(){this.i=null}ag.prototype=new rbb;ag.prototype.constructor=ag;d=ag.prototype;d.L=function(){return"Right"};d.H=function(){return 1};d.h=function(a){return this===a?!0:Hp(a)?ub(vb(),this.i,a.i):!1};d.K=function(a){switch(a){case 0:return this.i;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.d=function(a){this.i=a;return this};
d.KBa=function(){return!1};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.MBa=function(){return!0};function Hp(a){return!!(a&&a.$classData&&a.$classData.v.AEa)}d.$classData=q({AEa:0},!1,"scala.util.Right",{AEa:1,z9a:1,f:1,A:1,w:1,q:1,n:1});function Ee(){this.i=null}Ee.prototype=new tbb;Ee.prototype.constructor=Ee;d=Ee.prototype;d.L=function(){return"Success"};d.H=function(){return 1};
d.yCa=function(a){try{return(new Ee).d(a.R(this.i))}catch(c){a=gi(Mb(),c);if(null!==a){var b=uI(vI(),a);if(!b.b())return a=b.c(),(new Fe).gm(a);throw Lb(Mb(),a);}throw c;}};d.h=function(a){return this===a?!0:Ge(a)?ub(vb(),this.i,a.i):!1};d.K=function(a){switch(a){case 0:return this.i;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.X=function(a){a.R(this.i)};d.d=function(a){this.i=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.TDa=function(){return this};
function Ge(a){return!!(a&&a.$classData&&a.$classData.v.BEa)}d.$classData=q({BEa:0},!1,"scala.util.Success",{BEa:1,CEa:1,f:1,A:1,w:1,q:1,n:1});function oib(){this.px=this.b6a=this.R2=null;this.XE=0;this.mi=!1}oib.prototype=new b2;oib.prototype.constructor=oib;d=oib.prototype;d.Sa=function(){return this.My()};function Dja(a,b,c){var e=new oib;e.R2=a;e.b6a=c;e.px=qu(new ru,b.gh,a,xa(a));e.XE=0;return e}d.gM=function(a){pib(this);return this.px.gM(a)};d.u=function(){return dS(this)};
d.Ww=function(){pib(this);return this.px.Ww()};d.My=function(){var a=this.XE;switch(a){case 0:if(!this.Qa())throw(new PH).a();this.My();break;case 1:this.XE=2;break;case 2:this.XE=0;this.My();break;case 3:throw(new PH).a();default:throw(new v).d(a);}return yOa(this.px)};function pib(a){var b=a.XE;switch(b){case 0:if(!a.Qa())throw(new fk).a();break;case 1:break;case 2:break;case 3:throw(new fk).a();default:throw(new v).d(b);}}
d.Qa=function(){var a=this.XE;switch(a){case 0:this.XE=su(this.px)?1:3;break;case 1:break;case 2:this.XE=0;this.Qa();break;case 3:break;default:throw(new v).d(a);}return 1===this.XE};d.pfa=function(){return this.R2};d.Ts=function(){pib(this);return this.px.Ts()};d.QT=function(a){pib(this);return this.px.QT(a)};d.$classData=q({O9a:0},!1,"scala.util.matching.Regex$MatchIterator",{O9a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1,N9a:1});function D6(){this.Pa=this.HW=null}D6.prototype=new b2;D6.prototype.constructor=D6;
D6.prototype.Sa=function(){return this.wL()};D6.prototype.Qa=function(){return this.Pa.Qa()};D6.prototype.wL=function(){this.Pa.My();return EOa(HOa(this.Pa.R2,this.Pa.px))};function Eja(a){var b=new D6;if(null===a)throw Lb(Mb(),null);b.Pa=a;b.HW=(new ik).a();return b}D6.prototype.$classData=q({P9a:0},!1,"scala.util.matching.Regex$MatchIterator$$anon$1",{P9a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1,Zfb:1});
function o4(a,b){if(b&&b.$classData&&b.$classData.v.Or){var c;if(!(c=a===b)&&(c=a.lb()===b.lb()))try{c=a.wfa(b)}catch(e){if(yNa(e))c=!1;else throw e;}a=c}else a=!1;return a}function eA(a,b,c){c=c.Vn(a.Ji());a.X(t(new u,function(a,b,c){return function(a){return c.Cf(b.R(a).td())}}(a,b,c)));return c.lc()}function Ei(a,b){b=b.gs();ANa(b,a);b.Cf(a.Qf());return b.lc()}
function qib(a,b){var c=a.Ed();a.X(t(new u,function(a,b,c,h){return function(a){h.ta||b.R(a)||(h.ta=!0);return h.ta?c.Ic(a):void 0}}(a,b,c,(new mk).rs(!1))));return c.lc()}function E6(a){return a.Fk(a.Lk()+"(",", ",")")}function Ps(a){return a.b()?w():(new A).d(a.fa())}function F6(a,b,c){var e=a.Ed();a.X(t(new u,function(a,b,c,e){return function(a){return!!b.R(a)!==c?e.Ic(a):void 0}}(a,b,c,e)));return e.lc()}
function rib(a,b){var c=a.Ed(),e=a.Ed();a.X(t(new u,function(a,b,c,e,l){return function(a){l.ta=l.ta&&!!b.R(a);return(l.ta?c:e).Ic(a)}}(a,b,c,e,(new mk).rs(!0))));return(new P).N(c.lc(),e.lc())}function vp(a,b,c){c=c.Vn(a.Ji());if(b&&b.$classData&&b.$classData.v.Ki){var e=b.td().lb();XOa(c,a,e)}c.Cf(a.Qf());c.Cf(b.td());return c.lc()}function ska(a,b){var c=a.Ed(),e=a.Ed();a.X(t(new u,function(a,b,c,e){return function(a){return(b.R(a)?c:e).Ic(a)}}(a,b,c,e)));return(new P).N(c.lc(),e.lc())}
function G6(a){var b=a.fa(),b=(new Qd).d(b);a.X(t(new u,function(a,b){return function(a){b.ta=a}}(a,b)));return b.ta}function Cw(a){if(a.b())throw(new Gt).e("empty.tail");return a.ck(1)}
function H6(a,b){var c=(new ct).a();a.X(t(new u,function(a,b,c){return function(h){var k=b.R(h);return c.IO(k,jb(function(a){return function(){return a.Ed()}}(a))).Ic(h)}}(a,b,c)));b=Ry(new Sy,Xs());IC(new JC,c,t(new u,function(){return function(a){return null!==a}}(a))).X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();return b.Ic((new P).N(c,a.lc()))}throw(new v).d(a);}}(a,b)));return b.gb}
function De(a,b,c){c=Rf(a,c);a.X(t(new u,function(a,b,c){return function(a){return c.Ic(b.R(a))}}(a,b,c)));return c.lc()}function Rf(a,b){b=b.Vn(a.Ji());ANa(b,a);return b}function Fr(a,b,c){c=c.Vn(a.Ji());a.X(b.QA(t(new u,function(a,b){return function(a){return b.Ic(a)}}(a,c))));return c.lc()}
function I6(a){a=dk(ka(a.Ji()));for(var b=-1+(a.length|0)|0;;)if(-1!==b&&36===(65535&(a.charCodeAt(b)|0)))b=-1+b|0;else break;if(-1===b||46===(65535&(a.charCodeAt(b)|0)))return"";for(var c="";;){for(var e=1+b|0;;)if(-1!==b&&57>=(65535&(a.charCodeAt(b)|0))&&48<=(65535&(a.charCodeAt(b)|0)))b=-1+b|0;else break;for(var f=b;;)if(-1!==b&&36!==(65535&(a.charCodeAt(b)|0))&&46!==(65535&(a.charCodeAt(b)|0)))b=-1+b|0;else break;var g=1+b|0;if(b===f&&e!==(a.length|0))return c;for(;;)if(-1!==b&&36===(65535&(a.charCodeAt(b)|
0)))b=-1+b|0;else break;var f=-1===b?!0:46===(65535&(a.charCodeAt(b)|0)),h;(h=f)||(h=65535&(a.charCodeAt(g)|0),h=!(90<h&&127>h||65>h));if(h){e=a.substring(g,e);g=c;if(null===g)throw(new Rg).a();c=""===g?e:""+e+Dc(46)+c;if(f)return c}}}function sib(){this.s=null}sib.prototype=new b_a;sib.prototype.constructor=sib;function J6(){}J6.prototype=sib.prototype;function K6(){X4.call(this)}K6.prototype=new Ebb;K6.prototype.constructor=K6;K6.prototype.gAa=function(a){return tib(a)};
K6.prototype.$classData=q({kab:0},!1,"scala.collection.immutable.HashMap$HashTrieMap$$anon$1",{kab:1,rbb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function L6(){X4.call(this)}L6.prototype=new Ebb;L6.prototype.constructor=L6;L6.prototype.gAa=function(a){return a.Ek};L6.prototype.$classData=q({oab:0},!1,"scala.collection.immutable.HashSet$HashTrieSet$$anon$1",{oab:1,rbb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1});function M6(){}M6.prototype=new d_a;M6.prototype.constructor=M6;M6.prototype.a=function(){return this};
M6.prototype.zG=function(){return uib()};M6.prototype.$classData=q({uab:0},!1,"scala.collection.immutable.ListMap$",{uab:1,gFa:1,$L:1,ZL:1,f:1,q:1,n:1});var vib=void 0;function yia(){vib||(vib=(new M6).a());return vib}function N6(){}N6.prototype=new Abb;N6.prototype.constructor=N6;N6.prototype.a=function(){return this};N6.prototype.h0=function(){return Yd()};N6.prototype.$classData=q({Oab:0},!1,"scala.collection.immutable.Set$",{Oab:1,hFa:1,UP:1,TP:1,Ln:1,f:1,Mn:1});var wib=void 0;
function Pf(){wib||(wib=(new N6).a());return wib}function O6(){this.qo=null}O6.prototype=new Nbb;O6.prototype.constructor=O6;O6.prototype.a=function(){Mbb.prototype.a.call(this);return this};O6.prototype.lc=function(){return xib(this)};function xib(a){return a.qo.Lb.kd().md(t(new u,function(){return function(a){return a.kd()}}(a)),(Js(),(new Ks).a()))}function P6(a){return!!(a&&a.$classData&&a.$classData.v.tFa)}
O6.prototype.$classData=q({tFa:0},!1,"scala.collection.immutable.Stream$StreamBuilder",{tFa:1,zgb:1,f:1,Lt:1,ll:1,kl:1,jl:1});function zq(){this.CT=this.fL=this.cT=0;this.Aza=this.yza=this.wza=this.uza=this.sza=this.IT=null}zq.prototype=new r;zq.prototype.constructor=zq;d=zq.prototype;d.tg=function(){return this.wza};d.a=function(){this.IT=ia(La(Ja),[32]);this.CT=1;this.fL=this.cT=0;return this};d.Fn=function(){return this.CT};d.uk=function(a){return LG(this,a)};d.xG=function(a){this.Aza=a};
d.Al=function(){return this.IT};d.di=function(a){this.uza=a};d.pj=function(){return this.yza};
function LG(a,b){if(a.fL>=a.IT.j.length){var c=32+a.cT|0,e=a.cT^c;if(1024>e)1===a.Fn()&&(a.wg(ia(La(Ja),[32])),a.ie().j[0]=a.Al(),a.Rw(1+a.Fn()|0)),a.Nh(ia(La(Ja),[32])),a.ie().j[31&(c>>>5|0)]=a.Al();else if(32768>e)2===a.Fn()&&(a.di(ia(La(Ja),[32])),a.Me().j[0]=a.ie(),a.Rw(1+a.Fn()|0)),a.Nh(ia(La(Ja),[32])),a.wg(ia(La(Ja),[32])),a.ie().j[31&(c>>>5|0)]=a.Al(),a.Me().j[31&(c>>>10|0)]=a.ie();else if(1048576>e)3===a.Fn()&&(a.Bl(ia(La(Ja),[32])),a.tg().j[0]=a.Me(),a.Rw(1+a.Fn()|0)),a.Nh(ia(La(Ja),[32])),
a.wg(ia(La(Ja),[32])),a.di(ia(La(Ja),[32])),a.ie().j[31&(c>>>5|0)]=a.Al(),a.Me().j[31&(c>>>10|0)]=a.ie(),a.tg().j[31&(c>>>15|0)]=a.Me();else if(33554432>e)4===a.Fn()&&(a.yr(ia(La(Ja),[32])),a.pj().j[0]=a.tg(),a.Rw(1+a.Fn()|0)),a.Nh(ia(La(Ja),[32])),a.wg(ia(La(Ja),[32])),a.di(ia(La(Ja),[32])),a.Bl(ia(La(Ja),[32])),a.ie().j[31&(c>>>5|0)]=a.Al(),a.Me().j[31&(c>>>10|0)]=a.ie(),a.tg().j[31&(c>>>15|0)]=a.Me(),a.pj().j[31&(c>>>20|0)]=a.tg();else if(1073741824>e)5===a.Fn()&&(a.xG(ia(La(Ja),[32])),a.ks().j[0]=
a.pj(),a.Rw(1+a.Fn()|0)),a.Nh(ia(La(Ja),[32])),a.wg(ia(La(Ja),[32])),a.di(ia(La(Ja),[32])),a.Bl(ia(La(Ja),[32])),a.yr(ia(La(Ja),[32])),a.ie().j[31&(c>>>5|0)]=a.Al(),a.Me().j[31&(c>>>10|0)]=a.ie(),a.tg().j[31&(c>>>15|0)]=a.Me(),a.pj().j[31&(c>>>20|0)]=a.tg(),a.ks().j[31&(c>>>25|0)]=a.pj();else throw(new rk).a();a.cT=c;a.fL=0}a.IT.j[a.fL]=b;a.fL=1+a.fL|0;return a}d.lc=function(){return Bq(this)};d.Ss=function(a,b){sS(this,a,b)};d.wg=function(a){this.sza=a};d.yr=function(a){this.yza=a};d.ie=function(){return this.sza};
d.ks=function(){return this.Aza};function Bq(a){var b=a.cT+a.fL|0;if(0===b)return yq().sJ;var c=(new Q6).Zh(0,b,0);uk(c,a,a.CT);1<a.CT&&cea(c,0,-1+b|0);return c}d.Ic=function(a){return LG(this,a)};d.Gh=function(){};d.Rw=function(a){this.CT=a};d.Me=function(){return this.uza};d.Nh=function(a){this.IT=a};d.Cf=function(a){return Yi(this,a)};d.Bl=function(a){this.wza=a};d.$classData=q({ubb:0},!1,"scala.collection.immutable.VectorBuilder",{ubb:1,f:1,Lt:1,ll:1,kl:1,jl:1,xFa:1});
function yib(){this.maa=this.Na=this.qG=this.laa=0;this.JM=!1;this.X$=0;this.Bza=this.zza=this.xza=this.vza=this.tza=this.Z$=null}yib.prototype=new b2;yib.prototype.constructor=yib;d=yib.prototype;
d.Sa=function(){if(!this.JM)throw(new PH).e("reached iterator end");var a=this.Z$.j[this.Na];this.Na=1+this.Na|0;if(this.Na===this.maa)if((this.qG+this.Na|0)<this.laa){var b=32+this.qG|0,c=this.qG^b;if(1024>c)this.Nh(this.ie().j[31&(b>>>5|0)]);else if(32768>c)this.wg(this.Me().j[31&(b>>>10|0)]),this.Nh(this.ie().j[0]);else if(1048576>c)this.di(this.tg().j[31&(b>>>15|0)]),this.wg(this.Me().j[0]),this.Nh(this.ie().j[0]);else if(33554432>c)this.Bl(this.pj().j[31&(b>>>20|0)]),this.di(this.tg().j[0]),
this.wg(this.Me().j[0]),this.Nh(this.ie().j[0]);else if(1073741824>c)this.yr(this.ks().j[31&(b>>>25|0)]),this.Bl(this.pj().j[0]),this.di(this.tg().j[0]),this.wg(this.Me().j[0]),this.Nh(this.ie().j[0]);else throw(new rk).a();this.qG=b;b=this.laa-this.qG|0;this.maa=32>b?b:32;this.Na=0}else this.JM=!1;return a};d.tg=function(){return this.xza};d.Fn=function(){return this.X$};d.xG=function(a){this.Bza=a};
d.La=function(a,b){this.laa=b;this.qG=-32&a;this.Na=31&a;a=b-this.qG|0;this.maa=32>a?a:32;this.JM=(this.qG+this.Na|0)<b;return this};d.Al=function(){return this.Z$};d.di=function(a){this.vza=a};d.pj=function(){return this.zza};d.wg=function(a){this.tza=a};d.Qa=function(){return this.JM};d.yr=function(a){this.zza=a};d.ie=function(){return this.tza};d.ks=function(){return this.Bza};d.Rw=function(a){this.X$=a};d.Me=function(){return this.vza};d.Nh=function(a){this.Z$=a};d.Bl=function(a){this.xza=a};
d.$classData=q({vbb:0},!1,"scala.collection.immutable.VectorIterator",{vbb:1,Vj:1,f:1,pi:1,Kb:1,Jb:1,xFa:1});function R6(){}R6.prototype=new f_a;R6.prototype.constructor=R6;R6.prototype.a=function(){return this};R6.prototype.Vp=function(){return(new ct).a()};R6.prototype.zG=function(){return(new ct).a()};R6.prototype.$classData=q({Ubb:0},!1,"scala.collection.mutable.HashMap$",{Ubb:1,Oea:1,$L:1,ZL:1,f:1,q:1,n:1});var zib=void 0;function qc(){zib||(zib=(new R6).a());return zib}function S6(){}
S6.prototype=new f_a;S6.prototype.constructor=S6;S6.prototype.a=function(){return this};S6.prototype.Vp=function(){return(new T6).a()};S6.prototype.zG=function(){return(new T6).a()};S6.prototype.$classData=q({mcb:0},!1,"scala.collection.mutable.LinkedHashMap$",{mcb:1,Oea:1,$L:1,ZL:1,f:1,q:1,n:1});var Aib=void 0;function Bib(){Aib||(Aib=(new S6).a());return Aib}function U6(){}U6.prototype=new f_a;U6.prototype.constructor=U6;U6.prototype.a=function(){return this};U6.prototype.Vp=function(){return(new ar).a()};
U6.prototype.zG=function(){return(new ar).a()};U6.prototype.$classData=q({ycb:0},!1,"scala.collection.mutable.ListMap$",{ycb:1,Oea:1,$L:1,ZL:1,f:1,q:1,n:1});var Cib=void 0;function br(){Cib||(Cib=(new U6).a());return Cib}function V6(){}V6.prototype=new Cbb;V6.prototype.constructor=V6;V6.prototype.a=function(){return this};V6.prototype.lA=function(){return(new qp).a()};V6.prototype.$classData=q({Ecb:0},!1,"scala.collection.mutable.Set$",{Ecb:1,jFa:1,UP:1,TP:1,Ln:1,f:1,Mn:1});var Dib=void 0;
function xz(){Dib||(Dib=(new V6).a());return Dib}function W6(){Ax.call(this)}W6.prototype=new Tbb;W6.prototype.constructor=W6;W6.prototype.Qt=function(){};W6.prototype.gHa=function(){};W6.prototype.$classData=q({qdb:0},!1,"scala.runtime.NonLocalReturnControl$mcV$sp",{qdb:1,U2:1,Fe:1,f:1,n:1,CW:1,uea:1});function X6(){Ax.call(this);this.Sfa=!1}X6.prototype=new Tbb;X6.prototype.constructor=X6;X6.prototype.Qt=function(){return this.Sfa};
function fUa(a){var b=new X6;b.Sfa=!1;Ax.prototype.N.call(b,a,null);return b}X6.prototype.Tfa=function(){return this.Sfa};X6.prototype.$classData=q({rdb:0},!1,"scala.runtime.NonLocalReturnControl$mcZ$sp",{rdb:1,U2:1,Fe:1,f:1,n:1,CW:1,uea:1});function aB(){this.na=this.p=null}aB.prototype=new r;aB.prototype.constructor=aB;d=aB.prototype;d.zAa=function(a){this.p=a;this.na=ju().na;return this};d.a=function(){M();var a=(new N).a();aB.prototype.zAa.call(this,(new eN).P((new Q).a(),a));return this};
d.Mm=function(a){return JS(this,a)};d.Wo=function(a){return BS(this,a)};d.ap=function(a){return FS(this,a)};d.Yo=function(){return DS(this)};d.S3=function(a){var b=this.p;a=a.p;var c=Rl().ob;ff(b,c,a);return this};d.cp=function(){return MS(this)};d.Wl=function(){return LS(this)};d.z3=function(){lM();var a=B(this.p.g,ZA().Rf);lM().wb();return Gb(a)};d.PT=function(){return(new yA).Lv(B(this.p.g,ZA().ob))};d.St=function(a){return FK(this,a)};d.nw=function(){return this.PT()};
d.kw=function(a){return GK(this,a)};d.Xo=function(a){return NS(this,a)};d.$o=function(a){return CS(this,a)};d.Nm=function(){return KS(this)};d.bc=function(){return Eo(this)};d.bp=function(a){return ES(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.yI=function(a){var b=this.p,c=lM(),e=z5();a=ml(nl(new ol,c,a,e));c=ge().ch;qf(b,c,a);return this};d.Ut=function(){return EK(this)};d.Rt=function(a){return DK(this,a)};d.Nn=function(){return HS(this)};d.dp=function(){return GS(this)};
d.FI=function(){return this.qK()};d.qK=function(){var a=lM(),b=xd(this.p),c=z5();return Il(a,b,c).sb()};aB.prototype.annotations=function(){return this.bc()};Object.defineProperty(aB.prototype,"sourceVendor",{get:function(){return this.Nn()},configurable:!0});aB.prototype.findByType=function(a){return this.Xo(a)};aB.prototype.findById=function(a){return this.Wo(a)};aB.prototype.withUsage=function(a){return this.bp(a)};aB.prototype.withLocation=function(a){return this.$o(a)};aB.prototype.withRaw=function(a){return this.Mm(a)};
aB.prototype.withReferences=function(a){return this.ap(a)};Object.defineProperty(aB.prototype,"modelVersion",{get:function(){return this.cp()},configurable:!0});Object.defineProperty(aB.prototype,"usage",{get:function(){return this.dp()},configurable:!0});Object.defineProperty(aB.prototype,"location",{get:function(){return this.Wl()},configurable:!0});Object.defineProperty(aB.prototype,"raw",{get:function(){return this.Nm()},configurable:!0});aB.prototype.references=function(){return this.Yo()};
Object.defineProperty(aB.prototype,"id",{get:function(){return this.hc()},configurable:!0});aB.prototype.withEncodes=function(a){if(acb(a))return this.S3(a);if(pPa(a))return this.kw(a);throw"No matching overload";};aB.prototype.withDeclares=function(a){return this.St(a)};aB.prototype.withDeclaredElement=function(a){return this.Rt(a)};Object.defineProperty(aB.prototype,"declares",{get:function(){return this.Ut()},configurable:!0});aB.prototype.withExternals=function(a){return this.yI(a)};
aB.prototype.withGraphDependencies=function(a){var b=this.p,c=lM(),e=lM().oh();a=ml(nl(new ol,c,a,e));c=ZA().lr;dr(b,c,a);return this};aB.prototype.withDefinedBy=function(a){var b=this.p,c=ZA().Rf;Eb(b,c,a);return this};Object.defineProperty(aB.prototype,"encodes",{get:function(){return this.nw()},configurable:!0});Object.defineProperty(aB.prototype,"externals",{get:function(){return this.FI()},configurable:!0});
aB.prototype.graphDependencies=function(){var a=lM(),b=B(this.p.g,ZA().lr),c=lM().wb();return Il(a,b,c).sb()};aB.prototype.definedBy=function(){return this.z3()};aB.prototype.$classData=q({cKa:0},!1,"amf.client.model.document.DialectInstance",{cKa:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,CD:1});function Y6(){this.na=this.p=null}Y6.prototype=new r;Y6.prototype.constructor=Y6;d=Y6.prototype;d.a=function(){M();var a=(new N).a();Y6.prototype.m6a.call(this,(new Z6).P((new Q).a(),a));return this};
d.Wo=function(a){return BS(this,a)};d.Mm=function(a){return JS(this,a)};d.ap=function(a){return FS(this,a)};d.Yo=function(){return DS(this)};d.cp=function(){return MS(this)};d.Wl=function(){return LS(this)};d.PT=function(){return(new yA).Lv(B(this.p.g,ZA().ob))};d.St=function(a){return FK(this,a)};d.nw=function(){return this.PT()};d.kw=function(a){return GK(this,a)};d.Xo=function(a){return NS(this,a)};d.$o=function(a){return CS(this,a)};d.Nm=function(){return KS(this)};
d.m6a=function(a){this.p=a;this.na=ju().na;return this};d.bc=function(){return Eo(this)};d.bp=function(a){return ES(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Ut=function(){return EK(this)};d.Rt=function(a){return DK(this,a)};d.Nn=function(){return HS(this)};d.dp=function(){return GS(this)};Y6.prototype.annotations=function(){return this.bc()};Object.defineProperty(Y6.prototype,"sourceVendor",{get:function(){return this.Nn()},configurable:!0});
Y6.prototype.findByType=function(a){return this.Xo(a)};Y6.prototype.findById=function(a){return this.Wo(a)};Y6.prototype.withUsage=function(a){return this.bp(a)};Y6.prototype.withLocation=function(a){return this.$o(a)};Y6.prototype.withRaw=function(a){return this.Mm(a)};Y6.prototype.withReferences=function(a){return this.ap(a)};Object.defineProperty(Y6.prototype,"modelVersion",{get:function(){return this.cp()},configurable:!0});
Object.defineProperty(Y6.prototype,"usage",{get:function(){return this.dp()},configurable:!0});Object.defineProperty(Y6.prototype,"location",{get:function(){return this.Wl()},configurable:!0});Object.defineProperty(Y6.prototype,"raw",{get:function(){return this.Nm()},configurable:!0});Y6.prototype.references=function(){return this.Yo()};Object.defineProperty(Y6.prototype,"id",{get:function(){return this.hc()},configurable:!0});Y6.prototype.withEncodes=function(a){return this.kw(a)};
Object.defineProperty(Y6.prototype,"encodes",{get:function(){return this.nw()},configurable:!0});Y6.prototype.withDeclares=function(a){return this.St(a)};Y6.prototype.withDeclaredElement=function(a){return this.Rt(a)};Object.defineProperty(Y6.prototype,"declares",{get:function(){return this.Ut()},configurable:!0});Y6.prototype.$classData=q({fKa:0},!1,"amf.client.model.document.DialectInstancePatch",{fKa:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,CD:1});function Ql(){this.na=this.p=null}Ql.prototype=new r;
Ql.prototype.constructor=Ql;function Eib(){}d=Eib.prototype=Ql.prototype;d.a=function(){M();var a=(new N).a();Ql.prototype.rU.call(this,(new Ig).P((new Q).a(),a));return this};d.Wo=function(a){return BS(this,a)};d.Mm=function(a){return JS(this,a)};d.ap=function(a){return FS(this,a)};d.Yo=function(){return DS(this)};d.f6a=function(a){M();var b=(new N).a(),b=(new Ig).P((new Q).a(),b);Ab();Ab().et();a=a.Jd();var c=Rl().ob;Ql.prototype.rU.call(this,ff(b,c,a));return this};d.cp=function(){return MS(this)};
d.Wl=function(){return LS(this)};d.St=function(a){return FK(this,a)};d.nw=function(){return SCa(this)};d.kw=function(a){return GK(this,a)};d.Xo=function(a){return NS(this,a)};d.$o=function(a){return CS(this,a)};d.Nm=function(){return KS(this)};d.bc=function(){return Eo(this)};d.rU=function(a){this.p=a;this.na=ju().na;return this};d.bp=function(a){return ES(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Ut=function(){return EK(this)};d.Rt=function(a){return DK(this,a)};
d.Nn=function(){return HS(this)};d.dp=function(){return GS(this)};Ql.prototype.annotations=function(){return this.bc()};Object.defineProperty(Ql.prototype,"sourceVendor",{get:function(){return this.Nn()},configurable:!0});Ql.prototype.findByType=function(a){return this.Xo(a)};Ql.prototype.findById=function(a){return this.Wo(a)};Ql.prototype.withUsage=function(a){return this.bp(a)};Ql.prototype.withLocation=function(a){return this.$o(a)};Ql.prototype.withRaw=function(a){return this.Mm(a)};
Ql.prototype.withReferences=function(a){return this.ap(a)};Object.defineProperty(Ql.prototype,"modelVersion",{get:function(){return this.cp()},configurable:!0});Object.defineProperty(Ql.prototype,"usage",{get:function(){return this.dp()},configurable:!0});Object.defineProperty(Ql.prototype,"location",{get:function(){return this.Wl()},configurable:!0});Object.defineProperty(Ql.prototype,"raw",{get:function(){return this.Nm()},configurable:!0});Ql.prototype.references=function(){return this.Yo()};
Object.defineProperty(Ql.prototype,"id",{get:function(){return this.hc()},configurable:!0});Ql.prototype.withEncodes=function(a){return this.kw(a)};Object.defineProperty(Ql.prototype,"encodes",{get:function(){return this.nw()},configurable:!0});Ql.prototype.withDeclares=function(a){return this.St(a)};Ql.prototype.withDeclaredElement=function(a){return this.Rt(a)};Object.defineProperty(Ql.prototype,"declares",{get:function(){return this.Ut()},configurable:!0});
Ql.prototype.$classData=q({V6:0},!1,"amf.client.model.document.Document",{V6:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,CD:1});function $6(){this.na=this.p=null}$6.prototype=new r;$6.prototype.constructor=$6;function Fib(){}d=Fib.prototype=$6.prototype;d.Xf=function(){Ab();var a=B(this.p.ca(),VN().$);Ab().wb();return Gb(a)};d.Wt=function(){return this.pV()};d.lw=function(a){return Cb(this,a)};d.T$=function(){Ab();var a=this.p.jA();return nm(Ab().tq(),a)};d.D4=function(){return this.T$()};d.nd=function(){return SS(this)};
d.Ie=function(){return this.Xf()};d.Vfa=function(){var a=Ab(),b=this.p.rI(),c=Ab().wb();return Il(a,b,c).sb()};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.iw=function(){return w()};d.ow=function(){return xb(this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.yj=function(){Ab();var a=B(this.p.g,VN().fb);Ab().wb();return Gb(a)};d.pV=function(){throw Lb(Mb(),(new Nb).e("AbstractDeclaration is abstract"));};d.Ao=function(){return this.D1()};d.rd=function(){return PS(this)};
d.ws=function(){return this.D1()};d.jw=function(a){return Hb(this,a)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.hi=function(a){var b=this.p,c=VN().fb;Eb(b,c,a);return this};d.od=function(a){return WS(this,a)};d.hc=function(){return this.Jd().k};d.Fd=function(){return this.p};d.JI=function(){return this.Vfa()};d.Rh=function(){return this.yj()};d.aba=function(a){this.p=a;this.na=ju().na;return this};d.xe=function(a){var b=this.p;M();var c=(new N).a();Ue(b,a,c);return this};
d.DI=function(a){var b=this.p,c=Ab(),e=Ab().oh();a=ml(nl(new ol,c,a,e));c=VN().lj;dr(b,c,a);return this};d.pw=function(){return Fb(this)};d.D1=function(){throw Lb(Mb(),(new Nb).e("AbstractDeclaration is abstract"));};d.mw=function(a){return Ib(this,a)};$6.prototype.annotations=function(){return this.bc()};$6.prototype.graph=function(){return this.nd()};$6.prototype.withId=function(a){return this.qd(a)};$6.prototype.withExtendsNode=function(a){return this.pd(a)};
$6.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty($6.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty($6.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty($6.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty($6.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});
$6.prototype.link=function(){for(var a=arguments.length|0,b=0,c=[];b<a;)c.push(arguments[b]),b=b+1|0;a=void 0===c[0]?this.iw():c[0];return this.jw(a)};$6.prototype.withLinkLabel=function(a){return this.lw(a)};$6.prototype.withLinkTarget=function(a){return this.mw(a)};Object.defineProperty($6.prototype,"linkLabel",{get:function(){return this.pw()},configurable:!0});Object.defineProperty($6.prototype,"isLink",{get:function(){return this.ow()},configurable:!0});$6.prototype.linkCopy=function(){return this.Ao()};
Object.defineProperty($6.prototype,"linkTarget",{get:function(){return this.Wt()},configurable:!0});$6.prototype.withVariables=function(a){return this.DI(a)};$6.prototype.withDataNode=function(a){var b=this.p;a=a.p;var c=VN().tD;ff(b,c,a);return this};$6.prototype.withDescription=function(a){return this.hi(a)};$6.prototype.withName=function(a){return this.xe(a)};Object.defineProperty($6.prototype,"variables",{get:function(){return this.JI()},configurable:!0});
Object.defineProperty($6.prototype,"dataNode",{get:function(){return this.D4()},configurable:!0});Object.defineProperty($6.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty($6.prototype,"name",{get:function(){return this.Ie()},configurable:!0});$6.prototype.$classData=q({W6:0},!1,"amf.client.model.domain.AbstractDeclaration",{W6:1,f:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1});function Gib(){this.t=this.ba=this.bg=null}Gib.prototype=new r;
Gib.prototype.constructor=Gib;d=Gib.prototype;d.L=function(){return"DataNodePropertiesAnnotations"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.nja){var b=this.bg;a=a.bg;return null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.bg;default:throw(new X).e(""+a);}};
function Y_a(a){var b=new Gib;b.bg=a;b.ba="data-node-properties";var c=t(new u,function(){return function(a){if(null!==a){var b=a.pa();a=a.Ba();return b+"-\x3e"+a.cc}throw(new v).d(a);}}(b)),e=Ce().s;b.t=De(a,c,e).ng("#");return b}d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({nja:0},!1,"amf.core.annotations.DataNodePropertiesAnnotations",{nja:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});
function d0(){this.t=this.ba=null}d0.prototype=new r;d0.prototype.constructor=d0;d=d0.prototype;d.a=function(){this.ba="default-node";this.t="";return this};d.L=function(){return"DefaultNode"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.pja)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
var Kab=q({pja:0},!1,"amf.core.annotations.DefaultNode",{pja:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});d0.prototype.$classData=Kab;function xM(){this.t=this.ba=null}xM.prototype=new r;xM.prototype.constructor=xM;d=xM.prototype;d.a=function(){this.ba="inline-element";this.t="";return this};d.L=function(){return"InlineElement"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.wja)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};var J2a=q({wja:0},!1,"amf.core.annotations.InlineElement",{wja:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});xM.prototype.$classData=J2a;function q6(){this.t=this.ba=null}q6.prototype=new r;q6.prototype.constructor=q6;d=q6.prototype;d.a=function(){this.ba="local-element";this.t="";return this};d.L=function(){return"LocalElement"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.xja)&&!0};
d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var sla=q({xja:0},!1,"amf.core.annotations.LocalElement",{xja:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});q6.prototype.$classData=sla;function A0(){this.t=this.ba=this.og=null}A0.prototype=new r;A0.prototype.constructor=A0;d=A0.prototype;d.L=function(){return"NilUnion"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.yja?this.og===a.og:!1};d.K=function(a){switch(a){case 0:return this.og;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.e=function(a){this.og=a;this.ba="nil-union";this.t=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var ana=q({yja:0},!1,"amf.core.annotations.NilUnion",{yja:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});A0.prototype.$classData=ana;
function B0(){this.t=this.ba=null}B0.prototype=new r;B0.prototype.constructor=B0;d=B0.prototype;d.a=function(){this.ba="null-security";this.t="";return this};d.L=function(){return"NullSecurity"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.zja)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
var LKa=q({zja:0},!1,"amf.core.annotations.NullSecurity",{zja:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});B0.prototype.$classData=LKa;function Yt(){}Yt.prototype=new r;Yt.prototype.constructor=Yt;d=Yt.prototype;d.a=function(){return this};d.L=function(){return"ResolvedInheritance"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Aja)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
var LFa=q({Aja:0},!1,"amf.core.annotations.ResolvedInheritance",{Aja:1,f:1,Sm:1,lf:1,A:1,w:1,q:1,n:1});Yt.prototype.$classData=LFa;function C0(){this.t=this.ba=null}C0.prototype=new r;C0.prototype.constructor=C0;d=C0.prototype;d.a=function(){this.ba="single-value-array";this.t="";return this};d.L=function(){return"SingleValueArray"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Eja)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};
d.te=function(){return this.ba};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var gKa=q({Eja:0},!1,"amf.core.annotations.SingleValueArray",{Eja:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});C0.prototype.$classData=gKa;function Hr(){this.ga=null}Hr.prototype=new r;Hr.prototype.constructor=Hr;d=Hr.prototype;d.L=function(){return"SourceLocation"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Gja?this.ga===a.ga:!1};
d.K=function(a){switch(a){case 0:return this.ga;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.e=function(a){this.ga=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var $b=q({Gja:0},!1,"amf.core.annotations.SourceLocation",{Gja:1,f:1,Sm:1,lf:1,A:1,w:1,q:1,n:1});Hr.prototype.$classData=$b;function GO(){this.t=this.ba=null}GO.prototype=new r;GO.prototype.constructor=GO;d=GO.prototype;d.a=function(){this.ba="synthesized-field";this.t="true";return this};
d.L=function(){return"SynthesizedField"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.g7)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var uQ=q({g7:0},!1,"amf.core.annotations.SynthesizedField",{g7:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});GO.prototype.$classData=uQ;function Lw(){this.o=this.Ca=this.oa=null;this.zO=!1;this.yF=null}
Lw.prototype=new r;Lw.prototype.constructor=Lw;d=Lw.prototype;d.L=function(){return"ArrayEmitter"};d.H=function(){return 5};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Nja){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;return b&&this.o===a.o&&this.zO===a.zO?this.yF===a.yF:!1}return!1};
d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;case 3:return this.zO;case 4:return this.yF;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function Hib(a,b){R();var c=a.oa,e=Th(R(),c),c=(new My).e(b.da),f=H(Wg(),G());Iw(a.Ca.t.t).X(t(new u,function(a,b){return function(c){return vh(b,IT(new JT,c,a.yF))}}(a,f)));var g=c.r,h=c.da,k=(new My).e(h);tq(Cq(),a.o.Cb(f),k);R();FC();a=Py(vq(),h);a=lq(0,(new GC).mc(a,k.r),O().Nc);T(g,a);g=c.r;e=[e];if(0>g.x)throw(new X).e("0");k=e.length|0;a=g.x+k|0;hC(g,a);Ca(g.z,0,g.z,k,g.x);for(var k=g.z,l=k.j.length,h=f=0,p=e.length|0,l=p<l?p:l,p=k.j.length,l=l<p?l:p;f<l;)k.j[h]=e[f],f=1+f|0,h=1+h|0;g.x=a;
T(b.r,iC(jC(),c.r))}
d.Va=function(a){if(!Yh(this.Ca.t.E,n(gKa))&&!Yh(this.Ca.t.t.ha(),n(gKa))||this.zO)Hib(this,a);else{var b=Iw(this.Ca.t.t).pc();b.b()?b=w():(b=b.c(),b=(new A).d(b.u()));var c=b.b()?"":b.c();R();var b=this.oa,e=Th(R(),b),b=(new My).e(a.da);kq(Cq(),b,c,this.yF);c=b.r;e=[e];if(0>c.x)throw(new X).e("0");var f=e.length|0,g=c.x+f|0;hC(c,g);Ca(c.z,0,c.z,f,c.x);for(var f=c.z,h=f.j.length,k=0,l=0,p=e.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=e[k],k=1+k|0,l=1+l|0;c.x=g;T(a.r,iC(jC(),b.r))}};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.oa)),a=zI().Ga(a,yI(zI(),this.Ca)),a=zI().Ga(a,yI(zI(),this.o)),a=zI().Ga(a,this.zO?1231:1237),a=zI().Ga(a,yI(zI(),this.yF));return zI().Wd(a,5)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};function Kw(a,b,c,e,f){var g=O().Wa;a.oa=b;a.Ca=c;a.o=e;a.zO=f;a.yF=g;return a}d.$classData=q({Nja:0},!1,"amf.core.emitter.BaseEmitters.package$ArrayEmitter",{Nja:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function Iib(){this.og=null}Iib.prototype=new r;Iib.prototype.constructor=Iib;d=Iib.prototype;d.L=function(){return"EmptyMapEmitter"};d.H=function(){return 1};d.Ob=function(a){R();var b=sq().Td;R();b=lq(R(),b,O().ua);T(a.r,b)};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Oja){var b=this.og;a=a.og;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.og;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};function m9a(){var a=new Iib,b=Gd();a.og=b;return a}d.Oa=function(){return this.og};d.$classData=q({Oja:0},!1,"amf.core.emitter.BaseEmitters.package$EmptyMapEmitter",{Oja:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function Ww(){this.og=this.Ze=this.t=this.oa=null}Ww.prototype=new r;Ww.prototype.constructor=Ww;d=Ww.prototype;d.L=function(){return"EntryPartEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Pja){if(this.oa===a.oa)var b=this.t,c=a.t,b=null===b?null===c:b.h(c);else b=!1;if(b&&this.Ze===a.Ze)return b=this.og,a=a.og,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.t;case 2:return this.Ze;case 3:return this.og;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function Vw(a,b,c,e,f){a.oa=b;a.t=c;a.Ze=e;a.og=f;return a}
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da);this.t.Ob(b);var e=b.r,c=[c];if(0>e.x)throw(new X).e("0");var f=c.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return this.og};
d.$classData=q({Pja:0},!1,"amf.core.emitter.BaseEmitters.package$EntryPartEmitter",{Pja:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function a7(){this.E=this.ur=null}a7.prototype=new r;a7.prototype.constructor=a7;d=a7.prototype;d.L=function(){return"LinkScalaEmitter"};d.Ob=function(a){var b=lq(R(),uq(Cq(),this.ur,O().vq,this.E),O().vq);T(a.r,b)};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Qja?this.ur===a.ur?this.E===a.E:!1:!1};
d.K=function(a){switch(a){case 0:return this.ur;case 1:return this.E;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.E,n(Fd))};d.$classData=q({Qja:0},!1,"amf.core.emitter.BaseEmitters.package$LinkScalaEmitter",{Qja:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function Cv(){this.og=this.Ze=this.t=this.oa=null}Cv.prototype=new r;Cv.prototype.constructor=Cv;d=Cv.prototype;d.L=function(){return"MapEntryEmitter"};
d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Rja&&this.oa===a.oa&&this.t===a.t&&this.Ze===a.Ze){var b=this.og;a=a.og;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.t;case 2:return this.Ze;case 3:return this.og;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da);kq(Cq(),b,this.t,this.Ze);var e=b.r,c=[c];if(0>e.x)throw(new X).e("0");var f=c.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};function Bv(a,b,c,e,f){a.oa=b;a.t=c;a.Ze=e;a.og=f;return a}d.M=function(){return Z(this)};d.Oa=function(){return this.og};
d.$classData=q({Rja:0},!1,"amf.core.emitter.BaseEmitters.package$MapEntryEmitter",{Rja:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function b7(){this.E=null}b7.prototype=new r;b7.prototype.constructor=b7;d=b7.prototype;d.L=function(){return"NullEmitter"};d.H=function(){return 1};d.Ob=function(a){var b=lq(R(),uq(Cq(),"null",O().yd,this.E),O().yd);T(a.r,b)};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.h7?this.E===a.E:!1};
d.K=function(a){switch(a){case 0:return this.E;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Yp=function(a){this.E=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.E,n(Fd))};d.$classData=q({h7:0},!1,"amf.core.emitter.BaseEmitters.package$NullEmitter",{h7:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function q3(){this.E=this.Ze=this.wr=null}q3.prototype=new r;q3.prototype.constructor=q3;d=q3.prototype;d.L=function(){return"RawEmitter"};
function s8a(a,b,c){var e=(M(),(new N).a());a.wr=b;a.Ze=c;a.E=e;return a}d.Ob=function(a){kq(Cq(),a,this.wr,this.Ze)};d.H=function(){return 3};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Sja?this.wr===a.wr&&this.Ze===a.Ze?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.wr;case 1:return this.Ze;case 2:return this.E;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.E,n(Fd))};d.$classData=q({Sja:0},!1,"amf.core.emitter.BaseEmitters.package$RawEmitter",{Sja:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function JT(){this.Ze=this.yo=null}JT.prototype=new r;JT.prototype.constructor=JT;d=JT.prototype;d.L=function(){return"ScalarEmitter"};d.Ob=function(a){var b=lq(R(),mq(nq(),this.yo.t),this.Ze);T(a.r,b)};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Tja){var b=this.yo,c=a.yo;return(null===b?null===c:b.h(c))?this.Ze===a.Ze:!1}return!1};d.K=function(a){switch(a){case 0:return this.yo;case 1:return this.Ze;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function IT(a,b,c){a.yo=b;a.Ze=c;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.yo.E,n(Fd))};
d.$classData=q({Tja:0},!1,"amf.core.emitter.BaseEmitters.package$ScalarEmitter",{Tja:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function c7(){this.Ze=this.E=this.t=null}c7.prototype=new r;c7.prototype.constructor=c7;d=c7.prototype;d.L=function(){return"TextScalarEmitter"};d.Ob=function(a){var b=Zb(this.E,n($b));b.b()?b=w():(b=b.c(),b=(new A).d(b.ga));b.b()?"":b.c();b=lq(R(),uq(Cq(),this.t,this.Ze,this.E),this.Ze);T(a.r,b)};d.H=function(){return 3};
d.h=function(a){return this===a?!0:dfb(a)?this.t===a.t&&this.E===a.E?this.Ze===a.Ze:!1:!1};d.K=function(a){switch(a){case 0:return this.t;case 1:return this.E;case 2:return this.Ze;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function d7(a,b,c,e){a.t=b;a.E=c;a.Ze=e;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.E,n(Fd))};function dfb(a){return!!(a&&a.$classData&&a.$classData.v.Uja)}
d.$classData=q({Uja:0},!1,"amf.core.emitter.BaseEmitters.package$TextScalarEmitter",{Uja:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function Ki(){WK.call(this)}Ki.prototype=new gDa;Ki.prototype.constructor=Ki;d=Ki.prototype;d.L=function(){return"Array"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(Wc(a)){var b=this.Se;a=a.Se;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Se;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ld=function(a){WK.prototype.Ld.call(this,a);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function Wc(a){return!!(a&&a.$classData&&a.$classData.v.Yja)}d.$classData=q({Yja:0},!1,"amf.core.metamodel.Type$Array",{Yja:1,Zja:1,f:1,ic:1,A:1,w:1,q:1,n:1});function e7(){E5.call(this)}e7.prototype=new F5;e7.prototype.constructor=e7;e7.prototype.a=function(){E5.prototype.e.call(this,"boolean");return this};
e7.prototype.$classData=q({bMa:0},!1,"amf.core.metamodel.Type$Bool$",{bMa:1,Yx:1,f:1,ic:1,A:1,w:1,q:1,n:1});var Jib=void 0;function Yc(){Jib||(Jib=(new e7).a());return Jib}function f7(){E5.call(this)}f7.prototype=new F5;f7.prototype.constructor=f7;f7.prototype.a=function(){E5.prototype.e.call(this,"date");return this};f7.prototype.$classData=q({cMa:0},!1,"amf.core.metamodel.Type$Date$",{cMa:1,Yx:1,f:1,ic:1,A:1,w:1,q:1,n:1});var Kib=void 0;function UK(){Kib||(Kib=(new f7).a());return Kib}
function g7(){E5.call(this)}g7.prototype=new F5;g7.prototype.constructor=g7;g7.prototype.a=function(){E5.prototype.e.call(this,"dateTime");return this};g7.prototype.$classData=q({dMa:0},!1,"amf.core.metamodel.Type$DateTime$",{dMa:1,Yx:1,f:1,ic:1,A:1,w:1,q:1,n:1});var Lib=void 0;function LL(){Lib||(Lib=(new g7).a());return Lib}function h7(){E5.call(this)}h7.prototype=new F5;h7.prototype.constructor=h7;h7.prototype.a=function(){E5.prototype.e.call(this,"double");return this};
h7.prototype.$classData=q({eMa:0},!1,"amf.core.metamodel.Type$Double$",{eMa:1,Yx:1,f:1,ic:1,A:1,w:1,q:1,n:1});var Mib=void 0;function Ci(){Mib||(Mib=(new h7).a());return Mib}function i7(){E5.call(this)}i7.prototype=new F5;i7.prototype.constructor=i7;i7.prototype.a=function(){E5.prototype.e.call(this,"encodedUrl");return this};i7.prototype.$classData=q({fMa:0},!1,"amf.core.metamodel.Type$EncodedIri$",{fMa:1,Yx:1,f:1,ic:1,A:1,w:1,q:1,n:1});var Nib=void 0;
function yFa(){Nib||(Nib=(new i7).a());return Nib}function j7(){E5.call(this)}j7.prototype=new F5;j7.prototype.constructor=j7;j7.prototype.a=function(){E5.prototype.e.call(this,"float");return this};j7.prototype.$classData=q({gMa:0},!1,"amf.core.metamodel.Type$Float$",{gMa:1,Yx:1,f:1,ic:1,A:1,w:1,q:1,n:1});var Oib=void 0;function bs(){Oib||(Oib=(new j7).a());return Oib}function k7(){E5.call(this)}k7.prototype=new F5;k7.prototype.constructor=k7;
k7.prototype.a=function(){E5.prototype.e.call(this,"int");return this};k7.prototype.$classData=q({hMa:0},!1,"amf.core.metamodel.Type$Int$",{hMa:1,Yx:1,f:1,ic:1,A:1,w:1,q:1,n:1});var Pib=void 0;function Zc(){Pib||(Pib=(new k7).a());return Pib}function l7(){E5.call(this)}l7.prototype=new F5;l7.prototype.constructor=l7;l7.prototype.a=function(){E5.prototype.e.call(this,"url");return this};l7.prototype.$classData=q({iMa:0},!1,"amf.core.metamodel.Type$Iri$",{iMa:1,Yx:1,f:1,ic:1,A:1,w:1,q:1,n:1});
var Qib=void 0;function Xc(){Qib||(Qib=(new l7).a());return Qib}function m7(){E5.call(this)}m7.prototype=new F5;m7.prototype.constructor=m7;m7.prototype.a=function(){E5.prototype.e.call(this,"literalUri");return this};m7.prototype.$classData=q({jMa:0},!1,"amf.core.metamodel.Type$LiteralUri$",{jMa:1,Yx:1,f:1,ic:1,A:1,w:1,q:1,n:1});var Rib=void 0;function KL(){Rib||(Rib=(new m7).a());return Rib}function n7(){E5.call(this)}n7.prototype=new F5;n7.prototype.constructor=n7;
n7.prototype.a=function(){E5.prototype.e.call(this,"regexp");return this};n7.prototype.$classData=q({kMa:0},!1,"amf.core.metamodel.Type$RegExp$",{kMa:1,Yx:1,f:1,ic:1,A:1,w:1,q:1,n:1});var Sib=void 0;function Gba(){Sib||(Sib=(new n7).a());return Sib}function o7(){WK.call(this)}o7.prototype=new gDa;o7.prototype.constructor=o7;d=o7.prototype;d.L=function(){return"SortedArray"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(wEa(a)){var b=this.Se;a=a.Se;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Se;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ld=function(a){WK.prototype.Ld.call(this,a);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function wEa(a){return!!(a&&a.$classData&&a.$classData.v.$ja)}d.$classData=q({$ja:0},!1,"amf.core.metamodel.Type$SortedArray",{$ja:1,Zja:1,f:1,ic:1,A:1,w:1,q:1,n:1});function p7(){E5.call(this)}p7.prototype=new F5;p7.prototype.constructor=p7;
p7.prototype.a=function(){E5.prototype.e.call(this,"string");return this};p7.prototype.$classData=q({lMa:0},!1,"amf.core.metamodel.Type$Str$",{lMa:1,Yx:1,f:1,ic:1,A:1,w:1,q:1,n:1});var Tib=void 0;function Pb(){Tib||(Tib=(new p7).a());return Tib}function q7(){E5.call(this)}q7.prototype=new F5;q7.prototype.constructor=q7;q7.prototype.a=function(){E5.prototype.e.call(this,"time");return this};q7.prototype.$classData=q({mMa:0},!1,"amf.core.metamodel.Type$Time$",{mMa:1,Yx:1,f:1,ic:1,A:1,w:1,q:1,n:1});
var Uib=void 0;function Vib(a){var b=Xc(),c=C().Zd;a.f_(Rb(new Sb,b,D(new F,c,"extends"),Tb(new Ub,Vb().dg,"extends","Target base unit being extended by this extension model",G())));b=a.wi();c=Nl().g;a.g_(oz(new pz,b,c))}
function r7(a){var b=Pb(),c=C().cb;a.Xz(Rb(new Sb,b,D(new F,c,"name"),Tb(new Ub,Bi().cb,"name","Name for a data shape",G())));b=Pb();c=C().dc;a.Vz(Rb(new Sb,b,D(new F,c,"name"),Tb(new Ub,Vb().dc,"name","Name for a data shape",G())));b=lm();c=C().cb;a.Tz(Rb(new Sb,b,D(new F,c,"defaultValue"),Tb(new Ub,Bi().cb,"default value","Default value parsed for a data shape property",G())));b=Pb();c=C().cb;a.Uz(Rb(new Sb,b,D(new F,c,"defaultValueStr"),Tb(new Ub,Bi().cb,"default value String","Textual representation of the parsed default value for the shape property",
G())));b=(new o7).Ld(lm());c=C().cb;a.$z(Rb(new Sb,b,D(new F,c,"in"),Tb(new Ub,Bi().cb,"in","Enumeration of possible values for a data shape property",G())));b=(new Ki).Ld(Xc());c=C().Gb;a.Sz(Rb(new Sb,b,D(new F,c,"closure"),Tb(new Ub,Vb().Gb,"inheritance closure","Transitive closure of data shapes this particular shape inherits structure from",G())));b=(new Ki).Ld(Pg());c=C().Gb;a.Wz(Rb(new Sb,b,D(new F,c,"inherits"),Tb(new Ub,Vb().Gb,"inherits","Relationship of inheritance between data shapes",
G())));b=(new Ki).Ld(Pg());c=C().cb;a.Zz(Rb(new Sb,b,D(new F,c,"or"),Tb(new Ub,Bi().cb,"or","Logical or composition of data shapes",G())));b=(new Ki).Ld(Pg());c=C().cb;a.Rz(Rb(new Sb,b,D(new F,c,"and"),Tb(new Ub,Bi().cb,"and","Logical and composition of data shapes",G())));b=(new Ki).Ld(Pg());c=C().cb;a.aA(Rb(new Sb,b,D(new F,c,"xone"),Tb(new Ub,Bi().cb,"exclusive or","Logical exclusive or composition of data shapes",G())));b=Pg();c=C().cb;a.Yz(Rb(new Sb,b,D(new F,c,"not"),Tb(new Ub,Bi().cb,"not",
"Logical not composition of data shapes",G())));a.bA(a.$)}function uz(a){return!!(a&&a.$classData&&a.$classData.v.xw)}function Wib(){this.ke=this.Hb=this.Jc=this.ja=this.oa=this.jr=this.Zj=this.Rf=this.$=this.Aa=null;this.ma=0}Wib.prototype=new r;Wib.prototype.constructor=Wib;d=Wib.prototype;
d.a=function(){Xib=this;Iq(this);cT(this);var a=Pb(),b=C().dc;this.$=Rb(new Sb,a,D(new F,b,"extensionName"),Tb(new Ub,Vb().dc,"name","Name of an entity",G()));a=Zl();b=C().Zd;this.Rf=Rb(new Sb,a,D(new F,b,"definedBy"),Tb(new Ub,Vb().dg,"defined by","Definition for the extended entity",G()));a=lm();b=C().Zd;this.Zj=Rb(new Sb,a,D(new F,b,"extension"),Tb(new Ub,Vb().dg,"extension","Data structure associated to the extension",G()));a=Pb();b=C().Zd;this.jr=Rb(new Sb,a,D(new F,b,"element"),Tb(new Ub,Vb().dg,
"element","Element being extended",G()));this.oa=this.$;a=C().bb;a=D(new F,a,"DomainExtension");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().bb,"Domain Extension","Extension to the model being parsed from RAML annotation or OpenAPI extensions\nThey must be a DomainPropertySchema (only in RAML) defining them.\nThe DomainPropertySchema might have an associated Data Shape that must validate the extension nested graph.\nThey are parsed as RDF graphs using a default transformation from a set of nested records into RDF.",
G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){Di();var a=(new J).aa([this.$,this.Rf,this.Zj,this.jr]),b=Di().s,a=Ei(a,b),b=Lc().g,c=Di();return a.la(b,c.s)};d.Zc=function(){M();var a=(new N).a();return(new af).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({OMa:0},!1,"amf.core.metamodel.domain.extensions.DomainExtensionModel$",{OMa:1,f:1,Geb:1,se:1,Oc:1,ic:1,Xc:1,Kj:1});var Xib=void 0;
function bf(){Xib||(Xib=(new Wib).a());return Xib}function Yib(a){Di();a=(new J).aa([a.$,a.fb,a.tD,a.lj]);var b=Di().s;a=Ei(a,b);var b=Db().g,c=Di();a=a.la(b,c.s);b=Lc().g;c=Di();return a.la(b,c.s)}
function Zib(a){var b=lm(),c=C().Zd;a.V9(Rb(new Sb,b,D(new F,c,"dataNode"),Tb(new Ub,Vb().dg,"data node","Associated dynamic structure for the declaration",G())));b=(new Ki).Ld(Pb());c=C().Zd;a.W9(Rb(new Sb,b,D(new F,c,"variable"),Tb(new Ub,Vb().dg,"variable","Variables to be replaced in the graph template introduced by an AbstractDeclaration",G())));a.X9(a.$)}function Qg(){this.Mg=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}Qg.prototype=new r;
Qg.prototype.constructor=Qg;function $ib(){}$ib.prototype=Qg.prototype;
function nda(a,b,c,e,f){a.ca().Pb.X(t(new u,function(a,b,c,e,f){return function(y){if(null!==y){var I=y.pa();y=y.Ba();var E=!1,V=null,V=null,da=y.t;a:{if(os(da)&&(E=!0,V=da,V.k!==a.k&&!b.mfa.R(V.k))){da=b.Zn;V=V.aO(c,e,b,!1);b.Zn=da;da=V;break a}if(E&&V.k===a.k)da=V;else if(es(da))var V=da.Tb,E=t(new u,function(a,b,c,e){return function(f){var g=!1,h;h=null;return os(f)&&(g=!0,h=f,h.k!==a.k&&!b.mfa.R(h.k))?(f=b.Zn,h=h.aO(c,e,b,!1),b.Zn=f,h):g&&h.k===a.k?h:f}}(a,b,c,e)),sa=z(),da=gr(new hr,V.ka(E,sa.s),
da.E)}vj(f.ca(),I,da,y.E)}else throw(new v).d(y);}}(a,f,b,e,c)))}function qna(a,b){M();var c=(new N).a(),c=(new s7).P((new Q).a(),c);M();var e=(new N).a();b=Ue(c,b,e);c=$w();nh(a,c,b);return b}d=Qg.prototype;d.a=function(){hL(this);this.Mg=H(xz(),G());return this};d.Ub=function(){return H(z(),G())};d.Zu=function(a){this.Nk=a};function ajb(a,b){b=qDa(a,b);Yi(b.Mg,a.Mg);return b}d.Qb=function(a){return cj(this,a)};d.es=function(){};d.It=function(a){this.Zi=a};d.Uc=function(a){return Te(this,a)};
d.Mq=function(){return H(z(),G())};d.lu=function(a){this.Zg=a};d.H_=function(){return(new yL).a()};d.Nt=function(){return this.Zg};d.Hu=function(){};d.Is=function(a,b,c,e){return fL(this,a,b,c,e)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.gk=function(a,b){return gL(this,a,b)};d.Vv=function(){return"shape"};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.Ht=function(a){this.Jk=a};
d.vG=function(){var a=this.ha();return ajb(this,zj(M(),a))};d.Ch=function(){return Pg().$};d.Up=function(a){return Px(this,a)};function o6a(a){var b=B(a.ca(),Pg().ld),c=t(new u,function(){return function(a){if(yb(a).qa()){var b=a.Up(a.Mq());return os(b)?b:a}return a}}(a)),e=z();return b.ka(c,e.s).xb(t(new u,function(a){return function(b){return b.k!==a.k}}(a)))}
function jA(a,b,c){var e=Xs();b?e=H(z(),(new J).aa([e])):(b=z(),e=[B(a.ca(),$w()).ae(e,qd(function(){return function(a,b){var c=B(b.ea,Pg().$).G;return a.Hh(c.b()?null:c.c(),b)}}(a)))],e=H(b,(new J).aa(e)));return B(a.ca(),Pg().ld).Fa()?o6a(a).ae(e,qd(function(a,b){return function(c,e){if(b.Ja(e.k))return c;e=jA(e,!1,b.Om(e.k));c=t(new u,function(a,b){return function(c){c=t(new u,function(a,b){return function(a){return a.gr(b)}}(a,c));var e=z();return b.ka(c,e.s)}}(a,c));var l=z();return e.md(c,l.s)}}(a,
c))):e}d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};d.Te=function(a){this.k=a};d.ku=function(a){this.zk=a};d.G$=function(){return w()};function os(a){return!!(a&&a.$classData&&a.$classData.v.zw)}function Eh(){this.Ah=this.Ea=null}Eh.prototype=new r;Eh.prototype.constructor=Eh;d=Eh.prototype;d.L=function(){return"DefaultScalarNode"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.l7?Yj(this.Ea,a.Ea):!1};
d.K=function(a){switch(a){case 0:return this.Ea;default:throw(new X).e(""+a);}};d.DV=function(){return this.EV()};d.u=function(){return U(W(),this)};d.t5=function(){var a=this.Ea,b=YWa();return Nh(new Oh,+L(a,b,this.Ah),Lr(M(),this.Ea))};d.Vb=function(a,b){this.Ea=a;this.Ah=b;return this};d.Pf=function(){var a=this.Ea,b=qe();return Nh(new Oh,L(a,b,this.Ah),Lr(M(),this.Ea))};d.EV=function(){var a=this.Ea,b=kL();return Nh(new Oh,!L(a,b,this.Ah),Lr(M(),this.Ea))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Hf=function(){var a=this.Ea,b=zc();return Nh(new Oh,L(a,b,this.Ah).ya,Lr(M(),this.Ea))};d.Ip=function(){var a=this.Ea,b=kL();return Nh(new Oh,!!L(a,b,this.Ah),Lr(M(),this.Ea))};d.KE=function(){var a=this.Ea,b=xDa();return Nh(new Oh,L(a,b,this.Ah)|0,Lr(M(),this.Ea))};d.$classData=q({l7:0},!1,"amf.core.parser.DefaultScalarNode",{l7:1,f:1,SNa:1,LY:1,A:1,w:1,q:1,n:1});function t7(){kT.call(this)}t7.prototype=new ddb;t7.prototype.constructor=t7;
t7.prototype.a=function(){kT.prototype.La.call(this,0,0);return this};t7.prototype.eE=function(){return 1};t7.prototype.Wn=function(){return 1};t7.prototype.$classData=q({LNa:0},!1,"amf.core.parser.Position$ZERO$",{LNa:1,m7:1,f:1,sh:1,A:1,w:1,q:1,n:1});var bjb=void 0;function Gd(){bjb||(bjb=(new t7).a());return bjb}function tdb(){vE.call(this);this.bE=null}tdb.prototype=new JPa;tdb.prototype.constructor=tdb;d=tdb.prototype;d.L=function(){return"FileNotFound"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Zka){var b=this.bE;a=a.bE;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.bE;default:throw(new X).e(""+a);}};d.gm=function(a){this.bE=a;var b="File Not Found: "+a.Xm();vE.prototype.pe.call(this,b,a,0,!0);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Zka:0},!1,"amf.core.remote.FileNotFound",{Zka:1,Xka:1,Fe:1,f:1,n:1,A:1,w:1,q:1});
function K5(){vE.call(this);this.bE=null}K5.prototype=new JPa;K5.prototype.constructor=K5;d=K5.prototype;d.L=function(){return"NetworkError"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.$ka){var b=this.bE;a=a.bE;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.bE;default:throw(new X).e(""+a);}};d.gm=function(a){this.bE=a;var b="Network Error: "+a.Xm();vE.prototype.pe.call(this,b,a,0,!0);return this};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({$ka:0},!1,"amf.core.remote.NetworkError",{$ka:1,Xka:1,Fe:1,f:1,n:1,A:1,w:1,q:1});function u7(){vE.call(this);this.zW=null;this.pT=0}u7.prototype=new xY;u7.prototype.constructor=u7;d=u7.prototype;d.L=function(){return"UnexpectedStatusCode"};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.ala?this.zW===a.zW&&this.pT===a.pT:!1};
d.K=function(a){switch(a){case 0:return this.zW;case 1:return this.pT;default:throw(new X).e(""+a);}};d.bn=function(a,b){this.zW=a;this.pT=b;vE.prototype.pe.call(this,"Unexpected status code '"+b+"' for resource '"+a+"'",null,0,!0);return this};d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.zW)),a=zI().Ga(a,this.pT);return zI().Wd(a,2)};d.M=function(){return Z(this)};d.$classData=q({ala:0},!1,"amf.core.remote.UnexpectedStatusCode",{ala:1,Kf:1,Fe:1,f:1,n:1,A:1,w:1,q:1});function O0(){}
O0.prototype=new bDa;O0.prototype.constructor=O0;d=O0.prototype;d.a=function(){return this};d.L=function(){return"JsBrowserHttpResourceLoader"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.bla)&&!0};d.DF=function(a){return this.$B(a)};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};
d.$B=function(a){rJ();var b=Iua(),c=Xs();a=Hua(b,a,c).ei(t(new u,function(a,b){return function(a){var c=a.status|0;switch(c){case 200:return HB(ib(),(new j2).tc(a.responseText,b));default:return Efa(ib(),(new u7).bn(b,c))}}}(this,a)),um()).rW(new odb,um());return qJ(0,a)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({bla:0},!1,"amf.core.remote.browser.JsBrowserHttpResourceLoader",{bla:1,VKa:1,f:1,c7:1,A:1,w:1,q:1,n:1});function P0(){}P0.prototype=new r;
P0.prototype.constructor=P0;d=P0.prototype;d.a=function(){return this};d.L=function(){return"JsServerFileResourceLoader"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.cla)&&!0};d.K=function(a){throw(new X).e(""+a);};d.DF=function(a){return bga(this,a)};function rdb(a){return 0<=(a.length|0)&&"file:"===a.substring(0,5)?a:"file://"+a}d.u=function(){return U(W(),this)};
function cga(a,b){rJ();a=cbb(FWa().z_(b)).Lf(t(new u,function(a,b){return function(a){a=tPa(b,a);var c=rdb(b);Ip();var h=mba(b);h.b()?h=w():(h=h.c(),Ip(),h=nba(h));return(new j2).oU(a,c,h)}}(a,b)),um()).qW(qdb(a,b),um());return qJ(0,a)}d.$B=function(a){return bga(this,a)};d.BQ=function(a){return dga(a)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.hG=function(a){return dga(a)};P0.prototype.accepts=function(a){return this.BQ(a)};P0.prototype.fetch=function(a){return this.DF(a)};
P0.prototype.ensureFileAuthority=function(a){return rdb(a)};P0.prototype.fetchFile=function(a){return cga(this,a)};P0.prototype.$classData=q({cla:0},!1,"amf.core.remote.server.JsServerFileResourceLoader",{cla:1,f:1,Ceb:1,c7:1,A:1,w:1,q:1,n:1});function Q0(){}Q0.prototype=new bDa;Q0.prototype.constructor=Q0;d=Q0.prototype;d.a=function(){return this};d.L=function(){return"JsServerHttpResourceLoader"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.dla)&&!0};
d.K=function(a){throw(new X).e(""+a);};d.DF=function(a){return this.$B(a)};d.u=function(){return U(W(),this)};
d.$B=function(a){var b=(new uE).a();if(0<=(a.length|0)&&"https:"===a.substring(0,6))try{Iaa.get(a,cjb(this,a,b)).on("error",djb(this,b))}catch(e){if(a=gi(Mb(),e),null!==a)a=(new K5).gm(a),ek(b,a);else throw e;}else try{Haa.get(a,cjb(this,a,b)).on("error",djb(this,b))}catch(e){if(a=gi(Mb(),e),null!==a)a=(new K5).gm(a),ek(b,a);else throw e;}rJ();a=new udb;var c=um(),b=sza(b,a,c);return qJ(0,b)};
function djb(a,b){return function(a,b){return function(a){a=(new K5).gm((new Nb).e(ja(a)));return ek(b,a)}}(a,b)}d.y=function(){return Y(this)};
function ejb(a,b,c,e){var f=(new Qd).d(""),g=b.statusCode|0;if(300<=g)return a=(new u7).bn(e,g),ek(c,a);b.on("data",function(a,b){return function(a){b.ta=""+b.ta+ja(a)}}(a,f));return b.on("end",function(a,b,c,e,f){return function(){try{var a=b.headers;if(xJ().MC.call(a,"content-type"))var g=a["content-type"];else throw(new PH).e("key not found: content-type");var h=(new A).d(g)}catch(da){if(null!==gi(Mb(),da))h=w();else throw da;}a=(new j2).jx(e.ta,f,h);return gk(c,a)}}(a,b,c,f,e))}
function cjb(a,b,c){return function(a,b,c){return function(h){return ejb(a,h,b,c)}}(a,c,b)}d.M=function(){return Z(this)};d.$classData=q({dla:0},!1,"amf.core.remote.server.JsServerHttpResourceLoader",{dla:1,VKa:1,f:1,c7:1,A:1,w:1,q:1,n:1});function YL(){}YL.prototype=new L5;YL.prototype.constructor=YL;YL.prototype.a=function(){return this};YL.prototype.R=function(a){return this.mu(a)};YL.prototype.mu=function(a){if(qEa(a)){a=a.ca();var b=jh().Lj;return a.Pb.Ja(b)}return!1};
YL.prototype.$classData=q({gPa:0},!1,"amf.core.resolution.stages.selectors.ExternalSourceElementSelector$",{gPa:1,fN:1,f:1,za:1,A:1,w:1,q:1,n:1});var REa=void 0;function v7(){this.Lx=null}v7.prototype=new L5;v7.prototype.constructor=v7;v7.prototype.R=function(a){return this.mu(a)};v7.prototype.mu=function(a){return this.Lx.Ja(a.k)||(this.Lx.Om(a.k),!1)};function QEa(a){var b=new v7;b.Lx=a;return b}
v7.prototype.$classData=q({hPa:0},!1,"amf.core.resolution.stages.selectors.KnownElementIdSelector",{hPa:1,fN:1,f:1,za:1,A:1,w:1,q:1,n:1});function w7(){}w7.prototype=new L5;w7.prototype.constructor=w7;w7.prototype.a=function(){return this};w7.prototype.R=function(a){return this.mu(a)};w7.prototype.mu=function(a){return JL(a)};w7.prototype.$classData=q({iPa:0},!1,"amf.core.resolution.stages.selectors.LinkNodeSelector$",{iPa:1,fN:1,f:1,za:1,A:1,w:1,q:1,n:1});var fjb=void 0;
function UEa(){fjb||(fjb=(new w7).a());return fjb}function x7(){}x7.prototype=new L5;x7.prototype.constructor=x7;x7.prototype.a=function(){return this};x7.prototype.R=function(a){return this.mu(a)};x7.prototype.mu=function(a){return ns(a)?yb(a).qa():!1};x7.prototype.$classData=q({jPa:0},!1,"amf.core.resolution.stages.selectors.LinkSelector$",{jPa:1,fN:1,f:1,za:1,A:1,w:1,q:1,n:1});var gjb=void 0;function TEa(){gjb||(gjb=(new x7).a());return gjb}function y7(){this.kEa=this.jEa=null}y7.prototype=new L5;
y7.prototype.constructor=y7;y7.prototype.R=function(a){return this.mu(a)};function SEa(a,b){var c=new y7;c.jEa=a;c.kEa=b;return c}y7.prototype.mu=function(a){return this.jEa.mu(a)?!0:this.kEa.mu(a)};y7.prototype.$classData=q({kPa:0},!1,"amf.core.resolution.stages.selectors.OrSelector",{kPa:1,fN:1,f:1,za:1,A:1,w:1,q:1,n:1});function wc(){this.Yy=this.ga=this.og=this.Us=this.fw=this.Wu=this.km=this.Ad=null}wc.prototype=new r;wc.prototype.constructor=wc;d=wc.prototype;d.L=function(){return"AMFValidationResult"};
d.H=function(){return 8};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ola){if(this.Ad===a.Ad&&this.km===a.km&&this.Wu===a.Wu)var b=this.fw,c=a.fw,b=null===b?null===c:b.h(c);else b=!1;b&&this.Us===a.Us?(b=this.og,c=a.og,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.ga,c=a.ga,b=null===b?null===c:b.h(c)):b=!1;return b?ub(vb(),this.Yy,a.Yy):!1}return!1};
d.K=function(a){switch(a){case 0:return this.Ad;case 1:return this.km;case 2:return this.Wu;case 3:return this.fw;case 4:return this.Us;case 5:return this.og;case 6:return this.ga;case 7:return this.Yy;default:throw(new X).e(""+a);}};
d.u=function(){Zf();var a=(new lk).a();nk(a,"\n- Source: "+this.Us+"\n");nk(a,"  Message: "+this.Ad+"\n");nk(a,"  Level: "+this.km+"\n");nk(a,"  Target: "+this.Wu+"\n");var b=this.fw;nk(a,"  Property: "+(b.b()?"":b.c())+"\n");nk(a,"  Position: "+this.og+"\n");b=this.ga;nk(a,"  Location: "+(b.b()?"":b.c())+"\n");return a.Be.Ue};d.Wn=function(a){return hjb(this,a)};d.Xn=function(a){return hjb(this,a)};
function vc(a,b,c,e,f,g,h,k,l){a.Ad=b;a.km=c;a.Wu=e;a.fw=f;a.Us=g;a.og=h;a.ga=k;a.Yy=l;Zf();c=(new lk).a();nk(c,"\n- Source: "+g+"\n");nk(c,"  Message: "+b+"\n");nk(c,"  Property: "+(f.b()?"":f.c())+"\n");return a}d.y=function(){return Y(this)};
function hjb(a,b){var c=null!==b.og?b.og:w(),e=null!==a.og?a.og:w();if(e.b())var f=w();else f=e.c(),f=(new A).d(f.cc.Dd);f=f.b()?(new kT).La(0,0):f.c();if(c.b())var g=w();else g=c.c(),g=(new A).d(g.cc.Dd);f=f.eE(g.b()?(new kT).La(0,0):g.c());switch(f){case 0:e.b()?e=w():(e=e.c(),e=(new A).d(e.cc.Lo));e=e.b()?(new kT).La(0,0):e.c();c.b()?c=w():(c=c.c(),c=(new A).d(c.cc.Lo));c=e.eE(c.b()?(new kT).La(0,0):c.c());switch(c){case 0:c=a.fw;c=c.b()?"":c.c();e=b.fw;e=e.b()?"":e.c();c=c===e?0:c<e?-1:1;switch(c){case 0:c=
Wa().Ia(a.Wu);c=c.b()?"":c.c();e=Wa().Ia(b.Wu);e=e.b()?"":e.c();c=c===e?0:c<e?-1:1;switch(c){case 0:c=Wa().Ia(a.Us);c=c.b()?"":c.c();e=Wa().Ia(b.Us);e=e.b()?"":e.c();c=c===e?0:c<e?-1:1;switch(c){case 0:a=Wa().Ia(a.Ad);a=a.b()?"":a.c();b=Wa().Ia(b.Ad);b=b.b()?"":b.c();b=a===b?0:a<b?-1:1;break;default:b=c}break;default:b=c}break;default:b=c}break;default:b=c}break;default:b=f}return 0<b?1:0===b?b:-1}d.M=function(){return Z(this)};
d.$classData=q({ola:0},!1,"amf.core.validation.AMFValidationResult",{ola:1,f:1,vx:1,sh:1,A:1,w:1,q:1,n:1});function V0(){this.og=0;this.t=this.ba=null}V0.prototype=new r;V0.prototype.constructor=V0;d=V0.prototype;d.L=function(){return"AliasesLocation"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Fla?this.og===a.og:!1};d.K=function(a){switch(a){case 0:return this.og;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};
d.$d=function(a){this.og=a;this.ba="aliases-location";this.t=""+a;return this};d.y=function(){var a=-889275714,a=zI().Ga(a,this.og);return zI().Wd(a,1)};d.M=function(){return Z(this)};var ijb=q({Fla:0},!1,"amf.plugins.document.vocabularies.annotations.AliasesLocation",{Fla:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});V0.prototype.$classData=ijb;function X0(){this.t=this.ba=null}X0.prototype=new r;X0.prototype.constructor=X0;d=X0.prototype;d.a=function(){this.ba="custom-id";this.t="true";return this};d.L=function(){return"CustomId"};
d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Gla)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var jjb=q({Gla:0},!1,"amf.plugins.document.vocabularies.annotations.CustomId",{Gla:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});X0.prototype.$classData=jjb;function Z0(){this.t=this.ba=null}Z0.prototype=new r;Z0.prototype.constructor=Z0;d=Z0.prototype;
d.a=function(){this.ba="json-pointer-ref";this.t="true";return this};d.L=function(){return"JsonPointerRef"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Hla)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var NQa=q({Hla:0},!1,"amf.plugins.document.vocabularies.annotations.JsonPointerRef",{Hla:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});
Z0.prototype.$classData=NQa;function a1(){this.t=this.ba=null}a1.prototype=new r;a1.prototype.constructor=a1;d=a1.prototype;d.a=function(){this.ba="ref-include";this.t="true";return this};d.L=function(){return"RefInclude"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Ila)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
var wQa=q({Ila:0},!1,"amf.plugins.document.vocabularies.annotations.RefInclude",{Ila:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});a1.prototype.$classData=wQa;function kjb(){this.o=this.pK=null}kjb.prototype=new r;kjb.prototype.constructor=kjb;d=kjb.prototype;d.L=function(){return"ExternalEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Jla){var b=this.pK,c=a.pK;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.pK;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Va=function(a){var b=B(this.pK.g,zd().gd).G,b=b.b()?null:b.c(),c=B(this.pK.g,zd().uh).G;Bv(new Cv,b,c.b()?null:c.c(),O().Wa,Gd()).Va(a)};function pQa(a,b){var c=new kjb;c.pK=a;c.o=b;return c}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=Zb(this.pK.E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};
d.$classData=q({Jla:0},!1,"amf.plugins.document.vocabularies.emitters.common.ExternalEmitter",{Jla:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function ljb(){this.Xb=this.o=this.Eh=null}ljb.prototype=new r;ljb.prototype.constructor=ljb;d=ljb.prototype;d.L=function(){return"ReferenceEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Tla){var b=this.Eh,c=a.Eh;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.Xb,a=a.Xb,null===b?null===a:O1(b,a)}return!1};
d.K=function(a){switch(a){case 0:return this.Eh;case 1:return this.o;case 2:return this.Xb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Va=function(a){var b=this.Eh;vd(b)?(b=B(b.g,wd().uh).G,b=b.b()?null:b.c()):b=this.Eh.k;b=this.Xb.Ta(b);if(x(b)){var c=b.i;null!==c&&(b=c.pa(),c=c.Ba(),Bv(new Cv,b,c,O().Wa,Gd()).Va(a))}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return Gd()};
d.$classData=q({Tla:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.ReferenceEmitter",{Tla:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Nba(){this.Hca=this.Xb=this.o=this.nf=null}Nba.prototype=new r;Nba.prototype.constructor=Nba;d=Nba.prototype;d.L=function(){return"ReferencesEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ula){var b=this.nf,c=a.nf;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.Xb,a=a.Xb,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.nf;case 1:return this.o;case 2:return this.Xb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){if(this.Hca.Fa()){R();var b=Th(R(),"uses"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f),h=Cq(),k=this.o,l=this.Hca,p=t(new u,function(a){return function(b){var c=a.o,e=a.Xb,f=new ljb;f.Eh=b;f.o=c;f.Xb=e;return f}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=b.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=b[h],h=1+h|0,k=
1+k|0;e.x=f;T(a.r,iC(jC(),c.r))}};d.pU=function(a,b,c){this.nf=a;this.o=b;this.Xb=c;a=a.Pe();b=new Jdb;c=z();this.Hca=a.$b(b,c.s);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=Zb(this.nf.ha(),n(ijb));a.b()?a=w():(a=a.c().og,a=(new A).d((new kT).La(a,0)));return a.b()?Gd():a.c()};d.$classData=q({Ula:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.ReferencesEmitter",{Ula:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function mjb(){this.Xb=this.o=this.Eh=null}mjb.prototype=new r;mjb.prototype.constructor=mjb;d=mjb.prototype;d.L=function(){return"ReferenceEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.$la){var b=this.Eh,c=a.Eh;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.Xb,a=a.Xb,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.Eh;case 1:return this.o;case 2:return this.Xb;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.Va=function(a){var b=this.Xb.Ta(this.Eh.k);if(x(b)){var c=b.i;null!==c&&(b=c.pa(),c=c.Ba(),Bv(new Cv,b,c,O().Wa,Gd()).Va(a))}};d.pU=function(a,b,c){this.Eh=a;this.o=b;this.Xb=c;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return Gd()};d.$classData=q({$la:0},!1,"amf.plugins.document.vocabularies.emitters.instances.ReferenceEmitter",{$la:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function njb(){this.Xb=this.o=this.nf=null}
njb.prototype=new r;njb.prototype.constructor=njb;d=njb.prototype;d.L=function(){return"ReferencesEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ama){var b=this.nf,c=a.nf;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.Xb,a=a.Xb,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.nf;case 1:return this.o;case 2:return this.Xb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.nf.Pe(),c=new Vdb,e=z(),c=b.$b(c,e.s);if(c.Fa()){R();var e=Th(R(),"uses"),b=(new My).e(a.da),f=b.r,g=b.da,h=(new pq).e(g),k=Cq(),l=this.o,p=t(new u,function(a){return function(b){return(new mjb).pU(b,a.o,a.Xb)}}(this)),y=z();iq(k,l.Cb(c.ka(p,y.s)),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);g=c.z;l=g.j.length;k=h=0;p=e.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=e[h],h=1+
h|0,k=1+k|0;c.x=f;T(a.r,iC(jC(),b.r))}};d.pU=function(a,b,c){this.nf=a;this.o=b;this.Xb=c;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=Zb(this.nf.ha(),n(ijb));a.b()?a=w():(a=a.c().og,a=(new A).d((new kT).La(a,0)));return a.b()?Gd():a.c()};d.$classData=q({ama:0},!1,"amf.plugins.document.vocabularies.emitters.instances.ReferencesEmitter",{ama:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function ZQa(){this.o=this.cf=this.yM=null}ZQa.prototype=new r;
ZQa.prototype.constructor=ZQa;d=ZQa.prototype;d.L=function(){return"ImportEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.dma){var b=this.yM,c=a.yM;(null===b?null===c:b.h(c))?(b=this.cf,c=a.cf,b=null===b?null===c:b.h(c)):b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.yM;case 1:return this.cf;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=jd(this.cf),b=b.b()?this.cf.k:b.c(),b=kd(ta(),b,"/",0),b=ld((new md).vc(b)),c=jd(this.cf),b=(c.b()?this.cf.k:c.c()).split(b).join(""),e=B(this.cf.g,wd().qc).Ib(t(new u,function(a){return function(b){b=b.k;var c=B(a.yM.g,Sd().qN).G;return b===(c.b()?null:c.c())}}(this)));a:{if(x(e)&&(c=e.i,null!==c)){e=jd(c);c=e.b()?c.k:e.c();break a}if(w()===e)throw Lb(Mb(),(new Nb).e("Cannot regenerate vocabulary link without reference"));throw(new v).d(e);}b=-1!==(c.indexOf(b)|0)?c.split(b).join(""):
c.split("file://").join("");c=B(this.yM.g,Sd().Kp).G;Bv(new Cv,c.b()?null:c.c(),b,O().Wa,Gd()).Va(a)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=Zb(this.yM.E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};d.$classData=q({dma:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.ImportEmitter",{dma:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function ojb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.ch=this.Aa=this.g=this.ja=null}ojb.prototype=new r;ojb.prototype.constructor=ojb;d=ojb.prototype;d.a=function(){pjb=this;Iq(this);bT(this);H0(this);DM(this);var a=C().Kc,a=D(new F,a,"DialectFragment"),b=Rl().ja;this.ja=oz(new pz,a,b);var a=this.ch,b=this.nc,c=Rl().g;this.g=oz(new pz,a,oz(new pz,b,c));this.Aa=Tb(new Ub,Vb().Kc,"Dialect Fragment","AML dialect mapping fragment that can be included in multiple AML dialects",G());return this};
d.Bn=function(a){this.qc=a};d.yn=function(a){this.ug=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.An=function(a){this.jg=a};d.Zc=function(){M();var a=(new N).a();return(new oN).P((new Q).a(),a)};d.Qp=function(a){this.ob=a};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.zn=function(a){this.nc=a};d.TD=function(a){this.ch=a};
d.$classData=q({wRa:0},!1,"amf.plugins.document.vocabularies.metamodel.document.DialectFragmentModel$",{wRa:1,f:1,xq:1,tn:1,Oc:1,ic:1,Xc:1,SF:1});var pjb=void 0;function Kqa(){pjb||(pjb=(new ojb).a());return pjb}function qjb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.Mc=this.ch=this.Aa=this.g=this.ja=null}qjb.prototype=new r;qjb.prototype.constructor=qjb;d=qjb.prototype;
d.a=function(){rjb=this;Iq(this);bT(this);I0(this);DM(this);var a=C().Kc,a=D(new F,a,"DialectLibrary"),b=Nl().ja;this.ja=oz(new pz,a,b);var a=this.ch,b=this.nc,c=Ug().g;this.g=oz(new pz,a,oz(new pz,b,c));this.Aa=Tb(new Ub,Vb().Kc,"Dialect Library","Library of AML mappings that can be reused in different AML dialects",G());return this};d.Bn=function(a){this.qc=a};d.yn=function(a){this.ug=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.An=function(a){this.jg=a};
d.gy=function(a){this.Mc=a};d.Zc=function(){M();var a=(new N).a();return(new nN).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.zn=function(a){this.nc=a};d.TD=function(a){this.ch=a};d.$classData=q({BRa:0},!1,"amf.plugins.document.vocabularies.metamodel.document.DialectLibraryModel$",{BRa:1,f:1,Az:1,tn:1,Oc:1,ic:1,Xc:1,SF:1});var rjb=void 0;function Lqa(){rjb||(rjb=(new qjb).a());return rjb}
function sjb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.Mc=this.ch=this.Aa=this.g=this.ja=this.BD=this.uh=this.$=null}sjb.prototype=new r;sjb.prototype.constructor=sjb;d=sjb.prototype;
d.a=function(){tjb=this;Iq(this);bT(this);I0(this);DM(this);var a=Pb(),b=C().dc;this.$=Rb(new Sb,a,D(new F,b,"name"),Tb(new Ub,Vb().dc,"name","name for an entity",G()));a=Pb();b=C().Kc;this.uh=Rb(new Sb,a,D(new F,b,"base"),Tb(new Ub,Vb().Kc,"base","Base URI prefix for definitions in this vocabulary",G()));a=(new Ki).Ld(Sd());b=C().qv;this.BD=Rb(new Sb,a,D(new F,b,"imports"),Tb(new Ub,Bi().qv,"import","import relationships between vocabularies",G()));var a=C().Kc,a=D(new F,a,"Vocabulary"),b=C().qv,
b=D(new F,b,"Ontology"),c=Ap().ja;this.ja=oz(new pz,a,oz(new pz,b,c));var a=this.$,b=this.BD,c=this.ch,e=this.Mc,f=this.uh,g=Ap().nc,h=Ap().g;this.g=oz(new pz,a,oz(new pz,b,oz(new pz,c,oz(new pz,e,oz(new pz,f,oz(new pz,g,h))))));this.Aa=Tb(new Ub,Vb().Kc,"Vocabulary","Basic primitives for the declaration of vocabularies.",G());return this};d.Bn=function(a){this.qc=a};d.yn=function(a){this.ug=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};
d.An=function(a){this.jg=a};d.gy=function(a){this.Mc=a};d.Zc=function(){M();var a=(new N).a();return(new VM).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Cn=function(a){this.Ud=a};d.zn=function(a){this.nc=a};d.TD=function(a){this.ch=a};d.$classData=q({ERa:0},!1,"amf.plugins.document.vocabularies.metamodel.document.VocabularyModel$",{ERa:1,f:1,Az:1,tn:1,Oc:1,ic:1,Xc:1,SF:1});var tjb=void 0;function wd(){tjb||(tjb=(new sjb).a());return tjb}
function ujb(){this.ke=this.Hb=this.Jc=this.ct=this.mt=this.gu=this.OD=this.Aa=this.ja=this.gha=this.eG=this.$I=this.oz=this.ij=this.jj=this.vl=this.Uh=this.CJ=this.cy=this.qr=this.Bw=this.cu=this.Jg=this.xf=this.Kh=this.$=null;this.ma=0}ujb.prototype=new r;ujb.prototype.constructor=ujb;d=ujb.prototype;
d.a=function(){vjb=this;Iq(this);cT(this);Ud(this);Xba(this);var a=Pb(),b=C().dc;this.$=Rb(new Sb,a,D(new F,b,"name"),Tb(new Ub,Vb().dc,"name","Name in the source AST for the mapped property",G()));a=Xc();b=C().cb;this.Kh=Rb(new Sb,a,D(new F,b,"path"),Tb(new Ub,Bi().cb,"path","URI in the mapped graph for this mapped property",G()));a=Xc();b=C().cb;this.xf=Rb(new Sb,a,D(new F,b,"datatype"),Tb(new Ub,Bi().cb,"datatype","Scalar constraint over the type of the mapped property",G()));a=(new o7).Ld(Xc());
b=C().cb;this.Jg=Rb(new Sb,a,D(new F,b,"node"),Tb(new Ub,Bi().cb,"range","Object constraint over the type of the mapped property",G()));a=Pb();b=C().Kc;this.cu=Rb(new Sb,a,D(new F,b,"mapProperty"),Tb(new Ub,Vb().Kc,"map label property","Marks the mapping as a 'map' mapping syntax. Directly related with mapTermKeyProperty",G()));a=Pb();b=C().Kc;this.Bw=Rb(new Sb,a,D(new F,b,"mapValueProperty"),Tb(new Ub,Vb().Kc,"map label value property","Marks the mapping as a 'map value' mapping syntax. Directly related with mapTermValueProperty",
G()));a=Xc();b=C().Kc;this.qr=Rb(new Sb,a,D(new F,b,"mapTermProperty"),Tb(new Ub,Vb().Kc,"map term property uri","Marks the mapping as a 'map' mapping syntax. ",G()));a=Xc();b=C().Kc;this.cy=Rb(new Sb,a,D(new F,b,"mapTermValueProperty"),Tb(new Ub,Vb().Kc,"map term value property","Marks the mapping as a 'map value' mapping syntax",G()));a=Yc();b=C().Kc;this.CJ=Rb(new Sb,a,D(new F,b,"sorted"),Tb(new Ub,Vb().Kc,"sorted","Marks the mapping as requiring order in the mapped collection of nodes",G()));
a=Zc();b=C().cb;this.Uh=Rb(new Sb,a,D(new F,b,"minCount"),Tb(new Ub,Bi().cb,"min count","Minimum count constraint over tha mapped property",G()));a=Pb();b=C().cb;this.vl=Rb(new Sb,a,D(new F,b,"pattern"),Tb(new Ub,Bi().cb,"pattern","Pattern constraint over the mapped property",G()));a=Ci();b=C().cb;this.jj=Rb(new Sb,a,D(new F,b,"minInclusive"),Tb(new Ub,Bi().cb,"min inclusive","Minimum inclusive constraint over the mapped property",G()));a=Ci();b=C().cb;this.ij=Rb(new Sb,a,D(new F,b,"maxInclusive"),
Tb(new Ub,Bi().cb,"max inclusive","Maximum inclusive constraint over the mapped property",G()));a=Yc();b=C().Kc;this.oz=Rb(new Sb,a,D(new F,b,"allowMultiple"),Tb(new Ub,Vb().Kc,"allow multiple","Allows multiple mapped nodes for the property mapping",G()));a=(new o7).Ld(ad());b=C().cb;this.$I=Rb(new Sb,a,D(new F,b,"in"),Tb(new Ub,Bi().cb,"in","Enum constraint for the values of the property mapping",G()));a=Yc();b=C().Kc;this.eG=Rb(new Sb,a,D(new F,b,"unique"),Tb(new Ub,Vb().Kc,"unique","Marks the values for the property mapping as a primary key for this type of node",
G()));a=Yc();b=C().Kc;this.gha=Rb(new Sb,a,D(new F,b,"externallyLinkable"),Tb(new Ub,Vb().Kc,"linkable","Marks this object property as supporting external links",G()));a=C().Kc;a=D(new F,a,"NodePropertyMapping");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().Kc,"Node Property Mapping","Semantic mapping from an input AST in a dialect document to the output graph of information for a class of output node",G());return this};d.Ce=function(a){this.Hb=a};d.$xa=function(a){this.gu=a};d.Yc=function(){};
d.Zxa=function(a){this.OD=a};d.Tc=function(){return this.Aa};
d.sc=function(){var a=this.Kh,b=this.$,c=this.xf,e=this.Jg,f=this.cu,g=this.Bw,h=this.qr,k=this.cy,l=this.Uh,p=this.vl,y=this.jj,I=this.ij,E=this.oz,V=this.CJ,da=this.$I,sa=this.OD,ua=this.eG,Ia=this.gha,Pa=this.gu,Za=this.mt,db=Lc().g;return oz(new pz,a,oz(new pz,b,oz(new pz,c,oz(new pz,e,oz(new pz,f,oz(new pz,g,oz(new pz,h,oz(new pz,k,oz(new pz,l,oz(new pz,p,oz(new pz,y,oz(new pz,I,oz(new pz,E,oz(new pz,V,oz(new pz,da,oz(new pz,sa,oz(new pz,ua,oz(new pz,Ia,oz(new pz,Pa,oz(new pz,Za,db))))))))))))))))))))};
d.PN=function(a){this.mt=a};d.Zc=function(){M();var a=(new N).a();return(new fN).P((new Q).a(),a)};d.ON=function(a){this.ct=a};d.ec=function(){return this.ja};d.$classData=q({ORa:0},!1,"amf.plugins.document.vocabularies.metamodel.domain.PropertyMappingModel$",{ORa:1,f:1,se:1,Oc:1,ic:1,Xc:1,eS:1,MRa:1});var vjb=void 0;function sf(){vjb||(vjb=(new ujb).a());return vjb}function h1a(){this.t=this.ba=this.e2=null}h1a.prototype=new r;h1a.prototype.constructor=h1a;d=h1a.prototype;d.L=function(){return"LocalLinkPath"};
d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Tma?this.e2===a.e2:!1};d.K=function(a){switch(a){case 0:return this.e2;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.e=function(a){this.e2=a;this.ba="local-link-path";this.t=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Tma:0},!1,"amf.plugins.document.webapi.annotations.LocalLinkPath",{Tma:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});function uU(){this.Q=null}uU.prototype=new RHa;uU.prototype.constructor=uU;d=uU.prototype;d.L=function(){return"Oas2SpecEmitterFactory"};d.H=function(){return 0};d.h=function(a){return wjb(a)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.$Fa=function(a,b,c,e){return xjb(a,b,c,e,this.Q)};d.sA=function(a){BN.prototype.sA.call(this,a);return this};
d.aGa=function(a,b,c,e){return(new Bfb).Cba(a,b,c,e,this.Q)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.tj=function(){return this.Q};function wjb(a){return!!(a&&a.$classData&&a.$classData.v.$ma)}d.$classData=q({$ma:0},!1,"amf.plugins.document.webapi.contexts.Oas2SpecEmitterFactory",{$ma:1,MTa:1,f:1,O7:1,A:1,w:1,q:1,n:1});function yjb(){this.m=null}yjb.prototype=new r;yjb.prototype.constructor=yjb;d=yjb.prototype;d.L=function(){return"Oas2VersionFactory"};d.H=function(){return 0};
d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.ana)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.dGa=function(a,b){var c=this.m,e=new zjb;e.ee=a;e.fs=b;AO.prototype.cH.call(e,a,b,Jn().Wh,c);return e};d.cGa=function(a,b){return(new z7).cH(a,b,Zm().Wh,this.m)};d.YFa=function(a,b){return(new A7).h1(a,b,this.m)};d.y=function(){return Y(this)};d.BE=function(a){this.m=a;return this};d.M=function(){return Z(this)};
d.bGa=function(a,b){return(new z7).cH(a,b,Tm().Wh,this.m)};d.YV=function(a,b,c,e){return(new k6).eP(a,b,c,e,this.m)};d.$classData=q({ana:0},!1,"amf.plugins.document.webapi.contexts.Oas2VersionFactory",{ana:1,f:1,NTa:1,P7:1,A:1,w:1,q:1,n:1});function aSa(){this.Q=null}aSa.prototype=new RHa;aSa.prototype.constructor=aSa;d=aSa.prototype;d.L=function(){return"Oas3SpecEmitterFactory"};d.H=function(){return 0};d.h=function(a){return Fy(a)&&!0};d.K=function(a){throw(new X).e(""+a);};
d.u=function(){return U(W(),this)};d.$Fa=function(a,b,c,e){return xjb(a,b,c,e,this.Q)};d.sA=function(a){BN.prototype.sA.call(this,a);return this};d.aGa=function(a,b,c,e){return(new Gfb).Cba(a,b,c,e,this.Q)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.tj=function(){return this.Q};function Fy(a){return!!(a&&a.$classData&&a.$classData.v.dna)}d.$classData=q({dna:0},!1,"amf.plugins.document.webapi.contexts.Oas3SpecEmitterFactory",{dna:1,MTa:1,f:1,O7:1,A:1,w:1,q:1,n:1});
function B7(){this.m=null}B7.prototype=new r;B7.prototype.constructor=B7;d=B7.prototype;d.L=function(){return"Oas3VersionFactory"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.ena)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.dGa=function(a,b){return(new z7).cH(a,b,Jn().Wh,this.m)};d.cGa=function(a,b){return(new z7).cH(a,b,Zm().Wh,this.m)};d.YFa=function(a,b){return(new C7).h1(a,b,this.m)};d.y=function(){return Y(this)};
d.BE=function(a){this.m=a;return this};d.M=function(){return Z(this)};d.bGa=function(a,b){return(new z7).cH(a,b,Tm().Wh,this.m)};d.YV=function(a,b,c,e){return(new D7).eP(a,b,c,e,this.m)};d.$classData=q({ena:0},!1,"amf.plugins.document.webapi.contexts.Oas3VersionFactory",{ena:1,f:1,NTa:1,P7:1,A:1,w:1,q:1,n:1});function E7(){this.jd=null}E7.prototype=new F2;E7.prototype.constructor=E7;E7.prototype.a=function(){WU.prototype.e.call(this,"%RAML 1.0 AnnotationTypeDeclaration");return this};
E7.prototype.$classData=q({MUa:0},!1,"amf.plugins.document.webapi.parser.RamlFragmentHeader$Raml10AnnotationTypeDeclaration$",{MUa:1,kv:1,f:1,A:1,w:1,q:1,n:1,UF:1});var Ajb=void 0;function Pla(){Ajb||(Ajb=(new E7).a());return Ajb}function F7(){this.jd=null}F7.prototype=new F2;F7.prototype.constructor=F7;F7.prototype.a=function(){WU.prototype.e.call(this,"%RAML 1.0 DataType");return this};
F7.prototype.$classData=q({NUa:0},!1,"amf.plugins.document.webapi.parser.RamlFragmentHeader$Raml10DataType$",{NUa:1,kv:1,f:1,A:1,w:1,q:1,n:1,UF:1});var Bjb=void 0;function Mla(){Bjb||(Bjb=(new F7).a());return Bjb}function G7(){this.jd=null}G7.prototype=new F2;G7.prototype.constructor=G7;G7.prototype.a=function(){WU.prototype.e.call(this,"%RAML 1.0 DocumentationItem");return this};
G7.prototype.$classData=q({OUa:0},!1,"amf.plugins.document.webapi.parser.RamlFragmentHeader$Raml10DocumentationItem$",{OUa:1,kv:1,f:1,A:1,w:1,q:1,n:1,UF:1});var Cjb=void 0;function Lla(){Cjb||(Cjb=(new G7).a());return Cjb}function H7(){this.jd=null}H7.prototype=new F2;H7.prototype.constructor=H7;H7.prototype.a=function(){WU.prototype.e.call(this,"%RAML 1.0 NamedExample");return this};
H7.prototype.$classData=q({PUa:0},!1,"amf.plugins.document.webapi.parser.RamlFragmentHeader$Raml10NamedExample$",{PUa:1,kv:1,f:1,A:1,w:1,q:1,n:1,UF:1});var Djb=void 0;function Sv(){Djb||(Djb=(new H7).a());return Djb}function I7(){this.jd=null}I7.prototype=new F2;I7.prototype.constructor=I7;I7.prototype.a=function(){WU.prototype.e.call(this,"%RAML 1.0 ResourceType");return this};
I7.prototype.$classData=q({QUa:0},!1,"amf.plugins.document.webapi.parser.RamlFragmentHeader$Raml10ResourceType$",{QUa:1,kv:1,f:1,A:1,w:1,q:1,n:1,UF:1});var Ejb=void 0;function Nla(){Ejb||(Ejb=(new I7).a());return Ejb}function J7(){this.jd=null}J7.prototype=new F2;J7.prototype.constructor=J7;J7.prototype.a=function(){WU.prototype.e.call(this,"%RAML 1.0 SecurityScheme");return this};
J7.prototype.$classData=q({RUa:0},!1,"amf.plugins.document.webapi.parser.RamlFragmentHeader$Raml10SecurityScheme$",{RUa:1,kv:1,f:1,A:1,w:1,q:1,n:1,UF:1});var Fjb=void 0;function Qla(){Fjb||(Fjb=(new J7).a());return Fjb}function K7(){this.jd=null}K7.prototype=new F2;K7.prototype.constructor=K7;K7.prototype.a=function(){WU.prototype.e.call(this,"%RAML 1.0 Trait");return this};
K7.prototype.$classData=q({SUa:0},!1,"amf.plugins.document.webapi.parser.RamlFragmentHeader$Raml10Trait$",{SUa:1,kv:1,f:1,A:1,w:1,q:1,n:1,UF:1});var Gjb=void 0;function Ola(){Gjb||(Gjb=(new K7).a());return Gjb}function Hjb(){this.so=this.sx=null}Hjb.prototype=new r;Hjb.prototype.constructor=Hjb;d=Hjb.prototype;d.L=function(){return"RamlScalarValuedNode"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.R7&&Yj(this.sx,a.sx)){var b=this.so;a=a.so;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.sx;case 1:return this.so;default:throw(new X).e(""+a);}};d.DV=function(){return this.EV()};d.u=function(){return U(W(),this)};d.t5=function(){return this.so.t5()};d.EV=function(){return this.so.EV()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function xma(a,b){var c=new Hjb;c.sx=a;c.so=b;return c}d.Hf=function(){return this.so.Hf()};d.Ip=function(){return this.so.Ip()};d.KE=function(){return this.so.KE()};d.$classData=q({R7:0},!1,"amf.plugins.document.webapi.parser.spec.common.RamlScalarValuedNode",{R7:1,f:1,SNa:1,LY:1,A:1,w:1,q:1,n:1});function zma(){this.Ah=this.Ea=null}zma.prototype=new r;zma.prototype.constructor=zma;d=zma.prototype;d.L=function(){return"RamlSingleArrayNode"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Hna?Yj(this.Ea,a.Ea):!1};d.K=function(a){switch(a){case 0:return this.Ea;default:throw(new X).e(""+a);}};d.DV=function(){return Ijb(this,(new Eh).Vb(this.Ea,this.Ah).EV())};d.u=function(){return U(W(),this)};d.b3=function(){return Ijb(this,(new Eh).Vb(this.Ea,this.Ah).Hf())};d.s5=function(){return Ijb(this,(new Eh).Vb(this.Ea,this.Ah).Ip())};d.Dr=function(a,b){this.Ea=a;this.Ah=b;return this};
d.Sba=function(){return Ijb(this,(new Eh).Vb(this.Ea,this.Ah).KE())};d.Zca=function(a){return Ijb(this,a.R(this.Ea))};function Ijb(a,b){var c=z();return gr(new hr,H(c,(new J).aa([b])),Lr(M(),a.Ea).Wb((new C0).a()))}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Hna:0},!1,"amf.plugins.document.webapi.parser.spec.common.RamlSingleArrayNode",{Hna:1,f:1,Bka:1,LY:1,A:1,w:1,q:1,n:1});function Jjb(){this.Q=this.U=this.o=this.ni=null}Jjb.prototype=new r;
Jjb.prototype.constructor=Jjb;d=Jjb.prototype;d.L=function(){return"AbstractDeclarationEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Lna){var b=this.ni,c=a.ni;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ni;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=B(this.ni.ca(),VN().$).G;if(x(b))b=b.i;else{var b=this.Q.Si(),c=wo().ey,e=this.ni.k,f=w(),g="Cannot declare abstract declaration without name "+this.ni,h=Zb(this.ni.ha(),n(Fd)),k=Yb(this.ni);b.Hc(c.k,e,f,g,h,xc().tb,k);b="default-name"}R();c=Th(R(),b);b=(new My).e(a.da);yb(this.ni).qa()?(e=yb(this.ni),e.b()||(e=e.c(),ax(this.Q.of.pF(),e,B(this.ni.ca(),Db().wd).G,this.U).Ob(b))):(e=Wa().Ia(this.ni.jA()),e.b()?f=w():(e=e.c(),f=(new A).d(Tw(new Uw,e,this.o,!1,pc(Os(),G()),this.Q.Si()).Ua())),
e=null,e=f.b()?G():f.c(),f=B(this.ni.g,VN().fb).G,f.b()||(f=f.c(),g=z(),h=O().Wa,Cq(),k=B(this.ni.g,VN().fb).E,f=[Bv(new Cv,"usage",f,h,jq(0,k,n(Fd)))],f=H(g,(new J).aa(f)),g=z(),e=e.la(f,g.s)),f=b.r,g=b.da,h=(new pq).e(g),this.o.Cb(e).X(t(new u,function(a,b){return function(a){a.Va(b)}}(this,h))),T(f,lq(R(),rq(sq(),h.r,g),O().ua)));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,k=h=0,p=c.length|0,l=p<l?p:l,p=g.j.length,l=l<p?
l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.ni.ha(),n(Fd))};d.$classData=q({Lna:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.AbstractDeclarationEmitter",{Lna:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function f6(){this.Q=this.U=this.o=this.Bi=this.oa=null}f6.prototype=new r;f6.prototype.constructor=f6;d=f6.prototype;d.L=function(){return"AbstractDeclarationsEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Nna){if(this.oa===a.oa)var b=this.Bi,c=a.Bi,b=null===b?null===c:b.h(c);else b=!1;if(b&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Bi;case 2:return this.o;case 3:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=Cq(),k=this.o,l=this.Bi,p=t(new u,function(a){return function(b){var c=a.o,e=a.U,f=a.Q,g=new Jjb;g.ni=b;g.o=c;g.U=e;g.Q=f;return g}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|
0;e.x=f;T(a.r,iC(jC(),b.r))};d.GE=function(a,b,c,e,f){this.oa=a;this.Bi=b;this.o=c;this.U=e;this.Q=f;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=this.Bi.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.ha(),n(Fd))));return a.b()?Gd():a.c()};d.$classData=q({Nna:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.AbstractDeclarationsEmitter",{Nna:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function Uw(){this.o=this.xl=null;this.Su=!1;this.AX=this.bB=this.cB=this.UD=this.dD=this.dB=this.BF=this.n_=this.Qu=null}Uw.prototype=new r;Uw.prototype.constructor=Uw;d=Uw.prototype;d.L=function(){return"DataNodeEmitter"};function Kjb(a,b,c){var e=c.r,f=c.da;c=(new My).e(f);a.o.Cb(Ljb(a,b)).X(t(new u,function(a,b){return function(a){a.Ob(b)}}(a,c)));R();FC();a=Py(vq(),f);a=lq(0,(new GC).mc(a,c.r),O().Nc);T(e,a)}d.H=function(){return 4};
d.Ob=function(a){var b=this.xl;if(wj(b))Mjb(this,b).Ob(a);else if(jm(b))Kjb(this,b,a);else if(fm(b))Njb(this,b,a);else if(JL(b))Ojb(this,b,a);else throw(new v).d(b);};
function Mjb(a,b){var c=!1,e=null,f=B(b.ea,xj().af).G;if(x(f)&&(c=!0,e=f,e.i===a.BF))return a=B(b.ea,xj().rf).G,d7(new c7,a.b()?null:a.c(),b.ab,O().Wa);if(c&&e.i===a.dB)return a=B(b.ea,xj().rf).G,d7(new c7,a.b()?null:a.c(),b.ab,O().Oi);if(c&&(f=e.i,f===a.cB|f===a.UD))return a=B(b.ea,xj().rf).G,d7(new c7,a.b()?null:a.c(),b.ab,O().rg);if(c&&e.i===a.bB)return a=B(b.ea,xj().rf).G,d7(new c7,a.b()?null:a.c(),b.ab,O().ui);if(c&&e.i===a.AX)return(new b7).Yp(b.ab);b=B(b.ea,xj().rf).G;return d7(new c7,b.b()?
null:b.c(),(M(),(new N).a()),O().Wa)}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Tna&&this.xl===a.xl&&this.o===a.o&&this.Su===a.Su){var b=this.Qu;a=a.Qu;return null===b?null===a:O1(b,a)}return!1};
function Pjb(a,b){var c=b.vC;if(!c.b()){var c=c.c(),e=a.Qu,f=B(b.ea,vr().Kp).G;e.Rl(f.b()?null:f.c(),c)}if(a.Su)return a=z(),e=B(b.ea,vr().Kp).G,c=new a7,e=e.b()?null:e.c(),b=b.ab,c.ur=e,c.E=b,H(a,(new J).aa([c]));a=z();e=B(b.ea,vr().Kp).G;c=new a7;e=e.b()?null:e.c();b=b.ab;c.ur=e;c.E=b;return H(a,(new J).aa([c]))}d.K=function(a){switch(a){case 0:return this.xl;case 1:return this.o;case 2:return this.Su;case 3:return this.Qu;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=this.xl;if(wj(a))var b=z(),a=[Mjb(this,a)],b=H(b,(new J).aa(a));else if(jm(a))b=Ljb(this,a);else if(fm(a))b=Qjb(this,a);else{if(!JL(a))throw(new v).d(a);b=Pjb(this,a)}var a=efb(this),c=z();return b.$b(a,c.s).tu(t(new u,function(){return function(a){return a.wa()}}(this)))};function Ojb(a,b,c){Pjb(a,b).X(t(new u,function(a,b){return function(a){a.Ob(b)}}(a,c)))}
function Qjb(a,b){var c=sr(b);a=t(new u,function(a,b){return function(c){var h=uj(b.ea,c),k=new Rjb;c=eFa((new Cf).e(c.t.ba));var l=h.t,p=a.o,y=a.Su,I=a.Qu,h=h.E,E=a.n_;k.oa=c;k.t=l;k.o=p;k.Su=y;k.Qu=I;k.KL=h;k.jc=E;return k}}(a,b));b=pf();return c.ka(a,b.s).ce()}d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.xl)),a=zI().Ga(a,yI(zI(),this.o)),a=zI().Ga(a,this.Su?1231:1237),a=zI().Ga(a,yI(zI(),this.Qu));return zI().Wd(a,4)};
function Ljb(a,b){b=B(b.ea,im().du);a=t(new u,function(a){return function(b){return Tw(new Uw,b,a.o,a.Su,a.Qu,a.n_)}}(a));var c=z();return b.ka(a,c.s)}function Njb(a,b,c){var e=c.r;c=c.da;var f=(new pq).e(c);a.o.Cb(Qjb(a,b)).X(t(new u,function(a,b){return function(a){a.Va(b)}}(a,f)));T(e,lq(R(),rq(sq(),f.r,c),O().ua))}d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.xl.ha(),n(Fd))};
function Tw(a,b,c,e,f,g){a.xl=b;a.o=c;a.Su=e;a.Qu=f;a.n_=g;a.BF=Gc($u().BF);a.dB=Gc($u().dB);a.dD=Gc($u().dD);a.UD=Gc($u().UD);a.cB=Gc($u().cB);a.bB=Gc($u().bB);a.AX=Gc($u().AX);return a}d.$classData=q({Tna:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.DataNodeEmitter",{Tna:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function Rjb(){this.o=this.t=this.oa=null;this.Su=!1;this.jc=this.KL=this.Qu=null}Rjb.prototype=new r;Rjb.prototype.constructor=Rjb;d=Rjb.prototype;d.L=function(){return"DataPropertyEmitter"};
d.H=function(){return 6};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Una){if(this.oa===a.oa&&this.t===a.t&&this.o===a.o&&this.Su===a.Su)var b=this.Qu,c=a.Qu,b=null===b?null===c:O1(b,c);else b=!1;return b?this.KL===a.KL:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.t;case 2:return this.o;case 3:return this.Su;case 4:return this.Qu;case 5:return this.KL;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=Zb(this.KL,n(Lt));b.b()?b=w():(b=b.c(),b=(new A).d(b.Lc));b=b.wa();b=hd(b,new ffb);b=b.b()?this.KL:b.c();R();Cq();var c=lq(0,uq(0,eFa((new Cf).e(this.oa)),O().Wa,b),O().Wa),b=(new My).e(a.da);Tw(new Uw,this.t,this.o,this.Su,this.Qu,this.jc).Ob(b);var e=b.r,c=[c];if(0>e.x)throw(new X).e("0");var f=c.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),
b.r))};d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.oa)),a=zI().Ga(a,yI(zI(),this.t)),a=zI().Ga(a,yI(zI(),this.o)),a=zI().Ga(a,this.Su?1231:1237),a=zI().Ga(a,yI(zI(),this.Qu)),a=zI().Ga(a,yI(zI(),this.KL));return zI().Wd(a,6)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.t.ha(),n(Fd))};d.$classData=q({Una:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.DataPropertyEmitter",{Una:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function u6a(){this.jc=this.o=this.MP=this.oa=null}u6a.prototype=new r;u6a.prototype.constructor=u6a;d=u6a.prototype;d.L=function(){return"EndPointExtendsEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Vna){if(this.oa===a.oa)var b=this.MP,c=a.MP,b=null===b?null===c:b.h(c);else b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.MP;case 2:return this.o;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=new Sjb,f=this.MP.fa(),g=this.o,h=this.jc;e.ni=f;e.o=g;e.jc=h;e.Ob(b);e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,k=g.j.length,l=h=0,p=c.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=c[h],h=1+h|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){var a=this.MP.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.ab,n(Fd))));return a.b()?Gd():a.c()};d.$classData=q({Vna:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.EndPointExtendsEmitter",{Vna:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Tjb(){this.Q=this.o=this.t=this.oa=null}Tjb.prototype=new r;Tjb.prototype.constructor=Tjb;d=Tjb.prototype;d.L=function(){return"EnumValuesEmitter"};d.H=function(){return 3};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Wna?this.oa===a.oa&&this.t===a.t?this.o===a.o:!1:!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.t;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.t.t.Tb,c=t(new u,function(a){return function(b){return Tw(new Uw,b,a.o,!1,pc(Os(),G()),a.Q.Si())}}(this)),e=z(),f=b.ka(c,e.s);R();var b=this.oa,e=Th(R(),b),b=(new My).e(a.da),c=b.r,g=b.da,h=(new My).e(g);tq(Cq(),this.o.Cb(f),h);R();FC();f=Py(vq(),g);f=lq(0,(new GC).mc(f,h.r),O().Nc);T(c,f);c=b.r;e=[e];if(0>c.x)throw(new X).e("0");h=e.length|0;f=c.x+h|0;hC(c,f);Ca(c.z,0,c.z,h,c.x);for(var h=c.z,k=h.j.length,l=g=0,p=e.length|0,k=p<k?p:k,p=h.j.length,k=k<p?k:p;g<k;)h.j[l]=
e[g],g=1+g|0,l=1+l|0;c.x=f;T(a.r,iC(jC(),b.r))};function $ma(a,b,c){var e=new Tjb;e.oa="enum";e.t=a;e.o=b;e.Q=c;return e}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.t.E,n(Fd))};d.$classData=q({Wna:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.EnumValuesEmitter",{Wna:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Ujb(){this.o=this.Ca=this.oa=null}Ujb.prototype=new r;Ujb.prototype.constructor=Ujb;d=Ujb.prototype;d.L=function(){return"IriTemplateEmitter"};
d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.$na){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=VV(this.Ca),k=t(new u,function(){return function(a){var b=Dd(a.ca(),so().ND);b.b()?b=w():(b=b.c(),a=Dd(a.ca(),so().XF),a.b()?b=w():(a=a.c(),b=(new A).d(Ih(new Jh,b.t.t.u(),a,w()))));return b.wa()}}(this)),l=z(),h=h.md(k,l.s);iq(Cq(),this.o.Cb(h),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,k=
h=0,p=c.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Lba=function(a,b,c){this.oa=a;this.Ca=b;this.o=c;return this};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({$na:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.IriTemplateEmitter",{$na:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function A7(){this.yb=this.m=this.Dg=this.W=null}A7.prototype=new r;
A7.prototype.constructor=A7;function Vjb(){}d=Vjb.prototype=A7.prototype;d.L=function(){return"Oas2SecuritySettingsParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.T7&&Yj(this.W,a.W)){var b=this.Dg;a=a.Dg;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.W;case 1:return this.Dg;default:throw(new X).e(""+a);}};d.LR=function(){null===this.yb&&(this.yb=yO())};d.u=function(){return U(W(),this)};
d.wc=function(){var a=B(this.Dg.g,vi().Nj).G,a=a.b()?null:a.c();if("OAuth 1.0"===a)a=(new A).d(Wjb(this));else if("OAuth 2.0"===a)a=(new A).d(this.UCa());else if("Api Key"===a)a=(new A).d(Xjb(this));else if(a=yc((new K).Y(this.W),Hv((new Cf).e("settings"))),a.b())a=w();else var a=a.c().i,b=Pc(),a=L(a,b,this.m),b=this.Dg.tX(),a=(new A).d(Yjb(this,a,b,(new J).aa([])));return Zjb(this,a)};
function Yjb(a,b,c,e){e=b.Bb.Ph(t(new u,function(a,b){return function(c){c=c.Da;var e=zc();c=L(c,e,a.m).ya;return b.Ja(c)||Jma(Bw(),c)}}(a,e)));if(Tc(e)){R();sq();var f=e.pc();f.b()?f=w():(f=f.c(),f=(new A).d(f.ga.Of));e=rq(0,e,f.b()?"":f.c());e=lq(R(),e,O().ua);var f=(new A).d(c.k),g=(new Mv).a(),h=(new Ie).a();e=Nv(new Ov,e,g,f,h,a.m).Ir();f=Hn().nz;ff(c,f,e)}jx(new kx,a.Dg,b,G(),a.m).Pc();return c}d.Yj=function(){null===this.yb&&this.LR();return this.yb};
function Wjb(a){var b=a.Dg.vX(),c=(new K).Y(a.W),e=Hv((new Cf).e("settings")),c=yc(c,e);if(!c.b()){var c=c.c().i,e=Pc(),c=L(c,e,a.m),e=(new K).Y(c),f=oX().AJ;Bh(e,"requestTokenUri",Ch(Dh(a,f,a.m),b));e=(new K).Y(c);f=oX().rm;Bh(e,"authorizationUri",Ch(Dh(a,f,a.m),b));e=(new K).Y(c);f=oX().EJ;Bh(e,"tokenCredentialsUri",Ch(Dh(a,f,a.m),b));e=(new K).Y(c);f=oX().BJ;Bh(e,"signatures",Ch(Dh(a,f,a.m),b));Yjb(a,c,b,(new J).aa(["requestTokenUri","authorizationUri","tokenCredentialsUri","signatures"]))}return b}
function Xjb(a){var b=a.Dg.uQ(),c=yc((new K).Y(a.W),"name");if(!c.b()){var e=c.c(),f=(new Eh).Vb(e.i,a.m),c=NP().$,f=f.Pf(),e=Ke(M(),e);Fh(b,c,f,e)}c=yc((new K).Y(a.W),"in");c.b()||(e=c.c(),f=(new Eh).Vb(e.i,a.m),c=NP().uz,f=f.Pf(),e=Ke(M(),e),Fh(b,c,f,e));c=(new K).Y(a.W);e=Hv((new Cf).e("settings"));c=yc(c,e);c.b()||(c=c.c().i,e=Pc(),c=L(c,e,a.m),Yjb(a,c,b,(new J).aa(["name","in"])));return b}d.h1=function(a,b,c){this.W=a;this.Dg=b;this.m=c;return this};
function $jb(a,b,c){c=yc((new K).Y(c),"scopes");if(!c.b()){c=c.c();var e=c.i,f=Pc(),e=L(e,f,a.m).Bb.Ph(t(new u,function(a){return function(b){var c=Bw();R();b=b.Da;var e=a.m,f=qe();return Jma(c,L(b,f,e))}}(a)));a=t(new u,function(a){return function(b){var c=b.Da,e=zc(),e=L(c,e,a.m).ya;R();var c=b.i,f=a.m,y=qe(),c=L(c,y,f),f=eWa(gWa(),b),y=En().$,e=Nh(new Oh,e,(new N).a()),I=Ke(M(),b.Da),e=Fh(f,y,e,I),f=En().fb,c=Nh(new Oh,c,(new N).a());b=Ke(M(),b.i);return Fh(e,f,c,b)}}(a));f=uv();a=e.ka(a,f.gc);
e=QP().sr;c=Ke(M(),c);jr(b,e,a,c)}}
d.UCa=function(){var a=this.Dg.xQ(),b=(new K).Y(this.W),c=QP().rm;Bh(b,"authorizationUrl",Ch(Dh(this,c,this.m),a));b=(new K).Y(this.W);c=QP().sq;Bh(b,"tokenUrl",Ch(Dh(this,c,this.m),a));b=yc((new K).Y(this.W),"flow");if(!b.b()){var c=b.c(),e=(new Eh).Vb(c.i,this.m),b=QP().Wx,e=e.Pf(),c=Ke(M(),c);Fh(a,b,e,c)}$jb(this,a,this.W);b=(new K).Y(this.W);c=Hv((new Cf).e("settings"));b=yc(b,c);b.b()||(b=b.c().i,c=Pc(),b=L(b,c,this.m),c=(new K).Y(b),e=QP().pz,Bh(c,"authorizationGrants",Ch(Dh(this,e,this.m),
a)),Yjb(this,b,a,(new J).aa(["authorizationGrants"])));f6a(jx(new kx,a,this.W,G(),this.m),"scopes");return a};d.y=function(){return Y(this)};function Zjb(a,b){if(b.b())return w();b=b.c();jx(new kx,b,a.W,G(),a.m).Pc();a=Ke(M(),a.W);return(new A).d(cc(b,a))}d.M=function(){return Z(this)};d.$classData=q({T7:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Oas2SecuritySettingsParser",{T7:1,f:1,aWa:1,ig:1,A:1,w:1,q:1,n:1});function akb(){this.o=this.Pb=this.fU=null}akb.prototype=new r;
akb.prototype.constructor=akb;d=akb.prototype;d.L=function(){return"Oas3DiscriminatorEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.foa){var b=this.fU,c=a.fU;return(null===b?null===c:b.h(c))&&this.Pb===a.Pb?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.fU;case 1:return this.Pb;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"discriminator"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f),h=H(Wg(),G()),k=Dd(this.Pb,ci().dt);k.b()||(k=k.c(),(new A).d(vh(h,Ih(new Jh,"propertyName",k,w()))));k=Dd(this.Pb,ci().VI);k.b()||(k=k.c(),(new A).d(vh(h,(new Ujb).Lba("mapping",k,this.o))));iq(Cq(),this.o.Cb(h),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,k=h=0,p=b.length|0,l=p<l?p:l,p=g.j.length,
l=l<p?l:p;h<l;)g.j[k]=b[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),c.r))};d.y=function(){return Y(this)};function bkb(a,b,c){var e=new akb;e.fU=a;e.Pb=b;e.o=c;return e}d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.fU.t.E,n(Fd))};d.$classData=q({foa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Oas3DiscriminatorEmitter",{foa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function C6a(){this.Q=this.o=this.Yg=null}C6a.prototype=new r;C6a.prototype.constructor=C6a;d=C6a.prototype;
d.L=function(){return"Oas3OAuth2FlowEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.goa){var b=this.Yg,c=a.Yg;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Yg;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.Yg.g,c=B(this.Yg.g,QP().Wx).G;if(x(c)){var e=c.i;R();var f=Th(R(),"flows"),c=(new My).e(a.da),g=c.r,h=c.da,k=(new pq).e(h);R();var l=Th(R(),e),e=(new My).e(k.da),p=e.r,y=e.da,I=(new pq).e(y),E=H(Wg(),G()),V=Dd(b,QP().rm);V.b()||(V=V.c(),(new A).d(vh(E,Ih(new Jh,"authorizationUrl",V,w()))));V=Dd(b,QP().sq);V.b()||(V=V.c(),(new A).d(vh(E,Ih(new Jh,"tokenUrl",V,w()))));V=Dd(b,QP().sN);V.b()||(V=V.c(),(new A).d(vh(E,Ih(new Jh,"refreshUrl",V,w()))));V=B(this.Yg.g,Lc().Pm()).xb(t(new u,
function(){return function(a){return Yh(B(a.g,bf().Zj).ha(),n(K2))}}(this)));b=Dd(b,QP().sr);b.b()||(b=b.c(),vh(E,(new P2).Qq("scopes",b,this.o,V,this.Q)));iq(Cq(),this.o.Cb(E),I);T(p,lq(R(),rq(sq(),I.r,y),O().ua));b=e.r;l=[l];if(0>b.x)throw(new X).e("0");y=l.length|0;p=b.x+y|0;hC(b,p);Ca(b.z,0,b.z,y,b.x);for(var y=b.z,V=y.j.length,E=I=0,da=l.length|0,V=da<V?da:V,da=y.j.length,V=V<da?V:da;I<V;)y.j[E]=l[I],I=1+I|0,E=1+E|0;b.x=p;T(k.r,iC(jC(),e.r));T(g,lq(R(),rq(sq(),k.r,h),O().ua));g=c.r;f=[f];if(0>
g.x)throw(new X).e("0");k=f.length|0;h=g.x+k|0;hC(g,h);Ca(g.z,0,g.z,k,g.x);k=g.z;b=k.j.length;l=e=0;p=f.length|0;b=p<b?p:b;p=k.j.length;for(b=b<p?b:p;e<b;)k.j[l]=f[e],e=1+e|0,l=1+l|0;g.x=h;T(a.r,iC(jC(),c.r))}else if(w()!==c)throw(new v).d(c);};d.LU=function(a,b,c){this.Yg=a;this.o=b;this.Q=c;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=B(this.Yg.g,QP().sr).pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.E,n(Fd))));return a.b()?Gd():a.c()};
d.$classData=q({goa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Oas3OAuth2FlowEmitter",{goa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function dna(){this.Gc=this.Q=this.kf=this.Le=this.U=this.o=this.ra=null}dna.prototype=new r;dna.prototype.constructor=dna;d=dna.prototype;d.L=function(){return"OasAndConstraintEmitter"};d.H=function(){return 5};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ioa){var b=this.ra,c=a.ra;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Le,c=a.Le,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.kf,a=a.kf,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;case 3:return this.Le;case 4:return this.kf;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"allOf"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new My).e(f);this.o.Cb(this.Gc).X(t(new u,function(a,b){return function(a){a.Ob(b)}}(this,g)));R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=c.r;b=[b];if(0>e.x)throw(new X).e("0");f=b.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),c.r))};
d.yE=function(a,b,c,e,f,g){this.ra=a;this.o=b;this.U=c;this.Le=e;this.kf=f;this.Q=g;a=B(a.ca(),Pg().Th);b=z();a=a.cg(b.s);b=t(new u,function(a){return function(b){if(null!==b){var c=b.pa(),e=b.si();if(null!==c){b=a.o;var f=G(),g=a.U,E=a.Le,e=H(z(),(new J).aa(["allOf",""+e])),V=z();return L7(new M7,c,b,f,g,E.la(e,V.s),a.kf,a.Q)}}throw(new v).d(b);}}(this));c=z();this.Gc=a.ka(b,c.s);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){var a=this.Gc,b=t(new u,function(){return function(a){return a.Oa()}}(this)),c=z(),a=a.ka(b,c.s).qi(t(new u,function(){return function(a){return a.Ne}}(this)),Ms()).pc();return a.b()?Gd():a.c()};d.$classData=q({ioa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasAndConstraintEmitter",{ioa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function ckb(){this.Q=this.kf=this.Le=this.U=this.o=this.ra=null}ckb.prototype=new r;ckb.prototype.constructor=ckb;d=ckb.prototype;d.L=function(){return"OasAnyOfShapeEmitter"};
function dkb(a,b,c,e,f,g){var h=new ckb;h.ra=a;h.o=b;h.U=c;h.Le=e;h.kf=f;h.Q=g;return h}d.H=function(){return 5};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.loa){var b=this.ra,c=a.ra;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Le,c=a.Le,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.kf,a=a.kf,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;case 3:return this.Le;case 4:return this.kf;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.Q.uya(),c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new My).e(f),h=B(this.ra.ea,lo().Ee),k=z(),h=h.cg(k.s),k=t(new u,function(a){return function(b){if(null!==b){var c=b.pa(),e=b.si();if(null!==c){b=a.o;var f=G(),g=a.U,h=a.Le,e=H(z(),(new J).aa(["anyOf",""+e])),k=z();return L7(new M7,c,b,f,g,h.la(e,k.s),a.kf,a.Q)}}throw(new v).d(b);}}(this)),l=z(),h=h.ka(k,l.s);tq(Cq(),this.o.Cb(h),g);R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=b.r;c=[c];if(0>
e.x)throw(new X).e("0");f=c.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,l=f.j.length,k=h=0,p=c.length|0,l=p<l?p:l,p=f.j.length,l=l<p?l:p;h<l;)f.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=g;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.ra.ab,n(Fd))};d.$classData=q({loa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasAnyOfShapeEmitter",{loa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function S2(){hO.call(this);this.qk=this.lk=this.Qc=this.yc=this.xa=null;this.Wi=!1;this.ge=null}S2.prototype=new iO;S2.prototype.constructor=S2;d=S2.prototype;d.L=function(){return"OasArrayShapeEmitter"};d.H=function(){return 6};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.noa){var b=this.xa,c=a.xa;(null===b?null===c:b.h(c))&&this.yc===a.yc?(b=this.Qc,c=a.Qc,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.lk,c=a.lk,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.qk,c=a.qk,b=null===b?null===c:b.h(c)):b=!1;return b?this.Wi===a.Wi:!1}return!1};
d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.yc;case 2:return this.Qc;case 3:return this.lk;case 4:return this.qk;case 5:return this.Wi;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function T6a(a,b,c,e,f,g,h,k){a.xa=b;a.yc=c;a.Qc=e;a.lk=f;a.qk=g;a.Wi=h;a.ge=k;f=G();g=G();hO.prototype.LK.call(a,b,c,e,f,g,h,k);return a}
d.Ua=function(){var a=H(Wg(),hO.prototype.Ua.call(this)),b=this.xa.ea;vh(a,qla("array",this.xa));var c=Dd(b,Wh().rr);c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,"maxItems",c,w()))));c=Dd(b,Wh().Bq);c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,"minItems",c,w()))));c=Dd(b,Wh().tr);c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,"uniqueItems",c,w()))));var c=!1,e=null,f=Dd(b,Wh().sD);a:{if(x(f)){var c=!0,e=f,g=e.i;if(Yh(g.t.E,n(Ceb))){vh(a,ekb(new N7,this.xa,this.yc,this.Qc,(new A).d(Ih(new Jh,"collectionFormat",
g,w())),this.lk,this.qk,this.ge));break a}}if(c)c=e.i,vh(vh(a,ekb(new N7,this.xa,this.yc,this.Qc,w(),this.lk,this.qk,this.ge)),Ih(new Jh,"collectionFormat",c,w()));else if(w()===f)vh(a,ekb(new N7,this.xa,this.yc,this.Qc,w(),this.lk,this.qk,this.ge));else throw(new v).d(f);}b=Dd(b,ci().ld);b.b()||(b=b.c(),(new A).d(vh(a,(new O7).qA(b,this.yc,this.Qc,this.ge))));Er(a,cna(this.xa,this.yc,this.ge).Ua());return a};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.xa)),a=zI().Ga(a,yI(zI(),this.yc)),a=zI().Ga(a,yI(zI(),this.Qc)),a=zI().Ga(a,yI(zI(),this.lk)),a=zI().Ga(a,yI(zI(),this.qk)),a=zI().Ga(a,this.Wi?1231:1237);return zI().Wd(a,6)};d.M=function(){return Z(this)};d.$classData=q({noa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasArrayShapeEmitter",{noa:1,iJ:1,gN:1,f:1,A:1,w:1,q:1,n:1});function fkb(){this.Q=this.o=this.bk=null}fkb.prototype=new r;fkb.prototype.constructor=fkb;d=fkb.prototype;
d.Z0=function(a,b,c){this.bk=a;this.o=b;this.Q=c;return this};d.L=function(){return"OasCreativeWorkEmitter"};d.Ob=function(a){if(yb(this.bk).qa()){Cq();var b=B(this.bk.g,Db().wd).G,b=b.b()?yb(this.bk).c().k:b.c();kq(0,a,b,O().Wa)}else{b=a.r;a=a.da;var c=(new pq).e(a);iq(Cq(),(new M2).Z0(this.bk,this.o,this.Q).Ua(),c);T(b,lq(R(),rq(sq(),c.r,a),O().ua))}};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.ooa?this.bk===a.bk?this.o===a.o:!1:!1};
d.K=function(a){switch(a){case 0:return this.bk;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.bk.E,n(Fd))};d.$classData=q({ooa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasCreativeWorkEmitter",{ooa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function Yw(){this.Q=this.o=this.em=this.oa=null}Yw.prototype=new r;Yw.prototype.constructor=Yw;d=Yw.prototype;
d.L=function(){return"OasEntryCreativeWorkEmitter"};d.H=function(){return 3};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.toa?this.oa===a.oa&&this.em===a.em?this.o===a.o:!1:!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.em;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da);(new fkb).Z0(this.em,this.o,this.Q).Ob(b);var e=b.r,c=[c];if(0>e.x)throw(new X).e("0");var f=c.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),b.r))};function Xw(a,b,c,e,f){a.oa=b;a.em=c;a.o=e;a.Q=f;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.em.E,n(Fd))};d.$classData=q({toa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasEntryCreativeWorkEmitter",{toa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function gkb(){this.Q=this.U=this.o=this.Ca=this.oa=null}gkb.prototype=new r;gkb.prototype.constructor=gkb;d=gkb.prototype;d.L=function(){return"OasEntryShapeEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.uoa){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;if(b&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;case 3:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=this.Ca.t.t,k=this.o,l=this.U,p=G(),y=G(),I=G(),h=nx(new ox,h,k,p,l,y,I,!1,this.Q).Yw();iq(Cq(),this.o.Cb(h),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),b.r))};
function hkb(a,b,c,e,f,g){a.oa=b;a.Ca=c;a.o=e;a.U=f;a.Q=g;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({uoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasEntryShapeEmitter",{uoa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function ikb(){this.Q=this.o=this.DA=this.Gf=null}ikb.prototype=new r;ikb.prototype.constructor=ikb;d=ikb.prototype;d.L=function(){return"OasNamedSecuritySchemeEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.zoa){var b=this.Gf,c=a.Gf;(null===b?null===c:b.h(c))?(b=this.DA,c=a.DA,b=null===b?null===c:b.h(c)):b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Gf;case 1:return this.DA;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=B(this.Gf.g,vi().$).G;if(x(b))b=b.i;else{if(w()!==b)throw(new v).d(b);var b=this.Q.Si(),c=Bc().nh,e=this.Gf.k,f=w(),g="Cannot declare security scheme without name "+this.Gf,h=Zb(this.Gf.E,n(Fd)),k=Yb(this.Gf);b.Hc(c.k,e,f,g,h,xc().tb,k);b="default-"}R();e=Th(R(),b);c=yb(this.Gf).qa()?function(a){return function(b){a.eK(b)}}(this):function(a){return function(b){a.dK(b)}}(this);b=(new My).e(a.da);c(b);c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,
0,c.z,g,c.x);for(var g=c.z,l=g.j.length,k=h=0,p=e.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=e[h],h=1+h|0,k=1+k|0;c.x=f;T(a.r,iC(jC(),b.r))};d.eK=function(a){var b=yb(this.Gf);b.b()||(b=b.c(),CN(new DN,b,B(this.Gf.g,Db().wd).G,G(),this.Q).Ob(a))};d.NU=function(a,b,c,e){this.Gf=a;this.DA=b;this.o=c;this.Q=e;return this};d.dK=function(a){var b=a.r;a=a.da;var c=(new pq).e(a);iq(Cq(),this.o.Cb((new Q2).NU(this.Gf,this.DA,this.o,this.Q).Ua()),c);T(b,lq(R(),rq(sq(),c.r,a),O().ua))};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Gf.E,n(Fd))};d.$classData=q({zoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasNamedSecuritySchemeEmitter",{zoa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function jkb(){this.Q=this.Le=this.U=this.o=this.ra=null}jkb.prototype=new r;jkb.prototype.constructor=jkb;d=jkb.prototype;d.L=function(){return"OasNamedTypeEmitter"};d.tU=function(a,b,c,e,f){this.ra=a;this.o=b;this.U=c;this.Le=e;this.Q=f;return this};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Aoa){var b=this.ra,c=a.ra;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Le,a=a.Le,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;case 3:return this.Le;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=B(this.ra.ca(),Pg().$).G,c=b.b()?"schema":b.c();R();var e=Th(R(),c),b=(new My).e(a.da),f=this.ra,g=this.o,h=this.U,k=this.Le,l=z(),c=k.hg(c,l.s),k=G(),l=G();L7(new M7,f,g,k,h,c,l,this.Q).Ob(b);f=b.r;e=[e];if(0>f.x)throw(new X).e("0");h=e.length|0;g=f.x+h|0;hC(f,g);Ca(f.z,0,f.z,h,f.x);for(var h=f.z,l=h.j.length,k=c=0,p=e.length|0,l=p<l?p:l,p=h.j.length,l=l<p?l:p;c<l;)h.j[k]=e[c],c=1+c|0,k=1+k|0;f.x=g;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.ra.ha(),n(Fd))};d.$classData=q({Aoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasNamedTypeEmitter",{Aoa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function kkb(){this.o=this.AH=null}kkb.prototype=new r;kkb.prototype.constructor=kkb;d=kkb.prototype;d.L=function(){return"OasNilShapeEmitter"};d.H=function(){return 2};function V6a(a,b){var c=new kkb;c.AH=a;c.o=b;return c}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Boa){var b=this.AH,c=a.AH;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.AH;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Va=function(a){R();var b=Th(R(),"type");R();var c=Th(R(),"null");qq(a,b,c)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.AH.ab,n(Fd))};
d.$classData=q({Boa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasNilShapeEmitter",{Boa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function lkb(){hO.call(this);this.qk=this.lk=this.Qc=this.yc=this.Dm=null;this.Wi=!1;this.ge=null}lkb.prototype=new iO;lkb.prototype.constructor=lkb;d=lkb.prototype;d.L=function(){return"OasNodeShapeEmitter"};d.H=function(){return 6};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Coa){var b=this.Dm,c=a.Dm;(null===b?null===c:b.h(c))&&this.yc===a.yc?(b=this.Qc,c=a.Qc,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.lk,c=a.lk,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.qk,c=a.qk,b=null===b?null===c:b.h(c)):b=!1;return b?this.Wi===a.Wi:!1}return!1};
d.K=function(a){switch(a){case 0:return this.Dm;case 1:return this.yc;case 2:return this.Qc;case 3:return this.lk;case 4:return this.qk;case 5:return this.Wi;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=this.ge.Pg(),b=Sp().bs,c=a===b,a=H(Wg(),hO.prototype.Ua.call(this)),b=this.Dm.ea;vh(a,qla("object",this.Dm));var e=Dd(b,ci().Dw);e.b()||(e=e.c(),(new A).d(vh(a,Ih(new Jh,"minProperties",e,w()))));e=Dd(b,ci().Cw);e.b()||(e=e.c(),(new A).d(vh(a,Ih(new Jh,"maxProperties",e,w()))));e=Dd(b,ci().Pk);if(e.b())var f=!0;else f=e.c(),f=Yh(f.t.E,n(p3))||Cj(f.t.t);e=f?e:w();x(e)?vh(a,Ih(new Jh,"additionalProperties",E3a(e.i),w())):(e=Dd(b,ci().HF),e.b()||(e=e.c(),(new A).d(vh(a,hkb(new gkb,
"additionalProperties",e,this.yc,this.Qc,this.ge)))));c?(c=Dd(b,ci().dt),c=c.b()?Dd(b,ci().VI):c,c.b()||(c=c.c(),(new A).d(vh(a,bkb(c,b,this.yc))))):(c=Dd(b,ci().dt),c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,"discriminator",c,w())))));c=Dd(b,ci().rz);c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,Hv((new Cf).e("discriminatorValue")),c,w()))));c=Dd(b,ci().Rg);c.b()||(c=c.c(),(new A).d(vh(a,mkb(c,this.Qc))));c=Dd(b,ci().Rg);c.b()||(c=c.c(),(new A).d(vh(a,nkb(c,this.yc,this.Qc,this.lk,this.qk,this.ge))));var c=
yia(),e=B(this.Dm.ea,ci().Rg),f=t(new u,function(){return function(a){return(new P).N(a.k,a)}}(this)),g=z(),c=pc(c,e.ka(f,g.s)),e=Dd(b,ci().wD);e.b()||(e=e.c(),(new A).d(vh(a,okb(e,this.yc,c))));b=Dd(b,ci().ld);b.b()||(b=b.c(),(new A).d(vh(a,(new O7).qA(b,this.yc,this.Qc,this.ge))));return a};function R6a(a,b,c,e,f,g,h){var k=new lkb;k.Dm=a;k.yc=b;k.Qc=c;k.lk=e;k.qk=f;k.Wi=g;k.ge=h;e=G();f=G();hO.prototype.LK.call(k,a,b,c,e,f,g,h);return k}
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.Dm)),a=zI().Ga(a,yI(zI(),this.yc)),a=zI().Ga(a,yI(zI(),this.Qc)),a=zI().Ga(a,yI(zI(),this.lk)),a=zI().Ga(a,yI(zI(),this.qk)),a=zI().Ga(a,this.Wi?1231:1237);return zI().Wd(a,6)};d.M=function(){return Z(this)};d.$classData=q({Coa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasNodeShapeEmitter",{Coa:1,iJ:1,gN:1,f:1,A:1,w:1,q:1,n:1});function gna(){this.Tw=this.kf=this.Le=this.U=this.o=this.ra=null}gna.prototype=new r;
gna.prototype.constructor=gna;d=gna.prototype;d.L=function(){return"OasNotConstraintEmitter"};d.H=function(){return 5};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Doa){var b=this.ra,c=a.ra;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Le,c=a.Le,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.kf,a=a.kf,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;case 3:return this.Le;case 4:return this.kf;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"not"),c=(new My).e(a.da);this.Tw.Ob(c);var e=c.r,b=[b];if(0>e.x)throw(new X).e("0");var f=b.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),c.r))};d.yE=function(a,b,c,e,f,g){this.ra=a;this.o=b;this.U=c;this.Le=e;this.kf=f;a=B(a.ca(),Pg().ki);var h=G(),k=z();this.Tw=L7(new M7,a,b,h,c,e.hg("not",k.s),f,g);return this};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Oa=function(){return this.Tw.Oa()};d.$classData=q({Doa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasNotConstraintEmitter",{Doa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function P2(){this.Q=this.Ds=this.o=this.Ca=this.oa=null}P2.prototype=new r;P2.prototype.constructor=P2;d=P2.prototype;d.L=function(){return"OasOAuth2ScopeEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Foa){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;if(b&&this.o===a.o)return b=this.Ds,a=a.Ds,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;case 3:return this.Ds;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=new N6a;b.Ca=this.Ca;var b=b.Ua(),c=m7a(this.Ds,this.o,this.Q).Ua(),e=z(),c=b.la(c,e.s);R();var b=this.oa,e=Th(R(),b),b=(new My).e(a.da),f=b.r,g=b.da,h=(new pq).e(g);iq(Cq(),this.o.Cb(c),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);for(var g=c.z,k=g.j.length,l=h=0,p=e.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=e[h],h=1+h|0,l=1+l|0;c.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Qq=function(a,b,c,e,f){this.oa=a;this.Ca=b;this.o=c;this.Ds=e;this.Q=f;return this};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({Foa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasOAuth2ScopeEmitter",{Foa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function ena(){this.Gc=this.Q=this.kf=this.Le=this.U=this.o=this.ra=null}ena.prototype=new r;ena.prototype.constructor=ena;d=ena.prototype;d.L=function(){return"OasOrConstraintEmitter"};d.H=function(){return 5};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ioa){var b=this.ra,c=a.ra;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Le,c=a.Le,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.kf,a=a.kf,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;case 3:return this.Le;case 4:return this.kf;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"anyOf"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new My).e(f);this.o.Cb(this.Gc).X(t(new u,function(a,b){return function(a){a.Ob(b)}}(this,g)));R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=c.r;b=[b];if(0>e.x)throw(new X).e("0");f=b.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),c.r))};
d.yE=function(a,b,c,e,f,g){this.ra=a;this.o=b;this.U=c;this.Le=e;this.kf=f;this.Q=g;a=B(a.ca(),Pg().Vh);b=z();a=a.cg(b.s);b=t(new u,function(a){return function(b){if(null!==b){var c=b.pa(),e=b.si();if(null!==c){b=a.o;var f=G(),g=a.U,E=a.Le,e=H(z(),(new J).aa(["anyOf",""+e])),V=z();return L7(new M7,c,b,f,g,E.la(e,V.s),a.kf,a.Q)}}throw(new v).d(b);}}(this));c=z();this.Gc=a.ka(b,c.s);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){var a=this.Gc,b=t(new u,function(){return function(a){return a.Oa()}}(this)),c=z(),a=a.ka(b,c.s).qi(t(new u,function(){return function(a){return a.Ne}}(this)),Ms()).pc();return a.b()?Gd():a.c()};d.$classData=q({Ioa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasOrConstraintEmitter",{Ioa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function pkb(){this.Q=this.kf=this.Le=this.U=this.o=this.Ca=null}pkb.prototype=new r;pkb.prototype.constructor=pkb;d=pkb.prototype;d.L=function(){return"OasPropertiesShapeEmitter"};
d.H=function(){return 5};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Joa){var b=this.Ca,c=a.Ca;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Le,c=a.Le,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.kf,a=a.kf,null===b?null===a:b.h(a)}return!1};function nkb(a,b,c,e,f,g){var h=new pkb;h.Ca=a;h.o=b;h.U=c;h.Le=e;h.kf=f;h.Q=g;return h}
d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.o;case 2:return this.U;case 3:return this.Le;case 4:return this.kf;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Va=function(a){var b=this.Ca.t.t.Tb.jn(t(new u,function(){return function(a){return B(a.ea,rj().rv).G.qa()}}(this))),c=b.Ba();G().h(c)||qkb(this,c,"properties",a);b=b.pa();G().h(b)||qkb(this,b,"patternProperties",a)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};
function qkb(a,b,c,e){R();var f=Th(R(),c),g=(new My).e(e.da),h=g.r,k=g.da,l=(new pq).e(k);c=t(new u,function(a,b){return function(c){return rkb(new skb,c,a.o,a.U,b,a.Le,a.kf,a.Q)}}(a,c));var p=z();b=b.ka(c,p.s);iq(Cq(),a.o.Cb(b),l);T(h,lq(R(),rq(sq(),l.r,k),O().ua));a=g.r;f=[f];if(0>a.x)throw(new X).e("0");k=f.length|0;h=a.x+k|0;hC(a,h);Ca(a.z,0,a.z,k,a.x);k=a.z;c=k.j.length;b=l=0;p=f.length|0;c=p<c?p:c;p=k.j.length;for(c=c<p?c:p;l<c;)k.j[b]=f[l],l=1+l|0,b=1+b|0;a.x=h;T(e.r,iC(jC(),g.r))}
d.$classData=q({Joa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasPropertiesShapeEmitter",{Joa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function tkb(){this.bg=this.o=this.Ii=null}tkb.prototype=new r;tkb.prototype.constructor=tkb;d=tkb.prototype;d.L=function(){return"OasPropertyDependenciesEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Koa){var b=this.Ii,c=a.Ii;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.bg,a=a.bg,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.Ii;case 1:return this.o;case 2:return this.bg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.bg,c=B(this.Ii.g,jo().uJ).G,b=b.Ta(c.b()?null:c.c());if(!b.b()){b=b.c();R();var b=B(b.ea,Pg().$).G,b=b.b()?null:b.c(),c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new My).e(f),h=Dd(this.Ii.g,jo().vJ);if(h.b())h=w();else var h=Iw(h.c().t.t),k=t(new u,function(a){return function(b){var c=a.bg.Ta(ja(b.t));c.b()?b=w():(c=B(c.c().ea,Pg().$).G,b=(new A).d(Nh(new Oh,c.b()?null:c.c(),b.E)));return b.wa()}}(this)),l=z(),h=(new A).d(h.md(k,l.s));if(!h.b()){var h=h.c(),k=Cq(),l=
this.o,p=t(new u,function(){return function(a){return IT(new JT,a,O().Wa)}}(this)),y=z();tq(k,l.Cb(h.ka(p,y.s)),g)}R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=b.r;c=[c];if(0>e.x)throw(new X).e("0");f=c.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);f=e.z;l=f.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=f.j.length;for(l=l<p?l:p;h<l;)f.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=g;T(a.r,iC(jC(),b.r))}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.Ii.E,n(Fd))};d.$classData=q({Koa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasPropertyDependenciesEmitter",{Koa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function ukb(){this.Q=this.kf=this.o=this.Nr=null}ukb.prototype=new r;ukb.prototype.constructor=ukb;d=ukb.prototype;d.L=function(){return"OasRecursiveShapeEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Moa&&this.Nr===a.Nr&&this.o===a.o){var b=this.kf;a=a.kf;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Nr;case 1:return this.o;case 2:return this.kf;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=B(this.Nr.ea,ej().it).G;if(x(b)){if(b=vkb(this,b.i),b.b())if(b=this.Nr.dn,x(b))b=vkb(this,b.i.k),b.b()&&(b=this.Nr.dn,b.b()?b=w():(b=B(b.c().ca(),Pg().$).G,b.b()?b=w():(b=b.c(),b=(new A).d("#"+this.Q.Qea()+b))));else{if(w()!==b)throw(new v).d(b);b=w()}}else b=w();if(!b.b()){var c=b.c();R();b=Th(R(),"$ref");R();c=Th(R(),c);qq(a,b,c)}};
function vkb(a,b){var c=H(z(),(new J).aa([Dc(94)])),e=!1,f=null;b=a.kf.Js().Ib(t(new u,function(a,b){return function(a){a=a.pa();return null===a?null===b:pa(a,b)}}(a,b)));return x(b)&&(e=!0,f=b,b=f.i,null!==b&&"#"===b.Ba()&&!Xma(a.Q))?w():e&&(e=f.i,null!==e&&(e=e.Ba(),!c.Ng(t(new u,function(a,b){return function(a){a=null===a?0:a.t;var c=(new ph).e(b);return Vs(c,Dc(a))}}(a,e)))))?(new A).d(e):w()}function Y6a(a,b,c,e){var f=new ukb;f.Nr=a;f.o=b;f.kf=c;f.Q=e;return f}d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Oa=function(){return Gd()};d.$classData=q({Moa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasRecursiveShapeEmitter",{Moa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function wkb(){this.U=this.Ca=null}wkb.prototype=new r;wkb.prototype.constructor=wkb;d=wkb.prototype;d.L=function(){return"OasRequiredPropertiesShapeEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Noa){var b=this.Ca,c=a.Ca;if(null===b?null===c:b.h(c))return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.Ca.t.t.Tb.xb(t(new u,function(){return function(a){if(dm(a)){var b=B(a.ea,rj().rv);if(eM(b))return a=B(a.ea,rj().Uh),0<GHa(a)}return!1}}(this)));if(b.Fa()){R();var c=Th(R(),"required"),e=(new My).e(a.da),f=e.r,g=e.da,h=(new My).e(g);b.X(t(new u,function(a,b){return function(a){if(dm(a))a=B(a.ea,Pg().$).G,d7(new c7,a.b()?null:a.c(),(M(),(new N).a()),O().Wa).Ob(b);else throw(new v).d(a);}}(this,h)));R();FC();b=Py(vq(),g);h=lq(0,(new GC).mc(b,h.r),O().Nc);T(f,h);f=e.r;c=[c];
if(0>f.x)throw(new X).e("0");b=c.length|0;h=f.x+b|0;hC(f,h);Ca(f.z,0,f.z,b,f.x);for(var b=f.z,k=b.j.length,l=g=0,p=c.length|0,k=p<k?p:k,p=b.j.length,k=k<p?k:p;g<k;)b.j[l]=c[g],g=1+g|0,l=1+l|0;f.x=h;T(a.r,iC(jC(),e.r))}};function mkb(a,b){var c=new wkb;c.Ca=a;c.U=b;return c}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};
d.$classData=q({Noa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasRequiredPropertiesShapeEmitter",{Noa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Y5(){this.Q=this.U=this.o=this.Ca=null}Y5.prototype=new r;Y5.prototype.constructor=Y5;d=Y5.prototype;d.L=function(){return"OasSchemaEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Poa){var b=this.Ca,c=a.Ca;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.Ca.t.t;R();var c=Th(R(),"schema"),e=(new My).e(a.da),f=this.o,g=this.U,h=G(),k=G(),l=G();L7(new M7,b,f,h,g,k,l,this.Q).Ob(e);b=e.r;c=[c];if(0>b.x)throw(new X).e("0");g=c.length|0;f=b.x+g|0;hC(b,f);Ca(b.z,0,b.z,g,b.x);for(var g=b.z,l=g.j.length,k=h=0,p=c.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;b.x=f;T(a.r,iC(jC(),e.r))};d.qA=function(a,b,c,e){this.Ca=a;this.o=b;this.U=c;this.Q=e;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({Poa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasSchemaEmitter",{Poa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Kx(){this.yb=this.m=this.qb=this.Ea=null}Kx.prototype=new r;Kx.prototype.constructor=Kx;d=Kx.prototype;d.L=function(){return"OasSecuritySchemeParser"};d.H=function(){return 2};d.YO=function(a,b,c){this.Ea=a;this.qb=b;this.m=c;return this};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Toa&&Yj(this.Ea,a.Ea)){var b=this.qb;a=a.qb;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ea;case 1:return this.qb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Yj=function(){null===this.yb&&this.yD();return this.yb};d.yD=function(){null===this.yb&&(this.yb=yO())};d.y=function(){return Y(this)};
d.LH=function(){var a=this.m.Oo(this.Ea);if(Ep(a)){var a=a.i,b=this.Ea,c=this.qb,e=WN(this.m.Mh,a,Or());if(e.b())e=w();else{var e=e.c(),f=Ke(M(),b),e=gL(e,a,f);c.R(e);e=(new A).d(e)}if(e.b())if(e=R3(this.m,a,this.m),x(e))a=(new Kx).YO(e.i,c,this.m).LH();else{if(w()!==e)throw(new v).d(e);var c=this.m,e=Bc().iu,f="Cannot find link reference "+a,g=Ke(M(),b);sz(c,e,"",f,g);a=(new xkb).Rq(a,b)}else a=e.c();return a}if(Hp(a)){b=a.i;a=this.qb;M();c=(new N).a();e=(new Q).a();a=a.R((new NB).P(e,c));c=Pc();
b=L(b,c,this.m);c=(new K).Y(b);e=vi().Nj;Bh(c,"type",Ch(Dh(this,e,this.m),a));c=!1;e=null;f=B(a.g,vi().Nj).G;a:{if(x(f)){var c=!0,e=f,h=e.i;if(0<=(h.length|0)&&"x-"===h.substring(0,2)){var c=this.m,e=rh().TM,f=a.k,g=(new A).d(Gc(vi().Nj.t)),h="RAML 1.0 extension security scheme type '"+h+"' detected in OAS 2.0 spec",k=Zb(B(a.g,vi().Nj).E,n(Fd)),l=(new A).d(this.m.Xg);c.Hc(e.k,f,g,h,k,xc().Eg,l);break a}}c&&(c=e.i,"OAuth 1.0"===c||"OAuth 2.0"===c||"Basic Authentication"===c||"Digest Authentication"===
c||"Pass Through"===c)&&(c=this.m,e=rh().TM,f=a.k,g=(new A).d(Gc(vi().Nj.t)),h=Zb(B(a.g,vi().Nj).E,n(Fd)),k=(new A).d(this.m.Xg),c.Hc(e.k,f,g,"RAML 1.0 security scheme type detected in OAS 2.0 spec",h,xc().Eg,k))}c=yc((new K).Y(b),"type");c.b()||(c=c.c().i.pb().nb,e=O().yd,c===e&&B(a.g,vi().Nj).G.Ja("")&&(c=this.m,e=rh().bZ,f=a.k,g=(new A).d(Gc(vi().Nj.t)),tf(),h=b.ga,h=(new A).d((new uf).Ui(zf(0,Af(Bf(),h.vf,h.Ef,h.ag,h.fg)))),k=(new A).d(this.m.Xg),c.Hc(e.k,f,g,"Security Scheme must have a mandatory value from 'oauth2', 'basic' or 'apiKey'",
h,xc().tb,k)));ykb(a);c=(new K).Y(b);e=Hv((new Cf).e("displayName"));f=vi().gd;Bh(c,e,Ch(Dh(this,f,this.m),a));c=(new K).Y(b);e=vi().fb;Bh(c,"description",Ch(Dh(this,e,this.m),a));J7a(new f3,Hv((new Cf).e("describedBy")),b,a,Ix(Jx(),this.m)).Pc();c=this.m.Oh.YFa(b,a).wc();c.b()||(c=c.c(),e=vi().li,f=Ke(M(),b),Fh(a,e,c,f));jx(new kx,a,b,G(),this.m).Pc();return a}throw(new v).d(a);};d.M=function(){return Z(this)};
d.$classData=q({Toa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasSecuritySchemeParser",{Toa:1,f:1,PWa:1,ig:1,A:1,w:1,q:1,n:1});function bgb(){this.Q=this.o=this.$v=null}bgb.prototype=new r;bgb.prototype.constructor=bgb;d=bgb.prototype;d.L=function(){return"OasSecuritySchemesEmitters"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Uoa){var b=this.$v,c=a.$v;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.$v;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.$v,c=t(new u,function(){return function(a){xoa||(xoa=(new gy).a());var b=B(a.g,vi().Nj).G,b=roa(b.b()?null:b.c());return(new P).N(b,a)}}(this)),e=z(),b=b.ka(c,e.s).$g(fc().ci),b=ska(b,t(new u,function(){return function(a){return a.pa().iP}}(this)));if(null===b)throw(new v).d(b);var e=b.pa(),b=b.Ba(),c=this.Q.Pg(),f=Sp().bs,c=c===f;if(Tc(e)){var f=c?(R(),Th(R(),"securitySchemes")):(R(),Th(R(),"securityDefinitions")),c=(new My).e(a.da),g=c.r,h=c.da,k=(new pq).e(h),l=Cq(),
p=this.o,y=t(new u,function(a){return function(b){return(new ikb).NU(b.Ba(),b.pa(),a.o,a.Q)}}(this)),I=Ce().s;iq(l,p.Cb(De(e,y,I).ce()),k);T(g,lq(R(),rq(sq(),k.r,h),O().ua));e=c.r;f=[f];if(0>e.x)throw(new X).e("0");h=f.length|0;g=e.x+h|0;hC(e,g);Ca(e.z,0,e.z,h,e.x);h=e.z;p=h.j.length;l=k=0;y=f.length|0;p=y<p?y:p;y=h.j.length;for(p=p<y?p:y;k<p;)h.j[l]=f[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),c.r))}if(Tc(b)){R();c=Hv((new Cf).e("securitySchemes"));e=Th(R(),c);c=(new My).e(a.da);f=c.r;g=c.da;h=(new pq).e(g);
k=Cq();l=this.o;p=t(new u,function(a){return function(b){return(new ikb).NU(b.Ba(),b.pa(),a.o,a.Q)}}(this));y=Ce().s;iq(k,l.Cb(De(b,p,y).ce()),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));b=c.r;e=[e];if(0>b.x)throw(new X).e("0");g=e.length|0;f=b.x+g|0;hC(b,f);Ca(b.z,0,b.z,g,b.x);g=b.z;l=g.j.length;k=h=0;p=e.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=e[h],h=1+h|0,k=1+k|0;b.x=f;T(a.r,iC(jC(),c.r))}};d.y=function(){return Y(this)};d.UU=function(a,b,c){this.$v=a;this.o=b;this.Q=c;return this};
d.M=function(){return Z(this)};d.Oa=function(){var a=this.$v.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.E,n(Fd))));return a.b()?Gd():a.c()};d.$classData=q({Uoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasSecuritySchemesEmitters",{Uoa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function zkb(){this.o=this.Yg=this.WP=null}zkb.prototype=new r;zkb.prototype.constructor=zkb;d=zkb.prototype;d.L=function(){return"OasSettingsTypeEmitter"};
function F6a(a,b,c){var e=new zkb;e.WP=a;e.Yg=b;e.o=c;return e}d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Woa){var b=this.WP,c=a.WP;(null===b?null===c:b.h(c))?(b=this.Yg,c=a.Yg,b=null===b?null===c:b.h(c)):b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.WP;case 1:return this.Yg;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Hv((new Cf).e("settings")),c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f);iq(Cq(),this.o.Cb(this.WP),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,h=g.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=g.j.length,h=h<p?h:p;k<h;)g.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){var a=this.WP.pc();a.b()?a=w():(a=a.c(),a=(new A).d(a.Oa()));return a.b()?Gd():a.c()};d.$classData=q({Woa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasSettingsTypeEmitter",{Woa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Akb(){this.jW=this.o=this.Ca=null}Akb.prototype=new r;Akb.prototype.constructor=Akb;d=Akb.prototype;d.L=function(){return"OasShapeDependenciesEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Xoa){var b=this.Ca,c=a.Ca;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.jW,a=a.jW,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.o;case 2:return this.jW;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"dependencies"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f),h=this.Ca.t.t.Tb,k=t(new u,function(a){return function(b){var c=a.o,e=a.jW,f=new tkb;f.Ii=b;f.o=c;f.bg=e;return f}}(this)),l=z(),h=h.ka(k,l.s);iq(Cq(),this.o.Cb(h),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,k=h=0,p=b.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=b[h],h=1+h|0,k=1+k|
0;e.x=f;T(a.r,iC(jC(),c.r))};function okb(a,b,c){var e=new Akb;e.Ca=a;e.o=b;e.jW=c;return e}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({Xoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasShapeDependenciesEmitter",{Xoa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function O7(){this.Q=this.U=this.o=this.Ca=null}O7.prototype=new r;O7.prototype.constructor=O7;d=O7.prototype;d.L=function(){return"OasShapeInheritsEmitter"};
d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Yoa){var b=this.Ca,c=a.Ca;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.Ca.t.t.Tb,c=t(new u,function(){return function(a){return a}}(this)),e=z(),f=b.ka(c,e.s);R();var e=Th(R(),"x-amf-merge"),b=(new My).e(a.da),c=b.r,g=b.da,h=(new My).e(g);f.X(t(new u,function(a,b){return function(c){if(Yh(c.ha(),n(Zt))){var e=a.Q,f=Hy();c=B(c.ca(),Pg().$).G;Dv(e,b,Foa(f,c.b()?null:c.c()))}else if(yb(c).qa())e=a.Q,f=Hy(),c=B(c.ca(),Pg().$).G,Dv(e,b,Foa(f,c.b()?null:c.c()));else{var e=a.o,f=a.U,g=G(),h=G(),k=G();L7(new M7,c,e,g,f,h,k,a.Q).Ob(b)}}}(this,h)));
R();FC();f=Py(vq(),g);h=lq(0,(new GC).mc(f,h.r),O().Nc);T(c,h);c=b.r;e=[e];if(0>c.x)throw(new X).e("0");f=e.length|0;h=c.x+f|0;hC(c,h);Ca(c.z,0,c.z,f,c.x);for(var f=c.z,k=f.j.length,l=g=0,p=e.length|0,k=p<k?p:k,p=f.j.length,k=k<p?k:p;g<k;)f.j[l]=e[g],g=1+g|0,l=1+l|0;c.x=h;T(a.r,iC(jC(),b.r))};d.qA=function(a,b,c,e){this.Ca=a;this.o=b;this.U=c;this.Q=e;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};
d.$classData=q({Yoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasShapeInheritsEmitter",{Yoa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function P7(){this.OBa=this.Q=this.kf=this.Le=this.c_=this.U=this.o=this.Iq=null}P7.prototype=new r;P7.prototype.constructor=P7;d=P7.prototype;d.L=function(){return"OasTupleItemsShapeEmitter"};d.H=function(){return 6};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.$oa){var b=this.Iq,c=a.Iq;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.c_,c=a.c_,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Le,c=a.Le,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.kf,a=a.kf,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Iq;case 1:return this.o;case 2:return this.U;case 3:return this.c_;case 4:return this.Le;case 5:return this.kf;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function Bkb(a,b,c,e,f,g,h,k){a.Iq=b;a.o=c;a.U=e;a.c_=f;a.Le=g;a.kf=h;a.Q=k;b=B(b.ea,Un().Np);c=z();b=b.cg(c.s);c=t(new u,function(a){return function(b){if(null!==b){var c=b.pa(),e=b.si();b=a.o;var f=G(),g=a.U,h=a.Le,e=H(z(),(new J).aa(["items",""+e])),k=z();return nx(new ox,c,b,f,g,h.la(e,k.s),a.kf,!1,a.Q)}throw(new v).d(b);}}(a));e=z();a.OBa=b.ka(c,e.s);return a}
d.Va=function(a){if(Wa().Ia(uj(this.Iq.ea,Un().Np)).qa()){R();var b=Th(R(),"items"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new My).e(f);this.OBa.X(t(new u,function(a,b){return function(c){c=c.Ua();var e=new gfb,f=z();c=c.$b(e,f.s);var e=b.r,f=b.da,g=(new pq).e(f);c.X(t(new u,function(a,b){return function(a){a.Va(b)}}(a,g)));T(e,lq(R(),rq(sq(),g.r,f),O().ua))}}(this,g)));R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=c.r;b=[b];if(0>e.x)throw(new X).e("0");f=b.length|0;g=e.x+f|0;hC(e,
g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),c.r))}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=Wa().Ia(uj(this.Iq.ea,Wh().wf));return x(a)?(a=a.i,jq(Cq(),a.E,n(Fd))):Gd()};d.$classData=q({$oa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTupleItemsShapeEmitter",{$oa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function Ckb(){hO.call(this);this.qk=this.lk=this.Qc=this.yc=this.xa=null;this.Wi=!1;this.ge=null}Ckb.prototype=new iO;Ckb.prototype.constructor=Ckb;d=Ckb.prototype;d.L=function(){return"OasTupleShapeEmitter"};d.H=function(){return 6};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.apa){var b=this.xa,c=a.xa;(null===b?null===c:b.h(c))&&this.yc===a.yc?(b=this.Qc,c=a.Qc,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.lk,c=a.lk,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.qk,c=a.qk,b=null===b?null===c:b.h(c)):b=!1;return b?this.Wi===a.Wi:!1}return!1};
d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.yc;case 2:return this.Qc;case 3:return this.lk;case 4:return this.qk;case 5:return this.Wi;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=H(Wg(),hO.prototype.Ua.call(this)),b=this.xa.ea;vh(a,qla("array",this.xa));var c=Dd(b,Wh().rr);c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,"maxItems",c,w()))));c=Dd(b,Wh().Bq);c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,"minItems",c,w()))));c=Dd(b,Wh().tr);c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,"uniqueItems",c,w()))));var c=!1,e=null,f=Dd(b,Wh().sD);a:{if(x(f)){var c=!0,e=f,g=e.i;if(Yh(g.t.E,n(Ceb))){vh(a,Bkb(new P7,this.xa,this.yc,this.Qc,(new A).d(Ih(new Jh,"collectionFormat",
g,w())),this.lk,this.qk,this.ge));break a}}if(c)c=e.i,vh(vh(a,Bkb(new P7,this.xa,this.yc,this.Qc,w(),this.lk,this.qk,this.ge)),Ih(new Jh,"collectionFormat",c,w()));else if(w()===f)vh(a,Bkb(new P7,this.xa,this.yc,this.Qc,w(),this.lk,this.qk,this.ge));else throw(new v).d(f);}b=Dd(b,ci().ld);b.b()||(b=b.c(),(new A).d(vh(a,(new O7).qA(b,this.yc,this.Qc,this.ge))));Er(a,cna(this.xa,this.yc,this.ge).Ua());return a};
function U6a(a,b,c,e,f,g,h){var k=new Ckb;k.xa=a;k.yc=b;k.Qc=c;k.lk=e;k.qk=f;k.Wi=g;k.ge=h;e=G();f=G();hO.prototype.LK.call(k,a,b,c,e,f,g,h);return k}d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.xa)),a=zI().Ga(a,yI(zI(),this.yc)),a=zI().Ga(a,yI(zI(),this.Qc)),a=zI().Ga(a,yI(zI(),this.lk)),a=zI().Ga(a,yI(zI(),this.qk)),a=zI().Ga(a,this.Wi?1231:1237);return zI().Wd(a,6)};d.M=function(){return Z(this)};
d.$classData=q({apa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTupleShapeEmitter",{apa:1,iJ:1,gN:1,f:1,A:1,w:1,q:1,n:1});function Dkb(){jO.call(this);this.NV=this.eb=this.xa=null}Dkb.prototype=new kO;Dkb.prototype.constructor=Dkb;d=Dkb.prototype;d.L=function(){return"AnyTypeShapeParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.fpa&&a.l===this.l){var b=this.xa,c=a.xa;return(null===b?null===c:b.h(c))?Yj(this.eb,a.eb):!1}return!1};
d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.eb;default:throw(new X).e(""+a);}};d.PV=function(){return this.NV};d.u=function(){return U(W(),this)};function Ekb(a,b,c){var e=new Dkb;e.xa=b;e.eb=c;jO.prototype.uy.call(e,a);e.NV=(new lO).wA(!0,!0,!1);return e}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({fpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$AnyTypeShapeParser",{fpa:1,jJ:1,kJ:1,f:1,A:1,w:1,q:1,n:1});
function Fkb(){jO.call(this);this.Lg=this.eb=this.xa=null}Fkb.prototype=new kO;Fkb.prototype.constructor=Fkb;d=Fkb.prototype;d.L=function(){return"ArrayShapeParser"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.gpa&&a.l===this.l){var b=this.xa,c=a.xa;if((null===b?null===c:b.h(c))&&Yj(this.eb,a.eb))return b=this.Lg,a=a.Lg,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.eb;case 2:return this.Lg;default:throw(new X).e(""+a);}};
d.Hi=function(){Gkb(this.l,this.xa,this.eb,this.Lg,this.l.va.Mh.uu);jO.prototype.Hi.call(this);var a=(new K).Y(this.eb),b=this.l,c=Wh().Bq;Bh(a,"minItems",Ch(Dh(b,c,this.l.va),this.xa));a=(new K).Y(this.eb);b=this.l;c=Wh().rr;Bh(a,"maxItems",Ch(Dh(b,c,this.l.va),this.xa));a=(new K).Y(this.eb);b=this.l;c=Wh().tr;Bh(a,"uniqueItems",Ch(Dh(b,c,this.l.va),this.xa));a=(new K).Y(this.eb);b=this.l;c=Wh().sD;Bh(a,"collectionFormat",Ch(Dh(b,c,this.l.va),this.xa));a=yc((new K).Y(this.eb),"items");a.b()?a=w():
(a=a.c().i,a=Hc(Ic(a),Pc()));a.b()||(a=a.c(),a=(new K).Y(a),b=this.l,c=Wh().sD,Bh(a,"collectionFormat",$N(Ch(Dh(b,c,this.l.va),this.xa),(new Q5).a())));a=yc((new K).Y(this.eb),"items");if(a.b())a=w();else if(a=a.c(),a=qV(sV(),a,t(new u,function(a){return function(b){b.Qb(a.xa.k+"/items",b.Ub())}}(this)),this.l.Ok,this.l.va).wc(),a.b())a=w();else{a=a.c();if(Vh(a))a=Vy(Wy(this.xa,a));else if(Oi(a))a=Vy(Wy(this.xa,a));else{if(null===a)throw(new v).d(a);a=Wy(this.xa,a)}a=(new A).d(a)}if(x(a)&&(b=a.i,
null!==b))return Te(b,this.xa.k);if(w()===a)return a=this.xa,M(),b=(new N).a(),c=(new Q).a(),Wy(a,(new oi).P(c,b));throw(new v).d(a);};d.u=function(){return U(W(),this)};function d7a(a,b,c,e){var f=new Fkb;f.xa=b;f.eb=c;f.Lg=e;jO.prototype.uy.call(f,a);return f}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({gpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$ArrayShapeParser",{gpa:1,jJ:1,kJ:1,f:1,A:1,w:1,q:1,n:1});
function Hkb(){jO.call(this);this.De=this.eb=this.xa=null}Hkb.prototype=new kO;Hkb.prototype.constructor=Hkb;d=Hkb.prototype;d.L=function(){return"NodeShapeParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.lpa&&a.l===this.l){var b=this.xa,c=a.xa;return(null===b?null===c:b.h(c))?Yj(this.eb,a.eb):!1}return!1};d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function Ikb(a,b,c,e){var f=new Hkb;f.xa=b;f.eb=c;f.De=e;jO.prototype.uy.call(f,a);return f}
function Jkb(a){jO.prototype.Hi.call(a);var b=yc((new K).Y(a.eb),"type");if(!b.b()){b.c();var c=a.xa,e=(new Xi).a();ac(c,e)}var f=(new K).Y(a.eb),g=a.l,h=ci().Dw;Bh(f,"minProperties",Ch(Dh(g,h,a.De),a.xa));var k=(new K).Y(a.eb),l=a.l,p=ci().Cw;Bh(k,"maxProperties",Ch(Dh(l,p,a.De),a.xa));var y=a.xa,I=ci().Pk;dj(y,I,!1);var E=yc((new K).Y(a.eb),"additionalProperties");if(!E.b()){var V=E.c(),da=V.i.pb().nb;if(O().ui===da){var sa=a.l,ua=ci().Pk;ZN($N(TIa(Ch(Dh(sa,ua,a.De),a.xa)),(new Xi).a()),V)}else if(O().ua===
da){var Ia=qV(sV(),V,t(new u,function(a){return function(b){b.Qb(a.xa.k,b.Ub())}}(a)),a.l.Ok,a.De).wc();if(!Ia.b()){var Pa=Ia.c(),Za=a.xa,db=ci().HF,Qb=Ke(M(),V);Fh(Za,db,Pa,Qb)}}else{var bc=a.De,rc=rh().t6,Fc=a.xa.k,Rd=w();Cc(bc,rc,Fc,Rd,"Invalid part type for additional properties node. Should be a boolean or a map",V.ga)}}if(dTa(a.l.Ok)){var Ld=yc((new K).Y(a.eb),"discriminator");if(!Ld.b()){var ze=Ld.c();i7a(a.l,a.xa,ze).Pc()}}else{var Td=(new K).Y(a.eb),Je=a.l,$d=ci().dt;Bh(Td,"discriminator",
Ch(Dh(Je,$d,a.De),a.xa));var te=(new K).Y(a.eb),Hd=Hv((new Cf).e("discriminatorValue")),ie=a.l,Nd=ci().rz;Bh(te,Hd,Ch(Dh(ie,Nd,a.De),a.xa))}var td=yc((new K).Y(a.eb),"required");if(td.b())var yd=w();else{var ud=td.c(),Ve=!1,Me=ud.i.pb().nb;a:{var Rc;if(O().Nc===Me){var Ve=!0,me=a.l.Ok,Ae=dJa();if(null!==me&&me===Ae){var We=a.De,od=rh().L6,Ad=a.xa.k,ue=ud.i,Id=w();Cc(We,od,Ad,Id,"Required arrays of properties not supported in JSON Schema below version draft-4",ue.ga);Rc=pc(fc().db,G());break a}}if(Ve){var gf=
ud.i,Jd=tv();Rc=L(gf,Jd,a.De).Jn.ae(pc(fc().db,G()),qd(function(a){return function(b,c){var e=qe();return b.Hh(L(c,e,a.De),c)}}(a)))}else Rc=pc(fc().db,G())}yd=(new A).d(Rc)}var Vd=yd.b()?pc(fc().db,G()):yd.c(),je=pc(Bib(),G()),Wd=yc((new K).Y(a.eb),"properties");if(!Wd.b()){var ve=Wd.c().i,$c=Hc(Ic(ve),Pc());if(x($c)){var we=pna(new hx,a.l,$c.i,t(new u,function(a){return function(b){return F3(a.xa,b)}}(a)),Vd,(rna(a.l),!1)).fh(),cd=t(new u,function(){return function(a){var b=B(a.ea,Pg().$).G,b=b.b()?
null:b.c();return(new P).N(b,a)}}(a)),ae=z(),be=we.ka(cd,ae.s);Yi(je,be)}}var xe=yc((new K).Y(a.eb),"patternProperties");if(!xe.b()){var ne=xe.c().i,Ed=Hc(Ic(ne),Pc());if(x(Ed)){var Ne=pna(new hx,a.l,Ed.i,t(new u,function(a){return function(b){return F3(a.xa,b)}}(a)),Vd,!0).fh(),hf=t(new u,function(){return function(a){var b=B(a.ea,Pg().$).G,b=b.b()?null:b.c();return(new P).N(b,a)}}(a)),Ef=z(),Vf=Ne.ka(hf,Ef.s);Yi(je,Vf)}}if(Wd.b())var Xe=w();else var Ye=Wd.c(),vf=Ke(M(),Ye.i),Oe=Ke(M(),Ye),Xe=(new A).d((new P).N(vf,
Oe));if(Xe.b())if(xe.b())var Xd=w();else var Ff=xe.c(),rf=Ke(M(),Ff.i),cf=Ke(M(),Ff),Xd=(new A).d((new P).N(rf,cf));else Xd=Xe;if(Xd.b()){M();var hg=(new N).a();M();var kg=(new N).a(),oe=(new P).N(hg,kg)}else oe=Xd.c();if(null===oe)throw(new v).d(oe);var wf=oe.pa(),ce=oe.Ba();if(Tc(je)){var jf=a.xa,Kf=ci().Rg,xf=(new dd).Qd(je),Pe=gr(new hr,xf.Rb.gf().kd(),wf);Fh(jf,Kf,Pe,ce)}B(a.xa.ea,ci().Rg).X(t(new u,function(a,b){return function(a){var c=B(a.ea,Pg().$).G,c=c.b()?null:c.c();b.Oe(c,a);return b}}(a,
je)));var Ze=yc((new K).Y(a.eb),"dependencies");if(!Ze.b()){var Oc=Ze.c(),ke=Oc.i,Lf=Pc(),df=t8a(new r3,L(ke,Lf,a.De),je,a.De).fh(),de=a.xa,yg=ci().wD,Mf=gr(new hr,df,Ke(M(),Oc.i)),pe=Ke(M(),Oc);Fh(de,yg,Mf,pe)}var Qe=yc((new K).Y(a.eb),"x-amf-merge");if(!Qe.b()){var $e=Qe.c(),kf=a.l,Re=$e.i,le=Jc(),Se=b7a(new a7a,kf,L(Re,le,a.De),t(new u,function(a){return function(b){b.Qb(a.xa.k,b.Ub())}}(a))).fh(),Nf=a.xa,Gf=ci().ld,yf=gr(new hr,Se,Ke(M(),$e.i)),ef=Ke(M(),$e);Fh(Nf,Gf,yf,ef)}return a.xa}d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({lpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$NodeShapeParser",{lpa:1,jJ:1,kJ:1,f:1,A:1,w:1,q:1,n:1});function e7a(){jO.call(this);this.Lg=this.eb=this.xa=null}e7a.prototype=new kO;e7a.prototype.constructor=e7a;d=e7a.prototype;d.L=function(){return"TupleShapeParser"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.spa&&a.l===this.l){var b=this.xa,c=a.xa;if((null===b?null===c:b.h(c))&&Yj(this.eb,a.eb))return b=this.Lg,a=a.Lg,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.eb;case 2:return this.Lg;default:throw(new X).e(""+a);}};
d.Hi=function(){this.Lg.R(this.xa);jO.prototype.Hi.call(this);var a=(new K).Y(this.eb),b=this.l,c=Wh().Bq;Bh(a,"minItems",Ch(Dh(b,c,this.l.va),this.xa));a=(new K).Y(this.eb);b=this.l;c=Wh().rr;Bh(a,"maxItems",Ch(Dh(b,c,this.l.va),this.xa));a=(new K).Y(this.eb);b=this.l;c=Wh().tr;Bh(a,"uniqueItems",Ch(Dh(b,c,this.l.va),this.xa));a=(new K).Y(this.eb);b=this.l;c=Un().AR;Bh(a,"additionalItems",Ch(Dh(b,c,this.l.va),this.xa));a=yc((new K).Y(this.eb),"items");if(!a.b()){var a=a.c().i,b=tv(),a=L(a,b,this.l.va).Jn,
b=new ifb,c=uv(),a=a.$b(b,c.gc),b=uv(),a=a.cg(b.gc),b=t(new u,function(a){return function(b){if(null!==b){var c=b.pa();b=b.si();return gTa(sV(),c,"member"+b,t(new u,function(a,b){return function(c){c.Qb(a.xa.k+"/items/"+b,c.Ub())}}(a,b)),a.l.Ok,a.l.va).wc()}throw(new v).d(b);}}(this)),c=uv(),b=a.ka(b,c.gc),a=this.xa,b=b.xb(t(new u,function(){return function(a){return a.qa()}}(this))),c=t(new u,function(){return function(a){return a.c()}}(this)),e=uv(),b=b.ka(c,e.gc),c=Un().Np;qf(a,c,b)}return this.xa};
d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({spa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$TupleShapeParser",{spa:1,jJ:1,kJ:1,f:1,A:1,w:1,q:1,n:1});function Kkb(){jO.call(this);this.xa=this.eb=this.Dm=this.wH=this.GV=null}Kkb.prototype=new kO;Kkb.prototype.constructor=Kkb;d=Kkb.prototype;d.L=function(){return"UnionShapeParser"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.tpa&&a.l===this.l){var b=this.GV,c=a.GV;return(null===b?null===c:b.h(c))?this.wH===a.wH:!1}return!1};d.K=function(a){switch(a){case 0:return this.GV;case 1:return this.wH;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.DP=function(){jO.prototype.Hi.call(this);var a=yc((new K).Y(this.eb),"x-amf-union");if(!a.b()){var a=a.c(),b=a.i,c=Jc(),b=sv(b,c);if(Hp(b)){var b=b.i,c=z(),b=b.cg(c.s),c=t(new u,function(a){return function(b){if(null!==b){var c=b.pa();b=b.si();c=gF(jC(),Th(R(),"item"+b),c);return qV(sV(),c,t(new u,function(a,b){return function(c){c.Qb(a.xa.k+"/items/"+b,c.Ub())}}(a,b)),a.l.Ok,a.l.va).wc()}throw(new v).d(b);}}(this)),e=z(),b=b.ka(c,e.s).xb(t(new u,function(){return function(a){return a.qa()}}(this))),
c=t(new u,function(){return function(a){return a.c()}}(this)),e=z(),b=b.ka(c,e.s),c=this.xa,e=lo().Ee,a=Ke(M(),a.i);jr(c,e,b,a)}else{var b=this.l.va,c=of().cN,e=this.xa.k,a=a.i,f=w();Cc(b,c,e,f,"Unions are built from multiple shape nodes",a.ga)}}return this.xa};
function Lkb(a,b,c,e){a.GV=c;a.wH=e;jO.prototype.uy.call(a,b);if(Ep(c))c=c.i.i;else if(Hp(c))c=c.i;else throw(new v).d(c);a.Dm=c;c=a.Dm;var f=Pc();a.eb=L(c,f,b.va);b=Lr(M(),a.Dm);b=(new ti).P((new Q).a(),b);c=(new Qx).wp(a.GV).Mk();c.b()?c=w():(c=c.c(),c=(new A).d(Ke(M(),c.Da)));c=c.b()?(M(),(new N).a()):c.c();a.xa=Ue(b,e,c);return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({tpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$UnionShapeParser",{tpa:1,jJ:1,kJ:1,f:1,A:1,w:1,q:1,n:1});function Mkb(){hO.call(this);this.qk=this.lk=this.Qc=this.yc=this.xa=null;this.Wi=!1;this.ge=null}Mkb.prototype=new iO;Mkb.prototype.constructor=Mkb;d=Mkb.prototype;d.L=function(){return"OasUnionShapeEmitter"};d.H=function(){return 6};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.xpa){var b=this.xa,c=a.xa;(null===b?null===c:b.h(c))&&this.yc===a.yc?(b=this.Qc,c=a.Qc,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.lk,c=a.lk,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.qk,c=a.qk,b=null===b?null===c:b.h(c)):b=!1;return b?this.Wi===a.Wi:!1}return!1};
d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.yc;case 2:return this.Qc;case 3:return this.lk;case 4:return this.qk;case 5:return this.Wi;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){var a=hO.prototype.Ua.call(this),b=H(z(),(new J).aa([dkb(this.xa,this.yc,this.Qc,this.lk,this.qk,this.ge)])),c=z();return a.la(b,c.s)};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.xa)),a=zI().Ga(a,yI(zI(),this.yc)),a=zI().Ga(a,yI(zI(),this.Qc)),a=zI().Ga(a,yI(zI(),this.lk)),a=zI().Ga(a,yI(zI(),this.qk)),a=zI().Ga(a,this.Wi?1231:1237);return zI().Wd(a,6)};d.M=function(){return Z(this)};function S6a(a,b,c,e,f,g){var h=new Mkb;h.xa=a;h.yc=b;h.Qc=c;h.lk=e;h.qk=f;h.Wi=!1;h.ge=g;e=G();f=G();hO.prototype.LK.call(h,a,b,c,e,f,!1,g);return h}
d.$classData=q({xpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasUnionShapeEmitter",{xpa:1,iJ:1,gN:1,f:1,A:1,w:1,q:1,n:1});function fna(){this.Gc=this.Q=this.kf=this.Le=this.U=this.o=this.ra=null}fna.prototype=new r;fna.prototype.constructor=fna;d=fna.prototype;d.L=function(){return"OasXoneConstraintEmitter"};d.H=function(){return 5};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ypa){var b=this.ra,c=a.ra;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Le,c=a.Le,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.kf,a=a.kf,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;case 3:return this.Le;case 4:return this.kf;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"oneOf"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new My).e(f);this.o.Cb(this.Gc).X(t(new u,function(a,b){return function(a){a.Ob(b)}}(this,g)));R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=c.r;b=[b];if(0>e.x)throw(new X).e("0");f=b.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),c.r))};
d.yE=function(a,b,c,e,f,g){this.ra=a;this.o=b;this.U=c;this.Le=e;this.kf=f;this.Q=g;a=B(a.ca(),Pg().Xh);b=z();a=a.cg(b.s);b=t(new u,function(a){return function(b){if(null!==b){var c=b.pa(),e=b.si();if(null!==c){b=a.o;var f=G(),g=a.U,E=a.Le,e=H(z(),(new J).aa(["oneOf",""+e])),V=z();return L7(new M7,c,b,f,g,E.la(e,V.s),a.kf,a.Q)}}throw(new v).d(b);}}(this));c=z();this.Gc=a.ka(b,c.s);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){var a=this.Gc,b=t(new u,function(){return function(a){return a.Oa()}}(this)),c=z(),a=a.ka(b,c.s).qi(t(new u,function(){return function(a){return a.Ne}}(this)),Ms()).pc();return a.b()?Gd():a.c()};d.$classData=q({ypa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasXoneConstraintEmitter",{ypa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Sjb(){this.jc=this.o=this.ni=null}Sjb.prototype=new r;Sjb.prototype.constructor=Sjb;d=Sjb.prototype;d.L=function(){return"ParametrizedDeclarationEmitter"};
d.Ob=function(a){if(this.ni.rI().Fa()){var b=a.r;a=a.da;var c=(new pq).e(a);R();var e=B(this.ni.ca(),zW().$).G,e=e.b()?null:e.c(),f=Th(R(),e),e=(new My).e(c.da),g=e.r,h=e.da,k=(new pq).e(h),l=this.ni.rI(),p=t(new u,function(a){return function(b){var c=a.o,e=a.jc,f=new Nkb;f.$u=b;f.o=c;f.jc=e;return f}}(this)),y=z(),l=l.ka(p,y.s);iq(Cq(),this.o.Cb(l),k);T(g,lq(R(),rq(sq(),k.r,h),O().ua));g=e.r;f=[f];if(0>g.x)throw(new X).e("0");k=f.length|0;h=g.x+k|0;hC(g,h);Ca(g.z,0,g.z,k,g.x);for(var k=g.z,y=k.j.length,
p=l=0,I=f.length|0,y=I<y?I:y,I=k.j.length,y=y<I?y:I;l<y;)k.j[p]=f[l],l=1+l|0,p=1+p|0;g.x=h;T(c.r,iC(jC(),e.r));T(b,lq(R(),rq(sq(),c.r,a),O().ua))}else Cq(),b=B(this.ni.ca(),zW().$).G,kq(0,a,b.b()?null:b.c(),O().Wa)};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Apa){var b=this.ni,c=a.ni;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.ni;case 1:return this.o;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.ni.ha(),n(Fd))};d.$classData=q({Apa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.ParametrizedDeclarationEmitter",{Apa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function Fna(){this.Gc=this.Q=this.U=this.o=this.ra=null}Fna.prototype=new r;Fna.prototype.constructor=Fna;d=Fna.prototype;d.L=function(){return"RamlAndConstraintEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Rpa){var b=this.ra,c=a.ra;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};
d.gC=function(a,b,c,e){this.ra=a;this.o=b;this.U=c;this.Q=e;a=B(a.ca(),Pg().Th);b=t(new u,function(a){return function(b){return(new JU).Cr(b,a.o,w(),G(),a.U,a.Q)}}(this));c=z();this.Gc=a.ka(b,c.s);return this};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Kh((new Cf).e("and")),c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new My).e(f);this.o.Cb(this.Gc).X(t(new u,function(a,b){return function(a){a.Ob(b)}}(this,g)));R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=b.r;c=[c];if(0>e.x)throw(new X).e("0");f=c.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Oa=function(){var a=this.Gc,b=t(new u,function(){return function(a){return a.Oa()}}(this)),c=z(),a=a.ka(b,c.s).qi(t(new u,function(){return function(a){return a.Ne}}(this)),Ms()).pc();return a.b()?Gd():a.c()};d.$classData=q({Rpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlAndConstraintEmitter",{Rpa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Okb(){this.Q=this.U=this.o=this.ra=null}Okb.prototype=new r;Okb.prototype.constructor=Okb;d=Okb.prototype;
d.L=function(){return"RamlAnyOfShapeEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Upa){var b=this.ra,c=a.ra;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=Sna(Tna(),this.ra);if(x(b)){var c=b.i;R();b=Th(R(),"type");R();c=Th(R(),c);qq(a,b,c)}else if(w()===b)Pkb(this,a);else throw(new v).d(b);};
function Pkb(a,b){R();var c=Th(R(),"anyOf"),e=(new My).e(b.da),f=e.r,g=e.da,h=(new My).e(g),k=B(a.ra.ea,lo().Ee),l=t(new u,function(a){return function(b){var c=a.o,e=w(),f=a.U,g=G();return(new JU).Cr(b,c,e,g,f,a.Q)}}(a)),p=z(),k=k.ka(l,p.s);tq(Cq(),a.o.Cb(k),h);R();FC();a=Py(vq(),g);h=lq(0,(new GC).mc(a,h.r),O().Nc);T(f,h);f=e.r;c=[c];if(0>f.x)throw(new X).e("0");a=c.length|0;h=f.x+a|0;hC(f,h);Ca(f.z,0,f.z,a,f.x);a=f.z;l=a.j.length;k=g=0;p=c.length|0;l=p<l?p:l;p=a.j.length;for(l=l<p?l:p;g<l;)a.j[k]=
c[g],g=1+g|0,k=1+k|0;f.x=h;T(b.r,iC(jC(),e.r))}d.y=function(){return Y(this)};d.NK=function(a,b,c,e){this.ra=a;this.o=b;this.U=c;this.Q=e;return this};d.M=function(){return Z(this)};d.Oa=function(){Cq();var a=hs(this.ra.ea,lo().Ee).ha();return jq(0,a,n(Fd))};d.$classData=q({Upa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlAnyOfShapeEmitter",{Upa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Qkb(){this.o=this.em=null;this.vQ=!1;this.Q=null}Qkb.prototype=new r;
Qkb.prototype.constructor=Qkb;d=Qkb.prototype;d.L=function(){return"RamlCreativeWorkEmitter"};d.Ob=function(a){var b=a.r;a=a.da;var c=(new pq).e(a);iq(Cq(),(new e3).CU(this.em,this.o,this.vQ,this.Q).Ua(),c);T(b,lq(R(),rq(sq(),c.r,a),O().ua))};d.H=function(){return 3};d.CU=function(a,b,c,e){this.em=a;this.o=b;this.vQ=c;this.Q=e;return this};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Ypa?this.em===a.em&&this.o===a.o?this.vQ===a.vQ:!1:!1};
d.K=function(a){switch(a){case 0:return this.em;case 1:return this.o;case 2:return this.vQ;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.em)),a=zI().Ga(a,yI(zI(),this.o)),a=zI().Ga(a,this.vQ?1231:1237);return zI().Wd(a,3)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.em.E,n(Fd))};
d.$classData=q({Ypa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlCreativeWorkEmitter",{Ypa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function Rkb(){this.U=this.ra=null}Rkb.prototype=new r;Rkb.prototype.constructor=Rkb;d=Rkb.prototype;d.L=function(){return"RamlExternalSourceEmitter"};d.Ob=function(a){var b=this.U,c=new qfb;if(null===this)throw Lb(Mb(),null);c.Pa=this;b=hd(b,c);b=b.b()?w():B(b.c().g,Wl().Sd).G;b.b()||(b=b.c(),kq(Cq(),a,b,O().Wa))};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.dqa){var b=this.ra,c=a.ra;if(null===b?null===c:b.h(c))return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function y7a(a,b){var c=new Rkb;c.ra=a;c.U=b;return c}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.ra.ha(),n(Fd))};
d.$classData=q({dqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlExternalSourceEmitter",{dqa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function Skb(){this.Q=this.U=this.o=this.ra=null}Skb.prototype=new r;Skb.prototype.constructor=Skb;d=Skb.prototype;d.L=function(){return"RamlInlinedAnyOfShapeEmitter"};d.Ob=function(a){var b=Sna(Tna(),this.ra);if(x(b))a.$s(b.i);else if(w()===b)Tkb(this,a);else throw(new v).d(b);};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.hqa){var b=this.ra,c=a.ra;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function Tkb(a,b){var c=b.r;b=b.da;var e=(new pq).e(b);R();var f=Th(R(),"anyOf"),g=(new My).e(e.da),h=g.r,k=g.da,l=(new My).e(k),p=B(a.ra.ea,lo().Ee),y=t(new u,function(a){return function(b){var c=a.o,e=w(),f=a.U,g=G();return(new JU).Cr(b,c,e,g,f,a.Q)}}(a)),I=z(),p=p.ka(y,I.s);tq(Cq(),a.o.Cb(p),l);R();FC();a=Py(vq(),k);a=lq(0,(new GC).mc(a,l.r),O().Nc);T(h,a);h=g.r;f=[f];if(0>h.x)throw(new X).e("0");l=f.length|0;a=h.x+l|0;hC(h,a);Ca(h.z,0,h.z,l,h.x);l=h.z;y=l.j.length;p=k=0;I=f.length|0;y=I<y?I:y;
I=l.j.length;for(y=y<I?y:I;k<y;)l.j[p]=f[k],k=1+k|0,p=1+p|0;h.x=a;T(e.r,iC(jC(),g.r));T(c,lq(R(),rq(sq(),e.r,b),O().ua))}d.y=function(){return Y(this)};d.NK=function(a,b,c,e){this.ra=a;this.o=b;this.U=c;this.Q=e;return this};d.M=function(){return Z(this)};d.Oa=function(){Cq();var a=hs(this.ra.ea,lo().Ee).ha();return jq(0,a,n(Fd))};d.$classData=q({hqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlInlinedAnyOfShapeEmitter",{hqa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});
function Ukb(){this.Q=this.U=this.o=this.Iq=null}Ukb.prototype=new r;Ukb.prototype.constructor=Ukb;d=Ukb.prototype;d.L=function(){return"RamlItemsShapeEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.kqa){var b=this.Iq,c=a.Iq;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Iq;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Y0=function(a,b,c,e){this.Iq=a;this.o=b;this.U=c;this.Q=e;return this};
d.Va=function(a){var b=B(this.Iq.ea,Wh().wf);if(Xh(b)){if(yb(b).qa()){R();var c=Th(R(),"items"),e=(new My).e(a.da);(new JU).Cr(b,this.o,w(),G(),this.U,this.Q).Ob(e);b=e.r;c=[c];if(0>b.x)throw(new X).e("0");var f=c.length|0,g=b.x+f|0;hC(b,g);Ca(b.z,0,b.z,f,b.x);var f=b.z,h=f.j.length,k=0,l=0,p=c.length|0}else{R();c=Th(R(),"items");e=(new My).e(a.da);g=e.r;f=e.da;k=(new pq).e(f);l=this.o;h=this.U;p=G();d3(new Z2,b,l,p,h,this.Q).Yw().X(t(new u,function(a,b){return function(a){a.Va(b)}}(this,k)));T(g,
lq(R(),rq(sq(),k.r,f),O().ua));b=e.r;c=[c];if(0>b.x)throw(new X).e("0");f=c.length|0;g=b.x+f|0;hC(b,g);Ca(b.z,0,b.z,f,b.x);f=b.z;h=f.j.length;l=k=0;p=c.length|0}h=p<h?p:h;p=f.j.length;for(h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;b.x=g;T(a.r,iC(jC(),e.r))}else if(no(b)){R();c=Th(R(),"items");e=(new My).e(a.da);g=e.r;f=e.da;k=(new pq).e(f);l=this.o;h=this.U;p=G();d3(new Z2,b,l,p,h,this.Q).Yw().X(t(new u,function(a,b){return function(a){a.Va(b)}}(this,k)));T(g,lq(R(),rq(sq(),k.r,f),O().ua));b=e.r;
c=[c];if(0>b.x)throw(new X).e("0");f=c.length|0;g=b.x+f|0;hC(b,g);Ca(b.z,0,b.z,f,b.x);f=b.z;h=f.j.length;l=k=0;p=c.length|0;h=p<h?p:h;p=f.j.length;for(h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;b.x=g;T(a.r,iC(jC(),e.r))}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){Cq();var a=uj(this.Iq.ea,Wh().wf).E;return jq(0,a,n(Fd))};d.$classData=q({kqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlItemsShapeEmitter",{kqa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function cIa(){this.Eh=null}cIa.prototype=new r;cIa.prototype.constructor=cIa;d=cIa.prototype;d.L=function(){return"RamlLocalReferenceEmitter"};d.H=function(){return 1};d.Ob=function(a){var b=B(this.Eh.ca(),Db().wd).G;if(x(b))b=b.i,kq(Cq(),a,b,O().Wa);else{if(w()===b)throw Lb(Mb(),(new Nb).e("Missing link label"));throw(new v).d(b);}};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.oqa){var b=this.Eh;a=a.Eh;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Eh;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Eh.ha(),n(Fd))};d.$classData=q({oqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlLocalReferenceEmitter",{oqa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function Q7(){this.Q=this.eX=this.U=this.o=this.ra=null}Q7.prototype=new r;Q7.prototype.constructor=Q7;d=Q7.prototype;d.L=function(){return"RamlNamedTypeEmitter"};
function Vkb(a,b,c,e,f,g){a.ra=b;a.o=c;a.U=e;a.eX=f;a.Q=g;return a}d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.pqa){var b=this.ra,c=a.ra;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;return b?this.eX===a.eX:!1}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;case 3:return this.eX;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=B(this.ra.ca(),Pg().$).G,b=b.b()?"schema":b.c();R();var c=Th(R(),b),e=yb(this.ra).qa()?function(a){return function(b){a.eK(b)}}(this):function(a){return function(b){a.dK(b)}}(this),b=(new My).e(a.da);e(b);e=b.r;c=[c];if(0>e.x)throw(new X).e("0");var f=c.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),b.r))};
d.eK=function(a){var b=yb(this.ra);b.b()||(b=b.c(),ax(this.Q.of.pF(),b,B(this.ra.ca(),Db().wd).G,this.U).Ob(a))};d.dK=function(a){var b=this.ra;if(null!==b)$B(this.eX,b,this.o,w(),H(z(),G()),this.U).Ob(a);else{a=this.Q.Si();var b=Bc().nh,c=this.ra.k,e=w(),f=Zb(this.ra.ha(),n(Fd)),g=$h(this.ra);a.Hc(b.k,c,e,"Cannot emit inline shape that doesnt support type expressions",f,xc().tb,g)}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.ra.ha(),n(Fd))};
d.$classData=q({pqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlNamedTypeEmitter",{pqa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Ina(){this.Tw=this.U=this.o=this.ra=null}Ina.prototype=new r;Ina.prototype.constructor=Ina;d=Ina.prototype;d.L=function(){return"RamlNotConstraintEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.sqa){var b=this.ra,c=a.ra;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.gC=function(a,b,c,e){this.ra=a;this.o=b;this.U=c;this.Tw=(new JU).Cr(B(a.ca(),Pg().ki),b,w(),G(),c,e);return this};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Kh((new Cf).e("not")),c=Th(R(),b),b=(new My).e(a.da);this.Tw.Ob(b);var e=b.r,c=[c];if(0>e.x)throw(new X).e("0");var f=c.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return this.Tw.Oa()};
d.$classData=q({sqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlNotConstraintEmitter",{sqa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function S7a(){this.o=this.Ca=this.oa=null}S7a.prototype=new r;S7a.prototype.constructor=S7a;d=S7a.prototype;d.L=function(){return"RamlOAuth2ScopeEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.uqa){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;return b?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.Ca.t.t.Tb,c;c=new rfb;var e=z(),f=b.$b(c,e.s);R();b=this.oa;e=Th(R(),b);b=(new My).e(a.da);c=b.r;var g=b.da,h=(new My).e(g);tq(Cq(),this.o.Cb(f),h);R();FC();f=Py(vq(),g);f=lq(0,(new GC).mc(f,h.r),O().Nc);T(c,f);c=b.r;e=[e];if(0>c.x)throw(new X).e("0");h=e.length|0;f=c.x+h|0;hC(c,f);Ca(c.z,0,c.z,h,c.x);for(var h=c.z,k=h.j.length,l=g=0,p=e.length|0,k=p<k?p:k,p=h.j.length,k=k<p?k:p;g<k;)h.j[l]=e[g],g=1+g|0,l=1+l|0;c.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Lba=function(a,b,c){this.oa=a;this.Ca=b;this.o=c;return this};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({uqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlOAuth2ScopeEmitter",{uqa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Gna(){this.Gc=this.Q=this.U=this.o=this.ra=null}Gna.prototype=new r;Gna.prototype.constructor=Gna;d=Gna.prototype;d.L=function(){return"RamlOrConstraintEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.wqa){var b=this.ra,c=a.ra;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};
d.gC=function(a,b,c,e){this.ra=a;this.o=b;this.U=c;this.Q=e;a=B(a.ca(),Pg().Vh);b=t(new u,function(a){return function(b){return(new JU).Cr(b,a.o,w(),G(),a.U,a.Q)}}(this));c=z();this.Gc=a.ka(b,c.s);return this};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Kh((new Cf).e("or")),c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new My).e(f);this.o.Cb(this.Gc).X(t(new u,function(a,b){return function(a){a.Ob(b)}}(this,g)));R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=b.r;c=[c];if(0>e.x)throw(new X).e("0");f=c.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Oa=function(){var a=this.Gc,b=t(new u,function(){return function(a){return a.Oa()}}(this)),c=z(),a=a.ka(b,c.s).qi(t(new u,function(){return function(a){return a.Ne}}(this)),Ms()).pc();return a.b()?Gd():a.c()};d.$classData=q({wqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlOrConstraintEmitter",{wqa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Wkb(){this.Q=this.U=this.o=this.Ca=null}Wkb.prototype=new r;Wkb.prototype.constructor=Wkb;d=Wkb.prototype;
d.L=function(){return"RamlPropertiesShapeEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.xqa){var b=this.Ca,c=a.Ca;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.GK=function(a,b,c,e){this.Ca=a;this.o=b;this.U=c;this.Q=e;return this};
d.Va=function(a){R();var b=Th(R(),"properties"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f),h=this.Ca.t.t.Tb,k=t(new u,function(a){return function(b){return Xkb(b,a.o,a.U,a.Q)}}(this)),l=z(),h=h.ka(k,l.s);iq(Cq(),this.o.Cb(h),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,k=h=0,p=b.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=b[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),c.r))};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({xqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlPropertiesShapeEmitter",{xqa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Ykb(){this.bg=this.o=this.Ii=null}Ykb.prototype=new r;Ykb.prototype.constructor=Ykb;d=Ykb.prototype;d.L=function(){return"RamlPropertyDependenciesEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.yqa){var b=this.Ii,c=a.Ii;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.bg,a=a.bg,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.Ii;case 1:return this.o;case 2:return this.bg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.bg,c=B(this.Ii.g,jo().uJ).G,b=b.Ta(c.b()?null:c.c());if(!b.b()){b=b.c();R();var b=B(b.ea,Pg().$).G,b=b.b()?null:b.c(),c=Th(R(),b),b=(new My).e(a.da),e=Dd(this.Ii.g,jo().vJ);if(e.b())e=w();else var e=Iw(e.c().t.t),f=t(new u,function(a){return function(b){var c=a.bg.Ta(ja(b.t));c.b()?b=w():(c=B(c.c().ea,Pg().$).G,b=(new A).d(Nh(new Oh,c.b()?null:c.c(),b.E)));return b.wa()}}(this)),g=z(),e=(new A).d(e.md(f,g.s));if(!e.b()){var g=e.c(),e=b.r,h=b.da,f=(new My).e(h),k=Cq(),l=
this.o,p=t(new u,function(){return function(a){return IT(new JT,a,O().Wa)}}(this)),y=z();tq(k,l.Cb(g.ka(p,y.s)),f);R();FC();g=Py(vq(),h);f=lq(0,(new GC).mc(g,f.r),O().Nc);T(e,f)}e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),b.r))}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.Ii.E,n(Fd))};d.$classData=q({yqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlPropertyDependenciesEmitter",{yqa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Zkb(){this.Q=this.U=this.o=this.Ii=null}Zkb.prototype=new r;Zkb.prototype.constructor=Zkb;d=Zkb.prototype;d.L=function(){return"RamlPropertyShapeEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.zqa){var b=this.Ii,c=a.Ii;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};function Xkb(a,b,c,e){var f=new Zkb;f.Ii=a;f.o=b;f.U=c;f.Q=e;return f}d.K=function(a){switch(a){case 0:return this.Ii;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=Dd(this.Ii.ea,rj().Uh);b.b()?b=w():(b=b.c(),0!==(b.t.t.t|0)||Yh(b.t.E,n(p3))?(B(this.Ii.ea,rj().rv).G.qa()?(b=B(this.Ii.ea,Pg().$).G,b="//"!==(b.b()?null:b.c())):b=!1,b?(b=B(this.Ii.ea,Pg().$).G,b="/"+(b.b()?null:b.c())+"/"):(b=B(this.Ii.ea,Pg().$).G,b=b.b()?null:b.c())):(b=B(this.Ii.ea,Pg().$).G,b=(b.b()?null:b.c())+"?"),b=(new A).d(b));b.b()?(b=B(this.Ii.ea,Pg().$).G,b=b.b()?null:b.c()):b=b.c();b=lq(R(),mq(nq(),b),O().Wa);if(Yh(B(this.Ii.ea,rj().If).ha(),n(uQ))){var c=(new My).e(a.da);
kq(Cq(),c,"",O().yd);var e=c.r,b=[b];if(0>e.x)throw(new X).e("0");var f=b.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);var f=e.z,h=f.j.length,k=0,l=0,p=b.length|0}else{c=Dd(this.Ii.ea,rj().MD);c.b()?c=w():(c=c.c(),c=(new A).d(Ih(new Jh,Kh((new Cf).e("readOnly")),c,w())));c=c.wa();e=r8a(q8a(new o3,B(this.Ii.ea,rj().If),Dd(this.Ii.ea,rj().Uh))).wa();g=pf();e=c.la(e,g.s).ce();g=B(this.Ii.ea,rj().If);if(Xh(g))if(c=(new My).e(a.da),f=this.o,k=w(),l=this.U,h=G(),g=(new JU).Cr(g,f,k,h,l,this.Q).Tw,Ep(g))g.i.Ob(c);
else if(Hp(g)){var g=g.i,f=c.r,k=c.da,l=(new pq).e(k),h=Cq(),p=this.o,y=z();iq(h,p.Cb(g.la(e,y.s)),l);T(f,lq(R(),rq(sq(),l.r,k),O().ua))}else throw(new v).d(g);else c=(new My).e(a.da),g=c.r,f=c.da,k=(new pq).e(f),iq(Cq(),e,k),T(g,lq(R(),rq(sq(),k.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");f=b.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);f=e.z;h=f.j.length;l=k=0;p=b.length|0}h=p<h?p:h;p=f.j.length;for(h=h<p?h:p;k<h;)f.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),c.r))};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ii.ab,n(Fd))};d.$classData=q({zqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlPropertyShapeEmitter",{zqa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function $kb(){this.Q=this.U=this.o=this.ra=null}$kb.prototype=new r;$kb.prototype.constructor=$kb;d=$kb.prototype;d.L=function(){return"RamlRecursiveShapeTypeEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Bqa&&this.ra===a.ra&&this.o===a.o){var b=this.U;a=a.U;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Va=function(a){(new rx).QO(this.ra,this.o,this.U,this.Q).Ua().X(t(new u,function(a,c){return function(a){a.Va(c)}}(this,a)))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.QO=function(a,b,c,e){this.ra=a;this.o=b;this.U=c;this.Q=e;return this};d.Oa=function(){return jq(Cq(),this.ra.ab,n(Fd))};d.$classData=q({Bqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlRecursiveShapeTypeEmitter",{Bqa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function $2(){this.Q=this.U=this.o=this.ra=null}$2.prototype=new r;$2.prototype.constructor=$2;d=$2.prototype;d.L=function(){return"RamlSchemaShapeEmitter"};
d.Ob=function(a){if(B(this.ra.ea,th().Vc).Fa()){var b=this.ra.ea,c=H(Wg(),G());Er(c,(new BV).wy(this.ra,this.o,this.U,this.Q).Ua());b=Dd(b,fo().Sd);b.b()||(b=b.c(),vh(c,Ih(new Jh,"type",b,w())));b=a.r;a=a.da;var e=(new pq).e(a);iq(Cq(),this.o.Cb(c),e);T(b,lq(R(),rq(sq(),e.r,a),O().ua))}else if(c=B(this.ra.ea,jh().Sd).G,x(c))c=c.i,kq(Cq(),a,c,O().Wa);else if(w()===c)c=R().yd,T(a.r,c);else throw(new v).d(c);};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Dqa){var b=this.ra,c=a.ra;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function z7a(a,b,c,e,f){a.ra=b;a.o=c;a.U=e;a.Q=f;return a}
d.Oa=function(){return jq(Cq(),this.ra.ab,n(Fd))};d.$classData=q({Dqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlSchemaShapeEmitter",{Dqa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function Hx(){this.yb=this.m=this.qb=this.Ea=this.oa=this.Lc=null}Hx.prototype=new r;Hx.prototype.constructor=Hx;d=Hx.prototype;d.L=function(){return"RamlSecuritySchemeParser"};function Xna(a,b,c,e,f,g){a.Lc=b;a.oa=c;a.Ea=e;a.qb=f;a.m=g;return a}d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Eqa){var b=this.Lc,c=a.Lc;return(null===b?null===c:b.h(c))&&this.oa===a.oa&&Yj(this.Ea,a.Ea)?this.qb===a.qb:!1}return!1};d.K=function(a){switch(a){case 0:return this.Lc;case 1:return this.oa;case 2:return this.Ea;case 3:return this.qb;default:throw(new X).e(""+a);}};
function alb(a,b,c,e,f){var g;g=a.m.le();a=a.Lc;var h=Nr(),h=WN(g,c,h);x(h)?g=h.i:(sia(g,"SecurityScheme '"+c+"' not found",a),g=(new xkb).Rq(c,a));c=gL(g,c,e);f.zf(c,b);M();f=(new N).a();return Ue(c,b,f)}d.u=function(){return U(W(),this)};d.Yj=function(){null===this.yb&&this.Ig();return this.yb};d.Ig=function(){null===this.yb&&(this.yb=yO())};d.y=function(){return Y(this)};
d.LH=function(){var a=this.m.Oo(this.Ea);if(Ep(a))return alb(this,this.oa,a.i,Ke(M(),this.Ea),this.qb);if(Hp(a)){var b=a.i,a=this.qb.zf(zra(Bra(),this.Lc),this.oa),c=Pc(),b=L(b,c,this.m);xO(this.m,a.k,b,"securitySchema");var c=(new K).Y(b),e=vi().Nj;Bh(c,"type",Uh(Ch(Dh(this,e,this.m),a)));c=B(a.g,vi().Nj).G;x(c)&&(c=c.i,"oauth2"!==c&&"basic"!==c&&"apiKey"!==c||this.m.Vs(rh().TM,a.k,(new A).d(Gc(vi().Nj.t)),"OAS 2.0 security scheme type detected in RAML 1.0 spec",Zb(B(a.g,vi().Nj).E,n(Fd)),(new A).d(this.m.Xg)));
c=yc((new K).Y(b),"type");if(!c.b()&&(c=c.c().i.pb().nb,e=O().yd,c===e&&B(a.g,vi().Nj).G.Ja(""))){var c=this.m,e=rh().bZ,f=a.k,g=(new A).d(Gc(vi().Nj.t));tf();var h=b.ga,h=(new A).d((new uf).Ui(zf(0,Af(Bf(),h.vf,h.Ef,h.ag,h.fg)))),k=(new A).d(this.m.Xg);c.Hc(e.k,f,g,"Security Scheme must have a mandatory value from 'OAuth 1.0', 'OAuth 2.0', 'Basic Authentication', 'Digest Authentication', 'Pass Through', x-\x3cother\x3e'",h,xc().tb,k)}ykb(a);c=(new K).Y(b);e=vi().gd;Bh(c,"displayName",Uh(Ch(Dh(this,
e,this.m),a)));c=(new K).Y(b);e=vi().fb;Bh(c,"description",Uh(Ch(Dh(this,e,this.m),a)));J7a(new f3,"describedBy",b,a,this.m).Pc();c=(new K).Y(b);e=vi().li;Bh(c,"settings",ex(Ch(Dh(this,e,this.m),a),t(new u,function(a,b){return function(c){bUa||(bUa=(new aW).a());var e=a.m,f=Pc();c=L(c,f,e);f=B(b.g,vi().Nj).G;return e9a(f9a(new I3,c,f.b()?null:f.c(),b,e))}}(this,a))));Di();c=[Jw().Gf];c=(new J).aa(c);e=Di().s;jx(new kx,a,b,Ei(c,e),this.m).Pc();return a}throw(new v).d(a);};d.M=function(){return Z(this)};
d.$classData=q({Eqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlSecuritySchemeParser",{Eqa:1,f:1,PWa:1,ig:1,A:1,w:1,q:1,n:1});function i6(){this.vP=this.o=this.U=this.$v=null}i6.prototype=new r;i6.prototype.constructor=i6;d=i6.prototype;d.L=function(){return"RamlSecuritySchemesEmitters"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Fqa){var b=this.$v,c=a.$v;(null===b?null===c:b.h(c))?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;return b&&this.o===a.o?this.vP===a.vP:!1}return!1};d.K=function(a){switch(a){case 0:return this.$v;case 1:return this.U;case 2:return this.o;case 3:return this.vP;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"securitySchemes"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f),h=Cq(),k=this.o,l=this.$v,p=t(new u,function(a){return function(b){return ax(a.vP,b,a.U,a.o)}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=b.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=b[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),c.r))};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=this.$v.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.E,n(Fd))));return a.b()?Gd():a.c()};d.$classData=q({Fqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlSecuritySchemesEmitters",{Fqa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Bna(){this.Q=this.o=this.Ca=null}Bna.prototype=new r;Bna.prototype.constructor=Bna;d=Bna.prototype;d.L=function(){return"RamlSecuritySettingsEmitter"};
d.XG=function(a,b,c){this.Ca=a;this.o=b;this.Q=c;return this};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Gqa){var b=this.Ca,c=a.Ca;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"settings"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f);iq(Cq(),this.o.Cb((new k3).XG(this.Ca,this.o,this.Q).Ua()),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,h=g.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=g.j.length,h=h<p?h:p;k<h;)g.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),c.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({Gqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlSecuritySettingsEmitter",{Gqa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function blb(){this.Q=this.mW=this.o=this.Ca=null}blb.prototype=new r;blb.prototype.constructor=blb;d=blb.prototype;d.L=function(){return"RamlShapeDependenciesEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Iqa){var b=this.Ca,c=a.Ca;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.mW,a=a.mW,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.o;case 2:return this.mW;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Kh((new Cf).e("dependencies")),c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=this.Ca.t.t.Tb,k=t(new u,function(a){return function(b){var c=a.o,e=a.mW,f=new Ykb;f.Ii=b;f.o=c;f.bg=e;return f}}(this)),l=z(),h=h.ka(k,l.s);iq(Cq(),this.o.Cb(h),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,k=h=0,p=c.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=
c[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),b.r))};function clb(a,b,c,e){var f=new blb;f.Ca=a;f.o=b;f.mW=c;f.Q=e;return f}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({Iqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlShapeDependenciesEmitter",{Iqa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Ena(){this.Q=this.U=this.o=this.Ca=null}Ena.prototype=new r;Ena.prototype.constructor=Ena;
function dlb(a,b,c){if(Ni(b)&&!yb(b).qa()){b=(new elb).NK(b,a.o,a.U,a.Q);if(B(b.xa.ea,lo().Ee).b()&&B(b.xa.ea,Pg().ld).Fa())a=G();else{a=z();var e=[(new Skb).NK(b.xa,b.yc,b.Qc,b.ge)];a=H(a,(new J).aa(e))}var e=new L7a,f=BV.prototype.Ua.call(b);e.Xw=f;e.qo=a;if(null===b)throw Lb(Mb(),null);e.l=b;M7a(e,c)}else if(b&&b.$classData&&b.$classData.v.Gz&&(Yh(b.ha(),n(Zt))||yb(b).qa()))yb(b).qa()?a.Q.gL(b).Ob(c):(Cq(),b=B(b.ca(),Pg().$).G,kq(0,c,b.b()?null:b.c(),O().Wa));else if(Xh(b)){e=c.r;c=c.da;var f=
(new pq).e(c),g=Cq(),h=a.o,k=a.U,l=G();iq(g,d3(new Z2,b,h,l,k,a.Q).Yw(),f);T(e,lq(R(),rq(sq(),f.r,c),O().ua))}else c=a.Q.jc,a=Bc().nh,e=b.k,f=w(),g=Zb(b.ha(),n(Fd)),b=b.Yb(),c.Hc(a.k,e,f,"Cannot emit for type shapes without WebAPI Shape support",g,xc().tb,b)}d=Ena.prototype;d.L=function(){return"RamlShapeInheritsEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Jqa){var b=this.Ca,c=a.Ca;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.GK=function(a,b,c,e){this.Ca=a;this.o=b;this.U=c;this.Q=e;return this};
d.Va=function(a){var b=this.Ca.t.t.Tb,c=t(new u,function(){return function(a){return a}}(this)),e=z(),f=b.ka(c,e.s),c=1<f.lb();R();e=Th(R(),"type");b=(new My).e(a.da);if(c){var c=b.r,g=b.da,h=(new My).e(g);f.X(t(new u,function(a,b){return function(c){dlb(a,c,b)}}(this,h)));R();FC();f=Py(vq(),g);f=lq(0,(new GC).mc(f,h.r),O().Nc);T(c,f)}else f.X(t(new u,function(a,b){return function(c){dlb(a,c,b)}}(this,b)));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");h=e.length|0;f=c.x+h|0;hC(c,f);Ca(c.z,0,c.z,h,c.x);
for(var h=c.z,k=h.j.length,l=g=0,p=e.length|0,k=p<k?p:k,p=h.j.length,k=k<p?k:p;g<k;)h.j[l]=e[g],g=1+g|0,l=1+l|0;c.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({Jqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlShapeInheritsEmitter",{Jqa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function flb(){this.Q=this.U=this.o=this.rM=null}flb.prototype=new r;flb.prototype.constructor=flb;d=flb.prototype;
d.L=function(){return"RamlTupleItemsShapeEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Lqa){var b=this.rM,c=a.rM;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.rM;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Aba=function(a,b,c,e){this.rM=a;this.o=b;this.U=c;this.Q=e;return this};
d.Va=function(){var a=H(Wg(),G()),b=B(this.rM.ea,Un().Np);Xh(b)&&B(this.rM.ea,Un().Np).X(t(new u,function(a,b,f){return function(){var g=a.o,h=a.U,k=G();d3(new Z2,b,g,k,h,a.Q).Yw().X(t(new u,function(a,b){return function(a){return vh(b,a)}}(a,f)))}}(this,b,a)))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){Cq();var a=uj(this.rM.ea,Un().Np).E;return jq(0,a,n(Fd))};
d.$classData=q({Lqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTupleItemsShapeEmitter",{Lqa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function glb(){this.Sk=this.uK=this.Rd=this.MZ=this.kY=null;this.Nr=!1;this.na=this.Gq=null}glb.prototype=new r;glb.prototype.constructor=glb;d=glb.prototype;d.L=function(){return"RamlTypeDetector"};
function hlb(a,b){var c,e=sfb(a),f=Qna(e,b).wa();c=Wa();var g=!1,h=!1,k=null;Di();for(var l=(new $g).a(),p=f;!p.b();){var y=p.fa();"shape"!==y!==!1&&vh(l,y);p=p.sa()}l=l.wa();a:{if(G().h(l)&&(g=!0,uh(f,"shape"))){b=gg();break a}if(g&&!uh(f,"shape"))b=e.l.Sk.sF;else{if(ft(l)&&(h=!0,k=l,e=k.Aj,f=k.ve,G().h(f))){if("nodeShape"===e)b=xg();else if("arrayShape"===e)b=wg();else if("stringScalarShape"===e)b=gg();else if("numberScalarShape"===e)b=jg();else{if("fileShape"!==e)throw(new v).d(e);b=Dg()}break a}if(h&&
Tc(k.ve)&&yc((new K).Y(b),"type").qa())b=Xv();else if(h&&Tc(k.ve))b=pLa();else throw(new v).d(l);}}c=c.Ia(b);return c.b()?(new A).d(a.Sk.sF):c}d.H=function(){return 4};function sfb(a){null===a.MZ&&null===a.MZ&&(a.MZ=(new ux).qba(a));return a.MZ}function $7a(a,b,c,e,f){var g=new glb;g.Rd=a;g.uK=b;g.Sk=c;g.Nr=e;g.Gq=f;g.na=ju().na;return g}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Nqa){if(this.Rd===a.Rd)var b=this.uK,c=a.uK,b=null===b?null===c:b.h(c);else b=!1;return b&&this.Sk===a.Sk?this.Nr===a.Nr:!1}return!1};d.K=function(a){switch(a){case 0:return this.Rd;case 1:return this.uK;case 2:return this.Sk;case 3:return this.Nr;default:throw(new X).e(""+a);}};function ilb(a){a=yc((new K).Y(a),"properties");if(a.b())return w();a.c();return(new A).d(xg())}d.u=function(){return U(W(),this)};
function jlb(a){a=yc((new K).Y(a),"fileTypes");if(a.b())return w();a.c();return(new A).d(Dg())}function klb(a){a=yc((new K).Y(a),"items");if(x(a))return(new A).d(wg());if(w()===a)return w();throw(new v).d(a);}d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.Rd)),a=zI().Ga(a,yI(zI(),this.uK)),a=zI().Ga(a,yI(zI(),this.Sk)),a=zI().Ga(a,this.Nr?1231:1237);return zI().Wd(a,4)};
function Z7a(a,b){var c=b.pb().nb;if(O().Nc===c)return c=Jc(),c=L(b,c,a.Gq),b=Kna(llb(a),mlb(a,c),b),b.b()?(new A).d(xg()):b;if(O().ua===c){var c=Pc(),e=L(b,c,a.Gq),c=e.Bb.xb(t(new u,function(a){return function(b){b=b.Da;var c=zc();b=L(b,c,a.Gq).ya;if(null===b)throw(new Rg).a();return!Sg(Tg(),".*/.*",b)}}(a)));sq();var f=c.pc();f.b()?f=w():(f=f.c(),f=(new A).d(f.ga.Of));var f=rq(0,c,f.b()?"":f.c()),c=nlb(a,f),g=klb(f),g=g.b()?jlb(f):g,g=g.b()?ilb(f):g,f=g.b()?olb(f):g,g=!1;if(x(c)){var g=!0,h=c.i;
if($la()===h&&f.qa())return e=a.Gq,f=rh().cJ,a=a.Rd,g=(new A).d(Gc(Pg().ld.t)),b=b.we().ga,iL(e,f,a,g,"Inheritance from JSON Schema",b),c}return g?c:w()===c&&f.qa()?f:hlb(a,e)}if(O().yd===c)return(new A).d(a.Sk.sF);c=zc();e=L(b,c,a.Gq);c=e.ya;if(0<=(c.length|0)&&"\x3c\x3c"===c.substring(0,2)&&re(ta(),c,"\x3e\x3e")){e=a.Gq.Dv;f=py().On;if(null===e?null===f:e.h(f))e=a.Gq,f=rh().s6,a=a.Rd,c="Resource Type/Trait parameter "+c+" in type",g=w(),Cc(e,f,a,g,c,b.ga);return w()}if(!Xla().cj(c).b())return(new A).d(ama());
if(!Yla().cj(c).b())return(new A).d($la());f=Zla().cj(c);if(!f.b()){c=f.c();e=t(new u,function(){return function(a){return Te(a,"/")}}(a));f=zc();f=(new A).d(L(b,f,a.Gq));c=Xy(e,0,f,!0,a.Gq).EP(c);c.b()?b=w():(c=c.c(),b=Lna(sfb(a),c,b,a.Nr,a.Gq));if(b.b())return w();b=b.c();c=Yv()===b?!0:wg()===b;return(new A).d(c&&!a.Nr?Tca():b)}if(re(ta(),c,"?"))return(new A).d(rLa());if(null!==c&&(f=Gg(),ei(),ei(),c=fi(ei(),c,"",f,!1),f=Gg(),null!==c&&c===f)){c=!1;e=cz(a.Gq.le(),e.ya,Nr(),w());if(x(e)&&(c=!0,f=
e.i,a.Nr))return Lna(sfb(a),f,b,a.Nr,a.Gq);if(c&&!a.Nr)return(new A).d(xg());if(w()===e)return(new A).d(Gg());throw(new v).d(e);}b=e.ya;if(a.uK.qa()){a=a.uK;if(a.b())return w();a=a.c();return(new A).d(fi(ei(),b,a,(ei(),xg()),(ei(),!1)))}return(new A).d(fi(ei(),b,(ei(),""),(ei(),xg()),(ei(),!1)))}d.M=function(){return Z(this)};function llb(a){null===a.kY&&null===a.kY&&(a.kY=(new tx).qba(a));return a.kY}
d.sM=function(a){var b=yc((new K).Y(a),"type");a=yc((new K).Y(a),"schema");if(!b.b()&&(b.c(),!a.b())){var c=a.c(),e=this.Gq,f=rh().d6,g=this.Rd,c=c.Da,h=w();Cc(e,f,g,h,"'schema' and 'type' properties are mutually exclusive",c.ga)}a.b()||(c=a.c(),e=this.Gq,f=rh().EZ,g=this.Rd,c=c.Da,h=w(),iL(e,f,g,h,"'schema' keyword it's deprecated for 1.0 version, should use 'type' instead",c.ga));return b.b()?a:b};
function mlb(a,b){a=t(new u,function(a){return function(b){var c=a.Rd,h=w(),k=tO();return Z7a($7a(c,h,k,!0,a.Gq),b).wa()}}(a));var c=z();return b.md(a,c.s).wa()}
function nlb(a,b){if(Tc(b.Bb)){var c=a.sM(b);if(c.b())return w();var c=c.c(),e=a.Rd,f=yc((new K).Y(b),"format");b=f.b()?yc((new K).Y(b),Kh((new Cf).e("format"))):f;b.b()?b=w():(b=b.c(),b=(new A).d(b.i.u()));f=tO();a=Z7a($7a(e,b,f,!0,a.Gq),c.i);e=!1;b=null;if(x(a)){e=!0;b=a;var f=b.i,g=Gg();null!==f&&f===g?c=!0:(g=Xv(),c=null!==f&&f===g?"any"!==c.i.u():!1);if(c)return w()}if(e)return(new A).d(b.i);if(w()===a)return a;throw(new v).d(a);}return w()}
function olb(a){a=yc((new K).Y(a),"anyOf");if(a.b())return w();a.c();return(new A).d(Yv())}d.$classData=q({Nqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeDetector",{Nqa:1,f:1,nr:1,Fb:1,A:1,w:1,q:1,n:1});function Hna(){this.Gc=this.Q=this.U=this.o=this.ra=null}Hna.prototype=new r;Hna.prototype.constructor=Hna;d=Hna.prototype;d.L=function(){return"RamlXoneConstraintEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.hra){var b=this.ra,c=a.ra;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};
d.gC=function(a,b,c,e){this.ra=a;this.o=b;this.U=c;this.Q=e;a=B(a.ca(),Pg().Xh);b=t(new u,function(a){return function(b){return(new JU).Cr(b,a.o,w(),G(),a.U,a.Q)}}(this));c=z();this.Gc=a.ka(b,c.s);return this};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Kh((new Cf).e("xone")),c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new My).e(f);this.o.Cb(this.Gc).X(t(new u,function(a,b){return function(a){a.Ob(b)}}(this,g)));R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=b.r;c=[c];if(0>e.x)throw(new X).e("0");f=c.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Oa=function(){var a=this.Gc,b=t(new u,function(){return function(a){return a.Oa()}}(this)),c=z(),a=a.ka(b,c.s).qi(t(new u,function(){return function(a){return a.Ne}}(this)),Ms()).pc();return a.b()?Gd():a.c()};d.$classData=q({hra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlXoneConstraintEmitter",{hra:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Nkb(){this.jc=this.o=this.$u=null}Nkb.prototype=new r;Nkb.prototype.constructor=Nkb;d=Nkb.prototype;d.L=function(){return"VariableEmitter"};
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.rra){var b=this.$u,c=a.$u;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.$u;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=B(this.$u.g,om().$).G,b=b.b()?null:b.c(),c=Th(R(),b),b=(new My).e(a.da),e=Wa().Ia(B(this.$u.g,om().rf));e.b()?(R(),e=sq().Td,R(),e=lq(R(),e,O().ua),T(b.r,e)):(e=e.c(),Tw(new Uw,e,this.o,!1,pc(Os(),G()),this.jc).Ob(b));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");var f=c.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.$u.E,n(Fd))};d.$classData=q({rra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.VariableEmitter",{rra:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Zw(){this.Q=this.o=this.Ca=this.oa=null}Zw.prototype=new r;Zw.prototype.constructor=Zw;d=Zw.prototype;d.L=function(){return"XMLSerializerEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.sra){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=this.Ca.t.t.ca(),f=H(Wg(),G()),g=Dd(e,ho().JF),g=g.b()||Yh(g.c().t.E,n(p3))?g:w();g.b()||(g=g.c(),(new A).d(vh(f,Ih(new Jh,"attribute",g,w()))));g=Dd(e,ho().HJ);g=g.b()||Yh(g.c().t.E,n(p3))?g:w();g.b()||(g=g.c(),(new A).d(vh(f,Ih(new Jh,"wrapped",g,w()))));g=Dd(e,ho().$);g=g.b()||Yh(g.c().t.E,n(p3))?g:w();g.b()||(g=g.c(),(new A).d(vh(f,Ih(new Jh,"name",g,w()))));g=Dd(e,ho().kN);g.b()||(g=g.c(),(new A).d(vh(f,Ih(new Jh,"namespace",
g,w()))));e=Dd(e,ho().nN);e.b()||(e=e.c(),(new A).d(vh(f,Ih(new Jh,"prefix",e,w()))));Er(f,Mw(this.Ca.t.t,this.o,this.Q).Ua());var e=b.r,g=b.da,h=(new pq).e(g);iq(Cq(),this.o.Cb(f),h);T(e,lq(R(),rq(sq(),h.r,g),O().ua));f=b.r;c=[c];if(0>f.x)throw(new X).e("0");g=c.length|0;e=f.x+g|0;hC(f,e);Ca(f.z,0,f.z,g,f.x);for(var g=f.z,k=g.j.length,l=h=0,p=c.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=c[h],h=1+h|0,l=1+l|0;f.x=e;T(a.r,iC(jC(),b.r))};
d.DE=function(a,b,c,e){this.oa=a;this.Ca=b;this.o=c;this.Q=e;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({sra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.XMLSerializerEmitter",{sra:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function plb(){this.Gc=this.Xw=this.Q=this.o=this.oe=null}plb.prototype=new r;plb.prototype.constructor=plb;d=plb.prototype;d.L=function(){return"ExampleValuesEmitter"};d.H=function(){return 2};
d.Ob=function(a){var b=this.Gc;a:if(Ep(b))b.i.Ob(a);else{if(Hp(b)&&(b=b.i,b.Fa())){var c=a.r;a=a.da;var e=(new pq).e(a);iq(Cq(),this.o.Cb(b),e);T(c,lq(R(),rq(sq(),e.r,a),O().ua));break a}(new b7).Yp(this.oe.E).Ob(a)}};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.vra){var b=this.oe,c=a.oe;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.oe;case 1:return this.o;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};
d.tA=function(a,b,c){this.oe=a;this.o=b;this.Q=c;var e=H(Wg(),G()),f=a.g;Di();var g=[lh().Fq,lh().fb,lh().gd,lh().Pm()],g=(new J).aa(g),h=Di().s,h=Ei(g,h);Di();for(g=(new $g).a();!h.b();){var k=h.fa(),l=Dd(f,k);if(x(l))l=!Yh(l.i.t.E,n(uQ));else{if(w()!==l)throw(new v).d(l);l=!1}!1!==l&&vh(g,k);h=h.sa()}g=g.wa();a:{for(h=Dca(f);!h.b();){k=h.fa();if(uh(g,k)){g=!0;break a}h=h.sa()}g=!1}g?g=!0:(g=B(a.g,jh().Sd).G,g=g.b()?!1:-1!==(g.c().indexOf("value")|0));g?(g=Dd(f,lh().gd),g.b()||(g=g.c(),vh(e,Gh(Hh(),
"displayName",g,w(),this.Q))),g=Dd(f,lh().fb),g.b()||(g=g.c(),vh(e,Gh(Hh(),"description",g,w(),this.Q))),Dd(f,lh().Fq).qa()&&!Yh(Dd(f,lh().Fq).c().t.E,n(uQ))&&(g=Dd(f,lh().Fq),g.b()||(g=g.c(),vh(e,Gh(Hh(),"strict",g,w(),this.Q)))),f=Dd(f,lh().Ho),f.b()?(f=B(this.oe.g,jh().Sd).G,f.b()||(f=f.c(),vh(e,(new R7).e(f)))):(g=f.c(),f=Tw(new Uw,B(this.oe.g,lh().Ho),this.o,!1,pc(Os(),G()),this.Q.Si()),g=jq(Cq(),g.t.E,n(Fd)),h=O().Wa,vh(e,Vw(new Ww,"value",f,h,g))),Er(e,Mw(a,b,c).Ua())):(b=Dd(f,lh().Ho),b.b()?
(b=B(this.oe.g,jh().Sd).G,b.b()||(b=b.c(),vh(e,(new R7).e(b)))):(b.c(),vh(e,Tw(new Uw,B(this.oe.g,lh().Ho),this.o,!1,pc(Os(),G()),this.Q.Si()))));e=this.Xw=e;a:{z();b=(new A).d(e);if(null!==b.i&&0===b.i.Ge(1)&&(b=b.i.jb(0),Fq(b))){Zf();a=(new $f).d(b);break a}e.Ng(t(new u,function(){return function(a){return Eq(a)}}(this)))?(Zf(),a=new Afb,c=z(),a=e.$b(a,c.s)):(c=c.Si(),b=Bc().nh,f=a.k,g=w(),e="IllegalTypeDeclarations found: "+e,h=Zb(a.E,n(Fd)),a=$h(a),c.Hc(b.k,f,g,e,h,xc().tb,a),Zf(),a=G());a=(new ag).d(a)}this.Gc=
a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.oe.E,n(Fd))};d.$classData=q({vra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.ExampleValuesEmitter",{vra:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function wh(){this.Q=this.U=this.o=this.Oq=this.oa=null}wh.prototype=new r;wh.prototype.constructor=wh;d=wh.prototype;d.L=function(){return"MultipleExampleEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.wra){if(this.oa===a.oa)var b=this.Oq,c=a.Oq,b=null===b?null===c:b.h(c);else b=!1;if(b&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Oq;case 2:return this.o;case 3:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){if(this.Oq.Fa()){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=this.Oq.fa();if(yb(e).qa()){if(e=this.Oq.fa(),e=yb(e),!e.b()){var e=e.c(),f=this.Q.of.pF(),g=this.Oq.fa();ax(f,e,B(g.ca(),Db().wd).G,this.U).Ob(b)}}else{var e=this.Oq,f=t(new u,function(a){return function(b){return(new b4).tA(b,a.o,a.Q)}}(this)),g=z(),e=e.ka(f,g.s),f=b.r,g=b.da,h=(new pq).e(g);iq(Cq(),this.o.Cb(e),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua))}e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|
0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,k=g.j.length,l=h=0,p=c.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=c[h],h=1+h|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),b.r))}};d.GE=function(a,b,c,e,f){this.oa=a;this.Oq=b;this.o=c;this.U=e;this.Q=f;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=this.Oq.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.E,n(Fd))));return a.b()?Gd():a.c()};
d.$classData=q({wra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.MultipleExampleEmitter",{wra:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function b4(){this.Q=this.o=this.oe=null}b4.prototype=new r;b4.prototype.constructor=b4;d=b4.prototype;d.L=function(){return"NamedExampleEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.xra){var b=this.oe,c=a.oe;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.oe;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=B(this.oe.g,lh().$).G,b=b.b()?null:b.c(),c=Th(R(),b),b=(new My).e(a.da);(new plb).tA(this.oe,this.o,this.Q).Ob(b);var e=b.r,c=[c];if(0>e.x)throw(new X).e("0");var f=c.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),b.r))};d.tA=function(a,b,c){this.oe=a;this.o=b;this.Q=c;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.oe.E,n(Fd))};d.$classData=q({xra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.NamedExampleEmitter",{xra:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function k6(){this.yb=this.W=this.m=this.BV=this.HA=this.eh=this.tt=null}k6.prototype=new r;k6.prototype.constructor=k6;function qlb(){}qlb.prototype=k6.prototype;
function rlb(a,b){var c=yb(b).qa()?yb(b):b;if(Si(c)){var c=a.m,e=rh().hZ;b=b.k;a=a.W;var f=w();Cc(c,e,b,f,"File types in parameters must be declared in formData params",a.ga)}}d=k6.prototype;d.L=function(){return"Oas2ParameterParser"};d.H=function(){return 4};
function slb(a){aWa||(aWa=(new uX).a());var b=a.tt.Mk(),b=b.b()?(new Qx).wp(a.tt).c():b.c(),b=Ke(M(),b),b=(new VO).P((new Q).a(),b);S7(a,b);if(B(b.g,vn().$).G.b()){var c=Ej().$,e=Nh(new Oh,"default",(new N).a()),f=(M(),(new N).a()).Wb((new V2).a());Fh(b,c,e,f)}c=yc((new K).Y(a.W),"required");c.b()||(c=c.c(),e=c.i,f=kL(),e=!!L(e,f,a.m),f=b.E,tf(),c=c.ga,f.Wb(n1a(new s1,e,zf(0,Af(Bf(),c.vf,c.Ef,c.ag,c.fg)))));jx(new kx,b,a.W,G(),a.m).Pc();return b}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.V7){var b=this.tt,c=a.tt;(null===b?null===c:b.h(c))&&this.eh===a.eh?(b=this.HA,c=a.HA,b=null===b?null===c:b.h(c)):b=!1;return b?this.BV===a.BV:!1}return!1};d.K=function(a){switch(a){case 0:return this.tt;case 1:return this.eh;case 2:return this.HA;case 3:return this.BV;default:throw(new X).e(""+a);}};
function tlb(a,b){if(B(b.ca(),b.Ch()).G.b()){var c=a.BV.os("parameter"),e=(M(),(new N).a()).Wb((new Zx).a());Ue(b,c,e)}b.Qb(a.eh,b.Ub());if(yc((new K).Y(a.W),"name").b()){c=a.m;e=rh().Z8;b=b.k;a=a.W;var f=w();Cc(c,e,b,f,"'name' property is required in a parameter.",a.ga)}}d.u=function(){return U(W(),this)};
function ulb(a,b,c){if("body"===b){Tx();c.b()?b=w():(b=c.c(),tf(),b=b.ga,b=(new A).d(zf(0,Af(Bf(),b.vf,b.Ef,b.ag,b.fg))));b=vlb(a,b);var e=a.tt.Mk();a=e.b()?(new Qx).wp(a.tt).Mk():e;return coa(0,b,a)}if("formData"===b)return Tx(),c.b()?w():(b=c.c(),tf(),b=b.ga,(new A).d(zf(0,Af(Bf(),b.vf,b.Ef,b.ag,b.fg)))),b=wlb(a),e=a.tt.Mk(),a=e.b()?(new Qx).wp(a.tt).Mk():e,coa(0,b,a);if("query"===b||"header"===b||"path"===b)return Tx(),b=xlb(a),e=a.tt.Mk(),a=e.b()?(new Qx).wp(a.tt).Mk():e,Sx(0,b,a);var e=ulb,f;
f=yc((new K).Y(a.W),"schema");f.b()?f=w():(f.c(),f=(new A).d("body"));f=f.b()?"query":f.c();e=e(a,f,w());c.b()?f=w():(f=c.c(),f=(new A).d(Ke(M(),f.i)));f=f.b()?(M(),(new N).a()):f.c();var g=a.m,h=rh().jZ,k="Invalid parameter binding '"+b+"'";c.b()?c=w():(c=c.c(),c=(new A).d(c.i));a=c.b()?a.W:c.c();c=w();Cc(g,h,"",c,k,a.ga);a=e.zr;dn(a)?(c=Ej().df,g=B(a.g,Ej().df).G,g=Nh(new Oh,g.b()?null:g.c(),f),b=f.Wb((new E1).e(b)),Fh(a,c,g,b)):wn(a)&&(b=(new E1).e(b),ac(a,b));return e}
d.Yj=function(){null===this.yb&&this.yD();return this.yb};
function vlb(a,b){var c=slb(a);xO(a.m,c.k,a.W,"bodyParameter");var e=(new K).Y(a.W),f=Hv((new Cf).e("mediaType")),g=vn().Md;Bh(e,f,Ch(Dh(a,g,a.m),c));e=B(c.g,vn().Md);!eM(e)&&tlb(a,c);e=yc((new K).Y(a.W),"schema");e.b()||(f=e.c(),e=rV(sV(),f,t(new u,function(a,b){return function(c){c=S7(a,c);var e=b.k,f=c.Ub();c.Qb(e,f)}}(a,c)),Lx(Jx(),a.m)).wc(),e.b()||(e=e.c(),rlb(a,e),a=vn().Fc,g=oB(kB(),e,c.k,w()),f=Ke(M(),f),Fh(c,a,g,f),b.b()||(b=b.c(),e.ha().Wb((new G1).Ui(b))),(new A).d(e)));return c}
function ylb(a,b,c){var e=Hy();R();var f=b.i,g=a.m,h=qe();f=L(f,h,g);g=a.m.Pg();h=Sp().bs;g===h?e=Ey(e,f,"parameters"):(f=(new ph).e(f),e=Zo(f,e.lda));f=vIa(a.m.yl(),e,Nr());if(x(f))return f=f.i,a=Ke(M(),a.W),a=gL(f,e,a),M(),f=(new N).a(),e=Ue(a,e,f),H(z(),G()),cj(e,c),Sx(Tx(),a,(new A).d(b));if(w()===f){f=RIa(a.m.yl(),e);if(x(f))return c=f.i,Tx(),a=Ke(M(),a.W),coa(0,gL(c,e,a),(new A).d(b));if(w()===f){h=zlb(a.m,a.m.Xg,e);var k=a.m,f=Lx(Jx(),a.m),g=Alb(h),h=Blb(k,h);h.b()?f=w():(h=h.c(),k=lFa(),g=
T0a(k,h,g,f),g.b()?f=w():(g=g.c(),f=(new A).d(f.Oh.YV((Zf(),(new ag).d(g)),c,w(),(new Ie).a()).FL())));if(x(f))return b=f.i,e=b.CL,e.b()||(e=e.c(),f=a.HA,f.b()?a=w():(f=f.c(),a=(new A).d((new Eh).Vb(f,a.m).Hf())),a.b()||(a=a.c(),f=Ej().$,a=ff(e,f,a),H(z(),G()),(new A).d(cj(a,c)))),b;f=tra(vra(),b);S7(a,f);H(z(),G());cj(f,c);c=a.m;a=rh().JS;g=f.k;e="Cannot find parameter or payload reference "+e;h=w();Cc(c,a,g,h,e,b.ga);return Sx(Tx(),f,(new A).d(b))}}throw(new v).d(f);}
function S7(a,b){var c=!1;a:{if(os(b)&&(c=!0,a.HA.qa())){var c=Pg().$,e=a.HA;e.b()?a=w():(e=e.c(),a=(new A).d((new Eh).Vb(e,a.m).Hf()));a=a.c();ff(b,c,a);break a}if(c)c=(new K).Y(a.W),e=Pg().$,Bh(c,"name",$N(Ch(Dh(a,e,a.m),b),(new V2).a()));else{if(wn(b))if(a.HA.qa()){c=Ej().$;e=a.HA;e.b()?e=w():(e=e.c(),e=(new A).d((new Eh).Vb(e,a.m).Hf()));var e=e.c(),f=yc((new K).Y(a.W),"name");if(f.b())f=w();else{var g=f.c();M();f=ja((new Eh).Vb(g.i,a.m).Hf().t);tf();g=g.ga;f=j1a(new m1,f,zf(0,Af(Bf(),g.vf,g.Ef,
g.ag,g.fg)));f=(new A).d((new N).a().Wb(f))}f=f.b()?(M(),(new N).a()):f.c();Fh(b,c,e,f)}else c=(new K).Y(a.W),e=Ej().$,Bh(c,"name",Ch(Dh(a,e,a.m),b));else a.HA.qa()?(c=Ej().$,e=a.HA,e.b()?e=w():(e=e.c(),e=(new A).d((new Eh).Vb(e,a.m).Hf())),e=e.c(),ff(b,c,e)):(c=(new K).Y(a.W),e=Ej().$,Bh(c,"name",Ch(Dh(a,e,a.m),b)));tlb(a,b)}}return b}
d.FL=function(){var a=yc((new K).Y(this.W),"$ref");if(x(a))return ylb(this,a.i,this.eh);if(w()===a){a=yc((new K).Y(this.W),"in");if(x(a)&&(a=a.i,null!==a)){var b=a.i,c=zc(),b=L(b,c,this.m).ya;return ulb(this,b,(new A).d(a))}a=tra(vra(),this.W);S7(this,a);b=this.eh;H(z(),G());cj(a,b);return Sx(Tx(),a,(new A).d(this.W))}throw(new v).d(a);};d.yD=function(){null===this.yb&&(this.yb=yO())};
function wlb(a){var b=slb(a);xO(a.m,b.k,a.W,"parameter");var c=oV(new pV,a.tt,"schema",a.W,t(new u,function(a,b){return function(c){c=S7(a,c);var e=b.k,f=c.Ub();c.Qb(e,f)}}(a,b)),(new jV).dH("parameter",a.m),Lx(Jx(),a.m)).wc();if(c.b())c=w();else var e=c.c(),c=vn().Fc,e=oB(kB(),e,b.k,w()),f=Ke(M(),a.W),c=(new A).d(Fh(b,c,e,f));if(c.b()){c=a.m;e=rh().JS;f=b.k;a=a.W;var g=w();Cc(c,e,f,g,"Cannot find valid schema for parameter",a.ga)}b.E.Wb((new i1).a());return b}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function xlb(a){var b=Clb(a),c=oV(new pV,a.tt,"schema",a.W,t(new u,function(a,b){return function(a){M();var c=(new N).a();a=Ue(a,"schema",c);var c=b.k,e=a.Ub();a.Qb(c,e)}}(a,b)),(new jV).dH("parameter",a.m),Lx(Jx(),a.m)).wc();if(c.b())c=w();else var c=c.c(),e=Ej().Fc,f=Ke(M(),a.W),c=(new A).d(Fh(b,e,c,f));if(c.b()){c=a.m;e=rh().JS;f=b.k;a=a.W;var g=w();Cc(c,e,f,g,"Cannot find valid schema for parameter",a.ga)}return b}
d.eP=function(a,b,c,e,f){this.tt=a;this.eh=b;this.HA=c;this.BV=e;this.m=f;if(Ep(a))a=a.i.i,b=Pc(),f=L(a,b,f);else if(Hp(a))a=a.i,b=Pc(),f=L(a,b,f);else throw(new v).d(a);this.W=f;return this};
function Clb(a){vra();var b=a.tt.Mk(),b=b.b()?(new Qx).wp(a.tt).c():b.c(),b=tra(0,b);S7(a,b);var c=a.eh;H(z(),G());cj(b,c);c=Ej().kj;dj(b,c,!1);var c=(new K).Y(a.W),e=Ej().Fw;Bh(c,"name",Ch(Dh(a,e,a.m),b));c=(new K).Y(a.W);e=Ej().df;Bh(c,"in",Ch(Dh(a,e,a.m),b));c=(new K).Y(a.W);e=Ej().fb;Bh(c,"description",Ch(Dh(a,e,a.m),b));c=(new K).Y(a.W);e=Ej().kj;e=Ch(Dh(a,e,a.m),b);Bh(c,"required",$N(e,(new Xi).a()));xO(a.m,b.k,a.W,"parameter");jx(new kx,b,a.W,G(),a.m).Pc();return b}
d.$classData=q({V7:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas2ParameterParser",{V7:1,f:1,cXa:1,ig:1,A:1,w:1,q:1,n:1});function zjb(){AO.call(this);this.fs=this.ee=null}zjb.prototype=new BJa;zjb.prototype.constructor=zjb;d=zjb.prototype;d.L=function(){return"Oas2ServersParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ara&&Yj(this.ee,a.ee)){var b=this.fs;a=a.fs;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.ee;case 1:return this.fs;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Sb=function(){return this.m};
d.Pc=function(){if(Dlb(this.ee)){var a=null,a="",b=null,b="";M();var c=(new N).a(),e=yc((new K).Y(this.ee),"basePath");if(!e.b()){e=e.c();tf();b=e.ga;b=zf(0,Af(Bf(),b.vf,b.Ef,b.ag,b.fg));c.Wb((new b0).Ui(b));var b=e.i,f=qe(),f=b=L(b,f,this.m);if(!(0<=(f.length|0)&&"/"===f.substring(0,1))){var f=this.m,g=rh().w6,h=this.fs.k,e=e.i,k=w();Cc(f,g,h,k,"'basePath' property must start with '/'",e.ga);b="/"+b}}e=yc((new K).Y(this.ee),"host");e.b()||(a=e.c(),tf(),e=a.ga,e=zf(0,Af(Bf(),e.vf,e.Ef,e.ag,e.fg)),
c.Wb((new g0).Ui(e)),a=a.i,e=qe(),a=L(a,e,this.m));M();e=(new N).a();e=(new e6).P((new Q).a(),e);f=fn().Jf;b=Nh(new Oh,""+a+b,(new N).a());c=Fh(e,f,b,c);b=(new K).Y(this.ee);a=Hv((new Cf).e("serverDescription"));e=fn().fb;Bh(b,a,Ch(Dh(this,e,this.m),c));b=(new K).Y(this.ee);a=Hv((new Cf).e("baseUriParameters"));b=yc(b,a);b.b()||(b=b.c(),a=b.i,e=Pc(),a=g3(new h3,L(a,e,this.m),t(new u,function(a,b){return function(a){var c=b.k;H(z(),G());cj(a,c)}}(this,c)),Ix(Jx(),this.m)).fh(),e=t(new u,function(){return function(a){var b=
Ej().df;return Eb(a,b,"path")}}(this)),f=z(),e=a.ka(e,f.s),a=fn().lj,e=gr(new hr,e,Ke(M(),b.i)),b=Ke(M(),b),Fh(c,a,e,b));b=this.fs;a=Jn().Wh;e=z();f=(new GO).a();c=[ac(c,f)];c=gr(new hr,H(e,(new J).aa(c)),(M(),(new N).a()));ff(b,a,c)}CJa(this,Hv((new Cf).e("servers")))};d.y=function(){return Y(this)};function Dlb(a){var b=yc((new K).Y(a),"host");return(b.b()?yc((new K).Y(a),"basePath"):b).qa()}d.M=function(){return Z(this)};
d.$classData=q({Ara:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas2ServersParser",{Ara:1,gXa:1,f:1,ig:1,A:1,w:1,q:1,n:1});function Elb(){this.Gc=this.Q=this.o=this.oe=null}Elb.prototype=new r;Elb.prototype.constructor=Elb;d=Elb.prototype;d.L=function(){return"Oas3ExampleValuesEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Dra){var b=this.oe,c=a.oe;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.oe;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){if(yb(this.oe).qa()){var b=Hy(),c=B(this.oe.g,Db().wd).G,c=Gy(b,c.b()?null:c.c(),"examples");R();var b=this.kV(this.oe),e=Th(R(),b),b=(new My).e(a.da),f=b.r,g=b.da,h=(new pq).e(g);R();var k=Th(R(),"$ref");R();c=Th(R(),c);qq(h,k,c);T(f,lq(R(),rq(sq(),h.r,g),O().ua));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);var g=c.z,l=g.j.length,k=h=0,p=e.length|0}else{R();b=this.kV(this.oe);e=Th(R(),b);b=(new My).e(a.da);c=b.r;f=b.da;g=(new pq).e(f);
iq(Cq(),this.o.Cb(this.Gc),g);T(c,lq(R(),rq(sq(),g.r,f),O().ua));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);g=c.z;l=g.j.length;k=h=0;p=e.length|0}l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=e[h],h=1+h|0,k=1+k|0;c.x=f;T(a.r,iC(jC(),b.r))};
d.tA=function(a,b,c){this.oe=a;this.o=b;this.Q=c;var e=H(Wg(),G()),f=a.g,g=Dd(f,lh().Mp);g.b()||(g=g.c(),vh(e,Gh(Hh(),"summary",g,w(),this.Q)));g=Dd(f,lh().fb);g.b()||(g=g.c(),vh(e,Gh(Hh(),"description",g,w(),this.Q)));g=Dd(f,lh().iY);g.b()||(g=g.c(),vh(e,Gh(Hh(),"externalValue",g,w(),this.Q)));f=Dd(f,lh().Ho);if(!f.b()){var g=f.c(),f=Tw(new Uw,B(this.oe.g,lh().Ho),this.o,!1,pc(Os(),G()),this.Q.Si()),g=jq(Cq(),g.t.E,n(Fd)),h=O().Wa;vh(e,Vw(new Ww,"value",f,h,g))}Er(e,Mw(a,b,c).Ua());this.Gc=e;return this};
d.kV=function(a){a=B(a.g,lh().$).G;return a.b()?"default":a.c()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.oe.E,n(Fd))};d.$classData=q({Dra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas3ExampleValuesEmitter",{Dra:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function egb(){this.Q=this.U=this.o=this.Fy=null}egb.prototype=new r;egb.prototype.constructor=egb;d=egb.prototype;d.xA=function(a,b,c,e){this.Fy=a;this.o=b;this.U=c;this.Q=e;return this};
d.L=function(){return"Oas3LinkDeclarationEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Era){var b=this.Fy,c=a.Fy;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Fy;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"links"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f);this.Fy.X(t(new u,function(a,b){return function(c){var e=xTa(ATa(),c,a.o,a.U,a.Q);if(e.Fa()){R();c=B(c.g,po().$).G;c=c.b()?null:c.c();var f=Th(R(),c);c=(new My).e(b.da);var g=c.r,h=c.da,k=(new pq).e(h);iq(Cq(),a.o.Cb(e),k);T(g,lq(R(),rq(sq(),k.r,h),O().ua));e=c.r;f=[f];if(0>e.x)throw(new X).e("0");h=f.length|0;g=e.x+h|0;hC(e,g);Ca(e.z,0,e.z,h,e.x);for(var h=e.z,l=h.j.length,p=k=0,db=f.length|0,l=db<l?db:l,db=
h.j.length,l=l<db?l:db;k<l;)h.j[p]=f[k],k=1+k|0,p=1+p|0;e.x=g;T(b.r,iC(jC(),c.r))}}}(this,g)));T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,h=g.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=g.j.length,h=h<p?h:p;k<h;)g.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),c.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){var a=this.Fy.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.E,n(Fd))));return a.b()?Gd():a.c()};d.$classData=q({Era:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas3LinkDeclarationEmitter",{Era:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function yTa(){this.U=this.o=this.Ei=null}yTa.prototype=new r;yTa.prototype.constructor=yTa;d=yTa.prototype;d.xA=function(a,b,c){this.Ei=a;this.o=b;this.U=c;return this};d.L=function(){return"Oas3LinkParametersEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Fra){var b=this.Ei,c=a.Ei;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ei;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.Ei,c=t(new u,function(){return function(a){var b=B(a.g,so().ND).G,b=b.b()?null:b.c(),c=B(a.g,so().XF).G,c=c.b()?null:c.c();a=jq(Cq(),a.E,n(Fd));var e=O().Wa;return Bv(new Cv,b,c,e,a)}}(this)),e=z(),c=b.ka(c,e.s);R();var e=Th(R(),"parameters"),b=(new My).e(a.da),f=b.r,g=b.da,h=(new pq).e(g);iq(Cq(),this.o.Cb(c),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);for(var g=c.z,k=g.j.length,l=h=
0,p=e.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=e[h],h=1+h|0,l=1+l|0;c.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){Cq();var a=this.Ei.fa().E;return jq(0,a,n(Fd))};d.$classData=q({Fra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas3LinkParametersEmitter",{Fra:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Flb(){zO.call(this);this.Qc=this.yc=this.v0=this.LV=null}Flb.prototype=new AJa;Flb.prototype.constructor=Flb;d=Flb.prototype;
d.L=function(){return"Oas3OperationServersEmitter"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Gra){var b=this.LV,c=a.LV;(null===b?null===c:b.h(c))?(b=this.v0,c=a.v0,b=null===b?null===c:b.h(c)):b=!1;if(b&&this.yc===a.yc)return b=this.Qc,a=a.Qc,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.LV;case 1:return this.v0;case 2:return this.yc;case 3:return this.Qc;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.Ua=function(){var a=H(Wg(),G());this.XN("servers",B(this.LV.g,Zm().Wh),a);return a};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function xjb(a,b,c,e,f){var g=new Flb;g.LV=a;g.v0=b;g.yc=c;g.Qc=e;zO.prototype.PO.call(g,a,b,c,e,f);return g}d.$classData=q({Gra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas3OperationServersEmitter",{Gra:1,Zeb:1,W7:1,f:1,A:1,w:1,q:1,n:1});function z7(){AO.call(this);this.x0=this.c0=this.ee=null}
z7.prototype=new BJa;z7.prototype.constructor=z7;d=z7.prototype;d.L=function(){return"Oas3ServersParser"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Jra){if(Yj(this.ee,a.ee))var b=this.c0,c=a.c0,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.x0,a=a.x0,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ee;case 1:return this.c0;case 2:return this.x0;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.Sb=function(){return this.m};d.Pc=function(){var a=this.m.Km,b=aP();null!==a&&a===b&&CJa(this,"servers")};d.y=function(){return Y(this)};d.cH=function(a,b,c,e){this.ee=a;this.c0=b;this.x0=c;AO.prototype.cH.call(this,a,b,c,e);return this};d.M=function(){return Z(this)};d.$classData=q({Jra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas3ServersParser",{Jra:1,gXa:1,f:1,ig:1,A:1,w:1,q:1,n:1});function Glb(){this.Q=this.U=this.o=this.$D=null}
Glb.prototype=new r;Glb.prototype.constructor=Glb;d=Glb.prototype;d.L=function(){return"OasCallbackEmitter"};d.Ob=function(a){if(yb(this.$D).qa()){var b=yb(this.$D);b.b()||(b=b.c(),CN(new DN,b,B(this.$D.g,Db().wd).G,this.U,this.Q).Ob(a))}else{b=a.r;a=a.da;var c=(new pq).e(a),e=Cq(),f=z(),g;nKa||(nKa=(new bP).a());g=nKa;var h=B(this.$D.g,hn().XM);g=[Hlb(g,h,this.o,this.U,this.Q)];iq(e,H(f,(new J).aa(g)),c);T(b,lq(R(),rq(sq(),c.r,a),O().ua))}};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Mra){var b=this.$D,c=a.$D;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.$D;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.$D.E,n(Fd))};
d.$classData=q({Mra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasCallbackEmitter",{Mra:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function WV(){this.Q=this.E=this.U=this.o=this.iT=null}WV.prototype=new r;WV.prototype.constructor=WV;d=WV.prototype;d.L=function(){return"OasCallbacksEmitter"};
d.Ob=function(a){var b=a.r;a=a.da;var c=(new pq).e(a),e=this.iT,f=t(new u,function(a){return function(b){var c=B(b.g,hn().$).G,c=c.b()?null:c.c(),e=a.o,f=a.U,g=a.Q,E=new Glb;E.$D=b;E.o=e;E.U=f;E.Q=g;e=O().Wa;Cq();return Vw(new Ww,c,E,e,jq(0,b.E,n(Fd)))}}(this)),g=z(),e=e.ka(f,g.s);iq(Cq(),this.o.Cb(e),c);T(b,lq(R(),rq(sq(),c.r,a),O().ua))};d.H=function(){return 4};d.HE=function(a,b,c,e,f){this.iT=a;this.o=b;this.U=c;this.E=e;this.Q=f;return this};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Nra){var b=this.iT,c=a.iT;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;return b?this.E===a.E:!1}return!1};d.K=function(a){switch(a){case 0:return this.iT;case 1:return this.o;case 2:return this.U;case 3:return this.E;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.E,n(Fd))};d.$classData=q({Nra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasCallbacksEmitter",{Nra:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function dW(){this.Q=this.E=this.U=this.o=this.Qo=null}dW.prototype=new r;dW.prototype.constructor=dW;d=dW.prototype;d.L=function(){return"OasContentPayloadsEmitter"};
d.Ob=function(a){var b=a.r;a=a.da;var c=(new pq).e(a),e=this.Qo,f=t(new u,function(a){return function(b){var c=B(b.g,vn().Md).G,c=c.b()?null:c.c(),e=(new Ilb).GU(b,a.o,a.U,a.Q),f=O().Wa;Cq();return Vw(new Ww,c,e,f,jq(0,b.E,n(Fd)))}}(this)),g=z(),e=e.ka(f,g.s);iq(Cq(),this.o.Cb(e),c);T(b,lq(R(),rq(sq(),c.r,a),O().ua))};d.H=function(){return 4};d.HE=function(a,b,c,e,f){this.Qo=a;this.o=b;this.U=c;this.E=e;this.Q=f;return this};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Pra){var b=this.Qo,c=a.Qo;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;return b?this.E===a.E:!1}return!1};d.K=function(a){switch(a){case 0:return this.Qo;case 1:return this.o;case 2:return this.U;case 3:return this.E;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.E,n(Fd))};d.$classData=q({Pra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasContentPayloadsEmitter",{Pra:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function cgb(){this.Q=this.U=this.o=this.Wg=null}cgb.prototype=new r;cgb.prototype.constructor=cgb;d=cgb.prototype;d.xA=function(a,b,c,e){this.Wg=a;this.o=b;this.U=c;this.Q=e;return this};d.L=function(){return"OasDeclaredHeadersEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Qra){var b=this.Wg,c=a.Wg;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Wg;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"headers"),c=(new My).e(a.da),e=this.Wg,f=t(new u,function(a){return function(b){return WHa(b,a.o,a.U,a.Q)}}(this)),g=z(),e=e.ka(f,g.s),f=c.r,g=c.da,h=(new pq).e(g);iq(Cq(),this.o.Cb(e),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,k=g.j.length,l=h=0,p=b.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=b[h],h=1+h|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),c.r))};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Oa=function(){var a=this.Wg.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.E,n(Fd))));return a.b()?Gd():a.c()};d.$classData=q({Qra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasDeclaredHeadersEmitter",{Qra:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Jlb(){this.Q=this.U=this.o=this.hK=null}Jlb.prototype=new r;Jlb.prototype.constructor=Jlb;d=Jlb.prototype;d.L=function(){return"OasEncodingEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Rra){var b=this.hK,c=a.hK;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.hK;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.hK.g;R();var c=B(this.hK.g,ln().aG).G,c=c.b()?null:c.c(),e=Th(R(),c),c=(new My).e(a.da),f=c.r,g=c.da,h=(new pq).e(g),k=H(Wg(),G()),l=Dd(b,ln().tl);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,"contentType",l,w()))));l=Dd(b,ln().Qg);l.b()||(l=l.c(),(new A).d(vh(k,(new gV).Qq("headers",l,this.o,this.U,this.Q))));l=Dd(b,ln().eu);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,"style",l,w()))));l=Dd(b,ln().hv);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,"explode",l,w()))));b=Dd(b,ln().bv);
b.b()||(b=b.c(),(new A).d(vh(k,Ih(new Jh,"allowReserved",b,w()))));iq(Cq(),this.o.Cb(k),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));b=c.r;e=[e];if(0>b.x)throw(new X).e("0");g=e.length|0;f=b.x+g|0;hC(b,f);Ca(b.z,0,b.z,g,b.x);for(var g=b.z,l=g.j.length,k=h=0,p=e.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=e[h],h=1+h|0,k=1+k|0;b.x=f;T(a.r,iC(jC(),c.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.hK.E,n(Fd))};
d.$classData=q({Rra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasEncodingEmitter",{Rra:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Klb(){this.Q=this.U=this.o=this.Ca=this.oa=null}Klb.prototype=new r;Klb.prototype.constructor=Klb;function Llb(a,b,c,e){b=b.t.t.Tb;a=t(new u,function(a,b,c){return function(e){var l=a.Q,p=new Jlb;p.hK=e;p.o=b;p.U=c;p.Q=l;return p}}(a,c,e));e=z();b=b.ka(a,e.s);return c.Cb(b)}d=Klb.prototype;d.L=function(){return"OasEncodingsEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Tra){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;if(b&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;case 3:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=Llb(this,this.Ca,this.o,this.U);R();var c=this.oa,e=Th(R(),c),c=(new My).e(a.da),f=c.r,g=c.da,h=(new pq).e(g);iq(Cq(),b,h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));b=c.r;e=[e];if(0>b.x)throw(new X).e("0");g=e.length|0;f=b.x+g|0;hC(b,f);Ca(b.z,0,b.z,g,b.x);for(var g=b.z,k=g.j.length,l=h=0,p=e.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=e[h],h=1+h|0,l=1+l|0;b.x=f;T(a.r,iC(jC(),c.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Qq=function(a,b,c,e,f){this.oa=a;this.Ca=b;this.o=c;this.U=e;this.Q=f;return this};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({Tra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasEncodingsEmitter",{Tra:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Mlb(){this.Q=this.U=this.o=this.Gi=null}Mlb.prototype=new r;Mlb.prototype.constructor=Mlb;d=Mlb.prototype;d.L=function(){return"OasHeaderEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Vra){var b=this.Gi,c=a.Gi;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Gi;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fK=function(a,b){a=Dd(a,Ej().$).c();IT(new JT,a.t.t,O().Wa).Ob(b)};d.Va=function(a){yb(this.Gi).qa()&&!Fy(this.Q.of)?this.haa(a):this.e0(a)};
d.y=function(){return Y(this)};
d.e0=function(a){R();var b=B(this.Gi.g,Ej().$).G.c(),c=Th(R(),b),b=(new My).e(a.da);if(Fy(this.Q.of))J8a(this.Gi,this.o,this.U,!0,this.Q).Ob(b);else{var e=b.r,f=b.da,g=(new pq).e(f),h=H(Wg(),G()),k=this.Gi.g;if(Wa().Ia(B(this.Gi.g,Ej().Fc)).qa())var l=Wa(),p=B(this.Gi.g,Ej().Fc),l=l.Ia(B(p.ca(),Pg().fb)).b();else l=!1;l&&(l=Dd(k,Ej().fb),l.b()||(l=l.c(),(new A).d(vh(h,Gh(Hh(),"description",l,w(),this.Q)))));l=Dd(k,Ej().kj);l=l.b()||Yh(l.c().t.E,n(p3))?l:w();l.b()||(l=l.c(),(new A).d(vh(h,Gh(Hh(),
"x-amf-required",l,w(),this.Q))));k=Dd(k,Ej().Fc);if(!k.b()){k.c();var k=B(this.Gi.g,Ej().Fc),l=this.o,p=this.U,y=G(),I=G(),E=G();(new A).d(Er(h,nx(new ox,k,l,y,p,I,E,!0,this.Q).Yw()))}iq(Cq(),this.o.Cb(h),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua))}e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),b.r))};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.Gi.E,n(Fd))};function WHa(a,b,c,e){var f=new Mlb;f.Gi=a;f.o=b;f.U=c;f.Q=e;return f}d.haa=function(a){var b=yb(this.Gi).c().ca(),c=(new My).e(a.da);this.fK(b,c);var b=(new My).e(a.da),e=yb(this.Gi);e.b()||(e=e.c(),ax(this.Q.of.pF(),e,B(this.Gi.g,Db().wd).G,this.U).Ob(b));c=UQ(c.r,0);qq(a,c,UQ(b.r,0))};d.$classData=q({Vra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasHeaderEmitter",{Vra:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function Nlb(){this.Q=this.U=this.o=this.QE=null}Nlb.prototype=new r;Nlb.prototype.constructor=Nlb;d=Nlb.prototype;d.L=function(){return"OasLinkEmitter"};d.Ob=function(a){if(yb(this.QE).qa()){var b=yb(this.QE);b.b()||(b=b.c(),CN(new DN,b,B(this.QE.g,Db().wd).G,this.U,this.Q).Ob(a))}else{var b=xTa(ATa(),this.QE,this.o,this.U,this.Q),c=a.r;a=a.da;var e=(new pq).e(a);iq(Cq(),this.o.Cb(b),e);T(c,lq(R(),rq(sq(),e.r,a),O().ua))}};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Yra){var b=this.QE,c=a.QE;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.QE;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.QE.E,n(Fd))};
d.$classData=q({Yra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasLinkEmitter",{Yra:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function Olb(){this.Q=this.E=this.U=this.o=this.Fy=null}Olb.prototype=new r;Olb.prototype.constructor=Olb;d=Olb.prototype;d.L=function(){return"OasLinksEmitter"};
d.Ob=function(a){var b=a.r;a=a.da;var c=(new pq).e(a),e=this.Fy,f=t(new u,function(a){return function(b){var c=B(b.g,po().$).G,c=c.b()?null:c.c(),e=a.o,f=a.U,g=a.Q,E=new Nlb;E.QE=b;E.o=e;E.U=f;E.Q=g;e=O().Wa;Cq();return Vw(new Ww,c,E,e,jq(0,b.E,n(Fd)))}}(this)),g=z(),e=e.ka(f,g.s);iq(Cq(),this.o.Cb(e),c);T(b,lq(R(),rq(sq(),c.r,a),O().ua))};d.H=function(){return 4};d.HE=function(a,b,c,e,f){this.Fy=a;this.o=b;this.U=c;this.E=e;this.Q=f;return this};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.$ra){var b=this.Fy,c=a.Fy;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;return b?this.E===a.E:!1}return!1};d.K=function(a){switch(a){case 0:return this.Fy;case 1:return this.o;case 2:return this.U;case 3:return this.E;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.E,n(Fd))};d.$classData=q({$ra:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasLinksEmitter",{$ra:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function Plb(){this.l=this.U=this.Lu=null}Plb.prototype=new r;Plb.prototype.constructor=Plb;function F8a(a,b,c){var e=new Plb;e.Lu=b;e.U=c;if(null===a)throw Lb(Mb(),null);e.l=a;return e}d=Plb.prototype;d.L=function(){return"OasParameterEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.bsa&&a.l===this.l){var b=this.Lu,c=a.Lu;if(null===b?null===c:b.h(c))return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Lu;case 1:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){if(this.Lu.Fa()||this.l.Qo.Fa()){R();var b=this.l.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new My).e(f);tq(Cq(),I8a(this.l,this.Lu,this.l.o,this.U),g);R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=b.r;c=[c];if(0>e.x)throw(new X).e("0");f=c.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),b.r))}};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Oa=function(){var a=this.Lu.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.E,n(Fd))));return a.b()?(a=this.l.Qo.pc(),a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.E,n(Fd)))),a.b()?Gd():a.c()):a.c()};d.$classData=q({bsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasParametersEmitter$OasParameterEmitter",{bsa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function D3(){this.l=this.ML=this.oa=null}D3.prototype=new r;D3.prototype.constructor=D3;d=D3.prototype;d.L=function(){return"XRamlParameterEmitter"};
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.csa&&a.l===this.l&&this.oa===a.oa){var b=this.ML;a=a.ML;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.ML;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){if(this.ML.Fa()){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=Cq(),k=this.ML,l=t(new u,function(a){return function(b){return(new KU).a1(b,a.l.o,G(),(new v1).Ci(a.l.Q.Si(),yN(),(new ob).a()))}}(this)),p=z();iq(h,k.ka(l,p.s),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+
h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),b.r))}};function H8a(a,b,c,e){a.oa=c;a.ML=e;if(null===b)throw Lb(Mb(),null);a.l=b;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=this.ML.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.E,n(Fd))));return a.b()?Gd():a.c()};d.$classData=q({csa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasParametersEmitter$XRamlParameterEmitter",{csa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function Ilb(){this.Q=this.U=this.o=this.fe=null}Ilb.prototype=new r;Ilb.prototype.constructor=Ilb;d=Ilb.prototype;d.L=function(){return"OasPayloadEmitter"};
d.Ob=function(a){var b=a.r;a=a.da;var c=(new pq).e(a),e=this.fe.g,f=H(Wg(),G());if(Fy(this.Q.of)){var g=Dd(e,vn().Vc);g.b()||(g=g.c(),(new A).d(vh(f,ITa(LTa(),"examples",g,this.o,this.Q))));g=Dd(e,vn().YI);g.b()||(g=g.c(),(new A).d(vh(f,(new Klb).Qq("encoding",g,this.o,this.U,this.Q))))}if(wjb(this.Q.of)){g=Dd(e,vn().$);if(!g.b()){var g=g.c(),h=Zb(g.t.E,n(Q8a));if(x(h))var h=h.i,g=h.BL,h=h.cc.Dd,k=O().Wa,g=vh(f,Bv(new Cv,"name",g,k,h));else g=vh(f,Ih(new Jh,"name",g,w()));(new A).d(g)}g=Dd(e,vn().Md);
g.b()||(g=g.c(),(new A).d(vh(f,Ih(new Jh,"mediaType",g,w()))))}e=Dd(e,vn().Fc);e.b()||(e=e.c(),(new A).d(Yh(e.t.t.ha(),n(uQ))?void 0:vh(f,(new Y5).qA(e,this.o,this.U,this.Q))));Er(f,Mw(this.fe,this.o,this.Q).Ua());iq(Cq(),this.o.Cb(f),c);T(b,lq(R(),rq(sq(),c.r,a),O().ua))};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.gsa){var b=this.fe,c=a.fe;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.fe;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.GU=function(a,b,c,e){this.fe=a;this.o=b;this.U=c;this.Q=e;return this};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.fe.E,n(Fd))};d.$classData=q({gsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasPayloadEmitter",{gsa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});
function Qlb(){this.Q=this.U=this.o=this.Qo=this.oa=null}Qlb.prototype=new r;Qlb.prototype.constructor=Qlb;d=Qlb.prototype;d.L=function(){return"OasPayloadsEmitter"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.jsa){if(this.oa===a.oa)var b=this.Qo,c=a.Qo,b=null===b?null===c:b.h(c);else b=!1;if(b&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Qo;case 2:return this.o;case 3:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new My).e(f),h=Cq(),k=this.o,l=this.Qo,p=t(new u,function(a){return function(b){return(new Ilb).GU(b,a.o,a.U,a.Q)}}(this)),y=z();tq(h,k.Cb(l.ka(p,y.s)),g);R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=b.r;c=[c];if(0>e.x)throw(new X).e("0");f=c.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);f=e.z;l=f.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=f.j.length;for(l=l<p?l:p;h<l;)f.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=
g;T(a.r,iC(jC(),b.r))};d.cP=function(a,b,c,e,f){this.oa=a;this.Qo=b;this.o=c;this.U=e;this.Q=f;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return this.Qo.xb(t(new u,function(){return function(a){a=Zb(a.E,n(Fd));return a.b()?!1:!a.c().cc.Dd.zy()}}(this))).ae(Gd(),qd(function(){return function(a,b){b=Zb(b.E,n(Fd));b.b()?b=w():(b=b.c(),b=(new A).d(b.cc.Dd));if(b.b())var c=!0;else c=b.c(),c=a.zy()||0>a.eE(c);b=c?b:w();return b.b()?a:b.c()}}(this)))};
d.$classData=q({jsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasPayloadsEmitter",{jsa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Rlb(){this.Q=this.U=this.o=this.So=null}Rlb.prototype=new r;Rlb.prototype.constructor=Rlb;d=Rlb.prototype;d.L=function(){return"OasResponseEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ksa){var b=this.So,c=a.So;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.So;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.So.g,c=(new My).e(a.da),e=Dd(b,Bn().$);e.b()?e=w():(e=e.c(),e=(new A).d(e.t.t));IT(new JT,e.b()?Nh(new Oh,"default",(new N).a()):e.c(),O().Wa).Ob(c);e=(new My).e(a.da);if(yb(this.So).qa())this.Q.gL(this.So).Ob(e);else{var f=e.r,g=e.da,h=(new pq).e(g),k=H(Wg(),G()),l=Dd(b,Bn().fb);if(l.b()){var l=Bn().fb,p=Nh(new Oh,"",(new N).a());M();var y=(new N).a(),l=(new A).d(Rh(new Sh,l,Ph(new Qh,p,y)))}l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,"description",l,w()))));l=Dd(b,yn().Qg);
l.b()||(l=l.c(),(new A).d(vh(k,(new gV).Qq("headers",l,this.o,this.U,this.Q))));Fy(this.Q.of)&&(l=this.So.g.Pb,p=zx(),p=Va(p),y=Ce().s,l=De(l,p,y).Ib(t(new u,function(){return function(a){a=a.xc;var b=Bn().mf;return null===a?null===b:a.h(b)}}(this))),l.b()||(l=l.c(),p=VV(l),vh(k,Vw(new Ww,"content",(new dW).HE(p,this.o,this.U,l.t.E,this.Q),O().Wa,Gd()))),l=this.So.g.Pb,p=zx(),p=Va(p),y=Ce().s,l=De(l,p,y).Ib(t(new u,function(){return function(a){a=a.xc;var b=Bn().jN;return null===a?null===b:a.h(b)}}(this))),
l.b()||(l=l.c(),p=VV(l),vh(k,Vw(new Ww,"links",(new Olb).HE(p,this.o,this.U,l.t.E,this.Q),O().Wa,Gd()))));wjb(this.Q.of)&&(l=CTa(FTa(),B(this.So.g,Bn().mf)),p=l.$n,p.b()||(p=p.c(),y=Dd(p.g,vn().Md),y.b()||(y=y.c(),(new A).d(vh(k,Ih(new Jh,Hv((new Cf).e("mediaType")),y,w())))),p=Dd(p.g,vn().Fc),p.b()||(p=p.c(),(new A).d(Yh(p.t.t.ha(),n(uQ))?void 0:vh(k,(new Y5).qA(p,this.o,this.U,this.Q))))),l.EH.Fa()&&vh(k,(new Qlb).cP(Hv((new Cf).e("responsePayloads")),l.EH,this.o,this.U,this.Q)));b=Dd(b,Bn().Vc);
b.b()||(b=b.c(),(new A).d(vh(k,ITa(LTa(),"examples",b,this.o,this.Q))));Er(k,Mw(this.So,this.o,this.Q).Ua());iq(Cq(),this.o.Cb(k),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua))}c=UQ(c.r,0);qq(a,c,UQ(e.r,0))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function Slb(a,b,c,e){var f=new Rlb;f.So=a;f.o=b;f.U=c;f.Q=e;return f}d.Oa=function(){return jq(Cq(),this.So.E,n(Fd))};
d.$classData=q({ksa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasResponseEmitter",{ksa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Tlb(){this.Q=this.o=this.oe=null}Tlb.prototype=new r;Tlb.prototype.constructor=Tlb;d=Tlb.prototype;d.L=function(){return"OasResponseExampleEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.lsa){var b=this.oe,c=a.oe;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.oe;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=Dd(this.oe.g,lh().Ho);if(b.b()){if(b=B(this.oe.g,jh().Sd).G,!b.b()){var c=b.c();R();var b=this.kV(this.oe),e=Th(R(),b),b=(new My).e(a.da);(new R7).e(c).Ob(b);c=b.r;e=[e];if(0>c.x)throw(new X).e("0");var f=e.length|0,g=c.x+f|0;hC(c,g);Ca(c.z,0,c.z,f,c.x);for(var f=c.z,h=f.j.length,k=0,l=0,p=e.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=e[k],k=1+k|0,l=1+l|0;c.x=g;T(a.r,iC(jC(),b.r))}}else{b.c();R();b=this.kV(this.oe);e=Th(R(),b);b=(new My).e(a.da);Tw(new Uw,B(this.oe.g,
lh().Ho),this.o,!1,pc(Os(),G()),this.Q.Si()).Ob(b);c=b.r;e=[e];if(0>c.x)throw(new X).e("0");f=e.length|0;g=c.x+f|0;hC(c,g);Ca(c.z,0,c.z,f,c.x);f=c.z;h=f.j.length;l=k=0;p=e.length|0;h=p<h?p:h;p=f.j.length;for(h=h<p?h:p;k<h;)f.j[l]=e[k],k=1+k|0,l=1+l|0;c.x=g;T(a.r,iC(jC(),b.r))}};d.tA=function(a,b,c){this.oe=a;this.o=b;this.Q=c;return this};d.kV=function(a){if(Fy(this.Q.of))return a=B(a.g,lh().$).G,a.b()?null:a.c();a=B(a.g,lh().Md).G;return a.b()?null:a.c()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.oe.E,n(Fd))};d.$classData=q({lsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasResponseExampleEmitter",{lsa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function LV(){this.Q=this.o=this.Oq=this.oa=null}LV.prototype=new r;LV.prototype.constructor=LV;d=LV.prototype;d.L=function(){return"OasResponseExamplesEmitter"};d.H=function(){return 3};d.eH=function(a,b,c,e){this.oa=a;this.Oq=b;this.o=c;this.Q=e;return this};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.nsa){if(this.oa===a.oa)var b=this.Oq,c=a.Oq,b=null===b?null===c:b.h(c);else b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Oq;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){if(this.Oq.Fa()){if(Fy(this.Q.of)){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=Cq(),k=this.o,l=this.Oq,p=t(new u,function(a){return function(b){return(new Elb).tA(b,a.o,a.Q)}}(this)),y=z()}else R(),b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=Cq(),k=this.o,l=this.Oq,p=t(new u,function(a){return function(b){return(new Tlb).tA(b,a.o,a.Q)}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=
[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),b.r))}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=this.Oq.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.E,n(Fd))));return a.b()?Gd():a.c()};
d.$classData=q({nsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasResponseExamplesEmitter",{nsa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function IV(){this.Q=this.o=this.fI=null}IV.prototype=new r;IV.prototype.constructor=IV;d=IV.prototype;d.L=function(){return"OasServerEmitter"};
d.Ob=function(a){var b=H(Wg(),G()),c=this.fI.g,e=Dd(c,fn().Jf);e.b()||(e=e.c(),(new A).d(vh(b,Ih(new Jh,"url",e,w()))));e=Dd(c,fn().fb);e.b()||(e=e.c(),(new A).d(vh(b,Ih(new Jh,"description",e,w()))));c=Dd(c,fn().lj);c.b()||(c=c.c(),(new A).d(vh(b,(new Ulb).XG(c,this.o,this.Q))));Er(b,Mw(this.fI,this.o,this.Q).Ua());c=a.r;a=a.da;e=(new pq).e(a);iq(Cq(),this.o.Cb(b),e);T(c,lq(R(),rq(sq(),e.r,a),O().ua))};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.qsa){var b=this.fI,c=a.fI;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.fI;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.fI.E,n(Fd))};
d.$classData=q({qsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasServerEmitter",{qsa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function Vlb(){this.Q=this.o=this.$u=null}Vlb.prototype=new r;Vlb.prototype.constructor=Vlb;d=Vlb.prototype;d.L=function(){return"OasServerVariableEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ssa){var b=this.$u,c=a.$u;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.$u;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=B(this.$u.g,Ej().$).G,b=b.b()?null:b.c(),c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=Cq(),k=this.$u,l=H(Wg(),G()),k=B(k.g,Ej().Fc),p=k.ca(),y=Dd(p,Pg().fb);y.b()||(y=y.c(),(new A).d(vh(l,Ih(new Jh,"description",y,w()))));y=Dd(p,Pg().Kg);y.b()||(y=y.c(),(new A).d(vh(l,$ma(y.t,this.o,this.Q))));p=Dd(p,Pg().vh);if(x(p))p=p.i,k=Tw(new Uw,B(k.ca(),Pg().vh),this.o,!1,pc(Os(),G()),this.Q.Si()),p=jq(Cq(),p.t.E,n(Fd)),y=O().Wa,vh(l,Vw(new Ww,"default",k,y,p));else if(w()===
p)vh(l,Bv(new Cv,"default","",O().Wa,Gd()));else throw(new v).d(p);iq(h,l,g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;k=g.j.length;l=h=0;p=c.length|0;k=p<k?p:k;p=g.j.length;for(k=k<p?k:p;h<k;)g.j[l]=c[h],h=1+h|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.$u.E,n(Fd))};
d.$classData=q({ssa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasServerVariableEmitter",{ssa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Ulb(){this.Q=this.o=this.Ca=null}Ulb.prototype=new r;Ulb.prototype.constructor=Ulb;d=Ulb.prototype;d.L=function(){return"OasServerVariablesEmitter"};d.XG=function(a,b,c){this.Ca=a;this.o=b;this.Q=c;return this};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.tsa){var b=this.Ca,c=a.Ca;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=VV(this.Ca),c=b.Cd(t(new u,function(){return function(a){return!eUa(hUa(),a)}}(this)));R();var e=Th(R(),"variables"),f=(new My).e(a.da),g=f.r,h=f.da,k=(new pq).e(h);iq(Cq(),Wlb(this,b),k);T(g,lq(R(),rq(sq(),k.r,h),O().ua));b=f.r;e=[e];if(0>b.x)throw(new X).e("0");h=e.length|0;g=b.x+h|0;hC(b,g);Ca(b.z,0,b.z,h,b.x);for(var h=b.z,l=h.j.length,p=k=0,y=e.length|0,l=y<l?y:l,y=h.j.length,l=l<y?l:y;k<l;)h.j[p]=e[k],k=1+k|0,p=1+p|0;b.x=g;T(a.r,iC(jC(),f.r));c&&(c=Hv((new Cf).e("parameters")),
f=this.Ca,b=this.o,e=H(z(),G()),g=this.Q,(new gV).Qq(c,f,b,e,(new OU).Ci(g.Si(),g.Sy,(new ob).a())).Va(a))};function Wlb(a,b){var c=a.o;a=t(new u,function(a){return function(b){var c=a.o,e=a.Q,l=new Vlb;l.$u=b;l.o=c;l.Q=e;return l}}(a));var e=z();return c.Cb(b.ka(a,e.s))}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.t.ha(),n(Fd))};
d.$classData=q({tsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasServerVariablesEmitter",{tsa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Xlb(){this.U=this.o=this.Gi=null;this.pG=!1;this.Q=null}Xlb.prototype=new r;Xlb.prototype.constructor=Xlb;d=Xlb.prototype;d.L=function(){return"ParameterEmitter"};d.H=function(){return 4};
d.Ob=function(a){if(yb(this.Gi).qa()){var b=this.Q;if(this.pG)var c=Hy(),e=B(this.Gi.g,Db().wd).G,c=Gy(c,e.b()?null:e.c(),"headers");else c=Hy(),e=B(this.Gi.g,Db().wd).G,c=Goa(c,e.b()?null:e.c(),this.Q);Dv(b,a,c)}else{b=H(Wg(),G());c=this.Gi.g;this.pG||(e=Dd(c,Ej().Fw),e=e.b()?Dd(c,Ej().$):e,e.b()||(e=e.c(),(new A).d(vh(b,Ih(new Jh,"name",e,w())))));e=Dd(c,Ej().fb);e.b()||(e=e.c(),(new A).d(vh(b,Ih(new Jh,"description",e,w()))));e=Dd(c,Ej().kj);if(e.b())var f=!0;else f=e.c(),Ylb(f)?f=!0:(f=B(this.Gi.g,
Ej().kj),f=gd(f));e=f?e:w();e.b()||(e=e.c(),(new A).d(vh(b,Ih(new Jh,"required",e,w()))));this.pG||(e=Dd(c,Ej().df),e.b()||(e=e.c(),(new A).d(vh(b,Gha(Iha(),"in",Ej().df,Zlb(e),e.t.E)))));e=Dd(c,Ej().Fc);if(!e.b())if(e=e.c(),Fy(this.Q.of)?f=!0:(f=B(this.Gi.g,Ej().df),f=Xb(f,"body")),f)vh(b,(new Y5).qA(e,this.o,this.U,this.Q)),Er(b,Mw(this.Gi,this.o,this.Q).Ua());else{var e=e.t.t,f=this.o,g=z(),h=[Pg().fb,Pg().gd];Er(b,nx(new ox,e,f,H(g,(new J).aa(h)),this.U,G(),G(),!1,this.Q).Yw())}e=this.Q.Pg();
f=Sp().bs;e===f&&(e=H(Wg(),G()),f=Dd(c,Ej().gp),f.b()||(f=f.c(),(new A).d(vh(e,Ih(new Jh,"deprecated",f,w())))),f=Dd(c,Ej().IF),f.b()?g=!0:(g=f.c(),g=Ylb(g)),f=g?f:w(),f.b()||(f=f.c(),(new A).d(vh(e,Ih(new Jh,"allowEmptyValue",f,w())))),f=Dd(c,Ej().eu),f.b()?g=!0:(g=f.c(),g=Ylb(g)),f=g?f:w(),f.b()||(f=f.c(),(new A).d(vh(e,Ih(new Jh,"style",f,w())))),f=Dd(c,Ej().hv),f.b()?g=!0:(g=f.c(),g=Ylb(g)),f=g?f:w(),f.b()||(f=f.c(),(new A).d(vh(e,Ih(new Jh,"explode",f,w())))),f=Dd(c,Ej().bv),f.b()?g=!0:(g=f.c(),
g=Ylb(g)),f=g?f:w(),f.b()||(f=f.c(),(new A).d(vh(e,Ih(new Jh,"allowReserved",f,w())))),f=Dd(c,Ej().mf),f.b()||(g=f.c(),f=VV(g),g=g.t.E,f=(new dW).HE(f,this.o,this.U,g,this.Q),g=jq(Cq(),g,n(Fd)),h=O().Wa,(new A).d(vh(e,Vw(new Ww,"content",f,h,g)))),c=Dd(c,vn().Vc),c.b()||(c=c.c(),(new A).d(vh(e,ITa(LTa(),"examples",c,this.o,this.Q)))),Er(b,e));c=a.r;a=a.da;e=(new pq).e(a);iq(Cq(),this.o.Cb(b),e);T(c,lq(R(),rq(sq(),e.r,a),O().ua))}};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.usa){var b=this.Gi,c=a.Gi;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;return b?this.pG===a.pG:!1}return!1};d.K=function(a){switch(a){case 0:return this.Gi;case 1:return this.o;case 2:return this.U;case 3:return this.pG;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function Zlb(a){var b=Zb(a.t.E,n($lb));if(x(b))return b.i.t;if(w()===b)return a.t.t.u();throw(new v).d(b);}function J8a(a,b,c,e,f){var g=new Xlb;g.Gi=a;g.o=b;g.U=c;g.pG=e;g.Q=f;return g}d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.Gi)),a=zI().Ga(a,yI(zI(),this.o)),a=zI().Ga(a,yI(zI(),this.U)),a=zI().Ga(a,this.pG?1231:1237);return zI().Wd(a,4)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Gi.E,n(Fd))};function Ylb(a){return Yh(a.t.E,n(p3))}
d.$classData=q({usa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.ParameterEmitter",{usa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function E3(){this.Q=this.U=this.o=this.fe=null}E3.prototype=new r;E3.prototype.constructor=E3;function amb(a){a=Wa().Ia(a);a=a.b()?w():Zb(a.c().ha(),n(bmb));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()}d=E3.prototype;d.L=function(){return"PayloadAsParameterEmitter"};d.H=function(){return 3};
function cmb(a,b,c){var e=c.r;c=c.da;var f=(new pq).e(c),g=H(Wg(),G()),h=b.ea,k=Dd(h,ao().$);if(x(k))vh(g,Ih(new Jh,"name",k.i,w()));else if(w()===k)dmb(a,g);else throw(new v).d(k);h=Dd(h,ao().fb);h.b()||(h=h.c(),(new A).d(vh(g,Ih(new Jh,"description",h,w()))));h=amb(b);k=O().Wa;vh(g,Bv(new Cv,"in","formData",k,h));var h=a.o,k=z(),l=[Pg().fb];Er(g,nx(new ox,b,h,H(k,(new J).aa(l)),a.U,G(),G(),!1,a.Q).Yw());Er(g,Mw(a.fe,a.o,a.Q).Ua());iq(Cq(),a.o.Cb(g),f);T(e,lq(R(),rq(sq(),f.r,c),O().ua))}
d.Ob=function(a){if(yb(this.fe).qa()){var b=this.Q,c=Hy(),e=B(this.fe.g,Db().wd).G;Dv(b,a,Goa(c,e.b()?null:e.c(),this.Q))}else b=B(this.fe.g,vn().Fc),Si(b)?cmb(this,b,a):bi(b)&&Zb(this.fe.E,n(boa)).qa()?(B(b.ea,ci().Rg).Fa()?B(b.ea,ci().Rg).X(t(new u,function(a,b){return function(c){var e=b.r,l=b.da,p=(new pq).e(l),y=H(Wg(),G()),I=Dd(c.ea,rj().Uh),I=I.b()||Yh(I.c().t.t.E,n(p3))?I:w();if(!I.b()){var I=I.c(),E=rj().Uh,V=Nh(new Oh,0!==Aa(tj(I.t.t)),(new N).a());(new A).d(vh(y,Ih(new Jh,"required",Rh(new Sh,
E,Ph(new Qh,V,I.t.t.E)),(new A).d(O().ui))))}c=Wa().Ia(B(c.ea,rj().If));if(!c.b()){c=c.c();I=Dd(c.ca(),Pg().$);if(x(I))vh(y,Ih(new Jh,"name",I.i,w()));else if(w()===I)dmb(a,y);else throw(new v).d(I);I=amb(c);E=O().Wa;vh(y,Bv(new Cv,"in","formData",E,I));var I=a.o,E=a.U,V=G(),da=G(),sa=G();Er(y,nx(new ox,c,I,V,E,da,sa,!1,a.Q).Yw());Er(y,Mw(a.fe,a.o,a.Q).Ua())}iq(Cq(),a.o.Cb(y),p);T(e,lq(R(),rq(sq(),p.r,l),O().ua))}}(this,a))):emb(this,this.fe,a),void 0):fmb(this,a)};
function dmb(a,b){a=Dd(a.fe.g,vn().$);if(a.b())a=w();else{a=a.c();var c=Zb(a.t.E,n(Q8a));if(c.b())c=w();else var e=c.c(),c=e.BL,e=e.cc.Dd,f=O().Wa,c=(new A).d(Bv(new Cv,"name",c,f,e));c.b()?(c=a.t.t.u(),a=jq(Cq(),a.t.E,n(Fd)),e=O().Wa,a=(new A).d(Bv(new Cv,"name",c,e,a))):a=c}if(x(a))vh(b,a.i);else if(w()===a)vh(b,Bv(new Cv,"name","generated",O().Wa,Gd()));else throw(new v).d(a);}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ysa){var b=this.fe,c=a.fe;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.fe;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.GU=function(a,b,c,e){this.fe=a;this.o=b;this.U=c;this.Q=e;return this};d.u=function(){return U(W(),this)};
function emb(a,b,c){var e=c.r;c=c.da;var f=(new pq).e(c),g=H(Wg(),G());dmb(a,g);var h=amb(B(b.g,vn().Fc)),k=O().Wa;vh(g,Bv(new Cv,"in","formData",k,h));h=Zb(b.E,n(M8a));if(x(h)){var k=h.i,h=""+k.RL,k=k.cc.Dd,l=O().Wa;vh(g,Bv(new Cv,"in",h,l,k))}else if(w()!==h)throw(new v).d(h);b=amb(B(b.g,vn().Fc));h=O().Wa;vh(g,Bv(new Cv,"type","object",h,b));iq(Cq(),a.o.Cb(g),f);T(e,lq(R(),rq(sq(),f.r,c),O().ua))}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.fe.E,n(Fd))};
function fmb(a,b){var c=b.r;b=b.da;var e=(new pq).e(b),f=H(Wg(),G()),g=Dd(a.fe.g,vn().Md);g.b()||(g=g.c(),(new A).d(vh(f,Ih(new Jh,Hv((new Cf).e("mediaType")),g,w()))));g=Zb(a.fe.E,n($lb));if(x(g))g=g.i.t;else if(w()===g)g="body";else throw(new v).d(g);var h=amb(B(a.fe.g,vn().Fc)),k=O().Wa;vh(f,Bv(new Cv,"in",g,k,h));dmb(a,f);g=Dd(a.fe.g,vn().Fc);g.b()||(g=g.c(),(new A).d(vh(f,(new Y5).qA(g,a.o,a.U,a.Q))));Er(f,Mw(a.fe,a.o,a.Q).Ua());iq(Cq(),a.o.Cb(f),e);T(c,lq(R(),rq(sq(),e.r,b),O().ua))}
d.$classData=q({ysa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.PayloadAsParameterEmitter",{ysa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function mSa(){FO.call(this);this.gA=this.LA=this.Yi=this.kc=null;this.NA=!1}mSa.prototype=new HJa;mSa.prototype.constructor=mSa;d=mSa.prototype;d.L=function(){return"Raml08EndpointParser"};d.H=function(){return 5};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Asa){if(this.kc===a.kc)var b=this.Yi,c=a.Yi,b=null===b?null===c:b.h(c);else b=!1;b?(b=this.LA,c=a.LA,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.gA,c=a.gA,b=null===b?null===c:b.h(c)):b=!1;return b?this.NA===a.NA:!1}return!1};d.$Ga=function(){return"uriParameters|baseUriParameters"};
d.K=function(a){switch(a){case 0:return this.kc;case 1:return this.Yi;case 2:return this.LA;case 3:return this.gA;case 4:return this.NA;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.WO=function(a,b,c,e,f,g){this.kc=a;this.Yi=b;this.LA=c;this.gA=e;this.NA=f;FO.prototype.WO.call(this,a,b,c,e,f,g);return this};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.kc)),a=zI().Ga(a,yI(zI(),this.Yi)),a=zI().Ga(a,yI(zI(),this.LA)),a=zI().Ga(a,yI(zI(),this.gA)),a=zI().Ga(a,this.NA?1231:1237);return zI().Wd(a,5)};d.M=function(){return Z(this)};d.$classData=q({Asa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08EndpointParser",{Asa:1,wXa:1,f:1,ig:1,A:1,w:1,q:1,n:1});function gmb(){this.Q=this.o=this.yP=null}gmb.prototype=new r;gmb.prototype.constructor=gmb;d=gmb.prototype;d.L=function(){return"Raml08FormPropertiesEmitter"};
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Bsa){var b=this.yP,c=a.yP;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.yP;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"formParameters"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f);B(this.yP.ea,ci().Rg).X(t(new u,function(a,b){return function(c){var e=B(c.ea,rj().If);if(Xh(e)){R();var f=B(c.ea,Pg().$).G,f=f.b()?null:f.c(),g=Th(R(),f),f=(new My).e(b.da),e=(new xU).Cr(e,a.o,w(),H(z(),G()),H(z(),G()),a.Q).Tw;if(Ep(e))e.i.Ob(f);else if(Hp(e)){e=e.i;c=r8a(q8a(new o3,B(c.ea,rj().If),Dd(c.ea,rj().Uh)));if(x(c))c=c.i,c=H(z(),(new J).aa([c]));else{if(w()!==c)throw(new v).d(c);c=G()}var h=
f.r,k=f.da,l=(new pq).e(k),p=Cq(),db=a.o,Qb=z();iq(p,db.Cb(e.la(c,Qb.s)),l);T(h,lq(R(),rq(sq(),l.r,k),O().ua))}else throw(new v).d(e);e=f.r;g=[g];if(0>e.x)throw(new X).e("0");h=g.length|0;c=e.x+h|0;hC(e,c);Ca(e.z,0,e.z,h,e.x);h=e.z;p=h.j.length;l=k=0;db=g.length|0;p=db<p?db:p;db=h.j.length;for(p=p<db?p:db;k<p;)h.j[l]=g[k],k=1+k|0,l=1+l|0;e.x=c}else{R();f=B(c.ea,Pg().$).G;f=f.b()?null:f.c();c=Th(R(),f);f=(new My).e(b.da);(new Z5).DK(e,"Cannot emit property "+ka(e).u()+" in raml 08 form properties").Ob(f);
g=f.r;e=[c];if(0>g.x)throw(new X).e("0");h=e.length|0;c=g.x+h|0;hC(g,c);Ca(g.z,0,g.z,h,g.x);h=g.z;p=h.j.length;l=k=0;db=e.length|0;p=db<p?db:p;db=h.j.length;for(p=p<db?p:db;k<p;)h.j[l]=e[k],k=1+k|0,l=1+l|0;g.x=c}T(b.r,iC(jC(),f.r))}}(this,g)));T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,h=g.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=g.j.length,h=h<p?h:p;k<h;)g.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),
c.r))};function hmb(a,b,c){var e=new gmb;e.yP=a;e.o=b;e.Q=c;return e}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.yP.ab,n(Fd))};d.$classData=q({Bsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08FormPropertiesEmitter",{Bsa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function lSa(){QO.call(this);this.Yi=this.ee=null;this.xg=!1;this.Qw=this.C_=null}lSa.prototype=new cKa;lSa.prototype.constructor=lSa;d=lSa.prototype;d.L=function(){return"Raml08RequestParser"};
d.H=function(){return 3};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Isa?Yj(this.ee,a.ee)&&this.Yi===a.Yi?this.xg===a.xg:!1:!1};d.K=function(a){switch(a){case 0:return this.ee;case 1:return this.Yi;case 2:return this.xg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.uDa=function(){};d.XO=function(a,b,c,e){this.ee=a;this.Yi=b;this.xg=c;QO.prototype.XO.call(this,a,b,c,e);this.C_="baseUriParameters";this.Qw=cO();return this};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.ee)),a=zI().Ga(a,yI(zI(),this.Yi)),a=zI().Ga(a,this.xg?1231:1237);return zI().Wd(a,3)};d.M=function(){return Z(this)};d.$classData=q({Isa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08RequestParser",{Isa:1,HXa:1,f:1,ig:1,A:1,w:1,q:1,n:1});function oSa(){UO.call(this);this.Df=this.kc=null;this.xg=!1;this.Qw=null}oSa.prototype=new eKa;oSa.prototype.constructor=oSa;d=oSa.prototype;d.L=function(){return"Raml08ResponseParser"};
d.$m=function(a,b,c,e){this.kc=a;this.Df=b;this.xg=c;UO.prototype.$m.call(this,a,b,c,e);this.Qw=cO();return this};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ksa){if(this.kc===a.kc)var b=this.Df,c=a.Df,b=null===b?null===c:b.h(c);else b=!1;return b?this.xg===a.xg:!1}return!1};d.K=function(a){switch(a){case 0:return this.kc;case 1:return this.Df;case 2:return this.xg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.kc)),a=zI().Ga(a,yI(zI(),this.Df)),a=zI().Ga(a,this.xg?1231:1237);return zI().Wd(a,3)};d.rDa=function(){};d.M=function(){return Z(this)};d.$classData=q({Ksa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08ResponseParser",{Ksa:1,KXa:1,f:1,ig:1,A:1,w:1,q:1,n:1});function ASa(){FO.call(this);this.gA=this.LA=this.Yi=this.kc=null;this.NA=!1}ASa.prototype=new HJa;ASa.prototype.constructor=ASa;d=ASa.prototype;d.L=function(){return"Raml10EndpointParser"};
d.H=function(){return 5};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Nsa){if(this.kc===a.kc)var b=this.Yi,c=a.Yi,b=null===b?null===c:b.h(c);else b=!1;b?(b=this.LA,c=a.LA,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.gA,c=a.gA,b=null===b?null===c:b.h(c)):b=!1;return b?this.NA===a.NA:!1}return!1};d.$Ga=function(){return"uriParameters"};
d.K=function(a){switch(a){case 0:return this.kc;case 1:return this.Yi;case 2:return this.LA;case 3:return this.gA;case 4:return this.NA;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.WO=function(a,b,c,e,f,g){this.kc=a;this.Yi=b;this.LA=c;this.gA=e;this.NA=f;FO.prototype.WO.call(this,a,b,c,e,f,g);return this};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.kc)),a=zI().Ga(a,yI(zI(),this.Yi)),a=zI().Ga(a,yI(zI(),this.LA)),a=zI().Ga(a,yI(zI(),this.gA)),a=zI().Ga(a,this.NA?1231:1237);return zI().Wd(a,5)};d.M=function(){return Z(this)};d.$classData=q({Nsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml10EndpointParser",{Nsa:1,wXa:1,f:1,ig:1,A:1,w:1,q:1,n:1});function b9a(){this.Q=this.U=this.o=this.fe=null}b9a.prototype=new r;b9a.prototype.constructor=b9a;d=b9a.prototype;d.L=function(){return"Raml10PayloadEmitter"};
d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Rsa){var b=this.fe,c=a.fe;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.fe;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.fe.g,c=!1,e=null,f=Wa().Ia(B(this.fe.g,vn().Fc));a:{if(x(f)){var c=!0,e=f,g=e.i;if(Xh(g)){b=Dd(b,vn().Md);if(!b.b()){c=b.c();b=(new My).e(a.da);IT(new JT,c.t.t,O().Wa).Ob(b);var c=(new My).e(a.da),e=this.o,f=(new A).d(Mw(this.fe,this.o,this.Q)),h=this.U,k=G();(new JU).Cr(g,e,f,k,h,this.Q).Ob(c);g=UQ(b.r,0);qq(a,g,UQ(c.r,0))}break a}}if(c)f=e.i,a=this.Q.jc,g=Bc().nh,b=f.k,c=w(),e=Zb(f.ha(),n(Fd)),f=f.Yb(),a.Hc(g.k,b,c,"Cannot emit a non WebAPI Shape",e,xc().tb,f);else if(w()===
f)g=Dd(b,vn().Md),g.b()||(b=g.c(),g=(new My).e(a.da),IT(new JT,b.t.t,O().Wa).Ob(g),b=(new My).e(a.da),c=this.o,e=(new A).d(Mw(this.fe,this.o,this.Q)),f=this.U,h=G(),(new JU).Cr(null,c,e,h,f,this.Q).Ob(b),g=UQ(g.r,0),qq(a,g,UQ(b.r,0)));else throw(new v).d(f);}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.fe.E,n(Fd))};d.Bba=function(a,b,c,e){this.fe=a;this.o=b;this.U=c;this.Q=e;return this};
d.$classData=q({Rsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml10PayloadEmitter",{Rsa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function zSa(){QO.call(this);this.Yi=this.ee=null;this.xg=!1;this.Qw=this.C_=this.va=null}zSa.prototype=new cKa;zSa.prototype.constructor=zSa;d=zSa.prototype;d.L=function(){return"Raml10RequestParser"};d.H=function(){return 3};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Vsa?Yj(this.ee,a.ee)&&this.Yi===a.Yi?this.xg===a.xg:!1:!1};
d.K=function(a){switch(a){case 0:return this.ee;case 1:return this.Yi;case 2:return this.xg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.uDa=function(a){var b=yc((new K).Y(this.ee),"queryString");if(!b.b()&&(b=b.c(),b=RU(SU(),b,t(new u,function(a,b){return function(a){return a.Qb(wu(b).k,a.Ub())}}(this,a)),TU(!1,!1),tO(),this.va).wc(),!b.b())){b=b.c();a=wu(a);if(yc((new K).Y(this.ee),"queryParameters").qa()){var c=this.va,e=rh().YM,f=a.k,g=this.ee,h=w();Cc(c,e,f,h,"Properties 'queryString' and 'queryParameters' are exclusive and cannot be declared together",g.ga)}b=oB(kB(),b,a.k,w());c=yn().Dq;(new A).d(ff(a,c,b))}};
d.XO=function(a,b,c,e){this.ee=a;this.Yi=b;this.xg=c;this.va=e;QO.prototype.XO.call(this,a,b,c,e);this.C_=Kh((new Cf).e("baseUriParameters"));this.Qw=cO();return this};d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.ee)),a=zI().Ga(a,yI(zI(),this.Yi)),a=zI().Ga(a,this.xg?1231:1237);return zI().Wd(a,3)};d.M=function(){return Z(this)};d.$classData=q({Vsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml10RequestParser",{Vsa:1,HXa:1,f:1,ig:1,A:1,w:1,q:1,n:1});
function BSa(){UO.call(this);this.Df=this.kc=null;this.xg=!1;this.Qw=this.va=null}BSa.prototype=new eKa;BSa.prototype.constructor=BSa;d=BSa.prototype;d.L=function(){return"Raml10ResponseParser"};d.$m=function(a,b,c,e){this.kc=a;this.Df=b;this.xg=c;this.va=e;UO.prototype.$m.call(this,a,b,c,e);this.Qw=cO();return this};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Xsa){if(this.kc===a.kc)var b=this.Df,c=a.Df,b=null===b?null===c:b.h(c);else b=!1;return b?this.xg===a.xg:!1}return!1};d.K=function(a){switch(a){case 0:return this.kc;case 1:return this.Df;case 2:return this.xg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.kc)),a=zI().Ga(a,yI(zI(),this.Df)),a=zI().Ga(a,this.xg?1231:1237);return zI().Wd(a,3)};
d.rDa=function(a,b){Di();var c=[Jw().So],c=(new J).aa(c),e=Di().s;jx(new kx,a,b,Ei(c,e),this.va).Pc()};d.M=function(){return Z(this)};d.$classData=q({Xsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml10ResponseParser",{Xsa:1,KXa:1,f:1,ig:1,A:1,w:1,q:1,n:1});function gV(){this.Q=this.U=this.o=this.Ca=this.oa=null}gV.prototype=new r;gV.prototype.constructor=gV;d=gV.prototype;d.L=function(){return"RamlParametersEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.cta){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;if(b&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;case 3:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=imb(this,this.Ca,this.o,this.U);if(b.Fa()){R();var c=this.oa,e=Th(R(),c),c=(new My).e(a.da),f=c.r,g=c.da,h=(new pq).e(g);iq(Cq(),b,h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));b=c.r;e=[e];if(0>b.x)throw(new X).e("0");g=e.length|0;f=b.x+g|0;hC(b,f);Ca(b.z,0,b.z,g,b.x);for(var g=b.z,k=g.j.length,l=h=0,p=e.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=e[h],h=1+h|0,l=1+l|0;b.x=f;T(a.r,iC(jC(),c.r))}};
function imb(a,b,c,e){var f=H(Wg(),G());b.t.t.Tb.xb(t(new u,function(){return function(a){return!Yh(a.ha(),n(uQ))}}(a))).X(t(new u,function(a,b,c,e){return function(f){return vh(b,ax(a.Q.of.Kaa(),f,c,e))}}(a,f,c,e)));return c.Cb(f)}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Qq=function(a,b,c,e,f){this.oa=a;this.Ca=b;this.o=c;this.U=e;this.Q=f;return this};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};
d.$classData=q({cta:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlParametersEmitter",{cta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function hV(){this.U=this.o=this.Ca=this.oa=null;this.iO=!1;this.Q=null}hV.prototype=new r;hV.prototype.constructor=hV;d=hV.prototype;d.L=function(){return"RamlResponsesEmitter"};d.H=function(){return 5};function jmb(a,b,c){var e=kmb(a);a=t(new u,function(a,b,c){return function(e){return ax(a.Q.of.dEa(),e,b,c)}}(a,b,c));c=z();e=e.ka(a,c.s);return b.Cb(e)}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.gta){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;b&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;return b?this.iO===a.iO:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;case 3:return this.U;case 4:return this.iO;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){if(kmb(this).Fa()){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f);iq(Cq(),jmb(this,this.o,this.U),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,h=g.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=g.j.length,h=h<p?h:p;k<h;)g.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),b.r))}};
function kmb(a){return a.iO?a.Ca.t.t.Tb.xb(t(new u,function(){return function(a){a=B(a.g,Bn().vn).G;a=a.b()?"default":a.c();return null!==a&&pa(a,"default")}}(a))):a.Ca.t.t.Tb.xb(t(new u,function(){return function(a){a=B(a.g,Bn().vn).G;a=a.b()?"default":a.c();return!(null!==a&&pa(a,"default"))}}(a)))}d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.oa)),a=zI().Ga(a,yI(zI(),this.Ca)),a=zI().Ga(a,yI(zI(),this.o)),a=zI().Ga(a,yI(zI(),this.U)),a=zI().Ga(a,this.iO?1231:1237);return zI().Wd(a,5)};
d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};function ZSa(a,b,c,e,f,g,h){a.oa=b;a.Ca=c;a.o=e;a.U=f;a.iO=g;a.Q=h;return a}d.$classData=q({gta:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlResponsesEmitter",{gta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Vx(){this.Q=this.o=this.Mt=this.oa=null}Vx.prototype=new r;Vx.prototype.constructor=Vx;d=Vx.prototype;d.L=function(){return"ServersEmitters"};d.H=function(){return 3};
d.eH=function(a,b,c,e){this.oa=a;this.Mt=b;this.o=c;this.Q=e;return this};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.nta){if(this.oa===a.oa)var b=this.Mt,c=a.Mt,b=null===b?null===c:b.h(c);else b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Mt;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new My).e(f);tq(Cq(),lmb(this,this.Mt),g);R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=b.r;c=[c];if(0>e.x)throw(new X).e("0");f=c.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),b.r))};
function lmb(a,b){var c=a.o;a=t(new u,function(a){return function(b){var c=new IV,e=a.o,l=a.Q;c.fI=b;c.o=e;c.Q=l;return c}}(a));var e=z();return c.Cb(b.ka(a,e.s))}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=this.Mt.pc();a.b()?a=w():(a=a.c(),a=(new A).d(a.E));a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a,n(Fd))));return a.b()?Gd():a.c()};
d.$classData=q({nta:0},!1,"amf.plugins.document.webapi.parser.spec.domain.ServersEmitters",{nta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function mmb(){this.hHa=this.o=this.oe=this.oa=null}mmb.prototype=new r;mmb.prototype.constructor=mmb;d=mmb.prototype;d.L=function(){return"SingleExampleEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ota){if(this.oa===a.oa)var b=this.oe,c=a.oe,b=null===b?null===c:b.h(c);else b=!1;return b?this.o===a.o:!1}return!1};
d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.oe;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=this.hHa;if(Ep(e)){var e=e.i,f=b.r,g=b.da,h=(new pq).e(g);e.Va(h);T(f,lq(R(),rq(sq(),h.r,g),O().ua))}else if(Hp(e))e.i.Ob(b);else throw(new v).d(e);e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,k=g.j.length,l=h=0,p=c.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=c[h],h=1+h|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.oe.E,n(Fd))};function Fca(a,b,c,e){var f=new mmb;f.oa=a;f.oe=b;f.o=c;a=Dd(b.g,lh().$);x(a)?(Zf(),b=(new b4).tA(b,c,e),b=(new $f).d(b)):(Zf(),b=(new plb).tA(b,c,e),b=(new ag).d(b));f.hHa=b;return f}d.$classData=q({ota:0},!1,"amf.plugins.document.webapi.parser.spec.domain.SingleExampleEmitter",{ota:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function R7(){this.t=null}R7.prototype=new r;R7.prototype.constructor=R7;d=R7.prototype;d.L=function(){return"StringToAstEmitter"};
d.Ob=function(a){if(tka(kh(),this.t)||uka(kh(),this.t))var b=Th(R(),this.t);else b=ewa(iwa(),this.t,Eha().qda).PA(!0),b=hd(b,new $fb),b.b()?b=w():(b=b.c(),b=(new A).d(b.Bd)),b=b.b()?Th(R(),this.t):b.c();nmb(this,b,a)};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.pta?this.t===a.t:!1};d.K=function(a){switch(a){case 0:return this.t;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function nmb(a,b,c){var e=b.pb().nb;if(O().ua===e){var e=Pc(),f=Ac().fi;b=L(b,e,f);e=c.r;c=c.da;f=(new pq).e(c);b.Bb.X(t(new u,function(a,b){return function(c){R();var e=c.Da,f=qe(),y=Ac().fi,e=L(e,f,y),f=Th(R(),e),e=(new My).e(b.da);nmb(a,c.i,e);c=e.r;f=[f];if(0>c.x)throw(new X).e("0");var I=f.length|0,y=c.x+I|0;hC(c,y);Ca(c.z,0,c.z,I,c.x);for(var I=c.z,E=I.j.length,V=0,da=0,sa=f.length|0,E=sa<E?sa:E,sa=I.j.length,E=E<sa?E:sa;V<E;)I.j[da]=f[V],V=1+V|0,da=1+da|0;c.x=y;T(b.r,iC(jC(),e.r))}}(a,f)));
T(e,lq(R(),rq(sq(),f.r,c),O().ua))}else O().Nc===e?(e=Jc(),f=Ac().fi,e=L(b,e,f),b=c.r,f=c.da,c=(new My).e(f),e.X(t(new u,function(a,b){return function(c){nmb(a,c,b)}}(a,c))),R(),FC(),a=Py(vq(),f),a=lq(0,(new GC).mc(a,c.r),O().Nc),T(b,a)):(a=wN(),e=Ac().fi,a=L(b,a,e),c.$s(a.ya))}d.e=function(a){this.t=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return Gd()};
d.$classData=q({pta:0},!1,"amf.plugins.document.webapi.parser.spec.domain.StringToAstEmitter",{pta:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function omb(){this.l=this.Q=this.U=this.o=this.ru=null}omb.prototype=new r;omb.prototype.constructor=omb;d=omb.prototype;d.L=function(){return"EndPointEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.qta&&a.l===this.l){var b=this.ru,c=a.ru;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.ru;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};
function pmb(a,b,c,e,f){b=b.t.t.Tb;a=t(new u,function(a,b,c,e){return function(f){var y=a.l,I=a.Q,E=new qmb;E.Fl=f;E.o=b;E.RT=c;E.U=e;E.Q=I;if(null===y)throw Lb(Mb(),null);E.l=y;return E}}(a,c,e,f));c=z();return b.ka(a,c.s)}d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.ru.g,c=(new My).e(a.da),e=Dd(b,Tm().$f).c();IT(new JT,e.t.t,O().Wa).Ob(c);var e=(new My).e(a.da),f=e.r,g=e.da,h=(new pq).e(g),k=H(Wg(),G()),l=Dd(b,Tm().$);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,Hv((new Cf).e("displayName")),l,w()))));l=Dd(b,Tm().fb);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,Hv((new Cf).e("description")),l,w()))));l=Dd(b,Lc().wi());l.b()||(l=l.c(),(new A).d(Er(k,TTa(l,this.o,!0,this.Q.Si()).Ua())));var l=cMa(),p=B(this.ru.g,Tm().$f).G,p=p.b()?null:p.c(),
y=B(this.ru.g,Tm().Pn),l=eMa(l,p,y,B(this.ru.g,Tm().mf));(p=this.Q)&&p.$classData&&p.$classData.v.cna&&(p=Dd(b,Tm().Mp),p.b()||(p=p.c(),(new A).d(vh(k,Ih(new Jh,"summary",p,w())))),p=Dd(b,Tm().Wh),p.b()||(p=p.c(),(new A).d(Er(k,Ffb(this.ru,p,this.o,this.U,this.Q.of.Q).Ua()))));if(l.Fa()){var p=l.Ft,y=l.Hg,I=z(),p=p.la(y,I.s),y=l.Fg,I=z(),p=p.la(y,I.s),y=l.ky,I=z();Er(k,G8a(D8a(new C3,"parameters",p.la(y,I.s),this.o,l.Nw,this.U,this.Q)))}p=Dd(b,Tm().xk);p.b()||(p=p.c(),(new A).d(Er(k,pmb(this,p,this.o,
l.Nw.Fa(),this.U))));b=Dd(b,Tm().oc);b.b()||(b=b.c(),(new A).d(vh(k,(new TV).DE(Hv((new Cf).e("security")),b,this.o,this.Q))));Er(k,Mw(this.ru,this.o,this.Q).Ua());iq(Cq(),this.o.Cb(k),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));c=UQ(c.r,0);qq(a,c,UQ(e.r,0))};function Hlb(a,b,c,e,f){var g=new omb;g.ru=b;g.o=c;g.U=e;g.Q=f;if(null===a)throw Lb(Mb(),null);g.l=a;return g}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.ru.E,n(Fd))};
d.$classData=q({qta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.AccessibleOasDocumentEmitters$EndPointEmitter",{qta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function qmb(){this.o=this.Fl=null;this.RT=!1;this.l=this.Q=this.U=null}qmb.prototype=new r;qmb.prototype.constructor=qmb;d=qmb.prototype;d.L=function(){return"OperationEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.rta&&a.l===this.l){var b=this.Fl,c=a.Fl;if((null===b?null===c:b.h(c))&&this.o===a.o&&this.RT===a.RT)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Fl;case 1:return this.o;case 2:return this.RT;case 3:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.Fl.g,c=(new My).e(a.da),e=Dd(b,Zm().nt).c();IT(new JT,e.t.t,O().Wa).Ob(c);var e=(new My).e(a.da),f=e.r,g=e.da,h=(new pq).e(g),k=H(Wg(),G()),l=Dd(b,Zm().$);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,"operationId",l,w()))));l=Dd(b,Zm().fb);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,"description",l,w()))));l=Dd(b,Zm().gp);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,"deprecated",l,w()))));l=Dd(b,Zm().Mp);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,"summary",l,w()))));l=Dd(b,Zm().wv);
l.b()||(l=l.c(),(new A).d(vh(k,Kw(new Lw,"tags",l,this.o,!1))));l=Dd(b,Zm().bh);l.b()||(l=l.c(),(new A).d(vh(k,Xw(new Yw,"externalDocs",l.t.t,this.o,this.Q))));l=Dd(b,Zm().yk);l.b()||(l=l.c(),(new A).d(vh(k,Kw(new Lw,"schemes",l,this.o,!1))));l=Dd(b,Zm().Jp);l.b()||(l=l.c(),(new A).d(vh(k,Kw(new Lw,"consumes",l,this.o,!1))));l=Dd(b,Zm().tl);l.b()||(l=l.c(),(new A).d(vh(k,Kw(new Lw,"produces",l,this.o,!1))));l=Dd(b,Lc().wi());l.b()||(l=l.c(),(new A).d(Er(k,TTa(l,this.o,!0,this.Q.Si()).Ua())));l=Wa().Ia(B(this.Fl.g,
Zm().kp));l.b()||(l=l.c(),Er(k,rmb(this,l,this.o,this.U)));var l=B(this.Fl.g,Lc().Pm()).xb(t(new u,function(){return function(a){return Yh(B(a.g,bf().Zj).ha(),n(K2))}}(this))),p=Dd(b,Zm().Zl);p.b()?vh(k,Vw(new Ww,"responses",m9a(),O().Wa,Gd())):(p=p.c(),vh(k,smb(this.l,p,this.o,this.U,l,this.Q)));l=Dd(b,Zm().oc);l.b()||(l=l.c(),(new A).d(vh(k,(new TV).DE("security",l,this.o,this.Q))));if(Fy(this.Q.of)){var l=this.Fl.g.Pb,p=zx(),p=Va(p),y=Ce().s,l=De(l,p,y).Ib(t(new u,function(){return function(a){a=
a.xc;var b=Zm().NF;return null===a?null===b:a.h(b)}}(this)));l.b()||(l=l.c(),p=VV(l),vh(k,Vw(new Ww,"callbacks",(new WV).HE(p,this.o,this.U,l.t.E,this.Q),O().Wa,Gd())));b=Dd(b,Zm().Wh);b.b()||(b=b.c(),(new A).d(Er(k,this.Q.of.$Fa(this.Fl,b,this.o,this.U).Ua())))}Er(k,Mw(this.Fl,this.o,this.Q).Ua());iq(Cq(),this.o.Cb(k),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));c=UQ(c.r,0);qq(a,c,UQ(e.r,0))};
function rmb(a,b,c,e){var f=H(Wg(),G());if(Fy(a.Q.of)){var g=B(b.g,yn().um),h=B(b.g,yn().lp),k=z(),g=g.la(h,k.s),h=B(b.g,yn().Qg),k=z(),g=g.la(h,k.s),h=B(b.g,yn().TI),k=z(),g=g.la(h,k.s);g.Fa()&&Er(f,D8a(new C3,"parameters",g,c,G(),e,a.Q).Ua());g=z();Er(f,H(g,(new J).aa([tmb(b,c,e,a.Q)])))}else{var g=b.g,h=B(b.g,yn().um),k=B(b.g,yn().lp),l=z(),h=h.la(k,l.s),k=B(b.g,yn().Qg),l=z(),h=h.la(k,l.s),k=B(b.g,yn().mf).jn(t(new u,function(){return function(a){return!Yh(a.E,n(boa))}}(a)));if(null===k)throw(new v).d(k);
l=k.pa();k=k.Ba();l=CTa(FTa(),l);if(h.Fa()||l.$n.qa()||k.Fa()){var p=l.$n.wa(),y=z();Er(f,D8a(new C3,"parameters",h,c,p.la(k,y.s),e,a.Q).Ua())}l.EH.Fa()&&vh(f,(new Qlb).cP(Hv((new Cf).e("requestPayloads")),l.EH,c,e,a.Q));e=Dd(g,yn().Dq);if(!e.b())a:{if(h=e.c(),e=!1,g=null,h=Wa().Ia(h.t.t),x(h)&&(e=!0,g=h,k=g.i,Xh(k))){vh(f,Vkb(new Q7,k,c,G(),wU(function(a){return function(b,c,e,f,g){return(new JU).Cr(b,c,e,f,g,(new OU).Ci(a.Q.Si(),HN(),(new ob).a()))}}(a)),a.Q));break a}if(e)p=g.i,e=a.Q.Si(),g=Bc().nh,
h=b.k,k=w(),l=Zb(p.ha(),n(Fd)),p=p.Yb(),e.Hc(g.k,h,k,"Cannot emit a non WebApi Shape",l,xc().tb,p);else if(w()!==h)throw(new v).d(h);}}Er(f,Mw(b,c,a.Q).Ua());return f}d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.Fl)),a=zI().Ga(a,yI(zI(),this.o)),a=zI().Ga(a,this.RT?1231:1237),a=zI().Ga(a,yI(zI(),this.U));return zI().Wd(a,4)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Fl.E,n(Fd))};
d.$classData=q({rta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.AccessibleOasDocumentEmitters$OperationEmitter",{rta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function umb(){this.l=this.Q=this.Ds=this.U=this.o=this.Ca=this.oa=null}umb.prototype=new r;umb.prototype.constructor=umb;d=umb.prototype;d.L=function(){return"ResponsesEmitter"};d.H=function(){return 5};function smb(a,b,c,e,f,g){var h=new umb;h.oa="responses";h.Ca=b;h.o=c;h.U=e;h.Ds=f;h.Q=g;if(null===a)throw Lb(Mb(),null);h.l=a;return h}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.sta&&a.l===this.l){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;b&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Ds,a=a.Ds,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;case 3:return this.U;case 4:return this.Ds;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=vmb(this,this.Ca,this.o),c=m7a(this.Ds,this.o,this.Q).Ua(),e=z(),c=b.la(c,e.s);R();var b=this.oa,e=Th(R(),b),b=(new My).e(a.da),f=b.r,g=b.da,h=(new pq).e(g);iq(Cq(),c,h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);for(var g=c.z,k=g.j.length,l=h=0,p=e.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=e[h],h=1+h|0,l=1+l|0;c.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function vmb(a,b,c){b=b.t.t.Tb;a=t(new u,function(a,b){return function(c){return Slb(c,b,a.U,a.Q)}}(a,c));var e=z();return c.Cb(b.ka(a,e.s))}d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({sta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.AccessibleOasDocumentEmitters$ResponsesEmitter",{sta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function wmb(){this.l=this.o=this.Gc=null}wmb.prototype=new r;wmb.prototype.constructor=wmb;d=wmb.prototype;d.L=function(){return"DeclarationsWrapper"};
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.wta&&a.l===this.l){var b=this.Gc,c=a.Gc;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Gc;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){if(this.Gc.Fa()){R();var b=Th(R(),"components"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f);iq(Cq(),this.o.Cb(this.Gc),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,h=g.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=g.j.length,h=h<p?h:p;k<h;)g.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),c.r))}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){var a=this.Gc.pc();a.b()?a=w():(a=a.c(),a=(new A).d(a.Oa()));return a.b()?Gd():a.c()};d.$classData=q({wta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.Oas3DocumentEmitter$DeclarationsWrapper",{wta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function dgb(){this.Q=this.U=this.o=this.LP=null}dgb.prototype=new r;dgb.prototype.constructor=dgb;d=dgb.prototype;d.xA=function(a,b,c,e){this.LP=a;this.o=b;this.U=c;this.Q=e;return this};d.L=function(){return"Oas3RequestBodyDeclarationsEmitter"};
d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.yta){var b=this.LP,c=a.LP;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.LP;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"requestBodies"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f);this.LP.X(t(new u,function(a,b){return function(c){var e=iUa(kUa(),c,a.o,a.U,a.Q);if(e.Fa()){R();c=B(c.g,kDa().$).G;c=c.b()?null:c.c();var f=Th(R(),c);c=(new My).e(b.da);var g=c.r,h=c.da,k=(new pq).e(h);iq(Cq(),a.o.Cb(e),k);T(g,lq(R(),rq(sq(),k.r,h),O().ua));e=c.r;f=[f];if(0>e.x)throw(new X).e("0");h=f.length|0;g=e.x+h|0;hC(e,g);Ca(e.z,0,e.z,h,e.x);for(var h=e.z,l=h.j.length,p=k=0,db=f.length|0,l=db<
l?db:l,db=h.j.length,l=l<db?l:db;k<l;)h.j[p]=f[k],k=1+k|0,p=1+p|0;e.x=g;T(b.r,iC(jC(),c.r))}}}(this,g)));T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,h=g.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=g.j.length,h=h<p?h:p;k<h;)g.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),c.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){var a=this.LP.pc();if(a.b())a=w();else{a=a.c();Cq();var b=B(a.g,yn().mf).pc(),a=(b.b()?a:b.c()).ha(),a=(new A).d(jq(0,a,n(Fd)))}return a.b()?Gd():a.c()};d.$classData=q({yta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.Oas3RequestBodyDeclarationsEmitter",{yta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function xmb(){this.Q=this.U=this.o=this.Tj=null}xmb.prototype=new r;xmb.prototype.constructor=xmb;d=xmb.prototype;d.L=function(){return"Oas3RequestBodyEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.zta&&this.Tj===a.Tj&&this.o===a.o){var b=this.U;a=a.U;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Tj;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){if(yb(this.Tj).qa()){var b=Hy(),c=B(this.Tj.g,Db().wd).G,e=Gy(b,c.b()?null:c.c(),"requestBodies");R();var f=Th(R(),"requestBody"),b=(new My).e(a.da),c=b.r,g=b.da,h=(new pq).e(g);R();var k=Th(R(),"$ref");R();e=Th(R(),e);qq(h,k,e);T(c,lq(R(),rq(sq(),h.r,g),O().ua));c=b.r;f=[f];if(0>c.x)throw(new X).e("0");h=f.length|0;g=c.x+h|0;hC(c,g);Ca(c.z,0,c.z,h,c.x);for(var h=c.z,l=h.j.length,e=k=0,p=f.length|0,l=p<l?p:l,p=h.j.length,l=l<p?l:p;k<l;)h.j[e]=f[k],k=1+k|0,e=1+e|0;c.x=g;T(a.r,iC(jC(),
b.r))}else if(c=iUa(kUa(),this.Tj,this.o,this.U,this.Q),c.Fa()){R();f=Th(R(),"requestBody");b=(new My).e(a.da);g=b.r;h=b.da;k=(new pq).e(h);iq(Cq(),this.o.Cb(c),k);T(g,lq(R(),rq(sq(),k.r,h),O().ua));c=b.r;f=[f];if(0>c.x)throw(new X).e("0");h=f.length|0;g=c.x+h|0;hC(c,g);Ca(c.z,0,c.z,h,c.x);h=c.z;l=h.j.length;e=k=0;p=f.length|0;l=p<l?p:l;p=h.j.length;for(l=l<p?l:p;k<l;)h.j[e]=f[k],k=1+k|0,e=1+e|0;c.x=g;T(a.r,iC(jC(),b.r))}};d.y=function(){return Y(this)};
function tmb(a,b,c,e){var f=new xmb;f.Tj=a;f.o=b;f.U=c;f.Q=e;return f}d.M=function(){return Z(this)};d.Oa=function(){Cq();var a=B(this.Tj.g,yn().mf).pc(),a=(a.b()?this.Tj:a.c()).ha();return jq(0,a,n(Fd))};d.$classData=q({zta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.Oas3RequestBodyEmitter",{zta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function agb(){this.Q=this.o=this.bg=null}agb.prototype=new r;agb.prototype.constructor=agb;d=agb.prototype;d.L=function(){return"OasAnnotationsTypesEmitter"};
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ata){var b=this.bg,c=a.bg;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.bg;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Hv((new Cf).e("annotationTypes")),c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=Cq(),k=this.o,l=this.bg,p=t(new u,function(a){return function(b){return(new ymb).Xaa(b,a.o,a.Q)}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=f;
T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.UU=function(a,b,c){this.bg=a;this.o=b;this.Q=c;return this};d.M=function(){return Z(this)};d.Oa=function(){var a=this.bg.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.E,n(Fd))));return a.b()?Gd():a.c()};d.$classData=q({Ata:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasAnnotationsTypesEmitter",{Ata:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function t$a(){this.Q=this.o=this.st=null}t$a.prototype=new r;t$a.prototype.constructor=t$a;d=t$a.prototype;
d.L=function(){return"OasCreativeWorkEmitters"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Bta){var b=this.st,c=a.st;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.st;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Hv((new Cf).e("userDocumentation")),c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new My).e(f),h=Cq(),k=this.o,l=this.st,p=t(new u,function(a){return function(b){return(new Qkb).CU(b,a.o,!1,a.Q)}}(this)),y=z();tq(h,k.Cb(l.ka(p,y.s)),g);R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=b.r;c=[c];if(0>e.x)throw(new X).e("0");f=c.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);f=e.z;l=f.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=f.j.length;for(l=l<p?l:p;h<l;)f.j[k]=
c[h],h=1+h|0,k=1+k|0;e.x=g;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.UU=function(a,b,c){this.st=a;this.o=b;this.Q=c;return this};d.M=function(){return Z(this)};d.Oa=function(){var a=this.st.pc();a.b()?a=w():(a=a.c(),a=(new A).d(a.E));a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a,n(Fd))));return a.b()?Gd():a.c()};d.$classData=q({Bta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasCreativeWorkEmitters",{Bta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function g6(){this.Q=this.oa=this.U=this.o=this.Lu=null}g6.prototype=new r;g6.prototype.constructor=g6;d=g6.prototype;d.L=function(){return"OasDeclaredParametersEmitter"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Dta){var b=this.Lu,c=a.Lu;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;return b?this.oa===a.oa:!1}return!1};
d.K=function(a){switch(a){case 0:return this.Lu;case 1:return this.o;case 2:return this.U;case 3:return this.oa;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=Cq(),k=this.o,l=this.Lu,p=t(new u,function(a){return function(b){var c=a.o,e=a.U,f=a.Q,g=new zmb;g.IA=b;g.o=c;g.U=e;g.Q=f;return g}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|
0;e.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=this.Lu.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.zr.ha(),n(Fd))));return a.b()?Gd():a.c()};d.$classData=q({Dta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDeclaredParametersEmitter",{Dta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function h6(){this.Q=this.U=this.o=this.NP=this.oa=null}h6.prototype=new r;h6.prototype.constructor=h6;d=h6.prototype;d.L=function(){return"OasDeclaredResponsesEmitter"};
d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Eta){if(this.oa===a.oa)var b=this.NP,c=a.NP,b=null===b?null===c:b.h(c);else b=!1;if(b&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.NP;case 2:return this.o;case 3:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=Cq(),k=this.o,l=this.NP,p=t(new u,function(a){return function(b){return Slb(b,a.o,a.U,a.Q)}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),b.r))};
d.cP=function(a,b,c,e,f){this.oa=a;this.NP=b;this.o=c;this.U=e;this.Q=f;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=this.NP.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.E,n(Fd))));return a.b()?Gd():a.c()};d.$classData=q({Eta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDeclaredResponsesEmitter",{Eta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Amb(){this.l=this.Ds=this.U=this.o=this.Ca=this.oa=null}Amb.prototype=new r;
Amb.prototype.constructor=Amb;d=Amb.prototype;d.L=function(){return"EndpointsEmitter"};d.H=function(){return 5};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Fta&&a.l===this.l){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;b&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Ds,a=a.Ds,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;case 3:return this.U;case 4:return this.Ds;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function n9a(a,b,c,e,f){var g=new Amb;g.oa="paths";g.Ca=b;g.o=c;g.U=e;g.Ds=f;if(null===a)throw Lb(Mb(),null);g.l=a;return g}
d.Va=function(a){var b=Bmb(this,this.Ca,this.o,this.U),c=m7a(this.Ds,this.o,this.l.tj()).Ua(),e=z(),c=b.la(c,e.s);R();var b=this.oa,e=Th(R(),b),b=(new My).e(a.da),f=b.r,g=b.da,h=(new pq).e(g);iq(Cq(),c,h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);for(var g=c.z,k=g.j.length,l=h=0,p=e.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=e[h],h=1+h|0,l=1+l|0;c.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};function Bmb(a,b,c,e){b=b.t.t.Tb;a=t(new u,function(a,b,c){return function(e){return Hlb(a.l,e,b,c,a.l.tj())}}(a,c,e));e=z();b=b.ka(a,e.s);return c.Cb(b)}d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({Fta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentEmitter$EndpointsEmitter",{Fta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Cmb(){this.l=this.o=this.Ca=this.oa=null}Cmb.prototype=new r;Cmb.prototype.constructor=Cmb;d=Cmb.prototype;
d.L=function(){return"LicenseEmitter"};d.tba=function(a,b,c,e){this.oa=b;this.Ca=c;this.o=e;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Gta&&a.l===this.l){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=this.Ca.t.t.ca(),k=H(Wg(),G()),l=Dd(h,Xm().Jf);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,"url",l,w()))));h=Dd(h,Xm().$);h.b()||(h=h.c(),(new A).d(vh(k,Ih(new Jh,"name",h,w()))));Er(k,Mw(this.Ca.t.t,this.o,this.l.tj()).Ua());iq(Cq(),this.o.Cb(k),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,h=k=
0,p=c.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;k<l;)g.j[h]=c[k],k=1+k|0,h=1+h|0;e.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({Gta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentEmitter$LicenseEmitter",{Gta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Dmb(){this.l=this.o=this.Ca=this.oa=null}Dmb.prototype=new r;Dmb.prototype.constructor=Dmb;d=Dmb.prototype;d.L=function(){return"OrganizationEmitter"};
d.tba=function(a,b,c,e){this.oa=b;this.Ca=c;this.o=e;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Hta&&a.l===this.l){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=this.Ca.t.t.ca(),k=H(Wg(),G()),l=Dd(h,bn().Jf);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,"url",l,w()))));l=Dd(h,bn().$);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,"name",l,w()))));h=Dd(h,bn().XI);h.b()||(h=h.c(),(new A).d(vh(k,Ih(new Jh,"email",h,w()))));Er(k,Mw(this.Ca.t.t,this.o,this.l.tj()).Ua());iq(Cq(),this.o.Cb(k),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|
0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,h=k=0,p=c.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;k<l;)g.j[h]=c[k],k=1+k|0,h=1+h|0;e.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({Hta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentEmitter$OrganizationEmitter",{Hta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Emb(){this.l=this.o=this.Pb=null}Emb.prototype=new r;
Emb.prototype.constructor=Emb;d=Emb.prototype;d.L=function(){return"InfoEmitter"};d.H=function(){return 2};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Jta&&a.l===this.l?this.Pb===a.Pb?this.o===a.o:!1:!1};d.K=function(a){switch(a){case 0:return this.Pb;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=H(Wg(),G()),c=Dd(this.Pb,Jn().$);c.b()?vh(b,Bv(new Cv,"title","API",O().Wa,Gd())):(c=c.c(),vh(b,Ih(new Jh,"title",c,w())));c=Dd(this.Pb,Jn().fb);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,"description",c,w()))));c=Dd(this.Pb,Jn().dG);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,"termsOfService",c,w()))));c=Dd(this.Pb,Jn().Tm);c.b()?vh(b,Bv(new Cv,"version","1.0",O().Wa,Gd())):(c=c.c(),vh(b,Ih(new Jh,"version",c,w())));c=Dd(this.Pb,Jn().WF);c.b()||(c=c.c(),(new A).d(vh(b,(new Cmb).tba(this.l.l,
"license",c,this.o))));c=Dd(this.Pb,Jn().bG);c.b()||(c=c.c(),(new A).d(vh(b,(new Dmb).tba(this.l.l,"contact",c,this.o))));R();var e=Th(R(),"info"),c=(new My).e(a.da),f=c.r,g=c.da,h=(new pq).e(g);iq(Cq(),this.o.Cb(b),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));b=c.r;e=[e];if(0>b.x)throw(new X).e("0");g=e.length|0;f=b.x+g|0;hC(b,f);Ca(b.z,0,b.z,g,b.x);for(var g=b.z,k=g.j.length,l=h=0,p=e.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=e[h],h=1+h|0,l=1+l|0;b.x=f;T(a.r,iC(jC(),c.r))};d.y=function(){return Y(this)};
function k9a(a,b,c){var e=new Emb;e.Pb=b;e.o=c;if(null===a)throw Lb(Mb(),null);e.l=a;return e}d.M=function(){return Z(this)};d.Oa=function(){var a;a=Gd();var b=Dd(this.Pb,Jn().Tm);if(!b.b()&&(b=Zb(b.c().t.E,n(Fd)),!b.b()))if(a=b.c(),null!==a)a=a.cc.Dd;else throw(new v).d(a);b=Dd(this.Pb,Jn().$);if(!b.b()&&(b=Zb(b.c().t.E,n(Fd)),!b.b()))if(b=b.c(),null!==b){if(b=b.cc,a.zy()||0>b.Dd.eE(a))a=b.Dd}else throw(new v).d(b);return a};
d.$classData=q({Jta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasDocumentEmitter$WebApiEmitter$InfoEmitter",{Jta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Z3(){this.l=this.AP=null}Z3.prototype=new r;Z3.prototype.constructor=Z3;d=Z3.prototype;d.L=function(){return"OasHeaderEmitter"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Xta&&a.l===this.l?this.AP===a.AP:!1};d.K=function(a){switch(a){case 0:return this.AP;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.Va=function(a){Bv(new Cv,this.AP.oa,this.AP.t,O().Wa,Gd()).Va(a)};d.y=function(){return Y(this)};function Y3(a,b,c){a.AP=c;if(null===b)throw Lb(Mb(),null);a.l=b;return a}d.M=function(){return Z(this)};d.Oa=function(){return Gd()};d.$classData=q({Xta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentEmitter$OasHeaderEmitter",{Xta:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Fmb(){this.TE=this.Q=null}Fmb.prototype=new oKa;Fmb.prototype.constructor=Fmb;
d=Fmb.prototype;d.L=function(){return"OasModuleEmitter"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.iua){var b=this.TE;a=a.TE;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.TE;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.d0=function(){var a=Jy(Ky(),vt(),this.TE.E),b=z(),c=[v1a(this,this.TE,a)],b=H(b,(new J).aa(c)),c=Xp(this.TE.g,Ug().Mc),c=(new z1).xA(c,a,Xp(this.TE.g,Ug().qc),this.Q).Gc,e=Dd(this.TE.g,Ap().Ud);if(e.b())var f=w();else e=e.c(),f=(new A).d(Ih(new Jh,Hv((new Cf).e("usage")),e,w()));var e=Ly(),g=(new My).e(e.Dh),h=(new ph).e(e.xh);Tc(h)&&Ny(g,e.xh);var h=g.r,k=g.da,l=(new pq).e(k);yYa(l,"swagger",(R(),Th(R(),"2.0")));var p=Cq(),f=f.wa(),y=z(),c=c.la(f,y.s),f=z();iq(p,a.Cb(c.la(b,f.s)),l);T(h,lq(R(),
rq(sq(),l.r,k),O().ua));return(new Oy).mc(Py(vq(),e.Dh),g.r)};function Gmb(a,b,c){a.TE=b;cP.prototype.sA.call(a,c);return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({iua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasModuleEmitter",{iua:1,jS:1,f:1,fS:1,A:1,w:1,q:1,n:1});function zmb(){this.Q=this.U=this.o=this.IA=null}zmb.prototype=new r;zmb.prototype.constructor=zmb;d=zmb.prototype;d.L=function(){return"OasNamedParameterEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.kua&&this.IA===a.IA&&this.o===a.o){var b=this.U;a=a.U;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.IA;case 1:return this.o;case 2:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.IA.zr,b=B(b.ca(),b.Ch()).G;if(x(b))b=b.i;else{var b=this.Q.Si(),c=Bc().nh,e=this.IA.zr.k,f=w(),g="Cannot declare parameter without name "+this.IA.zr,h=Zb(this.IA.zr.ha(),n(Fd)),k=this.IA.zr.Yb();b.Hc(c.k,e,f,g,h,xc().tb,k);b="default-name"}R();e=Th(R(),b);b=(new My).e(a.da);c=this.IA.zr;dn(c)?J8a(c,this.o,this.U,!1,this.Q).Ob(b):wn(c)&&(new E3).GU(c,this.o,this.U,this.Q).Ob(b);c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);for(var g=
c.z,l=g.j.length,k=h=0,p=e.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=e[h],h=1+h|0,k=1+k|0;c.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.IA.zr.ha(),n(Fd))};d.$classData=q({kua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasNamedParameterEmitter",{kua:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function ymb(){this.Q=this.o=this.cA=null}ymb.prototype=new r;ymb.prototype.constructor=ymb;d=ymb.prototype;d.L=function(){return"OasNamedPropertyTypeEmitter"};
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.lua){var b=this.cA,c=a.cA;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.cA;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=B(this.cA.g,Zl().$).G;if(b.b())throw Lb(Mb(),(new Nb).e("Cannot declare annotation type without name "+this.cA));var b=b.c(),c=Th(R(),b),b=(new My).e(a.da);if(yb(this.cA).qa())CN(new DN,this.cA,B(this.cA.g,Db().wd).G,G(),this.Q).Ob(b);else{var e=this.Q.of.RN().zf(this.cA,this.o).NT();if(Ep(e)){var e=e.i,f=b.r,g=b.da,h=(new pq).e(g);iq(Cq(),this.o.Cb(e),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua))}else if(Hp(e))e.i.Ob(b);else throw(new v).d(e);}e=b.r;c=[c];if(0>e.x)throw(new X).e("0");
g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,k=g.j.length,l=h=0,p=c.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=c[h],h=1+h|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),b.r))};d.Xaa=function(a,b,c){this.cA=a;this.o=b;this.Q=c;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.cA.E,n(Fd))};d.$classData=q({lua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasNamedPropertyTypeEmitter",{lua:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function y1a(){this.Q=this.eW=this.Bf=this.oa=null}y1a.prototype=new r;y1a.prototype.constructor=y1a;d=y1a.prototype;d.L=function(){return"OasNamedRefEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.mua&&this.oa===a.oa&&this.Bf===a.Bf){var b=this.eW;a=a.eW;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Bf;case 2:return this.eW;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da);Dv(this.Q,b,this.Bf);var e=b.r,c=[c];if(0>e.x)throw(new X).e("0");var f=c.length|0,g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,h=f.j.length,k=0,l=0,p=c.length|0,h=p<h?p:h,p=f.j.length,h=h<p?h:p;k<h;)f.j[l]=c[k],k=1+k|0,l=1+l|0;e.x=g;T(a.r,iC(jC(),b.r))};function x1a(a,b,c,e,f){a.oa=b;a.Bf=c;a.eW=e;a.Q=f;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return this.eW};
d.$classData=q({mua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasNamedRefEmitter",{mua:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Hmb(){this.l=this.Qz=this.o=this.Xb=this.Eh=null}Hmb.prototype=new r;Hmb.prototype.constructor=Hmb;d=Hmb.prototype;d.L=function(){return"ReferenceEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.nua&&a.l===this.l){var b=this.Eh,c=a.Eh;(null===b?null===c:b.h(c))?(b=this.Xb,c=a.Xb,b=null===b?null===c:b.h(c)):b=!1;return b&&this.o===a.o?this.Qz===a.Qz:!1}return!1};d.K=function(a){switch(a){case 0:return this.Eh;case 1:return this.Xb;case 2:return this.o;case 3:return this.Qz;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Jca=function(){var a=jd(this.Eh);return a.b()?this.Eh.k:a.c()};
d.Va=function(a){var b=this.Xb,b=(b.b()?(new kz).Qj(H(fc().Sg,G())):b.c()).Xb.Ib(t(new u,function(a){return function(b){if(null!==b){var c=b.Ba();if(null!==c)return c.pa()===a.Eh.k}throw(new v).d(b);}}(this)));if(b.b())b=w();else{var c=b.c();a:{if(null!==c){var b=c.pa(),e=c.Ba();if(null!==e){c=e.Ba();b=(new P).N(b,c);break a}}throw(new v).d(c);}b=(new A).d(b)}b=b.b()?(new P).N(gc(this.Qz),this.Jca()):b.c();Bv(new Cv,b.pa(),b.Ba(),O().Wa,Gd()).Va(a)};
function Imb(a,b,c,e,f,g){a.Eh=c;a.Xb=e;a.o=f;a.Qz=g;if(null===b)throw Lb(Mb(),null);a.l=b;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return Gd()};d.$classData=q({nua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSpecEmitter$ReferenceEmitter",{nua:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Jmb(){this.l=this.o=this.nf=null}Jmb.prototype=new r;Jmb.prototype.constructor=Jmb;d=Jmb.prototype;d.L=function(){return"ReferencesEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.oua&&a.l===this.l){var b=this.nf,c=a.nf;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.nf;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=Zb(this.nf.ha(),n(nd)),c=b.b()?(new kz).Qj(H(fc().Sg,G())):b.c(),b=this.nf.Pe(),e=(new ggb).uba(this),f=z(),b=b.$b(e,f.s);if(b.Fa()){var e=pc(fc().db,G()),f=(new Qd).d(e),e=(new Ie).a(),c=c.Xb,g=t(new u,function(a,b,c,e){return function(f){if(null!==f){var g=f.pa(),h=f.Ba();if(null!==h){var k=h.pa(),l=h.Ba(),h=b.Ib(t(new u,function(a,b){return function(a){return a.k===b}}(a,k)));if(x(h)){h=h.i;c.ta=c.ta.Zb((new P).N(h.k,h));f=a.l;k=(new P).N(k,l);g=[(new P).N(g,k)];if(0===(g.length|
0))g=Yd();else{for(var k=Zd(new ee,Yd()),l=0,p=g.length|0;l<p;)fe(k,g[l]),l=1+l|0;g=k.gb}return(new A).d(Imb(new Hmb,f,h,(new A).d((new kz).Qj(g)),a.o,jb(function(a,b){return function(){return b.os("uses")}}(a,e))))}return w()}}throw(new v).d(f);}}(this,b,f,e)),h=Pf(),h=Qf(h),c=De(c,g,h).ce(),b=b.xb(t(new u,function(a,b){return function(a){return b.ta.Ta(a.k).b()}}(this,f))),e=t(new u,function(a,b){return function(c){return(new A).d(Imb(new Hmb,a.l,c,(new A).d((new kz).Qj(H(fc().Sg,G()))),a.o,jb(function(a,
b){return function(){return b.os("uses")}}(a,b))))}}(this,e)),f=z(),b=b.ka(e,f.s),e=z(),b=c.la(b,e.s),e=(new hgb).uba(this),f=z(),e=b.$b(e,f.s);R();b=Hv((new Cf).e("uses"));f=Th(R(),b);b=(new My).e(a.da);c=b.r;g=b.da;h=(new pq).e(g);iq(Cq(),this.o.Cb(e),h);T(c,lq(R(),rq(sq(),h.r,g),O().ua));e=b.r;f=[f];if(0>e.x)throw(new X).e("0");g=f.length|0;c=e.x+g|0;hC(e,c);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,k=g.j.length,l=h=0,p=f.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=f[h],h=1+h|0,l=1+l|0;e.x=c;
T(a.r,iC(jC(),b.r))}};function v1a(a,b,c){var e=new Jmb;e.nf=b;e.o=c;if(null===a)throw Lb(Mb(),null);e.l=a;return e}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return Gd()};d.$classData=q({oua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasSpecEmitter$ReferencesEmitter",{oua:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function J3(){this.f$=this.o=this.fQ=this.oa=null}J3.prototype=new r;J3.prototype.constructor=J3;d=J3.prototype;d.L=function(){return"TagsEmitter"};
d.H=function(){return 3};d.eH=function(a,b,c,e){this.oa=a;this.fQ=b;this.o=c;this.f$=e;return this};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.uua){if(this.oa===a.oa)var b=this.fQ,c=a.fQ,b=null===b?null===c:b.h(c);else b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.fQ;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=this.fQ,c=t(new u,function(a){return function(b){var c=a.o,e=new Kmb;e.Ze=b;e.o=c;if(null===a)throw Lb(Mb(),null);e.l=a;return e}}(this)),e=z(),f=b.ka(c,e.s);R();var b=this.oa,e=Th(R(),b),b=(new My).e(a.da),c=b.r,g=b.da,h=(new My).e(g);tq(Cq(),this.o.Cb(f),h);R();FC();f=Py(vq(),g);f=lq(0,(new GC).mc(f,h.r),O().Nc);T(c,f);c=b.r;e=[e];if(0>c.x)throw(new X).e("0");h=e.length|0;f=c.x+h|0;hC(c,f);Ca(c.z,0,c.z,h,c.x);for(var h=c.z,k=h.j.length,l=g=0,p=e.length|0,k=p<k?p:k,p=h.j.length,
k=k<p?k:p;g<k;)h.j[l]=e[g],g=1+g|0,l=1+l|0;c.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=this.fQ.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.E,n(Fd))));return a.b()?Gd():a.c()};d.$classData=q({uua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.TagsEmitter",{uua:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Kmb(){this.l=this.o=this.Ze=null}Kmb.prototype=new r;Kmb.prototype.constructor=Kmb;d=Kmb.prototype;d.L=function(){return"TagEmitter"};
d.Ob=function(a){var b=a.r;a=a.da;var c=(new pq).e(a),e=this.Ze.g,f=H(Wg(),G()),g=Dd(e,YO().$);g.b()||(g=g.c(),(new A).d(vh(f,Ih(new Jh,"name",g,w()))));g=Dd(e,YO().fb);g.b()||(g=g.c(),(new A).d(vh(f,Ih(new Jh,"description",g,w()))));e=Dd(e,YO().bh);e.b()||(e.c(),(new A).d(vh(f,Xw(new Yw,"externalDocs",Xp(this.Ze.g,YO().bh),this.o,this.l.f$))));Er(f,Mw(this.Ze,this.o,this.l.f$).Ua());iq(Cq(),this.o.Cb(f),c);T(b,lq(R(),rq(sq(),c.r,a),O().ua))};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.vua&&a.l===this.l){var b=this.Ze,c=a.Ze;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Ze;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ze.E,n(Fd))};
d.$classData=q({vua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.TagsEmitter$TagEmitter",{vua:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function Z5(){this.Ad=this.Se=null}Z5.prototype=new r;Z5.prototype.constructor=Z5;d=Z5.prototype;d.L=function(){return"CommentEmitter"};d.Ob=function(a){var b=R().Qm;T(a.r,b);Ny(a,this.Ad);b=Zb(this.Se.ha(),n(Lt));b.b()?b=w():(b=b.c(),b=(new A).d(b.Lc));b.b()||(b=b.c(),hda(),Ny(a,gda(0,b)))};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.wua){var b=this.Se,c=a.Se;return(null===b?null===c:b.h(c))?this.Ad===a.Ad:!1}return!1};d.K=function(a){switch(a){case 0:return this.Se;case 1:return this.Ad;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.DK=function(a,b){this.Se=a;this.Ad=b;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return Gd()};
d.$classData=q({wua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.CommentEmitter",{wua:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function jgb(){this.l=this.o=this.U=this.bg=null}jgb.prototype=new r;jgb.prototype.constructor=jgb;d=jgb.prototype;d.L=function(){return"AnnotationsTypesEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Eua&&a.l===this.l){var b=this.bg,c=a.bg;(null===b?null===c:b.h(c))?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.bg;case 1:return this.U;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"annotationTypes"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f),h=Cq(),k=this.o,l=this.bg,p=t(new u,function(a){return function(b){var c=a.l,e=a.U,f=a.o,g=new Lmb;g.zi=b;g.U=e;g.o=f;if(null===c)throw Lb(Mb(),null);g.l=c;return g}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=b.length|0;l=p<l?p:l;p=g.j.length;for(l=
l<p?l:p;h<l;)g.j[k]=b[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),c.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=this.bg.pc();a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a.E,n(Fd))));return a.b()?Gd():a.c()};d.$classData=q({Eua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.Raml10RootLevelEmitters$AnnotationsTypesEmitter",{Eua:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Lmb(){this.l=this.o=this.U=this.zi=null}Lmb.prototype=new r;
Lmb.prototype.constructor=Lmb;d=Lmb.prototype;d.L=function(){return"NamedPropertyTypeEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Fua&&a.l===this.l){var b=this.zi,c=a.zi;(null===b?null===c:b.h(c))?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.zi;case 1:return this.U;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=B(this.zi.g,Zl().$).G;if(x(b))b=b.i;else{var b=this.l.Q.jc,c=Bc().nh,e=this.zi.k,f=w(),g="Annotation type without name "+this.zi,h=Zb(this.zi.E,n(Fd)),k=Yb(this.zi);b.Hc(c.k,e,f,g,h,xc().tb,k);b="default-name"}R();e=Th(R(),b);c=yb(this.zi).qa()?function(a){return function(b){a.eK(b)}}(this):function(a){return function(b){a.dK(b)}}(this);b=(new My).e(a.da);c(b);c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);for(var g=c.z,l=g.j.length,
k=h=0,p=e.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=e[h],h=1+h|0,k=1+k|0;c.x=f;T(a.r,iC(jC(),b.r))};d.eK=function(a){var b=yb(this.zi);b.b()||(b=b.c(),ax(fla(this.l.Q.of),b,B(this.zi.g,Db().wd).G,this.U).Ob(a))};d.dK=function(a){var b=this.l.Q.of.RN().zf(this.zi,this.o).NT();if(Ep(b)){var b=b.i,c=a.r;a=a.da;var e=(new pq).e(a);iq(Cq(),this.o.Cb(b),e);T(c,lq(R(),rq(sq(),e.r,a),O().ua))}else if(Hp(b))b.i.Ob(a);else throw(new v).d(b);};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.zi.E,n(Fd))};d.$classData=q({Fua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.Raml10RootLevelEmitters$NamedPropertyTypeEmitter",{Fua:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function y$a(){this.l=this.o=this.Ca=this.oa=null}y$a.prototype=new r;y$a.prototype.constructor=y$a;d=y$a.prototype;d.vba=function(a,b,c,e){this.oa=b;this.Ca=c;this.o=e;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.L=function(){return"LicenseEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Hua&&a.l===this.l){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=this.Ca.t.t.ca(),k=H(Wg(),G()),l=Dd(h,Xm().Jf);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,"url",l,w()))));h=Dd(h,Xm().$);h.b()||(h=h.c(),(new A).d(vh(k,Ih(new Jh,"name",h,w()))));Er(k,Mw(this.Ca.t.t,this.o,this.l.Q).Ua());iq(Cq(),this.o.Cb(k),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,h=k=0,
p=c.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;k<l;)g.j[h]=c[k],k=1+k|0,h=1+h|0;e.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({Hua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlDocumentEmitter$LicenseEmitter",{Hua:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function w$a(){this.l=this.o=this.Ca=this.oa=null}w$a.prototype=new r;w$a.prototype.constructor=w$a;d=w$a.prototype;
d.vba=function(a,b,c,e){this.oa=b;this.Ca=c;this.o=e;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.L=function(){return"OrganizationEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Iua&&a.l===this.l){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=this.oa,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=this.Ca.t.t.ca(),k=H(Wg(),G()),l=Dd(h,bn().Jf);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,"url",l,w()))));l=Dd(h,bn().$);l.b()||(l=l.c(),(new A).d(vh(k,Ih(new Jh,"name",l,w()))));h=Dd(h,bn().XI);h.b()||(h=h.c(),(new A).d(vh(k,Ih(new Jh,"email",h,w()))));Er(k,Mw(this.Ca.t.t,this.o,this.l.Q).Ua());iq(Cq(),this.o.Cb(k),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|
0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,h=k=0,p=c.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;k<l;)g.j[h]=c[k],k=1+k|0,h=1+h|0;e.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({Iua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlDocumentEmitter$OrganizationEmitter",{Iua:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function T7(){this.l=null}T7.prototype=new r;
T7.prototype.constructor=T7;function B$a(a){var b=new T7;if(null===a)throw Lb(Mb(),null);b.l=a;return b}T7.prototype.tE=function(a,b){return 0<=this.Ak(a,b)};
T7.prototype.Ak=function(a,b){a:{for(var c=B(a.dk.g,Tm().$f).G,c=c.b()?null:c.c(),c=(new ph).e(c),e,f=e=0,g=c.ia.length|0;f<g;){var h=c.jb(f);47===(null===h?0:h.t)&&(e=1+e|0);f=1+f|0}c=e;e=B(b.dk.g,Tm().$f).G;e=e.b()?null:e.c();e=(new ph).e(e);g=f=0;for(h=e.ia.length|0;g<h;){var k=e.jb(g);47===(null===k?0:k.t)&&(f=1+f|0);g=1+g|0}e=f;c=c===e?0:c<e?-1:1;switch(c){case 0:a=B(a.dk.g,Tm().$f).G;a=a.b()?null:a.c();b=B(b.dk.g,Tm().$f).G;b=b.b()?null:b.c();b=a===b?0:a<b?-1:1;break a;default:b=c}}return b};
T7.prototype.SE=function(a,b){return 0>=this.Ak(a,b)};T7.prototype.$classData=q({rYa:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlDocumentEmitter$WebApiEmitter$$anonfun$defaultOrder$1$1",{rYa:1,f:1,ZH:1,nH:1,$H:1,YH:1,q:1,n:1});function jW(){j6.call(this);this.De=this.Uj=null}jW.prototype=new kgb;jW.prototype.constructor=jW;function Mmb(){}Mmb.prototype=jW.prototype;
function ueb(a,b){var c=a.Uj.ga;H(z(),G());var c=cj(b,c),e=a.Uj.ga,f=Ap().nc;Eb(c,f,e);c=a.Uj.Gg.Vd;e=Pc();e=L(c,e,a.Mb());c=Dx(Ex(new Fx,b,"uses",e,a.Uj.U,a.Mb()),a.Uj.ga);a.MA(a.Uj,e);e=a.DL(e);f=E0(new F0,a.Mb().Pg());e=ac(e,f);f=Rl().ob;ff(b,f,e);e=a.Mb().le().qu();e.Fa()&&(f=Ug().Mc,Vg(b,f,e));Tc(c.U)&&(c=n3(c),e=Nl().qc,Vg(b,e,c));ec(a.Mb().Yh);return b}
function Nmb(a){var b=py().On;if(null===b?null===a:b.h(a))return Di(),a=[Jw().Zfa],a=(new J).aa(a),b=Di().s,Ei(a,b);b=py().V8;if(null===b?null===a:b.h(a))return Di(),a=[Jw().jda],a=(new J).aa(a),b=Di().s,Ei(a,b);b=py().V5;return(null===b?null===a:b.h(a))?(Di(),a=[Jw().Xp],a=(new J).aa(a),b=Di().s,Ei(a,b)):G()}
jW.prototype.DL=function(a){var b=bWa(dWa(),this.Uj.Gg.Vd.Bd),c=this.Uj.ga;H(z(),G());b=cj(b,c);xO(this.Mb(),b.k,a,"webApi");var c=(new K).Y(a),e=Jn().$;Bh(c,"title",Uh(Ch(Dh(this,e,this.Mb()),b)));c=(new K).Y(a);e=Jn().fb;Bh(c,"description",Uh(Ch(Dh(this,e,this.Mb()),b)));c=yc((new K).Y(a),"mediaType");if(!c.b()){e=c.c();this.Mb().kAa=!0;var c=Ke(M(),e),f=e.i.pb().nb;O().Nc===f?e=tDa((new Fw).Vb(e.i,this.Mb())):(c.Wb((new C0).a()),f=z(),e=[tma(wma(),e.i,this.Mb()).Hf()],e=gr(new hr,H(f,(new J).aa(e)),
(new N).a()));f=Jn().tl;Fh(b,f,e,c);f=Jn().Jp;Fh(b,f,e,c)}c=(new K).Y(a);e=Jn().Tm;Bh(c,"version",Uh(Ch(Dh(this,e,this.Mb()),b)));c=(new K).Y(a);e=Kh((new Cf).e("termsOfService"));f=Jn().dG;Bh(c,e,Ch(Dh(this,f,this.Mb()),b));c=(new K).Y(a);e=Jn().yk;Bh(c,"protocols",aO(Ch(Dh(this,e,this.Mb()),b)));c=(new K).Y(a);e=Kh((new Cf).e("contact"));f=Jn().bG;Bh(c,e,ex(Ch(Dh(this,f,this.Mb()),b),t(new u,function(a){return function(b){goa();var c=a.Mb();goa();b=(new CO).Dr(b,Lx(Jx(),c));return FJa(b)}}(this))));
c=(new K).Y(a);e=Kh((new Cf).e("license"));f=Jn().WF;Bh(c,e,ex(Ch(Dh(this,f,this.Mb()),b),t(new u,function(a){return function(b){$na();var c=a.Mb();$na();b=(new uO).Dr(b,Lx(Jx(),c));return yJa(b)}}(this))));c=(new K).Y(a);e=Kh((new Cf).e("tags"));c=yc(c,e);if(!c.b()){var c=c.c(),e=c.i,f=Pc(),g=uv().gc,e=L(e,CM(g,f),this.Mb()),f=t(new u,function(a,b){return function(c){return hKa(ooa(qoa(),(R(),R(),lq(R(),c,O().ua)),t(new u,function(a,b){return function(a){var c=b.k;H(z(),G());return cj(a,c)}}(a,b)),
a.Mb()))}}(this,b)),g=z(),f=e.ka(f,g.s),e=Jn().wv,f=gr(new hr,f,Ke(M(),c.i)),c=Ke(M(),c);Fh(b,e,f,c)}e=qs((new K).Y(a),"^/.*");e.Fa()&&(c=H(Wg(),G()),e.X(t(new u,function(a,b,c){return function(e){$B(a.Mb().Oh.k0(),e,t(new u,function(a,b){return function(a){return y9a(b,a)}}(a,b)),w(),c,!1).Pc()}}(this,b,c))),e=Jn().kr,c=gr(new hr,c,(new N).a()),ff(b,e,c),Omb(this.Mb()));Yfb(a,b,this.Mb()).Pc();c=t(new u,function(a,b){return function(c){return WJa(XJa(),b,c,a.Mb())}}(this,t(new u,function(a,b){return function(a){return b.tI(a)}}(this,
b))));e=(new K).Y(a);f=Jn().oc;Bh(e,"securedBy",aO(ex(Ch(Dh(this,f,this.Mb()),b),c)));c=yc((new K).Y(a),"documentation");c.b()||(e=c.c(),c=Jn().tw,f=e.i,g=Jc(),f=O$a(new N$a,this,L(f,g,this.Mb()),this.Mb().le(),b.k).fh(),e=Ke(M(),e),jr(b,c,f,e));jx(new kx,b,a,Nmb(this.Mb().Dv),this.Mb()).Pc();return b};jW.prototype.wE=function(a,b){this.Uj=a;this.De=b;j6.prototype.qs.call(this,b);return this};function Pmb(){this.Qz=this.o=this.Xb=this.Eh=null}Pmb.prototype=new r;Pmb.prototype.constructor=Pmb;d=Pmb.prototype;
d.L=function(){return"ReferenceEmitter"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.eva){var b=this.Eh,c=a.Eh;(null===b?null===c:b.h(c))?(b=this.Xb,c=a.Xb,b=null===b?null===c:b.h(c)):b=!1;return b&&this.o===a.o?this.Qz===a.Qz:!1}return!1};d.K=function(a){switch(a){case 0:return this.Eh;case 1:return this.Xb;case 2:return this.o;case 3:return this.Qz;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Jca=function(){var a=jd(this.Eh);return a.b()?this.Eh.k:a.c()};
d.Va=function(a){var b=this.Xb,b=(b.b()?(new kz).Qj(H(fc().Sg,G())):b.c()).Xb.Ib(t(new u,function(a){return function(b){if(null!==b){var c=b.Ba();if(null!==c)return c.pa()===a.Eh.k}throw(new v).d(b);}}(this)));if(b.b())b=w();else{var c=b.c();a:{if(null!==c){var b=c.pa(),e=c.Ba();if(null!==e){c=e.Ba();b=(new P).N(b,c);break a}}throw(new v).d(c);}b=(new A).d(b)}b=b.b()?(new P).N(gc(this.Qz),this.Jca()):b.c();Bv(new Cv,b.pa(),b.Ba(),O().Wa,Gd()).Va(a)};
function Qmb(a,b,c,e,f){a.Eh=b;a.Xb=c;a.o=e;a.Qz=f;return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return Gd()};d.$classData=q({eva:0},!1,"amf.plugins.document.webapi.parser.spec.raml.ReferenceEmitter",{eva:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Rmb(){this.o=this.nf=null}Rmb.prototype=new r;Rmb.prototype.constructor=Rmb;d=Rmb.prototype;d.L=function(){return"ReferencesEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.fva){var b=this.nf,c=a.nf;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.nf;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=Zb(this.nf.ha(),n(nd)),c=b.b()?(new kz).Qj(H(fc().Sg,G())):b.c(),b=this.nf.Pe(),e=(new ngb).wba(this),f=z(),b=b.$b(e,f.s);if(b.Fa()){var e=pc(fc().db,G()),f=(new Qd).d(e),e=(new Ie).a(),c=c.Xb,g=t(new u,function(a,b,c,e){return function(f){if(null!==f){var g=f.pa(),h=f.Ba();if(null!==h){f=h.pa();var k=h.Ba(),h=b.Ib(t(new u,function(a,b){return function(a){return a.k===b}}(a,f)));if(x(h)){h=h.i;c.ta=c.ta.Zb((new P).N(h.k,h));f=(new P).N(f,k);g=[(new P).N(g,f)];if(0===(g.length|
0))g=Yd();else{f=Zd(new ee,Yd());for(var k=0,l=g.length|0;k<l;)fe(f,g[k]),k=1+k|0;g=f.gb}return(new A).d(Qmb(new Pmb,h,(new A).d((new kz).Qj(g)),a.o,jb(function(a,b){return function(){return b.os("uses")}}(a,e))))}return w()}}throw(new v).d(f);}}(this,b,f,e)),h=Pf(),h=Qf(h),c=De(c,g,h).ce(),b=b.xb(t(new u,function(a,b){return function(a){return b.ta.Ta(a.k).b()}}(this,f))),e=t(new u,function(a,b){return function(c){return(new A).d(Qmb(new Pmb,c,(new A).d((new kz).Qj(H(fc().Sg,G()))),a.o,jb(function(a,
b){return function(){return b.os("uses")}}(a,b))))}}(this,e)),f=z(),b=b.ka(e,f.s),e=z(),b=c.la(b,e.s),e=(new ogb).wba(this),f=z(),e=b.$b(e,f.s);R();f=Th(R(),"uses");b=(new My).e(a.da);c=b.r;g=b.da;h=(new pq).e(g);iq(Cq(),this.o.Cb(e),h);T(c,lq(R(),rq(sq(),h.r,g),O().ua));e=b.r;f=[f];if(0>e.x)throw(new X).e("0");g=f.length|0;c=e.x+g|0;hC(e,c);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,k=g.j.length,l=h=0,p=f.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=f[h],h=1+h|0,l=1+l|0;e.x=c;T(a.r,iC(jC(),b.r))}};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};function Qoa(a,b){var c=new Rmb;c.nf=a;c.o=b;return c}d.Oa=function(){return Gd()};d.$classData=q({fva:0},!1,"amf.plugins.document.webapi.parser.spec.raml.ReferencesEmitter",{fva:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Smb(){this.Q=this.o=this.Ca=null}Smb.prototype=new r;Smb.prototype.constructor=Smb;d=Smb.prototype;d.L=function(){return"UserDocumentationsEmitter"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.gva){var b=this.Ca,c=a.Ca;return(null===b?null===c:b.h(c))?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.Ca;case 1:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function x$a(a,b,c){var e=new Smb;e.Ca=a;e.o=b;e.Q=c;return e}
d.Va=function(a){R();var b=Th(R(),"documentation"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new My).e(f),h=this.Ca.t.t.Tb,k=new pgb,l=z();h.$b(k,l.s).X(t(new u,function(a,b){return function(c){if(yb(c).qa()){Cq();var e=B(c.g,Db().wd).G;kq(0,b,e.b()?yb(c).c().k:e.c(),O().Wa)}else(new Qkb).CU(c,a.o,!0,a.Q).Ob(b)}}(this,g)));R();FC();f=Py(vq(),f);g=lq(0,(new GC).mc(f,g.r),O().Nc);T(e,g);e=c.r;b=[b];if(0>e.x)throw(new X).e("0");f=b.length|0;g=e.x+f|0;hC(e,g);Ca(e.z,0,e.z,f,e.x);for(var f=e.z,l=f.j.length,k=
h=0,p=b.length|0,l=p<l?p:l,p=f.j.length,l=l<p?l:p;h<l;)f.j[k]=b[h],h=1+h|0,k=1+k|0;e.x=g;T(a.r,iC(jC(),c.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=this.Ca.t.t.Tb.pc();a.b()?a=w():(a=a.c(),a=(new A).d(a.ha()));a.b()?a=w():(a=a.c(),Cq(),a=(new A).d(jq(0,a,n(Fd))));return a.b()?Gd():a.c()};d.$classData=q({gva:0},!1,"amf.plugins.document.webapi.parser.spec.raml.UserDocumentationsEmitter",{gva:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function mab(){this.dj=null}mab.prototype=new r;mab.prototype.constructor=mab;d=mab.prototype;d.L=function(){return"ExamplesValidationStep"};d.H=function(){return 1};d.Pfa=function(){return iab((new hab).qU(this.dj.nf,this.dj.na),this.dj.Nq).Lf(t(new u,function(a){return function(b){var c=t(new u,function(a){return function(b){var c=sba(b.Us,a.dj.qf,"");return(new A).d(vc(new wc,b.Ad,c,b.Wu,b.fw,b.Us,b.og,b.ga,b.Yy)).wa()}}(a)),e=z();return b.md(c,e.s)}}(this)),um())};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.tva){var b=this.dj;a=a.dj;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.dj;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.KK=function(a){this.dj=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({tva:0},!1,"amf.plugins.document.webapi.validation.ExamplesValidationStep",{tva:1,f:1,zva:1,FD:1,A:1,w:1,q:1,n:1});
function lab(){this.dj=null}lab.prototype=new r;lab.prototype.constructor=lab;d=lab.prototype;d.L=function(){return"ModelValidationStep"};d.H=function(){return 1};
d.Pfa=function(){var a=hka((new vgb).a(),this.dj.Ov),b=this.dj.Hl,a=Ek().h(b)||Fk().h(b)||Gk().h(b)||Bk().h(b)||Ck().h(b)||Dk().h(b)||yk().h(b)?gka(a):fka(a);wp(xp(),"WebApiValidations#validationRequestsForBaseUnit: validating now WebAPI");var b=Rk(),c=this.dj.nf,e=this.dj.qf;mta||(mta=(new YC).a());var f=mta.iU;return Qk(b).ifa(c,e,f,a).Lf(t(new u,function(a){return function(b){var c=b.TL();b=function(a){return function(b){return qba(a.dj.nf,b,a.dj.Ov,a.dj.qf).wa()}}(a);if(Di().s===Di().s){if(c===
G())return G();for(var e=c,f=(new mk).rs(!1),y=(new Qd).d(null),I=(new Qd).d(null);e!==G();){var E=e.fa();b(E).td().X(t(new u,function(a,b,c,e){return function(a){b.ta?(a=oz(new pz,a,G()),e.ta.ve=a,e.ta=a):(c.ta=oz(new pz,a,G()),e.ta=c.ta,b.ta=!0)}}(c,f,y,I)));e=e.sa()}return f.ta?y.ta:G()}Di();for(e=(new $g).a();!c.b();)f=c.fa(),f=b(f).td(),Er(e,f),c=c.sa();return e.wa()}}(this)),um())};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.vva){var b=this.dj;a=a.dj;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.dj;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.KK=function(a){this.dj=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({vva:0},!1,"amf.plugins.document.webapi.validation.ModelValidationStep",{vva:1,f:1,zva:1,FD:1,A:1,w:1,q:1,n:1});
function nab(){this.dj=null}nab.prototype=new r;nab.prototype.constructor=nab;d=nab.prototype;d.L=function(){return"ParserValidationStep"};d.H=function(){return 1};d.Pfa=function(){var a=Rk(),b=this.dj.nf,c=this.dj.Hl,e=this.dj.Ov;Rk();return Xab(Qk(a),b,c,e).Lf(t(new u,function(){return function(a){return a.nk}}(this)),um())};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.wva){var b=this.dj;a=a.dj;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.dj;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.KK=function(a){this.dj=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({wva:0},!1,"amf.plugins.document.webapi.validation.ParserValidationStep",{wva:1,f:1,zva:1,FD:1,A:1,w:1,q:1,n:1});function cQ(){this.iW=null}cQ.prototype=new r;cQ.prototype.constructor=cQ;d=cQ.prototype;d.L=function(){return"JsReportValidationProcessor"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Cva){var b=this.iW;a=a.iW;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.iW;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.hW=function(a,b){if(pJ(a)){var c=z(),e="Internal error during validation "+ja(a.qy),f=xc().tb;if(b.b())var g=w();else g=b.c(),g=(new A).d(g.k);g=g.b()?"":g.c();if(b.b())var h=w();else h=b.c(),h=(new A).d(h.k);var k=vo().AD.k,l=b.b()?w():Zb(b.c().ha(),n(Fd));b=b.b()?w():b.c().Yb();a=[vc(new wc,e,f,g,h,k,l,b,a)];a=H(c,(new J).aa(a))}else a&&a.$classData&&a.$classData.v.YZa?(c=z(),e=xc().tb,b.b()?f=w():(f=b.c(),f=(new A).d(f.k)),f=f.b()?"":f.c(),g=w(),h=vo().AD.k,k=b.b()?w():Zb(b.c().ha(),n(Fd)),b=
b.b()?w():b.c().Yb(),a=[vc(new wc,"Unknown discriminator value",e,f,g,h,k,b,a)],a=H(c,(new J).aa(a))):iLa(a)?(c=z(),e=xc().tb,b.b()?f=w():(f=b.c(),f=(new A).d(f.k)),f=f.b()?"":f.c(),g=w(),h=vo().AD.k,k=b.b()?w():Zb(b.c().ha(),n(Fd)),b=b.b()?w():b.c().Yb(),a=[vc(new wc,"Unsupported chars in string value (probably a binary file)",e,f,g,h,k,b,a)],a=H(c,(new J).aa(a))):a=G();return zqa(this,a)};d.S0=function(a){this.iW=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.JL=function(a){return zqa(this,a)};d.$classData=q({Cva:0},!1,"amf.plugins.document.webapi.validation.remote.JsReportValidationProcessor",{Cva:1,f:1,dfb:1,ZZa:1,A:1,w:1,q:1,n:1});function bz(){this.t=this.ba=this.t0=null}bz.prototype=new r;bz.prototype.constructor=bz;d=bz.prototype;d.L=function(){return"ParsedFromTypeExpression"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Eva?this.t0===a.t0:!1};
d.K=function(a){switch(a){case 0:return this.t0;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.e=function(a){this.t0=a;this.ba="type-expression";this.t=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Eva:0},!1,"amf.plugins.domain.shapes.annotations.ParsedFromTypeExpression",{Eva:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});
function Tmb(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.fb=this.Aa=this.g=this.ja=this.fu=this.Jf=null;this.ma=0}Tmb.prototype=new r;Tmb.prototype.constructor=Tmb;d=Tmb.prototype;d.pp=function(a){this.ef=a};
d.a=function(){Umb=this;Iq(this);cT(this);YK(this);Ob(this);var a=Xc(),b=C().dc;this.Jf=Rb(new Sb,a,D(new F,b,"url"),Tb(new Ub,Vb().dc,"url","URL for the creative work",G()));a=Pb();b=C().dc;this.fu=Rb(new Sb,a,D(new F,b,"title"),Tb(new Ub,Vb().dc,"title","Title of the creative work",G()));a=C().dc;a=D(new F,a,"CreativeWork");b=Lc().ja;this.ja=oz(new pz,a,b);var a=this.Jf,b=this.fu,c=this.fb,e=Lc().g,f=Db().g,g=Di(),e=e.la(f,g.s);this.g=oz(new pz,a,oz(new pz,b,oz(new pz,c,e)));this.Aa=Tb(new Ub,Vb().dc,
"Creative Work","The most generic kind of creative work, including books, movies, photographs, software programs, etc.",G());return this};d.qp=function(a){this.kg=a};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.op=function(a){this.Je=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.np=function(a){this.wd=a};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a(),b=(new Q).a();return(new r4).P(b,a)};d.ec=function(){return this.ja};
d.$classData=q({g_a:0},!1,"amf.plugins.domain.shapes.metamodel.CreativeWorkModel$",{g_a:1,f:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,ul:1});var Umb=void 0;function Gi(){Umb||(Umb=(new Tmb).a());return Umb}function nra(){this.iv=this.NH=this.Vm=null}nra.prototype=new r;nra.prototype.constructor=nra;d=nra.prototype;d.L=function(){return"AnyMatchPayloadPlugin"};d.tQ=function(a){var b=this.Vm,c=new Tgb;c.ra=a;c.Vm=b;AB();c.Nq=bb();return c};d.H=function(){return 1};d.D$=function(){return!1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Wva?this.Vm===a.Vm:!1};d.K=function(a){switch(a){case 0:return this.Vm;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.wh=function(){return this.iv};d.Sp=function(){return G()};d.e=function(a){this.Vm=a;this.NH=G();this.iv="Any match";return this};d.y=function(){return Y(this)};d.cn=function(){return HB(ib(),this)};d.M=function(){return Z(this)};
d.$classData=q({Wva:0},!1,"amf.plugins.domain.shapes.validation.PayloadValidationPluginsHandler$AnyMatchPayloadPlugin",{Wva:1,f:1,u7:1,wq:1,A:1,w:1,q:1,n:1});function E1(){this.ba=this.t=null}E1.prototype=new r;E1.prototype.constructor=E1;d=E1.prototype;d.L=function(){return"InvalidBinding"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Yva?this.t===a.t:!1};d.K=function(a){switch(a){case 0:return this.t;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.e=function(a){this.t=a;this.ba="invalid-binding";return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var $lb=q({Yva:0},!1,"amf.plugins.domain.webapi.annotations.InvalidBinding",{Yva:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});E1.prototype.$classData=$lb;function F1(){this.t=this.ba=this.ga=null}F1.prototype=new r;F1.prototype.constructor=F1;d=F1.prototype;d.L=function(){return"OrphanOasExtension"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Zva?this.ga===a.ga:!1};d.K=function(a){switch(a){case 0:return this.ga;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.e=function(a){this.ga=a;this.ba="orphan-oas-extension";this.t=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var K2=q({Zva:0},!1,"amf.plugins.domain.webapi.annotations.OrphanOasExtension",{Zva:1,f:1,mh:1,lf:1,A:1,w:1,q:1,n:1});
F1.prototype.$classData=K2;function Vmb(){this.ke=this.Hb=this.Jc=this.$=this.Aa=this.oa=this.g=this.ja=this.XM=this.gY=null;this.ma=0}Vmb.prototype=new r;Vmb.prototype.constructor=Vmb;d=Vmb.prototype;
d.a=function(){Wmb=this;Iq(this);cT(this);Wb(this);var a=Pb(),b=C().bb;this.gY=Rb(new Sb,a,D(new F,b,"expression"),Tb(new Ub,Vb().bb,"expression","structural location of the information to fulfill the callback",G()));a=Tm();b=C().bb;this.XM=Rb(new Sb,a,D(new F,b,"endpoint"),Tb(new Ub,Vb().bb,"endpoint","Endpoint targeted by the callback",G()));a=C().bb;a=D(new F,a,"Callback");b=Lc().ja;this.ja=oz(new pz,a,b);var a=this.$,b=this.gY,c=this.XM,e=Lc().g;this.g=oz(new pz,a,oz(new pz,b,oz(new pz,c,e)));
this.oa=this.$;this.Aa=Tb(new Ub,Vb().bb,"Callback","Model defining the information for a HTTP callback/ webhook",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.Zc=function(){M();var a=(new N).a();return(new S3).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};d.$classData=q({K0a:0},!1,"amf.plugins.domain.webapi.metamodel.CallbackModel$",{K0a:1,f:1,se:1,Oc:1,ic:1,Xc:1,Kj:1,yq:1});
var Wmb=void 0;function hn(){Wmb||(Wmb=(new Vmb).a());return Wmb}function Xmb(){this.ke=this.Hb=this.Jc=this.fb=this.lp=this.Dq=this.um=this.Qg=this.Aa=this.ja=this.TI=this.mf=this.kj=null;this.ma=0}Xmb.prototype=new r;Xmb.prototype.constructor=Xmb;d=Xmb.prototype;
d.a=function(){Ymb=this;Iq(this);cT(this);Ob(this);zda(this);var a=Yc(),b=C().bb;this.kj=Rb(new Sb,a,D(new F,b,"required"),Tb(new Ub,Vb().bb,"required","",G()));a=(new Ki).Ld(vn());b=C().bb;this.mf=Rb(new Sb,a,D(new F,b,"payload"),Tb(new Ub,Vb().bb,"payload","Payload for the request",G()));a=(new Ki).Ld(Ej());b=C().bb;this.TI=Rb(new Sb,a,D(new F,b,"cookieParameter"),Tb(new Ub,Vb().bb,"cookie parameter","",G()));a=C().bb;a=D(new F,a,"Request");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().bb,
"Request","Request information for an operation",G());return this};d.j$=function(a){this.lp=a};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){Di();var a=[kDa().$,this.fb,this.kj,this.um,this.Qg,this.mf,this.Dq,this.lp,this.TI],a=(new J).aa(a),b=Di().s,a=Ei(a,b),b=Lc().g,c=Di();return a.la(b,c.s)};d.g$=function(a){this.Qg=a};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a();return(new T3).P((new Q).a(),a)};d.h$=function(a){this.um=a};
d.ec=function(){return this.ja};d.i$=function(a){this.Dq=a};d.$classData=q({T0a:0},!1,"amf.plugins.domain.webapi.metamodel.RequestModel$",{T0a:1,f:1,se:1,Oc:1,ic:1,Xc:1,ul:1,cwa:1});var Ymb=void 0;function yn(){Ymb||(Ymb=(new Xmb).a());return Ymb}function Zmb(){this.ke=this.Hb=this.Jc=this.$=this.fb=this.Aa=this.ja=this.bh=null;this.ma=0}Zmb.prototype=new r;Zmb.prototype.constructor=Zmb;d=Zmb.prototype;
d.a=function(){$mb=this;Iq(this);cT(this);Wb(this);Ob(this);var a=Gi(),b=C().dc;this.bh=Rb(new Sb,a,D(new F,b,"documentation"),Tb(new Ub,Vb().dc,"documentation","Documentation about the tag",G()));a=C().bb;a=D(new F,a,"Tag");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().bb,"Tag","Categorical information provided by some API spec format. Tags are extensions to the model supported directly in the input API spec format.",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};
d.sc=function(){Di();var a=(new J).aa([this.$,this.fb,this.bh]),b=Di().s,a=Ei(a,b),b=Lc().g,c=Di();return a.la(b,c.s)};d.Tc=function(){return this.Aa};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a();return(new vX).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};d.$classData=q({W0a:0},!1,"amf.plugins.domain.webapi.metamodel.TagModel$",{W0a:1,f:1,se:1,Oc:1,ic:1,Xc:1,yq:1,ul:1});var $mb=void 0;function YO(){$mb||($mb=(new Zmb).a());return $mb}
function anb(){this.ke=this.Hb=this.Jc=this.$=this.fb=this.Aa=this.ja=this.wv=this.oc=this.kr=this.tw=this.WF=this.bG=this.dG=this.Tm=this.yk=this.tl=this.Jp=this.Wh=null;this.ma=0}anb.prototype=new r;anb.prototype.constructor=anb;d=anb.prototype;
d.a=function(){bnb=this;Iq(this);cT(this);Wb(this);Ob(this);var a=(new Ki).Ld(fn()),b=C().bb;this.Wh=Rb(new Sb,a,D(new F,b,"server"),Tb(new Ub,Vb().bb,"server","server information",G()));a=(new Ki).Ld(Pb());b=C().bb;this.Jp=Rb(new Sb,a,D(new F,b,"accepts"),Tb(new Ub,Vb().bb,"accepts","Media-types accepted in a API request",G()));a=(new Ki).Ld(Pb());b=C().bb;this.tl=Rb(new Sb,a,D(new F,b,"contentType"),Tb(new Ub,Vb().bb,"content type","Media types returned by a API response",G()));a=(new Ki).Ld(Pb());
b=C().bb;this.yk=Rb(new Sb,a,D(new F,b,"scheme"),Tb(new Ub,Vb().bb,"scheme","URI scheme for the API protocol",G()));a=Pb();b=C().dc;this.Tm=Rb(new Sb,a,D(new F,b,"version"),Tb(new Ub,Vb().dc,"version","Version of the API",G()));a=Pb();b=C().dc;this.dG=Rb(new Sb,a,D(new F,b,"termsOfService"),Tb(new Ub,Vb().dc,"terms of service","Terms and conditions when using the API",G()));a=bn();b=C().dc;this.bG=Rb(new Sb,a,D(new F,b,"provider"),Tb(new Ub,Vb().dc,"provider","Organization providing some kind of asset or service",
G()));a=Xm();b=C().dc;this.WF=Rb(new Sb,a,D(new F,b,"license"),Tb(new Ub,Vb().dc,"license","License for the API",G()));a=(new Ki).Ld(Gi());b=C().dc;this.tw=Rb(new Sb,a,D(new F,b,"documentation"),Tb(new Ub,Vb().dc,"documentation","Documentation associated to the API",G()));a=(new Ki).Ld(Tm());b=C().bb;this.kr=Rb(new Sb,a,D(new F,b,"endpoint"),Tb(new Ub,Vb().bb,"endpoint","End points defined in the API",G()));a=(new Ki).Ld(rn());b=C().oc;this.oc=Rb(new Sb,a,D(new F,b,"security"),Tb(new Ub,Vb().oc,"security",
"Textual indication of the kind of security scheme used",G()));a=(new Ki).Ld(YO());b=C().bb;this.wv=Rb(new Sb,a,D(new F,b,"tag"),Tb(new Ub,Vb().bb,"tag","Additionally custom tagged information",G()));var a=C().bb,a=D(new F,a,"WebAPI"),b=C().Zd,b=D(new F,b,"RootDomainElement"),c=Lc().ja;this.ja=oz(new pz,a,oz(new pz,b,c));this.Aa=Tb(new Ub,Vb().bb,"Web API","Top level element describing a HTTP API",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};
d.sc=function(){Di();var a=(new J).aa([this.$,this.fb,this.Wh,this.Jp,this.tl,this.yk,this.Tm,this.dG,this.bG,this.WF,this.tw,this.kr,this.oc,this.wv]),b=Di().s,a=Ei(a,b),b=Lc().g,c=Di();return a.la(b,c.s)};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a();return(new xX).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};d.$classData=q({Y0a:0},!1,"amf.plugins.domain.webapi.metamodel.WebApiModel$",{Y0a:1,f:1,se:1,Oc:1,ic:1,Xc:1,yq:1,ul:1});var bnb=void 0;
function Jn(){bnb||(bnb=(new anb).a());return bnb}function NB(){this.E=this.g=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}NB.prototype=new r;NB.prototype.constructor=NB;function cnb(){}d=cnb.prototype=NB.prototype;d.Zu=function(a){this.Nk=a};d.Ub=function(){return H(z(),G())};d.uQ=function(){M();var a=(new N).a(),a=(new v6).P((new Q).a(),a),b=vi().li;ff(this,b,a);return a};
d.vX=function(){M();var a=(new N).a(),a=(new w6).P((new Q).a(),a),b=vi().li;ff(this,b,a);return a};d.Qb=function(a){return yi(this,a)};d.es=function(){};d.It=function(a){this.Zi=a};function yi(a,b){if(-1!==(b.indexOf("#")|0)){var c=a.Nd(),c=(new Cf).e(c);return a.Uc(b+"/"+Gj(c.zd))}c=a.Nd();c=(new Cf).e(c);return a.Uc(b+"#"+Gj(c.zd))}d.sI=function(a){M();var b=(new N).a(),b=(new JB).P((new Q).a(),b);M();var c=(new N).a();a=Ue(b,a,c);b=vi().Qg;nh(this,b,a);return a};
d.Uc=function(a){return Te(this,a)};d.El=function(){M();var a=(new N).a(),b=(new Q).a(),a=(new NB).P(b,a);return Te(a,this.k)};d.rc=function(){return vi()};d.Mq=function(){return H(z(),G())};d.tX=function(){M();var a=(new N).a(),a=(new I1).P((new Q).a(),a),b=vi().li;ff(this,b,a);return a};
function ykb(a){var b=B(a.g,vi().Nj).G;if(x(b)){var b=b.i,c="oauth2"===b?"OAuth 2.0":"basic"===b?"Basic Authentication":"apiKey"===b||"x-apiKey"===b?"Api Key":b,b=vi().Nj,e=B(a.g,vi().Nj).E,f=e.jf;Wg();for(var g=Yg(new Zg,(new $g).a()),f=f.Lb;!f.b();){var h=f.fa();!1!==!p0a(h)&&ah(g,h);f=f.sa()}e.jf=g.gb;c=Nh(new Oh,c,e);e=uj(a.g,vi().Nj).E;Fh(a,b,c,e)}}d.ha=function(){return this.E};d.lu=function(a){this.Zg=a};d.Nt=function(){return this.Zg};
d.Nd=function(){var a=B(this.g,vi().$).G,a=a.b()?"fragment":a.c(),a=(new Cf).e(a);return Gj(a.zd)};d.Hu=function(){};d.xQ=function(){M();var a=(new N).a(),a=(new X3).P((new Q).a(),a),b=vi().li;ff(this,b,a);return a};d.Is=function(a,b,c,e){return fL(this,a,b,c,e)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.gk=function(a,b){return gL(this,a,b)};
d.x3=function(a){M();var b=(new N).a(),b=(new JB).P((new Q).a(),b);M();var c=(new N).a();a=Ue(b,a,c);b=vi().um;nh(this,b,a);return a};d.Qk=function(){return qd(function(){return function(a,b){return(new NB).P(a,b)}}(this))};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.v3=function(){M();var a=(new N).a(),a=(new U7).P((new Q).a(),a),b=vi().li;ff(this,b,a);return a};d.ca=function(){return this.g};d.Ht=function(a){this.Jk=a};
d.mga=function(a){M();var b=(new N).a(),b=(new LB).P((new Q).a(),b);M();var c=(new N).a(),b=Ue(b,a,c);a="default"===a?"200":a;c=Bn().vn;a=Eb(b,c,a);b=vi().Zl;nh(this,b,a);return a};d.Ch=function(){return vi().$};d.Up=function(a){return Px(this,a)};d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};d.Te=function(a){this.k=a};d.ku=function(a){this.zk=a};d.w3=function(){M();var a=(new N).a(),a=(new V7).P((new Q).a(),a),b=vi().li;ff(this,b,a);return a};
d.P=function(a,b){this.g=a;this.E=b;hL(this);return this};function tn(a){return!!(a&&a.$classData&&a.$classData.v.s8)}d.$classData=q({s8:0},!1,"amf.plugins.domain.webapi.models.security.SecurityScheme",{s8:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,rwa:1});function QB(){H5.call(this);this.ab=this.ea=null}QB.prototype=new bdb;QB.prototype.constructor=QB;function dnb(){}d=dnb.prototype=QB.prototype;d.rc=function(){return rfa()};d.El=function(){M();var a=(new N).a(),b=(new Q).a(),a=(new QB).P(b,a);return Te(a,this.k)};
d.ha=function(){return this.ab};function enb(a,b,c,e){var f=yb(a);if(x(f))return f=H(z(),G()),enb(Px(a,f),b,c,e);f=Wa().Ia(a.jA());if(f.b())b=w();else{var f=f.c(),g=a.ab,h=B(a.ea,VN().$).G,h=h.b()?null:h.c(),k=a.k;a=zz(Az(),a.k,b);var l=w();b=(new A).d(Zra(Az(),b,c,f,g,h,k,a,!1,l,e))}return b.b()?null:b.c()}d.Qk=function(){return qd(function(){return function(a,b){return(new QB).P(a,b)}}(this))};d.ca=function(){return this.ea};d.P=function(a,b){this.ea=a;this.ab=b;H5.prototype.P.call(this,a,b);return this};
function On(a){return!!(a&&a.$classData&&a.$classData.v.t8)}d.$classData=q({t8:0},!1,"amf.plugins.domain.webapi.models.templates.ResourceType",{t8:1,j7:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1});function UB(){H5.call(this);this.ab=this.ea=null}UB.prototype=new bdb;UB.prototype.constructor=UB;function fnb(){}d=fnb.prototype=UB.prototype;d.rc=function(){return qfa()};d.El=function(){M();var a=(new N).a(),b=(new Q).a(),a=(new UB).P(b,a);return Te(a,this.k)};d.ha=function(){return this.ab};
function gnb(a,b,c){var e=yb(a);if(x(e))return e=H(z(),G()),gnb(Px(a,e),b,c);e=Wa().Ia(a.jA());if(e.b())a=w();else{var e=e.c(),f=Az(),g=B(a.ea,VN().$).G;a=(new A).d(Wra(f,c,e,b,g.b()?"":g.c(),a.ab,a.k,zz(Az(),a.k,b),!1,w()))}return a.b()?null:a.c()}d.Qk=function(){return qd(function(){return function(a,b){return(new UB).P(a,b)}}(this))};d.ca=function(){return this.ea};d.P=function(a,b){this.ea=a;this.ab=b;H5.prototype.P.call(this,a,b);return this};
function Mn(a){return!!(a&&a.$classData&&a.$classData.v.u8)}d.$classData=q({u8:0},!1,"amf.plugins.domain.webapi.models.templates.Trait",{u8:1,j7:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1});function hnb(){tp.call(this);this.hh=this.N_=this.M_=this.Nfa=this.vg=null}hnb.prototype=new Wab;hnb.prototype.constructor=hnb;d=hnb.prototype;d.a=function(){tp.prototype.a.call(this);inb=this;this.hh=ju().na;this.vg="AMF Validation";this.Nfa="http://a.ml/dialects/profile.raml";this.M_=Xs();this.N_=Xs();return this};
d.sQ=function(a,b,c,e,f){b=jnb(a,b);return Xab(this,a,b,c).ei(t(new u,function(a,b,c,e,f,y){return function(a){return a.Pw?knb(sb(),b,c,f,y):HB(ib(),a)}}(this,a,b,c,e,f)),um())};function jnb(a,b){return Bk().h(b)?(a=lnb(a),x(a)&&(a=a.i,xt()===a)?Dk():Ck()):Ek().h(b)?(a=lnb(a),x(a)&&(a=a.i,oc()===a)?Gk():Fk()):b}
function mnb(a,b,c){var e=tb().kE,e=(new up).fo(e),f;f=pc(fc().db,G());for(var g=e.ah,e=g.qe,g=dC(g),h=e.j[g];null!==h;){var k=h.Sa(),h=h.t;f=Ifa(h)?f.gr(h.lO(sb().hh)):f;for(h=k;null===h&&0<g;)g=-1+g|0,h=e.j[g]}b=f.gr(a.M_).Ta(b.Fi);b=x(b)?(new A).d(gc(b.i)):w();if(x(b))return b=b.i,b.LJ.qa()?Dka(mnb(a,b.LJ.c(),c),b):Dka(c,b);if(w()===b)return c;throw(new v).d(b);}
function knb(a,b,c,e,f){var g=nnb(a).Ta(c.Fi);if(x(g)&&(g=g.i,Ifa(g))){var h=mnb(a,c,Cka());return g.pX(b,c,h,a.hh,e,f)}return hb(ib(),jb(function(a,b,c){return function(){sb();var a=jd(b);return dp(new ep,!0,a.b()?b.k:a.c(),c,H(z(),G()))}}(a,b,c)),um())}function onb(a,b){return rS((new up).fo(b.bK).Rb.gf().kd(),t(new u,function(){return function(a){return!rba(a)}}(a)),!1)}d.wh=function(){return this.vg};d.Sp=function(){var a=z(),b=[op(),kb(),pp()];return H(a,(new J).aa(b))};
d.cn=function(){dka(Rk(),sb());wp(xp(),"Register RDF framework");this.hh.Zda((new A).d(Ksa().Og));wp(xp(),"AMFValidatorPlugin#init: registering validation dialect");var a=kb().nm,b=this.Nfa,c=kta();return hFa(a,b,c,bb()).Lf(t(new u,function(){return function(){wp(xp(),"AMFValidatorPlugin#init: validation dialect registered");return sb()}}(this)),um())};
function nnb(a){for(var b=tb().kE,b=(new up).fo(b),c=null,c=pc(fc().db,G()),e=b.ah,b=e.qe,e=dC(e),f=b.j[e];null!==f;){var g=f.Sa(),f=f.t;if(Ifa(f))var h=f.lO(sb().hh),h=Pd(h),k=pc(fc().db,G()),f=pd(h,k,qd(function(a,b){return function(a,c){return a.Hh(c,b)}}(a,f))),c=c.gr(f);for(f=g;null===f&&0<e;)e=-1+e|0,f=b.j[e]}return c.gr(a.N_)}
function lnb(a){if(Ol(a)){a=Zb(a.ze().ha(),n($S));if(a.b())return w();a=a.c();return(new A).d(a.Qe)}if(Ll(a)){a=Zb(a.E,n($S));if(a.b())return w();a=a.c();return(new A).d(a.Qe)}if(Sl(a)){a=Zb(a.ze().ha(),n($S));if(a.b())return w();a=a.c();return(new A).d(a.Qe)}return w()}
d.rV=function(a,b){var c=(new A).d("application/yaml"),e=(new A).d(kb().vg),f=Paa(Xa(),this.hh),g=(new Ya).a();$a();var h=ab();$a();var k=w();$a();var l=(new cb).a();return eb($a(),a,c,e,f,h,g,k,b,l).Lf(t(new u,function(){return function(a){if($A(a)){var b=B(a.g,ZA().Rf),c=sb().Nfa;if(Xb(b,c))return B(a.g,ZA().ob)}throw Lb(Mb(),(new Nb).e("Trying to load as a validation profile that does not match the Validation Profile dialect"));}}(this)),um()).Lf(t(new u,function(a){return function(b){if(xA(b)){var c=
Sj(b),c=B(c.g,c.$);if(Xb(c,"profileNode")){PMa||(PMa=(new EQ).a());b=OMa(b);c=nnb(sb()).Ta(b.ba.Fi);if(x(c))c=c.i;else{if(w()!==c)throw(new v).d(c);var c=nnb(sb()),e=b.LJ,e=e.b()?yk():e.c(),c=c.Ta(e.Fi);if(x(c))c=c.i;else{if(w()!==c)throw(new v).d(c);c=kb()}}var e=sb(),f=sb().M_;e.M_=f.Zb((new P).N(b.ba.Fi,jb(function(a,b){return function(){return b}}(a,b))));e=sb();f=sb().N_;e.N_=f.Zb((new P).N(b.ba.Fi,c));return b.ba}}throw Lb(Mb(),(new Nb).e("Trying to load as a validation profile that does not match the Validation Profile dialect"));
}}(this)),um())};
function pnb(a,b,c,e){var f=xp(),g=(new up).fo(c.bK);wp(f,"AMFValidatorPlugin#shaclValidation: shacl validation for "+g.Rb.lb()+" validations");f=(new BC).hm(w());g=(new up).fo(c.bK);f=Ssa(f,g.Rb.gf().kd());x(f)&&(f=f.i,mWa(Ksa().Og,Zsa(),f));wp(xp(),"AMFValidatorPlugin#shaclValidation: jsLibrary generated");c=onb(a,c);wp(xp(),"AMFValidatorPlugin#shaclValidation: Invoking platform validation");return kWa(Ksa().Og,b,c,e).Lf(t(new u,function(){return function(a){wp(xp(),"AMFValidatorPlugin#shaclValidation: validation finished");return a}}(a)),
um())}d.ifa=function(a,b,c,e){if("partial"===e.km){var f=new nsa;f.bi=a;f.qf=b;f.bza=c;f.fc=e;f.oX=(new wQ).SK(G());a=Csa(f)}else a=pnb(this,a,b,e);return a};d.MT=function(a){var b=mnb(this,a,Cka());a=(new DC).S0(a);b=onb(this,b);owa();b=Ysa(a,b);return mwa(b)};d.$classData=q({R1a:0},!1,"amf.plugins.features.validation.AMFValidatorPlugin$",{R1a:1,xwa:1,f:1,gja:1,wq:1,qPa:1,FD:1,Fb:1});var inb=void 0;function sb(){inb||(inb=(new hnb).a());return inb}function W7(){this.sg=!1}W7.prototype=new Zab;
W7.prototype.constructor=W7;function qnb(){}qnb.prototype=W7.prototype;W7.prototype.US=function(a){this.IL(null===a?"null":ja(a));return this};W7.prototype.p6a=function(){w4.prototype.o6a.call(this);return this};function bq(a,b){a.IL(b);fK(a,"\n")}function rnb(){y6.call(this);this.bt=!1}rnb.prototype=new xhb;rnb.prototype.constructor=rnb;d=rnb.prototype;d.HP=function(a){if(this.bt)throw(new ND).a();var b=this.hd;if(b===this.$e)throw(new OD).a();this.hd=1+b|0;this.Ni.j[this.wk+b|0]=a;return this};
d.XC=function(a,b){return this.vfa(a,b)};d.JO=function(){var a=this.hd;if(a===this.$e)throw(new QD).a();this.hd=1+a|0;return this.Ni.j[this.wk+a|0]};function BWa(a,b,c,e,f,g){var h=new rnb;h.bt=g;y6.prototype.qAa.call(h,a,b,c);CD.prototype.gg.call(h,e);CD.prototype.C1.call(h,f);return h}d.vfa=function(a,b){if(0>a||b<a||b>(this.$e-this.hd|0))throw(new X).a();return BWa(this.iz,this.Ni,this.wk,this.hd+a|0,this.hd+b|0,this.bt)};
d.hAa=function(a,b,c){if(0>b||0>c||b>(a.j.length-c|0))throw(new X).a();var e=this.hd,f=e+c|0;if(f>this.$e)throw(new QD).a();this.hd=f;Ca(this.Ni,this.wk+e|0,a,b,c);return this};d.iAa=function(a){if(0>a||a>=this.$e)throw(new X).a();return this.Ni.j[this.wk+a|0]};d.sGa=function(a,b){this.Ni.j[this.wk+a|0]=b};d.sV=function(a){return this.Ni.j[this.wk+a|0]};d.rGa=function(a,b,c,e){Ca(b,c,this.Ni,this.wk+a|0,e)};d.jH=function(){return this.bt};
d.$classData=q({V2a:0},!1,"java.nio.HeapCharBuffer",{V2a:1,Ewa:1,Dwa:1,f:1,sh:1,kH:1,iV:1,W6a:1});function snb(){y6.call(this);this.VK=null;this.WK=0}snb.prototype=new xhb;snb.prototype.constructor=snb;d=snb.prototype;d.HP=function(){throw(new ND).a();};d.XC=function(a,b){return this.vfa(a,b)};d.JO=function(){var a=this.hd;if(a===this.$e)throw(new QD).a();this.hd=1+a|0;return ya(this.VK,this.WK+a|0)};d.u=function(){var a=this.WK;return ja(za(this.VK,this.hd+a|0,this.$e+a|0))};
function Zta(a,b,c,e,f){var g=new snb;g.VK=b;g.WK=c;y6.prototype.qAa.call(g,a,null,-1);CD.prototype.gg.call(g,e);CD.prototype.C1.call(g,f);return g}d.vfa=function(a,b){if(0>a||b<a||b>(this.$e-this.hd|0))throw(new X).a();return Zta(this.iz,this.VK,this.WK,this.hd+a|0,this.hd+b|0)};d.hAa=function(a,b,c){if(0>b||0>c||b>(a.j.length-c|0))throw(new X).a();var e=this.hd,f=e+c|0;if(f>this.$e)throw(new QD).a();this.hd=f;for(c=e+c|0;e!==c;){var f=b,g=ya(this.VK,this.WK+e|0);a.j[f]=g;e=1+e|0;b=1+b|0}return this};
d.iAa=function(a){if(0>a||a>=this.$e)throw(new X).a();return ya(this.VK,this.WK+a|0)};d.sGa=function(){throw(new ND).a();};d.sV=function(a){return ya(this.VK,this.WK+a|0)};d.rGa=function(){throw(new ND).a();};d.jH=function(){return!0};d.$classData=q({X2a:0},!1,"java.nio.StringCharBuffer",{X2a:1,Ewa:1,Dwa:1,f:1,sh:1,kH:1,iV:1,W6a:1});function z4(){vE.call(this)}z4.prototype=new xY;z4.prototype.constructor=z4;d=z4.prototype;d.a=function(){vE.prototype.pe.call(this,null,null,0,!0);return this};d.L=function(){return"LimitReachedException"};
d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Fwa)&&!0};d.K=function(a){throw(new X).e(""+a);};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Fwa:0},!1,"org.mulesoft.common.io.LimitReachedException",{Fwa:1,Kf:1,Fe:1,f:1,n:1,A:1,w:1,q:1});function tnb(){this.Of=null;this.fg=this.ag=this.Ef=this.vf=this.JA=this.Mu=0}tnb.prototype=new r;tnb.prototype.constructor=tnb;d=tnb.prototype;d.L=function(){return"SourceLocation"};d.H=function(){return 7};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Pwa?this.Of===a.Of&&this.Mu===a.Mu&&this.JA===a.JA&&this.vf===a.vf&&this.Ef===a.Ef&&this.ag===a.ag&&this.fg===a.fg:!1};d.K=function(a){switch(a){case 0:return this.Of;case 1:return this.Mu;case 2:return this.JA;case 3:return this.vf;case 4:return this.Ef;case 5:return this.ag;case 6:return this.fg;default:throw(new X).e(""+a);}};d.zy=function(){return 0===this.vf&&0===this.Ef&&0===this.ag&&0===this.fg&&0===this.Mu&&0===this.JA};
d.u=function(){var a=this.Of;if(null===a)throw(new Rg).a();return(""===a?"Unknown":this.Of)+((0>=this.Mu&&0>=this.JA&&1!==this.vf&&1!==this.ag)&0!==this.Ef&&0!==this.fg?"":"["+this.Mu+","+this.JA+"]")+(0>=this.vf&&0>=this.ag?"":": "+this.vf+","+this.Ef+".."+this.ag+","+this.fg)};d.Wn=function(a){return unb(this,a)};d.Xn=function(a){return unb(this,a)};function Cha(a,b,c,e,f,g,h){var k=new tnb;k.Of=a;k.Mu=b;k.JA=c;k.vf=e;k.Ef=f;k.ag=g;k.fg=h;return k}
function unb(a,b){if(a.Of!==b.Of)return a=a.Of,b=b.Of,a===b?0:a<b?-1:1;if(a.Mu!==b.Mu)return a=a.Mu,b=b.Mu,a===b?0:a<b?-1:1;if(a.vf!==b.vf)return a=a.vf,b=b.vf,a===b?0:a<b?-1:1;a=a.Ef;b=b.Ef;return a===b?0:a<b?-1:1}function Lva(a,b){var c=vq().Op;if(a.h(c))return b;c=vq().Op;return(null===b?null===c:b.h(c))?a:Mva(vq(),a.Of,pE(qE(),a.vf,a.Ef,a.Mu),pE(qE(),b.ag,b.fg,b.JA))}
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.Of)),a=zI().Ga(a,this.Mu),a=zI().Ga(a,this.JA),a=zI().Ga(a,this.vf),a=zI().Ga(a,this.Ef),a=zI().Ga(a,this.ag),a=zI().Ga(a,this.fg);return zI().Wd(a,7)};d.M=function(){return Z(this)};d.$classData=q({Pwa:0},!1,"org.mulesoft.lexer.SourceLocation",{Pwa:1,f:1,vx:1,sh:1,A:1,w:1,q:1,n:1});function Jua(){vE.call(this);this.y3=null}Jua.prototype=new xY;Jua.prototype.constructor=Jua;d=Jua.prototype;d.L=function(){return"AjaxException"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Rwa?ub(vb(),this.y3,a.y3):!1};d.K=function(a){switch(a){case 0:return this.y3;default:throw(new X).e(""+a);}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Rwa:0},!1,"org.scalajs.dom.ext.AjaxException",{Rwa:1,Kf:1,Fe:1,f:1,n:1,A:1,w:1,q:1});function fH(){this.Sya=null}fH.prototype=new r;fH.prototype.constructor=fH;fH.prototype.tE=function(a,b){return 0<=this.Ak(a,b)};
fH.prototype.Ak=function(a,b){return this.Sya.Ak(a,b)};fH.prototype.SE=function(a,b){return 0>=this.Ak(a,b)};fH.prototype.$classData=q({j7a:0},!1,"java.util.Arrays$$anon$3",{j7a:1,f:1,ZH:1,nH:1,$H:1,YH:1,q:1,n:1});function FJ(){vE.call(this);this.FG=null}FJ.prototype=new A6;FJ.prototype.constructor=FJ;FJ.prototype.Xm=function(){return"Flags \x3d '"+this.FG+"'"};FJ.prototype.e=function(a){this.FG=a;vE.prototype.pe.call(this,null,null,0,!0);if(null===a)throw(new Rg).a();return this};
FJ.prototype.$classData=q({l7a:0},!1,"java.util.DuplicateFormatFlagsException",{l7a:1,PE:1,Ay:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function U1(){vE.call(this);this.FG=null;this.sG=0}U1.prototype=new A6;U1.prototype.constructor=U1;U1.prototype.Xm=function(){return"Conversion \x3d "+Dc(this.sG)+", Flags \x3d "+this.FG};U1.prototype.$classData=q({m7a:0},!1,"java.util.FormatFlagsConversionMismatchException",{m7a:1,PE:1,Ay:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function LJ(){vE.call(this);this.sG=0}LJ.prototype=new A6;
LJ.prototype.constructor=LJ;LJ.prototype.Xm=function(){return"Code point \x3d 0x"+(+(this.sG>>>0)).toString(16)};LJ.prototype.$d=function(a){this.sG=a;vE.prototype.pe.call(this,null,null,0,!0);return this};LJ.prototype.$classData=q({q7a:0},!1,"java.util.IllegalFormatCodePointException",{q7a:1,PE:1,Ay:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function T1(){vE.call(this);this.sG=0;this.yya=null}T1.prototype=new A6;T1.prototype.constructor=T1;
T1.prototype.Xm=function(){return ba.String.fromCharCode(this.sG)+" !\x3d "+dk(this.yya)};T1.prototype.$classData=q({r7a:0},!1,"java.util.IllegalFormatConversionException",{r7a:1,PE:1,Ay:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function PJ(){vE.call(this);this.FG=null}PJ.prototype=new A6;PJ.prototype.constructor=PJ;PJ.prototype.Xm=function(){return"Flags \x3d '"+this.FG+"'"};PJ.prototype.e=function(a){this.FG=a;vE.prototype.pe.call(this,null,null,0,!0);if(null===a)throw(new Rg).a();return this};
PJ.prototype.$classData=q({s7a:0},!1,"java.util.IllegalFormatFlagsException",{s7a:1,PE:1,Ay:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function KJ(){vE.call(this);this.pDa=0}KJ.prototype=new A6;KJ.prototype.constructor=KJ;KJ.prototype.Xm=function(){return""+this.pDa};KJ.prototype.$d=function(a){this.pDa=a;vE.prototype.pe.call(this,null,null,0,!0);return this};KJ.prototype.$classData=q({t7a:0},!1,"java.util.IllegalFormatPrecisionException",{t7a:1,PE:1,Ay:1,Qh:1,Kf:1,Fe:1,f:1,n:1});
function QJ(){vE.call(this);this.mHa=0}QJ.prototype=new A6;QJ.prototype.constructor=QJ;QJ.prototype.Xm=function(){return""+this.mHa};QJ.prototype.$d=function(a){this.mHa=a;vE.prototype.pe.call(this,null,null,0,!0);return this};QJ.prototype.$classData=q({u7a:0},!1,"java.util.IllegalFormatWidthException",{u7a:1,PE:1,Ay:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function HJ(){vE.call(this);this.XH=null}HJ.prototype=new A6;HJ.prototype.constructor=HJ;HJ.prototype.Xm=function(){return"Format specifier '"+this.XH+"'"};
HJ.prototype.e=function(a){this.XH=a;vE.prototype.pe.call(this,null,null,0,!0);if(null===a)throw(new Rg).a();return this};HJ.prototype.$classData=q({v7a:0},!1,"java.util.MissingFormatArgumentException",{v7a:1,PE:1,Ay:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function GJ(){vE.call(this);this.XH=null}GJ.prototype=new A6;GJ.prototype.constructor=GJ;GJ.prototype.Xm=function(){return this.XH};GJ.prototype.e=function(a){this.XH=a;vE.prototype.pe.call(this,null,null,0,!0);if(null===a)throw(new Rg).a();return this};
GJ.prototype.$classData=q({w7a:0},!1,"java.util.MissingFormatWidthException",{w7a:1,PE:1,Ay:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function EJ(){vE.call(this);this.XH=null}EJ.prototype=new A6;EJ.prototype.constructor=EJ;EJ.prototype.Xm=function(){return"Conversion \x3d '"+this.XH+"'"};EJ.prototype.e=function(a){this.XH=a;vE.prototype.pe.call(this,null,null,0,!0);if(null===a)throw(new Rg).a();return this};
EJ.prototype.$classData=q({y7a:0},!1,"java.util.UnknownFormatConversionException",{y7a:1,PE:1,Ay:1,Qh:1,Kf:1,Fe:1,f:1,n:1});function vYa(){P.call(this);this.n5=this.NI=0}vYa.prototype=new hib;vYa.prototype.constructor=vYa;d=vYa.prototype;d.GM=function(){return this.NI};d.o5=function(){return this.n5};d.Ba=function(){return Dc(this.n5)};d.pa=function(){return this.NI};d.$classData=q({v8a:0},!1,"scala.Tuple2$mcIC$sp",{v8a:1,HS:1,f:1,nea:1,A:1,w:1,q:1,n:1});function AZa(){}AZa.prototype=new mib;
AZa.prototype.constructor=AZa;d=AZa.prototype;d.a=function(){return this};d.h=function(){return!1};d.u=function(){return"Duration.Undefined"};d.Xn=function(a){return this.fE(a)};d.fE=function(a){return a===this?0:1};d.$classData=q({G8a:0},!1,"scala.concurrent.duration.Duration$$anon$1",{G8a:1,rEa:1,qea:1,f:1,q:1,n:1,vx:1,sh:1});function BZa(){}BZa.prototype=new mib;BZa.prototype.constructor=BZa;d=BZa.prototype;d.a=function(){return this};d.u=function(){return"Duration.Inf"};d.Xn=function(a){return this.fE(a)};
d.fE=function(a){return a===QR().x9?-1:a===this?0:1};d.$classData=q({H8a:0},!1,"scala.concurrent.duration.Duration$$anon$2",{H8a:1,rEa:1,qea:1,f:1,q:1,n:1,vx:1,sh:1});function CZa(){}CZa.prototype=new mib;CZa.prototype.constructor=CZa;d=CZa.prototype;d.a=function(){return this};d.u=function(){return"Duration.MinusInf"};d.Xn=function(a){return this.fE(a)};d.fE=function(a){return a===this?0:-1};
d.$classData=q({I8a:0},!1,"scala.concurrent.duration.Duration$$anon$3",{I8a:1,rEa:1,qea:1,f:1,q:1,n:1,vx:1,sh:1});function X7(){this.Sza=null}X7.prototype=new r;X7.prototype.constructor=X7;function DB(a){var b=new X7;b.Sza=a;return b}X7.prototype.tE=function(a,b){return 0<=this.Ak(a,b)};X7.prototype.Ak=function(a,b){return qaa(this.Sza.R(a),b)};X7.prototype.SE=function(a,b){return 0>=this.Ak(a,b)};
X7.prototype.$classData=q({U8a:0},!1,"scala.math.LowPriorityOrderingImplicits$$anon$6",{U8a:1,f:1,ZH:1,nH:1,$H:1,YH:1,q:1,n:1});function Y7(){this.Hv=this.l=null}Y7.prototype=new r;Y7.prototype.constructor=Y7;Y7.prototype.tE=function(a,b){return 0<=this.Ak(a,b)};Y7.prototype.Ak=function(a,b){return this.l.Ak(this.Hv.R(a),this.Hv.R(b))};function vnb(a,b){var c=new Y7;if(null===a)throw Lb(Mb(),null);c.l=a;c.Hv=b;return c}Y7.prototype.SE=function(a,b){return 0>=this.Ak(a,b)};
Y7.prototype.$classData=q({Y8a:0},!1,"scala.math.Ordering$$anon$5",{Y8a:1,f:1,ZH:1,nH:1,$H:1,YH:1,q:1,n:1});function AQ(){this.oT=null}AQ.prototype=new r;AQ.prototype.constructor=AQ;d=AQ.prototype;d.Q0=function(a){this.oT=a;return this};d.tE=function(a,b){return!this.oT.zf(a,b)};d.Ak=function(a,b){return this.oT.zf(a,b)?-1:this.oT.zf(b,a)?1:0};d.SE=function(a,b){return!this.oT.zf(b,a)};d.$classData=q({Z8a:0},!1,"scala.math.Ordering$$anon$9",{Z8a:1,f:1,ZH:1,nH:1,$H:1,YH:1,q:1,n:1});
function fZ(){this.t2=null}fZ.prototype=new r;fZ.prototype.constructor=fZ;d=fZ.prototype;d.As=function(a){var b=this.Dp();return b===n(Oa)?ia(La(Oa),[a]):b===n(Qa)?ia(La(Qa),[a]):b===n(Na)?ia(La(Na),[a]):b===n(Ra)?ia(La(Ra),[a]):b===n(Sa)?ia(La(Sa),[a]):b===n(Ta)?ia(La(Ta),[a]):b===n(Ua)?ia(La(Ua),[a]):b===n(Ma)?ia(La(Ma),[a]):b===n(waa)?ia(La(na),[a]):Ht(It(),this.Dp(),a)};d.h=function(a){var b;a&&a.$classData&&a.$classData.v.Tu?(b=this.Dp(),a=a.Dp(),b=b===a):b=!1;return b};
d.u=function(){return pbb(this,this.t2)};d.Dp=function(){return this.t2};function XZa(a,b){a.t2=b;return a}d.y=function(){return yI(zI(),this.t2)};d.$classData=q({g9a:0},!1,"scala.reflect.ClassTag$GenericClassTag",{g9a:1,f:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});function Z7(){this.s=null}Z7.prototype=new J6;Z7.prototype.constructor=Z7;Z7.prototype.a=function(){kS.prototype.a.call(this);return this};Z7.prototype.Ed=function(){Oj();return(new $g).a()};
Z7.prototype.$classData=q({r$a:0},!1,"scala.collection.Seq$",{r$a:1,Uy:1,Ty:1,Os:1,Ln:1,f:1,Qs:1,Mn:1});var wnb=void 0;function z(){wnb||(wnb=(new Z7).a());return wnb}function xnb(){this.s=null}xnb.prototype=new J6;xnb.prototype.constructor=xnb;function ynb(){}ynb.prototype=xnb.prototype;function $7(){}$7.prototype=new d_a;$7.prototype.constructor=$7;$7.prototype.a=function(){znb=this;(new oS).Q0(qd(function(){return function(a){return a}}(this)));return this};
function Anb(a,b,c,e,f,g,h){var k=31&(b>>>g|0),l=31&(e>>>g|0);if(k!==l)return a=1<<k|1<<l,b=ia(La(a8),[2]),k<l?(b.j[0]=c,b.j[1]=f):(b.j[0]=f,b.j[1]=c),b8(new c8,a,b,h);l=ia(La(a8),[1]);k=1<<k;l.j[0]=Anb(a,b,c,e,f,5+g|0,h);return b8(new c8,k,l,h)}$7.prototype.zG=function(){return d8()};$7.prototype.$classData=q({fab:0},!1,"scala.collection.immutable.HashMap$",{fab:1,gFa:1,$L:1,ZL:1,f:1,dgb:1,q:1,n:1});var znb=void 0;function e8(){znb||(znb=(new $7).a());return znb}function f8(){this.s=null}
f8.prototype=new J6;f8.prototype.constructor=f8;f8.prototype.a=function(){kS.prototype.a.call(this);return this};f8.prototype.Ed=function(){return(new $g).a()};f8.prototype.$classData=q({Nab:0},!1,"scala.collection.immutable.Seq$",{Nab:1,Uy:1,Ty:1,Os:1,Ln:1,f:1,Qs:1,Mn:1});var Bnb=void 0;function Oj(){Bnb||(Bnb=(new f8).a());return Bnb}function Cnb(){}Cnb.prototype=new r;Cnb.prototype.constructor=Cnb;function g8(){}g8.prototype=Cnb.prototype;Cnb.prototype.Ss=function(a,b){sS(this,a,b)};
Cnb.prototype.Gh=function(){};function h8(){this.s=null}h8.prototype=new J6;h8.prototype.constructor=h8;h8.prototype.a=function(){kS.prototype.a.call(this);return this};h8.prototype.Ed=function(){return(new pk).a()};h8.prototype.$classData=q({ccb:0},!1,"scala.collection.mutable.IndexedSeq$",{ccb:1,Uy:1,Ty:1,Os:1,Ln:1,f:1,Qs:1,Mn:1});var Dnb=void 0;function Enb(){Dnb||(Dnb=(new h8).a());return Dnb}function i8(){this.s=null}i8.prototype=new J6;i8.prototype.constructor=i8;
i8.prototype.a=function(){kS.prototype.a.call(this);return this};i8.prototype.Ed=function(){return(new pk).a()};i8.prototype.$classData=q({Ccb:0},!1,"scala.collection.mutable.Seq$",{Ccb:1,Uy:1,Ty:1,Os:1,Ln:1,f:1,Qs:1,Mn:1});var Fnb=void 0;function Mi(){Fnb||(Fnb=(new i8).a());return Fnb}function j8(){this.s=null}j8.prototype=new J6;j8.prototype.constructor=j8;j8.prototype.a=function(){kS.prototype.a.call(this);return this};j8.prototype.Ed=function(){return(new J).a()};
j8.prototype.$classData=q({Ucb:0},!1,"scala.scalajs.js.WrappedArray$",{Ucb:1,Uy:1,Ty:1,Os:1,Ln:1,f:1,Qs:1,Mn:1});var Gnb=void 0;function Dl(){Gnb||(Gnb=(new j8).a());return Gnb}function rK(){this.G=this.fj=this.GN=null}rK.prototype=new r;rK.prototype.constructor=rK;d=rK.prototype;d.L=function(){return"AnyField"};d.fD=function(a){return cba(this,a)};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Kha){var b=this.GN;a=a.GN;return null===b?null===a:b.h(a)}return!1};
d.Zo=function(){return wb(this)};d.K=function(a){switch(a){case 0:return this.GN;default:throw(new X).e(""+a);}};d.u=function(){return wb(this)};d.kD=function(){return this.fj.qa()};d.VD=function(){Ab();var a=this.GN.E;Fo();return(new Go).Yp(a)};d.hD=function(){var a=this.fj;return a.b()?null:a.c()};d.bc=function(){return this.VD()};d.eD=function(a){return dba(this,a)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.jD=function(){return this.fj.b()};
d.gD=function(){var a=this.GN;gs(a.l,a.xc)};rK.prototype.toString=function(){return this.Zo()};Object.defineProperty(rK.prototype,"nonNull",{get:function(){return this.kD()},configurable:!0});Object.defineProperty(rK.prototype,"isNull",{get:function(){return this.jD()},configurable:!0});rK.prototype.is=function(a){return Kaa(a)?this.eD(a):this.fD(a)};rK.prototype.remove=function(){return this.gD()};rK.prototype.value=function(){return this.hD()};rK.prototype.annotations=function(){return this.bc()};
Object.defineProperty(rK.prototype,"option",{get:function(){return this.G},configurable:!0});rK.prototype.$classData=q({Kha:0},!1,"amf.client.model.AnyField",{Kha:1,f:1,zY:1,xd:1,AY:1,A:1,w:1,q:1,n:1});function k8(){this.G=this.fj=this.KN=null}k8.prototype=new r;k8.prototype.constructor=k8;d=k8.prototype;d.L=function(){return"StrField"};d.fD=function(a){return cba(this,a)};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Pha){var b=this.KN;a=a.KN;return null===b?null===a:b.h(a)}return!1};d.Zo=function(){return wb(this)};d.K=function(a){switch(a){case 0:return this.KN;default:throw(new X).e(""+a);}};function Hnb(a){a=a.fj;if(a.b())return!0;a=a.c();if(null===a)throw(new Rg).a();return""===a}d.u=function(){return wb(this)};d.kD=function(){return this.fj.qa()};d.VD=function(){Ab();var a=this.KN.E;Fo();return(new Go).Yp(a)};
d.hD=function(){var a=this.fj;return a.b()?null:a.c()};d.bc=function(){return this.VD()};d.eD=function(a){return dba(this,a)};d.y=function(){return Y(this)};function Gb(a){var b=new k8;b.KN=a;b.fj=a.G;a=Ab();var c=b.fj,e=Ab().oh();b.G=Bb(a,c,e).sb();return b}d.M=function(){return Z(this)};d.Fa=function(){return!Hnb(this)};d.jD=function(){return this.fj.b()};d.gD=function(){var a=this.KN;gs(a.l,a.xc)};k8.prototype.toString=function(){return this.Zo()};
Object.defineProperty(k8.prototype,"nonNull",{get:function(){return this.kD()},configurable:!0});Object.defineProperty(k8.prototype,"isNull",{get:function(){return this.jD()},configurable:!0});k8.prototype.is=function(a){return Kaa(a)?this.eD(a):this.fD(a)};k8.prototype.remove=function(){return this.gD()};Object.defineProperty(k8.prototype,"nonEmpty",{get:function(){return this.Fa()},configurable:!0});Object.defineProperty(k8.prototype,"isNullOrEmpty",{get:function(){return Hnb(this)},configurable:!0});
k8.prototype.value=function(){return this.hD()};k8.prototype.annotations=function(){return this.bc()};Object.defineProperty(k8.prototype,"option",{get:function(){return this.G},configurable:!0});k8.prototype.$classData=q({Pha:0},!1,"amf.client.model.StrField",{Pha:1,f:1,zY:1,xd:1,AY:1,A:1,w:1,q:1,n:1});function Qn(){this.na=this.p=null}Qn.prototype=new r;Qn.prototype.constructor=Qn;function l8(){}d=l8.prototype=Qn.prototype;d.WQ=function(a){return Ccb(this,a)};d.vR=function(){return Bcb(this)};
d.a=function(){M();var a=(new N).a(),b=(new Q).a();Qn.prototype.vy.call(this,(new oi).P(b,a));return this};d.Wt=function(){return zb(this)};d.qg=function(){return this.Sh()};d.lw=function(a){return Cb(this,a)};d.$$=function(){S();var a=B(this.Sh().ca(),th().bh);return s_a(m8(),a)};d.Vt=function(){return Dcb(this)};d.nd=function(){return SS(this)};d.LQ=function(a){return wcb(this,a)};d.Ie=function(){return gcb(this)};d.EI=function(){return this.oK()};d.vy=function(a){this.p=a;this.na=ju().na;return this};
d.pd=function(a){return US(this,a)};d.oK=function(){var a=S(),b=B(this.Sh().ca(),th().Vc),c=n8();return Il(a,b,c).sb()};d.cR=function(a){return qcb(this,a)};d.JQ=function(a){return pcb(this,a)};d.iw=function(){return w()};d.Jd=function(){return this.Sh()};d.KQ=function(a){return xcb(this,a)};d.mR=function(){return mcb(this)};d.Ofa=function(a){var b=S(),c=this.Sh();a=a.p;var e=bb(),c=lra(BB(),c,a,xc().tb,e);a=S().xv();return tm(b,c,a).sb()};
d.xI=function(a){var b=this.Sh(),c=S(),e=n8();a=ml(nl(new ol,c,a,e));c=th().Vc;qf(b,c,a);return this};d.uR=function(){return vcb(this)};d.VQ=function(a){return ucb(this,a)};d.MQ=function(a){return Ecb(this,a)};d.hR=function(){return Acb(this)};d.OQ=function(a){return Fcb(this,a)};d.ow=function(){return xb(this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.QQ=function(a){return this.uX(a)};d.G4=function(){return this.$$()};d.kR=function(){return ocb(this)};
d.Tt=function(a){return jcb(this,a)};d.Sh=function(){return this.p};d.R3=function(a){var b=this.Sh();S();m8();a=a.p;var c=th().bh;ff(b,c,a);return this};d.dR=function(){return Gcb(this)};d.Ao=function(){return this.RE()};d.rd=function(){return PS(this)};d.ws=function(){return this.RE()};d.jw=function(a){return Hb(this,a)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.hi=function(a){return ycb(this,a)};d.fR=function(){return rcb(this)};d.gR=function(){return zcb(this)};
d.od=function(a){return WS(this,a)};d.hc=function(){return this.Jd().k};d.Fd=function(){return this.Sh()};d.Rh=function(){return ncb(this)};d.I3=function(a){return this.Ofa(a)};d.xe=function(a){return hcb(this,a)};d.RE=function(){S();var a=this.Sh().Ey(),b;b=S();if(null===S().KX&&null===S().KX){var c=S(),e=new pZ;if(null===b)throw Lb(Mb(),null);e.l=b;c.KX=e}b=S().KX;return dt(b.l.na,a)};d.RQ=function(a){return lcb(this,a)};d.lR=function(){return icb(this)};d.bR=function(a){return Hcb(this,a)};
d.NQ=function(a){return tcb(this,a)};d.uX=function(a){S();a=this.Sh().AF((new A).d(a));return w_a(n8(),a)};d.pw=function(){return Fb(this)};d.iR=function(){return kcb(this)};d.mw=function(a){return Ib(this,a)};Qn.prototype.annotations=function(){return this.bc()};Qn.prototype.graph=function(){return this.nd()};Qn.prototype.withId=function(a){return this.qd(a)};Qn.prototype.withExtendsNode=function(a){return this.pd(a)};Qn.prototype.withCustomDomainProperties=function(a){return this.od(a)};
Object.defineProperty(Qn.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(Qn.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(Qn.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(Qn.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});
Qn.prototype.link=function(){for(var a=arguments.length|0,b=0,c=[];b<a;)c.push(arguments[b]),b=b+1|0;a=void 0===c[0]?this.iw():c[0];return this.jw(a)};Qn.prototype.withLinkLabel=function(a){return this.lw(a)};Qn.prototype.withLinkTarget=function(a){return this.mw(a)};Object.defineProperty(Qn.prototype,"linkLabel",{get:function(){return this.pw()},configurable:!0});Object.defineProperty(Qn.prototype,"isLink",{get:function(){return this.ow()},configurable:!0});
Object.defineProperty(Qn.prototype,"linkTarget",{get:function(){return this.Wt()},configurable:!0});Qn.prototype.withCustomShapePropertyDefinition=function(a){return this.LQ(a)};Qn.prototype.withCustomShapePropertyDefinitions=function(a){return this.MQ(a)};Qn.prototype.withCustomShapeProperties=function(a){return this.KQ(a)};Qn.prototype.withDefaultStr=function(a){return this.NQ(a)};Qn.prototype.withNode=function(a){return this.VQ(a)};Qn.prototype.withXone=function(a){return this.cR(a)};
Qn.prototype.withAnd=function(a){return this.JQ(a)};Qn.prototype.withOr=function(a){return this.WQ(a)};Qn.prototype.withInherits=function(a){return this.RQ(a)};Qn.prototype.withValues=function(a){return this.bR(a)};Qn.prototype.withDefaultValue=function(a){return this.OQ(a)};Qn.prototype.withDescription=function(a){return this.hi(a)};Qn.prototype.withDisplayName=function(a){return this.Tt(a)};Qn.prototype.withName=function(a){return this.xe(a)};
Object.defineProperty(Qn.prototype,"not",{get:function(){return this.lR()},configurable:!0});Object.defineProperty(Qn.prototype,"xone",{get:function(){return this.vR()},configurable:!0});Object.defineProperty(Qn.prototype,"and",{get:function(){return this.dR()},configurable:!0});Object.defineProperty(Qn.prototype,"or",{get:function(){return this.mR()},configurable:!0});Object.defineProperty(Qn.prototype,"customShapePropertyDefinitions",{get:function(){return this.gR()},configurable:!0});
Object.defineProperty(Qn.prototype,"customShapeProperties",{get:function(){return this.fR()},configurable:!0});Object.defineProperty(Qn.prototype,"inherits",{get:function(){return this.kR()},configurable:!0});Object.defineProperty(Qn.prototype,"values",{get:function(){return this.uR()},configurable:!0});Object.defineProperty(Qn.prototype,"defaultValueStr",{get:function(){return this.hR()},configurable:!0});Object.defineProperty(Qn.prototype,"defaultValue",{get:function(){return this.iR()},configurable:!0});
Object.defineProperty(Qn.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty(Qn.prototype,"displayName",{get:function(){return this.Vt()},configurable:!0});Object.defineProperty(Qn.prototype,"name",{get:function(){return this.Ie()},configurable:!0});Qn.prototype.inlined=function(){return Zb(this.Sh().ha(),n(Feb)).qa()};Qn.prototype.trackedExample=function(a){var b=S();a=Inb(this.Sh(),a);var c=n8();return Bb(b,a,c).sb()};
Object.defineProperty(Qn.prototype,"isDefaultEmpty",{get:function(){return Jnb(this.Sh())},configurable:!0});Qn.prototype.parameterValidator=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:return b=S(),c=this.Sh(),e=bb(),c=ora(BB(),c,a,e,NK()),e=Knb(),Bb(b,c,e).sb();case 1:return e=e[0],b=S(),c=this.Sh(),e=e.p,c=ora(BB(),c,a,e,NK()),e=Knb(),Bb(b,c,e).sb();default:throw"No matching overload";}};
Qn.prototype.payloadValidator=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:return e=e[0],b=S(),c=this.Sh(),e=e.p,c=ora(BB(),c,a,e,AB()),e=Knb(),Bb(b,c,e).sb();case 0:return b=S(),c=this.Sh(),e=bb(),c=ora(BB(),c,a,e,AB()),e=Knb(),Bb(b,c,e).sb();default:throw"No matching overload";}};
Qn.prototype.validateParameter=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:return b=S(),c=this.Sh(),e=bb(),c=jra(BB(),c,a,xc().tb,e,NK()),e=S().xv(),tm(b,c,e).sb();case 1:return e=e[0],b=S(),c=this.Sh(),e=e.p,c=jra(BB(),c,a,xc().tb,e,NK()),e=S().xv(),tm(b,c,e).sb();default:throw"No matching overload";}};
Qn.prototype.validate=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:if(Lo(a))return e=b=e[0],b=S(),c=this.Sh(),e=e.p,c=jra(BB(),c,a,xc().tb,e,AB()),e=S().xv(),tm(b,c,e).sb();if(Lnb(a)){var f=b=e[0],b=S(),c=this.Sh(),e=a.p,f=f.p,c=lra(BB(),c,e,xc().tb,f),e=S().xv();return tm(b,c,e).sb()}throw"No matching overload";case 0:if(Lo(a))return b=S(),c=this.Sh(),e=bb(),c=jra(BB(),c,a,xc().tb,e,AB()),e=S().xv(),tm(b,c,e).sb();if(Lnb(a))return this.I3(a);
throw"No matching overload";default:throw"No matching overload";}};Qn.prototype.buildRamlDatatype=function(){return vca(this.Sh())};Object.defineProperty(Qn.prototype,"toRamlDatatype",{get:function(){var a;a=this.Sh();var b=Zb(a.ha(),n(Mnb));x(b)?a=b.i.Ik:(b=Zb(a.ha(),n(Eeb)),a=x(b)?b.i.Ik:vca(a));return a},configurable:!0});
Qn.prototype.buildJsonSchema=function(){for(var a=arguments.length|0,b=0,c=[];b<a;)c.push(arguments[b]),b=b+1|0;switch(c.length|0){case 0:return a=this.Sh(),b=(new ob).a(),pca(a,b);case 1:return a=c[0],b=this.Sh(),Mha||(Mha=(new Hq).a()),c=(new ob).a(),c.OS=a.em,c.T9=aga(a.jc),pca(b,c);default:throw"No matching overload";}};
Object.defineProperty(Qn.prototype,"toJsonSchema",{get:function(){var a;a=this.Sh();var b=Zb(a.ha(),n(Zh));x(b)?a=b.i.Ik:(b=Zb(a.ha(),n(Deb)),x(b)?a=b.i.Ik:(b=(new ob).a(),a=pca(a,b)));return a},configurable:!0});Qn.prototype.linkCopy=function(){return this.Ao()};Qn.prototype.withExample=function(a){return this.QQ(a)};Qn.prototype.withExamples=function(a){return this.xI(a)};Qn.prototype.withXMLSerialization=function(a){var b=this.Sh();S();Nnb();a=a.p;var c=th().wn;ff(b,c,a);return this};
Qn.prototype.withDocumentation=function(a){return this.R3(a)};Object.defineProperty(Qn.prototype,"examples",{get:function(){return this.EI()},configurable:!0});Object.defineProperty(Qn.prototype,"xmlSerialization",{get:function(){S();var a=B(this.Sh().ca(),th().wn),b=Nnb();return dt(b.l.na,a)},configurable:!0});Object.defineProperty(Qn.prototype,"documentation",{get:function(){return this.G4()},configurable:!0});
Qn.prototype.$classData=q({rB:0},!1,"amf.client.model.domain.AnyShape",{rB:1,f:1,yz:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1});function kz(){this.t=this.ba=this.Xb=null}kz.prototype=new r;kz.prototype.constructor=kz;d=kz.prototype;d.L=function(){return"Aliases"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(lz(a)){var b=this.Xb;a=a.Xb;return null===b?null===a:o4(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.Xb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.te=function(){return this.ba};d.Qj=function(a){this.Xb=a;this.ba="aliases-array";var b=t(new u,function(){return function(a){if(null!==a){var b=a.pa(),c=a.Ba();if(null!==c)return a=c.pa(),c=c.Ba(),b+"-\x3e"+a+"::"+c}throw(new v).d(a);}}(this)),c=Pf(),c=Qf(c);this.t=De(a,b,c).ng(",");b=t(new u,function(){return function(a){return a.Ba().pa()}}(this));c=Pf();c=Qf(c);De(a,b,c).ce();return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.cM=function(a){var b=this.Xb;a=t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa(),e=a.Ba();if(null!==e)return a=e.pa(),e=e.Ba(),e=(new P).N(b.R(a),e),(new P).N(c,e)}throw(new v).d(a);}}(this,a));var c=Pf(),c=Qf(c);return(new kz).Qj(De(b,a,c))};function lz(a){return!!(a&&a.$classData&&a.$classData.v.mja)}var nd=q({mja:0},!1,"amf.core.annotations.Aliases",{mja:1,f:1,mh:1,lf:1,dJ:1,A:1,w:1,q:1,n:1});kz.prototype.$classData=nd;function Zx(){this.t=this.ba=null}Zx.prototype=new r;
Zx.prototype.constructor=Zx;d=Zx.prototype;d.a=function(){this.ba="auto-generated-name";this.t="";return this};d.L=function(){return"AutoGeneratedName"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.d7)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
var dM=q({d7:0},!1,"amf.core.annotations.AutoGeneratedName",{d7:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});Zx.prototype.$classData=dM;function zi(){this.t=this.ba=null}zi.prototype=new r;zi.prototype.constructor=zi;d=zi.prototype;d.a=function(){this.ba="declared-element";this.t="";return this};d.L=function(){return"DeclaredElement"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.e7)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};
d.te=function(){return this.ba};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var Zt=q({e7:0},!1,"amf.core.annotations.DeclaredElement",{e7:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});zi.prototype.$classData=Zt;function Onb(){this.t=this.ba=null}Onb.prototype=new r;Onb.prototype.constructor=Onb;d=Onb.prototype;d.a=function(){this.ba="declared-header";this.t="";return this};d.L=function(){return"DeclaredHeader"};d.H=function(){return 0};
d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.oja)&&!0};d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var GIa=q({oja:0},!1,"amf.core.annotations.DeclaredHeader",{oja:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});Onb.prototype.$classData=GIa;function f0(){this.t=this.ba=this.mg=null}f0.prototype=new r;f0.prototype.constructor=f0;d=f0.prototype;d.L=function(){return"ExternalFragmentRef"};
d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.tja?this.mg===a.mg:!1};d.K=function(a){switch(a){case 0:return this.mg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.e=function(a){this.mg=a;this.ba="external-fragment-ref";this.t=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
var O2a=q({tja:0},!1,"amf.core.annotations.ExternalFragmentRef",{tja:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});f0.prototype.$classData=O2a;function uf(){this.t=this.ba=this.cc=null}uf.prototype=new r;uf.prototype.constructor=uf;function Pnb(){}d=Pnb.prototype=uf.prototype;d.L=function(){return"LexicalInformation"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(o0a(a)){var b=this.cc;a=a.cc;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.cc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.Ui=function(a){this.cc=a;this.ba="lexical";this.t=a.u();return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function o0a(a){return!!(a&&a.$classData&&a.$classData.v.CY)}var Fd=q({CY:0},!1,"amf.core.annotations.LexicalInformation",{CY:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});uf.prototype.$classData=Fd;
function F0(){this.t=this.ba=this.Qe=null}F0.prototype=new r;F0.prototype.constructor=F0;d=F0.prototype;d.L=function(){return"SourceVendor"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Hja?this.Qe===a.Qe:!1};d.K=function(a){switch(a){case 0:return this.Qe;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};function E0(a,b){a.Qe=b;a.ba="source-vendor";a.t=b.te();return a}d.y=function(){return Y(this)};
d.M=function(){return Z(this)};var $S=q({Hja:0},!1,"amf.core.annotations.SourceVendor",{Hja:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});F0.prototype.$classData=$S;function Jh(){this.Ze=this.js=this.Ca=this.oa=null}Jh.prototype=new r;Jh.prototype.constructor=Jh;d=Jh.prototype;d.L=function(){return"ValueEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Vja){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.js,a=a.js,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.js;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=!1,c=null,e=this.js;a:{if(x(e)&&(b=!0,c=e,e=c.i,O().Oi===e)){b=(new ph).e(ja(this.Ca.t.t.t));b=rC(wa(),b.ia);c=""+Ba(+ba.Math.floor(b));break a}if(b&&(b=c.i,O().rg===b)){b=(new ph).e(ja(this.Ca.t.t.t));b=""+rC(wa(),b.ia);re(ta(),b,".0")?(c=b.indexOf(".0")|0,c=b.substring(0,c)):c=b;break a}c=this.Ca.t.t.t}R();b=this.oa;b=Th(R(),b);R();c=mq(nq(),c);e=this.js;c=lq(0,c,e.b()?this.Ze:e.c());qq(a,b,c)};d.y=function(){return Y(this)};
function Ih(a,b,c,e){a.oa=b;a.Ca=c;a.js=e;cDa(a);return a}d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.Sxa=function(a){this.Ze=a};d.$classData=q({Vja:0},!1,"amf.core.emitter.BaseEmitters.package$ValueEmitter",{Vja:1,f:1,OLa:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function Qnb(){}Qnb.prototype=new r;Qnb.prototype.constructor=Qnb;d=Qnb.prototype;d.a=function(){return this};d.Cb=function(a){return a};d.tE=function(a,b){return 0<=this.Ak(a,b)};d.Ak=function(){return 1};
d.SE=function(a,b){return 0>=this.Ak(a,b)};d.$classData=q({WLa:0},!1,"amf.core.emitter.SpecOrdering$Default$",{WLa:1,f:1,ULa:1,ZH:1,nH:1,$H:1,YH:1,q:1,n:1});var Rnb=void 0;function Yra(){Rnb||(Rnb=(new Qnb).a());return Rnb}function Snb(){}Snb.prototype=new r;Snb.prototype.constructor=Snb;d=Snb.prototype;d.a=function(){return this};
d.Cb=function(a){var b=a.jn(t(new u,function(){return function(a){return a.Oa().zy()}}(this)));if(null!==b){a=b.pa();var b=b.Ba().Ej(this),c=z();return b.la(a,c.s)}throw(new v).d(b);};d.tE=function(a,b){return 0<=this.Ak(a,b)};d.Ak=function(a,b){return a.Oa().eE(b.Oa())};d.SE=function(a,b){return 0>=this.Ak(a,b)};d.$classData=q({XLa:0},!1,"amf.core.emitter.SpecOrdering$Lexical$",{XLa:1,f:1,ULa:1,ZH:1,nH:1,$H:1,YH:1,q:1,n:1});var Tnb=void 0;function gC(){Tnb||(Tnb=(new Snb).a());return Tnb}
function Unb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Mc=this.g=this.ja=this.Aa=null}Unb.prototype=new r;Unb.prototype.constructor=Unb;d=Unb.prototype;
d.a=function(){Vnb=this;Iq(this);bT(this);H0(this);I0(this);G5(this);this.Aa=Tb(new Ub,Vb().dg,"Document","A Document is a parsing Unit that encodes a stand-alone DomainElement and can include references to other DomainElements that reference from the encoded DomainElement.\nSince it encodes a DomainElement, but also declares references, it behaves like a Fragment and a Module at the same time.\nThe main difference is that the Document encoded DomainElement is stand-alone and that the references declared are supposed to be private not for re-use from other Units",G());
return this};d.RD=function(a){this.g=a};d.Yc=function(){};d.Bn=function(a){this.qc=a};d.yn=function(a){this.ug=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.An=function(a){this.jg=a};d.gy=function(a){this.Mc=a};d.Zc=function(){M();var a=(new N).a();return(new Ig).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Qp=function(a){this.ob=a};d.Cn=function(a){this.Ud=a};d.SD=function(a){this.ja=a};d.zn=function(a){this.nc=a};
d.$classData=q({oMa:0},!1,"amf.core.metamodel.document.DocumentModel$",{oMa:1,f:1,tB:1,xq:1,tn:1,Oc:1,ic:1,Xc:1,Az:1});var Vnb=void 0;function Nl(){Vnb||(Vnb=(new Unb).a());return Vnb}function Wnb(){this.ke=this.Hb=this.Jc=this.gd=this.fb=this.Aa=this.ja=this.g=this.Fc=this.OF=this.oa=this.$=null;this.ma=0}Wnb.prototype=new r;Wnb.prototype.constructor=Wnb;d=Wnb.prototype;
d.a=function(){Xnb=this;Iq(this);cT(this);fba(this);Ob(this);var a=Pb(),b=C().dc;this.oa=this.$=Rb(new Sb,a,D(new F,b,"name"),Tb(new Ub,Vb().dc,"name","name for an entity",G()));a=(new Ki).Ld(Xc());b=C().un;this.OF=Rb(new Sb,a,D(new F,b,"domain"),Tb(new Ub,Bi().un,"domain","RDFS domain property",G()));a=Pg();b=C().Gb;this.Fc=Rb(new Sb,a,D(new F,b,"schema"),Tb(new Ub,Vb().Gb,"schema","Schema for an entity",G()));Di();var a=(new J).aa([this.OF,this.Fc,this.$]),b=Di().s,a=Ei(a,b),b=Db().g,c=Di(),a=a.la(b,
c.s),b=Lc().g,c=Di();this.g=a.la(b,c.s);a=C().Zd;a=D(new F,a,"DomainProperty");b=C().yi;b=D(new F,b,"Property");c=Lc().ja;this.ja=oz(new pz,a,oz(new pz,b,c));this.Aa=Tb(new Ub,Vb().dg,"Custom Domain Property","Definition of an extension to the domain model defined directly by a user in the RAML/OpenAPI document.\nThis can be achieved by using an annotationType in RAML. In OpenAPI thy don't need to\n      be declared, they can just be used.\n      This should be mapped to new RDF properties declared directly in the main document or module.\n      Contrast this extension mechanism with the creation of a propertyTerm in a vocabulary, a more\nre-usable and generic way of achieving the same functionality.\nIt can be validated using a SHACL shape",
G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.U9=function(a){this.gd=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a();return(new Le).P((new Q).a(),a)};d.ec=function(){return this.ja};d.$classData=q({NMa:0},!1,"amf.core.metamodel.domain.extensions.CustomDomainPropertyModel$",{NMa:1,f:1,se:1,Oc:1,ic:1,Xc:1,Kj:1,cka:1,ul:1});var Xnb=void 0;function Zl(){Xnb||(Xnb=(new Wnb).a());return Xnb}
function Ynb(){this.ke=this.Hb=this.Jc=this.$=this.oa=this.lj=this.ef=this.Aa=this.ja=null;this.ma=0}Ynb.prototype=new r;Ynb.prototype.constructor=Ynb;d=Ynb.prototype;d.a=function(){Znb=this;Iq(this);cT(this);Wb(this);Wcb(this);var a=C().Zd,a=D(new F,a,"ParametrizedDeclaration"),b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().dg,"Parametrized Declaration","Generic graph template supporting variables that can be transformed into a domain element",G());return this};
d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return Vcb(this)};d.Y9=function(a){this.ef=a};d.GA=function(){throw Lb(Mb(),(new Nb).e("ParametrizedDeclaration is abstract and cannot be instantiated by default"));};d.$9=function(a){this.oa=a};d.Zc=function(){this.GA()};d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};d.Z9=function(a){this.lj=a};
d.$classData=q({SMa:0},!1,"amf.core.metamodel.domain.templates.ParametrizedDeclarationModel$",{SMa:1,f:1,eka:1,se:1,Oc:1,ic:1,Xc:1,Kj:1,yq:1});var Znb=void 0;function zW(){Znb||(Znb=(new Ynb).a());return Znb}function Bp(){this.k=this.mb=this.Gg=this.E=this.g=null;this.ma=!1}Bp.prototype=new r;Bp.prototype.constructor=Bp;d=Bp.prototype;d.L=function(){return"ExternalDomainElement"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};
d.h=function(a){return this===a?!0:Xea(a)?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Wl()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){return"#/external"};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};
d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.Gg=w();return this};function Xea(a){return!!(a&&a.$classData&&a.$classData.v.qka)}d.$classData=q({qka:0},!1,"amf.core.model.domain.ExternalDomainElement",{qka:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function bj(){Qg.call(this);this.dn=this.ab=this.ea=null}bj.prototype=new $ib;bj.prototype.constructor=bj;d=bj.prototype;
d.El=function(){throw Lb(Mb(),(new Nb).e("Recursive shape cannot be linked"));};d.rc=function(){return ej()};d.ha=function(){return this.ab};d.H_=function(){return(new yL).a()};function fj(a,b){a.dn=(new A).d(b);a.Mg.Pz(b);b.Mg.X(t(new u,function(a){return function(b){return a.Mg.Pz(b)}}(a)));return a}d.Nd=function(){return"/recursive"};
d.aO=function(a,b,c){b=(new Q).a();M();var e=(new N).a();b=(new bj).P(b,e);b.k=this.k;nda(this,a,b,w(),c);a=this.dn;a.b()||(a=a.c(),fj(b,a));this.Mg.X(t(new u,function(a,b){return function(a){return b.Mg.Pz(a)}}(this,b)));return b};d.Qk=function(){return qd(function(){return function(a,b){return(new bj).P(a,b)}}(this))};d.ca=function(){return this.ea};d.P=function(a,b){this.ea=a;this.ab=b;Qg.prototype.a.call(this);this.dn=w();return this};
function no(a){return!!(a&&a.$classData&&a.$classData.v.tka)}d.$classData=q({tka:0},!1,"amf.core.model.domain.RecursiveShape",{tka:1,zw:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,$x:1});function n2(){this.k=this.mb=this.E=this.g=null;this.ma=!1}n2.prototype=new r;n2.prototype.constructor=n2;d=n2.prototype;d.L=function(){return"VariableValue"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.k7?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return om()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){var a=B(this.g,om().$).G,a=a.b()?"default-variable":a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};
d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};d.$classData=q({k7:0},!1,"amf.core.model.domain.templates.VariableValue",{k7:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function Fw(){this.Ah=this.Ea=null}Fw.prototype=new r;Fw.prototype.constructor=Fw;d=Fw.prototype;d.L=function(){return"DefaultArrayNode"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Dka?Yj(this.Ea,a.Ea):!1};d.HV=function(){var a=this.Ea,b=Jc();return(new P).N(L(a,b,this.Ah),this.Ea)};d.K=function(a){switch(a){case 0:return this.Ea;default:throw(new X).e(""+a);}};d.DV=function(){return yDa(this)};d.b3=function(){return tDa(this)};d.u=function(){return U(W(),this)};d.s5=function(){return vDa(this)};d.Sba=function(){return wDa(this)};d.Vb=function(a,b){this.Ea=a;this.Ah=b;return this};
d.Zca=function(a){return jL(this,a)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Dka:0},!1,"amf.core.parser.DefaultArrayNode",{Dka:1,f:1,yNa:1,Bka:1,LY:1,A:1,w:1,q:1,n:1});function yp(){this.Yh=this.yf=this.Xg=null;this.Xi=0;this.Ru=this.P2=this.up=this.jc=null}yp.prototype=new r;yp.prototype.constructor=yp;function $nb(){}d=$nb.prototype=yp.prototype;d.L=function(){return"ParserContext"};d.ps=function(a,b){ADa(this,a,b)};
function xga(a){var b=a.P2.Rr();a=t(new u,function(){return function(a){var b=jd(a);return Jp(new Kp,a,(new f1).Di(b.b()?a.k:b.c(),G()),w())}}(a));var c=pf();return b.ka(a,c.s).ce()}d.H=function(){return 5};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.au){if(this.Xg===a.Xg)var b=this.yf,c=a.yf,b=null===b?null===c:b.h(c);else b=!1;if(b&&this.Yh===a.Yh&&this.Xi===a.Xi)return b=this.tp(),a=a.tp(),null===b?null===a:b.h(a)}return!1};d.cC=function(a,b){return CDa(this,a,b)};
d.K=function(a){switch(a){case 0:return this.Xg;case 1:return this.yf;case 2:return this.Yh;case 3:return this.Xi;case 4:return this.tp();default:throw(new X).e(""+a);}};d.Vs=function(a,b,c,e,f,g){this.Hc(a.k,b,c,e,f,xc().Eg,g)};d.u=function(){return U(W(),this)};
d.Hc=function(a,b,c,e,f,g,h){var k;k=(new ph).e(e);var l=h.b()?"":h.c(),l=(new ph).e(l),p=fc().wN;k=vp(k,l,p);k=(new ph).e(k);f.b()?l=w():(l=f.c(),l=(new A).d(l.t));l=l.b()?"":l.c();l=(new ph).e(l);p=fc().wN;k=vp(k,l,p);this.Ru.Ja(k)||(this.Ru.Om(k),k=this.tp(),x(k)?k.i.Hc(a,b,c,e,f,g,h.b()?(new A).d(this.Xg):h):(k=Rk(),l=this.Xi,h=h.b()?(new A).d(this.Xg):h,HPa(Qk(k),g,a,b,c,e,f,l,h)))};
function CKa(a,b){var c=a.P2,e=jd(b),c=c.Ta(e.b()?b.k:e.c());x(c)||(c=a.P2,e=jd(b),c.Oe(e.b()?b.k:e.c(),b));return a}d.tp=function(){return this.jc};d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.Xg)),a=zI().Ga(a,yI(zI(),this.yf)),a=zI().Ga(a,yI(zI(),this.Yh)),a=zI().Ga(a,this.Xi),a=zI().Ga(a,yI(zI(),this.tp()));return zI().Wd(a,5)};d.M=function(){return Z(this)};
d.co=function(a,b,c,e,f){this.Xg=a;this.yf=b;this.Yh=c;this.Xi=e;this.jc=f;this.up=pc(Os(),G());this.P2=pc(Os(),G());this.Ru=H(xz(),G());return this};d.$classData=q({au:0},!1,"amf.core.parser.ParserContext",{au:1,f:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1});function o8(){}o8.prototype=new L5;o8.prototype.constructor=o8;o8.prototype.a=function(){return this};o8.prototype.R=function(a){return this.mu(a)};
o8.prototype.mu=function(a){a=eba(a);var b=C().Gb,b=Gc(D(new F,b,"Shape"));for(a=a.ec();!a.b();){if(Gc(a.fa())===b)return!0;a=a.sa()}return!1};o8.prototype.$classData=q({lPa:0},!1,"amf.core.resolution.stages.selectors.ShapeSelector$",{lPa:1,fN:1,f:1,za:1,A:1,w:1,q:1,n:1,Rm:1});var aob=void 0;function G1a(){aob||(aob=(new o8).a());return aob}function bob(){this.Ro=this.vs=this.Xb=this.WJ=this.o=this.rb=this.Og=this.mm=this.LL=this.XJ=null}bob.prototype=new r;bob.prototype.constructor=bob;d=bob.prototype;
d.L=function(){return"DeclarationsGroupEmitter"};d.H=function(){return 10};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Wla){var b=this.XJ,c=a.XJ;(null===b?null===c:b.h(c))?(b=this.LL,c=a.LL,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.mm,c=a.mm,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Og,c=a.Og,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.rb,c=a.rb,b=null===b?null===c:b.h(c)):b=!1;b&&this.o===a.o?(b=this.WJ,c=a.WJ,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Xb,c=a.Xb,b=null===b?null===c:O1(b,c)):b=!1;b?(b=this.vs,c=a.vs,b=null===b?null===c:b.h(c)):
b=!1;return b?this.Ro===a.Ro:!1}return!1};d.K=function(a){switch(a){case 0:return this.XJ;case 1:return this.LL;case 2:return this.mm;case 3:return this.Og;case 4:return this.rb;case 5:return this.o;case 6:return this.WJ;case 7:return this.Xb;case 8:return this.vs;case 9:return this.Ro;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=B(this.LL.g,MA().mv).G,b=b.b()?null:b.c(),b=Md(this,b);a:{var c;if(null!==b&&(b=b.Ba(),bg(b))){c=(new A).d(s4a(b,this));break a}c=w()}if(this.WJ.b()){b=B(this.LL.g,MA().$).G;b=b.b()?null:b.c();R();var e=Th(R(),b),b=(new My).e(a.da),f=b.r,g=b.da,h=(new pq).e(g);cob(this).X(t(new u,function(a,b,c){return function(e){var f;f=B(e.g,pv().TX).G;x(f)?f=f.i:(f=e.k,f=kd(ta(),f,"#",0),f=ld((new md).vc(f)),f=kd(ta(),f,"/",0),f=ld((new md).vc(f)),f=(new Cf).e(f),f=ba.decodeURI(f.zd));var g=
Th(R(),f);f=(new My).e(b.da);var h=c.b()?w():QQa(c.c(),e),k=a.mm,l=a.Og,p=a.rb,db=a.o,Qb=a.Xb,bc=a.Ro,rc=w(),Fc=w(),Rd=G();RQa(e,k,l,p,db,Qb,rc,!1,Fc,h,!1,Rd,bc).Ob(f);e=f.r;g=[g];if(0>e.x)throw(new X).e("0");k=g.length|0;h=e.x+k|0;hC(e,h);Ca(e.z,0,e.z,k,e.x);k=e.z;db=k.j.length;p=l=0;Qb=g.length|0;db=Qb<db?Qb:db;Qb=k.j.length;for(db=db<Qb?db:Qb;l<db;)k.j[p]=g[l],l=1+l|0,p=1+p|0;e.x=h;T(b.r,iC(jC(),f.r))}}(this,h,c)));T(f,lq(R(),rq(sq(),h.r,g),O().ua));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|
0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);var g=c.z,k=g.j.length,l=h=0,p=e.length|0}else{R();b=this.WJ.fa();e=Th(R(),b);b=(new My).e(a.da);c=b.r;f=b.da;g=(new pq).e(f);dob(new bob,this.XJ,this.LL,this.mm,this.Og,this.rb,this.o,this.WJ.sa(),this.Xb,this.vs,this.Ro).Va(g);T(c,lq(R(),rq(sq(),g.r,f),O().ua));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);g=c.z;k=g.j.length;l=h=0;p=e.length|0}k=p<k?p:k;p=g.j.length;for(k=k<p?k:p;h<k;)g.j[l]=e[h],h=1+h|0,l=1+l|
0;c.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function cob(a){var b=a.XJ;a=t(new u,function(){return function(a){a=Zb(a.E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()}}(a));CB();var c=fc().ci;return b.qi(a,DB(c))}function dob(a,b,c,e,f,g,h,k,l,p,y){a.XJ=b;a.LL=c;a.mm=e;a.Og=f;a.rb=g;a.o=h;a.WJ=k;a.Xb=l;a.vs=p;a.Ro=y;return a}
d.Oa=function(){var a=this.XJ,b=t(new u,function(){return function(a){a=Zb(a.E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.wa()}}(this)),c=z(),a=a.md(b,c.s);CB();b=fc().ci;a=a.Ej(DB(b)).pc();return a.b()?Gd():a.c()};d.$classData=q({Wla:0},!1,"amf.plugins.document.vocabularies.emitters.instances.DeclarationsGroupEmitter",{Wla:1,f:1,ib:1,Ra:1,Cz:1,A:1,w:1,q:1,n:1});
function eob(){this.vs=this.Xb=this.o=this.rb=this.Og=this.mm=this.Ea=null;this.UL=!1;this.UB=this.HT=null;this.mO=!1;this.Ro=this.kQ=null}eob.prototype=new r;eob.prototype.constructor=eob;d=eob.prototype;d.L=function(){return"DialectNodeEmitter"};function RQa(a,b,c,e,f,g,h,k,l,p,y,I,E){var V=new eob;V.Ea=a;V.mm=b;V.Og=c;V.rb=e;V.o=f;V.Xb=g;V.vs=h;V.UL=k;V.HT=l;V.UB=p;V.mO=y;V.kQ=I;V.Ro=E;return V}
function fob(a,b,c){return c.Pe().Cd(t(new u,function(a,b){return function(c){return sd(c)&&c.ak().Cd(t(new u,function(a,b){return function(a){return a.k===yb(b).c().k}}(a,b)))}}(a,b)))}d.H=function(){return 13};
d.Ob=function(a){if(yb(this.Ea).qa())gob(this,this.Ea,this.Og)?OQa(this.Ea).Ob(a):fob(this,this.Ea,this.Og)?hob(this,this.Ea,this.Og,a):iob(this.Ea,a);else{var b=(new Qd).d(this.kQ);if(this.mO){var c=b.ta,e=z(),f=[Bv(new Cv,"$dialect",this.mm.k,O().Wa,Gd())],e=H(e,(new J).aa(f)),f=z();b.ta=c.la(e,f.s)}if(this.UB.qa()){c=this.UB.c();if(null===c)throw(new v).d(c);var e=c.pa(),g=c.Ba(),c=b.ta,f=z(),e=[Bv(new Cv,e,g,O().Wa,Gd())],e=H(f,(new J).aa(e)),f=z();b.ta=c.la(e,f.s)}if(Zb(this.Ea.E,n(jjb)).qa()||
this.Ro.nO)c=this.Ea.k,e=jd(this.rb),e=e.b()?"":e.c(),f=-1!==(c.indexOf(ja(e))|0)?this.Ea.k.split(this.rb.k).join(""):this.Ea.k,c=b.ta,e=z(),f=[Bv(new Cv,"$id",f,O().Wa,Gd())],e=H(e,(new J).aa(f)),f=z(),b.ta=c.la(e,f.s);job(hN(this.Ea)).X(t(new u,function(a,b){return function(c){var e=kob(a,a.Ea,c);if(!e.b()){var f=e.c();a.vs.b()?e=!0:(e=B(f.g,sf().Kh).G,e=(e.b()?null:e.c())!==a.vs.c());if(e){var e=B(f.g,sf().$).G,e=e.b()?null:e.c(),g=VGa(f),E=!1,V=null,da=a.Ea.g.Pb.Ta(c);a:{if(x(da)){var E=!0,V=
da,sa=V.i;if(sj(sa.t)){f=sa.t;g=(new A).d(sa.E);da=f.t;E=wM(da)?Nu(Ru(da)):da;da=z();E=Nh(new Oh,E,(new N).a());f=g.b()?f.E:g.c();e=[Ih(new Jh,e,Rh(new Sh,c,Ph(new Qh,E,f)),w())];e=H(da,(new J).aa(e));break a}}if(E){sa=V.i;if(es(sa.t))var ua=jGa(),ua=null!==g&&g===ua;else ua=!1;if(ua){f=sa.t;g=(new A).d(sa.E);da=z();g=g.b()?f.E:g.c();e=[Kw(new Lw,e,Rh(new Sh,c,Ph(new Qh,f,g)),a.o,!1)];e=H(da,(new J).aa(e));break a}}if(E&&(c=V.i,xA(c.t)?(sa=fGa(),sa=null!==g&&g===sa):sa=!1,sa)){f=c.t;da=Sj(f).k;g=
Md(a,da);if(null===g)throw(new v).d(g);da=g.pa();E=g.Ba();g=z();V=a.Og;c=a.o;var sa=a.Xb,ua=a.Ro,Ia=w(),Pa=w(),Za=w(),db=G(),e=[Vw(new Ww,e,RQa(f,E,V,da,c,sa,Ia,!1,Pa,Za,!0,db,ua),O().Wa,Gd())],e=H(g,(new J).aa(e));break a}if(E&&(c=V.i,xA(c.t)?(sa=MM(),sa=null!==g&&g===sa):sa=!1,sa&&!(1<x2(f).lb()))){e=lob(a,e,c.t,f,(new A).d(c.E));break a}if(E&&(c=V.i,es(c.t)?(sa=OM(),sa=null!==g&&g===sa):sa=!1,sa&&!(1<x2(f).lb()))){e=lob(a,e,c.t,f,(new A).d(c.E));break a}if(E&&(c=V.i,es(c.t)?(sa=JM(),sa=null!==
g&&g===sa):sa=!1,sa)){e=lob(a,e,c.t,f,(new A).d(c.E));break a}if(E&&(c=V.i,xA(c.t)?(sa=MM(),sa=null!==g&&g===sa):sa=!1,sa&&1<x2(f).lb())){e=lob(a,e,c.t,f,w());break a}if(E&&(c=V.i,es(c.t)?(sa=OM(),sa=null!==g&&g===sa):sa=!1,sa&&1<x2(f).lb())){e=lob(a,e,c.t,f,(new A).d(c.E));break a}if(E&&(E=V.i,es(E.t)?(V=nGa(),g=null!==g&&g===V):g=!1,g)){da=E.t;g=(new A).d(E.E);E=B(f.g,sf().qr).G;E=E.b()?null:E.c();f=B(f.g,sf().cy).G;f=f.b()?null:f.c();e=H(z(),(new J).aa([WQa(e,da,E,f,g)]));break a}if(w()===da)e=
G();else throw(new v).d(da);}f=b.ta;da=z();b.ta=f.la(e,da.s)}}}}(this,b)));this.UL&&(c=b.ta,e=mob(this),f=z(),b.ta=c.la(e,f.s));this.UL&&(c=b.ta,e=z(),f=[(new njb).pU(this.Og,this.o,this.Xb)],e=H(e,(new J).aa(f)),f=z(),b.ta=c.la(e,f.s));c=a.r;a=a.da;e=(new pq).e(a);this.o.Cb(b.ta).X(t(new u,function(a,b){return function(a){a.Va(b)}}(this,e)));T(c,lq(R(),rq(sq(),e.r,a),O().ua))}};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Yla){var b=this.Ea,c=a.Ea;(null===b?null===c:b.h(c))?(b=this.mm,c=a.mm,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Og,c=a.Og,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.rb,c=a.rb,b=null===b?null===c:b.h(c)):b=!1;b&&this.o===a.o?(b=this.Xb,c=a.Xb,b=null===b?null===c:O1(b,c)):b=!1;b?(b=this.vs,c=a.vs,b=null===b?null===c:b.h(c)):b=!1;b&&this.UL===a.UL?(b=this.HT,c=a.HT,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.UB,c=a.UB,b=null===
b?null===c:b.h(c)):b=!1;b&&this.mO===a.mO?(b=this.kQ,c=a.kQ,b=null===b?null===c:b.h(c)):b=!1;return b?this.Ro===a.Ro:!1}return!1};d.K=function(a){switch(a){case 0:return this.Ea;case 1:return this.mm;case 2:return this.Og;case 3:return this.rb;case 4:return this.o;case 5:return this.Xb;case 6:return this.vs;case 7:return this.UL;case 8:return this.HT;case 9:return this.UB;case 10:return this.mO;case 11:return this.kQ;case 12:return this.Ro;default:throw(new X).e(""+a);}};
function hob(a,b,c,e){if(Yh(b.E,n(NQa))){b=e.r;e=e.da;c=(new pq).e(e);R();var f=Th(R(),"$ref");R();var g=B(a.Ea.g,Db().wd).G;a=g.b()?yb(a.Ea).c().k:g.c();a=Th(R(),a);qq(c,f,a);T(b,lq(R(),rq(sq(),c.r,e),O().ua))}else c=c.Pe().Ib(t(new u,function(a,b){return function(c){return sd(c)&&c.ak().Cd(t(new u,function(a,b){return function(a){return a.k===yb(b).c().k}}(a,b)))}}(a,b))),a=a.Xb.R(c.c().k).pa(),d7(new c7,a+"."+R5a(b),b.E,O().Wa).Ob(e)}
function VQa(a,b){b=Md(a,b);if(null!==b){var c=b.Ba();if(he(c))return H(z(),(new J).aa([c]))}if(null!==b&&(b=b.Ba(),bg(b))){b=B(b.g,cg().Jg);var c=t(new u,function(a){return function(b){b=b.G;b=b.b()?null:b.c();return Md(a,b).Ba()}}(a)),e=z();b=b.ka(c,e.s);a=(new M5).dba(a);c=z();return b.$b(a,c.s)}return G()}function lob(a,b,c,e,f){if(es(c))var g=c.Tb;else{if(!xA(c))throw(new v).d(c);g=H(z(),(new J).aa([c]))}var h=es(c),k=s4a(e,a),l=z();a=[UQa(a,e,g,k,h,b,f,c)];return H(l,(new J).aa(a))}
d.u=function(){return U(W(),this)};function nob(a){a=a.Og;return sd(a)?(new A).d(a):w()}function iob(a,b){if(Yh(a.E,n(NQa))){var c=b.r;b=b.da;var e=(new pq).e(b);R();var f=Th(R(),"$ref");R();var g=B(a.g,Db().wd).G;a=g.b()?yb(a).c().k:g.c();a=Th(R(),a);qq(e,f,a);T(c,lq(R(),rq(sq(),e.r,b),O().ua))}else d7(new c7,R5a(a),a.E,O().Wa).Ob(b)}
function gob(a,b,c){var e=yb(b);if(x(e))return b=e.i,c.Pe().Cd(t(new u,function(a,b){return function(a){return cB(a)?B(a.g,ZA().ob).k===b.k:!1}}(a,b)));throw Lb(Mb(),(new Nb).e("Cannot check fragment for an element without target for element "+b.k));}
function mob(a){var b=Wa().Ia(B(a.rb.g,ed().vj));if(b.b())a=w();else{var b=b.c(),c=Wa().Ia(B(b.g,fd().cs));if(c.b())a=w();else{var c=c.c(),e=nob(a);if(e.b())a=w();else{var e=e.c(),f=B(c.g,OA().ft).G;a=(new A).d((f.b()?null:f.c())===a.Ea.k?G():B(c.g,OA().$t).ae(H(z(),G()),qd(function(a,b,c){return function(e,f){var y=B(f.g,MA().mv).G,y=VQa(a,y.b()?null:y.c()),I=t(new u,function(){return function(a){return a.k}}(a)),E=z(),I=y.ka(I,E.s).pg(),y=b.ak(),I=Tdb(I),E=z(),y=y.$b(I,E.s);if(y.Fa()){I=B(f.g,MA().mv).G;
I=I.b()?null:I.c();E=Md(a,I);if(null!==E&&(I=E.Ba(),null!==I)){var E=z(),V=a.Og,da=a.rb,sa=a.o;fc();var ua=B(c.g,fd().qz).G,ua=ua.b()?"/":ua.c(),ua=vl(0,kd(ta(),ua,"/",0)),Ia=a.Xb,Pa=a.Ro,Za=w();f=H(E,(new J).aa([dob(new bob,y,f,I,V,da,sa,ua,Ia,Za,Pa)]));y=z();return e.la(f,y.s)}throw(new v).d(E);}return e}}(a,e,b))))}}}return a.b()?G():a.c()}function job(a){var b=a.g;for(a=pc(fc().db,G());!b.b();){var c=b.fa(),e=a.Ta(Gc(c.t));x(e)||(a=a.Hh(Gc(c.t),c));b=b.sa()}return(new dd).Qd(a)}
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.Ea)),a=zI().Ga(a,yI(zI(),this.mm)),a=zI().Ga(a,yI(zI(),this.Og)),a=zI().Ga(a,yI(zI(),this.rb)),a=zI().Ga(a,yI(zI(),this.o)),a=zI().Ga(a,yI(zI(),this.Xb)),a=zI().Ga(a,yI(zI(),this.vs)),a=zI().Ga(a,this.UL?1231:1237),a=zI().Ga(a,yI(zI(),this.HT)),a=zI().Ga(a,yI(zI(),this.UB)),a=zI().Ga(a,this.mO?1231:1237),a=zI().Ga(a,yI(zI(),this.kQ)),a=zI().Ga(a,yI(zI(),this.Ro));return zI().Wd(a,13)};d.M=function(){return Z(this)};
function kob(a,b,c){c=Gc(c.t);var e=a.mm;if(he(e))return B(e.g,Tj().Qi).Ib(t(new u,function(a,b){return function(a){a=B(a.g,sf().Kh).G;return(a.b()?null:a.c())===b}}(a,c)));if(bg(e)){var e=B(e.g,cg().Jg),f=t(new u,function(){return function(a){a=a.G;return a.b()?null:a.c()}}(a)),g=z(),e=e.ka(f,g.s),f=t(new u,function(a){return function(b){b=Md(a,b);return null!==b&&(b=b.Ba(),he(b))?(new A).d(b):w()}}(a)),g=z(),e=e.ka(f,g.s),f=(new Udb).dba(a),g=z(),e=e.$b(f,g.s);b=hN(b).Kfa;f=t(new u,function(){return function(a){return(new P).N(a,
!0)}}(a));g=z();b=b.ka(f,g.s).$g(fc().ci);b=e=e.xb(t(new u,function(a,b){return function(a){return b.Ja(a.k)}}(a,b)));e=t(new u,function(){return function(a){return B(a.g,Tj().Qi)}}(a));f=z();return b.md(e,f.s).Ib(t(new u,function(a,b){return function(a){a=B(a.g,sf().Kh).G;return(a.b()?null:a.c())===b}}(a,c)))}throw(new v).d(e);}d.Oa=function(){var a=Zb(this.Ea.E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};
d.$classData=q({Yla:0},!1,"amf.plugins.document.vocabularies.emitters.instances.DialectNodeEmitter",{Yla:1,f:1,lh:1,Ra:1,Cz:1,A:1,w:1,q:1,n:1});function XQa(){this.mp=this.o=this.qt=null}XQa.prototype=new r;XQa.prototype.constructor=XQa;d=XQa.prototype;d.L=function(){return"ClassTermEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.cma){var b=this.qt,c=a.qt;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.mp,a=a.mp,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.qt;case 1:return this.o;case 2:return this.mp;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=Od(this.qt.k,this.mp),c;c=H(z(),G());var e=B(this.qt.g,zA().gd).G;if(!e.b()){var e=e.c(),f=z(),e=[Bv(new Cv,"displayName",e,O().Wa,Gd())],e=H(f,(new J).aa(e)),f=z();c=c.la(e,f.s)}e=B(this.qt.g,zA().fb).G;e.b()||(e=e.c(),f=z(),e=[Bv(new Cv,"description",e,O().Wa,Gd())],e=H(f,(new J).aa(e)),f=z(),c=c.la(e,f.s));B(this.qt.g,zA().Mz).Fa()&&(e=z(),f=[(new RT).eba(this)],e=H(e,(new J).aa(f)),f=z(),c=c.la(e,f.s));B(this.qt.g,zA().Rg).Fa()&&(e=z(),f=[(new ST).eba(this)],e=H(e,(new J).aa(f)),
f=z(),c=c.la(e,f.s));if(c.b())Bv(new Cv,b,"",O().yd,Gd()).Va(a);else{R();var e=Th(R(),b),b=(new My).e(a.da),f=b.r,g=b.da,h=(new pq).e(g);iq(Cq(),this.o.Cb(c),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);for(var g=c.z,k=g.j.length,l=h=0,p=e.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=e[h],h=1+h|0,l=1+l|0;c.x=f;T(a.r,iC(jC(),b.r))}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){var a=Zb(this.qt.E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};d.$classData=q({cma:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.ClassTermEmitter",{cma:1,f:1,ib:1,Ra:1,bma:1,A:1,w:1,q:1,n:1});function YQa(){this.mp=this.o=this.Et=null}YQa.prototype=new r;YQa.prototype.constructor=YQa;d=YQa.prototype;d.L=function(){return"PropertyTermEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ema){var b=this.Et,c=a.Et;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.mp,a=a.mp,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.Et;case 1:return this.o;case 2:return this.mp;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=Od(this.Et.k,this.mp),c;c=H(z(),G());var e=B(this.Et.ca(),FA().gd).G;if(!e.b()){var e=e.c(),f=z(),e=[Bv(new Cv,"displayName",e,O().Wa,Gd())],e=H(f,(new J).aa(e)),f=z();c=c.la(e,f.s)}e=B(this.Et.ca(),FA().fb).G;e.b()||(e=e.c(),f=z(),e=[Bv(new Cv,"description",e,O().Wa,Gd())],e=H(f,(new J).aa(e)),f=z(),c=c.la(e,f.s));B(this.Et.ca(),FA().IB).Fa()&&(e=z(),f=[(new TT).fba(this)],e=H(e,(new J).aa(f)),f=z(),c=c.la(e,f.s));B(this.Et.ca(),FA().If).G.qa()&&(e=z(),f=[(new UT).fba(this)],
e=H(e,(new J).aa(f)),f=z(),c=c.la(e,f.s));if(c.b())Bv(new Cv,b,"",O().yd,Gd()).Va(a);else{R();var e=Th(R(),b),b=(new My).e(a.da),f=b.r,g=b.da,h=(new pq).e(g);iq(Cq(),this.o.Cb(c),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);for(var g=c.z,k=g.j.length,l=h=0,p=e.length|0,k=p<k?p:k,p=g.j.length,k=k<p?k:p;h<k;)g.j[l]=e[h],h=1+h|0,l=1+l|0;c.x=f;T(a.r,iC(jC(),b.r))}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){var a=Zb(this.Et.ha(),n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};d.$classData=q({ema:0},!1,"amf.plugins.document.vocabularies.emitters.vocabularies.PropertyTermEmitter",{ema:1,f:1,ib:1,Ra:1,bma:1,A:1,w:1,q:1,n:1});function oob(){this.Aa=this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.ct=this.mt=this.$=this.ja=this.f9=this.Xx=this.Qi=this.ov=null;this.ma=0}oob.prototype=new r;oob.prototype.constructor=oob;d=oob.prototype;
d.pp=function(a){this.ef=a};d.QR=function(){0===(1&this.ma)<<24>>24&&(this.Jc=wPa(),this.ma=(1|this.ma)<<24>>24);return this.Jc};
d.a=function(){pob=this;Iq(this);cT(this);YK(this);Ud(this);Wba(this);var a=Xc(),b=C().cb;this.ov=Rb(new Sb,a,D(new F,b,"targetClass"),Tb(new Ub,Bi().cb,"target class","Target class whose instances will need to match the constraint described for the node",G()));a=(new Ki).Ld(sf());b=C().cb;this.Qi=Rb(new Sb,a,D(new F,b,"property"),Tb(new Ub,Bi().cb,"property","Data shape constraint for a property of the target node",G()));a=Pb();b=C().bb;this.Xx=Rb(new Sb,a,D(new F,b,"uriTemplate"),Tb(new Ub,Vb().bb,
"uriTemplate","URI template that will be used to generate the URI of the parsed nodeds in the graph",G()));a=(new Ki).Ld(Xc());b=C().Kc;this.f9=Rb(new Sb,a,D(new F,b,"resolvedExtends"),Tb(new Ub,Vb().tm,"","",G()));var a=C().Kc,a=D(new F,a,"NodeMapping"),b=C().cb,b=D(new F,b,"Shape"),c=Lc().ja;this.ja=oz(new pz,a,oz(new pz,b,c));return this};d.qp=function(a){this.kg=a};d.k_=function(a){this.$=a};d.Ce=function(a){this.Hb=a};d.Yc=function(a){this.Aa=a};
d.wi=function(){return 0===(1&this.ma)<<24>>24?this.QR():this.Jc};d.op=function(a){this.Je=a};d.sc=function(){var a=this.ov,b=this.$,c=this.Qi,e=this.Xx,f=this.mt,g=this.f9,h=Db().g,k=Lc().g,l=Di(),h=h.la(k,l.s);return oz(new pz,a,oz(new pz,b,oz(new pz,c,oz(new pz,e,oz(new pz,f,oz(new pz,g,h))))))};d.Tc=function(){return this.Aa};d.PN=function(a){this.mt=a};d.np=function(a){this.wd=a};d.Zc=function(){M();var a=(new N).a();return(new jN).P((new Q).a(),a)};d.ON=function(a){this.ct=a};d.ec=function(){return this.ja};
d.$classData=q({LRa:0},!1,"amf.plugins.document.vocabularies.metamodel.domain.NodeMappingModel$",{LRa:1,f:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,eS:1,y7:1});var pob=void 0;function Tj(){pob||(pob=(new oob).a());return pob}function WM(){this.k=this.mb=this.E=this.g=null;this.ma=!1}WM.prototype=new r;WM.prototype.constructor=WM;d=WM.prototype;d.L=function(){return"ClassTerm"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){Wa().Ia(this.k).b()&&cj(this,a);return this};
d.h=function(a){return this===a?!0:AA(a)?this.g===a.g?this.E===a.E:!1:!1};function qob(a,b){var c=zA().Rg,e=t(new u,function(){return function(a){return Nh(new Oh,a,(new N).a())}}(a)),f=z();b=gr(new hr,b.ka(e,f.s),(new N).a());ff(a,c,b)}d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return zA()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){return""};
d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.y=function(){return Y(this)};function rob(a,b){var c=zA().Mz,e=t(new u,function(){return function(a){return Nh(new Oh,a,(new N).a())}}(a)),f=z();b=gr(new hr,b.ka(e,f.s),(new N).a());ff(a,c,b)}d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};
function AA(a){return!!(a&&a.$classData&&a.$classData.v.pma)}d.$classData=q({pma:0},!1,"amf.plugins.document.vocabularies.model.domain.ClassTerm",{pma:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function fU(){this.k=this.mb=this.E=this.g=null;this.ma=!1}fU.prototype=new r;fU.prototype.constructor=fU;d=fU.prototype;d.L=function(){return"DocumentMapping"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){Wa().Ia(this.k).b()&&cj(this,a);return this};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.A7?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return OA()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){return""};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};
d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};d.$classData=q({A7:0},!1,"amf.plugins.document.vocabularies.model.domain.DocumentMapping",{A7:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function qU(){this.k=this.mb=this.E=this.g=null;this.ma=!1}qU.prototype=new r;qU.prototype.constructor=qU;d=qU.prototype;d.L=function(){return"DocumentsModel"};d.Ub=function(){return H(z(),G())};
d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.B7?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return fd()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Nd=function(){return"/documents"};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};
d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};d.$classData=q({B7:0},!1,"amf.plugins.document.vocabularies.model.domain.DocumentsModel",{B7:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function lN(){this.k=this.mb=this.E=this.g=null;this.ma=!1}lN.prototype=new r;lN.prototype.constructor=lN;d=lN.prototype;d.L=function(){return"External"};
d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.C7?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return zd()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};
d.Nd=function(){var a=B(this.g,zd().gd).G;if(x(a))return a=(new Cf).e(a.i),"/externals/"+Gj(a.zd);if(w()===a)throw Lb(Mb(),(new Nb).e("Cannot set ID of external without alias"));throw(new v).d(a);};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};
d.P=function(a,b){this.g=a;this.E=b;return this};d.$classData=q({C7:0},!1,"amf.plugins.document.vocabularies.model.domain.External",{C7:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function lU(){this.k=this.mb=this.E=this.g=null;this.ma=!1}lU.prototype=new r;lU.prototype.constructor=lU;d=lU.prototype;d.L=function(){return"PublicNodeMapping"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){Wa().Ia(this.k).b()&&cj(this,a);return this};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.D7?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return MA()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){return""};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};
d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};d.$classData=q({D7:0},!1,"amf.plugins.document.vocabularies.model.domain.PublicNodeMapping",{D7:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function SM(){this.k=this.mb=this.E=this.g=null;this.ma=!1}SM.prototype=new r;SM.prototype.constructor=SM;d=SM.prototype;d.L=function(){return"VocabularyReference"};d.Ub=function(){return H(z(),G())};
d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.E7?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Sd()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};
d.Nd=function(){var a=B(this.g,Sd().Kp).G;if(x(a))return a=(new Cf).e(a.i),"/vocabularyReference/"+Gj(a.zd);if(w()===a)throw Lb(Mb(),(new Nb).e("Cannot set ID of VocabularyReference without alias"));throw(new v).d(a);};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};
d.P=function(a,b){this.g=a;this.E=b;return this};d.$classData=q({E7:0},!1,"amf.plugins.document.vocabularies.model.domain.VocabularyReference",{E7:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function i1(){this.t=this.ba=null}i1.prototype=new r;i1.prototype.constructor=i1;d=i1.prototype;d.a=function(){this.ba="form-body-parameter";this.t="true";return this};d.L=function(){return"FormBodyParameter"};d.H=function(){return 0};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Pma)&&!0};
d.K=function(a){throw(new X).e(""+a);};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var boa=q({Pma:0},!1,"amf.plugins.document.webapi.annotations.FormBodyParameter",{Pma:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});i1.prototype.$classData=boa;function lx(){this.t=this.ba=this.k=null}lx.prototype=new r;lx.prototype.constructor=lx;d=lx.prototype;d.L=function(){return"JSONSchemaId"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Sma?this.k===a.k:!1};d.K=function(a){switch(a){case 0:return this.k;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.e=function(a){this.k=a;this.ba="json-schema-id";this.t=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var Q7a=q({Sma:0},!1,"amf.plugins.document.webapi.annotations.JSONSchemaId",{Sma:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});
lx.prototype.$classData=Q7a;function m1(){this.t=this.ba=this.cc=this.BL=null}m1.prototype=new r;m1.prototype.constructor=m1;d=m1.prototype;d.L=function(){return"ParameterNameForPayload"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Uma&&this.BL===a.BL){var b=this.cc;a=a.cc;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.BL;case 1:return this.cc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.te=function(){return this.ba};d.y=function(){return Y(this)};function j1a(a,b,c){a.BL=b;a.cc=c;a.ba="parameter-name-for-payload";a.t=b+"-\x3e"+c.u();return a}d.M=function(){return Z(this)};var Q8a=q({Uma:0},!1,"amf.plugins.document.webapi.annotations.ParameterNameForPayload",{Uma:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});m1.prototype.$classData=Q8a;function u3(){this.t=this.ba=this.Ik=null}u3.prototype=new r;u3.prototype.constructor=u3;d=u3.prototype;d.L=function(){return"ParsedJSONExample"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Vma?this.Ik===a.Ik:!1};d.K=function(a){switch(a){case 0:return this.Ik;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.e=function(a){this.Ik=a;this.ba="parsed-json-example";this.t=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Vma:0},!1,"amf.plugins.document.webapi.annotations.ParsedJSONExample",{Vma:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});function q1(){this.t=this.ba=this.Ik=null}q1.prototype=new r;q1.prototype.constructor=q1;d=q1.prototype;d.L=function(){return"ParsedRamlDatatype"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.K7?this.Ik===a.Ik:!1};d.K=function(a){switch(a){case 0:return this.Ik;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.te=function(){return this.ba};d.e=function(a){this.Ik=a;this.ba="parsed-raml-datatype";this.t=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var Mnb=q({K7:0},!1,"amf.plugins.document.webapi.annotations.ParsedRamlDatatype",{K7:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});q1.prototype.$classData=Mnb;function s1(){this.RL=!1;this.t=this.ba=this.cc=null}s1.prototype=new r;s1.prototype.constructor=s1;d=s1.prototype;d.L=function(){return"RequiredParamPayload"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Wma&&this.RL===a.RL){var b=this.cc;a=a.cc;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.RL;case 1:return this.cc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){var a=-889275714,a=zI().Ga(a,this.RL?1231:1237),a=zI().Ga(a,yI(zI(),this.cc));return zI().Wd(a,2)};d.M=function(){return Z(this)};
function n1a(a,b,c){a.RL=b;a.cc=c;a.ba="required-param-payload";a.t=""+Qwa(nG(),b,"-\x3e")+c.u();return a}var M8a=q({Wma:0},!1,"amf.plugins.document.webapi.annotations.RequiredParamPayload",{Wma:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});s1.prototype.$classData=M8a;function fQ(){tU.call(this);this.tya=this.QGa=this.OV=this.ym=null}fQ.prototype=new $Ra;fQ.prototype.constructor=fQ;d=fQ.prototype;d.L=function(){return"JsonSchemaEmitterContext"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(Xma(a)){var b=this.ym,c=a.ym;return(null===b?null===c:b.h(c))?this.OV===a.OV:!1}return!1};d.K=function(a){switch(a){case 0:return this.ym;case 1:return this.OV;default:throw(new X).e(""+a);}};d.cda=function(){return this.OV};d.u=function(){return U(W(),this)};d.Si=function(){return this.ym};d.RGa=function(){return this.QGa};
d.uU=function(a,b){this.ym=a;this.OV=b;var c=yN();tU.prototype.Ci.call(this,a,c,b);dIa||(dIa=(new JN).a());this.QGa=dIa;this.tya="anyOf";return this};d.uya=function(){return this.tya};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Qea=function(){return"/definitions/"};function Xma(a){return!!(a&&a.$classData&&a.$classData.v.Yma)}d.$classData=q({Yma:0},!1,"amf.plugins.document.webapi.contexts.JsonSchemaEmitterContext",{Yma:1,Zma:1,gna:1,hS:1,f:1,A:1,w:1,q:1,n:1});
function nla(){this.Ze=this.Q=this.Bh=this.VT=this.Ca=this.oa=null}nla.prototype=new r;nla.prototype.constructor=nla;d=nla.prototype;d.L=function(){return"RamlScalarValueEmitter"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ina){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;b?(b=this.VT,c=a.VT,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Bh,a=a.Bh,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.VT;case 3:return this.Bh;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function sob(a,b){R();var c=a.oa,e=Th(R(),c),c=(new My).e(b.da),f=c.r,g=c.da,h=(new pq).e(g);R();var k=mq(nq(),a.Ca.t.t.t),l=a.Bh;yYa(h,"value",lq(0,k,l.b()?a.Ze:l.c()));a.VT.X(t(new u,function(a,b){return function(c){a.Q.of.QS().zf(c,Yra()).Va(b)}}(a,h)));T(f,lq(R(),rq(sq(),h.r,g),O().ua));a=c.r;e=[e];if(0>a.x)throw(new X).e("0");g=e.length|0;f=a.x+g|0;hC(a,f);Ca(a.z,0,a.z,g,a.x);for(var g=a.z,l=g.j.length,k=h=0,p=e.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=e[h],h=1+h|0,k=1+k|0;a.x=f;
T(b.r,iC(jC(),c.r))}d.Va=function(a){sob(this,a)};d.y=function(){return Y(this)};function mla(a,b,c,e,f,g){a.oa=b;a.Ca=c;a.VT=e;a.Bh=f;a.Q=g;cDa(a);return a}d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.Sxa=function(a){this.Ze=a};d.$classData=q({ina:0},!1,"amf.plugins.document.webapi.contexts.RamlScalarValueEmitter",{ina:1,f:1,OLa:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function qma(){this.Ah=this.sx=null}qma.prototype=new r;qma.prototype.constructor=qma;d=qma.prototype;
d.L=function(){return"MapEntriesArrayNode"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Fna?Yj(this.sx,a.sx):!1};
d.HV=function(){var a=this.sx.Bb,b=t(new u,function(a){return function(b){R();sq();Zf();b=[b];if(0===(b.length|0))xq(),yq(),b=Bq((new zq).a());else{xq();yq();for(var c=(new zq).a(),h=0,k=b.length|0;h<k;)LG(c,b[h]),h=1+h|0;b=Bq(c)}b=rq(0,b,a.sx.ga.Of);return lq(R(),b,O().ua)}}(this)),c=uv(),a=a.ka(b,c.gc);R();b=this.sx;R();return(new P).N(a,lq(R(),b,O().ua))};d.K=function(a){switch(a){case 0:return this.sx;default:throw(new X).e(""+a);}};d.DV=function(){return yDa(this)};d.b3=function(){return tDa(this)};
d.u=function(){return U(W(),this)};d.s5=function(){return vDa(this)};d.Sba=function(){return wDa(this)};d.Zca=function(a){return jL(this,a)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Fna:0},!1,"amf.plugins.document.webapi.parser.spec.common.MapEntriesArrayNode",{Fna:1,f:1,yNa:1,Bka:1,LY:1,A:1,w:1,q:1,n:1});function C7(){A7.call(this);this.va=null}C7.prototype=new Vjb;C7.prototype.constructor=C7;
function tob(a){var b=a.Dg.v3(),c=(new K).Y(a.W),e=N2().Eq;Bh(c,"scheme",Ch(Dh(a,e,a.va),b));c=(new K).Y(a.W);e=N2().OM;Bh(c,"bearerFormat",Ch(Dh(a,e,a.va),b));return b}C7.prototype.wc=function(){var a=A7.prototype.wc.call(this);if(!x(a)){if(w()!==a)throw(new v).d(a);a=B(this.Dg.g,vi().Nj).G;a=a.b()?null:a.c();a="openIdConnect"===a?(new A).d(uob(this)):"http"===a?(new A).d(tob(this)):w()}return Zjb(this,a)};
function uob(a){var b=a.Dg.w3(),c=(new K).Y(a.W),e=K6a().Jf;Bh(c,"openIdConnectUrl",Ch(Dh(a,e,a.va),b));c=(new K).Y(a.W);e=Hv((new Cf).e("settings"));c=yc(c,e);c.b()||(c=c.c().i,e=Pc(),c=L(c,e,a.va),Yjb(a,c,b,(new J).aa([])));return b}C7.prototype.h1=function(a,b,c){this.va=c;A7.prototype.h1.call(this,a,b,c);return this};
C7.prototype.UCa=function(){var a=this.Dg.xQ(),b=yc((new K).Y(this.W),"flows");if(!b.b()){var b=b.c().i,c=Pc(),b=L(b,c,this.va).Bb.pc();if(x(b)){var c=b.i,b=c.i,e=Pc(),b=L(b,e,this.va),c=(new Eh).Vb(c.Da,this.va).Pf(),e=QP().Wx;ff(a,e,c);c=(new K).Y(b);e=QP().rm;Bh(c,"authorizationUrl",Ch(Dh(this,e,this.va),a));c=(new K).Y(b);e=QP().sq;Bh(c,"tokenUrl",Ch(Dh(this,e,this.va),a));c=(new K).Y(b);e=QP().sN;Bh(c,"refreshUrl",Ch(Dh(this,e,this.va),a));$jb(this,a,b)}else if(w()!==b)throw(new v).d(b);}b=(new K).Y(this.W);
c=Hv((new Cf).e("settings"));b=yc(b,c);b.b()||(b=b.c().i,c=Pc(),b=L(b,c,this.va),Yjb(this,b,a,(new J).aa(["authorizationGrants"])));f6a(jx(new kx,a,this.W,G(),this.va),"flows");return a};C7.prototype.$classData=q({WVa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Oas3SecuritySettingsParser",{WVa:1,T7:1,f:1,aWa:1,ig:1,A:1,w:1,q:1,n:1});function UHa(){DU.call(this);this.Xd=this.Ma=this.lE=null}UHa.prototype=new TSa;UHa.prototype.constructor=UHa;d=UHa.prototype;d.L=function(){return"OasAnnotationEmitter"};
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.joa){var b=this.lE,c=a.lE;return(null===b?null===c:b.h(c))?this.Ma===a.Ma:!1}return!1};d.K=function(a){switch(a){case 0:return this.lE;case 1:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.Xd};d.EK=function(a,b,c){this.lE=a;this.Ma=b;DU.prototype.EK.call(this,a,b,c);a=B(a.g,bf().$).G;this.Xd="x-"+(a.b()?null:a.c());return this};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({joa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasAnnotationEmitter",{joa:1,Pna:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function VHa(){FU.call(this);this.Da=this.ud=this.Eb=this.Ma=this.Ug=null}VHa.prototype=new USa;VHa.prototype.constructor=VHa;d=VHa.prototype;d.L=function(){return"OasCustomFacetsEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.roa){var b=this.Ug,c=a.Ug;if((null===b?null===c:b.h(c))&&this.Ma===a.Ma)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ug;case 1:return this.Ma;case 2:return this.Eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.jfa=function(){return vv(function(a){return function(b,c,e){return rkb(new skb,b,c,e,"properties",G(),G(),a.ud)}}(this))};
d.qA=function(a,b,c,e){this.Ug=a;this.Ma=b;this.Eb=c;this.ud=e;FU.prototype.bba.call(this,a,b,c);this.Da=Hv((new Cf).e("facets"));return this};d.ZK=function(){return this.Da};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({roa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasCustomFacetsEmitter",{roa:1,Sna:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function EN(){xv.call(this);this.ud=this.Ma=this.Eb=this.ZA=null}EN.prototype=new XSa;EN.prototype.constructor=EN;
d=EN.prototype;d.L=function(){return"OasDeclaredTypesEmitters"};function ZHa(a,b,c,e,f){a.ZA=b;a.Eb=c;a.Ma=e;a.ud=f;xv.prototype.yBa.call(a,b,0,0,f);return a}d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.soa){var b=this.ZA,c=a.ZA;(null===b?null===c:b.h(c))?(b=this.Eb,c=a.Eb,b=null===b?null===c:b.h(c)):b=!1;return b?this.Ma===a.Ma:!1}return!1};
d.K=function(a){switch(a){case 0:return this.ZA;case 1:return this.Eb;case 2:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Mza=function(a){var b=this.ud.Pg(),c=Sp().bs,e=b===c?(R(),Th(R(),"schemas")):(R(),Th(R(),"definitions")),b=(new My).e(a.da),c=b.r,f=b.da,g=(new pq).e(f),h=Cq(),k=this.Ma,l=this.ZA,p=t(new u,function(a){return function(b){var c=a.Ma,e=a.Eb,f=z();return(new jkb).tU(b,c,e,H(f,(new J).aa(["definitions"])),a.ud)}}(this)),y=z();iq(h,k.Cb(l.ka(p,y.s)),g);T(c,lq(R(),rq(sq(),g.r,f),O().ua));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);g=c.z;l=g.j.length;k=h=
0;p=e.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=e[h],h=1+h|0,k=1+k|0;c.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({soa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasDeclaredTypesEmitters",{soa:1,LVa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function SHa(){AU.call(this);this.Xd=this.Ma=this.lF=null}SHa.prototype=new $Sa;SHa.prototype.constructor=SHa;d=SHa.prototype;d.L=function(){return"OasFacetsInstanceEmitter"};
d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.voa){var b=this.lF,c=a.lF;return(null===b?null===c:b.h(c))?this.Ma===a.Ma:!1}return!1};d.K=function(a){switch(a){case 0:return this.lF;case 1:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.Xd};
d.FK=function(a,b,c){this.lF=a;this.Ma=b;AU.prototype.FK.call(this,a,b,c);a=B(B(a.g,Is().Rf).ea,Pg().$).G;a="facet-"+(a.b()?null:a.c());this.Xd=Hv((new Cf).e(a));return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({voa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasFacetsInstanceEmitter",{voa:1,Zna:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function N7(){mx.call(this);this.Kt=this.Kr=this.LS=this.Eb=this.Ma=this.TN=null}N7.prototype=new wna;
N7.prototype.constructor=N7;d=N7.prototype;d.L=function(){return"OasItemsShapeEmitter"};d.H=function(){return 6};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.yoa){var b=this.TN,c=a.TN;(null===b?null===c:b.h(c))&&this.Ma===a.Ma?(b=this.Eb,c=a.Eb,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.LS,c=a.LS,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Kr,c=a.Kr,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Kt,a=a.Kt,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.TN;case 1:return this.Ma;case 2:return this.Eb;case 3:return this.LS;case 4:return this.Kr;case 5:return this.Kt;default:throw(new X).e(""+a);}};function ekb(a,b,c,e,f,g,h,k){a.TN=b;a.Ma=c;a.Eb=e;a.LS=f;a.Kr=g;a.Kt=h;mx.prototype.tU.call(a,B(b.ea,Wh().wf),c,G(),e,k);return a}d.u=function(){return U(W(),this)};
d.Va=function(a){if(Wa().Ia(uj(this.TN.ea,Wh().wf)).qa()){R();var b=Th(R(),"items"),c=(new My).e(a.da),e=this.Kr,f=z(),e=xna(this,e.hg("items",f.s),this.Kt);if(Ep(e))e.i.Ob(c);else if(Hp(e)){var e=e.i,f=c.r,g=c.da,h=(new pq).e(g),k=Cq(),l=this.LS.wa(),p=z();iq(k,e.la(l,p.s),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua))}else throw(new v).d(e);e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=b.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:
p;h<l;)g.j[k]=b[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),c.r))}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=Wa().Ia(uj(this.TN.ea,Wh().wf));return x(a)?(a=a.i,jq(Cq(),a.E,n(Fd))):Gd()};d.$classData=q({yoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasItemsShapeEmitter",{yoa:1,vpa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function skb(){mx.call(this);this.Wya=this.Oda=this.Pda=this.$da=this.Kt=this.Kr=this.b2=this.Eb=this.Ma=this.Mr=null}
skb.prototype=new wna;skb.prototype.constructor=skb;d=skb.prototype;d.L=function(){return"OasPropertyShapeEmitter"};d.H=function(){return 6};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Loa){var b=this.Mr,c=a.Mr;(null===b?null===c:b.h(c))&&this.Ma===a.Ma?(b=this.Eb,c=a.Eb,b=null===b?null===c:b.h(c)):b=!1;b&&this.b2===a.b2?(b=this.Kr,c=a.Kr,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Kt,a=a.Kt,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Mr;case 1:return this.Ma;case 2:return this.Eb;case 3:return this.b2;case 4:return this.Kr;case 5:return this.Kt;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=B(this.Mr.ea,rj().If);if(Xh(b)||no(b)){var c=this.Oda,b=(new My).e(a.da),e=this.Wya;if(Ep(e))e.i.Ob(b);else if(Hp(e)){var e=e.i,f=b.r,g=b.da,h=(new pq).e(g),k=Cq(),l=this.Ma,p=this.$da.wa(),y=z();iq(k,l.Cb(e.la(p,y.s)),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua))}else throw(new v).d(e);}else c=this.Oda,b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=Cq(),k=this.$da.wa(),iq(h,k,g),T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,
f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),b.r))};
function rkb(a,b,c,e,f,g,h,k){a.Mr=b;a.Ma=c;a.Eb=e;a.b2=f;a.Kr=g;a.Kt=h;mx.prototype.tU.call(a,B(b.ea,rj().If),c,G(),e,k);c=Dd(b.ea,rj().MD);c.b()?c=w():(c=c.c(),c=(new A).d(Ih(new Jh,"readOnly",c,w())));a.$da=c;b=B(b.ea,rj().rv).G;b.b()?(b=B(a.Mr.ea,Pg().$).G,b=b.b()?null:b.c()):b=b.c();a.Pda=b;a.Oda=lq(R(),mq(nq(),a.Pda),O().Wa);f=H(z(),(new J).aa([f,a.Pda]));b=z();a.Wya=xna(a,g.la(f,b.s),h);return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.Mr.ab,n(Fd))};d.$classData=q({Loa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasPropertyShapeEmitter",{Loa:1,vpa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function vob(){jO.call(this);this.eb=this.xa=this.mq=null}vob.prototype=new kO;vob.prototype.constructor=vob;d=vob.prototype;d.L=function(){return"FileShapeParser"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.kpa&&a.l===this.l){if(this.mq===a.mq)var b=this.xa,c=a.xa,b=null===b?null===c:b.h(c);else b=!1;return b?Yj(this.eb,a.eb):!1}return!1};d.K=function(a){switch(a){case 0:return this.mq;case 1:return this.xa;case 2:return this.eb;default:throw(new X).e(""+a);}};function wob(a,b,c,e){var f=new vob;f.mq=b;f.xa=c;f.eb=e;jO.prototype.uy.call(f,a);return f}d.u=function(){return U(W(),this)};
d.IH=function(){jO.prototype.Hi.call(this);Gca(this,this.eb,this.xa,this.mq);var a=(new K).Y(this.eb),b=Hv((new Cf).e("fileTypes")),c=this.l,e=ao().pB;Bh(a,b,Ch(Dh(c,e,this.l.va),this.xa));return this.xa};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({kpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$FileShapeParser",{kpa:1,jJ:1,kJ:1,f:1,hpa:1,A:1,w:1,q:1,n:1});function xob(){jO.call(this);this.eb=this.xa=this.mq=this.VJ=null;this.sg=!1}
xob.prototype=new kO;xob.prototype.constructor=xob;d=xob.prototype;d.L=function(){return"ScalarShapeParser"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.qpa&&a.l===this.l){if(this.mq===a.mq)var b=this.xa,c=a.xa,b=null===b?null===c:b.h(c);else b=!1;return b?Yj(this.eb,a.eb):!1}return!1};d.AT=function(){return this.sg?this.VJ:this.S$()};
d.K=function(a){switch(a){case 0:return this.mq;case 1:return this.xa;case 2:return this.eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.JH=function(){jO.prototype.Hi.call(this);var a=Gca(this,this.eb,this.xa,this.mq),b=yc((new K).Y(this.eb),"type");if(b.b()){var b=this.xa,c=xh().af,a=Nh(new Oh,sB(tB(),a),(new N).a());M();var e=(new N).a()}else e=b.c(),b=this.xa,c=xh().af,a=Nh(new Oh,sB(tB(),a),(new N).a()),e=Ke(M(),e);Fh(b,c,a,e);return this.xa};
d.S$=function(){if(!this.sg){var a=(new A).d(this.xa.k),b=(new Mv).a(),c=(new Ie).a();this.VJ=t(new u,function(a,b){return function(a){return g6a(b,a)}}(this,h6a(b,a,c,this.l.va)));this.sg=!0}return this.VJ};function yob(a,b,c,e){var f=new xob;f.mq=b;f.xa=c;f.eb=e;jO.prototype.uy.call(f,a);return f}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({qpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$ScalarShapeParser",{qpa:1,jJ:1,kJ:1,f:1,hpa:1,A:1,w:1,q:1,n:1});function zob(){jO.call(this);this.eb=this.xa=null}zob.prototype=new kO;zob.prototype.constructor=zob;d=zob.prototype;d.L=function(){return"SchemaShapeParser"};d.H=function(){return 2};function Aob(a,b,c){var e=new zob;e.xa=b;e.eb=c;jO.prototype.uy.call(e,a);jO.prototype.Hi.call(e);return e}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.rpa&&a.l===this.l){var b=this.xa,c=a.xa;return(null===b?null===c:b.h(c))?Yj(this.eb,a.eb):!1}return!1};d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.eb;default:throw(new X).e(""+a);}};
d.Hi=function(){var a=(new K).Y(this.eb),b=Hv((new Cf).e("schema")),a=yc(a,b);if(!a.b()){var a=a.c(),b=a.i,c=qe(),b=sv(b,c);if(Hp(b))a=b.i,b=this.xa,c=fo().Sd,Eb(b,c,a);else{var b=this.l.va,c=rh().N6,e=this.xa.k,a=a.i,f=w();Cc(b,c,e,f,"Cannot parse non string schema shape",a.ga);a=this.xa;b=fo().Sd;Eb(a,b,"")}}a=(new K).Y(this.eb);b=Hv((new Cf).e("mediaType"));a=yc(a,b);a.b()||(a=a.c(),b=a.i,c=qe(),b=sv(b,c),Hp(b)?(a=b.i,b=this.xa,c=fo().Md,Eb(b,c,a)):(b=this.l.va,c=rh().I6,e=this.xa.k,a=a.i,f=w(),
Cc(b,c,e,f,"Cannot parse non string schema shape",a.ga),a=this.xa,b=fo().Md,Eb(a,b,"*/*")));return this.xa};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({rpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser$SchemaShapeParser",{rpa:1,jJ:1,kJ:1,f:1,hpa:1,A:1,w:1,q:1,n:1});function M7(){mx.call(this);this.Kt=this.Kr=this.Eb=this.xu=this.Ma=this.Zf=null}M7.prototype=new wna;M7.prototype.constructor=M7;d=M7.prototype;
d.L=function(){return"OasTypePartEmitter"};d.Ob=function(a){var b=xna(this,this.Kr,this.Kt);if(Ep(b))b.i.Ob(a);else if(Hp(b)){var b=b.i,c=a.r;a=a.da;var e=(new pq).e(a);iq(Cq(),b,e);T(c,lq(R(),rq(sq(),e.r,a),O().ua))}else throw(new v).d(b);};d.H=function(){return 6};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.wpa){var b=this.Zf,c=a.Zf;(null===b?null===c:b.h(c))&&this.Ma===a.Ma?(b=this.xu,c=a.xu,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Eb,c=a.Eb,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.Kr,c=a.Kr,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Kt,a=a.Kt,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Zf;case 1:return this.Ma;case 2:return this.xu;case 3:return this.Eb;case 4:return this.Kr;case 5:return this.Kt;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};function L7(a,b,c,e,f,g,h,k){a.Zf=b;a.Ma=c;a.xu=e;a.Eb=f;a.Kr=g;a.Kt=h;mx.prototype.tU.call(a,b,c,e,f,k);return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){var a=this.zR,a=(a.b()?G():a.c()).pc();a.b()?a=w():(a=a.c(),a=(new A).d(a.Oa()));return a.b()?Gd():a.c()};d.$classData=q({wpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypePartEmitter",{wpa:1,vpa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function eSa(){EV.call(this);this.ud=this.Ma=this.Eb=this.mn=null}eSa.prototype=new rTa;eSa.prototype.constructor=eSa;d=eSa.prototype;d.L=function(){return"Raml08NamedSecuritySchemeEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Cpa){var b=this.mn,c=a.mn;(null===b?null===c:b.h(c))?(b=this.Eb,c=a.Eb,b=null===b?null===c:b.h(c)):b=!1;return b?this.Ma===a.Ma:!1}return!1};d.K=function(a){switch(a){case 0:return this.mn;case 1:return this.Eb;case 2:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.XFa=function(){return vv(function(a){return function(b,c,e){return(new jfb).uA(b,c,e,a.ud)}}(this))};
d.uA=function(a,b,c,e){this.mn=a;this.Eb=b;this.Ma=c;this.ud=e;EV.prototype.uA.call(this,a,b,c,e);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Cpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08NamedSecuritySchemeEmitter",{Cpa:1,zWa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function xU(){FV.call(this);this.ud=this.Eb=this.xu=this.ab=this.Ma=this.Zf=null}xU.prototype=new sTa;xU.prototype.constructor=xU;d=xU.prototype;d.L=function(){return"Raml08TypePartEmitter"};
d.H=function(){return 5};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Jpa){var b=this.Zf,c=a.Zf;(null===b?null===c:b.h(c))&&this.Ma===a.Ma?(b=this.ab,c=a.ab,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.xu,c=a.xu,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Zf;case 1:return this.Ma;case 2:return this.ab;case 3:return this.xu;case 4:return this.Eb;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.Ua=function(){var a=this.Ma,b=this.ud,c=new kfb;c.ra=this.Zf;c.o=a;c.Iw=b;return c.Ua()};d.y=function(){return Y(this)};d.Cr=function(a,b,c,e,f,g){this.Zf=a;this.Ma=b;this.ab=c;this.xu=e;this.Eb=f;this.ud=g;FV.prototype.tAa.call(this,a,b,0,0,0,g);return this};d.M=function(){return Z(this)};d.$classData=q({Jpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08TypePartEmitter",{Jpa:1,KWa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});
function R2(){fV.call(this);this.ud=this.Eb=this.Ma=this.mn=this.Da=null}R2.prototype=new YSa;R2.prototype.constructor=R2;d=R2.prototype;d.L=function(){return"Raml10DescribedByEmitter"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Lpa){if(this.Da===a.Da)var b=this.mn,c=a.mn,b=null===b?null===c:b.h(c);else b=!1;if(b&&this.Ma===a.Ma)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Da;case 1:return this.mn;case 2:return this.Ma;case 3:return this.Eb;default:throw(new X).e(""+a);}};d.lK=function(a){var b=H(Wg(),G()),c=Dd(a,vi().Dq);c.b()||(c=c.c().t.t,Xh(c)&&vh(b,Vkb(new Q7,c,this.Ma,this.Eb,wU(function(a){return function(b,c,h,k,l){return(new JU).Cr(b,c,h,k,l,a.ud)}}(this)),this.ud)));Er(b,Mw(this.mn,this.Ma,this.ud).Ua());a=fV.prototype.lK.call(this,a);c=z();return a.la(b,c.s)};d.u=function(){return U(W(),this)};
d.QU=function(a,b,c,e,f){this.Da=a;this.mn=b;this.Ma=c;this.Eb=e;this.ud=f;fV.prototype.QU.call(this,a,b,c,e,f);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Lpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml10DescribedByEmitter",{Lpa:1,Xeb:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function qSa(){EV.call(this);this.ud=this.Ma=this.Eb=this.mn=null}qSa.prototype=new rTa;qSa.prototype.constructor=qSa;d=qSa.prototype;d.L=function(){return"Raml10NamedSecuritySchemeEmitter"};
d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Mpa){var b=this.mn,c=a.mn;(null===b?null===c:b.h(c))?(b=this.Eb,c=a.Eb,b=null===b?null===c:b.h(c)):b=!1;return b?this.Ma===a.Ma:!1}return!1};d.K=function(a){switch(a){case 0:return this.mn;case 1:return this.Eb;case 2:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.XFa=function(){return vv(function(a){return function(b,c,e){return(new $5).uA(b,c,e,a.ud)}}(this))};
d.uA=function(a,b,c,e){this.mn=a;this.Eb=b;this.Ma=c;this.ud=e;EV.prototype.uA.call(this,a,b,c,e);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Mpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml10NamedSecuritySchemeEmitter",{Mpa:1,zWa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function JU(){FV.call(this);this.ud=this.Eb=this.xu=this.ab=this.Ma=this.Zf=null}JU.prototype=new sTa;JU.prototype.constructor=JU;d=JU.prototype;d.L=function(){return"Raml10TypePartEmitter"};
d.H=function(){return 5};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Qpa){var b=this.Zf,c=a.Zf;(null===b?null===c:b.h(c))&&this.Ma===a.Ma?(b=this.ab,c=a.ab,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.xu,c=a.xu,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Zf;case 1:return this.Ma;case 2:return this.ab;case 3:return this.xu;case 4:return this.Eb;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.Ua=function(){var a=this.Ma,b=d3(new Z2,this.Zf,this.Ma,this.xu,this.Eb,this.ud).Ua(),c=this.ab;c.b()?c=w():(c=c.c(),c=(new A).d(c.Ua()));var c=c.b()?G():c.c(),e=z();return a.Cb(b.la(c,e.s))};d.y=function(){return Y(this)};d.Cr=function(a,b,c,e,f,g){this.Zf=a;this.Ma=b;this.ab=c;this.xu=e;this.Eb=f;this.ud=g;FV.prototype.tAa.call(this,a,b,0,0,0,g);return this};d.M=function(){return Z(this)};
d.$classData=q({Qpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml10TypePartEmitter",{Qpa:1,KWa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function tSa(){DU.call(this);this.Xd=this.Ma=this.lE=null}tSa.prototype=new TSa;tSa.prototype.constructor=tSa;d=tSa.prototype;d.L=function(){return"RamlAnnotationEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Spa){var b=this.lE,c=a.lE;return(null===b?null===c:b.h(c))?this.Ma===a.Ma:!1}return!1};
d.K=function(a){switch(a){case 0:return this.lE;case 1:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.Xd};d.EK=function(a,b,c){this.lE=a;this.Ma=b;DU.prototype.EK.call(this,a,b,c);a=B(a.g,bf().$).G;this.Xd="("+(a.b()?null:a.c())+")";return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Spa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlAnnotationEmitter",{Spa:1,Pna:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function b3(){BV.call(this);this.xo=this.ge=this.Qc=this.yc=this.UN=null}b3.prototype=new CV;b3.prototype.constructor=b3;d=b3.prototype;d.L=function(){return"RamlArrayShapeEmitter"};d.bD=function(){return this.xo};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Wpa){var b=this.UN,c=a.UN;if((null===b?null===c:b.h(c))&&this.yc===a.yc)return b=this.Qc,a=a.Qc,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.UN;case 1:return this.yc;case 2:return this.Qc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Y0=function(a,b,c,e){this.UN=a;this.yc=b;this.Qc=c;this.ge=e;BV.prototype.wy.call(this,a,b,c,e);a=Zb(a.ab,n(p3));a.b()?a=w():(a.c(),a=(new A).d("array"));this.xo=a;return this};
d.Ua=function(){var a=H(Wg(),BV.prototype.Ua.call(this)),b=this.UN.ea,c=Dd(b,Wh().wf);c.b()||(c.c(),this.XA=!0,vh(a,(new Ukb).Y0(this.UN,this.yc,this.Qc,this.ge)));c=Dd(b,Wh().rr);c.b()||(c=c.c(),(new A).d(vh(a,Gh(Hh(),"maxItems",c,w(),this.ge))));c=Dd(b,Wh().Bq);c.b()||(c=c.c(),(new A).d(vh(a,Gh(Hh(),"minItems",c,w(),this.ge))));c=Dd(b,Wh().tr);c.b()||(c=c.c(),(new A).d(vh(a,Gh(Hh(),"uniqueItems",c,w(),this.ge))));b=Dd(b,Wh().sD);b.b()||(b=b.c(),(new A).d(vh(a,Ih(new Jh,Kh((new Cf).e("collectionFormat")),
b,w()))));this.XA||vh(a,Bv(new Cv,"type","array",O().Wa,Gd()));return a};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Wpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlArrayShapeEmitter",{Wpa:1,HD:1,JD:1,f:1,Dz:1,A:1,w:1,q:1,n:1});function vSa(){FU.call(this);this.Da=this.ud=this.Eb=this.Ma=this.Ug=null}vSa.prototype=new USa;vSa.prototype.constructor=vSa;d=vSa.prototype;d.L=function(){return"RamlCustomFacetsEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.aqa){var b=this.Ug,c=a.Ug;if((null===b?null===c:b.h(c))&&this.Ma===a.Ma)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ug;case 1:return this.Ma;case 2:return this.Eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.GK=function(a,b,c,e){this.Ug=a;this.Ma=b;this.Eb=c;this.ud=e;FU.prototype.bba.call(this,a,b,c);this.Da="facets";return this};
d.jfa=function(){return vv(function(a){return function(b,c,e){return Xkb(b,c,e,a.ud)}}(this))};d.ZK=function(){return this.Da};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({aqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlCustomFacetsEmitter",{aqa:1,Sna:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function kla(){xv.call(this);this.ud=this.Ma=this.Eb=this.ZA=null}kla.prototype=new XSa;kla.prototype.constructor=kla;d=kla.prototype;d.L=function(){return"RamlDeclaredTypesEmitters"};
d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.bqa){var b=this.ZA,c=a.ZA;(null===b?null===c:b.h(c))?(b=this.Eb,c=a.Eb,b=null===b?null===c:b.h(c)):b=!1;return b?this.Ma===a.Ma:!1}return!1};d.K=function(a){switch(a){case 0:return this.ZA;case 1:return this.Eb;case 2:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Mza=function(a){R();var b=this.ud.of.i3,c=Th(R(),b),b=(new My).e(a.da),e=b.r,f=b.da,g=(new pq).e(f),h=Cq(),k=this.Ma,l=this.ZA,p=t(new u,function(a){return function(b){if(Xh(b))return(new A).d(Vkb(new Q7,b,a.Ma,a.Eb,a.ud.of.TGa(),a.ud)).wa();if(no(b))return(new A).d((new $kb).QO(b,a.Ma,a.Eb,a.ud)).wa();var c=a.ud.jc,e=wo().ey,f=b.k,g=w(),h=Zb(b.ha(),n(Fd));b=b.Yb();c.Hc(e.k,f,g,"Cannot emit non WebApi shape",h,xc().tb,b);return w().wa()}}(this)),y=z();iq(h,k.Cb(l.md(p,y.s)),g);T(e,lq(R(),rq(sq(),
g.r,f),O().ua));e=b.r;c=[c];if(0>e.x)throw(new X).e("0");g=c.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;l=g.j.length;k=h=0;p=c.length|0;l=p<l?p:l;p=g.j.length;for(l=l<p?l:p;h<l;)g.j[k]=c[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),b.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({bqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlDeclaredTypesEmitters",{bqa:1,LVa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function rSa(){AU.call(this);this.Xd=this.Ma=this.lF=null}rSa.prototype=new $Sa;rSa.prototype.constructor=rSa;d=rSa.prototype;d.L=function(){return"RamlFacetsInstanceEmitter"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.fqa){var b=this.lF,c=a.lF;return(null===b?null===c:b.h(c))?this.Ma===a.Ma:!1}return!1};d.K=function(a){switch(a){case 0:return this.lF;case 1:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.te=function(){return this.Xd};d.FK=function(a,b,c){this.lF=a;this.Ma=b;AU.prototype.FK.call(this,a,b,c);a=B(B(a.g,Is().Rf).ea,Pg().$).G;this.Xd=a.b()?null:a.c();return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({fqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlFacetsInstanceEmitter",{fqa:1,Zna:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function elb(){BV.call(this);this.xo=this.ge=this.Qc=this.yc=this.xa=null}elb.prototype=new CV;
elb.prototype.constructor=elb;d=elb.prototype;d.L=function(){return"RamlInlinedUnionShapeEmitter"};d.bD=function(){return this.xo};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.iqa){var b=this.xa,c=a.xa;if((null===b?null===c:b.h(c))&&this.yc===a.yc)return b=this.Qc,a=a.Qc,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.yc;case 2:return this.Qc;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.NK=function(a,b,c,e){this.xa=a;this.yc=b;this.Qc=c;this.ge=e;BV.prototype.wy.call(this,a,b,c,e);this.xo=(new A).d("union");return this};d.M=function(){return Z(this)};d.$classData=q({iqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlInlinedUnionShapeEmitter",{iqa:1,HD:1,JD:1,f:1,Dz:1,A:1,w:1,q:1,n:1});function a3(){this.Q=this.cX=this.U=this.o=this.ra=null}a3.prototype=new r;a3.prototype.constructor=a3;d=a3.prototype;
d.L=function(){return"RamlJsonShapeEmitter"};d.Ob=function(a){var b=Zb(this.ra.ha(),n(Zh));if(x(b)){var c=b.i;if(B(this.ra.ca(),th().Vc).Fa()){b=H(Wg(),G());Bca(this,this.ra,b,this.o,this.U,this.Q);vh(b,Bv(new Cv,this.cX,c.Ik,O().Wa,Gd()));c=a.r;a=a.da;var e=(new pq).e(a);iq(Cq(),this.o.Cb(b),e);T(c,lq(R(),rq(sq(),e.r,a),O().ua))}else kq(Cq(),a,c.Ik,O().Wa)}else if(w()!==b)throw(new v).d(b);};d.H=function(){return 4};function A7a(a,b,c,e,f,g){a.ra=b;a.o=c;a.U=e;a.cX=f;a.Q=g;return a}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.nqa){var b=this.ra,c=a.ra;(null===b?null===c:b.h(c))&&this.o===a.o?(b=this.U,c=a.U,b=null===b?null===c:b.h(c)):b=!1;return b?this.cX===a.cX:!1}return!1};d.K=function(a){switch(a){case 0:return this.ra;case 1:return this.o;case 2:return this.U;case 3:return this.cX;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.ra.ha(),n(Fd))};d.$classData=q({nqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlJsonShapeEmitter",{nqa:1,f:1,lh:1,Ra:1,Dz:1,A:1,w:1,q:1,n:1});function c3(){BV.call(this);this.xo=this.Qc=this.yc=this.xa=null}c3.prototype=new CV;c3.prototype.constructor=c3;d=c3.prototype;d.L=function(){return"RamlNilShapeEmitter"};d.bD=function(){return this.xo};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.qqa){var b=this.xa,c=a.xa;if((null===b?null===c:b.h(c))&&this.yc===a.yc)return b=this.Qc,a=a.Qc,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.yc;case 2:return this.Qc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=BV.prototype.Ua.call(this);if(!this.XA)var b=Bv(new Cv,"type","nil",O().Wa,Gd()),b=H(z(),(new J).aa([b])),c=z(),a=a.la(b,c.s);return a};function G7a(a,b,c,e,f){a.xa=b;a.yc=c;a.Qc=e;BV.prototype.wy.call(a,b,c,e,f);a.xo=(new A).d("nil");return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({qqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlNilShapeEmitter",{qqa:1,HD:1,JD:1,f:1,Dz:1,A:1,w:1,q:1,n:1});
function Bob(){BV.call(this);this.xo=this.ge=this.Qc=this.yc=this.Dm=null}Bob.prototype=new CV;Bob.prototype.constructor=Bob;d=Bob.prototype;d.L=function(){return"RamlNodeShapeEmitter"};d.H=function(){return 3};d.bD=function(){return this.xo};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.rqa){var b=this.Dm,c=a.Dm;if((null===b?null===c:b.h(c))&&this.yc===a.yc)return b=this.Qc,a=a.Qc,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Dm;case 1:return this.yc;case 2:return this.Qc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=H(Wg(),BV.prototype.Ua.call(this)),b=this.Dm.ea,c=Dd(b,ci().Dw);c.b()||(c=c.c(),(new A).d(vh(a,Gh(Hh(),"minProperties",c,w(),this.ge))));c=Dd(b,ci().Cw);c.b()||(c=c.c(),(new A).d(vh(a,Gh(Hh(),"maxProperties",c,w(),this.ge))));var e=B(this.Dm.ea,ci().Rg).Cd(t(new u,function(){return function(a){a=B(a.ea,rj().rv);return!eM(a)}}(this))),c=Dd(b,ci().Pk);if(!c.b()){var c=c.c(),f=B(this.Dm.ea,ci().Pk),f=gd(f);e||!f&&!Yh(c.t.E,n(p3))||(e=!f,f=O().ui,Cq(),vh(a,Bv(new Cv,"additionalProperties",
""+e,f,jq(0,c.t.E,n(Fd)))))}c=Dd(b,ci().HF);c.b()||(c=c.c(),e=Kh((new Cf).e("additionalProperties")),f=this.ge,(new A).d(vh(a,hkb(new gkb,e,c,this.yc,this.Qc,(new tU).Ci(f.jc,f.Sy,(new ob).a())))));c=Dd(b,ci().dt);c.b()||(c=c.c(),(new A).d(vh(a,Gh(Hh(),"discriminator",c,w(),this.ge))));c=Dd(b,ci().rz);c.b()||(c=c.c(),(new A).d(vh(a,Gh(Hh(),"discriminatorValue",c,w(),this.ge))));c=Dd(b,ci().Rg);c.b()||(c=c.c(),this.XA=!0,(new A).d(vh(a,(new Wkb).GK(c,this.yc,this.Qc,this.ge))));var c=yia(),e=B(this.Dm.ea,
ci().Rg),f=t(new u,function(){return function(a){return(new P).N(a.k,a)}}(this)),g=z(),c=pc(c,e.ka(f,g.s)),b=Dd(b,ci().wD);b.b()||(b=b.c(),(new A).d(vh(a,clb(b,this.yc,c,this.ge))));this.XA||vh(a,Bv(new Cv,"type","object",O().Wa,Gd()));return a};function B7a(a,b,c,e){var f=new Bob;f.Dm=a;f.yc=b;f.Qc=c;f.ge=e;BV.prototype.wy.call(f,a,b,c,e);a=Zb(a.ab,n(p3));a.b()?a=w():(a.c(),a=(new A).d("object"));f.xo=a;return f}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({rqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlNodeShapeEmitter",{rqa:1,HD:1,JD:1,f:1,Dz:1,A:1,w:1,q:1,n:1});function wv(){this.aea=this.Q=this.U=this.lP=this.sk=null}wv.prototype=new r;wv.prototype.constructor=wv;d=wv.prototype;d.EGa=function(){return this.sk};d.L=function(){return"RamlTagToReferenceEmitter"};
d.Ob=function(a){var b=this.U.Ib(t(new u,function(a){return function(b){if(Ll(b))return Xp(b.g,Ug().Mc).Ja(a.sk);if(Sl(b)){b=b.ze();var f=a.sk;return null===b?null===f:b.h(f)}throw(new v).d(b);}}(this)));x(b)&&Sl(b.i)?Dv(this.Q,a,this.aea):kq(Cq(),a,this.aea,O().Wa)};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Kqa){var b=this.sk,c=a.sk;(null===b?null===c:b.h(c))?(b=this.lP,c=a.lP,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.sk;case 1:return this.lP;case 2:return this.U;default:throw(new X).e(""+a);}};d.cya=function(a){this.aea=a};d.u=function(){return U(W(),this)};d.pCa=function(){return this.lP};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){return jq(Cq(),this.sk.ha(),n(Fd))};d.$classData=q({Kqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTagToReferenceEmitter",{Kqa:1,f:1,lh:1,Ra:1,hUa:1,A:1,w:1,q:1,n:1});function F7a(){BV.call(this);this.xo=this.ge=this.Qc=this.yc=this.lQ=null}F7a.prototype=new CV;F7a.prototype.constructor=F7a;d=F7a.prototype;d.L=function(){return"RamlTupleShapeEmitter"};d.bD=function(){return this.xo};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Mqa){var b=this.lQ,c=a.lQ;if((null===b?null===c:b.h(c))&&this.yc===a.yc)return b=this.Qc,a=a.Qc,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.lQ;case 1:return this.yc;case 2:return this.Qc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Aba=function(a,b,c,e){this.lQ=a;this.yc=b;this.Qc=c;this.ge=e;BV.prototype.wy.call(this,a,b,c,e);a=Zb(a.ab,n(p3));a.b()?a=w():(a.c(),a=(new A).d("array"));this.xo=a;return this};
d.Ua=function(){var a=H(Wg(),BV.prototype.Ua.call(this)),b=this.lQ.ea;vh(a,(new flb).Aba(this.lQ,this.yc,this.Qc,this.ge));vh(a,Bv(new Cv,Kh((new Cf).e("tuple")),"true",O().ui,Gd()));var c=Dd(b,Wh().rr);c.b()||(c=c.c(),(new A).d(vh(a,Gh(Hh(),"maxItems",c,w(),this.ge))));c=Dd(b,Wh().Bq);c.b()||(c=c.c(),(new A).d(vh(a,Gh(Hh(),"minItems",c,w(),this.ge))));b=Dd(b,Wh().tr);b.b()||(b=b.c(),(new A).d(vh(a,Gh(Hh(),"uniqueItems",b,w(),this.ge))));return a};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Mqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTupleShapeEmitter",{Mqa:1,HD:1,JD:1,f:1,Dz:1,A:1,w:1,q:1,n:1});function C7a(){BV.call(this);this.xo=this.ge=this.Qc=this.yc=this.xa=null}C7a.prototype=new CV;C7a.prototype.constructor=C7a;d=C7a.prototype;d.L=function(){return"RamlUnionShapeEmitter"};d.bD=function(){return this.xo};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.fra){var b=this.xa,c=a.xa;if((null===b?null===c:b.h(c))&&this.yc===a.yc)return b=this.Qc,a=a.Qc,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.yc;case 2:return this.Qc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){if(B(this.xa.ea,lo().Ee).b()&&B(this.xa.ea,Pg().ld).Fa())var a=G();else var a=z(),b=[(new Okb).NK(this.xa,this.yc,this.Qc,this.ge)],a=H(a,(new J).aa(b));var b=BV.prototype.Ua.call(this),c=z();return b.la(a,c.s)};d.y=function(){return Y(this)};d.NK=function(a,b,c,e){this.xa=a;this.yc=b;this.Qc=c;this.ge=e;BV.prototype.wy.call(this,a,b,c,e);this.xo=(new A).d("union");return this};d.M=function(){return Z(this)};
d.$classData=q({fra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlUnionShapeEmitter",{fra:1,HD:1,JD:1,f:1,Dz:1,A:1,w:1,q:1,n:1});function x6a(){this.jc=this.o=this.Ca=this.oa=null}x6a.prototype=new r;x6a.prototype.constructor=x6a;d=x6a.prototype;d.L=function(){return"TraitExtendsEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.pra){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Va=function(a){fKa(this,a)};d.iaa=function(a){var b=new Sjb,c=this.o,e=this.jc;b.ni=a;b.o=c;b.jc=e;return b};
d.Tya=function(a){var b;b=new yfb;var c=z();return a.$b(b,c.s)};d.ZK=function(){return this.oa};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({pra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.TraitExtendsEmitter",{pra:1,f:1,NXa:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function D7(){k6.call(this);this.va=null}D7.prototype=new qlb;D7.prototype.constructor=D7;
function Cob(a,b){var c=t(new u,function(){return function(a){M();var b=(new N).a(),b=(new VO).P((new Q).a(),b);if(!a.b()){a=a.c();var c=vn().Md;(new A).d(Eb(b,c,a))}return b}}(a)),e=yc((new K).Y(a.W),"content");if(!e.b()){var e=e.c(),f=H(Wg(),G()),g=e.i,h=Pc();L(g,h,a.va).Bb.X(t(new u,function(a,b,c){return function(e){var f=ja((new Eh).Vb(e.Da,a.va).Hf().t);return vh(b,(new W3).QK(e.i,f,c,Lx(Jx(),a.va)).Sv())}}(a,f,c)));f.Fa()&&(a=Bn().mf,c=gr(new hr,f,(new N).a()),e=Ke(M(),e),Fh(b,a,c,e))}}
D7.prototype.FL=function(){var a=yc((new K).Y(this.W),"$ref");if(x(a))return ylb(this,a.i,this.eh);if(w()===a){a=Clb(this);Dob(this,a);var b=vn().Vc,c=gr(new hr,C8a(this.W,a.k,this.va).fh(),(new N).a());ff(a,b,c);Cob(this,a);b=B(a.g,Ej().df).G;b.b()||"query"!==b.c()||(b=Ej().bv,dj(a,b,!1),b=Ej().IF,dj(a,b,!1),b=(new K).Y(this.W),c=Ej().bv,c=Ch(Dh(this,c,this.va),a),Bh(b,"allowReserved",$N(c,(new Xi).a())),b=(new K).Y(this.W),c=Ej().IF,c=Ch(Dh(this,c,this.va),a),Bh(b,"allowEmptyValue",$N(c,(new Xi).a())));
b=yc((new K).Y(this.W),"style");if(x(b))b=b.i,c=Ej().eu,ZN($N(Ch(Dh(this,c,this.va),a),(new Xi).a()),b);else if(w()===b){b=B(a.g,Ej().df).G;if(b.b())b=w();else{b=b.c();if("query"===b||"cookie"===b)b="form";else{if("path"!==b&&"header"!==b)throw(new v).d(b);b="simple"}b=(new A).d(b)}b.b()||(b=b.c(),c=Ej().eu,Eb(a,c,b))}else throw(new v).d(b);b=yc((new K).Y(this.W),"explode");if(x(b))b=b.i,c=Ej().hv,ZN($N(Ch(Dh(this,c,this.va),a),(new Xi).a()),b);else if(w()===b)b=B(a.g,Ej().eu).G,b.b()?b=w():(b=b.c(),
b=(new A).d("form"===b)),b.b()||(b=!!b.c(),c=Ej().hv,dj(a,c,b));else throw(new v).d(b);b=(new K).Y(this.W);c=Ej().gp;Bh(b,"deprecated",Ch(Dh(this,c,this.va),a));return Sx(Tx(),a,w())}throw(new v).d(a);};function Dob(a,b){var c=yc((new K).Y(a.W),"schema");if(!c.b()&&(c=c.c(),a=qV(sV(),c,t(new u,function(a,b){return function(c){c=S7(a,c);var e=b.k,l=c.Ub();c.Qb(e,l)}}(a,b)),(new kV).dH("schema",a.va),Lx(Jx(),a.va)).wc(),!a.b())){a=a.c();var e=Ej().Fc,c=Ke(M(),c);(new A).d(Fh(b,e,a,c))}}
D7.prototype.eP=function(a,b,c,e,f){this.va=f;k6.prototype.eP.call(this,a,b,c,e,f);return this};D7.prototype.$classData=q({ZWa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Oas3ParameterParser",{ZWa:1,V7:1,f:1,cXa:1,ig:1,A:1,w:1,q:1,n:1});function XHa(){this.Ma=this.Hr=null}XHa.prototype=new PTa;XHa.prototype.constructor=XHa;d=XHa.prototype;d.L=function(){return"OasParametrizedSecuritySchemeEmitter"};
d.Ob=function(a){var b=Dd(this.Hr.g,rn().li);if(x(b)){b=b.i.t.t;if(OP(b))var b=B(b.g,QP().sr),c=t(new u,function(){return function(a){var b=B(a.g,En().$).G;return IT(new JT,Nh(new Oh,b.b()?null:b.c(),a.E),O().Wa)}}(this)),e=z(),f=b.ka(c,e.s);else f=G();b=a.r;a=a.da;c=(new pq).e(a);R();var e=B(this.Hr.g,rn().$).G,e=e.b()?null:e.c(),g=Th(R(),e),e=(new My).e(c.da),h=e.r,k=e.da,l=(new My).e(k);tq(Cq(),this.Ma.Cb(f),l);R();FC();f=Py(vq(),k);f=lq(0,(new GC).mc(f,l.r),O().Nc);T(h,f);f=e.r;g=[g];if(0>f.x)throw(new X).e("0");
l=g.length|0;h=f.x+l|0;hC(f,h);Ca(f.z,0,f.z,l,f.x);for(var l=f.z,p=l.j.length,y=k=0,I=g.length|0,p=I<p?I:p,I=l.j.length,p=p<I?p:I;k<p;)l.j[y]=g[k],k=1+k|0,y=1+y|0;f.x=h;T(c.r,iC(jC(),e.r));T(b,lq(R(),rq(sq(),c.r,a),O().ua))}else if(w()===b){b=a.r;a=a.da;c=(new pq).e(a);R();e=B(this.Hr.g,rn().$).G;e=e.b()?null:e.c();g=Th(R(),e);e=(new My).e(c.da);f=e.r;l=e.da;h=(new My).e(l);R();FC();l=Py(vq(),l);h=lq(0,(new GC).mc(l,h.r),O().Nc);T(f,h);f=e.r;g=[g];if(0>f.x)throw(new X).e("0");l=g.length|0;h=f.x+l|
0;hC(f,h);Ca(f.z,0,f.z,l,f.x);l=f.z;p=l.j.length;y=k=0;I=g.length|0;p=I<p?I:p;I=l.j.length;for(p=p<I?p:I;k<p;)l.j[y]=g[k],k=1+k|0,y=1+y|0;f.x=h;T(c.r,iC(jC(),e.r));T(b,lq(R(),rq(sq(),c.r,a),O().ua))}else throw(new v).d(b);};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.fsa){var b=this.Hr,c=a.Hr;return(null===b?null===c:b.h(c))?this.Ma===a.Ma:!1}return!1};
d.K=function(a){switch(a){case 0:return this.Hr;case 1:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Hr.E,n(Fd))};d.$classData=q({fsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.OasParametrizedSecuritySchemeEmitter",{fsa:1,mXa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function TV(){this.Q=this.o=this.Ca=this.oa=null}TV.prototype=new r;TV.prototype.constructor=TV;
d=TV.prototype;d.L=function(){return"ParametrizedSecuritiesSchemeEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.xsa){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;return b?this.o===a.o:!1}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Va=function(a){fKa(this,a)};
d.iaa=function(a){return this.Q.of.nda().zf(a,this.o)};d.Tya=function(){var a=this.Ca.t.t.Tb,b;b=new Ofb;var c=z();return a.$b(b,c.s)};d.DE=function(a,b,c,e){this.oa=a;this.Ca=b;this.o=c;this.Q=e;return this};d.ZK=function(){return this.oa};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};
d.$classData=q({xsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.ParametrizedSecuritiesSchemeEmitter",{xsa:1,f:1,NXa:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function fSa(){RV.call(this);this.Eb=this.cE=this.Ma=this.dk=null}fSa.prototype=new RTa;fSa.prototype.constructor=fSa;d=fSa.prototype;d.L=function(){return"Raml08EndPointEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.zsa){var b=this.dk,c=a.dk;(null===b?null===c:b.h(c))&&this.Ma===a.Ma?(b=this.cE,c=a.cE,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.dk;case 1:return this.Ma;case 2:return this.cE;case 3:return this.Eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.$0=function(a,b,c,e,f){this.dk=a;this.Ma=b;this.cE=c;this.Eb=e;RV.prototype.rAa.call(this,b,c,e,f);return this};
d.nE=function(a){var b=RV.prototype.nE.call(this,a),c=Uu(),e=B(this.dk.g,Tm().$f).G,c=Aka(c,e.b()?null:e.c());a=Dd(a,Tm().Pn);if(!a.b()){a=a.c();if(a.t.t.Tb.Cd(t(new u,function(){return function(a){return!Yh(a.ha(),n(uQ))}}(this)))){var e=G(),e=(new Qd).d(e),f=G(),f=(new Qd).d(f);a.t.t.Tb.X(t(new u,function(a,b,c,e){return function(a){if(dn(a)){var f=B(a.g,Ej().$).G;b.Ja(f.b()?null:f.c())?f=!0:(f=B(a.g,Ej().Fw).G,f=b.Ja(f.b()?null:f.c()));if(f){f=c.ta;a=H(z(),(new J).aa([a]));var g=z();c.ta=f.la(a,
g.s)}else f=e.ta,a=H(z(),(new J).aa([a])),g=z(),e.ta=f.la(a,g.s)}else throw(new v).d(a);}}(this,c,f,e)));c=Tm().Pn;f=gr(new hr,f.ta,(new N).a());vh(b,(new gV).Qq("uriParameters",Rh(new Sh,c,Ph(new Qh,f,a.t.E)),this.Ma,this.Eb,this.Q));c=Tm().Pn;e=gr(new hr,e.ta,(new N).a());a=vh(b,(new gV).Qq("baseUriParameters",Rh(new Sh,c,Ph(new Qh,e,a.t.E)),this.Ma,this.Eb,this.Q))}else a=void 0;(new A).d(a)}return b};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({zsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08EndPointEmitter",{zsa:1,vXa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function jSa(){UV.call(this);this.B_=this.Eb=this.Ma=this.Cs=null}jSa.prototype=new VTa;jSa.prototype.constructor=jSa;d=jSa.prototype;d.L=function(){return"Raml08OperationEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Csa){var b=this.Cs,c=a.Cs;if((null===b?null===c:b.h(c))&&this.Ma===a.Ma)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Cs;case 1:return this.Ma;case 2:return this.Eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.OK=function(a,b,c,e){this.Cs=a;this.Ma=b;this.Eb=c;UV.prototype.OK.call(this,a,b,c,e);this.B_="baseUriParameters";return this};d.$classData=q({Csa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08OperationEmitter",{Csa:1,zXa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function cSa(){XV.call(this);this.ud=this.Eb=this.Ma=this.dq=null}cSa.prototype=new WTa;cSa.prototype.constructor=cSa;d=cSa.prototype;d.L=function(){return"Raml08ParameterEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Dsa){var b=this.dq,c=a.dq;if((null===b?null===c:b.h(c))&&this.Ma===a.Ma)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.dq;case 1:return this.Ma;case 2:return this.Eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fK=function(a,b){a=Dd(a,Ej().$).c();IT(new JT,a.t.t,O().Wa).Ob(b)};
d.a1=function(a,b,c,e){this.dq=a;this.Ma=b;this.Eb=c;this.ud=e;XV.prototype.iBa.call(this,a,0,c,e);return this};
d.e0=function(a){var b=B(this.dq.g,Ej().Fc),c=Xh(b)?function(a,b){return function(c){var e=c.r;c=c.da;var l=(new pq).e(c),p=H(Wg(),G()),y=iTa(jTa(),b,a.Ma,0,a.ud).Tw;a:{if(Ep(y)){var I=y.i;if(null!==I){y=new OV;y.EM=I;vh(p,y);break a}}if(Hp(y)&&(I=y.i,null!==I)){Er(p,I);break a}throw(new v).d(y);}y=Dd(a.dq.g,Ej().kj);y=y.b()||Yh(y.c().t.E,n(p3))?y:w();y.b()||(y=y.c(),(new A).d(vh(p,Gh(Hh(),"required",y,w(),a.ud))));iq(Cq(),a.Ma.Cb(p),l);T(e,lq(R(),rq(sq(),l.r,c),O().ua))}}(this,b):function(a,b){return function(a){b.Ob(a)}}(this,
(new Z5).DK(b,"Cannot emit "+ka(b).u()+" type of shape in raml 08")),e=(new My).e(a.da);this.fK(this.dq.g,e);b=(new My).e(a.da);c(b);c=UQ(e.r,0);qq(a,c,UQ(b.r,0))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Dsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08ParameterEmitter",{Dsa:1,AXa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function RO(){YV.call(this);this.Hw=this.kc=null;this.xg=!1}RO.prototype=new XTa;RO.prototype.constructor=RO;d=RO.prototype;
d.BC=function(){var a=(new Eh).Vb(this.kc.Da,this.m),b=tra(vra(),this.kc),c=Ej().$,e=a.Hf(),b=ff(b,c,e),c=a.Hf().u(),e=Ej().Fw,b=Eb(b,e,c);this.Hw.R(b);c=this.kc.i.pb().nb;if(O().yd===c){if(c=RU(SU(),this.kc,t(new u,function(a,b){return function(a){M();var c=(new N).a();a=Ue(a,"schema",c);var c=b.k,e=a.Ub();return a.Qb(c,e)}}(this,b)),TU(!1,!1),tO(),this.m).wc(),!c.b()){c=c.c();oB(kB(),c,b.k,w()).ha().Wb((new GO).a());var e=Ej().Fc,f=Ke(M(),this.kc);Fh(b,e,c,f)}}else c=HU(IU(),this.kc,t(new u,function(a,
b,c){return function(a){var e=b.Hf().u();M();var f=(new N).a();a=Ue(a,e,f);e=c.k;f=a.Ub();return a.Qb(e,f)}}(this,a,b)),!1,tO(),this.m).wc(),c.b()||(c=c.c(),c=oB(kB(),c,b.k,w()),e=Ej().Fc,ff(b,e,c));c=Hc(Ic(this.kc.i),Pc());x(c)&&(c=(new K).Y(c.i),e=Ej().kj,e=Ch(Dh(this,e,this.m),b),Bh(c,"required",$N(e,(new Xi).a())));Dd(b.g,Ej().kj).b()&&(c=Ej().kj,dj(b,c,!1));c=a.Hf().u();this.xg&&re(ta(),c,"?")&&(e=Ej().Ew,dj(b,e,!0),c=(new ph).e(c),c=JO(c,"?"),e=Ej().$,a=Nh(new Oh,c,a.Hf().E),a=ff(b,e,a),e=Ej().Fw,
Eb(a,e,c));return b};d.L=function(){return"Raml08ParameterParser"};d.$m=function(a,b,c,e){this.kc=a;this.Hw=b;this.xg=c;YV.prototype.vBa.call(this,0,0,e);return this};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Esa){if(this.kc===a.kc)var b=this.Hw,c=a.Hw,b=null===b?null===c:b.h(c);else b=!1;return b?this.xg===a.xg:!1}return!1};
d.K=function(a){switch(a){case 0:return this.kc;case 1:return this.Hw;case 2:return this.xg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.kc)),a=zI().Ga(a,yI(zI(),this.Hw)),a=zI().Ga(a,this.xg?1231:1237);return zI().Wd(a,3)};d.M=function(){return Z(this)};d.$classData=q({Esa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08ParameterParser",{Esa:1,BXa:1,f:1,nr:1,ig:1,A:1,w:1,q:1,n:1});
function dSa(){this.Q=this.U=this.o=this.Ca=this.oa=null}dSa.prototype=new r;dSa.prototype.constructor=dSa;d=dSa.prototype;d.L=function(){return"Raml08PayloadsEmitter"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Hsa){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;if(b&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;case 3:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=(new My).e(a.da);s8a(new q3,this.oa,O().Wa).Ob(b);var c=(new My).e(a.da),e=this.Ca.t.t.Tb,f=(new Qfb).sba(this),g=z(),e=e.$b(f,g.s);if(e.b())R(),e=sq().Td,R(),e=lq(R(),e,O().ua),T(c.r,e);else a:{f=t(new u,function(a){return function(b){var c=a.o,e=a.Q,f=new Y8a;f.fe=b;f.o=c;f.dya=e;var g=!1,h=null;b=Wa().Ia(B(b.g,vn().Fc));a:{if(x(b)){var g=!0,h=b,k=h.i;if(null!==k&&Yh(k.ha(),n(uQ))){c=G();break a}}if(g&&(k=h.i,bi(k)&&!yb(k).qa()&&Zb(k.ab,n(Zh)).b())){c=H(z(),(new J).aa([hmb(k,
c,e)]));break a}if(g&&(k=h.i,Xh(k))){c=iTa(jTa(),k,c,H(z(),G()),e).Ua();break a}if(g)e=h.i,c=z(),e=[(new Z5).DK(e,"Cannot emit schema "+ka(e).u()+" in raml 08 body request")],c=H(c,(new J).aa(e));else if(w()===b)c=z(),e=[(new QV).rba(f)],c=H(c,(new J).aa(e));else throw(new v).d(b);}f.Jfa=c;return f.Ua()}}(this)),g=z(),e=e.md(f,g.s),z();f=(new A).d(e);if(null!==f.i&&0===f.i.Ge(1)&&(f=f.i.jb(0),Fq(f))){f.Ob(c);break a}if(e.Ng(t(new u,function(){return function(a){return Eq(a)}}(this)))){var f=c.r,g=
c.da,h=(new pq).e(g),k=Cq(),l=this.o,p=(new Pfb).sba(this),y=z();iq(k,l.Cb(e.$b(p,y.s)),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua))}else throw Lb(Mb(),(new Nb).e("IllegalTypeDeclarations found: "+e));}b=UQ(b.r,0);qq(a,b,UQ(c.r,0))};d.i1=function(a,b,c,e,f){this.oa=a;this.Ca=b;this.o=c;this.U=e;this.Q=f;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};
d.$classData=q({Hsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08PayloadsEmitter",{Hsa:1,f:1,FXa:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function iSa(){$V.call(this);this.Eb=this.Ma=this.KC=null}iSa.prototype=new aUa;iSa.prototype.constructor=iSa;d=iSa.prototype;d.L=function(){return"Raml08ResponseEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Jsa){var b=this.KC,c=a.KC;if((null===b?null===c:b.h(c))&&this.Ma===a.Ma)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.KC;case 1:return this.Ma;case 2:return this.Eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.VO=function(a,b,c,e){this.KC=a;this.Ma=b;this.Eb=c;$V.prototype.VO.call(this,a,b,c,e);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Jsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml08ResponseEmitter",{Jsa:1,JXa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function MU(){RV.call(this);this.Eb=this.cE=this.Ma=this.dk=null}MU.prototype=new RTa;MU.prototype.constructor=MU;d=MU.prototype;d.L=function(){return"Raml10EndPointEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Msa){var b=this.dk,c=a.dk;(null===b?null===c:b.h(c))&&this.Ma===a.Ma?(b=this.cE,c=a.cE,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.dk;case 1:return this.Ma;case 2:return this.cE;case 3:return this.Eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.$0=function(a,b,c,e,f){this.dk=a;this.Ma=b;this.cE=c;this.Eb=e;RV.prototype.rAa.call(this,b,c,e,f);return this};
d.nE=function(a){var b=RV.prototype.nE.call(this,a),c=Dd(a,Tm().mf);c.b()||(c=c.c(),(new A).d(vh(b,(new LU).i1(Kh((new Cf).e("payloads")),c,this.Ma,this.Eb,this.Q))));a=Dd(a,Tm().Pn);if(!a.b()){a=a.c();if(a.t.t.Tb.Cd(t(new u,function(){return function(a){return!Yh(a.ha(),n(uQ))}}(this)))){var e=a.t.t.Tb.jn(t(new u,function(){return function(a){a=B(a.g,Ej().df);return Xb(a,"path")}}(this)));if(null===e)throw(new v).d(e);var c=e.pa(),e=e.Ba(),f=Kh((new Cf).e("parameters")),g=this.Ma,h=this.Eb,k=G(),
l=this.Q,l=(new tU).Ci(l.jc,l.Sy,(new ob).a());Er(b,E8a(D8a(new C3,f,e,g,k,h,l)));c.Fa()?(e=Tm().Pn,a=Rh(new Sh,e,Ph(new Qh,gr(new hr,c,a.t.t.ha()),a.t.E)),a=vh(b,(new gV).Qq("uriParameters",a,this.Ma,this.Eb,this.Q))):a=void 0}else a=void 0;(new A).d(a)}return b};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Msa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml10EndPointEmitter",{Msa:1,vXa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function NU(){UV.call(this);this.B_=this.ud=this.Eb=this.Ma=this.Cs=null}NU.prototype=new VTa;NU.prototype.constructor=NU;d=NU.prototype;d.L=function(){return"Raml10OperationEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Osa){var b=this.Cs,c=a.Cs;if((null===b?null===c:b.h(c))&&this.Ma===a.Ma)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Cs;case 1:return this.Ma;case 2:return this.Eb;default:throw(new X).e(""+a);}};
d.lK=function(a){a=UV.prototype.lK.call(this,a);var b=H(Wg(),G()),c=Wa().Ia(B(this.Cs.g,Zm().kp));if(!c.b()){var c=c.c(),e=Dd(c.g,yn().Dq);if(!e.b()){var f=e.c(),e=!1,g=null,f=Wa().Ia(f.t.t);a:{if(x(f)&&(e=!0,g=f,f=g.i,Xh(f))){vh(b,Vkb(new Q7,f,this.Ma,this.Eb,wU(function(a){return function(b,c,e,f,g){return(new JU).Cr(b,c,e,f,g,a.ud)}}(this)),this.ud));break a}if(e){var f=g.i,e=this.ud.jc,g=Bc().nh,c=c.k,h=w(),k=Zb(f.ha(),n(Fd)),f=f.Yb();e.Hc(g.k,c,h,"Cannot emit non WebApi Shape",k,xc().tb,f)}}}}b=
Er((new $g).a(),b);a=a.td();b=Er(b,a);a=Mw(this.Cs,this.Ma,this.ud).Ua();b=Er((new $g).a(),b);a=a.td();return Er(b,a)};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.OK=function(a,b,c,e){this.Cs=a;this.Ma=b;this.Eb=c;this.ud=e;UV.prototype.OK.call(this,a,b,c,e);this.B_=Kh((new Cf).e("baseUriParameters"));return this};
d.$classData=q({Osa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml10OperationEmitter",{Osa:1,zXa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function KU(){XV.call(this);this.ud=this.Eb=this.Ma=this.dq=null}KU.prototype=new WTa;KU.prototype.constructor=KU;d=KU.prototype;d.L=function(){return"Raml10ParameterEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Psa){var b=this.dq,c=a.dq;if((null===b?null===c:b.h(c))&&this.Ma===a.Ma)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.dq;case 1:return this.Ma;case 2:return this.Eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.fK=function(a,b){var c=Dd(a,Ej().kj);(c.b()?0:Yh(c.c().t.E,n(p3)))?c=!1:(c=B(this.dq.g,Ej().kj),c=!gd(c));c?(a=B(this.dq.g,Ej().$).G,IT(new JT,Nh(new Oh,(a.b()?null:a.c())+"?",(new N).a()),O().Wa).Ob(b)):(a=Dd(a,Ej().$).c(),IT(new JT,a.t.t,O().Wa).Ob(b))};d.a1=function(a,b,c,e){this.dq=a;this.Ma=b;this.Eb=c;this.ud=e;XV.prototype.iBa.call(this,a,0,c,e);return this};d.y=function(){return Y(this)};
d.e0=function(a){var b=this.dq.g;if(Wa().Ia(B(this.dq.g,Ej().Fc)).qa()&&Yh(B(this.dq.g,Ej().Fc).ha(),n(uQ))){var c=(new My).e(a.da);this.fK(b,c);var e=(new My).e(a.da);kq(Cq(),e,"",O().yd);c=UQ(c.r,0);qq(a,c,UQ(e.r,0))}else{e=(new My).e(a.da);this.fK(b,e);var c=(new My).e(a.da),f=c.r,g=c.da,h=(new pq).e(g),k=H(Wg(),G()),l=Dd(b,Ej().fb);l.b()||(l=l.c(),(new A).d(vh(k,Gh(Hh(),"description",l,w(),this.ud))));l=Dd(b,Ej().kj);l=l.b()||Yh(l.c().t.E,n(p3))?l:w();l.b()||(l=l.c(),(new A).d(vh(k,Gh(Hh(),"required",
l,w(),this.ud))));var p=!1,y=null,I=Wa().Ia(B(this.dq.g,Ej().Fc));a:{if(x(I)&&(p=!0,y=I,l=y.i,Xh(l)&&yb(l).qa())){p=this.Ma;y=z();I=[th().fb];l=d3(new Z2,l,p,H(y,(new J).aa(I)),this.Eb,this.ud).Ua().pc();l.b()||(l=l.c(),vh(k,Vw(new Ww,"type",l,O().Wa,Gd())));break a}if(p&&(l=y.i,Xh(l))){p=this.Ma;y=z();I=[th().fb];Er(k,d3(new Z2,l,p,H(y,(new J).aa(I)),this.Eb,this.ud).Yw());break a}if(p){var E=y.i,l=this.ud.jc,p=Bc().nh,y=E.k,I=w(),V=Zb(E.ha(),n(Fd)),E=E.Yb();l.Hc(p.k,y,I,"Cannot emit parameter for a non WebAPI shape",
V,xc().tb,E)}else if(w()===I)Er(k,Mw(this.dq,this.Ma,this.ud).Ua());else throw(new v).d(I);}l=Wa().Ia(uj(this.dq.g,Ej().df));if(x(l))if(l=Zb(l.i.E,n(p3)),x(l))b=Dd(b,Ej().df),b.b()||(b=b.c(),(new A).d(vh(k,Ih(new Jh,Kh((new Cf).e("binding")),b,w()))));else if(w()!==l)throw(new v).d(l);iq(Cq(),this.Ma.Cb(k),h);T(f,lq(R(),rq(sq(),h.r,g),O().ua));e=UQ(e.r,0);qq(a,e,UQ(c.r,0))}};d.M=function(){return Z(this)};
d.$classData=q({Psa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml10ParameterEmitter",{Psa:1,AXa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function QU(){YV.call(this);this.Hw=this.kc=null;this.xg=!1}QU.prototype=new XTa;QU.prototype.constructor=QU;d=QU.prototype;
d.BC=function(){var a=(new Eh).Vb(this.kc.Da,this.m),b=tra(vra(),this.kc),c=Ej().$,e=a.Hf(),b=ff(b,c,e),c=a.Hf().u(),e=Ej().Fw,b=Eb(b,e,c);this.Hw.R(b);c=this.kc.i;e=Pc();c=sv(c,e);if(Hp(c)){var c=c.i,e=(new K).Y(c),f=Ej().kj,f=Ch(Dh(this,f,this.m),b);Bh(e,"required",Uh($N(f,(new Xi).a())));e=(new K).Y(c);f=Ej().fb;Bh(e,"description",Uh(Ch(Dh(this,f,this.m),b)));var e=(new K).Y(c),f=Kh((new Cf).e("binding")),g=Ej().df,g=Ch(Dh(this,g,this.m),b);Bh(e,f,$N(g,(new Xi).a()));e=RU(SU(),this.kc,t(new u,
function(a,b){return function(a){M();var c=(new N).a();a=Ue(a,"schema",c);var c=b.k,e=a.Ub();return a.Qb(c,e)}}(this,b)),TU(!1,!0),tO(),this.m).wc();e.b()||(f=e.c(),e=Ej().Fc,f=oB(kB(),f,b.k,w()),g=Ke(M(),this.kc),Fh(b,e,f,g));jx(new kx,b,c,G(),this.m).Pc()}else if(c=this.m.Oo(this.kc.i),c=Ep(c)?Or():Pr(),e=this.kc.i.pb().nb,O().yd===e)c=RU(SU(),this.kc,t(new u,function(a,b){return function(a){M();var c=(new N).a();a=Ue(a,"schema",c);var c=b.k,e=a.Ub();return a.Qb(c,e)}}(this,b)),TU(!1,!1),tO(),this.m).wc(),
c.b()||(c=c.c(),oB(kB(),c,b.k,w()).ha().Wb((new GO).a()),e=Ej().Fc,f=Ke(M(),this.kc),Fh(b,e,c,f));else{var e=!1,f=null,g=this.kc.i,h=zc(),g=sv(g,h);a:{if(Hp(g)&&(e=!0,f=g,g=f.i,vIa(this.m.le(),g.ya,c).qa())){b=vIa(this.m.le(),g.ya,c).c().gk(g.ya,Ke(M(),this.kc));c=Ej().$;e=a.Hf();b=ff(b,c,e);break a}if(e&&(g=f.i,cz(this.m.le(),g.ya,c,w()).qa())){c=cz(this.m.le(),g.ya,c,(new A).d(t(new u,function(a,b){return function(c){var e=a.m,f=rh().vz,g=b.k,h=a.kc.i,k=w();Cc(e,f,g,k,c,h.ga)}}(this,b)))).c().gk(g.ya,
Ke(M(),this.kc));M();e=(new N).a();c=Ue(c,"schema",e);e=b.k;f=c.Ub();c=c.Qb(e,f);e=Ej().Fc;b=ff(b,e,c);break a}if(e&&(c=f.i,Wca(c.ya,!0))){c=Uca(c.ya);M();e=(new N).a();c=Ue(c,"schema",e);e=b.k;f=c.Ub();c=c.Qb(e,f);e=Ej().Fc;b=ff(b,e,c);break a}if(e&&(c=f.i,Sca(c.ya))){e=t(new u,function(a,b){return function(a){M();var c=(new N).a();a=Ue(a,"schema",c);var c=b.k,e=a.Ub();return a.Qb(c,e)}}(this,b));f=w();c=Xy(e,0,f,!1,this.m).EP(c.ya);if(x(c))c=c.i,e=Ej().Fc,b=ff(b,e,c);else{var c=this.m,e=Bc().iu,
f=b.k,g="Cannot parse type expression for unresolved parameter '"+B(b.g,Ej().$)+"'",h=this.kc.i,k=w();Cc(c,e,f,k,g,h.ga)}break a}c=this.m;e=Bc().iu;f=b.k;g=this.kc.i;h=w();Cc(c,e,f,h,"Cannot declare unresolved parameter",g.ga)}}Dd(b.g,Ej().kj).b()&&(c=a.Hf().u(),e=!re(ta(),c,"?"),e||(c=(new ph).e(c),c=JO(c,"?")),f=Ej().kj,dj(b,f,e),e=Ej().$,a=Nh(new Oh,c,a.Hf().E),a=ff(b,e,a),e=Ej().Fw,Eb(a,e,c));return b};d.L=function(){return"Raml10ParameterParser"};
d.$m=function(a,b,c,e){this.kc=a;this.Hw=b;this.xg=c;YV.prototype.vBa.call(this,0,0,e);return this};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Qsa){if(this.kc===a.kc)var b=this.Hw,c=a.Hw,b=null===b?null===c:b.h(c);else b=!1;return b?this.xg===a.xg:!1}return!1};d.K=function(a){switch(a){case 0:return this.kc;case 1:return this.Hw;case 2:return this.xg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.kc)),a=zI().Ga(a,yI(zI(),this.Hw)),a=zI().Ga(a,this.xg?1231:1237);return zI().Wd(a,3)};d.M=function(){return Z(this)};d.$classData=q({Qsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml10ParameterParser",{Qsa:1,BXa:1,f:1,nr:1,ig:1,A:1,w:1,q:1,n:1});function LU(){this.Q=this.U=this.o=this.Ca=this.oa=null}LU.prototype=new r;LU.prototype.constructor=LU;d=LU.prototype;d.L=function(){return"Raml10PayloadsEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Usa){if(this.oa===a.oa)var b=this.Ca,c=a.Ca,b=null===b?null===c:b.h(c);else b=!1;if(b&&this.o===a.o)return b=this.U,a=a.U,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.oa;case 1:return this.Ca;case 2:return this.o;case 3:return this.U;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=Eob(this,this.Ca,this.o,this.U);a:{z();var c=(new A).d(b);if(null!==c.i&&0===c.i.Ge(1)){var e=c.i.jb(0);if(Fq(e)){R();var c=this.oa,f=Th(R(),c),c=(new My).e(a.da);e.Ob(c);b=c.r;e=[f];if(0>b.x)throw(new X).e("0");var g=e.length|0,f=b.x+g|0;hC(b,f);Ca(b.z,0,b.z,g,b.x);for(var g=b.z,h=g.j.length,k=0,l=0,p=e.length|0,h=p<h?p:h,p=g.j.length,h=h<p?h:p;k<h;)g.j[l]=e[k],k=1+k|0,l=1+l|0;b.x=f;T(a.r,iC(jC(),c.r));break a}}if(b.Ng(t(new u,function(){return function(a){return Eq(a)}}(this)))){R();
c=this.oa;e=Th(R(),c);c=(new My).e(a.da);f=c.r;g=c.da;k=(new pq).e(g);l=Cq();h=new Rfb;p=z();iq(l,b.$b(h,p.s),k);T(f,lq(R(),rq(sq(),k.r,g),O().ua));b=c.r;e=[e];if(0>b.x)throw(new X).e("0");g=e.length|0;f=b.x+g|0;hC(b,f);Ca(b.z,0,b.z,g,b.x);g=b.z;h=g.j.length;l=k=0;p=e.length|0;h=p<h?p:h;p=g.j.length;for(h=h<p?h:p;k<h;)g.j[l]=e[k],k=1+k|0,l=1+l|0;b.x=f;T(a.r,iC(jC(),c.r))}else throw Lb(Mb(),(new Nb).e("IllegalTypeDeclarations found: "+b));}};
d.i1=function(a,b,c,e,f){this.oa=a;this.Ca=b;this.o=c;this.U=e;this.Q=f;return this};function Eob(a,b,c,e){b=b.t.t.Tb;a=t(new u,function(a,b,c){return function(e){return(new a9a).Bba(e,b,c,a.Q).Ua()}}(a,c,e));e=z();return c.Cb(b.md(a,e.s))}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Ca.t.E,n(Fd))};d.$classData=q({Usa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml10PayloadsEmitter",{Usa:1,f:1,FXa:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});
function xSa(){$V.call(this);this.ud=this.Eb=this.Ma=this.KC=null}xSa.prototype=new aUa;xSa.prototype.constructor=xSa;d=xSa.prototype;d.L=function(){return"Raml10ResponseEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Wsa){var b=this.KC,c=a.KC;if((null===b?null===c:b.h(c))&&this.Ma===a.Ma)return b=this.Eb,a=a.Eb,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.KC;case 1:return this.Ma;case 2:return this.Eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.VO=function(a,b,c,e){this.KC=a;this.Ma=b;this.Eb=c;this.ud=e;$V.prototype.VO.call(this,a,b,c,e);return this};
d.nE=function(a){var b=H(Wg(),G()),c=Dd(a,Bn().Vc);c.b()||(c=c.c(),(new A).d(vh(b,ITa(LTa(),Kh((new Cf).e("examples")),c,this.Ma,this.ud))));Er(b,Mw(this.KC,this.Ma,this.ud).Ua());a=$V.prototype.nE.call(this,a);return Er(Er((new $g).a(),a),b)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Wsa:0},!1,"amf.plugins.document.webapi.parser.spec.domain.Raml10ResponseEmitter",{Wsa:1,JXa:1,f:1,ib:1,Ra:1,A:1,w:1,q:1,n:1});function ila(){this.ud=this.Ma=this.Hr=null}
ila.prototype=new PTa;ila.prototype.constructor=ila;d=ila.prototype;d.L=function(){return"RamlParametrizedSecuritySchemeEmitter"};
d.Ob=function(a){var b=!1,c=Dd(this.Hr.g,rn().li);a:if(x(c)){var e=c.i,b=a.r;a=a.da;c=(new pq).e(a);R();var f=B(this.Hr.g,rn().$).G,f=f.b()?null:f.c(),g=Th(R(),f),f=(new My).e(c.da),h=f.r,k=f.da,l=(new pq).e(k);iq(Cq(),this.Ma.Cb((new k3).XG(e,this.Ma,this.ud).Ua()),l);T(h,lq(R(),rq(sq(),l.r,k),O().ua));e=f.r;g=[g];if(0>e.x)throw(new X).e("0");k=g.length|0;h=e.x+k|0;hC(e,h);Ca(e.z,0,e.z,k,e.x);for(var k=e.z,p=k.j.length,y=l=0,I=g.length|0,p=I<p?I:p,I=k.j.length,p=p<I?p:I;l<p;)k.j[y]=g[l],l=1+l|0,
y=1+y|0;e.x=h;T(c.r,iC(jC(),f.r));T(b,lq(R(),rq(sq(),c.r,a),O().ua))}else{if(w()===c&&(b=!0,Yh(this.Hr.E,n(LKa)))){b=lq(R(),nq().yd,O().yd);T(a.r,b);break a}if(b)b=B(this.Hr.g,rn().$).G,a.$s(b.b()?null:b.c());else throw(new v).d(c);}};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.eta){var b=this.Hr,c=a.Hr;return(null===b?null===c:b.h(c))?this.Ma===a.Ma:!1}return!1};
d.K=function(a){switch(a){case 0:return this.Hr;case 1:return this.Ma;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.Hr.E,n(Fd))};d.$classData=q({eta:0},!1,"amf.plugins.document.webapi.parser.spec.domain.RamlParametrizedSecuritySchemeEmitter",{eta:1,mXa:1,f:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});
function iB(){this.E=this.g=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}iB.prototype=new r;iB.prototype.constructor=iB;function Fob(){}d=Fob.prototype=iB.prototype;d.Ub=function(){return H(z(),G())};d.Zu=function(a){this.Nk=a};d.Qb=function(a){return cj(this,a)};d.es=function(){};d.It=function(a){this.Zi=a};d.Uc=function(a){return Te(this,a)};d.El=function(){M();var a=(new N).a(),b=(new Q).a(),a=(new iB).P(b,a);return Te(a,this.k)};d.rc=function(){return lh()};
d.Mq=function(){return H(z(),G())};d.ha=function(){return this.E};d.lu=function(a){this.Zg=a};d.Nt=function(){return this.Zg};d.Nd=function(){var a=B(this.g,lh().$).G,a=a.b()?"default-example":a.c(),a=(new Cf).e(a);return"/example/"+Gj(a.zd)};d.Hu=function(){};d.Is=function(a,b,c,e){return fL(this,a,b,c,e)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return $h(this)};d.gk=function(a,b){return gL(this,a,b)};
d.Qk=function(){return qd(function(){return function(a,b){return(new iB).P(a,b)}}(this))};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.Ht=function(a){this.Jk=a};d.Ch=function(){return lh().$};d.Up=function(a){return Px(this,a)};d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};d.Te=function(a){this.k=a};d.ku=function(a){this.zk=a};d.P=function(a,b){this.g=a;this.E=b;hL(this);return this};
function Zn(a){return!!(a&&a.$classData&&a.$classData.v.f8)}d.$classData=q({f8:0},!1,"amf.plugins.domain.shapes.models.Example",{f8:1,f:1,Jh:1,de:1,Wc:1,Rc:1,Pi:1,yw:1,yVa:1});function L2(){this.k=this.mb=this.E=this.g=null;this.ma=!1}L2.prototype=new r;L2.prototype.constructor=L2;d=L2.prototype;d.L=function(){return"PropertyDependencies"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.g8?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return jo()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Nd=function(){return"/dependency"};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};
d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};d.$classData=q({g8:0},!1,"amf.plugins.domain.shapes.models.PropertyDependencies",{g8:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function s3(){this.k=this.mb=this.E=this.g=null;this.ma=!1}s3.prototype=new r;s3.prototype.constructor=s3;d=s3.prototype;d.L=function(){return"XMLSerializer"};
d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.h8?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return ho()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){return"/xml"};d.bf=function(){return this.ma?this.mb:this.Hd()};
d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};d.$classData=q({h8:0},!1,"amf.plugins.domain.shapes.models.XMLSerializer",{h8:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function G1(){this.t=this.ba=this.cc=null}G1.prototype=new r;G1.prototype.constructor=G1;d=G1.prototype;d.L=function(){return"ParameterBindingInBodyLexicalInfo"};
d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.$va){var b=this.cc;a=a.cc;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.cc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.Ui=function(a){this.cc=a;this.ba="parameter-binding-in-body-lexical-info";this.t=a.u();return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
var bmb=q({$va:0},!1,"amf.plugins.domain.webapi.annotations.ParameterBindingInBodyLexicalInfo",{$va:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});G1.prototype.$classData=bmb;function PO(){this.Rd=this.t=this.ba=this.Eh=null}PO.prototype=new r;PO.prototype.constructor=PO;d=PO.prototype;d.L=function(){return"ParentEndPoint"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.awa?this.Eh===a.Eh:!1};
d.K=function(a){switch(a){case 0:return this.Eh;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.e=function(a){this.Eh=a;this.ba="parent-end-point";this.t=a;this.Rd=w();return this};d.y=function(){return Y(this)};function bEa(a,b){a.Rd.b()&&(b=b.Ta(a.Eh),x(b)&&(b=b.i,Um(b)&&(a.Rd=(new A).d(b))))}d.M=function(){return Z(this)};var rhb=q({awa:0},!1,"amf.plugins.domain.webapi.annotations.ParentEndPoint",{awa:1,f:1,mh:1,lf:1,nNa:1,A:1,w:1,q:1,n:1});
PO.prototype.$classData=rhb;function ix(){this.t=this.ba=this.cc=null}ix.prototype=new r;ix.prototype.constructor=ix;d=ix.prototype;d.L=function(){return"TypePropertyLexicalInfo"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.bwa){var b=this.cc;a=a.cc;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.cc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};
d.Ui=function(a){this.cc=a;this.ba="type-property-lexical-info";this.t=a.u();return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var Av=q({bwa:0},!1,"amf.plugins.domain.webapi.annotations.TypePropertyLexicalInfo",{bwa:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});ix.prototype.$classData=Av;function Gob(){this.ke=this.Hb=this.Jc=this.$=this.fb=this.Aa=this.g=this.ja=this.oa=this.oc=this.Wh=this.mf=this.Pn=this.xk=this.Mp=this.$f=null;this.ma=0}Gob.prototype=new r;
Gob.prototype.constructor=Gob;d=Gob.prototype;d.QR=function(){0===(1&this.ma)<<24>>24&&(this.Jc=wPa(),this.ma=(1|this.ma)<<24>>24);return this.Jc};
d.a=function(){Hob=this;Iq(this);cT(this);Wb(this);Ob(this);var a=Pb(),b=C().bb;this.$f=Rb(new Sb,a,D(new F,b,"path"),Tb(new Ub,Vb().bb,"path","Path template for an endpoint",G()));a=Pb();b=C().dc;this.Mp=Rb(new Sb,a,D(new F,b,"summary"),Tb(new Ub,Vb().dc,"summary","Human readable short description of the endpoint",G()));a=(new Ki).Ld(Zm());b=C().bb;this.xk=Rb(new Sb,a,D(new F,b,"supportedOperation"),Tb(new Ub,Vb().bb,"supported operation","Operations supported by an endpoint",G()));a=(new Ki).Ld(Ej());
b=C().bb;this.Pn=Rb(new Sb,a,D(new F,b,"parameter"),Tb(new Ub,Vb().bb,"parameter","Additional data required or returned by an operation",G()));a=(new Ki).Ld(vn());b=C().bb;this.mf=Rb(new Sb,a,D(new F,b,"payload"),Tb(new Ub,Vb().bb,"payload","Main payload data required or returned by an operation",G()));a=(new Ki).Ld(fn());b=C().bb;this.Wh=Rb(new Sb,a,D(new F,b,"server"),Tb(new Ub,Vb().bb,"servers","Specific information about the server where the endpoint is accessible",G()));a=(new Ki).Ld(rn());b=
C().oc;this.oc=Rb(new Sb,a,D(new F,b,"security"),Tb(new Ub,Vb().oc,"security","Security information associated to the endpoint",G()));this.oa=this.$f;a=C().bb;a=D(new F,a,"EndPoint");b=Lc().ja;this.ja=oz(new pz,a,b);Di();var a=(new J).aa([this.$f,this.$,this.Mp,this.fb,this.xk,this.Pn,this.mf,this.Wh,this.oc]),b=Di().s,a=Ei(a,b),b=Lc().g,c=Di();this.g=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().bb,"EndPoint","EndPoint in the API holding a number of executable operations",G());return this};
d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.wi=function(){return 0===(1&this.ma)<<24>>24?this.QR():this.Jc};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a(),b=(new Q).a();return(new aC).P(b,a)};d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};d.$classData=q({M0a:0},!1,"amf.plugins.domain.webapi.metamodel.EndPointModel$",{M0a:1,f:1,se:1,Oc:1,ic:1,Xc:1,Kj:1,yq:1,ul:1});var Hob=void 0;
function Tm(){Hob||(Hob=(new Gob).a());return Hob}function Iob(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.$=this.fb=this.Aa=this.g=this.ja=this.cG=this.tN=this.rJ=this.lN=this.$F=this.o9=null;this.ma=0}Iob.prototype=new r;Iob.prototype.constructor=Iob;d=Iob.prototype;d.pp=function(a){this.ef=a};
d.a=function(){Job=this;Iq(this);cT(this);YK(this);Wb(this);Ob(this);var a=Pb(),b=C().bb;this.o9=Rb(new Sb,a,D(new F,b,"template"),Tb(new Ub,Vb().bb,"template","URL template for a templated link",G()));a=Pb();b=C().bb;this.$F=Rb(new Sb,a,D(new F,b,"operationId"),Tb(new Ub,Vb().bb,"operation ID","Identifier of the target operation",G()));a=Pb();b=C().bb;this.lN=Rb(new Sb,a,D(new F,b,"operationRef"),Tb(new Ub,Vb().bb,"operation Ref","Reference of the target operation",G()));a=(new Ki).Ld(so());b=C().bb;
this.rJ=Rb(new Sb,a,D(new F,b,"mapping"),Tb(new Ub,Vb().bb,"mapping","Variable mapping for the URL template",G()));a=Pb();b=C().bb;this.tN=Rb(new Sb,a,D(new F,b,"requestBody"),Tb(new Ub,Vb().bb,"request body","",G()));a=fn();b=C().bb;this.cG=Rb(new Sb,a,D(new F,b,"server"),Tb(new Ub,Vb().bb,"server","",G()));a=C().bb;a=D(new F,a,"TemplatedLink");b=Lc().ja;this.ja=oz(new pz,a,b);var a=this.$,b=this.o9,c=this.$F,e=this.rJ,f=this.tN,g=this.fb,h=this.cG,k=Lc().g,l=Db().g,p=Di(),k=k.la(l,p.s);this.g=oz(new pz,
a,oz(new pz,b,oz(new pz,c,oz(new pz,e,oz(new pz,f,oz(new pz,g,oz(new pz,h,k)))))));this.Aa=Tb(new Ub,Vb().bb,"Templated Link","Templated link containing URL template and variables mapping",G());return this};d.qp=function(a){this.kg=a};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.op=function(a){this.Je=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.np=function(a){this.wd=a};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a();return(new d6).P((new Q).a(),a)};
d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};d.$classData=q({X0a:0},!1,"amf.plugins.domain.webapi.metamodel.TemplatedLinkModel$",{X0a:1,f:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,yq:1,ul:1});var Job=void 0;function po(){Job||(Job=(new Iob).a());return Job}function Kob(){this.ke=this.Hb=this.Jc=this.$=this.oa=this.lj=this.ef=this.Aa=this.ja=null;this.ma=0}Kob.prototype=new r;Kob.prototype.constructor=Kob;d=Kob.prototype;
d.a=function(){Lob=this;Iq(this);cT(this);Wb(this);Wcb(this);var a=C().bb,a=D(new F,a,"ParametrizedResourceType"),b=zW().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().bb,"Parametrized Resource Type","RAML resource type that can accept parameters",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return Vcb(this)};d.Y9=function(a){this.ef=a};d.$9=function(a){this.oa=a};
d.Zc=function(){M();var a=(new N).a();return(new Fj).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};d.Z9=function(a){this.lj=a};d.$classData=q({h1a:0},!1,"amf.plugins.domain.webapi.metamodel.templates.ParametrizedResourceTypeModel$",{h1a:1,f:1,eka:1,se:1,Oc:1,ic:1,Xc:1,Kj:1,yq:1});var Lob=void 0;function nfa(){Lob||(Lob=(new Kob).a());return Lob}function Mob(){this.ke=this.Hb=this.Jc=this.$=this.oa=this.lj=this.ef=this.Aa=this.ja=null;this.ma=0}Mob.prototype=new r;
Mob.prototype.constructor=Mob;d=Mob.prototype;d.a=function(){Nob=this;Iq(this);cT(this);Wb(this);Wcb(this);var a=C().bb,a=D(new F,a,"ParametrizedTrait"),b=zW().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().bb,"Parametrized Trait","RAML trait with declared parameters",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return Vcb(this)};d.Y9=function(a){this.ef=a};d.$9=function(a){this.oa=a};
d.Zc=function(){M();var a=(new N).a();return(new Kj).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};d.Z9=function(a){this.lj=a};d.$classData=q({i1a:0},!1,"amf.plugins.domain.webapi.metamodel.templates.ParametrizedTraitModel$",{i1a:1,f:1,eka:1,se:1,Oc:1,ic:1,Xc:1,Kj:1,yq:1});var Nob=void 0;function ofa(){Nob||(Nob=(new Mob).a());return Nob}function u6(){this.k=this.mb=this.E=this.g=null;this.ma=!1}u6.prototype=new r;u6.prototype.constructor=u6;d=u6.prototype;d.L=function(){return"Encoding"};
d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.k8?this.g===a.g?this.E===a.E:!1:!1};d.sI=function(a){M();var b=(new N).a(),b=(new JB).P((new Q).a(),b);M();var c=(new N).a();a=Ue(b,a,c);b=ln().Qg;nh(this,b,a);return a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return ln()};
d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Nd=function(){var a=B(this.g,ln().aG).G,a=a.b()?"default-encoding":a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};
d.$classData=q({k8:0},!1,"amf.plugins.domain.webapi.models.Encoding",{k8:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function T2(){this.k=this.mb=this.E=this.g=null;this.ma=!1}T2.prototype=new r;T2.prototype.constructor=T2;d=T2.prototype;d.L=function(){return"IriTemplateMapping"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.m8?this.g===a.g?this.E===a.E:!1:!1};
d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return so()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){var a=B(this.g,so().ND).G,a=a.b()?"unknownVar":a.c(),a=(new Cf).e(a);return"/mapping/"+Gj(a.zd)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};
d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};d.$classData=q({m8:0},!1,"amf.plugins.domain.webapi.models.IriTemplateMapping",{m8:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function e6(){this.k=this.mb=this.E=this.g=null;this.ma=!1}e6.prototype=new r;e6.prototype.constructor=e6;d=e6.prototype;d.L=function(){return"Server"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};
d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.r8?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return fn()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){var a=B(this.g,fn().Jf).G,a=a.b()?null:a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};
d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};d.$classData=q({r8:0},!1,"amf.plugins.domain.webapi.models.Server",{r8:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function RP(){this.k=this.mb=this.E=this.g=null;this.ma=!1}
RP.prototype=new r;RP.prototype.constructor=RP;d=RP.prototype;d.L=function(){return"Scope"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:Fn(a)?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return En()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};
d.Nd=function(){var a=B(this.g,En().$).G,a=a.b()?"default-scope":a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};function Fn(a){return!!(a&&a.$classData&&a.$classData.v.qwa)}
d.$classData=q({qwa:0},!1,"amf.plugins.domain.webapi.models.security.Scope",{qwa:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function LX(){vE.call(this);this.CP=null}LX.prototype=new Q1;LX.prototype.constructor=LX;d=LX.prototype;d.L=function(){return"ParseException"};function JWa(a,b){a.CP=b;vE.prototype.pe.call(a,null,null,0,!0);return a}d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.z8){var b=this.CP;a=a.CP;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.CP;default:throw(new X).e(""+a);}};d.Xm=function(){return this.CP.Dca()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({z8:0},!1,"org.mulesoft.common.parse.ParseException",{z8:1,Qh:1,Kf:1,Fe:1,f:1,n:1,A:1,w:1,q:1});function p8(){this.sg=!1;this.eT=this.IBa=null}p8.prototype=new qnb;p8.prototype.constructor=p8;function aya(a){var b=new p8;b.IBa=a;(new B4).a();W7.prototype.p6a.call(b);b.eT="";return b}
p8.prototype.IL=function(a){fK(this,null===a?"null":a)};function fK(a,b){for(;""!==b;){var c=b.indexOf("\n")|0;if(0>c)a.eT=""+a.eT+b,b="";else{var e=""+a.eT+b.substring(0,c);ba.console&&(a.IBa&&ba.console.error?ba.console.error(e):ba.console.log(e));a.eT="";b=b.substring(1+c|0)}}}p8.prototype.nT=function(){};p8.prototype.$classData=q({P6a:0},!1,"java.lang.JSConsoleBasedPrintStream",{P6a:1,ifb:1,hfb:1,B2a:1,f:1,VY:1,kca:1,w8:1,iV:1});function Oob(){P.call(this);this.p5=this.m5=0}Oob.prototype=new hib;
Oob.prototype.constructor=Oob;d=Oob.prototype;d.Dga=function(){return this.m5};d.Ba=function(){return this.p5};d.Ega=function(){return this.p5};function Yma(a,b){var c=new Oob;c.m5=a;c.p5=b;P.prototype.N.call(c,null,null);return c}d.pa=function(){return this.m5};d.$classData=q({u8a:0},!1,"scala.Tuple2$mcDD$sp",{u8a:1,HS:1,f:1,nea:1,A:1,w:1,q:1,n:1,Mfb:1});function tH(){P.call(this);this.q5=this.NI=0}tH.prototype=new hib;tH.prototype.constructor=tH;d=tH.prototype;d.GM=function(){return this.NI};
d.La=function(a,b){this.NI=a;this.q5=b;P.prototype.N.call(this,null,null);return this};d.Ba=function(){return this.q5};d.si=function(){return this.q5};d.pa=function(){return this.NI};d.$classData=q({w8a:0},!1,"scala.Tuple2$mcII$sp",{w8a:1,HS:1,f:1,nea:1,A:1,w:1,q:1,n:1,Nfb:1});function uE(){this.t=null}uE.prototype=new dZa;uE.prototype.constructor=uE;function YY(a,b){for(;;){var c;b:for(c=b;;){var e=c.t;if(XY(e))c=e;else break b}if(b===c||eZa(a,b,c))return c;b=a.t;if(!XY(b))return a}}d=uE.prototype;
d.a=function(){GY.prototype.d.call(this,G());return this};function HZa(a,b){a:for(;;){var c=a.t;if(GZa(c))FZa(b,c);else{if(XY(c)){a=YY(a,c);continue a}if(!COa(c))throw(new v).d(c);if(!eZa(a,c,oz(new pz,b,c)))continue a}break}}d.CO=function(a,b){mza(this,a,b)};d.bX=function(a){Bza||(Bza=(new SH).a());a=nf(a)?Aza(a.ms):a;var b;a:for(b=this;;){var c=b.t;if(COa(c)){if(eZa(b,c,a)){b=c;break a}}else if(XY(c))b=YY(b,c);else{b=null;break a}}if(null!==b){if(!b.b())for(;!b.b();)FZa(b.fa(),a),b=b.sa();return!0}return!1};
d.u=function(){return IZa(this)};d.ei=function(a,b){return nza(this,a,b)};d.KA=function(a,b){HZa(this,EZa(b,a))};d.xga=function(a,b,c){return rza(this,a,b,c)};d.Lf=function(a,b){return pza(this,a,b)};d.Ufa=function(){var a;a:for(a=this;;){var b=a.t;if(GZa(b)){a=(new A).d(b);break a}if(XY(b))a=YY(a,b);else{a=w();break a}}return a};d.rW=function(a,b){return sza(this,a,b)};d.qW=function(a,b){return tza(this,a,b)};
d.Uba=function(){var a;a:for(a=this;;){var b=a.t;if(GZa(b)){a=!0;break a}if(XY(b))a=YY(a,b);else{a=!1;break a}}return a};d.uO=function(){return uza(this)};function XY(a){return!!(a&&a.$classData&&a.$classData.v.tEa)}d.$classData=q({tEa:0},!1,"scala.concurrent.impl.Promise$DefaultPromise",{tEa:1,Dfb:1,f:1,q:1,n:1,sEa:1,qEa:1,pea:1,nEa:1});function Pob(){}Pob.prototype=new r;Pob.prototype.constructor=Pob;d=Pob.prototype;d.a=function(){return this};d.tE=function(a,b){return 0<=this.Ak(a,b)};
d.Ak=function(a,b){a|=0;b|=0;return a===b?0:a<b?-1:1};d.SE=function(a,b){return 0>=this.Ak(a,b)};d.$classData=q({$8a:0},!1,"scala.math.Ordering$Int$",{$8a:1,f:1,Wfb:1,ZH:1,nH:1,$H:1,YH:1,q:1,n:1});var Qob=void 0;function Ms(){Qob||(Qob=(new Pob).a());return Qob}function Rob(){}Rob.prototype=new r;Rob.prototype.constructor=Rob;d=Rob.prototype;d.a=function(){return this};d.tE=function(a,b){return 0<=this.Ak(a,b)};d.Ak=function(a,b){return a===b?0:a<b?-1:1};d.SE=function(a,b){return 0>=this.Ak(a,b)};
d.$classData=q({a9a:0},!1,"scala.math.Ordering$String$",{a9a:1,f:1,Xfb:1,ZH:1,nH:1,$H:1,YH:1,q:1,n:1});var Sob=void 0;function Kc(){Sob||(Sob=(new Rob).a());return Sob}function q8(){this.cr=null}q8.prototype=new r;q8.prototype.constructor=q8;function r8(){}r8.prototype=q8.prototype;q8.prototype.h=function(a){return this===a};q8.prototype.u=function(){return this.cr};q8.prototype.y=function(){return va(this)};function Tob(){}Tob.prototype=new r;Tob.prototype.constructor=Tob;function Uob(){}
Uob.prototype=Tob.prototype;function s8(){this.gc=this.s=null}s8.prototype=new ynb;s8.prototype.constructor=s8;s8.prototype.a=function(){kS.prototype.a.call(this);Vob=this;this.gc=(new iZ).a();return this};s8.prototype.Ed=function(){xq();yq();return(new zq).a()};s8.prototype.$classData=q({S9a:0},!1,"scala.collection.IndexedSeq$",{S9a:1,iFa:1,Uy:1,Ty:1,Os:1,Ln:1,f:1,Qs:1,Mn:1});var Vob=void 0;function uv(){Vob||(Vob=(new s8).a());return Vob}function iD(){this.Bj=this.YB=0;this.Pa=null}
iD.prototype=new b2;iD.prototype.constructor=iD;d=iD.prototype;d.Sa=function(){this.Bj>=this.YB&&Uz().Td.Sa();var a=this.Pa.jb(this.Bj);this.Bj=1+this.Bj|0;return a};d.gQ=function(a){if(0>=a)a=Uz().Td;else{var b=this.YB-this.Bj|0;a=a<=(0<b?b:0)?hD(new iD,this.Pa,this.Bj,this.Bj+a|0):hD(new iD,this.Pa,this.Bj,this.YB)}return a};function hD(a,b,c,e){a.YB=e;if(null===b)throw Lb(Mb(),null);a.Pa=b;a.Bj=c;return a}d.Qa=function(){return this.Bj<this.YB};
d.mE=function(a){return 0>=a?hD(new iD,this.Pa,this.Bj,this.YB):(this.Bj+a|0)>=this.YB?hD(new iD,this.Pa,this.YB,this.YB):hD(new iD,this.Pa,this.Bj+a|0,this.YB)};d.$classData=q({U9a:0},!1,"scala.collection.IndexedSeqLike$Elements",{U9a:1,Vj:1,f:1,pi:1,Kb:1,Jb:1,$fb:1,q:1,n:1});function t8(){}t8.prototype=new Abb;t8.prototype.constructor=t8;t8.prototype.a=function(){return this};
function Wob(a,b,c,e,f,g){var h=31&(b>>>g|0),k=31&(e>>>g|0);if(h!==k)return a=1<<h|1<<k,b=ia(La(u8),[2]),h<k?(b.j[0]=c,b.j[1]=f):(b.j[0]=f,b.j[1]=c),v8(new w8,a,b,c.lb()+f.lb()|0);k=ia(La(u8),[1]);h=1<<h;c=Wob(a,b,c,e,f,5+g|0);k.j[0]=c;return v8(new w8,h,k,c.Rs)}t8.prototype.h0=function(){return x8()};t8.prototype.$classData=q({mab:0},!1,"scala.collection.immutable.HashSet$",{mab:1,hFa:1,UP:1,TP:1,Ln:1,f:1,Mn:1,q:1,n:1});var Xob=void 0;function Yob(){Xob||(Xob=(new t8).a());return Xob}
function y8(){this.s=null}y8.prototype=new ynb;y8.prototype.constructor=y8;y8.prototype.a=function(){kS.prototype.a.call(this);return this};y8.prototype.Ed=function(){yq();return(new zq).a()};y8.prototype.$classData=q({pab:0},!1,"scala.collection.immutable.IndexedSeq$",{pab:1,iFa:1,Uy:1,Ty:1,Os:1,Ln:1,f:1,Qs:1,Mn:1});var Zob=void 0;function xq(){Zob||(Zob=(new y8).a());return Zob}function z8(){}z8.prototype=new Abb;z8.prototype.constructor=z8;z8.prototype.a=function(){return this};
z8.prototype.h0=function(){return $ob()};z8.prototype.$classData=q({yab:0},!1,"scala.collection.immutable.ListSet$",{yab:1,hFa:1,UP:1,TP:1,Ln:1,f:1,Mn:1,q:1,n:1});var Rrb=void 0;function Srb(){this.je=null;this.Ab=this.Sc=0}Srb.prototype=new g8;Srb.prototype.constructor=Srb;d=Srb.prototype;d.a=function(){this.Ab=this.Sc=0;return this};function Trb(a,b){b=ia(La(Ma),[b]);0<a.Ab&&Kt(ye(),a.je,0,b,0,a.Ab);return b}
d.h=function(a){return a&&a.$classData&&a.$classData.v.zFa?this.Ab===a.Ab&&this.je===a.je:!1};d.uk=function(a){return Urb(this,!!a)};d.u=function(){return"ArrayBuilder.ofBoolean"};d.lc=function(){var a;0!==this.Sc&&this.Sc===this.Ab?(this.Sc=0,a=this.je):a=Trb(this,this.Ab);return a};d.Fm=function(a){this.je=Trb(this,a);this.Sc=a};d.Ic=function(a){return Urb(this,!!a)};d.Gh=function(a){this.Sc<a&&this.Fm(a)};
d.zm=function(a){if(this.Sc<a||0===this.Sc){for(var b=0===this.Sc?16:this.Sc<<1;b<a;)b<<=1;this.Fm(b)}};function Urb(a,b){a.zm(1+a.Ab|0);a.je.j[a.Ab]=b;a.Ab=1+a.Ab|0;return a}d.Cf=function(a){a&&a.$classData&&a.$classData.v.Wea?(this.zm(this.Ab+a.Ka()|0),Kt(ye(),a.z,0,this.je,this.Ab,a.Ka()),this.Ab=this.Ab+a.Ka()|0,a=this):a=Yi(this,a);return a};d.$classData=q({zFa:0},!1,"scala.collection.mutable.ArrayBuilder$ofBoolean",{zFa:1,iF:1,f:1,Lt:1,ll:1,kl:1,jl:1,q:1,n:1});
function Vrb(){this.je=null;this.Ab=this.Sc=0}Vrb.prototype=new g8;Vrb.prototype.constructor=Vrb;d=Vrb.prototype;d.a=function(){this.Ab=this.Sc=0;return this};d.h=function(a){return a&&a.$classData&&a.$classData.v.AFa?this.Ab===a.Ab&&this.je===a.je:!1};d.uk=function(a){return Wrb(this,a|0)};function Xrb(a,b){b=ia(La(Oa),[b]);0<a.Ab&&Kt(ye(),a.je,0,b,0,a.Ab);return b}d.u=function(){return"ArrayBuilder.ofByte"};
d.lc=function(){var a;0!==this.Sc&&this.Sc===this.Ab?(this.Sc=0,a=this.je):a=Xrb(this,this.Ab);return a};d.Fm=function(a){this.je=Xrb(this,a);this.Sc=a};d.Ic=function(a){return Wrb(this,a|0)};function Wrb(a,b){a.zm(1+a.Ab|0);a.je.j[a.Ab]=b;a.Ab=1+a.Ab|0;return a}d.Gh=function(a){this.Sc<a&&this.Fm(a)};d.zm=function(a){if(this.Sc<a||0===this.Sc){for(var b=0===this.Sc?16:this.Sc<<1;b<a;)b<<=1;this.Fm(b)}};
d.Cf=function(a){a&&a.$classData&&a.$classData.v.Xea?(this.zm(this.Ab+a.Ka()|0),Kt(ye(),a.z,0,this.je,this.Ab,a.Ka()),this.Ab=this.Ab+a.Ka()|0,a=this):a=Yi(this,a);return a};d.$classData=q({AFa:0},!1,"scala.collection.mutable.ArrayBuilder$ofByte",{AFa:1,iF:1,f:1,Lt:1,ll:1,kl:1,jl:1,q:1,n:1});function Yrb(){this.je=null;this.Ab=this.Sc=0}Yrb.prototype=new g8;Yrb.prototype.constructor=Yrb;d=Yrb.prototype;d.a=function(){this.Ab=this.Sc=0;return this};
d.h=function(a){return a&&a.$classData&&a.$classData.v.BFa?this.Ab===a.Ab&&this.je===a.je:!1};d.uk=function(a){return Zrb(this,null===a?0:a.t)};d.u=function(){return"ArrayBuilder.ofChar"};d.lc=function(){var a;0!==this.Sc&&this.Sc===this.Ab?(this.Sc=0,a=this.je):a=$rb(this,this.Ab);return a};d.Fm=function(a){this.je=$rb(this,a);this.Sc=a};d.Ic=function(a){return Zrb(this,null===a?0:a.t)};d.Gh=function(a){this.Sc<a&&this.Fm(a)};
function $rb(a,b){b=ia(La(Na),[b]);0<a.Ab&&Kt(ye(),a.je,0,b,0,a.Ab);return b}d.zm=function(a){if(this.Sc<a||0===this.Sc){for(var b=0===this.Sc?16:this.Sc<<1;b<a;)b<<=1;this.Fm(b)}};function Zrb(a,b){a.zm(1+a.Ab|0);a.je.j[a.Ab]=b;a.Ab=1+a.Ab|0;return a}d.Cf=function(a){a&&a.$classData&&a.$classData.v.Yea?(this.zm(this.Ab+a.Ka()|0),Kt(ye(),a.z,0,this.je,this.Ab,a.Ka()),this.Ab=this.Ab+a.Ka()|0,a=this):a=Yi(this,a);return a};
d.$classData=q({BFa:0},!1,"scala.collection.mutable.ArrayBuilder$ofChar",{BFa:1,iF:1,f:1,Lt:1,ll:1,kl:1,jl:1,q:1,n:1});function asb(){this.je=null;this.Ab=this.Sc=0}asb.prototype=new g8;asb.prototype.constructor=asb;d=asb.prototype;d.a=function(){this.Ab=this.Sc=0;return this};d.h=function(a){return a&&a.$classData&&a.$classData.v.CFa?this.Ab===a.Ab&&this.je===a.je:!1};d.uk=function(a){return bsb(this,+a)};d.u=function(){return"ArrayBuilder.ofDouble"};
d.lc=function(){var a;0!==this.Sc&&this.Sc===this.Ab?(this.Sc=0,a=this.je):a=csb(this,this.Ab);return a};function csb(a,b){b=ia(La(Ua),[b]);0<a.Ab&&Kt(ye(),a.je,0,b,0,a.Ab);return b}d.Fm=function(a){this.je=csb(this,a);this.Sc=a};d.Ic=function(a){return bsb(this,+a)};d.Gh=function(a){this.Sc<a&&this.Fm(a)};function bsb(a,b){a.zm(1+a.Ab|0);a.je.j[a.Ab]=b;a.Ab=1+a.Ab|0;return a}d.zm=function(a){if(this.Sc<a||0===this.Sc){for(var b=0===this.Sc?16:this.Sc<<1;b<a;)b<<=1;this.Fm(b)}};
d.Cf=function(a){a&&a.$classData&&a.$classData.v.Zea?(this.zm(this.Ab+a.Ka()|0),Kt(ye(),a.z,0,this.je,this.Ab,a.Ka()),this.Ab=this.Ab+a.Ka()|0,a=this):a=Yi(this,a);return a};d.$classData=q({CFa:0},!1,"scala.collection.mutable.ArrayBuilder$ofDouble",{CFa:1,iF:1,f:1,Lt:1,ll:1,kl:1,jl:1,q:1,n:1});function dsb(){this.je=null;this.Ab=this.Sc=0}dsb.prototype=new g8;dsb.prototype.constructor=dsb;d=dsb.prototype;d.a=function(){this.Ab=this.Sc=0;return this};
d.h=function(a){return a&&a.$classData&&a.$classData.v.DFa?this.Ab===a.Ab&&this.je===a.je:!1};d.uk=function(a){return esb(this,+a)};d.u=function(){return"ArrayBuilder.ofFloat"};d.lc=function(){var a;0!==this.Sc&&this.Sc===this.Ab?(this.Sc=0,a=this.je):a=fsb(this,this.Ab);return a};d.Fm=function(a){this.je=fsb(this,a);this.Sc=a};function esb(a,b){a.zm(1+a.Ab|0);a.je.j[a.Ab]=b;a.Ab=1+a.Ab|0;return a}d.Ic=function(a){return esb(this,+a)};d.Gh=function(a){this.Sc<a&&this.Fm(a)};
function fsb(a,b){b=ia(La(Ta),[b]);0<a.Ab&&Kt(ye(),a.je,0,b,0,a.Ab);return b}d.zm=function(a){if(this.Sc<a||0===this.Sc){for(var b=0===this.Sc?16:this.Sc<<1;b<a;)b<<=1;this.Fm(b)}};d.Cf=function(a){a&&a.$classData&&a.$classData.v.$ea?(this.zm(this.Ab+a.Ka()|0),Kt(ye(),a.z,0,this.je,this.Ab,a.Ka()),this.Ab=this.Ab+a.Ka()|0,a=this):a=Yi(this,a);return a};d.$classData=q({DFa:0},!1,"scala.collection.mutable.ArrayBuilder$ofFloat",{DFa:1,iF:1,f:1,Lt:1,ll:1,kl:1,jl:1,q:1,n:1});
function gsb(){this.je=null;this.Ab=this.Sc=0}gsb.prototype=new g8;gsb.prototype.constructor=gsb;d=gsb.prototype;d.a=function(){this.Ab=this.Sc=0;return this};d.h=function(a){return a&&a.$classData&&a.$classData.v.EFa?this.Ab===a.Ab&&this.je===a.je:!1};d.uk=function(a){return hsb(this,a|0)};d.u=function(){return"ArrayBuilder.ofInt"};d.lc=function(){var a;0!==this.Sc&&this.Sc===this.Ab?(this.Sc=0,a=this.je):a=isb(this,this.Ab);return a};d.Fm=function(a){this.je=isb(this,a);this.Sc=a};
function hsb(a,b){a.zm(1+a.Ab|0);a.je.j[a.Ab]=b;a.Ab=1+a.Ab|0;return a}d.Ic=function(a){return hsb(this,a|0)};function isb(a,b){b=ia(La(Ra),[b]);0<a.Ab&&Kt(ye(),a.je,0,b,0,a.Ab);return b}d.Gh=function(a){this.Sc<a&&this.Fm(a)};d.zm=function(a){if(this.Sc<a||0===this.Sc){for(var b=0===this.Sc?16:this.Sc<<1;b<a;)b<<=1;this.Fm(b)}};d.Cf=function(a){a&&a.$classData&&a.$classData.v.afa?(this.zm(this.Ab+a.Ka()|0),Kt(ye(),a.z,0,this.je,this.Ab,a.Ka()),this.Ab=this.Ab+a.Ka()|0,a=this):a=Yi(this,a);return a};
d.$classData=q({EFa:0},!1,"scala.collection.mutable.ArrayBuilder$ofInt",{EFa:1,iF:1,f:1,Lt:1,ll:1,kl:1,jl:1,q:1,n:1});function jsb(){this.je=null;this.Ab=this.Sc=0}jsb.prototype=new g8;jsb.prototype.constructor=jsb;d=jsb.prototype;d.a=function(){this.Ab=this.Sc=0;return this};function ksb(a,b){a.zm(1+a.Ab|0);a.je.j[a.Ab]=b;a.Ab=1+a.Ab|0;return a}d.h=function(a){return a&&a.$classData&&a.$classData.v.FFa?this.Ab===a.Ab&&this.je===a.je:!1};d.uk=function(a){return ksb(this,Ea(a))};d.u=function(){return"ArrayBuilder.ofLong"};
d.lc=function(){var a;0!==this.Sc&&this.Sc===this.Ab?(this.Sc=0,a=this.je):a=lsb(this,this.Ab);return a};d.Fm=function(a){this.je=lsb(this,a);this.Sc=a};function lsb(a,b){b=ia(La(Sa),[b]);0<a.Ab&&Kt(ye(),a.je,0,b,0,a.Ab);return b}d.Ic=function(a){return ksb(this,Ea(a))};d.Gh=function(a){this.Sc<a&&this.Fm(a)};d.zm=function(a){if(this.Sc<a||0===this.Sc){for(var b=0===this.Sc?16:this.Sc<<1;b<a;)b<<=1;this.Fm(b)}};
d.Cf=function(a){a&&a.$classData&&a.$classData.v.bfa?(this.zm(this.Ab+a.Ka()|0),Kt(ye(),a.z,0,this.je,this.Ab,a.Ka()),this.Ab=this.Ab+a.Ka()|0,a=this):a=Yi(this,a);return a};d.$classData=q({FFa:0},!1,"scala.collection.mutable.ArrayBuilder$ofLong",{FFa:1,iF:1,f:1,Lt:1,ll:1,kl:1,jl:1,q:1,n:1});function yW(){this.je=this.Tza=null;this.Ab=this.Sc=0}yW.prototype=new g8;yW.prototype.constructor=yW;d=yW.prototype;d.k1=function(a){this.Tza=a;this.Ab=this.Sc=0;return this};
d.h=function(a){return a&&a.$classData&&a.$classData.v.GFa?this.Ab===a.Ab&&this.je===a.je:!1};d.uk=function(a){return PUa(this,a)};d.u=function(){return"ArrayBuilder.ofRef"};d.lc=function(){return QUa(this)};d.Fm=function(a){this.je=msb(this,a);this.Sc=a};function PUa(a,b){a.zm(1+a.Ab|0);a.je.j[a.Ab]=b;a.Ab=1+a.Ab|0;return a}function QUa(a){return 0!==a.Sc&&a.Sc===a.Ab?(a.Sc=0,a.je):msb(a,a.Ab)}d.Ic=function(a){return PUa(this,a)};d.Gh=function(a){this.Sc<a&&this.Fm(a)};
d.zm=function(a){if(this.Sc<a||0===this.Sc){for(var b=0===this.Sc?16:this.Sc<<1;b<a;)b<<=1;this.Fm(b)}};function msb(a,b){b=a.Tza.As(b);0<a.Ab&&Kt(ye(),a.je,0,b,0,a.Ab);return b}d.Cf=function(a){a&&a.$classData&&a.$classData.v.cfa?(this.zm(this.Ab+a.Ka()|0),Kt(ye(),a.z,0,this.je,this.Ab,a.Ka()),this.Ab=this.Ab+a.Ka()|0,a=this):a=Yi(this,a);return a};d.$classData=q({GFa:0},!1,"scala.collection.mutable.ArrayBuilder$ofRef",{GFa:1,iF:1,f:1,Lt:1,ll:1,kl:1,jl:1,q:1,n:1});
function nsb(){this.je=null;this.Ab=this.Sc=0}nsb.prototype=new g8;nsb.prototype.constructor=nsb;d=nsb.prototype;d.a=function(){this.Ab=this.Sc=0;return this};d.h=function(a){return a&&a.$classData&&a.$classData.v.HFa?this.Ab===a.Ab&&this.je===a.je:!1};function osb(a,b){a.zm(1+a.Ab|0);a.je.j[a.Ab]=b;a.Ab=1+a.Ab|0;return a}d.uk=function(a){return osb(this,a|0)};d.u=function(){return"ArrayBuilder.ofShort"};
d.lc=function(){var a;0!==this.Sc&&this.Sc===this.Ab?(this.Sc=0,a=this.je):a=psb(this,this.Ab);return a};d.Fm=function(a){this.je=psb(this,a);this.Sc=a};function psb(a,b){b=ia(La(Qa),[b]);0<a.Ab&&Kt(ye(),a.je,0,b,0,a.Ab);return b}d.Ic=function(a){return osb(this,a|0)};d.Gh=function(a){this.Sc<a&&this.Fm(a)};d.zm=function(a){if(this.Sc<a||0===this.Sc){for(var b=0===this.Sc?16:this.Sc<<1;b<a;)b<<=1;this.Fm(b)}};
d.Cf=function(a){a&&a.$classData&&a.$classData.v.dfa?(this.zm(this.Ab+a.Ka()|0),Kt(ye(),a.z,0,this.je,this.Ab,a.Ka()),this.Ab=this.Ab+a.Ka()|0,a=this):a=Yi(this,a);return a};d.$classData=q({HFa:0},!1,"scala.collection.mutable.ArrayBuilder$ofShort",{HFa:1,iF:1,f:1,Lt:1,ll:1,kl:1,jl:1,q:1,n:1});function qsb(){this.Ab=0}qsb.prototype=new g8;qsb.prototype.constructor=qsb;d=qsb.prototype;d.a=function(){this.Ab=0;return this};d.h=function(a){return a&&a.$classData&&a.$classData.v.IFa?this.Ab===a.Ab:!1};
d.uk=function(){return rsb(this)};d.u=function(){return"ArrayBuilder.ofUnit"};function rsb(a){a.Ab=1+a.Ab|0;return a}d.lc=function(){for(var a=ia(La(na),[this.Ab]),b=0;b<this.Ab;)a.j[b]=void 0,b=1+b|0;return a};d.Ic=function(){return rsb(this)};d.Cf=function(a){this.Ab=this.Ab+a.lb()|0;return this};d.$classData=q({IFa:0},!1,"scala.collection.mutable.ArrayBuilder$ofUnit",{IFa:1,iF:1,f:1,Lt:1,ll:1,kl:1,jl:1,q:1,n:1});function A8(){}A8.prototype=new Cbb;A8.prototype.constructor=A8;A8.prototype.a=function(){return this};
A8.prototype.lA=function(){return(new qp).a()};A8.prototype.$classData=q({$bb:0},!1,"scala.collection.mutable.HashSet$",{$bb:1,jFa:1,UP:1,TP:1,Ln:1,f:1,Mn:1,q:1,n:1});var ssb=void 0;function tsb(){ssb||(ssb=(new A8).a());return ssb}function B8(){}B8.prototype=new Cbb;B8.prototype.constructor=B8;B8.prototype.a=function(){return this};B8.prototype.lA=function(){return(new dv).a()};
B8.prototype.$classData=q({scb:0},!1,"scala.collection.mutable.LinkedHashSet$",{scb:1,jFa:1,UP:1,TP:1,Ln:1,f:1,Mn:1,q:1,n:1});var usb=void 0;function Mka(){usb||(usb=(new B8).a());return usb}function vJ(){vE.call(this);this.qy=null}vJ.prototype=new Q1;vJ.prototype.constructor=vJ;d=vJ.prototype;d.L=function(){return"JavaScriptException"};d.H=function(){return 1};d.cU=function(){this.stackdata=this.qy;return this};d.h=function(a){return this===a?!0:pJ(a)?ub(vb(),this.qy,a.qy):!1};
d.K=function(a){switch(a){case 0:return this.qy;default:throw(new X).e(""+a);}};d.Xm=function(){return ja(this.qy)};d.d=function(a){this.qy=a;vE.prototype.pe.call(this,null,null,0,!0);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function pJ(a){return!!(a&&a.$classData&&a.$classData.v.gGa)}d.$classData=q({gGa:0},!1,"scala.scalajs.js.JavaScriptException",{gGa:1,Qh:1,Kf:1,Fe:1,f:1,n:1,A:1,w:1,q:1});function C8(){this.G=this.fj=this.HN=null}C8.prototype=new r;
C8.prototype.constructor=C8;d=C8.prototype;d.L=function(){return"BoolField"};d.fD=function(a){return cba(this,a)};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Mha){var b=this.HN;a=a.HN;return null===b?null===a:b.h(a)}return!1};d.Zo=function(){return wb(this)};d.K=function(a){switch(a){case 0:return this.HN;default:throw(new X).e(""+a);}};d.u=function(){return wb(this)};d.kD=function(){return this.fj.qa()};
d.VD=function(){Ab();var a=this.HN.E;Fo();return(new Go).Yp(a)};d.hD=function(){var a=this.fj;return x(a)?!!a.i:!1};function tK(a){var b=new C8;b.HN=a;b.fj=a.G;a=Ab();var c=b.fj,e=Ab().NX();b.G=Bb(a,c,e).sb();return b}d.bc=function(){return this.VD()};d.eD=function(a){return dba(this,a)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.jD=function(){return this.fj.b()};d.gD=function(){var a=this.HN;gs(a.l,a.xc)};C8.prototype.toString=function(){return this.Zo()};
Object.defineProperty(C8.prototype,"nonNull",{get:function(){return this.kD()},configurable:!0});Object.defineProperty(C8.prototype,"isNull",{get:function(){return this.jD()},configurable:!0});C8.prototype.is=function(a){return Kaa(a)?this.eD(a):this.fD(a)};C8.prototype.remove=function(){return this.gD()};C8.prototype.value=function(){return this.hD()};C8.prototype.annotations=function(){return this.bc()};Object.defineProperty(C8.prototype,"option",{get:function(){return this.G},configurable:!0});
C8.prototype.$classData=q({Mha:0},!1,"amf.client.model.BoolField",{Mha:1,f:1,Lha:1,zY:1,xd:1,AY:1,A:1,w:1,q:1,n:1});function D8(){this.G=this.fj=this.IN=null}D8.prototype=new r;D8.prototype.constructor=D8;d=D8.prototype;d.L=function(){return"DoubleField"};d.fD=function(a){return cba(this,a)};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Nha){var b=this.IN;a=a.IN;return null===b?null===a:b.h(a)}return!1};d.Zo=function(){return wb(this)};
d.K=function(a){switch(a){case 0:return this.IN;default:throw(new X).e(""+a);}};d.u=function(){return wb(this)};d.kD=function(){return this.fj.qa()};d.VD=function(){Ab();var a=this.IN.E;Fo();return(new Go).Yp(a)};d.hD=function(){var a=this.fj;return x(a)?+a.i:0};function vK(a){var b=new D8;b.IN=a;b.fj=a.G;a=Ab();var c=b.fj,e;e=Ab();null===Ab().VM&&null===Ab().VM&&(Ab().VM=(new yZ).vp(e));e=Ab().VM;b.G=Bb(a,c,e).sb();return b}d.bc=function(){return this.VD()};d.eD=function(a){return dba(this,a)};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.jD=function(){return this.fj.b()};d.gD=function(){var a=this.IN;gs(a.l,a.xc)};D8.prototype.toString=function(){return this.Zo()};Object.defineProperty(D8.prototype,"nonNull",{get:function(){return this.kD()},configurable:!0});Object.defineProperty(D8.prototype,"isNull",{get:function(){return this.jD()},configurable:!0});D8.prototype.is=function(a){return Kaa(a)?this.eD(a):this.fD(a)};D8.prototype.remove=function(){return this.gD()};
D8.prototype.value=function(){return this.hD()};D8.prototype.annotations=function(){return this.bc()};Object.defineProperty(D8.prototype,"option",{get:function(){return this.G},configurable:!0});D8.prototype.$classData=q({Nha:0},!1,"amf.client.model.DoubleField",{Nha:1,f:1,Lha:1,zY:1,xd:1,AY:1,A:1,w:1,q:1,n:1});function E8(){this.G=this.fj=this.JN=null}E8.prototype=new r;E8.prototype.constructor=E8;d=E8.prototype;d.L=function(){return"IntField"};d.fD=function(a){return cba(this,a)};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Oha){var b=this.JN;a=a.JN;return null===b?null===a:b.h(a)}return!1};d.Zo=function(){return wb(this)};d.K=function(a){switch(a){case 0:return this.JN;default:throw(new X).e(""+a);}};d.u=function(){return wb(this)};function xK(a){var b=new E8;b.JN=a;b.fj=a.G;a=Ab();var c=b.fj,e;e=Ab();null===Ab().ZM&&null===Ab().ZM&&(Ab().ZM=(new zZ).vp(e));e=Ab().ZM;b.G=Bb(a,c,e).sb();return b}d.kD=function(){return this.fj.qa()};
d.VD=function(){Ab();var a=this.JN.E;Fo();return(new Go).Yp(a)};d.hD=function(){var a=this.fj;return x(a)?a.i|0:0};d.bc=function(){return this.VD()};d.eD=function(a){return dba(this,a)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.jD=function(){return this.fj.b()};d.gD=function(){var a=this.JN;gs(a.l,a.xc)};E8.prototype.toString=function(){return this.Zo()};Object.defineProperty(E8.prototype,"nonNull",{get:function(){return this.kD()},configurable:!0});
Object.defineProperty(E8.prototype,"isNull",{get:function(){return this.jD()},configurable:!0});E8.prototype.is=function(a){return Kaa(a)?this.eD(a):this.fD(a)};E8.prototype.remove=function(){return this.gD()};E8.prototype.value=function(){return this.hD()};E8.prototype.annotations=function(){return this.bc()};Object.defineProperty(E8.prototype,"option",{get:function(){return this.G},configurable:!0});
E8.prototype.$classData=q({Oha:0},!1,"amf.client.model.IntField",{Oha:1,f:1,Lha:1,zY:1,xd:1,AY:1,A:1,w:1,q:1,n:1});function BA(){this.na=this.p=null}BA.prototype=new r;BA.prototype.constructor=BA;d=BA.prototype;d.L=function(){return"ClassTerm"};d.a=function(){M();var a=(new N).a();BA.prototype.CAa.call(this,(new WM).P((new Q).a(),a));return this};d.Xf=function(){lM();var a=B(this.p.g,zA().$);lM().wb();return Gb(a)};d.H=function(){return 1};d.nd=function(){return SS(this)};d.Vt=function(){return this.iE()};
d.Ie=function(){return this.Xf()};d.pd=function(a){return US(this,a)};d.kW=function(){var a=lM(),b=B(this.p.g,zA().Rg),c=lM().wb();return Il(a,b,c).sb()};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.eia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};
d.qd=function(a){return RS(this,a)};d.yj=function(){lM();var a=B(this.p.g,zA().fb);lM().wb();return Gb(a)};d.Tt=function(a){var b=this.p,c=zA().gd;Eb(b,c,a);return this};d.rd=function(){return PS(this)};d.oR=function(){return this.kW()};d.CAa=function(a){this.p=a;this.na=ju().na;return this};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.hi=function(a){var b=this.p,c=zA().fb;Eb(b,c,a);return this};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};
d.j4=function(a){var b=this.p,c=lM(),e=lM().oh();qob(b,ml(nl(new ol,c,a,e)));return this};d.Rh=function(){return this.yj()};d.y=function(){return Y(this)};d.iE=function(){lM();var a=B(this.p.g,zA().gd);lM().wb();return Gb(a)};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p,c=zA().$;Eb(b,c,a);return this};BA.prototype.annotations=function(){return this.bc()};BA.prototype.graph=function(){return this.nd()};BA.prototype.withId=function(a){return this.qd(a)};
BA.prototype.withExtendsNode=function(a){return this.pd(a)};BA.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(BA.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(BA.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(BA.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});
Object.defineProperty(BA.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});BA.prototype.withSubClassOf=function(a){var b=this.p,c=lM(),e=lM().oh();rob(b,ml(nl(new ol,c,a,e)));return this};BA.prototype.withProperties=function(a){return this.j4(a)};BA.prototype.withDescription=function(a){return this.hi(a)};BA.prototype.withDisplayName=function(a){return this.Tt(a)};BA.prototype.withName=function(a){return this.xe(a)};
Object.defineProperty(BA.prototype,"subClassOf",{get:function(){var a=lM(),b=B(this.p.g,zA().Mz),c=lM().wb();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(BA.prototype,"properties",{get:function(){return this.oR()},configurable:!0});Object.defineProperty(BA.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty(BA.prototype,"displayName",{get:function(){return this.Vt()},configurable:!0});
Object.defineProperty(BA.prototype,"name",{get:function(){return this.Ie()},configurable:!0});BA.prototype.$classData=q({eia:0},!1,"amf.client.model.domain.ClassTerm",{eia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function Yn(){this.na=this.p=null}Yn.prototype=new r;Yn.prototype.constructor=Yn;d=Yn.prototype;d.a=function(){M();var a=(new N).a(),b=(new Q).a();Yn.prototype.SAa.call(this,(new r4).P(b,a));return this};d.L=function(){return"CreativeWork"};d.H=function(){return 1};d.nd=function(){return SS(this)};
d.qw=function(){return this.wF()};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.fia?this.p===a.p:!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.wF=function(){S();var a=B(this.p.g,Gi().Jf);S().wb();return Gb(a)};d.iD=function(a){var b=this.p,c=Gi().Jf;Eb(b,c,a);return this};d.u=function(){return U(W(),this)};d.SAa=function(a){this.p=a;this.na=ju().na;return this};d.fd=function(){return QS(this)};
d.qd=function(a){return RS(this,a)};d.yj=function(){S();var a=B(this.p.g,Gi().fb);S().wb();return Gb(a)};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.hi=function(a){var b=this.p,c=Gi().fb;Eb(b,c,a);return this};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Rh=function(){return this.yj()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};Yn.prototype.annotations=function(){return this.bc()};
Yn.prototype.graph=function(){return this.nd()};Yn.prototype.withId=function(a){return this.qd(a)};Yn.prototype.withExtendsNode=function(a){return this.pd(a)};Yn.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(Yn.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(Yn.prototype,"id",{get:function(){return this.hc()},configurable:!0});
Object.defineProperty(Yn.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(Yn.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});Yn.prototype.withDescription=function(a){return this.hi(a)};Yn.prototype.withTitle=function(a){var b=this.p,c=Gi().fu;Eb(b,c,a);return this};Yn.prototype.withUrl=function(a){return this.iD(a)};
Object.defineProperty(Yn.prototype,"title",{get:function(){S();var a=B(this.p.g,Gi().fu);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(Yn.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty(Yn.prototype,"url",{get:function(){return this.qw()},configurable:!0});Yn.prototype.$classData=q({fia:0},!1,"amf.client.model.domain.CreativeWork",{fia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function F8(){Qn.call(this)}F8.prototype=new l8;
F8.prototype.constructor=F8;function vsb(){}vsb.prototype=F8.prototype;F8.prototype.withUniqueItems=function(a){a=!!a;var b=this.ti,c=Wh().tr;dj(b,c,a);return this};F8.prototype.withMaxItems=function(a){a|=0;var b=this.ti,c=Wh().rr;lr(b,c,a);return this};F8.prototype.withMinItems=function(a){a|=0;var b=this.ti,c=Wh().Bq;lr(b,c,a);return this};Object.defineProperty(F8.prototype,"uniqueItems",{get:function(){S();var a=B(this.ti.ea,Wh().tr);S().sl();return tK(a)},configurable:!0});
Object.defineProperty(F8.prototype,"maxItems",{get:function(){S();var a=B(this.ti.ea,Wh().rr);S().ww();return xK(a)},configurable:!0});Object.defineProperty(F8.prototype,"minItems",{get:function(){S();var a=B(this.ti.ea,Wh().Bq);S().ww();return xK(a)},configurable:!0});function yA(){this.na=this.p=null}yA.prototype=new r;yA.prototype.constructor=yA;d=yA.prototype;d.L=function(){return"DialectDomainElement"};
d.a=function(){M();var a=(new N).a();yA.prototype.Lv.call(this,(new wT).P((new Q).a(),a));return this};function wsb(a){var b=lM(),c=hN(a.p).g;a=function(){return function(a){return Gc(a.t)}}(a);var e=Di().s;if(e===Di().s)if(c===G())a=G();else{for(var e=c.fa(),f=e=oz(new pz,a(e),G()),c=c.sa();c!==G();)var g=c.fa(),g=oz(new pz,a(g),G()),f=f.ve=g,c=c.sa();a=e}else{for(e=Rf(c,e);!c.b();)f=c.fa(),e.Ic(a(f)),c=c.sa();a=e.lc()}c=lM().oh();return Il(b,a,c).sb()}d.H=function(){return 1};d.nd=function(){return SS(this)};
d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(acb(a)){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.z3=function(){return(new DA).jba(Sj(this.p))};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};
d.Lv=function(a){this.p=a;this.na=ju().na;return this};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
function xsb(a){var b=lM(),c=hN(a.p).ja;a=function(){return function(a){return Gc(a)}}(a);var e=Di().s;if(e===Di().s)if(c===G())a=G();else{for(var e=c.fa(),f=e=oz(new pz,a(e),G()),c=c.sa();c!==G();)var g=c.fa(),g=oz(new pz,a(g),G()),f=f.ve=g,c=c.sa();a=e}else{for(e=Rf(c,e);!c.b();)f=c.fa(),e.Ic(a(f)),c=c.sa();a=e.lc()}c=lM().oh();return Il(b,a,c).sb()}yA.prototype.annotations=function(){return this.bc()};yA.prototype.graph=function(){return this.nd()};yA.prototype.withId=function(a){return this.qd(a)};
yA.prototype.withExtendsNode=function(a){return this.pd(a)};yA.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(yA.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(yA.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(yA.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});
Object.defineProperty(yA.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});
yA.prototype.setLiteralProperty=function(a,b){if("boolean"===typeof b){b=!!b;var c=G8(this.p,Gc(Wu(C(),a)));if(x(c))a=E5a(this.p,c.i,b,gF(jC(),R().Qm,R().Qm));else{if(w()===c)throw Lb(Mb(),(new Nb).e("Cannot find node mapping for propertyId "+a));throw(new v).d(c);}}else if(Da(b))if(b|=0,c=G8(this.p,Gc(Wu(C(),a))),x(c))a=F5a(this.p,c.i,b,gF(jC(),R().Qm,R().Qm));else{if(w()===c)throw Lb(Mb(),(new Nb).e("Cannot find node mapping for propertyId "+a));throw(new v).d(c);}else if(ma(b))if(b=+b,c=G8(this.p,
Gc(Wu(C(),a))),x(c))a=G5a(this.p,c.i,b,gF(jC(),R().Qm,R().Qm));else{if(w()===c)throw Lb(Mb(),(new Nb).e("Cannot find node mapping for propertyId "+a));throw(new v).d(c);}else if("number"===typeof b)if(b=+b,c=G8(this.p,Gc(Wu(C(),a))),x(c))a=H5a(this.p,c.i,b,gF(jC(),R().Qm,R().Qm));else{if(w()===c)throw Lb(Mb(),(new Nb).e("Cannot find node mapping for propertyId "+a));throw(new v).d(c);}else if(Lo(b))if(c=G8(this.p,Gc(Wu(C(),a))),x(c))a=I5a(this.p,c.i,b,gF(jC(),R().Qm,R().Qm));else{if(w()===c)throw Lb(Mb(),
(new Nb).e("Cannot find node mapping for propertyId "+a));throw(new v).d(c);}else if(c=G8(this.p,Gc(Wu(C(),a))),x(c)){a=c.i;var c=this.p,e=lM(),f=lM().MM();a=s5a(c,a,ml(nl(new ol,e,b,f)),gF(jC(),R().Qm,R().Qm))}else{if(w()===c)throw Lb(Mb(),(new Nb).e("Cannot find node mapping for propertyId "+a));throw(new v).d(c);}return a};
yA.prototype.getObjectPropertyUri=function(a){a=Gc(Wu(C(),a));a=G8(this.p,a);a.b()?a=w():(a=a.c(),a=(new A).d(Uj(a)));if(x(a)){var b=!1,c=null;a=this.p.g.Pb.Ta(a.i);a:{if(x(a)){var b=!0,c=a,e=c.i,e=is(js(),e);if(!e.b()&&(e=e.c().pa(),es(e))){a=e.Tb;b=new fcb;c=z();a=a.$b(b,c.s);break a}}if(b&&(b=c.i,b=is(js(),b),!b.b()&&(b=b.c().pa(),xA(b)))){a=z();lM();b=(new yA).Lv(b);ysb();a=H(a,(new J).aa([b.p]));break a}if(w()===a)a=G();else throw(new v).d(a);}}else a=G();b=lM();c=ysb();return Il(b,a,c).sb()};
yA.prototype.getScalarByPropertyUri=function(a){a=Gc(Wu(C(),a));a=G8(this.p,a);a.b()?a=w():(a=a.c(),a=(new A).d(Uj(a)));if(x(a)){a=a.i;var b=!1,c=null,e=this.p.g.Pb.Ta(a);a:{if(x(e)){var b=!0,c=e,f=c.i;if(f&&f.$classData&&f.$classData.v.Yf){a=f;break a}}if(b)a=c.i,a=H(z(),(new J).aa([a]));else if(w()===e)a=this.p.g.Pb.Ta(a),a.b()?a=w():(a=a.c(),b=z(),a=(new A).d(H(b,(new J).aa([a])))),a=a.b()?G():a.c();else throw(new v).d(e);}}else a=G();b=lM();c=lM().MM();return Il(b,a,c).sb()};
yA.prototype.getPropertyUris=function(){return wsb(this)};yA.prototype.getTypeUris=function(){return xsb(this)};yA.prototype.setObjectCollectionProperty=function(a,b){var c=G8(this.p,Gc(Wu(C(),a)));if(x(c)){a=c.i;var c=this.p,e=lM(),f=ysb();b=o5a(c,a,ml(nl(new ol,e,b,f)),R().Qm)}else{if(w()===c)throw Lb(Mb(),(new Nb).e("Cannot find node mapping for propertyId "+a));throw(new v).d(c);}return b};
yA.prototype.setObjectProperty=function(a,b){var c=G8(this.p,Gc(Wu(C(),a)));if(x(c))a=w2(this.p,c.i,b.p,R().Qm);else{if(w()===c)throw Lb(Mb(),(new Nb).e("Cannot find node mapping for propertyId "+a));throw(new v).d(c);}return a};yA.prototype.includeName=function(){return MQa(this.p)};yA.prototype.localRefName=function(){return R5a(this.p)};yA.prototype.definedBy=function(){return this.z3()};yA.prototype.withDefinedby=function(a){xT(this.p,a.p);return this};
yA.prototype.withInstanceTypes=function(a){var b=this.p,c=lM(),e=lM().oh();yT(b,ml(nl(new ol,c,a,e)));return this};yA.prototype.withAbstract=function(a){U4a(this.p,!!a);return this};yA.prototype.isAbstract=function(){return B(this.p.g,pv().JX)};function acb(a){return!!(a&&a.$classData&&a.$classData.v.kia)}yA.prototype.$classData=q({kia:0},!1,"amf.client.model.domain.DialectDomainElement",{kia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function PA(){this.na=this.p=null}PA.prototype=new r;
PA.prototype.constructor=PA;d=PA.prototype;d.a=function(){M();var a=(new N).a();PA.prototype.X0.call(this,(new fU).P((new Q).a(),a));return this};d.L=function(){return"DocumentMapping"};d.H=function(){return 1};d.nd=function(){return SS(this)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.lia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.X0=function(a){this.p=a;this.na=ju().na;return this};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
PA.prototype.annotations=function(){return this.bc()};PA.prototype.graph=function(){return this.nd()};PA.prototype.withId=function(a){return this.qd(a)};PA.prototype.withExtendsNode=function(a){return this.pd(a)};PA.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(PA.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(PA.prototype,"id",{get:function(){return this.hc()},configurable:!0});
Object.defineProperty(PA.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(PA.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});PA.prototype.withDeclaredNodes=function(a){var b=this.p,c=lM(),e=zsb();a=ml(nl(new ol,c,a,e));c=OA().$t;return Vg(b,c,a)};PA.prototype.declaredNodes=function(){var a=lM(),b=B(this.p.g,OA().$t),c=zsb();return Il(a,b,c).sb()};
PA.prototype.withEncoded=function(a){var b=this.p,c=OA().ft;Eb(b,c,a);return this};PA.prototype.encoded=function(){lM();var a=B(this.p.g,OA().ft);lM().wb();return Gb(a)};PA.prototype.withDocumentName=function(a){var b=this.p,c=OA().Sx;Eb(b,c,a);return this};PA.prototype.documentName=function(){lM();var a=B(this.p.g,OA().Sx);lM().wb();return Gb(a)};PA.prototype.$classData=q({lia:0},!1,"amf.client.model.domain.DocumentMapping",{lia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});
function QA(){this.na=this.p=null}QA.prototype=new r;QA.prototype.constructor=QA;d=QA.prototype;d.L=function(){return"DocumentsModel"};d.a=function(){M();var a=(new N).a();QA.prototype.iba.call(this,(new qU).P((new Q).a(),a));return this};d.H=function(){return 1};d.nd=function(){return SS(this)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.mia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.iba=function(a){this.p=a;this.na=ju().na;return this};
QA.prototype.annotations=function(){return this.bc()};QA.prototype.graph=function(){return this.nd()};QA.prototype.withId=function(a){return this.qd(a)};QA.prototype.withExtendsNode=function(a){return this.pd(a)};QA.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(QA.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(QA.prototype,"id",{get:function(){return this.hc()},configurable:!0});
Object.defineProperty(QA.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(QA.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});QA.prototype.withKeyProperty=function(a){a=!!a;lM();var b=this.p,c=fd().wz;a=dj(b,c,a);return t_a(Asb(),a)};QA.prototype.keyProperty=function(){lM();var a=B(this.p.g,fd().wz);lM().sl();return tK(a)};
QA.prototype.withDeclarationsPath=function(a){lM();var b=this.p,c=fd().qz;a=Eb(b,c,a);return t_a(Asb(),a)};QA.prototype.declarationsPath=function(){lM();var a=B(this.p.g,fd().qz);lM().wb();return Gb(a)};QA.prototype.withSelfEncoded=function(a){a=!!a;lM();var b=this.p,c=fd().Lz;a=dj(b,c,a);return t_a(Asb(),a)};QA.prototype.selfEncoded=function(){lM();var a=B(this.p.g,fd().Lz);lM().sl();return tK(a)};QA.prototype.withLibrary=function(a){var b=this.p;a=a.p;var c=fd().ay;return ff(b,c,a)};
QA.prototype.library=function(){return(new PA).X0(B(this.p.g,fd().ay))};QA.prototype.withFragments=function(a){var b=this.p,c=lM(),e=Bsb();a=ml(nl(new ol,c,a,e));c=fd().tz;return Vg(b,c,a)};QA.prototype.fragments=function(){var a=lM(),b=B(this.p.g,fd().tz),c=Bsb();return Il(a,b,c).sb()};QA.prototype.withRoot=function(a){var b=this.p;a=a.p;var c=fd().cs;return ff(b,c,a)};QA.prototype.root=function(){return(new PA).X0(B(this.p.g,fd().cs))};
QA.prototype.$classData=q({mia:0},!1,"amf.client.model.domain.DocumentsModel",{mia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function cm(){this.na=this.p=null}cm.prototype=new r;cm.prototype.constructor=cm;d=cm.prototype;d.WG=function(a){this.p=a;this.na=ju().na;return this};d.a=function(){M();var a=(new N).a();cm.prototype.WG.call(this,(new af).P((new Q).a(),a));return this};d.L=function(){return"DomainExtension"};d.Xf=function(){Ab();var a=B(this.p.g,bf().$);Ab().wb();return Gb(a)};d.H=function(){return 1};
d.Ie=function(){return this.Xf()};d.nd=function(){return SS(this)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.K4=function(){return this.taa()};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.nia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.rd=function(){return PS(this)};
d.F4=function(){Ab();var a=B(this.p.g,bf().Rf);Csb();return(new am).SO(a)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.X3=function(a){var b=this.p;a=a.p;var c=bf().Zj;ff(b,c,a);return this};d.taa=function(){Ab();var a=B(this.p.g,bf().Zj);return nm(Ab().tq(),a)};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p,c=bf().$;Eb(b,c,a);return this};
cm.prototype.annotations=function(){return this.bc()};cm.prototype.graph=function(){return this.nd()};cm.prototype.withId=function(a){return this.qd(a)};cm.prototype.withExtendsNode=function(a){return this.pd(a)};cm.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(cm.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(cm.prototype,"id",{get:function(){return this.hc()},configurable:!0});
Object.defineProperty(cm.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(cm.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});cm.prototype.withExtension=function(a){return this.X3(a)};cm.prototype.withDefinedBy=function(a){var b=this.p;a=a.p;var c=bf().Rf;ff(b,c,a);return this};cm.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(cm.prototype,"extension",{get:function(){return this.K4()},configurable:!0});
Object.defineProperty(cm.prototype,"definedBy",{get:function(){return this.F4()},configurable:!0});Object.defineProperty(cm.prototype,"name",{get:function(){return this.Ie()},configurable:!0});cm.prototype.$classData=q({nia:0},!1,"amf.client.model.domain.DomainExtension",{nia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function mn(){this.na=this.p=null}mn.prototype=new r;mn.prototype.constructor=mn;d=mn.prototype;d.zI=function(a){return this.zM(a)};d.L=function(){return"Encoding"};
d.a=function(){M();var a=(new N).a();mn.prototype.dBa.call(this,(new u6).P((new Q).a(),a));return this};d.AI=function(a){var b=this.p,c=S(),e=H8();a=ml(nl(new ol,c,a,e));c=ln().Qg;qf(b,c,a);return this};d.H=function(){return 1};d.nd=function(){return SS(this)};d.saa=function(){S();var a=B(this.p.g,ln().hv);S().sl();return tK(a)};d.pd=function(a){return US(this,a)};d.z4=function(){return this.O9()};d.Jd=function(){return this.p};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.oia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.eR=function(){S();var a=B(this.p.g,ln().tl);S().wb();return Gb(a)};d.zM=function(a){S();a=this.p.sI(a);return e_(H8(),a)};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.ufa=function(){S();var a=B(this.p.g,ln().eu);S().wb();return Gb(a)};d.t4=function(a){var b=this.p,c=ln().eu;Eb(b,c,a);return this};
d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.W3=function(a){var b=this.p,c=ln().hv;dj(b,c,a);return this};d.J4=function(){return this.saa()};d.rd=function(){return PS(this)};d.vK=function(){var a=S(),b=B(this.p.g,ln().Qg),c=H8();return Il(a,b,c).sb()};d.GI=function(){return this.vK()};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.L3=function(a){var b=this.p,c=ln().bv;dj(b,c,a);return this};d.dBa=function(a){this.p=a;this.na=ju().na;return this};
d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.d5=function(){return this.ufa()};d.M=function(){return Z(this)};d.O9=function(){S();var a=B(this.p.g,ln().bv);S().sl();return tK(a)};mn.prototype.annotations=function(){return this.bc()};mn.prototype.graph=function(){return this.nd()};mn.prototype.withId=function(a){return this.qd(a)};mn.prototype.withExtendsNode=function(a){return this.pd(a)};
mn.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(mn.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(mn.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(mn.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(mn.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});mn.prototype.withHeader=function(a){return this.zI(a)};
mn.prototype.withAllowReserved=function(a){return this.L3(!!a)};mn.prototype.withExplode=function(a){return this.W3(!!a)};mn.prototype.withStyle=function(a){return this.t4(a)};mn.prototype.withHeaders=function(a){return this.AI(a)};mn.prototype.withContentType=function(a){var b=this.p,c=ln().tl;Eb(b,c,a);return this};mn.prototype.withPropertyName=function(a){var b=this.p,c=ln().aG;Eb(b,c,a);return this};Object.defineProperty(mn.prototype,"allowReserved",{get:function(){return this.z4()},configurable:!0});
Object.defineProperty(mn.prototype,"explode",{get:function(){return this.J4()},configurable:!0});Object.defineProperty(mn.prototype,"style",{get:function(){return this.d5()},configurable:!0});Object.defineProperty(mn.prototype,"headers",{get:function(){return this.GI()},configurable:!0});Object.defineProperty(mn.prototype,"contentType",{get:function(){return this.eR()},configurable:!0});
Object.defineProperty(mn.prototype,"propertyName",{get:function(){S();var a=B(this.p.g,ln().aG);S().wb();return Gb(a)},configurable:!0});mn.prototype.$classData=q({oia:0},!1,"amf.client.model.domain.Encoding",{oia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function CA(){this.na=this.p=null}CA.prototype=new r;CA.prototype.constructor=CA;d=CA.prototype;d.a=function(){M();var a=(new N).a();CA.prototype.EAa.call(this,(new lN).P((new Q).a(),a));return this};d.L=function(){return"External"};d.H=function(){return 1};
d.nd=function(){return SS(this)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ria){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.O3=function(a){lM();var b=this.p,c=zd().uh;a=Eb(b,c,a);return x_a(z5(),a)};d.B4=function(){return this.y$()};d.fd=function(){return QS(this)};
d.qd=function(a){return RS(this,a)};d.K3=function(a){lM();var b=this.p,c=zd().gd;a=Eb(b,c,a);return x_a(z5(),a)};d.L9=function(){lM();var a=B(this.p.g,zd().gd);lM().wb();return Gb(a)};d.y4=function(){return this.L9()};d.rd=function(){return PS(this)};d.y$=function(){lM();var a=B(this.p.g,zd().uh);lM().wb();return Gb(a)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.EAa=function(a){this.p=a;this.na=ju().na;return this};CA.prototype.annotations=function(){return this.bc()};CA.prototype.graph=function(){return this.nd()};CA.prototype.withId=function(a){return this.qd(a)};CA.prototype.withExtendsNode=function(a){return this.pd(a)};CA.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(CA.prototype,"position",{get:function(){return this.fd()},configurable:!0});
Object.defineProperty(CA.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(CA.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(CA.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});CA.prototype.withBase=function(a){return this.O3(a)};CA.prototype.withAlias=function(a){return this.K3(a)};Object.defineProperty(CA.prototype,"base",{get:function(){return this.B4()},configurable:!0});
Object.defineProperty(CA.prototype,"alias",{get:function(){return this.y4()},configurable:!0});CA.prototype.$classData=q({ria:0},!1,"amf.client.model.domain.External",{ria:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function Xl(){this.na=this.p=null}Xl.prototype=new r;Xl.prototype.constructor=Xl;d=Xl.prototype;d.Waa=function(a){this.p=a;this.na=ju().na;return this};d.a=function(){M();var a=(new N).a();Xl.prototype.Waa.call(this,(new Bp).P((new Q).a(),a));return this};d.L=function(){return"ExternalDomainElement"};
d.Mm=function(a){var b=this.p,c=Wl().Sd;Eb(b,c,a);return this};d.H=function(){return 1};d.nd=function(){return SS(this)};d.lL=function(){Ab();var a=B(this.p.g,Wl().Md);Ab().wb();return Gb(a)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.sia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.Yda=function(){Ab();var a=B(this.p.g,Wl().Sd);Ab().wb();return Gb(a)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.Nm=function(){return this.Yda()};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.TQ=function(a){var b=this.p,c=Wl().Md;Eb(b,c,a);return this};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.fz=function(){return this.lL()};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};Xl.prototype.annotations=function(){return this.bc()};Xl.prototype.graph=function(){return this.nd()};Xl.prototype.withId=function(a){return this.qd(a)};Xl.prototype.withExtendsNode=function(a){return this.pd(a)};Xl.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(Xl.prototype,"position",{get:function(){return this.fd()},configurable:!0});
Object.defineProperty(Xl.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(Xl.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(Xl.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});Xl.prototype.withMediaType=function(a){return this.TQ(a)};Xl.prototype.withRaw=function(a){return this.Mm(a)};Object.defineProperty(Xl.prototype,"mediaType",{get:function(){return this.fz()},configurable:!0});
Object.defineProperty(Xl.prototype,"raw",{get:function(){return this.Nm()},configurable:!0});Xl.prototype.$classData=q({sia:0},!1,"amf.client.model.domain.ExternalDomainElement",{sia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function to(){this.na=this.p=null}to.prototype=new r;to.prototype.constructor=to;d=to.prototype;d.a=function(){M();var a=(new N).a();to.prototype.eBa.call(this,(new T2).P((new Q).a(),a));return this};d.L=function(){return"IriTemplateMapping"};d.H=function(){return 1};d.nd=function(){return SS(this)};
d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.wia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.eBa=function(a){this.p=a;this.na=ju().na;return this};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};
d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};to.prototype.annotations=function(){return this.bc()};to.prototype.graph=function(){return this.nd()};to.prototype.withId=function(a){return this.qd(a)};to.prototype.withExtendsNode=function(a){return this.pd(a)};to.prototype.withCustomDomainProperties=function(a){return this.od(a)};
Object.defineProperty(to.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(to.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(to.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(to.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});to.prototype.withLinkExpression=function(a){var b=this.p,c=so().XF;Eb(b,c,a);return this};
to.prototype.withTemplateVariable=function(a){var b=this.p,c=so().ND;Eb(b,c,a);return this};Object.defineProperty(to.prototype,"linkExpression",{get:function(){S();var a=B(this.p.g,so().XF);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(to.prototype,"templateVariable",{get:function(){S();var a=B(this.p.g,so().ND);S().wb();return Gb(a)},configurable:!0});to.prototype.$classData=q({wia:0},!1,"amf.client.model.domain.IriTemplateMapping",{wia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});
function DA(){this.na=this.p=null}DA.prototype=new r;DA.prototype.constructor=DA;d=DA.prototype;d.L=function(){return"NodeMapping"};d.a=function(){M();var a=(new N).a();DA.prototype.jba.call(this,(new jN).P((new Q).a(),a));return this};d.Xf=function(){lM();var a=this.p,a=B(a.g,a.$);lM().wb();return Gb(a)};d.H=function(){return 1};d.nd=function(){return SS(this)};d.Ie=function(){return this.Xf()};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Y6){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.jba=function(a){this.p=a;this.na=ju().na;return this};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};
d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p;Eb(b,b.$,a);return this};DA.prototype.annotations=function(){return this.bc()};DA.prototype.graph=function(){return this.nd()};DA.prototype.withId=function(a){return this.qd(a)};DA.prototype.withExtendsNode=function(a){return this.pd(a)};DA.prototype.withCustomDomainProperties=function(a){return this.od(a)};
Object.defineProperty(DA.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(DA.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(DA.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(DA.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});DA.prototype.withMergePolicy=function(a){$ka(this.p,a);return this};
DA.prototype.withIdTemplate=function(a){var b=this.p,c=Tj().Xx;Eb(b,c,a);return this};DA.prototype.withPropertiesMapping=function(a){var b=this.p,c=lM(),e=Dsb();a=ml(nl(new ol,c,a,e));c=Tj().Qi;Vg(b,c,a);return this};DA.prototype.withNodeTypeMapping=function(a){var b=this.p,c=Tj().ov;Eb(b,c,a);return this};DA.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(DA.prototype,"mergePolicy",{get:function(){lM();var a=Zka(this.p);lM().wb();return Gb(a)},configurable:!0});
Object.defineProperty(DA.prototype,"idTemplate",{get:function(){lM();var a=B(this.p.g,Tj().Xx);lM().wb();return Gb(a)},configurable:!0});DA.prototype.propertiesMapping=function(){var a=lM(),b=B(this.p.g,Tj().Qi),c=Dsb();return Il(a,b,c).sb()};Object.defineProperty(DA.prototype,"nodetypeMapping",{get:function(){lM();var a=B(this.p.g,Tj().ov);lM().wb();return Gb(a)},configurable:!0});Object.defineProperty(DA.prototype,"name",{get:function(){return this.Ie()},configurable:!0});
DA.prototype.$classData=q({Y6:0},!1,"amf.client.model.domain.NodeMapping",{Y6:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function sn(){this.na=this.p=null}sn.prototype=new r;sn.prototype.constructor=sn;d=sn.prototype;d.hfa=function(){S();var a=B(this.p.g,rn().li);return H_a(Esb(),a)};d.d4=function(){return this.ega()};d.L=function(){return"ParametrizedSecurityScheme"};d.a=function(){M();var a=(new N).a();sn.prototype.pBa.call(this,(new x6).P((new Q).a(),a));return this};
d.Xf=function(){S();var a=B(this.p.g,rn().$);S().wb();return Gb(a)};d.H=function(){return 1};d.nd=function(){return SS(this)};d.Ie=function(){return this.Xf()};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Iia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.ega=function(){S();var a=this.p.vX();J_a(S());return(new G_).JU(a)};
d.u=function(){return U(W(),this)};d.$4=function(){S();var a=B(this.p.g,rn().Eq);return G_a(Fsb(),a)};d.bga=function(){S();var a=this.p.v3();N_a(S());return(new E_).IU(a)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.$fa=function(){S();var a=this.p.uQ();L_a(S());return(new C_).HU(a)};d.e4=function(){return this.fga()};d.rd=function(){return PS(this)};d.pBa=function(a){this.p=a;this.na=ju().na;return this};d.g4=function(){return this.iga()};d.sd=function(){return OS(this)};
d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.iga=function(){S();var a=this.p.w3();P_a(S());return(new K_).MU(a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.M3=function(){return this.$fa()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.fga=function(){S();var a=this.p.xQ();K_a(S());return(new I_).KU(a)};d.xe=function(a){var b=this.p,c=rn().$;Eb(b,c,a);return this};
d.s4=function(a){var b=this.p;S();Esb();a=a.p;var c=rn().li;ff(b,c,a);return this};d.aga=function(){S();var a=this.p.tX();return H_a(Esb(),a)};d.b5=function(){return this.hfa()};d.Q3=function(){return this.aga()};d.Z3=function(){return this.bga()};sn.prototype.annotations=function(){return this.bc()};sn.prototype.graph=function(){return this.nd()};sn.prototype.withId=function(a){return this.qd(a)};sn.prototype.withExtendsNode=function(a){return this.pd(a)};
sn.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(sn.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(sn.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(sn.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(sn.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});
sn.prototype.withOpenIdConnectSettings=function(){return this.g4()};sn.prototype.withHttpSettings=function(){return this.Z3()};sn.prototype.withApiKeySettings=function(){return this.M3()};sn.prototype.withOAuth2Settings=function(){return this.e4()};sn.prototype.withOAuth1Settings=function(){return this.d4()};sn.prototype.withDefaultSettings=function(){return this.Q3()};sn.prototype.withSettings=function(a){return this.s4(a)};
sn.prototype.withScheme=function(a){var b=this.p;S();Fsb();a=a.p;var c=rn().Eq;ff(b,c,a);return this};sn.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(sn.prototype,"settings",{get:function(){return this.b5()},configurable:!0});Object.defineProperty(sn.prototype,"scheme",{get:function(){return this.$4()},configurable:!0});Object.defineProperty(sn.prototype,"name",{get:function(){return this.Ie()},configurable:!0});
sn.prototype.$classData=q({Iia:0},!1,"amf.client.model.domain.ParametrizedSecurityScheme",{Iia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function ko(){this.na=this.p=null}ko.prototype=new r;ko.prototype.constructor=ko;d=ko.prototype;d.a=function(){M();var a=(new N).a();ko.prototype.XAa.call(this,(new L2).P((new Q).a(),a));return this};d.XAa=function(a){this.p=a;this.na=ju().na;return this};d.L=function(){return"PropertyDependencies"};
d.tR=function(){var a=S(),b=B(this.p.g,jo().vJ),c=S().wb();return Il(a,b,c).sb()};d.H=function(){return 1};d.nd=function(){return SS(this)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Lia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};
d.qd=function(a){return RS(this,a)};d.c5=function(){S();var a=B(this.p.g,jo().uJ);S().wb();return Gb(a)};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};ko.prototype.annotations=function(){return this.bc()};ko.prototype.graph=function(){return this.nd()};ko.prototype.withId=function(a){return this.qd(a)};
ko.prototype.withExtendsNode=function(a){return this.pd(a)};ko.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(ko.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(ko.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(ko.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});
Object.defineProperty(ko.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});ko.prototype.withPropertyTarget=function(a){var b=this.p,c=S(),e=S().oh();a=ml(nl(new ol,c,a,e));c=jo().vJ;dr(b,c,a);return this};ko.prototype.withPropertySource=function(a){var b=this.p,c=jo().uJ;Eb(b,c,a);return this};Object.defineProperty(ko.prototype,"target",{get:function(){return this.tR()},configurable:!0});
Object.defineProperty(ko.prototype,"source",{get:function(){return this.c5()},configurable:!0});ko.prototype.$classData=q({Lia:0},!1,"amf.client.model.domain.PropertyDependencies",{Lia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function EA(){this.na=this.p=null}EA.prototype=new r;EA.prototype.constructor=EA;d=EA.prototype;d.L=function(){return"PropertyMapping"};d.Xf=function(){lM();var a=B(this.p.g,sf().$);lM().wb();return Gb(a)};
d.a=function(){M();var a=(new N).a();EA.prototype.GAa.call(this,(new fN).P((new Q).a(),a));return this};d.GAa=function(a){this.p=a;this.na=ju().na;return this};d.H=function(){return 1};d.nd=function(){return SS(this)};d.Eca=function(){lM();var a=B(this.p.g,sf().Uh);lM().ww();return xK(a)};d.XQ=function(a){var b=this.p,c=sf().vl;Eb(b,c,a);return this};d.pd=function(a){return US(this,a)};d.EQ=function(){return this.Xf()};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Mia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.Jd=function(){return this.p};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function Gsb(a){var b=Wa().Ia(ET(a.p));if(x(b)){var c=b.i,b=lM(),e=pc(Os(),G());a=pd(c,e,qd(function(){return function(a,b){var c=(new P).N(a,b);a=c.ep;b=c.rq;if(null!==b)return c=b.pa(),b=b.Ba(),a.Oe(c,b),a;throw(new v).d(c);}}(a)));c=lM().oh();return Tea(b,a,c).sb()}if(w()===b)return b=lM(),a=pc(Os(),G()),c=lM().oh(),Tea(b,a,c).sb();throw(new v).d(b);}d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.cW=function(){lM();var a=B(this.p.g,sf().vl);lM().wb();return Gb(a)};
d.rd=function(){return PS(this)};d.yV=function(){lM();var a=B(this.p.g,sf().ij);lM().xD();return vK(a)};
function Hsb(a){a=VGa(a.p);if(fGa()===a)return"extension_property";if(hGa()===a)return"literal_property";if(MM()===a)return"object_property";if(OM()===a)return"object_property_collection";if(JM()===a)return"object_map_property";kGa||(kGa=(new HM).a());if(kGa===a)return"object_map_inheritance";if(nGa()===a)return"object_pair_property";if(jGa()===a)return"literal_property_collection";throw Lb(Mb(),(new Nb).e("Unknown property classification "+a));}d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};
d.SQ=function(a){var b=this.p,c=sf().ij;er(b,c,a);return this};d.UQ=function(a){var b=this.p,c=sf().jj;er(b,c,a);return this};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.AV=function(){lM();var a=B(this.p.g,sf().jj);lM().xD();return vK(a)};d.a4=function(a){var b=this.p,c=sf().Uh;lr(b,c,a);return this};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p,c=sf().$;Eb(b,c,a);return this};
EA.prototype.annotations=function(){return this.bc()};EA.prototype.graph=function(){return this.nd()};EA.prototype.withId=function(a){return this.qd(a)};EA.prototype.withExtendsNode=function(a){return this.pd(a)};EA.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(EA.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(EA.prototype,"id",{get:function(){return this.hc()},configurable:!0});
Object.defineProperty(EA.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(EA.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});EA.prototype.classification=function(){return Hsb(this)};EA.prototype.withTypeDiscriminatorName=function(a){var b=this.p,c=cg().gu;Eb(b,c,a);return this};EA.prototype.typeDiscriminatorName=function(){lM();var a=B(this.p.g,cg().gu);lM().wb();return Gb(a)};
EA.prototype.withTypeDiscriminator=function(){throw Lb(Mb(),(new Nb).e("Not implemented yet"));};EA.prototype.typeDiscriminator=function(){return Gsb(this)};EA.prototype.withSorted=function(a){a=!!a;var b=this.p,c=sf().CJ;dj(b,c,a);return this};EA.prototype.sorted=function(){lM();var a=B(this.p.g,sf().CJ);lM().sl();return tK(a)};EA.prototype.withEnum=function(a){var b=this.p,c=lM(),e=lM().MM();TRa(b,ml(nl(new ol,c,a,e)));return this};
EA.prototype["enum"]=function(){var a=lM(),b=B(this.p.g,sf().$I),c;c=lM();null===lM().LM&&null===lM().LM&&(lM().LM=(new qK).Br(c));c=lM().LM;return Il(a,b,c).sb()};EA.prototype.withAllowMultiple=function(a){a=!!a;var b=this.p,c=sf().oz;dj(b,c,a);return this};EA.prototype.allowMultiple=function(){lM();var a=B(this.p.g,sf().oz);lM().sl();return tK(a)};EA.prototype.withMaximum=function(a){return this.SQ(+a)};EA.prototype.maximum=function(){return this.yV()};EA.prototype.withMinimum=function(a){return this.UQ(+a)};
EA.prototype.minimum=function(){return this.AV()};EA.prototype.withPattern=function(a){return this.XQ(a)};EA.prototype.pattern=function(){return this.cW()};EA.prototype.withMinCount=function(a){return this.a4(a|0)};EA.prototype.minCount=function(){return this.Eca()};EA.prototype.withMapValueProperty=function(a){var b=this.p,c=sf().Bw;Eb(b,c,a);return this};EA.prototype.mapValueProperty=function(){lM();var a=B(this.p.g,sf().cu);lM().wb();return Gb(a)};
EA.prototype.withMapKeyProperty=function(a){var b=this.p,c=sf().cu;Eb(b,c,a);return this};EA.prototype.mapKeyProperty=function(){lM();var a=B(this.p.g,sf().cu);lM().wb();return Gb(a)};EA.prototype.objectRange=function(){var a=lM(),b=B(this.p.g,cg().Jg),c=lM().wb();return Il(a,b,c).sb()};EA.prototype.withObjectRange=function(a){var b=this.p,c=lM(),e=lM().oh();a=ml(nl(new ol,c,a,e));c=cg().Jg;dr(b,c,a);return this};EA.prototype.literalRange=function(){lM();var a=B(this.p.g,sf().xf);lM().wb();return Gb(a)};
EA.prototype.withLiteralRange=function(a){var b=this.p,c=sf().xf;Eb(b,c,a);return this};EA.prototype.nodePropertyMapping=function(){lM();var a=B(this.p.g,sf().Kh);lM().wb();return Gb(a)};EA.prototype.withNodePropertyMapping=function(a){var b=this.p,c=sf().Kh;Eb(b,c,a);return this};EA.prototype.name=function(){return this.EQ()};EA.prototype.withName=function(a){return this.xe(a)};
EA.prototype.$classData=q({Mia:0},!1,"amf.client.model.domain.PropertyMapping",{Mia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function NA(){this.na=this.p=null}NA.prototype=new r;NA.prototype.constructor=NA;d=NA.prototype;d.a=function(){M();var a=(new N).a();NA.prototype.IAa.call(this,(new lU).P((new Q).a(),a));return this};d.L=function(){return"PublicNodeMapping"};d.Xf=function(){lM();var a=B(this.p.g,MA().$);lM().wb();return Gb(a)};d.H=function(){return 1};d.nd=function(){return SS(this)};
d.EQ=function(){return this.Xf()};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Oia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};
d.IAa=function(a){this.p=a;this.na=ju().na;return this};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p,c=MA().$;Eb(b,c,a);return this};NA.prototype.annotations=function(){return this.bc()};NA.prototype.graph=function(){return this.nd()};NA.prototype.withId=function(a){return this.qd(a)};NA.prototype.withExtendsNode=function(a){return this.pd(a)};
NA.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(NA.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(NA.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(NA.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(NA.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});
NA.prototype.withMappedNode=function(a){var b=this.p,c=MA().mv;Eb(b,c,a);return this};NA.prototype.mappedNode=function(){lM();var a=B(this.p.g,MA().mv);lM().wb();return Gb(a)};NA.prototype.withName=function(a){return this.xe(a)};NA.prototype.name=function(){return this.EQ()};NA.prototype.$classData=q({Oia:0},!1,"amf.client.model.domain.PublicNodeMapping",{Oia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function An(){this.na=this.p=null}An.prototype=new r;An.prototype.constructor=An;d=An.prototype;
d.zI=function(a){return this.zM(a)};d.L=function(){return"Request"};d.a=function(){M();var a=(new N).a();An.prototype.kBa.call(this,(new T3).P((new Q).a(),a));return this};d.i4=function(){return this.jga()};d.AI=function(a){var b=this.p,c=S(),e=H8();a=ml(nl(new ol,c,a,e));c=yn().Qg;qf(b,c,a);return this};d.H=function(){return 1};d.nd=function(){return SS(this)};d.jga=function(){S();var a=this.p.Sr(w());return h_(I8(),a)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Qia?this.p===a.p:!1};d.kga=function(a){S();a=this.p.x3(a);return e_(H8(),a)};d.zM=function(a){S();a=this.p.sI(a);return e_(H8(),a)};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.HI=function(){return this.GL()};d.k4=function(a){return this.kga(a)};d.u=function(){return U(W(),this)};d.dea=function(){S();var a=B(this.p.g,yn().kj);S().sl();return tK(a)};d.kBa=function(a){this.p=a;this.na=ju().na;return this};
d.fd=function(){return QS(this)};d.GL=function(){var a=S(),b=B(this.p.g,yn().mf),c=I8();return Il(a,b,c).sb()};d.qd=function(a){return RS(this,a)};d.yj=function(){S();var a=B(this.p.g,yn().fb);S().wb();return Gb(a)};d.U4=function(){return this.Tda()};d.rd=function(){return PS(this)};d.Y4=function(){return this.dea()};d.vK=function(){var a=S(),b=B(this.p.g,yn().Qg),c=H8();return Il(a,b,c).sb()};d.n4=function(a){var b=this.p,c=yn().kj;dj(b,c,a);return this};d.GI=function(){return this.vK()};d.sd=function(){return OS(this)};
d.bc=function(){return Eo(this)};d.AM=function(a){S();a=this.p.Sr((new A).d(a));return h_(I8(),a)};d.hi=function(a){var b=this.p,c=yn().fb;Eb(b,c,a);return this};d.Tda=function(){var a=S(),b=B(this.p.g,yn().um),c=H8();return Il(a,b,c).sb()};d.BI=function(a){return this.AM(a)};d.od=function(a){return WS(this,a)};d.Uda=function(){S();var a=B(this.p.g,yn().Dq);return AS(S().wj(),a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};
d.m4=function(a){var b=this.p;S();S().wj();a=a.qg();var c=yn().Dq;ff(b,c,a);return this};d.Rh=function(){return this.yj()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.V4=function(){return this.Uda()};d.l4=function(a){var b=this.p,c=S(),e=H8();a=ml(nl(new ol,c,a,e));c=yn().um;qf(b,c,a);return this};d.CI=function(a){var b=this.p,c=S(),e=I8();a=ml(nl(new ol,c,a,e));c=yn().mf;qf(b,c,a);return this};An.prototype.annotations=function(){return this.bc()};An.prototype.graph=function(){return this.nd()};
An.prototype.withId=function(a){return this.qd(a)};An.prototype.withExtendsNode=function(a){return this.pd(a)};An.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(An.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(An.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(An.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});
Object.defineProperty(An.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});An.prototype.withCookieParameter=function(a){S();var b=this.p;M();var c=(new N).a(),c=(new JB).P((new Q).a(),c);M();var e=(new N).a();a=Ue(c,a,e);c=yn().TI;nh(b,c,a);return e_(H8(),a)};An.prototype.withUriParameter=function(a){S();var b=this.p;M();var c=(new N).a(),c=(new JB).P((new Q).a(),c);M();var e=(new N).a();a=Ue(c,a,e);c=yn().lp;nh(b,c,a);return e_(H8(),a)};
An.prototype.withPayload=function(){for(var a=arguments.length|0,b=0,c=[];b<a;)c.push(arguments[b]),b=b+1|0;switch(c.length|0){case 1:return this.BI(c[0]);case 0:return this.i4();default:throw"No matching overload";}};An.prototype.withHeader=function(a){return this.zI(a)};An.prototype.withQueryParameter=function(a){return this.k4(a)};An.prototype.withCookieParameters=function(a){var b=this.p,c=S(),e=H8();a=ml(nl(new ol,c,a,e));c=yn().TI;qf(b,c,a);return this};
An.prototype.withUriParameters=function(a){var b=this.p,c=S(),e=H8();a=ml(nl(new ol,c,a,e));c=yn().lp;qf(b,c,a);return this};An.prototype.withQueryString=function(a){return this.m4(a)};An.prototype.withPayloads=function(a){return this.CI(a)};An.prototype.withHeaders=function(a){return this.AI(a)};An.prototype.withQueryParameters=function(a){return this.l4(a)};An.prototype.withRequired=function(a){return this.n4(!!a)};An.prototype.withDescription=function(a){return this.hi(a)};
Object.defineProperty(An.prototype,"cookieParameters",{get:function(){var a=S(),b=B(this.p.g,yn().TI),c=H8();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(An.prototype,"uriParameters",{get:function(){var a=S(),b=B(this.p.g,yn().lp),c=H8();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(An.prototype,"queryString",{get:function(){return this.V4()},configurable:!0});Object.defineProperty(An.prototype,"payloads",{get:function(){return this.HI()},configurable:!0});
Object.defineProperty(An.prototype,"headers",{get:function(){return this.GI()},configurable:!0});Object.defineProperty(An.prototype,"queryParameters",{get:function(){return this.U4()},configurable:!0});Object.defineProperty(An.prototype,"required",{get:function(){return this.Y4()},configurable:!0});Object.defineProperty(An.prototype,"description",{get:function(){return this.Rh()},configurable:!0});
An.prototype.$classData=q({Qia:0},!1,"amf.client.model.domain.Request",{Qia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function Gn(){this.na=this.p=null}Gn.prototype=new r;Gn.prototype.constructor=Gn;d=Gn.prototype;d.a=function(){M();var a=(new N).a();Gn.prototype.qBa.call(this,(new RP).P((new Q).a(),a));return this};d.L=function(){return"Scope"};d.Xf=function(){S();var a=B(this.p.g,En().$);S().wb();return Gb(a)};d.H=function(){return 1};d.Ie=function(){return this.Xf()};d.nd=function(){return SS(this)};
d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Via){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.yj=function(){S();var a=B(this.p.g,En().fb);S().wb();return Gb(a)};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};
d.bc=function(){return Eo(this)};d.hi=function(a){var b=this.p,c=En().fb;Eb(b,c,a);return this};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Rh=function(){return this.yj()};d.y=function(){return Y(this)};d.qBa=function(a){this.p=a;this.na=ju().na;return this};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p,c=En().$;Eb(b,c,a);return this};Gn.prototype.annotations=function(){return this.bc()};Gn.prototype.graph=function(){return this.nd()};
Gn.prototype.withId=function(a){return this.qd(a)};Gn.prototype.withExtendsNode=function(a){return this.pd(a)};Gn.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(Gn.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(Gn.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(Gn.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});
Object.defineProperty(Gn.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});Gn.prototype.withDescription=function(a){return this.hi(a)};Gn.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(Gn.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty(Gn.prototype,"name",{get:function(){return this.Ie()},configurable:!0});
Gn.prototype.$classData=q({Via:0},!1,"amf.client.model.domain.Scope",{Via:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function gn(){this.na=this.p=null}gn.prototype=new r;gn.prototype.constructor=gn;d=gn.prototype;d.a=function(){M();var a=(new N).a();gn.prototype.mBa.call(this,(new e6).P((new Q).a(),a));return this};d.L=function(){return"Server"};d.H=function(){return 1};d.nd=function(){return SS(this)};d.qw=function(){return this.wF()};
d.Vfa=function(){var a=S(),b=B(this.p.g,fn().lj),c=H8();return Il(a,b,c).sb()};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Xia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.wF=function(){S();var a=B(this.p.g,fn().Jf);S().wb();return Gb(a)};d.iD=function(a){var b=this.p,c=fn().Jf;Eb(b,c,a);return this};
d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.mBa=function(a){this.p=a;this.na=ju().na;return this};d.qd=function(a){return RS(this,a)};d.yj=function(){S();var a=B(this.p.g,fn().fb);S().wb();return Gb(a)};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.hi=function(a){var b=this.p,c=fn().fb;Eb(b,c,a);return this};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.JI=function(){return this.Vfa()};
d.Rh=function(){return this.yj()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.DI=function(a){var b=this.p,c=S(),e=H8();a=ml(nl(new ol,c,a,e));c=fn().lj;qf(b,c,a);return this};gn.prototype.annotations=function(){return this.bc()};gn.prototype.graph=function(){return this.nd()};gn.prototype.withId=function(a){return this.qd(a)};gn.prototype.withExtendsNode=function(a){return this.pd(a)};gn.prototype.withCustomDomainProperties=function(a){return this.od(a)};
Object.defineProperty(gn.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(gn.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(gn.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(gn.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});
gn.prototype.withVariable=function(a){S();var b=this.p;M();var c=(new N).a(),c=(new JB).P((new Q).a(),c);M();var e=(new N).a();a=Ue(c,a,e);c=fn().lj;nh(b,c,a);return e_(H8(),a)};gn.prototype.withVariables=function(a){return this.DI(a)};gn.prototype.withDescription=function(a){return this.hi(a)};gn.prototype.withUrl=function(a){return this.iD(a)};Object.defineProperty(gn.prototype,"variables",{get:function(){return this.JI()},configurable:!0});
Object.defineProperty(gn.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty(gn.prototype,"url",{get:function(){return this.qw()},configurable:!0});gn.prototype.$classData=q({Xia:0},!1,"amf.client.model.domain.Server",{Xia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function O_(){this.na=this.p=null}O_.prototype=new r;O_.prototype.constructor=O_;d=O_.prototype;d.a=function(){M();var a=(new N).a();O_.prototype.$aa.call(this,(new m2).P((new Q).a(),a));return this};
d.L=function(){return"ShapeExtension"};d.H=function(){return 1};d.nd=function(){return SS(this)};d.pd=function(a){return US(this,a)};d.$aa=function(a){this.p=a;this.na=ju().na;return this};d.Jd=function(){return this.p};d.K4=function(){return this.taa()};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Yia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.rd=function(){return PS(this)};d.F4=function(){Ab();var a=B(this.p.g,Is().Rf);return A_a(Ab().FB(),a)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.X3=function(a){var b=this.p;Ab();Ab().tq();a=a.p;var c=Is().Zj;ff(b,c,a);return this};
d.taa=function(){Ab();var a=B(this.p.g,bf().Zj);return nm(Ab().tq(),a)};d.M=function(){return Z(this)};O_.prototype.annotations=function(){return this.bc()};O_.prototype.graph=function(){return this.nd()};O_.prototype.withId=function(a){return this.qd(a)};O_.prototype.withExtendsNode=function(a){return this.pd(a)};O_.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(O_.prototype,"position",{get:function(){return this.fd()},configurable:!0});
Object.defineProperty(O_.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(O_.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(O_.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});O_.prototype.withExtension=function(a){return this.X3(a)};O_.prototype.withDefinedBy=function(a){var b=this.p;Ab();Ab().FB();a=a.p;var c=Is().Rf;ff(b,c,a);return this};
Object.defineProperty(O_.prototype,"extension",{get:function(){return this.K4()},configurable:!0});Object.defineProperty(O_.prototype,"definedBy",{get:function(){return this.F4()},configurable:!0});O_.prototype.$classData=q({Yia:0},!1,"amf.client.model.domain.ShapeExtension",{Yia:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function J8(){this.na=this.p=null}J8.prototype=new r;J8.prototype.constructor=J8;d=J8.prototype;d.L=function(){return"VariableValue"};
d.Xf=function(){Ab();var a=B(this.p.g,om().$);Ab().wb();return Gb(a)};d.H=function(){return 1};d.Ie=function(){return this.Xf()};d.nd=function(){return SS(this)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.cja){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function $ea(a){var b=new J8;b.p=a;b.na=ju().na;return b}d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.II=function(){Ab();var a=B(this.p.g,om().rf);return nm(Ab().tq(),a)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.xe=function(a){var b=this.p,c=om().$;Eb(b,c,a);return this};J8.prototype.annotations=function(){return this.bc()};J8.prototype.graph=function(){return this.nd()};J8.prototype.withId=function(a){return this.qd(a)};J8.prototype.withExtendsNode=function(a){return this.pd(a)};J8.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(J8.prototype,"position",{get:function(){return this.fd()},configurable:!0});
Object.defineProperty(J8.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(J8.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(J8.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});J8.prototype.withValue=function(a){var b=this.p;a=a.p;var c=om().rf;ff(b,c,a);return this};J8.prototype.withName=function(a){return this.xe(a)};
Object.defineProperty(J8.prototype,"value",{get:function(){return this.II()},configurable:!0});Object.defineProperty(J8.prototype,"name",{get:function(){return this.Ie()},configurable:!0});J8.prototype.$classData=q({cja:0},!1,"amf.client.model.domain.VariableValue",{cja:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function RA(){this.na=this.p=null}RA.prototype=new r;RA.prototype.constructor=RA;d=RA.prototype;
d.a=function(){M();var a=(new N).a();RA.prototype.JAa.call(this,(new SM).P((new Q).a(),a));return this};d.L=function(){return"VocabularyReference"};d.H=function(){return 1};d.nd=function(){return SS(this)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.dja){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.X4=function(){lM();var a=B(this.p.g,Sd().qN);lM().wb();return Gb(a)};d.K3=function(a){lM();var b=this.p,c=Sd().Kp;a=Eb(b,c,a);return R_a(ecb(),a)};d.L9=function(){lM();var a=B(this.p.g,Sd().Kp);lM().wb();return Gb(a)};d.JAa=function(a){this.p=a;this.na=ju().na;return this};d.y4=function(){return this.L9()};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};
d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};RA.prototype.annotations=function(){return this.bc()};RA.prototype.graph=function(){return this.nd()};RA.prototype.withId=function(a){return this.qd(a)};RA.prototype.withExtendsNode=function(a){return this.pd(a)};RA.prototype.withCustomDomainProperties=function(a){return this.od(a)};
Object.defineProperty(RA.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(RA.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(RA.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(RA.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});RA.prototype.withReference=function(a){lM();var b=this.p,c=Sd().qN;a=Eb(b,c,a);return R_a(ecb(),a)};
RA.prototype.withAlias=function(a){return this.K3(a)};Object.defineProperty(RA.prototype,"reference",{get:function(){return this.X4()},configurable:!0});Object.defineProperty(RA.prototype,"alias",{get:function(){return this.y4()},configurable:!0});RA.prototype.$classData=q({dja:0},!1,"amf.client.model.domain.VocabularyReference",{dja:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function io(){this.na=this.p=null}io.prototype=new r;io.prototype.constructor=io;d=io.prototype;d.L=function(){return"XMLSerializer"};
d.a=function(){M();var a=(new N).a();io.prototype.bBa.call(this,(new s3).P((new Q).a(),a));return this};d.Xf=function(){S();var a=B(this.p.g,ho().$);S().wb();return Gb(a)};d.H=function(){return 1};d.nd=function(){return SS(this)};d.Ie=function(){return this.Xf()};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.fja){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.bBa=function(a){this.p=a;this.na=ju().na;return this};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.xe=function(a){var b=this.p,c=ho().$;Eb(b,c,a);return this};io.prototype.annotations=function(){return this.bc()};io.prototype.graph=function(){return this.nd()};io.prototype.withId=function(a){return this.qd(a)};io.prototype.withExtendsNode=function(a){return this.pd(a)};io.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(io.prototype,"position",{get:function(){return this.fd()},configurable:!0});
Object.defineProperty(io.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(io.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(io.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});io.prototype.withPrefix=function(a){var b=this.p,c=ho().nN;Eb(b,c,a);return this};io.prototype.withNamespace=function(a){var b=this.p,c=ho().kN;Eb(b,c,a);return this};io.prototype.withName=function(a){return this.xe(a)};
io.prototype.withWrapped=function(a){a=!!a;var b=this.p,c=ho().HJ;dj(b,c,a);return this};io.prototype.withAttribute=function(a){a=!!a;var b=this.p,c=ho().JF;dj(b,c,a);return this};Object.defineProperty(io.prototype,"prefix",{get:function(){S();var a=B(this.p.g,ho().nN);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(io.prototype,"namespace",{get:function(){S();var a=B(this.p.g,ho().kN);S().wb();return Gb(a)},configurable:!0});
Object.defineProperty(io.prototype,"name",{get:function(){return this.Ie()},configurable:!0});Object.defineProperty(io.prototype,"wrapped",{get:function(){S();var a=B(this.p.g,ho().HJ);S().sl();return tK(a)},configurable:!0});Object.defineProperty(io.prototype,"attribute",{get:function(){S();var a=B(this.p.g,ho().JF);S().sl();return tK(a)},configurable:!0});io.prototype.$classData=q({fja:0},!1,"amf.client.model.domain.XMLSerializer",{fja:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});
function b0(){uf.call(this);this.Xd=null}b0.prototype=new Pnb;b0.prototype.constructor=b0;b0.prototype.te=function(){return this.Xd};b0.prototype.Ui=function(a){uf.prototype.Ui.call(this,a);this.Xd="base-path-lexical";return this};var Dfb=q({mLa:0},!1,"amf.core.annotations.BasePathLexicalInformation",{mLa:1,CY:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});b0.prototype.$classData=Dfb;function g0(){uf.call(this);this.Xd=null}g0.prototype=new Pnb;g0.prototype.constructor=g0;g0.prototype.te=function(){return this.Xd};
g0.prototype.Ui=function(a){uf.prototype.Ui.call(this,a);this.Xd="host-lexical";return this};var Cfb=q({tLa:0},!1,"amf.core.annotations.HostLexicalInformation",{tLa:1,CY:1,f:1,mh:1,lf:1,Sm:1,A:1,w:1,q:1,n:1});g0.prototype.$classData=Cfb;function Bj(){this.t=this.ba=this.Lw=null}Bj.prototype=new r;Bj.prototype.constructor=Bj;d=Bj.prototype;d.L=function(){return"InheritanceProvenance"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.uja?this.Lw===a.Lw:!1};
d.K=function(a){switch(a){case 0:return this.Lw;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){return Y(this)};d.e=function(a){this.Lw=a;this.ba="inheritance-provenance";this.t=a;H(z(),(new J).aa([a]));return this};d.M=function(){return Z(this)};d.cM=function(a){return(new Bj).e(a.R(this.Lw))};var Aj=q({uja:0},!1,"amf.core.annotations.InheritanceProvenance",{uja:1,f:1,mh:1,lf:1,Sm:1,dJ:1,A:1,w:1,q:1,n:1});Bj.prototype.$classData=Aj;
function h0(){this.t=this.ba=this.$S=null}h0.prototype=new r;h0.prototype.constructor=h0;d=h0.prototype;d.L=function(){return"InheritedShapes"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.vja){var b=this.$S;a=a.$S;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.$S;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};
d.ss=function(a){this.$S=a;this.ba="inherited-shapes";this.t=a.ng(",");return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.cM=function(a){var b=this.$S,c=z();return(new h0).ss(b.ka(a,c.s))};d.$classData=q({vja:0},!1,"amf.core.annotations.InheritedShapes",{vja:1,f:1,mh:1,lf:1,Sm:1,dJ:1,A:1,w:1,q:1,n:1});function Wt(){this.t=this.ba=this.nP=null}Wt.prototype=new r;Wt.prototype.constructor=Wt;d=Wt.prototype;d.L=function(){return"ResolvedLinkAnnotation"};d.H=function(){return 1};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Bja?this.nP===a.nP:!1};d.K=function(a){switch(a){case 0:return this.nP;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){return Y(this)};d.e=function(a){this.nP=a;this.ba="resolved-link";this.t=a;H(z(),(new J).aa([a]));return this};d.M=function(){return Z(this)};d.cM=function(a){return(new Wt).e(a.R(this.nP))};
var L2a=q({Bja:0},!1,"amf.core.annotations.ResolvedLinkAnnotation",{Bja:1,f:1,mh:1,lf:1,Sm:1,dJ:1,A:1,w:1,q:1,n:1});Wt.prototype.$classData=L2a;function Xt(){this.t=this.ba=this.oP=null}Xt.prototype=new r;Xt.prototype.constructor=Xt;d=Xt.prototype;d.L=function(){return"ResolvedLinkTargetAnnotation"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Cja?this.oP===a.oP:!1};d.K=function(a){switch(a){case 0:return this.oP;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.y=function(){return Y(this)};d.e=function(a){this.oP=a;this.ba="resolved-link-target";this.t=a;H(z(),(new J).aa([a]));return this};d.M=function(){return Z(this)};d.cM=function(a){return(new Xt).e(a.R(this.oP))};var K2a=q({Cja:0},!1,"amf.core.annotations.ResolvedLinkTargetAnnotation",{Cja:1,f:1,mh:1,lf:1,Sm:1,dJ:1,A:1,w:1,q:1,n:1});Xt.prototype.$classData=K2a;
function Isb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Mc=this.g=this.Jc=this.Aa=this.ja=null}Isb.prototype=new r;Isb.prototype.constructor=Isb;d=Isb.prototype;
d.a=function(){Jsb=this;Iq(this);bT(this);H0(this);I0(this);G5(this);Vib(this);Di();var a=C().Zd,a=(new J).aa([D(new F,a,"DocumentExtension")]),b=Di().s,a=Ei(a,b),b=Ap().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().dg,"Document Extension","A Document that extends a target document, overwriting part of the information or overlaying additional information.",G());return this};d.RD=function(){};d.Yc=function(){};d.yn=function(a){this.ug=a};d.Bn=function(a){this.qc=a};d.wi=function(){return this.Jc};
d.f_=function(a){this.Jc=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.An=function(a){this.jg=a};d.gy=function(a){this.Mc=a};d.Zc=function(){M();var a=(new N).a();return(new mh).P((new Q).a(),a)};d.g_=function(a){this.g=a};d.ec=function(){return this.ja};d.Qp=function(a){this.ob=a};d.Cn=function(a){this.Ud=a};d.SD=function(){};d.zn=function(a){this.nc=a};
d.$classData=q({pMa:0},!1,"amf.core.metamodel.document.ExtensionLikeModel$",{pMa:1,f:1,DY:1,tB:1,xq:1,tn:1,Oc:1,ic:1,Xc:1,Az:1});var Jsb=void 0;function qz(){Jsb||(Jsb=(new Isb).a());return Jsb}function Ksb(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.fb=this.Qx=this.Rx=this.oa=this.ki=this.Xh=this.Th=this.Vh=this.ld=this.Eo=this.Kg=this.Jj=this.vh=this.gd=this.$=this.Aa=this.ja=this.it=null;this.ma=0}Ksb.prototype=new r;Ksb.prototype.constructor=Ksb;d=Ksb.prototype;
d.pp=function(a){this.ef=a};d.qp=function(a){this.kg=a};
d.a=function(){Lsb=this;Iq(this);cT(this);YK(this);Ob(this);r7(this);var a=Xc(),b=C().Gb;this.it=Rb(new Sb,a,D(new F,b,"fixPoint"),Tb(new Ub,Vb().Gb,"fixpoint","Link to the base of the recursion for a recursive shape",G()));Di();var a=C().Gb,a=(new J).aa([D(new F,a,"RecursiveShape")]),b=Di().s,a=Ei(a,b),b=Pg().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().Gb,"Recursive Shape","Recursion on a Shape structure, used when expanding a shape and finding the canonical representation of that shape.",G());
return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Uz=function(a){this.Jj=a};d.op=function(a){this.Je=a};d.Tc=function(){return this.Aa};d.sc=function(){Di();var a=(new J).aa([this.it]),b=Di().s,a=Ei(a,b),b=Pg().g,c=Di(),a=a.la(b,c.s),b=Lc().g,c=Di();return a.la(b,c.s)};d.np=function(a){this.wd=a};d.Vz=function(a){this.gd=a};d.bA=function(a){this.oa=a};d.Rz=function(a){this.Th=a};d.Wz=function(a){this.ld=a};d.$l=function(a){this.fb=a};
d.Zc=function(){var a=(new Q).a();M();var b=(new N).a();return(new bj).P(a,b)};d.Yz=function(a){this.ki=a};d.Sz=function(a){this.Eo=a};d.ec=function(){return this.ja};d.aA=function(a){this.Xh=a};d.Zz=function(a){this.Vh=a};d.$z=function(a){this.Kg=a};d.Xz=function(a){this.$=a};d.Tz=function(a){this.vh=a};d.$classData=q({GMa:0},!1,"amf.core.metamodel.domain.RecursiveShapeModel$",{GMa:1,f:1,xw:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,ul:1});var Lsb=void 0;function ej(){Lsb||(Lsb=(new Ksb).a());return Lsb}
function Msb(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.fb=this.Qx=this.Rx=this.oa=this.ki=this.Xh=this.Th=this.Vh=this.ld=this.Eo=this.Kg=this.Jj=this.vh=this.gd=this.$=this.Aa=this.ja=this.g=null;this.ma=0}Msb.prototype=new r;Msb.prototype.constructor=Msb;d=Msb.prototype;d.pp=function(a){this.ef=a};d.qp=function(a){this.kg=a};
d.a=function(){Nsb=this;Iq(this);cT(this);YK(this);Ob(this);r7(this);var a=Db().g;Di();var b=(new J).aa([this.$,this.gd,this.fb,this.vh,this.Kg,this.ld,this.Jj,this.ki,this.Th,this.Vh,this.Xh,this.Eo]),c=Di().s,b=Ei(b,c),c=Di();this.g=a.la(b,c.s);Di();a=C().cb;a=D(new F,a,"Shape");b=C().Gb;a=(new J).aa([a,D(new F,b,"Shape")]);b=Di().s;a=Ei(a,b);b=Lc().ja;c=Di();this.ja=a.la(b,c.s);a=Vb().Gb;b=z();c=C().cb;this.Aa=Tb(new Ub,a,"Shape","Base class for all shapes. Shapes are Domain Entities that define constraints over parts of a data graph.\nThey can be used to define and enforce schemas for the data graph information through SHACL.\nShapes can be recursive and inherit from other shapes.",
H(b,(new J).aa([Gc(D(new F,c,"Shape"))])));return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Uz=function(a){this.Jj=a};d.op=function(a){this.Je=a};function $w(){var a=Pg();if(0===(1&a.ma)<<24>>24&&0===(1&a.ma)<<24>>24){var b;b=(new Ki).Ld(rj());var c=C().Gb;b=Rb(new Sb,b,D(new F,c,"customShapePropertyDefinitions"),Tb(new Ub,Vb().Gb,"custom shape property definitions","Custom constraint definitions added over a data shape",G()));a.Rx=b;a.ma=(1|a.ma)<<24>>24}return a.Rx}d.Tc=function(){return this.Aa};
d.sc=function(){return this.g};d.np=function(a){this.wd=a};d.Vz=function(a){this.gd=a};d.GA=function(){throw Lb(Mb(),(new Nb).e("Shape is abstract and it cannot be instantiated by default"));};d.bA=function(a){this.oa=a};d.Wz=function(a){this.ld=a};d.Rz=function(a){this.Th=a};d.$l=function(a){this.fb=a};d.Zc=function(){this.GA()};
function lA(){var a=Pg();if(0===(2&a.ma)<<24>>24&&0===(2&a.ma)<<24>>24){var b;b=(new Ki).Ld(Is());var c=C().Gb;b=Rb(new Sb,b,D(new F,c,"customShapeProperties"),Tb(new Ub,Vb().Gb,"custom shape properties","Custom constraint values for a data shape",G()));a.Qx=b;a.ma=(2|a.ma)<<24>>24}return a.Qx}d.Yz=function(a){this.ki=a};d.Sz=function(a){this.Eo=a};d.ec=function(){return this.ja};d.aA=function(a){this.Xh=a};d.$z=function(a){this.Kg=a};d.Zz=function(a){this.Vh=a};d.Xz=function(a){this.$=a};
d.Tz=function(a){this.vh=a};d.$classData=q({IMa:0},!1,"amf.core.metamodel.domain.ShapeModel$",{IMa:1,f:1,xw:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,ul:1});var Nsb=void 0;function Pg(){Nsb||(Nsb=(new Msb).a());return Nsb}function Osb(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.fb=this.Qx=this.Rx=this.oa=this.ki=this.Xh=this.Th=this.Vh=this.ld=this.Eo=this.Kg=this.Jj=this.vh=this.gd=this.$=this.Aa=this.ja=this.rv=this.gp=this.WZ=this.MD=this.YF=this.Uh=this.If=this.$f=null;this.ma=0}
Osb.prototype=new r;Osb.prototype.constructor=Osb;d=Osb.prototype;d.pp=function(a){this.ef=a};d.qp=function(a){this.kg=a};
d.a=function(){Psb=this;Iq(this);cT(this);YK(this);Ob(this);r7(this);var a=Xc(),b=C().cb;this.$f=Rb(new Sb,a,D(new F,b,"path"),Tb(new Ub,Bi().cb,"path","Path to the constrained property",G()));a=Pg();b=C().Gb;this.If=Rb(new Sb,a,D(new F,b,"range"),Tb(new Ub,Vb().Gb,"range","Range property constraint",G()));a=Zc();b=C().cb;this.Uh=Rb(new Sb,a,D(new F,b,"minCount"),Tb(new Ub,Bi().cb,"min. count","Minimum count property constraint",G()));a=Zc();b=C().cb;this.YF=Rb(new Sb,a,D(new F,b,"maxCount"),Tb(new Ub,
Bi().cb,"max. count","Maximum count property constraint",G()));a=Yc();b=C().Gb;this.MD=Rb(new Sb,a,D(new F,b,"readOnly"),Tb(new Ub,Vb().Gb,"read only","Read only property constraint",G()));a=Yc();b=C().Gb;this.WZ=Rb(new Sb,a,D(new F,b,"writeOnly"),Tb(new Ub,Vb().Gb,"write only","Write only property constraint",G()));a=Yc();b=C().Gb;this.gp=Rb(new Sb,a,D(new F,b,"deprecated"),Tb(new Ub,Vb().Gb,"deprecated","Deprecated annotation for a property constraint",G()));a=Pb();b=C().Gb;this.rv=Rb(new Sb,a,
D(new F,b,"patternName"),Tb(new Ub,Vb().Gb,"pattern name","Patterned property constraint",G()));Di();var a=C().cb,a=(new J).aa([D(new F,a,"PropertyShape")]),b=Di().s,a=Ei(a,b),b=Pg().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().Gb,"Property Shape","Constraint over a property in a data shape.",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.Uz=function(a){this.Jj=a};d.op=function(a){this.Je=a};d.Tc=function(){return this.Aa};
d.sc=function(){Di();var a=(new J).aa([this.$f,this.If,this.Uh,this.YF,this.MD,this.rv]),b=Di().s,a=Ei(a,b),b=Pg().g,c=Di(),a=a.la(b,c.s),b=Lc().g,c=Di();return a.la(b,c.s)};d.np=function(a){this.wd=a};d.Vz=function(a){this.gd=a};d.bA=function(a){this.oa=a};d.Rz=function(a){this.Th=a};d.Wz=function(a){this.ld=a};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a();return(new s7).P((new Q).a(),a)};d.Yz=function(a){this.ki=a};d.Sz=function(a){this.Eo=a};d.ec=function(){return this.ja};
d.aA=function(a){this.Xh=a};d.Zz=function(a){this.Vh=a};d.$z=function(a){this.Kg=a};d.Xz=function(a){this.$=a};d.Tz=function(a){this.vh=a};d.$classData=q({PMa:0},!1,"amf.core.metamodel.domain.extensions.PropertyShapeModel$",{PMa:1,f:1,xw:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,ul:1});var Psb=void 0;function rj(){Psb||(Psb=(new Osb).a());return Psb}function Qsb(){this.ke=this.Hb=this.Jc=this.$=this.fb=this.oa=this.lj=this.tD=this.Aa=this.ja=null;this.ma=0}Qsb.prototype=new r;Qsb.prototype.constructor=Qsb;
d=Qsb.prototype;
d.a=function(){Rsb=this;Iq(this);cT(this);Wb(this);Ob(this);Zib(this);var a=C().Zd,a=D(new F,a,"AbstractDeclaration"),b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().dg,"Abstract Declaration","Graph template that can be used to declare a re-usable graph structure that can be applied to different domain elements\nin order to re-use common semantics. Similar to a Lisp macro or a C++ template.\nIt can be extended by any domain element adding bindings for the variables in the declaration.",G());
return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.X9=function(a){this.oa=a};d.Tc=function(){return this.Aa};d.sc=function(){return Yib(this)};d.V9=function(a){this.tD=a};d.GA=function(){throw Lb(Mb(),(new Nb).e("AbstractDeclarationModel is abstract and cannot be instantiated"));};d.$l=function(a){this.fb=a};d.Zc=function(){this.GA()};d.ec=function(){return this.ja};d.W9=function(a){this.lj=a};d.Rp=function(a){this.$=a};
d.$classData=q({RMa:0},!1,"amf.core.metamodel.domain.templates.AbstractDeclarationModel$",{RMa:1,f:1,dka:1,se:1,Oc:1,ic:1,Xc:1,Kj:1,yq:1,ul:1});var Rsb=void 0;function VN(){Rsb||(Rsb=(new Qsb).a());return Rsb}function af(){this.k=this.mb=this.E=this.g=null;this.ma=!1}af.prototype=new r;af.prototype.constructor=af;d=af.prototype;d.L=function(){return"DomainExtension"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return LSa(this,a)};
d.h=function(a){return this===a?!0:bm(a)?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return bf()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){return"/extension"};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};
function BEa(a){a=B(a.g,bf().jr);return!eM(a)}function LSa(a,b){if(Wa().Ia(a.k).b())var c=!0;else c=a.k,c=0<=(c.length|0)&&"null/"===c.substring(0,5);c&&cj(a,b);return a}d.XCa=function(){return B(B(this.g,bf().Rf).g,Zl().Fc)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};function bm(a){return!!(a&&a.$classData&&a.$classData.v.wka)}
d.$classData=q({wka:0},!1,"amf.core.model.domain.extensions.DomainExtension",{wka:1,f:1,qNa:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function m2(){this.k=this.mb=this.E=this.g=null;this.ma=!1}m2.prototype=new r;m2.prototype.constructor=m2;d=m2.prototype;d.L=function(){return"ShapeExtension"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:tgb(a)?this.g===a.g?this.E===a.E:!1:!1};
d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Is()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){var a=Wa().Ia(B(this.g,Is().Rf)),a=a.b()?w():B(a.c().ea,Pg().$).G,a=a.b()?"default-extension":a.c(),a=(new Cf).e(a);return"/shape-extension/"+Gj(a.zd)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};
d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.XCa=function(){return B(B(this.g,Is().Rf).ea,rj().If)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.k="http://a.ml/vocabularies#document/shape_extension";return this};function tgb(a){return!!(a&&a.$classData&&a.$classData.v.yka)}
d.$classData=q({yka:0},!1,"amf.core.model.domain.extensions.ShapeExtension",{yka:1,f:1,qNa:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function x8a(){this.hA=null;this.Xi=0;this.sX=!1}x8a.prototype=new r;x8a.prototype.constructor=x8a;d=x8a.prototype;d.ps=function(a,b){var c=Bc().GS;b=b.Ls;var e=w();iL(this,c,"",e,b,a);this.sX=!0};d.L=function(){return"WarningOnlyHandler"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.q7?this.hA===a.hA:!1};
d.cC=function(a,b){var c=Bc().GS,e=gc(a.Wp);a=DDa(this,a);var f=w();iL(this,c,"",f,e,a.ga);this.sX=!0;return b};d.K=function(a){switch(a){case 0:return this.hA;default:throw(new X).e(""+a);}};d.Vs=function(a,b,c,e,f,g){a=a.k;var h=xc().Eg;mT(this,a,b,c,e,f,h,g)};d.u=function(){return U(W(),this)};d.Hc=function(a,b,c,e,f,g,h){mT(this,a,b,c,e,f,g,h)};d.y=function(){return Y(this)};d.e=function(a){this.hA=a;this.Xi=Yga().xT;this.sX=!1;return this};d.M=function(){return Z(this)};
d.$classData=q({q7:0},!1,"amf.core.parser.WarningOnlyHandler",{q7:1,f:1,p7:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1});function Uka(){yp.call(this);this.x$=this.uT=null}Uka.prototype=new $nb;Uka.prototype.constructor=Uka;Uka.prototype.$classData=q({lQa:0},!1,"amf.plugins.document.graph.parser.GraphParserContext",{lQa:1,au:1,f:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1});function Ssb(){this.GC=0;this.zo=this.vg=this.nm=null;this.Qn=!1;this.hh=null}Ssb.prototype=new LK;Ssb.prototype.constructor=Ssb;d=Ssb.prototype;
d.pX=function(a,b,c){if(beb(a)){var e=(new aN).vb(Wo(Xo(),a)).He(a),f=ib(),g=a.H0(),h=t(new u,function(){return function(a){var b=kb().nm;a=a.G;return Uaa(b,a.b()?null:a.c(),(kb(),bb()))}}(this)),k=z(),g=g.ka(h,k.s),h=z();return lb(f,g,h.s,um()).Lf(t(new u,function(a){return function(b){var c=t(new u,function(){return function(a){return Tsb(kb(),a)}}(a)),e=z();return b.ka(c,e.s)}}(this)),um()).ei(t(new u,function(a,b,c,e,f){return function(g){g=Usb(kb(),c,g);var h=fka((new hu).a());Rk();var k=pc(fc().db,
G());return Qk(Rk()).ifa(b,g,k,h).Lf(t(new u,function(a,b,c,e){return function(f){var g=f.TL();f=function(a,b,c){return function(a){kb();var e=Ek().QD;return qba(b,a,e,c).wa()}}(a,b,c);if(Di().s===Di().s)if(g===G())f=G();else{for(var h=g,k=(new mk).rs(!1),l=(new Qd).d(null),p=(new Qd).d(null);h!==G();){var y=h.fa();f(y).td().X(t(new u,function(a,b,c,e){return function(a){b.ta?(a=oz(new pz,a,G()),e.ta.ve=a,e.ta=a):(c.ta=oz(new pz,a,G()),e.ta=c.ta,b.ta=!0)}}(g,k,l,p)));h=h.sa()}f=k.ta?l.ta:G()}else{Di();
for(h=(new $g).a();!g.b();)k=g.fa(),k=f(k).td(),Er(h,k),g=g.sa();f=h.wa()}a:{for(g=f;!g.b();){if(g.fa().km===xc().tb){g=!0;break a}g=g.sa()}g=!1}return dp(new ep,!g,b.k,e,f)}}(a,e,c,f)),um())}}(this,e,c,a,b)),um())}throw Lb(Mb(),(new Nb).e("Cannot resolve base unit of type "+ka(a)));};d.a=function(){KK.prototype.a.call(this);Vsb=this;this.hh=ju().na;this.nm=(new fQa).a();this.vg=Cl().ba;var a=z(),b=[Cl().ba];this.zo=H(a,(new J).aa(b));this.Qn=!0;return this};d.ECa=function(){return(new A).d(this.nm)};
function C0a(a,b){a=b.Gg;a=bd(a)?a.Cv:w();x(a)?b=(new A).d(a.i.Bt):(b=b.Gg,bd(b)?(b=Hc(Ic(b.Vd.Bd),Pc()),b.b()?b=w():(b=b.c(),b=(new A).d(b.Bb)),b=b.b()?G():b.c(),b=hd(b,new ydb),b.b()?b=w():(b=id(b.c().i),b.b()?b=w():(b=b.c(),b=(new A).d(b.ya)))):b=w(),b.b()?b=w():(b=b.c(),b=(new A).d("%"+b)));if(b.b())return w();b=b.c();return(new A).d(b.split(" ").join(""))}
d.oI=function(a,b){return vd(a)?(new A).d(Ydb((new Wdb).W0(a))):TA(a)?(new A).d(Adb((new zdb).HK(a))):XA(a)?(new A).d(Idb((new Hdb).V0(a))):beb(a)?(new A).d(Pdb(Qdb(new Mdb,a,LCa(this.nm,a).c(),b))):w()};function Tsb(a,b){var c=b.wu(),e=a.nm.qf.Ta(c);if(x(e))return e.i;b=(new bN).vb(Wo(Xo(),b)).He(b);b=IHa((new pN).HK(b));a.nm.qf=a.nm.qf.Zb((new P).N(c,b));return b}d.bF=function(a){var b=new PM;b.ZDa=this.nm;b.jc=a;b.Jq=(new AM).a();return b};
d.aE=function(a){return vd(a)?!0:TA(a)?!0:XA(a)?!0:beb(a)?LCa(this.nm,a).qa():!1};
d.OA=function(a,b){var c=C0a(0,a),e=!1,f=null;if(x(c)){var e=!0,f=c,g=f.i;if(jv().H9===g)return(new A).d(DGa(new QM,a,(new Wsb).vU(b,w())).pda())}if(e&&(g=f.i,jv().P5===g))return(new A).d(wRa(vRa(new pU,a,Xsb(b,a))));if(e&&(g=f.i,jv().N5===g))return(new A).d(vRa(new pU,a,(new K8).vU(b,w())).U1());if(e&&(e=f.i,jv().O5===e))return b=Xsb(b,a),a=vRa(new pU,a,(new K8).vU(b,w())).pda(),TA(a)&&oQa(this.nm,a),(new A).d(a);c.b()?c=w():(c=c.c(),c=kd(ta(),c,"\\|",0),c=(new A).d(Wj((new md).vc(c))));c.b()?e=
w():(e=c.c(),e=kb().nm.W.Ta(e));e.b()&&(kb(),e=Jba(a));if(x(e))a=Ysb(this,a,b,e.i,c);else throw Lb(Mb(),(new Nb).e("Unknown Dialect for document: "+a.ga));return a};d.Gy=function(){var a=z(),b=[wd(),zd(),Sd(),zA(),FA(),Iqa(),ed(),Tj(),cg(),sf(),fd(),MA(),OA(),Lqa(),Kqa(),ZA(),Mqa(),bB(),cHa()];return H(a,(new J).aa(b))};d.py=function(){return H(z(),(new J).aa("application/aml+json application/aml+yaml application/raml application/raml+json application/raml+yaml text/yaml text/x-yaml application/yaml application/x-yaml application/json".split(" ")))};
d.zF=function(){return this.zo};d.dF=function(a,b){return gHa(a)?(new YM).vb(b).He(a):TA(a)?(new bN).vb(b).He(a):$A(a)?(new aN).vb(b).He(a):a};d.wh=function(){return this.vg};function Usb(a,b,c){return c.ae(b,qd(function(){return function(a,b){return Dka(a,b)}}(a)))}d.lO=function(){for(var a=(new dd).Qd(this.nm.W),b=null,b=pc(fc().db,G()),a=a.Rb.gf();a.Qa();)var c=a.Sa(),b=-1===(mK(c).indexOf("Validation Profile")|0)?b.Hh(mK(c),jb(function(a,b){return function(){return Tsb(kb(),b)}}(this,c))):b;return b};
d.Sp=function(){return H(z(),G())};d.SB=function(a){var b;if(b=bd(a.Gg))D0a||(D0a=(new T0).a()),b=B0a(a);return b};d.cn=function(){return hb(ib(),jb(function(){return function(){return kb()}}(this)),um())};
function Ysb(a,b,c,e,f){var g=a.nm;a=function(a,b,c,e){return function(a){var f=!1,g=null;if(x(b)){var f=!0,g=b,h=g.i;if(Zsb(a,h)){g=h.indexOf("/")|0;g=h.substring(1,g);a=x5a(new v2,c,$sb(a,e));var h=Ke(M(),a.W),h=(new A5).P((new Q).a(),h),f=a.Ff.ga,da=Ap().nc,h=Eb(h,da,f),h=Te(h,a.Ff.ga),f=a.m.Bk.k,da=ZA().Rf,h=Eb(h,da,f),f=bB().RR,g=Eb(h,f,g);m5a(l5a(g,a.W,a.Ff.U,a.m),a.Ff.ga);Tc(a.m.ad.Gn)&&(h=(new dd).Qd(a.m.ad.Gn).Rb.gf().kd(),f=ge().ch,qf(g,f,h));h=h5a(a,g);x(h)?(h=h.i,a.m.up.Rl(a.Ff.ga+"#/",
h),a=Rl().ob,a=(new A).d(ff(g,a,h))):a=w();return a}}if(f&&atb(a,g.i))a=x5a(new v2,c,$sb(a,e)),g=Ke(M(),a.W),g=(new B5).P((new Q).a(),g),h=a.Ff.ga,f=Ap().nc,g=Eb(g,f,h),g=Te(g,a.Ff.ga),h=a.m.Bk.k,f=ZA().Rf,g=Eb(g,f,h),$4a(a,"library"),h=l5a(g,a.W,a.Ff.U,a.m),f=jd(g),h=m5a(h,f.b()?g.k:f.c()),Tc(a.m.ad.Gn)&&(f=(new dd).Qd(a.m.ad.Gn).Rb.gf().kd(),da=ge().ch,qf(g,da,f)),a.m.ad.qu().Fa()&&(f=a.m.ad.qu(),da=Ug().Mc,Vg(g,da,f)),h.Mw().Fa()&&(h=h.Mw(),f=Nl().qc,Vg(g,f,h)),ec(a.m.Yh),a=(new A).d(g);else{if(h=
f)g=g.i,h=btb(a)===g.split(" ").join("");h?(g=new v2,a=$sb(a,e),a.r1=!0,a=x5a(g,c,a),g=k5a(a),x(g)?(g=g.i,h=(new Z6).P(g.g,g.E),Te(h,g.k),a=(new A).d(w5a(a,h))):a=w()):a=k5a(x5a(new v2,c,$sb(a,e)))}return a}}(a,f,b,c);if(g.Gm.Ja(e.wu()))return a(e);e=mQa(g,e);return a(e)}
d.Xy=function(){E0a||(E0a=(new U0).a());var a=(new P).N("aliases-location",E0a);F0a||(F0a=(new W0).a());var b=(new P).N("custom-id",F0a);H0a||(H0a=(new $0).a());var c=(new P).N("ref-include",H0a);G0a||(G0a=(new Y0).a());for(var a=[a,b,c,(new P).N("json-pointer-ref",G0a)],b=Ry(new Sy,Xs()),c=0,e=a.length|0;c<e;)Ty(b,a[c]),c=1+c|0;return b.gb};d.LB=function(){return this.Qn};function Xsb(a,b){a=(new yp).co(b.ga,b.U,(new Np).a(),a.Xi,w());return(new K8).vU(a,w())}
d.$classData=q({oQa:0},!1,"amf.plugins.document.vocabularies.AMLPlugin$",{oQa:1,zz:1,f:1,wq:1,AQa:1,wQa:1,aS:1,FD:1,Fb:1,yQa:1});var Vsb=void 0;function kb(){Vsb||(Vsb=(new Ssb).a());return Vsb}function Bdb(){this.Gc=this.st=this.Xb=this.o=this.rb=null}Bdb.prototype=new r;Bdb.prototype.constructor=Bdb;d=Bdb.prototype;d.L=function(){return"DocumentsModelEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Lla){var b=this.rb,c=a.rb;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.Xb,a=a.Xb,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.rb;case 1:return this.o;case 2:return this.Xb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"documents"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f);if(Wa().Ia(B(this.st.g,fd().cs)).qa()){var h=this.Gc,k=z(),l=[(new ctb).AE(this.rb,this.o,this.Xb)],k=H(k,(new J).aa(l)),l=z();this.Gc=h.la(k,l.s)}B(this.st.g,fd().tz).Fa()&&(h=this.Gc,k=z(),l=[(new dtb).AE(this.rb,this.o,this.Xb)],k=H(k,(new J).aa(l)),l=z(),this.Gc=h.la(k,l.s));Wa().Ia(B(this.st.g,fd().ay)).qa()&&(h=this.Gc,k=z(),l=[(new etb).AE(this.rb,this.o,this.Xb)],k=H(k,(new J).aa(l)),l=z(),this.Gc=
h.la(k,l.s));h=this.Gc;k=z();l=[(new ftb).AE(this.rb,this.o,pc(fc().db,G()))];k=H(k,(new J).aa(l));l=z();this.Gc=h.la(k,l.s);iq(Cq(),this.o.Cb(this.Gc),g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,l=g.j.length,k=h=0,p=b.length|0,l=p<l?p:l,p=g.j.length,l=l<p?l:p;h<l;)g.j[k]=b[h],h=1+h|0,k=1+k|0;e.x=f;T(a.r,iC(jC(),c.r))};
d.AE=function(a,b,c){this.rb=a;this.o=b;this.Xb=c;this.st=B(a.g,ed().vj);this.Gc=H(z(),G());return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){var a=Wa().Ia(B(this.st.g,fd().cs));a.b()?a=w():(a.c(),a=Dd(B(this.st.g,fd().cs).g,OA().ft),a.b()?a=w():(a=Zb(a.c().t.E,n(Fd)),a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd))));if(a.b())a=w();else var a=a.c(),b=z(),a=(new A).d(H(b,(new J).aa([a])));a=a.b()?G():a.c();b=Wa().Ia(B(this.st.g,fd().cs));b.b()?b=w():(b=b.c(),b=(new A).d(B(b.g,OA().$t)));var b=b.b()?G():b.c(),c=t(new u,function(){return function(a){return Zb(a.E,n(Fd)).wa()}}(this)),e=z(),b=b.md(c,e.s),c=t(new u,function(){return function(a){return a.cc.Dd}}(this)),
e=z(),b=b.ka(c,e.s),c=Wa().Ia(B(this.st.g,fd().ay));c.b()?c=w():(c=c.c(),c=(new A).d(B(c.g,OA().$t)));var c=c.b()?G():c.c(),e=t(new u,function(){return function(a){a=Zb(a.E,n(Fd));if(a.b())return w();a=a.c();return(new A).d(a.cc.Dd)}}(this)),f=z(),c=c.ka(e,f.s),e=new Cdb,f=z(),c=c.$b(e,f.s),e=B(this.st.g,fd().tz),f=t(new u,function(){return function(a){a=Zb(a.E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.wa()}}(this)),g=z(),e=e.md(f,g.s),f=z(),a=a.la(b,f.s),b=z(),a=a.la(e,b.s),b=z(),
a=a.la(c,b.s);CB();b=fc().ci;a=a.Ej(DB(b)).pc();return a.b()?Gd():a.c()};d.$classData=q({Lla:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.DocumentsModelEmitter",{Lla:1,f:1,ib:1,Ra:1,eJ:1,Cz:1,A:1,w:1,q:1,n:1});function ftb(){this.Q2=this.Gc=this.Ei=this.Xb=this.o=this.rb=null}ftb.prototype=new r;ftb.prototype.constructor=ftb;d=ftb.prototype;d.L=function(){return"DocumentsModelOptionsEmitter"};d.H=function(){return 3};
function gtb(a){var b=z(),c=B(a.Ei.g,fd().Lz).G,e=B(a.Ei.g,fd().qz).G,c=[c,e,B(a.Ei.g,fd().wz).G];return H(b,(new J).aa(c)).tu(t(new u,function(){return function(a){return a.wa()}}(a))).Fa()}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Mla){var b=this.rb,c=a.rb;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.Xb,a=a.Xb,null===b?null===a:O1(b,a)}return!1};
d.K=function(a){switch(a){case 0:return this.rb;case 1:return this.o;case 2:return this.Xb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){if(this.Q2.Fa()){R();var b=Th(R(),"options"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f);iq(Cq(),this.Q2,g);T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);for(var g=e.z,h=g.j.length,k=0,l=0,p=b.length|0,h=p<h?p:h,p=g.j.length,h=h<p?h:p;k<h;)g.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),c.r))}};
d.AE=function(a,b,c){this.rb=a;this.o=b;this.Xb=c;this.Ei=B(a.g,ed().vj);this.Gc=H(z(),G());if(gtb(this)){a=B(this.Ei.g,fd().Lz).G;a=(new P).N("selfEncoded",a);c=B(this.Ei.g,fd().qz).G;c=(new P).N("declarationsPath",c);var e=B(this.Ei.g,fd().wz).G,e=(new P).N("keyProperty",e),f=B(this.Ei.g,fd().AS).G;a=[a,c,e,(new P).N("referenceStyle",f)];c=Ry(new Sy,Xs());e=0;for(f=a.length|0;e<f;)Ty(c,a[e]),e=1+e|0;a=c.gb;c=O().ui;c=(new P).N("selfEncoded",c);var e=O().ui,e=(new P).N("keyProperty",e),f=O().Wa,
f=(new P).N("declarationsPath",f),g=O().Wa;c=[c,e,f,(new P).N("referenceStyle",g)];e=Ry(new Sy,Xs());f=0;for(g=c.length|0;f<g;)Ty(e,c[f]),f=1+f|0;c=e.gb;for(var e=B(this.Ei.g,fd().Lz).E,e=(new P).N("selfEncoded",e),f=B(this.Ei.g,fd().qz).E,f=(new P).N("declarationsPath",f),g=B(this.Ei.g,fd().wz).E,g=(new P).N("keyProperty",g),h=B(this.Ei.g,fd().AS).E,e=[e,f,g,(new P).N("referenceStyle",h)],f=Ry(new Sy,Xs()),g=0,h=e.length|0;g<h;)Ty(f,e[g]),g=1+g|0;c=t(new u,function(a,b,c){return function(a){if(null!==
a){var e=a.pa();a=a.Ba();if(a.b())return w();a=a.c();var f=b.R(e);Cq();var g=c.R(e),g=jq(0,g,n(Fd));return(new A).d(Bv(new Cv,e,ja(a),f,g))}throw(new v).d(a);}}(this,c,f.gb));e=Ce().s;a=De(a,c,e);c=new Ddb;e=Ce();a=a.$b(c,e.s).ce();b=b.Cb(a)}else b=G();this.Q2=b;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=this.Q2.pc();a.b()?a=w():(a=a.c(),a=(new A).d(a.og));return a.b()?Gd():a.c()};
d.$classData=q({Mla:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.DocumentsModelOptionsEmitter",{Mla:1,f:1,ib:1,Ra:1,eJ:1,Cz:1,A:1,w:1,q:1,n:1});function htb(){this.Xb=this.o=this.mg=this.rb=null}htb.prototype=new r;htb.prototype.constructor=htb;d=htb.prototype;d.L=function(){return"FragmentMappingEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Nla){var b=this.rb,c=a.rb;(null===b?null===c:b.h(c))?(b=this.mg,c=a.mg,b=null===b?null===c:b.h(c)):b=!1;if(b&&this.o===a.o)return b=this.Xb,a=a.Xb,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.rb;case 1:return this.mg;case 2:return this.o;case 3:return this.Xb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=B(this.mg.g,OA().ft).G,b=b.b()?null:b.c(),b=lv(this,b);if(x(b)){var b=b.i,c=B(this.mg.g,OA().Sx).G;Bv(new Cv,c.b()?null:c.c(),b,O().Wa,Gd()).Va(a)}else b=B(this.mg.g,OA().Sx).G,b=b.b()?null:b.c(),c=B(this.mg.g,OA().ft).G,Bv(new Cv,b,c.b()?null:c.c(),O().Wa,Gd()).Va(a)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=Zb(this.mg.E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};
d.$classData=q({Nla:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.FragmentMappingEmitter",{Nla:1,f:1,ib:1,Ra:1,eJ:1,Cz:1,A:1,w:1,q:1,n:1});function dtb(){this.Gc=this.Xb=this.o=this.rb=null}dtb.prototype=new r;dtb.prototype.constructor=dtb;d=dtb.prototype;d.L=function(){return"FragmentsDocumentModelEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ola){var b=this.rb,c=a.rb;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.Xb,a=a.Xb,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.rb;case 1:return this.o;case 2:return this.Xb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=Th(R(),"fragments"),c=(new My).e(a.da),e=c.r,f=c.da,g=(new pq).e(f);R();var h=Th(R(),"encodes"),k=(new My).e(g.da),l=k.r,p=k.da,y=(new pq).e(p);this.o.Cb(this.Gc).X(t(new u,function(a,b){return function(a){a.Va(b)}}(this,y)));T(l,lq(R(),rq(sq(),y.r,p),O().ua));l=k.r;h=[h];if(0>l.x)throw(new X).e("0");y=h.length|0;p=l.x+y|0;hC(l,p);Ca(l.z,0,l.z,y,l.x);for(var y=l.z,I=y.j.length,E=0,V=0,da=h.length|0,I=da<I?da:I,da=y.j.length,I=I<da?I:da;E<I;)y.j[V]=h[E],E=1+E|0,V=1+V|0;l.x=
p;T(g.r,iC(jC(),k.r));T(e,lq(R(),rq(sq(),g.r,f),O().ua));e=c.r;b=[b];if(0>e.x)throw(new X).e("0");g=b.length|0;f=e.x+g|0;hC(e,f);Ca(e.z,0,e.z,g,e.x);g=e.z;h=g.j.length;l=k=0;p=b.length|0;h=p<h?p:h;p=g.j.length;for(h=h<p?h:p;k<h;)g.j[l]=b[k],k=1+k|0,l=1+l|0;e.x=f;T(a.r,iC(jC(),c.r))};
d.AE=function(a,b,c){this.rb=a;this.o=b;this.Xb=c;a=B(B(a.g,ed().vj).g,fd().tz);b=t(new u,function(a){return function(b){var c=a.o,h=a.Xb,k=new htb;k.rb=a.rb;k.mg=b;k.o=c;k.Xb=h;return k}}(this));c=z();this.Gc=a.ka(b,c.s);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=this.o.Cb(this.Gc).pc();a.b()?a=w():(a=a.c(),a=(new A).d(a.Oa()));return a.b()?Gd():a.c()};
d.$classData=q({Ola:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.FragmentsDocumentModelEmitter",{Ola:1,f:1,ib:1,Ra:1,eJ:1,Cz:1,A:1,w:1,q:1,n:1});function etb(){this.Gc=this.Ei=this.Xb=this.o=this.rb=null}etb.prototype=new r;etb.prototype.constructor=etb;d=etb.prototype;d.L=function(){return"LibraryDocumentModelEmitter"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Pla){var b=this.rb,c=a.rb;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.Xb,a=a.Xb,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.rb;case 1:return this.o;case 2:return this.Xb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=B(this.Ei.g,OA().$t),c=t(new u,function(a){return function(b){var c=B(b.g,MA().mv).G,c=c.b()?null:c.c(),c=lv(a,c);if(x(c))return c=c.i,b=B(b.g,MA().$).G,Bv(new Cv,b.b()?null:b.c(),c,O().Wa,Gd());c=B(b.g,MA().$).G;c=c.b()?null:c.c();b=B(b.g,MA().mv).G;return Bv(new Cv,c,b.b()?null:b.c(),O().Wa,Gd())}}(this)),e=z(),b=b.ka(c,e.s),c=this.o.Cb(b),b=this.Gc,c=H(z(),(new J).aa([sQa(c)])),e=z();this.Gc=b.la(c,e.s);R();var e=Th(R(),"library"),b=(new My).e(a.da),c=b.r,f=b.da,g=(new pq).e(f);
iq(Cq(),this.o.Cb(this.Gc),g);T(c,lq(R(),rq(sq(),g.r,f),O().ua));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);for(var g=c.z,h=g.j.length,k=0,l=0,p=e.length|0,h=p<h?p:h,p=g.j.length,h=h<p?h:p;k<h;)g.j[l]=e[k],k=1+k|0,l=1+l|0;c.x=f;T(a.r,iC(jC(),b.r))};d.AE=function(a,b,c){this.rb=a;this.o=b;this.Xb=c;this.Ei=B(B(a.g,ed().vj).g,fd().ay);this.Gc=H(z(),G());return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){var a=B(B(B(this.rb.g,ed().vj).g,fd().ay).g,OA().$t),b=t(new u,function(){return function(a){a=Zb(a.E,n(Fd));if(a.b())return w();a=a.c();return(new A).d(a.cc.Dd)}}(this)),c=z(),a=a.ka(b,c.s),b=new Edb,c=z(),a=a.$b(b,c.s);CB();b=fc().ci;a=a.Ej(DB(b)).pc();return a.b()?Gd():a.c()};d.$classData=q({Pla:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.LibraryDocumentModelEmitter",{Pla:1,f:1,ib:1,Ra:1,eJ:1,Cz:1,A:1,w:1,q:1,n:1});
function ctb(){this.Gc=this.Ei=this.Xb=this.o=this.rb=null}ctb.prototype=new r;ctb.prototype.constructor=ctb;d=ctb.prototype;d.L=function(){return"RootDocumentModelEmitter"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Vla){var b=this.rb,c=a.rb;if((null===b?null===c:b.h(c))&&this.o===a.o)return b=this.Xb,a=a.Xb,null===b?null===a:O1(b,a)}return!1};
d.K=function(a){switch(a){case 0:return this.rb;case 1:return this.o;case 2:return this.Xb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){var b=B(this.Ei.g,OA().ft).G;if(!b.b()){var c=b.c(),b=lv(this,c);if(x(b)){var e=b.i,b=this.Gc,c=z(),e=[Bv(new Cv,"encodes",e,O().Wa,Gd())],c=H(c,(new J).aa(e)),e=z();this.Gc=b.la(c,e.s)}else if(w()===b)b=this.Gc,e=z(),c=[Bv(new Cv,"encodes",c,O().Wa,Gd())],c=H(e,(new J).aa(c)),e=z(),this.Gc=b.la(c,e.s);else throw(new v).d(b);}b=B(this.Ei.g,OA().$t);b.Fa()&&(c=t(new u,function(a){return function(b){var c=B(b.g,MA().mv).G,c=c.b()?null:c.c(),c=lv(a,c);if(x(c))return c=c.i,b=B(b.g,MA().$).G,
Bv(new Cv,b.b()?null:b.c(),c,O().Wa,Gd());c=B(b.g,MA().$).G;c=c.b()?null:c.c();b=B(b.g,MA().mv).G;return Bv(new Cv,c,b.b()?null:b.c(),O().Wa,Gd())}}(this)),e=z(),b=b.ka(c,e.s),c=this.o.Cb(b),b=this.Gc,c=H(z(),(new J).aa([vQa(c)])),e=z(),this.Gc=b.la(c,e.s));R();var e=Th(R(),"root"),b=(new My).e(a.da),c=b.r,f=b.da,g=(new pq).e(f);iq(Cq(),this.o.Cb(this.Gc),g);T(c,lq(R(),rq(sq(),g.r,f),O().ua));c=b.r;e=[e];if(0>c.x)throw(new X).e("0");g=e.length|0;f=c.x+g|0;hC(c,f);Ca(c.z,0,c.z,g,c.x);for(var g=c.z,
h=g.j.length,k=0,l=0,p=e.length|0,h=p<h?p:h,p=g.j.length,h=h<p?h:p;k<h;)g.j[l]=e[k],k=1+k|0,l=1+l|0;c.x=f;T(a.r,iC(jC(),b.r))};d.AE=function(a,b,c){this.rb=a;this.o=b;this.Xb=c;this.Ei=B(B(a.g,ed().vj).g,fd().cs);this.Gc=H(z(),G());return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=Zb(B(B(this.rb.g,ed().vj).g,fd().cs).E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};
d.$classData=q({Vla:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.RootDocumentModelEmitter",{Vla:1,f:1,ib:1,Ra:1,eJ:1,Cz:1,A:1,w:1,q:1,n:1});function itb(){this.Aa=this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Mc=this.ch=this.g=this.ja=this.lr=this.RR=this.Rf=null}itb.prototype=new r;itb.prototype.constructor=itb;d=itb.prototype;
d.a=function(){jtb=this;Iq(this);bT(this);H0(this);I0(this);G5(this);DM(this);var a=Xc(),b=C().Kc;this.Rf=Rb(new Sb,a,D(new F,b,"definedBy"),Tb(new Ub,Vb().tm,"","",G()));a=Pb();b=C().Kc;this.RR=Rb(new Sb,a,D(new F,b,"fragment"),Tb(new Ub,Vb().tm,"","",G()));a=(new Ki).Ld(Xc());b=C().Zd;this.lr=Rb(new Sb,a,D(new F,b,"graphDependencies"),Tb(new Ub,Vb().tm,"","",G()));a=C().Kc;a=D(new F,a,"DialectInstanceFragment");b=Rl().ja;this.ja=oz(new pz,a,b);var a=this.Rf,b=this.RR,c=this.lr,e=this.ch,f=Rl().g;
this.g=oz(new pz,a,oz(new pz,b,oz(new pz,c,oz(new pz,e,f))));return this};d.RD=function(){};d.Yc=function(a){this.Aa=a};d.Bn=function(a){this.qc=a};d.yn=function(a){this.ug=a};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.An=function(a){this.jg=a};d.gy=function(a){this.Mc=a};d.Zc=function(){M();var a=(new N).a();return(new A5).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Qp=function(a){this.ob=a};d.Cn=function(a){this.Ud=a};d.SD=function(){};d.zn=function(a){this.nc=a};
d.TD=function(a){this.ch=a};d.$classData=q({xRa:0},!1,"amf.plugins.document.vocabularies.metamodel.document.DialectInstanceFragmentModel$",{xRa:1,f:1,tB:1,xq:1,tn:1,Oc:1,ic:1,Xc:1,Az:1,SF:1});var jtb=void 0;function bB(){jtb||(jtb=(new itb).a());return jtb}function ktb(){this.Aa=this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Mc=this.ch=this.g=this.ja=this.lr=this.Rf=null}ktb.prototype=new r;ktb.prototype.constructor=ktb;d=ktb.prototype;
d.a=function(){ltb=this;Iq(this);bT(this);H0(this);I0(this);G5(this);DM(this);var a=Xc(),b=C().Kc;this.Rf=Rb(new Sb,a,D(new F,b,"definedBy"),Tb(new Ub,Vb().tm,"","",G()));a=(new Ki).Ld(Xc());b=C().Zd;this.lr=Rb(new Sb,a,D(new F,b,"graphDependencies"),Tb(new Ub,Vb().tm,"","",G()));a=C().Kc;a=D(new F,a,"DialectInstanceLibrary");b=Ug().ja;this.ja=oz(new pz,a,b);var a=this.Rf,b=this.lr,c=this.ch,e=Ug().g;this.g=oz(new pz,a,oz(new pz,b,oz(new pz,c,e)));return this};d.RD=function(){};
d.Yc=function(a){this.Aa=a};d.Bn=function(a){this.qc=a};d.yn=function(a){this.ug=a};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.An=function(a){this.jg=a};d.gy=function(a){this.Mc=a};d.Zc=function(){M();var a=(new N).a();return(new B5).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Qp=function(a){this.ob=a};d.Cn=function(a){this.Ud=a};d.SD=function(){};d.zn=function(a){this.nc=a};d.TD=function(a){this.ch=a};
d.$classData=q({yRa:0},!1,"amf.plugins.document.vocabularies.metamodel.document.DialectInstanceLibraryModel$",{yRa:1,f:1,tB:1,xq:1,tn:1,Oc:1,ic:1,Xc:1,Az:1,SF:1});var ltb=void 0;function Mqa(){ltb||(ltb=(new ktb).a());return ltb}function mtb(){this.Aa=this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Mc=this.ch=this.g=this.ja=this.lr=this.Rf=null}mtb.prototype=new r;mtb.prototype.constructor=mtb;d=mtb.prototype;
d.a=function(){ntb=this;Iq(this);bT(this);H0(this);I0(this);G5(this);DM(this);var a=Xc(),b=C().Kc;this.Rf=Rb(new Sb,a,D(new F,b,"definedBy"),Tb(new Ub,Vb().tm,"","",G()));a=(new Ki).Ld(Xc());b=C().Zd;this.lr=Rb(new Sb,a,D(new F,b,"graphDependencies"),Tb(new Ub,Vb().tm,"","",G()));a=C().Kc;a=D(new F,a,"DialectInstance");b=Nl().ja;this.ja=oz(new pz,a,b);var a=this.Rf,b=this.lr,c=this.ch,e=Nl().g;this.g=oz(new pz,a,oz(new pz,b,oz(new pz,c,e)));return this};d.RD=function(){};
d.Yc=function(a){this.Aa=a};d.Bn=function(a){this.qc=a};d.yn=function(a){this.ug=a};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.An=function(a){this.jg=a};d.gy=function(a){this.Mc=a};d.Zc=function(){M();var a=(new N).a();return(new eN).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Qp=function(a){this.ob=a};d.Cn=function(a){this.Ud=a};d.SD=function(){};d.zn=function(a){this.nc=a};d.TD=function(a){this.ch=a};
d.$classData=q({zRa:0},!1,"amf.plugins.document.vocabularies.metamodel.document.DialectInstanceModel$",{zRa:1,f:1,tB:1,xq:1,tn:1,Oc:1,ic:1,Xc:1,Az:1,SF:1});var ntb=void 0;function ZA(){ntb||(ntb=(new mtb).a());return ntb}function otb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Mc=this.ch=this.Aa=this.g=this.ja=this.vj=this.Tm=this.$=null}otb.prototype=new r;otb.prototype.constructor=otb;d=otb.prototype;
d.a=function(){ptb=this;Iq(this);bT(this);H0(this);I0(this);G5(this);DM(this);var a=Pb(),b=C().dc;this.$=Rb(new Sb,a,D(new F,b,"name"),Tb(new Ub,Vb().dc,"name","Name of the dialect",G()));a=Pb();b=C().dc;this.Tm=Rb(new Sb,a,D(new F,b,"version"),Tb(new Ub,Vb().dc,"version","Version of the dialect",G()));a=fd();b=C().Kc;this.vj=Rb(new Sb,a,D(new F,b,"documents"),Tb(new Ub,Vb().Kc,"documents","Document mapping for the the dialect",G()));a=C().Kc;a=D(new F,a,"Dialect");b=Nl().ja;this.ja=oz(new pz,a,b);
var a=this.$,b=this.Tm,c=this.ch,e=this.vj,f=Ap().nc,g=Nl().g;this.g=oz(new pz,a,oz(new pz,b,oz(new pz,c,oz(new pz,e,oz(new pz,f,g)))));this.Aa=Tb(new Ub,Vb().Kc,"Dialect","Definition of an AML dialect, mapping AST nodes from dialect documents into an output semantic graph",G());return this};d.RD=function(){};d.Yc=function(){};d.yn=function(a){this.ug=a};d.Bn=function(a){this.qc=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.An=function(a){this.jg=a};
d.gy=function(a){this.Mc=a};d.Zc=function(){M();var a=(new N).a();return(new mN).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Qp=function(a){this.ob=a};d.Cn=function(a){this.Ud=a};d.SD=function(){};d.zn=function(a){this.nc=a};d.TD=function(a){this.ch=a};d.$classData=q({CRa:0},!1,"amf.plugins.document.vocabularies.metamodel.document.DialectModel$",{CRa:1,f:1,tB:1,xq:1,tn:1,Oc:1,ic:1,Xc:1,Az:1,SF:1});var ptb=void 0;function ed(){ptb||(ptb=(new otb).a());return ptb}
function qtb(){this.Aa=this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.ct=this.mt=this.gu=this.OD=this.$=this.ja=this.g=this.Jg=null;this.ma=0}qtb.prototype=new r;qtb.prototype.constructor=qtb;d=qtb.prototype;d.pp=function(a){this.ef=a};
d.a=function(){rtb=this;Iq(this);cT(this);YK(this);Ud(this);Xba(this);Wba(this);var a=(new o7).Ld(Xc()),b=C().cb;this.Jg=Rb(new Sb,a,D(new F,b,"node"),Tb(new Ub,Bi().cb,"range","Object constraint over the type of the mapped property",G()));var a=this.$,b=this.OD,c=this.gu,e=this.Jg,f=Db().g,g=Lc().g,h=Di(),f=f.la(g,h.s);this.g=oz(new pz,a,oz(new pz,b,oz(new pz,c,oz(new pz,e,f))));a=C().Kc;a=D(new F,a,"UnionNodeMapping");b=C().cb;b=D(new F,b,"Shape");c=Lc().ja;this.ja=oz(new pz,a,oz(new pz,b,c));return this};
d.qp=function(a){this.kg=a};d.k_=function(a){this.$=a};d.Ce=function(a){this.Hb=a};d.Yc=function(a){this.Aa=a};d.$xa=function(a){this.gu=a};d.Zxa=function(a){this.OD=a};d.op=function(a){this.Je=a};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.PN=function(a){this.mt=a};d.np=function(a){this.wd=a};d.Zc=function(){M();var a=(new N).a();return(new kN).P((new Q).a(),a)};d.ON=function(a){this.ct=a};d.ec=function(){return this.ja};
d.$classData=q({RRa:0},!1,"amf.plugins.document.vocabularies.metamodel.domain.UnionNodeMappingModel$",{RRa:1,f:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,eS:1,MRa:1,y7:1});var rtb=void 0;function cg(){rtb||(rtb=(new qtb).a());return rtb}function TM(){b1.call(this);this.ab=this.ea=null}TM.prototype=new K0a;TM.prototype.constructor=TM;d=TM.prototype;d.L=function(){return"DatatypePropertyTerm"};d.H=function(){return 2};d.h=function(a){return this===a?!0:Jqa(a)?this.ea===a.ea?this.ab===a.ab:!1:!1};
d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;default:throw(new X).e(""+a);}};d.rc=function(){return Iqa()};d.ha=function(){return this.ab};d.u=function(){return U(W(),this)};d.ca=function(){return this.ea};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.P=function(a,b){this.ea=a;this.ab=b;return this};function Jqa(a){return!!(a&&a.$classData&&a.$classData.v.qma)}
d.$classData=q({qma:0},!1,"amf.plugins.document.vocabularies.model.domain.DatatypePropertyTerm",{qma:1,xma:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function wT(){this.Rba=this.bV=this.E=this.g=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}wT.prototype=new r;wT.prototype.constructor=wT;
function w2(a,b,c,e){c.$h?Lia(c,t(new u,function(a,b,c,e){return function(l){if(xA(l)){var p=Uj(b),y=c.Zi,I=c.E,E=B(c.g,Db().Je).G;l=a.Is(y,I,l,!(E.b()||!E.c())).Uc(c.k);y=Ke(M(),e);Fh(a,p,l,y)}else throw Lb(Mb(),(new Nb).e("Cannot resolve reference with not dialect domain element value "+l.k));}}(a,b,c,e))):(b=Uj(b),e=Ke(M(),e),Fh(a,b,c,e));return a}d=wT.prototype;d.L=function(){return"DialectDomainElement"};d.Zu=function(a){this.Nk=a};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};
function yT(a,b){a.bV=b;return a}d.Qb=function(a){return Wa().Ia(this.k).b()?cj(this,a):this};
function o5a(a,b,c,e){b=Uj(b);if(G().h(c)&&!a.g.Pb.Ja(b))c=gr(new hr,G(),(new N).a()),e=Ke(M(),e),Fh(a,b,c,e);else{var f=c.jn(t(new u,function(){return function(a){return null!==a&&a.$h?!0:!1}}(a)));if(null===f)throw(new v).d(f);c=f.pa();var f=f.Ba(),f=gr(new hr,f,(new N).a()),g=Ke(M(),e);Fh(a,b,f,g);c.X(t(new u,function(a,b,c){return function(e){null!==e&&e.$h&&Lia(e,t(new u,function(a,b,c){return function(e){if(xA(e)){var f=B(a.g,b),g=z();e=gr(new hr,f.hg(e,g.s),(new N).a());f=Ke(M(),c);Fh(a,b,
e,f)}}}(a,b,c)))}}(a,b,e)))}return a}d.es=function(){};d.It=function(a){this.Zi=a};d.h=function(a){return this===a?!0:xA(a)?this.g===a.g?this.E===a.E:!1:!1};function s5a(a,b,c,e){b=Uj(b);var f=t(new u,function(){return function(a){return Nh(new Oh,a,(new N).a())}}(a)),g=z();c=gr(new hr,c.ka(f,g.s),Ke(M(),e.i));e=Ke(M(),e);Fh(a,b,c,e);return a}d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};
d.El=function(){M();var a=(new N).a(),a=(new wT).P((new Q).a(),a);return yT(xT(Te(a,this.k),Sj(this)),this.bV)};function Jda(a,b){b=a.g.Pb.Ta(b);a=(new feb).Lv(a);b.b()?b=w():(a=Qr(a),b=b.c(),b=a.Ia(b));return b.b()?G():b.c()}
function MQa(a){if(yb(a).qa()){var b=B(a.g,Db().wd).G;if(b.b()&&(b=yb(a),b.b()?b=w():(b=b.c().k,b=kd(ta(),b,"#",0),b=(new A).d(Wj((new md).vc(b)))),b.b()))throw Lb(Mb(),(new Nb).e("Cannot produce include reference without linked element at elem "+a.k));return b.c()}throw Lb(Mb(),(new Nb).e("Cannot produce include reference without linked element at elem "+a.k));}d.rc=function(){return hN(this)};d.Mq=function(){return H(z(),G())};
function F5a(a,b,c,e){b=Uj(b);c=Nh(new Oh,c,Ke(M(),e.i));e=Ke(M(),e);Fh(a,b,c,e);return a}function E5a(a,b,c,e){b=Uj(b);c=Nh(new Oh,c,Ke(M(),e.i));e=Ke(M(),e);Fh(a,b,c,e);return a}d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.lu=function(a){this.Zg=a};d.Nt=function(){return this.Zg};d.Nd=function(){return""};d.Hu=function(){};
function R5a(a){if(yb(a).qa()){var b=yb(a);b.b()?b=w():(b=b.c().k,b=kd(ta(),b,"#",0),b=ld((new md).vc(b)),b=kd(ta(),b,"/",0),b=(new A).d(ld((new md).vc(b))));if(b.b())throw Lb(Mb(),(new Nb).e("Cannot produce local reference without linked element at elem "+a.k));return b.c()}a=a.k;a=kd(ta(),a,"#",0);a=ld((new md).vc(a));a=kd(ta(),a,"/",0);return ld((new md).vc(a))}d.Is=function(a,b,c,e){a=gL(c,a,b);e&&ns(a)&&(b=Db().Je,dj(a,b,e));return a};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};
d.gk=function(a,b){return gL(this,a,b)};d.Qk=function(){return qd(function(){return function(a,b){return(new wT).P(a,b)}}(this))};function I5a(a,b,c,e){b=Uj(b);c=Nh(new Oh,c,Ke(M(),e.i));e=Ke(M(),e);Fh(a,b,c,e);return a}d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};function Eda(a,b){b=a.g.Pb.Ta(b);a=(new ceb).Lv(a);b.b()?b=w():(a=Qr(a),b=b.c(),b=a.Ia(b));return b.b()?G():b.c()}function H5a(a,b,c,e){b=Uj(b);c=Nh(new Oh,c,Ke(M(),e.i));e=Ke(M(),e);Fh(a,b,c,e);return a}d.ca=function(){return this.g};
d.Ht=function(a){this.Jk=a};function SMa(a,b){b=a.g.Pb.Ta(b);a=(new heb).Lv(a);if(b.b())return w();a=Qr(a);b=b.c();return a.Ia(b)}function hN(a){if(a.bV.b())return pv(),jQa(new vT,(pv(),H(z(),G())),(pv(),G()),(pv(),w()));var b=a.bV.Ri(),c=B(Sj(a).g,Tj().Qi),e=t(new u,function(){return function(a){return Uj(a)}}(a)),f=z();return jQa(new vT,b,c.ka(e,f.s),(new A).d(Sj(a)))}
function G8(a,b){return B(Sj(a).g,Tj().Qi).Ib(t(new u,function(a,b){return function(a){a=B(a.g,sf().Kh).G;return(a.b()?null:a.c())===b}}(a,b)))}d.Up=function(a){return Px(this,a)};d.y=function(){return Y(this)};d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};function U4a(a,b){var c=pv().JX;dj(a,c,b)}d.M=function(){return Z(this)};function Gda(a,b){b=a.g.Pb.Ta(b);a=(new eeb).Lv(a);if(b.b())return w();a=Qr(a);b=b.c();return a.Ia(b)}d.Te=function(a){this.k=a};
function G5a(a,b,c,e){b=Uj(b);c=Nh(new Oh,c,Ke(M(),e.i));e=Ke(M(),e);Fh(a,b,c,e);return a}d.ku=function(a){this.zk=a};function xT(a,b){a.Rba=(new A).d(b);return a}function Sj(a){a=a.Rba;if(x(a))return a.i;if(w()===a)throw Lb(Mb(),(new Nb).e("NodeMapping for the instance not defined"));throw(new v).d(a);}d.P=function(a,b){this.g=a;this.E=b;hL(this);this.bV=G();this.Rba=w();return this};function xA(a){return!!(a&&a.$classData&&a.$classData.v.rma)}
d.$classData=q({rma:0},!1,"amf.plugins.document.vocabularies.model.domain.DialectDomainElement",{rma:1,f:1,de:1,Wc:1,Rc:1,Pi:1,A:1,w:1,q:1,n:1});function UM(){b1.call(this);this.ab=this.ea=null}UM.prototype=new K0a;UM.prototype.constructor=UM;d=UM.prototype;d.L=function(){return"ObjectPropertyTerm"};d.H=function(){return 2};d.h=function(a){return this===a?!0:Hqa(a)?this.ea===a.ea?this.ab===a.ab:!1:!1};
d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;default:throw(new X).e(""+a);}};d.rc=function(){return FA()};d.ha=function(){return this.ab};d.u=function(){return U(W(),this)};d.ca=function(){return this.ea};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.P=function(a,b){this.ea=a;this.ab=b;return this};function Hqa(a){return!!(a&&a.$classData&&a.$classData.v.vma)}
d.$classData=q({vma:0},!1,"amf.plugins.document.vocabularies.model.domain.ObjectPropertyTerm",{vma:1,xma:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function stb(){this.GC=0;this.vg=this.zo=this.Ix=null;this.Qn=!1;this.kA=this.hh=null}stb.prototype=new LK;stb.prototype.constructor=stb;d=stb.prototype;d.pX=function(a,b,c,e,f,g){return jqa(a,b,c,this.Ix.QD,e,f,g)};d.aya=function(a){this.zo=a};d.a=function(){KK.prototype.a.call(this);ttb=this;nqa(this);this.hh=ju().na;Z5a(this);qeb(this);this.Ix=Ck();return this};
d.oI=function(a,b){return Ll(a)?(new A).d(Gmb(new Fmb,a,(new tU).Ci(b.jc,yN(),(new ob).a())).d0()):Ol(a)?(new A).d((new utb).CK(a,(new tU).Ci(b.jc,yN(),(new ob).a())).XB()):Ul(a)?(R(),a=B(Xp(a.g,Rl().ob).g,Wl().Sd).G,a=Th(0,a.b()?null:a.c()),(new A).d(YE(ZE(),a))):Sl(a)?(new A).d((new gQ).Uaa(a,(new tU).Ci(b.jc,yN(),(new ob).a())).cK()):w()};d.aE=function(a){return Rm(a)?!0:Pm(a)?!0:Ol(a)?Kn(a.ze()):Ll(a)?Xp(a.g,Ug().Mc).Cd(t(new u,function(){return function(a){return null!==a}}(this))):Sl(a)};
d.bF=function(){return BKa(this.vg,this)};d.OA=function(a,b){return leb(this,a,b)};d.Pg=function(){return wt()};d.Gy=function(){return X5a()};d.q_=function(a){this.kA=a};d.py=function(){return H(z(),(new J).aa("application/json application/yaml application/x-yaml text/yaml text/vnd.yaml text/x-yaml application/openapi+json application/swagger+json application/openapi+yaml application/swagger+yaml application/openapi application/swagger".split(" ")))};d.zF=function(){return this.zo};
d.dF=function(a,b,c){return fb().fv===c?(new uP).vb(b).He(a):fb().WI===c?(new pW).vb(b).He(a):fb().OX===c?IKa(new rP,b,Bk()).He(a):Y5a(this,a,b,c)};d.wh=function(){return this.vg};d.m_=function(a){this.Qn=a};d.lO=function(){return(new wx).IE(this.kA,t(new u,function(){return function(a){return a===Ck().Fi||a===Bk().Fi}}(this)))};d.d_=function(){};d.Sp=function(){return $5a()};d.SB=function(a){a=Jv().oG(a);if(a.b())return!1;a=a.c();var b=Kv();return!(null!==a&&a===b)};
d.cn=function(){return HB(ib(),this)};d.Xy=function(){return b6a()};d.LB=function(){return this.Qn};d.l_=function(a){this.vg=a};d.Yya=function(a,b,c,e){return(new uy).xy(a,b,c,e,w(),w())};d.$classData=q({tTa:0},!1,"amf.plugins.document.webapi.Oas20Plugin$",{tTa:1,zz:1,f:1,wq:1,vTa:1,F7:1,aS:1,d8:1,FD:1,Fb:1});var ttb=void 0;function $aa(){ttb||(ttb=(new stb).a());return ttb}function vtb(){this.GC=0;this.vg=this.zo=this.Ix=null;this.Qn=!1;this.kA=this.hh=null}vtb.prototype=new LK;
vtb.prototype.constructor=vtb;d=vtb.prototype;d.pX=function(a,b,c,e,f,g){return jqa(a,b,c,this.Ix.QD,e,f,g)};d.aya=function(a){this.zo=a};d.a=function(){KK.prototype.a.call(this);wtb=this;nqa(this);this.hh=ju().na;Z5a(this);qeb(this);this.Ix=Dk();return this};
d.oI=function(a,b){return Ll(a)?(new A).d(Gmb(new Fmb,a,(new vU).Ci(b.jc,yN(),(new ob).a())).d0()):Ol(a)?(new A).d((new xtb).CK(a,(new vU).Ci(b.jc,yN(),(new ob).a())).XB()):Ul(a)?(R(),a=B(Xp(a.g,Rl().ob).g,Wl().Sd).G,a=Th(0,a.b()?null:a.c()),(new A).d(YE(ZE(),a))):Sl(a)?(new A).d((new gQ).Uaa(a,(new vU).Ci(b.jc,yN(),(new ob).a())).cK()):w()};d.aE=function(a){return Rm(a)?!0:Pm(a)?!0:Ol(a)?Kn(a.ze()):Ll(a)?Xp(a.g,Ug().Mc).Cd(t(new u,function(){return function(a){return null!==a}}(this))):Sl(a)};
d.bF=function(){return BKa(this.vg,this)};d.OA=function(a,b){return leb(this,a,b)};d.Pg=function(){return xt()};d.Gy=function(){return X5a()};d.q_=function(a){this.kA=a};d.py=function(){return H(z(),(new J).aa("application/json application/yaml application/x-yaml text/yaml text/vnd.yaml text/x-yaml application/openapi+json application/swagger+json application/openapi+yaml application/swagger+yaml application/openapi application/swagger".split(" ")))};d.zF=function(){return this.zo};
d.dF=function(a,b,c){return fb().fv===c?(new oW).vb(b).He(a):fb().WI===c?(new mW).vb(b).He(a):Y5a(this,a,b,c)};d.wh=function(){return this.vg};d.m_=function(a){this.Qn=a};d.lO=function(){return(new wx).IE(this.kA,t(new u,function(){return function(a){return a===aba().Ix.Fi}}(this)))};d.d_=function(){};d.Sp=function(){return $5a()};d.SB=function(a){return Jv().oG(a).Ja(Kv())};d.cn=function(){return HB(ib(),this)};d.Xy=function(){return b6a()};d.LB=function(){return this.Qn};
d.l_=function(a){this.vg=a};d.Yya=function(a,b,c,e){return(new sy).xy(a,b,c,e,w(),w())};d.$classData=q({uTa:0},!1,"amf.plugins.document.webapi.Oas30Plugin$",{uTa:1,zz:1,f:1,wq:1,vTa:1,F7:1,aS:1,d8:1,FD:1,Fb:1});var wtb=void 0;function aba(){wtb||(wtb=(new vtb).a());return wtb}function ytb(){this.GC=0;this.vg=this.zo=this.Ix=null;this.Qn=!1;this.kA=this.hh=null}ytb.prototype=new LK;ytb.prototype.constructor=ytb;d=ytb.prototype;d.pX=function(a,b,c,e,f,g){return jqa(a,b,c,this.Ix.QD,e,f,g)};d.M$=function(){return w()};
d.a=function(){KK.prototype.a.call(this);ztb=this;nqa(this);this.hh=ju().na;Z5a(this);Aeb(this);this.Ix=Gk();return this};d.bya=function(a){this.zo=a};d.oI=function(a,b){return Ol(a)?(new A).d(u$a(new k4,a,(new GU).uU(b.jc,(new ob).a())).XB()):Sl(a)?(new A).d(Ioa(new Iy,a,(new GU).uU(b.jc,(new ob).a())).cK()):w()};d.aE=function(a){return Rm(a)?!1:Pm(a)?!1:Ol(a)?Kn(a.ze()):!Ll(a)&&(Fm(a)||ym(a)||Hm(a)||Jm(a)||Nm(a)||wm(a)||Lm(a)||Ul(a))};d.bF=function(){return BKa(this.vg,this)};
d.OA=function(a,b){return reb(this,a,b)};d.Pg=function(){return oc()};d.Gy=function(){return X5a()};d.q_=function(a){this.kA=a};d.py=function(){return zeb()};d.zF=function(){return this.zo};d.dF=function(a,b,c){return fb().fv===c?(new rW).vb(b).He(a):fb().WI===c?(new qW).vb(b).He(a):Y5a(this,a,b,c)};d.N$=function(a,b,c){var e=b.ga;b=b.U;var f=a.yf,g=z();b=b.la(f,g.s);c.b()?c=w():(c=c.c(),c=(new A).d(kma(mma(),c)));return(new mz).Vk(e,b,a,c,w(),w(),py().On)};d.wh=function(){return this.vg};
d.m_=function(a){this.Qn=a};d.lO=function(){return(new wx).IE(this.kA,t(new u,function(){return function(a){return a===rb().Ix.Fi}}(this)))};d.d_=function(){};d.Sp=function(){return $5a()};d.SB=function(a){a=zKa().oG(a);if(a.b())return!1;a=a.c();return hSa().h(a)?!0:!!(a&&a.$classData&&a.$classData.v.UF)};d.cn=function(){return HB(ib(),this)};d.Xy=function(){return b6a()};d.LB=function(){return this.Qn};d.l_=function(a){this.vg=a};
d.$classData=q({xTa:0},!1,"amf.plugins.document.webapi.Raml08Plugin$",{xTa:1,zz:1,f:1,wq:1,zTa:1,F7:1,aS:1,d8:1,FD:1,Fb:1});var ztb=void 0;function rb(){ztb||(ztb=(new ytb).a());return ztb}function Atb(){this.GC=0;this.vg=this.zo=this.Ix=null;this.Qn=!1;this.kA=this.hh=null}Atb.prototype=new LK;Atb.prototype.constructor=Atb;d=Atb.prototype;d.pX=function(a,b,c,e,f,g){return jqa(a,b,c,this.Ix.QD,e,f,g)};d.M$=function(){return w()};
d.a=function(){KK.prototype.a.call(this);Btb=this;nqa(this);this.hh=ju().na;Z5a(this);Aeb(this);this.Ix=Ek();return this};d.bya=function(a){this.zo=a};d.oI=function(a,b){return Ll(a)?(new A).d(K$a(new J$a,a,(new OU).Ci(b.jc,HN(),(new ob).a())).d0()):Ol(a)?(new A).d(u$a(new k4,a,(new OU).Ci(b.jc,HN(),(new ob).a())).XB()):Ul(a)?(R(),a=B(Xp(a.g,Rl().ob).g,Wl().Sd).G,a=Th(0,a.b()?null:a.c()),(new A).d(YE(ZE(),a))):Sl(a)?(new A).d(Ioa(new Iy,a,(new OU).Ci(b.jc,HN(),(new ob).a())).cK()):w()};
d.aE=function(a){return Rm(a)?!0:Pm(a)?!0:Ol(a)?Kn(a.ze()):Ll(a)||Fm(a)||ym(a)||Hm(a)||Jm(a)||Nm(a)||wm(a)||Lm(a)||Ul(a)};d.bF=function(){return BKa(this.vg,this)};d.OA=function(a,b){return reb(this,a,b)};d.Pg=function(){return nc()};d.Gy=function(){return X5a()};d.q_=function(a){this.kA=a};d.py=function(){return zeb()};d.zF=function(){return this.zo};d.dF=function(a,b,c){return fb().fv===c?(new BP).vb(b).He(a):fb().WI===c?(new sW).vb(b).He(a):fb().OX===c?IKa(new rP,b,Ek()).He(a):Y5a(this,a,b,c)};
d.N$=function(a,b,c){var e=b.ga;b=b.U;var f=a.yf,g=z();b=b.la(f,g.s);c.b()?c=w():(c=c.c(),c=(new A).d(kma(mma(),c)));return(new oy).Vk(e,b,a,c,w(),w(),py().On)};d.wh=function(){return this.vg};d.m_=function(a){this.Qn=a};d.lO=function(){return(new wx).IE(this.kA,t(new u,function(){return function(a){return a===Fk().Fi||a===Ek().Fi||a===yk().Fi}}(this)))};d.d_=function(){};d.Sp=function(){return $5a()};
d.SB=function(a){a=zKa().oG(a);if(a.b())return!1;a=a.c();return wSa().h(a)||Tv().h(a)||Uv().h(a)||DSa().h(a)?!0:Lla().h(a)?!0:Sv().h(a)?!0:Mla().h(a)?!0:Nla().h(a)?!0:Ola().h(a)?!0:Pla().h(a)?!0:Qla().h(a)};d.cn=function(){return HB(ib(),this)};d.Xy=function(){return b6a()};d.LB=function(){return this.Qn};d.l_=function(a){this.vg=a};d.$classData=q({yTa:0},!1,"amf.plugins.document.webapi.Raml10Plugin$",{yTa:1,zz:1,f:1,wq:1,zTa:1,F7:1,aS:1,d8:1,FD:1,Fb:1});var Btb=void 0;
function Zaa(){Btb||(Btb=(new Atb).a());return Btb}function iz(){this.t=this.ba=this.aT=this.Lw=null}iz.prototype=new r;iz.prototype.constructor=iz;d=iz.prototype;d.L=function(){return"ExtensionProvenance"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(vhb(a)&&this.Lw===a.Lw){var b=this.aT;a=a.aT;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Lw;case 1:return this.aT;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.te=function(){return this.ba};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Sq=function(a,b){this.Lw=a;this.aT=b;this.ba="extension-provenance";b.b()?b=w():(b=b.c(),b=(new A).d(",location-\x3e"+b));this.t="id-\x3e"+a+(b.b()?"":b.c());H(z(),(new J).aa([a]));return this};d.cM=function(a){return(new iz).Sq(a.R(this.Lw),this.aT)};function vhb(a){return!!(a&&a.$classData&&a.$classData.v.Oma)}
d.$classData=q({Oma:0},!1,"amf.plugins.document.webapi.annotations.ExtensionProvenance",{Oma:1,f:1,mh:1,lf:1,dJ:1,Sm:1,A:1,w:1,q:1,n:1});function o1(){this.t=this.ba=this.Ik=null}o1.prototype=new r;o1.prototype.constructor=o1;d=o1.prototype;d.L=function(){return"ParsedJSONSchema"};d.H=function(){return 1};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.J7?this.Ik===a.Ik:!1};d.K=function(a){switch(a){case 0:return this.Ik;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.e=function(a){this.Ik=a;this.ba="parsed-json-schema";this.t=a;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};var Zh=q({J7:0},!1,"amf.plugins.document.webapi.annotations.ParsedJSONSchema",{J7:1,f:1,pka:1,Sm:1,lf:1,mh:1,A:1,w:1,q:1,n:1});o1.prototype.$classData=Zh;function Ctb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Mc=this.g=this.Jc=this.Aa=this.ja=null}Ctb.prototype=new r;
Ctb.prototype.constructor=Ctb;d=Ctb.prototype;d.a=function(){Dtb=this;Iq(this);bT(this);H0(this);I0(this);G5(this);Vib(this);Di();var a=C().bb,a=(new J).aa([D(new F,a,"Extension")]),b=Di().s,a=Ei(a,b),b=Nl().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().bb,"Extension","API spec information designed to be applied and compelement the information of a base specification. RAML extensions and overlays are examples of extensions.",G());return this};d.RD=function(){};d.Yc=function(){};
d.yn=function(a){this.ug=a};d.Bn=function(a){this.qc=a};d.wi=function(){return this.Jc};d.f_=function(a){this.Jc=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.An=function(a){this.jg=a};d.gy=function(a){this.Mc=a};d.Zc=function(){M();var a=(new N).a();return(new L3).P((new Q).a(),a)};d.g_=function(a){this.g=a};d.ec=function(){return this.ja};d.Qp=function(a){this.ob=a};d.Cn=function(a){this.Ud=a};d.SD=function(){};d.zn=function(a){this.nc=a};
d.$classData=q({lUa:0},!1,"amf.plugins.document.webapi.metamodel.ExtensionModel$",{lUa:1,f:1,DY:1,tB:1,xq:1,tn:1,Oc:1,ic:1,Xc:1,Az:1});var Dtb=void 0;function lfa(){Dtb||(Dtb=(new Ctb).a());return Dtb}function Etb(){this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Mc=this.g=this.Jc=this.Aa=this.ja=null}Etb.prototype=new r;Etb.prototype.constructor=Etb;d=Etb.prototype;
d.a=function(){Ftb=this;Iq(this);bT(this);H0(this);I0(this);G5(this);Vib(this);Di();var a=C().bb,a=(new J).aa([D(new F,a,"Overlay")]),b=Di().s,a=Ei(a,b),b=Nl().ja,c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().bb,"Overlay Model","Model defining a RAML overlay",G());return this};d.RD=function(){};d.Yc=function(){};d.yn=function(a){this.ug=a};d.Bn=function(a){this.qc=a};d.wi=function(){return this.Jc};d.f_=function(a){this.Jc=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};
d.An=function(a){this.jg=a};d.gy=function(a){this.Mc=a};d.Zc=function(){M();var a=(new N).a();return(new M3).P((new Q).a(),a)};d.g_=function(a){this.g=a};d.ec=function(){return this.ja};d.Qp=function(a){this.ob=a};d.Cn=function(a){this.Ud=a};d.SD=function(){};d.zn=function(a){this.nc=a};d.$classData=q({tUa:0},!1,"amf.plugins.document.webapi.metamodel.OverlayModel$",{tUa:1,f:1,DY:1,tB:1,xq:1,tn:1,Oc:1,ic:1,Xc:1,Az:1});var Ftb=void 0;function mfa(){Ftb||(Ftb=(new Etb).a());return Ftb}
function Gtb(){hO.call(this);this.Qc=this.yc=this.pk=null;this.Wi=!1;this.ge=null}Gtb.prototype=new iO;Gtb.prototype.constructor=Gtb;d=Gtb.prototype;d.L=function(){return"OasFileShapeEmitter"};d.H=function(){return 4};d.mI=function(){return w()};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.woa){var b=this.pk,c=a.pk;(null===b?null===c:b.h(c))&&this.yc===a.yc?(b=this.Qc,c=a.Qc,b=null===b?null===c:b.h(c)):b=!1;return b?this.Wi===a.Wi:!1}return!1};
d.K=function(a){switch(a){case 0:return this.pk;case 1:return this.yc;case 2:return this.Qc;case 3:return this.Wi;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Ua=function(){var a=H(Wg(),hO.prototype.Ua.call(this)),b=this.pk.ea;vh(a,qla("file",this.pk));Wma(this,b,a);b=Dd(b,ao().pB);b.b()||(b=b.c(),(new A).d(vh(a,Kw(new Lw,Hv((new Cf).e("fileTypes")),b,this.yc,!1))));return a};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.pk)),a=zI().Ga(a,yI(zI(),this.yc)),a=zI().Ga(a,yI(zI(),this.Qc)),a=zI().Ga(a,this.Wi?1231:1237);return zI().Wd(a,4)};d.M=function(){return Z(this)};d.tj=function(){return this.ge};function X6a(a,b,c,e,f){var g=new Gtb;g.pk=a;g.yc=b;g.Qc=c;g.Wi=e;g.ge=f;var h=G(),k=G();hO.prototype.LK.call(g,a,b,c,h,k,e,f);return g}
d.$classData=q({woa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasFileShapeEmitter",{woa:1,iJ:1,gN:1,f:1,YVa:1,xWa:1,A:1,w:1,q:1,n:1});function Htb(){hO.call(this);this.Qc=this.yc=this.pk=null;this.Wi=!1;this.ge=null}Htb.prototype=new iO;Htb.prototype.constructor=Htb;d=Htb.prototype;d.L=function(){return"OasScalarShapeEmitter"};d.H=function(){return 4};d.mI=function(){var a=B(this.pk.ea,xh().af).G;if(a.b())return w();a=a.c();return(new A).d(Mna(vx(),a))};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ooa){var b=this.pk,c=a.pk;(null===b?null===c:b.h(c))&&this.yc===a.yc?(b=this.Qc,c=a.Qc,b=null===b?null===c:b.h(c)):b=!1;return b?this.Wi===a.Wi:!1}return!1};d.K=function(a){switch(a){case 0:return this.pk;case 1:return this.yc;case 2:return this.Qc;case 3:return this.Wi;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=H(Wg(),hO.prototype.Ua.call(this)),b=this.pk.ea,c=Dd(b,xh().af);if(!c.b()){var e=c.c(),c=this.ge.RGa().zCa(this.mI().c()),f=Zb(this.pk.ab,n(Av));x(f)?(e=f.i,vh(a,Bv(new Cv,"type",c,O().Wa,e.cc.Dd))):(e=jq(Cq(),e.t.E,n(Fd)),f=O().Wa,vh(a,Bv(new Cv,"type",c,f,e)))}c=Dd(b,xh().sn);if(!x(c))if(w()===c)if(c=this.mI(),c=c.b()?Gg():c.c(),c=dg()===c?(new A).d("byte"):eg()===c?(new A).d("binary"):fg()===c?(new A).d("password"):sg()===c?(new A).d("date-time"):tg()===c?(new A).d("date-time-only"):
ug()===c?(new A).d("time-only"):vg()===c?(new A).d("date-only"):og()===c?(new A).d("int64"):qg()===c?(new A).d("double"):w(),x(c))c=c.i,vh(a,Gha(Iha(),"format",xh().sn,Mca(c),(M(),(new N).a())));else{if(w()!==c)throw(new v).d(c);}else throw(new v).d(c);Wma(this,b,a);return a};function W6a(a,b,c,e,f){var g=new Htb;g.pk=a;g.yc=b;g.Qc=c;g.Wi=e;g.ge=f;var h=G(),k=G();hO.prototype.LK.call(g,a,b,c,h,k,e,f);return g}
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.pk)),a=zI().Ga(a,yI(zI(),this.yc)),a=zI().Ga(a,yI(zI(),this.Qc)),a=zI().Ga(a,this.Wi?1231:1237);return zI().Wd(a,4)};d.M=function(){return Z(this)};d.tj=function(){return this.ge};d.$classData=q({Ooa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasScalarShapeEmitter",{Ooa:1,iJ:1,gN:1,f:1,YVa:1,xWa:1,A:1,w:1,q:1,n:1});function pV(){A1.call(this);this.xj=this.me=this.va=this.Ok=this.Df=this.ee=this.Xd=this.ST=this.vZ=null}
pV.prototype=new z1a;pV.prototype.constructor=pV;function Itb(a,b,c,e){var f=Pqa(Rqa(),a.me);b=Ue(f,b,a.xj);e.R(b);return Ekb(a,b,c).Hi()}d=pV.prototype;d.L=function(){return"OasTypeParser"};d.H=function(){return 5};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.cpa){var b=this.ST,c=a.ST;(null===b?null===c:b.h(c))&&this.Xd===a.Xd&&Yj(this.ee,a.ee)?(b=this.Df,c=a.Df,b=null===b?null===c:b.h(c)):b=!1;return b?this.Ok===a.Ok:!1}return!1};
function Jtb(a,b,c,e){return f7a(new c7a,a,b,a.me,c,t(new u,function(a,b){return function(a){b.R(a)}}(a,e))).Hi()}d.K=function(a){switch(a){case 0:return this.ST;case 1:return this.Xd;case 2:return this.ee;case 3:return this.Df;case 4:return this.Ok;default:throw(new X).e(""+a);}};
function Ktb(a){sq();var b=a.ee.Bb.xb(t(new u,function(a){return function(b){b=b.Da;var c=qe();b=L(b,c,a.va);return!(null!==b&&pa(b,"type"))}}(a))),c=rq(0,b,a.ee.ga.Of);Zf();R();R();b=lq(R(),c,O().ua);b=Lkb(new Kkb,a,(new ag).d(b),a.Xd).DP();a.Df.R(b);c=c.Bb.xb(t(new u,function(a){return function(b){b=b.Da;var c=qe();b=L(b,c,a.va);return"example"!==b&&b!==Hv((new Cf).e("examples"))&&"title"!==b&&"description"!==b&&"default"!==b&&"enum"!==b&&"externalDocs"!==b&&"xml"!==b&&b!==Hv((new Cf).e("facets"))&&
"anyOf"!==b&&"allOf"!==b&&"oneOf"!==b&&"not"!==b}}(a)));sq();var e=c.pc();e.b()?e=w():(e=e.c(),e=(new A).d(e.ga.Of));var c=rq(0,c,e.b()?"":e.c()),e=(new iA).$d(0),f=yc((new K).Y(a.ee),"type").c().i,g=tv(),f=L(f,g,a.va).Jn,c=t(new u,function(a,b,c,e){return function(f){b.ta=1+b.ta|0;var g=f.pb().nb,E=O().Wa;if(g===E){var g=qe(),V=L(f,g,a.va);if("object"===V)return f=""+a.Xd+b.ta,E=function(a,b){return function(a){Te(a,b.k+"/object")}}(a,e),yc((new K).Y(c),Hv((new Cf).e("schema"))).qa()?(g=nVa(pVa(),
a.me),f=Ue(g,f,a.xj),E(f),f=Aob(a,f,c).Hi()):(g=iVa(kVa(),a.me),f=Ue(g,f,a.xj),g=a.va.Mh.uu,E(f),iJa(a.Ok)||dTa(a.Ok)||(E=c.eb.Ta((R(),Th(R(),"id"))),E.b()||(E=E.c(),V=qe(),E=E.Gp(V).Mk(),E.b()||(E=E.c(),dc(g,E,f),L8(a.va,E,f)))),f=Jkb(Ikb(a,f,c,a.va))),(new A).d(f);if("array"===V)return(new A).d(Jtb(a,""+a.Xd+b.ta,c,t(new u,function(a,b){return function(a){Te(a,b.k+"/array")}}(a,e))));if("number"===V)return g=Fg(),E=""+a.Xd+b.ta,f=function(a,b){return function(a){Te(a,b.k+"/number")}}(a,e),Eg()===
g?(g=KW(LW(),a.me),g=Ue(g,E,a.xj),f(g),f=g):Dg()===g?(V=HW(IW(),a.me),E=Ue(V,E,a.xj),f(E),f=wob(a,g,E,c).IH()):(V=PW(QW(),a.me),E=Ue(V,E,a.xj),f(E),f=yob(a,g,E,c).JH()),(new A).d(f);if("integer"===V)return g=jg(),E=""+a.Xd+b.ta,f=function(a,b){return function(a){Te(a,b.k+"/integer")}}(a,e),Eg()===g?(g=KW(LW(),a.me),g=Ue(g,E,a.xj),f(g),f=g):Dg()===g?(V=HW(IW(),a.me),E=Ue(V,E,a.xj),f(E),f=wob(a,g,E,c).IH()):(V=PW(QW(),a.me),E=Ue(V,E,a.xj),f(E),f=yob(a,g,E,c).JH()),(new A).d(f);if("string"===V)return g=
gg(),E=""+a.Xd+b.ta,f=function(a,b){return function(a){Te(a,b.k+"/string")}}(a,e),Eg()===g?(g=KW(LW(),a.me),g=Ue(g,E,a.xj),f(g),f=g):Dg()===g?(V=HW(IW(),a.me),E=Ue(V,E,a.xj),f(E),f=wob(a,g,E,c).IH()):(V=PW(QW(),a.me),E=Ue(V,E,a.xj),f(E),f=yob(a,g,E,c).JH()),(new A).d(f);if("boolean"===V)return g=rg(),E=""+a.Xd+b.ta,f=function(a,b){return function(a){Te(a,b.k+"/boolean")}}(a,e),Eg()===g?(g=KW(LW(),a.me),g=Ue(g,E,a.xj),f(g),f=g):Dg()===g?(V=HW(IW(),a.me),E=Ue(V,E,a.xj),f(E),f=wob(a,g,E,c).IH()):(V=
PW(QW(),a.me),E=Ue(V,E,a.xj),f(E),f=yob(a,g,E,c).JH()),(new A).d(f);if("null"===V)return g=Eg(),E=""+a.Xd+b.ta,f=function(a,b){return function(a){Te(a,b.k+"/nil")}}(a,e),Eg()===g?(g=KW(LW(),a.me),g=Ue(g,E,a.xj),f(g),f=g):Dg()===g?(V=HW(IW(),a.me),E=Ue(V,E,a.xj),f(E),f=wob(a,g,E,c).IH()):(V=PW(QW(),a.me),E=Ue(V,E,a.xj),f(E),f=yob(a,g,E,c).JH()),(new A).d(f);if("any"===V)return f=""+a.Xd+b.ta,g=Pqa(Rqa(),a.me),f=Ue(g,f,a.xj),Te(f,e.k+"/any"),(new A).d(Ekb(a,f,c).Hi());f=a.va;var g=rh().nY,E=e.k,V="Invalid type for disjointUnion "+
V,da=yc((new K).Y(a.ee),"type").c().i,sa=w();Cc(f,g,E,sa,V,da.ga);return w()}g=f.pb().nb;E=O().ua;if(g===E)return jC(),R(),g="union_member_"+b.ta,f=gF(0,Th(R(),g),f),qV(sV(),f,t(new u,function(a,b){return function(a){a.Qb(b.k,a.Ub())}}(a,e)),a.Ok,a.va).wc();g=a.va;E=rh().nY;V=e.k;f="Invalid type for disjointUnion "+f.pb().nb;da=yc((new K).Y(a.ee),"type").c().i;sa=w();Cc(g,E,V,sa,f,da.ga);return w()}}(a,e,c,b)),e=uv(),c=f.ka(c,e.gc);a=(new hfb).uy(a);e=uv();a=c.$b(a,e.gc);a.Fa()&&(c=lo().Ee,Vg(b,c,
a));return b}d.u=function(){return U(W(),this)};
d.wc=function(){var a;if(yc((new K).Y(this.ee),"type").qa()){a=yc((new K).Y(this.ee),"type").c().i;var b=tv();a=a.Gp(b).Mk().qa()}else a=!1;if(a)return(new A).d(Ktb(this));a=this.Ok;a=iJa(a)&&"parameter"===a.Lda?Gg():Xv();b=yc((new K).Y(this.ee),"$ref");b.b()?b=w():(b.c(),b=(new A).d(nLa()));if(b.b())if(b=yc((new K).Y(this.ee),"type"),b.b())b=w();else{var b=b.c(),c=b.i,e=zc(),c=L(c,e,this.va).ya,e=yc((new K).Y(this.ee),"format");e.b()?e=w():(e=e.c().i,e=Hc(Ic(e),zc()),e.b()?e=w():(e=e.c(),e=(new A).d(e.ya)));
e=e.b()?"":e.c();Gla();var f=Gg(),e="string"===c?"time-only"===e?ug():"date"===e?vg():"date-only"===e?vg():"date-time"===e?sg():"date-time-only"===e?tg():"password"===e?fg():"byte"===e?dg():"binary"===e?eg():gg():"null"===c?Eg():"integer"===c?"int64"===e?og():jg():"number"===c?"float"===e?pg():"double"===e?qg():Fg():"boolean"===c?rg():"object"===c?xg():"array"===c?wg():"file"===c?Dg():f,f=Gg();if(null!==e&&e===f){var e=this.va,f=rh().G6,c="Invalid type "+c,b=b.i,g=w();Cc(e,f,"",g,c,b.ga);b=w()}else b=
(new A).d(e)}b.b()&&(b=yc((new K).Y(this.ee),"properties"),b=b.b()?yc((new K).Y(this.ee),"x-amf-merge"):b,b=b.b()?yc((new K).Y(this.ee),"minProperties"):b,b=b.b()?yc((new K).Y(this.ee),"maxProperties"):b,b=b.b()?yc((new K).Y(this.ee),"dependencies"):b,b=b.b()?yc((new K).Y(this.ee),"patternProperties"):b,b=b.b()?yc((new K).Y(this.ee),"additionalProperties"):b,b=b.b()?yc((new K).Y(this.ee),"discriminator"):b,b=b.b()?yc((new K).Y(this.ee),"required"):b,b.b()?b=w():(b.c(),b=(new A).d(xg())));b.b()&&(b=
yc((new K).Y(this.ee),"x-amf-union"),b.b()?b=w():(b.c(),b=(new A).d(Yv())));b.b()&&(b=yc((new K).Y(this.ee),"items"),b=b.b()?yc((new K).Y(this.ee),"minItems"):b,b=b.b()?yc((new K).Y(this.ee),"maxItems"):b,b=b.b()?yc((new K).Y(this.ee),"uniqueItems"):b,b.b()?b=w():(b.c(),b=(new A).d(wg())));b.b()&&(b=yc((new K).Y(this.ee),"multipleOf"),b=b.b()?yc((new K).Y(this.ee),"minimum"):b,b=b.b()?yc((new K).Y(this.ee),"maximum"):b,b=b.b()?yc((new K).Y(this.ee),"exclusiveMinimum"):b,b=b.b()?yc((new K).Y(this.ee),
"exclusiveMaximum"):b,b.b()?b=w():(b.c(),b=(new A).d(Fg())));b.b()&&(b=yc((new K).Y(this.ee),"minLength"),b=b.b()?yc((new K).Y(this.ee),"maxLength"):b,b=b.b()?yc((new K).Y(this.ee),"pattern"):b,b=b.b()?yc((new K).Y(this.ee),"format"):b,b.b()?b=w():(b.c(),b=(new A).d(gg())));a=b.b()?a:b.c();a=Yv()===a?(new A).d(this.xda()):nLa()===a?Ltb(this):xg()===a?(new A).d(Mtb(this,this.Xd,this.ee,this.Df)):wg()===a?(new A).d(Jtb(this,this.Xd,this.ee,this.Df)):Xv()===a?(new A).d(Itb(this,this.Xd,this.ee,this.Df)):
eda(a)?(new A).d(Ntb(this,a,this.Xd,this.ee,this.Df)):w();if(x(a)&&(b=a.i,null!==b))return iJa(this.Ok)&&xO(this.va,b.k,this.ee,this.Ok.Lda),dTa(this.Ok)?(new A).d(Otb(this,b)):(new A).d(b);if(w()===a)return w();throw(new v).d(a);};
function oV(a,b,c,e,f,g,h){a.ST=b;a.Xd=c;a.ee=e;a.Df=f;a.Ok=g;a.va=h;A1.prototype.BE.call(a,h);if(Ep(b))c=b.i;else if(Hp(b))c=b.i;else throw(new v).d(b);a.me=c;b=(new Qx).wp(b).Mk();b.b()?b=w():(b=b.c(),b=(new A).d(Ke(M(),b.Da)));a.xj=b.b()?(M(),(new N).a()):b.c();return a}d.xda=function(){return Lkb(new Kkb,this,this.ST,this.Xd).DP()};
function Ltb(a){var b=yc((new K).Y(a.ee),"$ref");if(b.b())return w();var c=b.c(),e=c.i.pb().nb;if(O().yd===e)return w();R();var f=c.i,g=a.va,h=qe(),k=L(f,h,g),l,p=Hy(),y=(new ph).e(k);l=Zo(y,p.U_);var I=cz(a.va.Mh,l,Nr(),w());if(x(I)){var E=I.i.gk(l,Ke(M(),a.me)),V=Ue(E,a.Xd,a.xj),da=Db().Je,sa=dj(V,da,!0);a.Df.R(sa);return(new A).d(sa)}var ua=d1a(a.va,k);var Ia,Pa;if(x(ua)&&null!==ua.i)b:{if(a.va.qV())var Za=k,db=a.va.qV()?l:k;else var Qb=zlb(a.va,a.va.Xg,k),db=Za=Qb;var bc=Za,rc=db,Fc=Ptb(a.va,
bc);if(x(Fc)){var Rd=Fc.i,Ld=Ke(M(),a.me),ze=Rd.gk(bc,Ld),Td=a.Xd;M();var Je=(new N).a(),$d=Ue(ze,Td,Je),te=Db().Je,Hd=dj($d,te,!0);a.Df.R(Hd);Pa=(new A).d(Hd)}else{if(w()===Fc){var ie=LVa(Zoa(),bc,a.ee);M();var Nd=(new N).a(),td=Ue(ie,rc,Nd),yd=Db().Je,ud=dj(td,yd,!0);dz(ud,rc,c,a.va);hc(ud,a.va);a.Df.R(ud);var Ve=a.va;if(Ve&&Ve.$classData&&Ve.$classData.v.bna||Ve&&Ve.$classData&&Ve.$classData.v.fna){if(null===bc)throw(new Rg).a();var Me=Sg(Tg(),"^(\\#\\/definitions\\/){1}([^/\\n])+$",bc)}else Me=
!1;if(Me){var Rc=iVa(kVa(),a.me),me=Ue(Rc,a.Xd,a.xj),Ae=Jb(me,ud),We=Db().wd;Eb(Ae,We,bc);a.Df.R(me);Pa=(new A).d(me);break b}L8(a.va,bc,ud);var od=d1a(a.va,k);if(x(od)){var Ad=od.i;if(null!==Ad){var ue=Ad.Ba();sV();jC();R();var Id=a.Xd,gf=qV(0,gF(0,Th(R(),Id),ue),a.Df,a.Ok,a.va).wc();if(gf.b())var Jd=w();else{var Vd=gf.c();dc(a.va.Yh,rc,Vd);L8(a.va,bc,Vd);if(a.va.qV()||"#"===bc){var je=Vd.gk(bc,Ke(M(),a.me)),Wd=a.Xd;M();var ve=(new N).a(),$c=Ue(je,Wd,ve)}else $c=Vd;Jd=(new A).d($c)}Pa=Jd.b()?(new A).d(ud):
Jd;break b}}if(w()===od){Pa=(new A).d(ud);break b}throw(new v).d(od);}throw(new v).d(Fc);}}else b:{var we=a.va.qV()?l:k,cd=zlb(a.va,a.va.Xg,k),ae=!1,be=null,xe=Ptb(a.va,cd);if(x(xe)){var ae=!0,be=xe,ne=be.i;if(mda(ne)){var Ed=Ke(M(),a.me),Ne=ne.ab,hf=ajb(ne,Ed.Ur(zj(M(),Ne))),Ef=Db().wd,Vf=Eb(hf,Ef,k);dz(Vf,cd,c,a.va);a.Df.R(Vf);Pa=(new A).d(Vf);break b}}if(ae){var Xe=be.i,Ye=Ke(M(),a.me),vf=Xe.gk(k,Ye),Oe=Ue(vf,a.Xd,a.xj),Xd=Db().Je,Ff=dj(Oe,Xd,!0);a.Df.R(Ff);Pa=(new A).d(Ff)}else{var rf=LVa(Zoa(),
cd,c);M();var cf=(new N).a(),hg=Ue(rf,cd,cf).Uc(cd),kg=Db().Je,oe=dj(hg,kg,!0);dz(oe,cd,c,a.va);hc(oe,a.va);a.Df.R(oe);L8(a.va,cd,oe);var wf=Qtb(a.va,cd,a.va);if(wf.b())var ce=w();else{var jf=wf.c();L8(a.va,cd,jf);dc(a.va.Yh,cd,jf);ce=(new A).d(jf)}if(w()===ce){var Kf=dz(oe,we,c,a.va),xf=Db().Je;dj(Kf,xf,!0);Pa=(new A).d(oe)}else if(x(ce)){var Pe=ce.i;if(a.va.Mh.Ti.Ja(we)){var Ze=a.va.Mh,Oc=Ze.Ti.Ta(we);if(x(Oc)){var ke=Oc.i,Lf=Ze.GP;M();var df=(new N).a(),de=(new dQ).P((new Q).a(),df),yg=ke.ga,Mf=
yg.b()?cd:yg.c(),pe=Te(de,Mf),Qe=ke.ga,$e=Qe.b()?cd:Qe.c(),kf=Ap().nc,Re=Eb(pe,kf,$e),le=Rl().ob,Se=ff(Re,le,Pe),Nf=z();Ze.GP=Lf.hg(Se,Nf.s);Ze.Ti=Ze.Ti.Zb((new P).N(we,XB(new YB,Pe,ke.ga)))}else{var Gf=Ze.GP;M();var yf=(new N).a(),ef=(new dQ).P((new Q).a(),yf),lf=Te(ef,cd),mf=Ap().nc,zg=Eb(lf,mf,cd),yh=Rl().ob,Ag=ff(zg,yh,Pe),zh=z();Ze.GP=Gf.hg(Ag,zh.s);var Hf=Ze.Ti,Sf=XB(new YB,Pe,w());Ze.Ti=Hf.Zb((new P).N(we,Sf))}var ig=Pe.gk(we,Ke(M(),a.me)),Wf=Ue(ig,a.Xd,a.xj),Kg=Db().Je;Pa=(new A).d(dj(Wf,
Kg,!0))}else Pa=(new A).d(Pe)}else throw(new v).d(ce);}}Ia=Pa;if(!Ia.b()){var Bg=Ia.c();a.Df.R(Bg)}return Ia}d.y=function(){return Y(this)};
function Otb(a,b){var c=yc((new K).Y(a.ee),"nullable");if(x(c)){var c=c.i,e=Hc(Ic(c.i),kL());if(e.b()?0:e.c())return M(),e=(new N).a(),e=(new ti).P((new Q).a(),e),a=Ue(e,a.Xd,a.xj).Uc(b.k+"/nilUnion"),e=b.ha(),tf(),c=c.Da.ga,e.Wb((new A0).e(zf(0,Af(Bf(),c.vf,c.Ef,c.ag,c.fg)).u())),c=z(),M(),e=(new N).a(),e=(new ii).P((new Q).a(),e),b=[b,Te(e,a.k+"_nil")],b=H(c,(new J).aa(b)),c=lo().Ee,qf(a,c,b),a}return b}function rna(a){null===a.vZ&&null===a.vZ&&(a.vZ=(new U2).uy(a))}d.Jo=function(){return this.va};
d.M=function(){return Z(this)};function Mtb(a,b,c,e){if(yc((new K).Y(c),Hv((new Cf).e("schema"))).qa()){var f=nVa(pVa(),a.me);b=Ue(f,b,a.xj);e.R(b);return Aob(a,b,c).Hi()}f=iVa(kVa(),a.me);b=Ue(f,b,a.xj);Gkb(a,b,c,e,a.va.Mh.uu);return Jkb(Ikb(a,b,c,a.va))}function Gkb(a,b,c,e,f){e.R(b);iJa(a.Ok)||dTa(a.Ok)||(c=c.eb.Ta((R(),Th(R(),"id"))),c.b()||(c=c.c(),e=qe(),c=c.Gp(e).Mk(),c.b()||(c=c.c(),dc(f,c,b),L8(a.va,c,b))))}
function Ntb(a,b,c,e,f){if(Eg()===b)b=KW(LW(),a.me),a=Ue(b,c,a.xj),f.R(a),f=a;else if(Dg()===b){var g=HW(IW(),a.me);c=Ue(g,c,a.xj);f.R(c);f=wob(a,b,c,e).IH()}else g=PW(QW(),a.me),c=Ue(g,c,a.xj),f.R(c),f=yob(a,b,c,e).JH();return f}d.$classData=q({cpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTypeParser",{cpa:1,SY:1,f:1,lv:1,$r:1,ig:1,A:1,w:1,q:1,n:1});function Rtb(){BV.call(this);this.xo=this.ge=this.Qc=this.yc=this.pk=null}Rtb.prototype=new CV;Rtb.prototype.constructor=Rtb;d=Rtb.prototype;
d.L=function(){return"RamlFileShapeEmitter"};d.H=function(){return 3};d.bD=function(){return this.xo};function D7a(a,b,c,e){var f=new Rtb;f.pk=a;f.yc=b;f.Qc=c;f.ge=e;BV.prototype.wy.call(f,a,b,c,e);f.xo=(new A).d("file");return f}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.gqa){var b=this.pk,c=a.pk;if((null===b?null===c:b.h(c))&&this.yc===a.yc)return b=this.Qc,a=a.Qc,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.pk;case 1:return this.yc;case 2:return this.Qc;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Ua=function(){var a=H(Wg(),BV.prototype.Ua.call(this)),b=this.pk.ea;Jca(b,a,this.ge);var c=Dd(b,ao().pB);c.b()||(c=c.c(),(new A).d(vh(a,Kw(new Lw,"fileTypes",c,this.yc,!1))));c=Dd(b,xh().vl);c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,Kh((new Cf).e("pattern")),Kca(c),w()))));c=Dd(b,xh().jj);c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,Kh((new Cf).e("minimum")),c,w()))));c=Dd(b,xh().ij);c.b()||(c=c.c(),(new A).d(vh(a,Ih(new Jh,Kh((new Cf).e("maximum")),c,w()))));b=Dd(b,xh().nv);b.b()||(b=b.c(),(new A).d(vh(a,
Ih(new Jh,Kh((new Cf).e("multipleOf")),b,w()))));(a.b()||1===a.Wq&&kr(this.pk.ea,th().Vc).qa())&&vh(a,Bv(new Cv,"type","file",O().Wa,Gd()));return a};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({gqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlFileShapeEmitter",{gqa:1,HD:1,JD:1,f:1,Dz:1,Xpa:1,A:1,w:1,q:1,n:1});function Stb(){BV.call(this);this.xo=this.cAa=this.mq=this.qga=this.NL=this.ge=this.Qc=this.yc=this.pk=null}Stb.prototype=new CV;
Stb.prototype.constructor=Stb;d=Stb.prototype;d.L=function(){return"RamlScalarShapeEmitter"};d.H=function(){return 3};d.bD=function(){return this.xo};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Cqa){var b=this.pk,c=a.pk;if((null===b?null===c:b.h(c))&&this.yc===a.yc)return b=this.Qc,a=a.Qc,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.pk;case 1:return this.yc;case 2:return this.Qc;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};
d.Ua=function(){var a=this.pk.ea;if(B(this.pk.ea,Pg().ld).b()){var b=Dd(a,xh().af);if(b.b())var c=w();else if(c=b.c(),Yh(c.t.E,n(upa)))c=w();else{gs(this.pk.ea,Pg().ld);var b=this.mq,c=jq(Cq(),c.t.E,n(Fd)),e=O().Wa,c=(new A).d(Bv(new Cv,"type",b,e,c))}}else c=w();b=H(Wg(),BV.prototype.Ua.call(this));c=c.wa();b=b.RJ().Cf(c);Jca(a,b,this.ge);c=Dd(a,xh().vl);c.b()||(c=c.c(),(new A).d(vh(b,Gh(Hh(),"pattern",Kca(c),w(),this.ge))));c=Dd(a,xh().jj);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,"minimum",c,(new A).d(Qma(Rw(),
this.NL))))));c=Dd(a,xh().ij);c.b()||(c=c.c(),(new A).d(vh(b,Ih(new Jh,"maximum",c,(new A).d(Qma(Rw(),this.NL))))));c=Dd(a,xh().nv);c.b()||(c=c.c(),(new A).d(vh(b,Gh(Hh(),"multipleOf",c,(new A).d(Qma(Rw(),this.NL)),this.ge))));var e=this.NL,f=this.cAa,c=sda(e),e=sg()===e?!0:tg()===e?!0:ug()===e?!0:vg()===e,c=c|e?"format":Kh((new Cf).e("format")),g=Gla().lV.kO(ei().lV),e=!1,h=Dd(a,xh().sn);b:{if(x(h)&&(h=h.i,sj(h.t.t))){h=ja(h.t.t.t);g.Ja(h)?g=f:(e=!0,g=h);break b}g=f}f=g!==f?g:f;a=Dd(a,xh().sn);b:{if(x(a)&&
(a=a.i,sj(a.t.t))){a=a.t.E;break b}M();a=(new N).a()}g=(new ph).e(f);Tc(g)&&"float"!==f&&"int32"!==f?a=(new A).d(Gha(Iha(),c,xh().sn,f,a)):(g=(new ph).e(f),a=Tc(g)&&("float"===f||"int32"===f)&&e?(new A).d(Gha(Iha(),c,xh().sn,f,a)):w());Er(b,a.wa());return b};
function E7a(a,b,c,e){var f=new Stb;f.pk=a;f.yc=b;f.Qc=c;f.ge=e;BV.prototype.wy.call(f,a,b,c,e);vx();b=B(a.ea,xh().af).G;f.NL=Mna(0,b.b()?null:b.c());b=fma(hma(),f.NL,Li(a).G);if(null!==b)a=b.pa(),b=b.Ba(),a=(new P).N(a,b);else throw(new v).d(b);f.qga=a;f.mq=f.qga.pa();f.cAa=f.qga.Ba();era||(era=(new qB).a());a=f.NL;jg()===a||og()===a||dg()===a||eg()===a?O():pg()===a||qg()===a||Fg()===a?O():rg()===a?O():(sg()===a||tg()===a||ug()===a||vg(),O());f.xo=w();return f}d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({Cqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlScalarShapeEmitter",{Cqa:1,HD:1,JD:1,f:1,Dz:1,Xpa:1,A:1,w:1,q:1,n:1});function V7a(){w1.call(this);this.NV=this.eb=this.xa=null}V7a.prototype=new x1;V7a.prototype.constructor=V7a;d=V7a.prototype;d.L=function(){return"AnyTypeShapeParser"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Qqa&&a.l===this.l){var b=this.xa,c=a.xa;return(null===b?null===c:b.h(c))?Yj(this.eb,a.eb):!1}return!1};d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.eb;default:throw(new X).e(""+a);}};d.PV=function(){return this.NV};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Qqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$AnyTypeShapeParser",{Qqa:1,lJ:1,mJ:1,f:1,nr:1,GD:1,A:1,w:1,q:1,n:1});function d8a(){w1.call(this);this.eb=this.xa=null}d8a.prototype=new x1;d8a.prototype.constructor=d8a;d=d8a.prototype;d.L=function(){return"NilShapeParser"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Vqa&&a.l===this.l){var b=this.xa,c=a.xa;return(null===b?null===c:b.h(c))?Yj(this.eb,a.eb):!1}return!1};d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Vqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$NilShapeParser",{Vqa:1,lJ:1,mJ:1,f:1,nr:1,GD:1,A:1,w:1,q:1,n:1});function l8a(){w1.call(this);this.Lg=this.eb=this.xa=null}l8a.prototype=new x1;l8a.prototype.constructor=l8a;d=l8a.prototype;d.L=function(){return"TupleShapeParser"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.cra&&a.l===this.l){var b=this.xa,c=a.xa;if((null===b?null===c:b.h(c))&&Yj(this.eb,a.eb))return b=this.Lg,a=a.Lg,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.eb;case 2:return this.Lg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function k8a(a){a.Lg.R(a.xa);w1.prototype.Hi.call(a);qJa(a);var b=(new K).Y(a.eb),c=a.l,e=Wh().Bq;Bh(b,"minItems",Uh(Ch(Dh(c,e,a.l.Mb()),a.xa)));b=(new K).Y(a.eb);c=a.l;e=Wh().rr;Bh(b,"maxItems",Uh(Ch(Dh(c,e,a.l.Mb()),a.xa)));b=(new K).Y(a.eb);c=a.l;e=Wh().tr;Bh(b,"uniqueItems",Uh(Ch(Dh(c,e,a.l.Mb()),a.xa)));b=yc((new K).Y(a.eb),"items");if(w()!==b)if(x(b)){var b=b.i.i,c=tv(),b=L(b,c,a.l.Mb()).Jn,c=new tfb,e=uv(),b=b.$b(c,e.gc),c=uv(),b=b.cg(c.gc),c=t(new u,function(a){return function(b){if(null!==
b){var c=b.pa();b=b.si();SU();R();var e=Pc(),c=L(c,e,a.l.Mb());R();return pTa(lq(R(),c,O().ua),"member"+b,t(new u,function(a,b){return function(c){return c.Qb(a.xa.k+"/items/"+b,c.Ub())}}(a,b)),cO(),a.l.Mb()).wc()}throw(new v).d(b);}}(a)),e=uv(),c=b.ka(c,e.gc),b=a.xa,c=c.xb(t(new u,function(){return function(a){return a.qa()}}(a))),e=t(new u,function(){return function(a){return a.c()}}(a)),f=uv(),c=c.ka(e,f.gc),e=Un().Np;qf(b,e,c)}else throw(new v).d(b);return a.xa}d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({cra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$TupleShapeParser",{cra:1,lJ:1,mJ:1,f:1,nr:1,GD:1,A:1,w:1,q:1,n:1});function j8a(){w1.call(this);this.xa=this.eb=null}j8a.prototype=new x1;j8a.prototype.constructor=j8a;d=j8a.prototype;d.L=function(){return"UnionShapeParser"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.dra&&a.l===this.l&&Yj(this.eb,a.eb)){var b=this.xa;a=a.xa;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.eb;case 1:return this.xa;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.DP=function(){w1.prototype.Hi.call(this);var a=yc((new K).Y(this.eb),"anyOf");if(!a.b()){var a=a.c(),b=a.i,c=Jc(),b=sv(b,c);if(Hp(b)){var b=b.i,c=z(),b=b.cg(c.s),c=t(new u,function(a){return function(b){if(null!==b){var c=b.pa();b=b.si();return $B(a.l.nQ(),(Zf(),(new ag).d(c)),"item"+b,t(new u,function(a,b){return function(c){return c.Qb(a.xa.k+"/items/"+b,c.Ub())}}(a,b)),a.l.PB.kx,cO()).wc()}throw(new v).d(b);}}(this)),e=z(),b=b.ka(c,e.s).xb(t(new u,function(){return function(a){return a.qa()}}(this))),
c=t(new u,function(){return function(a){return a.c()}}(this)),e=z(),b=b.ka(c,e.s),c=this.xa,e=lo().Ee,a=Ke(M(),a.i);jr(c,e,b,a)}else{var b=this.l.Mb(),c=of().cN,e=this.xa.k,f=w();Cc(b,c,e,f,"Unions are built from multiple shape nodes",a.ga)}}return this.xa};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({dra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$UnionShapeParser",{dra:1,lJ:1,mJ:1,f:1,nr:1,GD:1,A:1,w:1,q:1,n:1});
function utb(){y1.call(this);this.ge=this.jE=null}utb.prototype=new u1a;utb.prototype.constructor=utb;d=utb.prototype;d.L=function(){return"Oas2DocumentEmitter"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.tta){var b=this.jE;a=a.jE;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.jE;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.CK=function(a,b){this.jE=a;this.ge=b;y1.prototype.CK.call(this,a,b);return this};d.Wfa=function(a){yYa(a,"swagger",lq(R(),mq(nq(),"2.0"),O().Wa))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.tj=function(){return this.ge};d.$classData=q({tta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.Oas2DocumentEmitter",{tta:1,X7:1,jS:1,f:1,fS:1,RY:1,A:1,w:1,q:1,n:1});function xtb(){y1.call(this);this.ge=this.jE=null}xtb.prototype=new u1a;xtb.prototype.constructor=xtb;d=xtb.prototype;
d.L=function(){return"Oas3DocumentEmitter"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.vta){var b=this.jE;a=a.jE;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.jE;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.CK=function(a,b){this.jE=a;this.ge=b;y1.prototype.CK.call(this,a,b);return this};
d.pHa=function(a,b){var c=z(),e=new wmb;e.Gc=a;e.o=b;if(null===this)throw Lb(Mb(),null);e.l=this;return H(c,(new J).aa([e]))};d.Wfa=function(a){yYa(a,"openapi",lq(R(),mq(nq(),"3.0.0"),O().Wa))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.tj=function(){return this.ge};d.$classData=q({vta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.Oas3DocumentEmitter",{vta:1,X7:1,jS:1,f:1,fS:1,RY:1,A:1,w:1,q:1,n:1});function meb(){A1.call(this);this.va=this.Yd=null}meb.prototype=new z1a;
meb.prototype.constructor=meb;d=meb.prototype;d.L=function(){return"OasModuleParser"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.jua){var b=this.Yd;a=a.Yd;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Yd;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.sda=function(){var a=E0(new F0,this.va.Pg()),b=Ke(M(),this.Yd.Gg.Vd),b=(new mh).P((new Q).a(),b),c=this.Yd.ga,e=Ap().nc,b=Eb(b,e,c),c=this.Yd.ga;H(z(),G());b=cj(b,c);a=ac(b,a);b=Ap().nc;Eb(a,b,this.Yd.ga);b=Hc(Ic(this.Yd.Gg.Vd),Pc());b.b()||(c=b.c(),b=Dx(Ex(new Fx,a,Hv((new Cf).e("uses")),c,this.Yd.U,this.va),this.Yd.ga),(new j3).ty(this.Yd,this.va).MA(this.Yd,c),q9a(this,c,a).Pc(),c=this.va.Mh.qu(),c.Fa()&&(e=Ug().Mc,Vg(a,e,c)),Tc(b.U)&&(b=n3(b),c=Nl().qc,Vg(a,c,b)));return a};
d.ty=function(a,b){this.Yd=a;this.va=b;A1.prototype.BE.call(this,b);return this};d.y=function(){return Y(this)};d.Jo=function(){return this.va};d.M=function(){return Z(this)};d.$classData=q({jua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasModuleParser",{jua:1,SY:1,f:1,lv:1,$r:1,ig:1,A:1,w:1,q:1,n:1});function yeb(){nO.call(this);this.va=this.DO=this.Yd=null}yeb.prototype=new B1;yeb.prototype.constructor=yeb;d=yeb.prototype;d.L=function(){return"RamlFragmentParser"};
function xeb(a){var b=a.Yd.Gg.Vd,c=Pc(),b=Iv(b).Gp(c);if(Hp(b))c=b.i;else{b=a.DO;c=Sv();if(null===b||!b.h(c)){var b=a.va,c=rh().vz,e=a.Yd.ga,f=a.Yd.Gg.Vd,g=w();Cc(b,c,e,g,"Cannot parse empty map",f.ga)}c=sq().Td}Wna||(Wna=(new Cx).a());e=Vna(c,a.Yd,a.va);if(null===e)throw(new v).d(e);b=e.pa();e=e.Ba();f=rq(sq(),c.Bb.xb(t(new u,function(a){return function(b){var c=b.Da,e=zc();return"usage"!==L(c,e,a.va).ya?(b=b.Da,c=zc(),"uses"!==L(b,c,a.va).ya):!1}}(a))),a.Yd.ga);g=a.DO;Lla().h(g)?f=(new A).d((new E$a).gx(a,
f).Ada()):Mla().h(g)?f=(new A).d((new D$a).gx(a,f).zda()):Nla().h(g)?f=(new A).d((new G$a).gx(a,f).Bda()):Ola().h(g)?f=(new A).d((new I$a).gx(a,f).Dda()):Pla().h(g)?f=(new A).d((new C$a).gx(a,f).yda()):Qla().h(g)?f=(new A).d((new H$a).gx(a,f).Cda()):Sv().h(g)?(f=(new F$a).gx(a,f),f=(new A).d(Ttb(f.l))):f=w();if(x(f)){f=f.i;g=yc((new K).Y(c),"usage");if(!g.b()){var h=g.c(),g=Rl().Ud,k=h.i,l=qe(),k=Nh(new Oh,L(k,l,a.va),Ke(M(),h.i)),h=Ke(M(),h.i);Fh(f,g,k,h)}g=a.Yd.ga;h=Ap().nc;Eb(f,h,g);M$a(a,c,f).Pc();
a=Ke(M(),a.Yd.Gg.Vd);cc(f,a);e.qa()&&f.ha().Wb(e.c());a=f.ze();c=E0(new F0,nc());ac(a,c);Tc(b.U)&&(a=n3(b),b=Nl().qc,Vg(f,b,a));return(new A).d(f)}return w()}d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Sua){var b=this.Yd,c=a.Yd;if(null===b?null===c:b.h(c))return b=this.DO,a=a.DO,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Yd;case 1:return this.DO;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function Ttb(a){M();var b=(new N).a(),b=(new zp).P((new Q).a(),b),c=a.Yd.ga,e=Ap().nc,b=Eb(b,e,c),b=Te(b,a.Yd.ga);M();var c=(new N).a(),c=(new Bp).P((new Q).a(),c),e=a.Yd.ue,f=Wl().Sd,c=Eb(c,f,e);a=a.Yd.xC;e=Wl().Md;a=Eb(c,e,a);c=Rl().ob;return ff(b,c,a)}d.y=function(){return Y(this)};d.Jo=function(){return this.va};d.M=function(){return Z(this)};d.$classData=q({Sua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlFragmentParser",{Sua:1,KD:1,f:1,lv:1,$r:1,ig:1,A:1,w:1,q:1,n:1});
function eLa(){this.hA=null;this.Xi=0;this.l=this.pE=null}eLa.prototype=new r;eLa.prototype.constructor=eLa;d=eLa.prototype;d.ps=function(a,b){vh(this.pE,vc(new wc,b.Ls,xc().tb,"",w(),"",w(),w(),""))};d.L=function(){return"PayloadErrorHandler"};d.H=function(){return 0};d.zba=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;this.hA="";this.Xi=1;this.pE=H(Wg(),G());return this};d.h=function(a){return!!(a&&a.$classData&&a.$classData.v.Dva)&&a.l===this.l&&!0};
d.cC=function(a,b){var c=this.pE;a=gc(a.Wp);vh(c,vc(new wc,a,xc().tb,"",w(),"",w(),w(),""));return b};d.K=function(a){throw(new X).e(""+a);};d.Vs=function(a,b,c,e,f,g){a=a.k;var h=xc().Eg;mT(this,a,b,c,e,f,h,g)};d.u=function(){return U(W(),this)};d.Hc=function(a,b,c,e,f,g,h){mT(this,a,b,c,e,f,g,h)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Dva:0},!1,"amf.plugins.document.webapi.validation.remote.PlatformPayloadValidator$PayloadErrorHandler",{Dva:1,f:1,p7:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1});function Utb(){this.ke=this.Hb=this.Jc=this.fb=this.gd=this.lp=this.Dq=this.um=this.Qg=this.Aa=this.g=this.ja=this.oa=this.li=this.Zl=this.Nj=this.$=null;this.ma=0}Utb.prototype=new r;Utb.prototype.constructor=Utb;d=Utb.prototype;
d.a=function(){Vtb=this;Iq(this);cT(this);Ob(this);fba(this);zda(this);var a=Pb(),b=C().dc,b=D(new F,b,"name"),c=Vb().dc,e=z(),f=C().dc;this.$=Rb(new Sb,a,b,Tb(new Ub,c,"name","Name for the security scheme",H(e,(new J).aa([Gc(D(new F,f,"name"))]))));a=Pb();b=C().oc;this.Nj=Rb(new Sb,a,D(new F,b,"type"),Tb(new Ub,Vb().oc,"type","Type of security scheme",G()));a=(new Ki).Ld(Bn());b=C().bb;this.Zl=Rb(new Sb,a,D(new F,b,"response"),Tb(new Ub,Vb().bb,"response","Response associated to this security scheme",
G()));a=Hn();b=C().oc;this.li=Rb(new Sb,a,D(new F,b,"settings"),Tb(new Ub,Vb().oc,"settings","Security scheme settings",G()));this.oa=this.$;a=C().oc;a=D(new F,a,"SecurityScheme");b=Lc().ja;this.ja=oz(new pz,a,b);Di();a=(new J).aa([this.$,this.Nj,this.gd,this.fb,this.Qg,this.um,this.Zl,this.li,this.Dq]);b=Di().s;a=Ei(a,b);b=Db().g;c=Di();a=a.la(b,c.s);b=Lc().g;c=Di();this.g=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().oc,"Security Scheme","Authentication and access control mechanism defined in an API",G());
return this};d.j$=function(a){this.lp=a};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.U9=function(a){this.gd=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.g$=function(a){this.Qg=a};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a(),b=(new Q).a();return(new NB).P(b,a)};d.h$=function(a){this.um=a};d.ec=function(){return this.ja};d.i$=function(a){this.Dq=a};
d.$classData=q({f1a:0},!1,"amf.plugins.domain.webapi.metamodel.security.SecuritySchemeModel$",{f1a:1,f:1,se:1,Oc:1,ic:1,Xc:1,Kj:1,ul:1,cka:1,cwa:1});var Vtb=void 0;function vi(){Vtb||(Vtb=(new Utb).a());return Vtb}function Wtb(){this.ke=this.Hb=this.Jc=this.$=this.fb=this.oa=this.lj=this.tD=this.Aa=this.ja=null;this.ma=0}Wtb.prototype=new r;Wtb.prototype.constructor=Wtb;d=Wtb.prototype;
d.a=function(){Xtb=this;Iq(this);cT(this);Wb(this);Ob(this);Zib(this);var a=C().bb,a=D(new F,a,"ResourceType"),b=VN().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().bb,"Resource Type","Type of document base unit encoding a RAML resource type",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.X9=function(a){this.oa=a};d.Tc=function(){return this.Aa};d.sc=function(){return Yib(this)};d.V9=function(a){this.tD=a};d.$l=function(a){this.fb=a};
d.Zc=function(){M();var a=(new N).a(),b=(new Q).a();return(new QB).P(b,a)};d.ec=function(){return this.ja};d.W9=function(a){this.lj=a};d.Rp=function(a){this.$=a};d.$classData=q({j1a:0},!1,"amf.plugins.domain.webapi.metamodel.templates.ResourceTypeModel$",{j1a:1,f:1,dka:1,se:1,Oc:1,ic:1,Xc:1,Kj:1,yq:1,ul:1});var Xtb=void 0;function rfa(){Xtb||(Xtb=(new Wtb).a());return Xtb}function Ytb(){this.ke=this.Hb=this.Jc=this.$=this.fb=this.oa=this.lj=this.tD=this.Aa=this.ja=null;this.ma=0}Ytb.prototype=new r;
Ytb.prototype.constructor=Ytb;d=Ytb.prototype;d.a=function(){Ztb=this;Iq(this);cT(this);Wb(this);Ob(this);Zib(this);var a=C().bb,a=D(new F,a,"Trait"),b=VN().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().bb,"Trait","Type of document base unit encoding a RAML trait",G());return this};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.X9=function(a){this.oa=a};d.Tc=function(){return this.Aa};d.sc=function(){return Yib(this)};d.V9=function(a){this.tD=a};d.$l=function(a){this.fb=a};
d.Zc=function(){M();var a=(new N).a(),b=(new Q).a();return(new UB).P(b,a)};d.ec=function(){return this.ja};d.W9=function(a){this.lj=a};d.Rp=function(a){this.$=a};d.$classData=q({k1a:0},!1,"amf.plugins.domain.webapi.metamodel.templates.TraitModel$",{k1a:1,f:1,dka:1,se:1,Oc:1,ic:1,Xc:1,Kj:1,yq:1,ul:1});var Ztb=void 0;function qfa(){Ztb||(Ztb=(new Ytb).a());return Ztb}function wO(){this.k=this.mb=this.E=this.g=null;this.ma=!1}wO.prototype=new r;wO.prototype.constructor=wO;d=wO.prototype;d.L=function(){return"License"};
d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.n8?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Xm()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){return"/license"};
d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.Ch=function(){return Xm().$};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};d.$classData=q({n8:0},!1,"amf.plugins.domain.webapi.models.License",{n8:1,f:1,Jh:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});
function EO(){this.k=this.mb=this.E=this.g=null;this.ma=!1}EO.prototype=new r;EO.prototype.constructor=EO;d=EO.prototype;d.L=function(){return"Organization"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.o8?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return bn()};
d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){return"/organization"};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.Ch=function(){return bn().$};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};
d.$classData=q({o8:0},!1,"amf.plugins.domain.webapi.models.Organization",{o8:1,f:1,Jh:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function vX(){this.k=this.mb=this.E=this.g=null;this.ma=!1}vX.prototype=new r;vX.prototype.constructor=vX;d=vX.prototype;d.L=function(){return"Tag"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.hwa?this.g===a.g?this.E===a.E:!1:!1};
d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return YO()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){var a=B(this.g,YO().$).G,a=a.b()?"default-type":a.c(),a=(new Cf).e(a);return"/tag/"+Gj(a.zd)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};
d.Ch=function(){return YO().$};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};d.$classData=q({hwa:0},!1,"amf.plugins.domain.webapi.models.Tag",{hwa:1,f:1,Jh:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function xX(){this.k=this.mb=this.E=this.g=null;this.ma=!1}xX.prototype=new r;xX.prototype.constructor=xX;d=xX.prototype;d.L=function(){return"WebApi"};
d.BM=function(a){M();var b=(new N).a(),b=(new e6).P((new Q).a(),b),c=fn().Jf;a=Eb(b,c,a);b=Jn().Wh;nh(this,b,a);return a};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.tI=function(a){M();var b=(new N).a(),b=(new x6).P((new Q).a(),b),c=rn().$;a=Eb(b,c,a);b=Jn().oc;nh(this,b,a);return a};d.h=function(a){return this===a?!0:Kn(a)?this.g===a.g?this.E===a.E:!1:!1};
d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Jn()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Nd=function(){return"#/web-api"};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};function y9a(a,b){M();var c=(new N).a(),e=(new Q).a(),c=(new aC).P(e,c),e=Tm().$f;b=Eb(c,e,b);c=Jn().kr;nh(a,c,b);return b}
d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.Ch=function(){return Jn().$};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};function Kn(a){return!!(a&&a.$classData&&a.$classData.v.jwa)}d.$classData=q({jwa:0},!1,"amf.plugins.domain.webapi.models.WebApi",{jwa:1,f:1,Jh:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function v6(){I1.call(this)}v6.prototype=new J1;
v6.prototype.constructor=v6;d=v6.prototype;d.L=function(){return"ApiKeySettings"};d.H=function(){return 2};d.h=function(a){return this===a?!0:PP(a)?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.rc=function(){return NP()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Nd=function(){return"/settings/api-key"};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.P=function(a,b){I1.prototype.P.call(this,a,b);return this};function PP(a){return!!(a&&a.$classData&&a.$classData.v.kwa)}d.$classData=q({kwa:0},!1,"amf.plugins.domain.webapi.models.security.ApiKeySettings",{kwa:1,oJ:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function U7(){I1.call(this)}U7.prototype=new J1;U7.prototype.constructor=U7;d=U7.prototype;d.L=function(){return"HttpSettings"};d.H=function(){return 2};d.h=function(a){return this===a?!0:M_a(a)?this.g===a.g?this.E===a.E:!1:!1};
d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.rc=function(){return N2()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Nd=function(){return"/settings/http"};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.P=function(a,b){I1.prototype.P.call(this,a,b);return this};function M_a(a){return!!(a&&a.$classData&&a.$classData.v.lwa)}
d.$classData=q({lwa:0},!1,"amf.plugins.domain.webapi.models.security.HttpSettings",{lwa:1,oJ:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function w6(){I1.call(this)}w6.prototype=new J1;w6.prototype.constructor=w6;d=w6.prototype;d.L=function(){return"OAuth1Settings"};d.H=function(){return 2};d.h=function(a){return this===a?!0:I_a(a)?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.rc=function(){return oX()};
d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Nd=function(){return"/settings/oauth1"};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.P=function(a,b){I1.prototype.P.call(this,a,b);return this};function I_a(a){return!!(a&&a.$classData&&a.$classData.v.mwa)}d.$classData=q({mwa:0},!1,"amf.plugins.domain.webapi.models.security.OAuth1Settings",{mwa:1,oJ:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function X3(){I1.call(this)}X3.prototype=new J1;
X3.prototype.constructor=X3;d=X3.prototype;d.L=function(){return"OAuth2Settings"};d.H=function(){return 2};d.h=function(a){return this===a?!0:OP(a)?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.rc=function(){return QP()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){return"/settings/oauth2"};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.P=function(a,b){I1.prototype.P.call(this,a,b);return this};function OP(a){return!!(a&&a.$classData&&a.$classData.v.nwa)}d.$classData=q({nwa:0},!1,"amf.plugins.domain.webapi.models.security.OAuth2Settings",{nwa:1,oJ:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function V7(){I1.call(this)}V7.prototype=new J1;V7.prototype.constructor=V7;d=V7.prototype;d.L=function(){return"OpenIdConnectSettings"};d.H=function(){return 2};d.h=function(a){return this===a?!0:O_a(a)?this.g===a.g?this.E===a.E:!1:!1};
d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.rc=function(){return K6a()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Nd=function(){return"/settings/open-id-connect"};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.P=function(a,b){I1.prototype.P.call(this,a,b);return this};function O_a(a){return!!(a&&a.$classData&&a.$classData.v.owa)}
d.$classData=q({owa:0},!1,"amf.plugins.domain.webapi.models.security.OpenIdConnectSettings",{owa:1,oJ:1,f:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function x6(){this.k=this.mb=this.E=this.g=null;this.ma=!1}x6.prototype=new r;x6.prototype.constructor=x6;d=x6.prototype;d.L=function(){return"ParametrizedSecurityScheme"};d.Ub=function(){return H(z(),G())};d.uQ=function(){M();var a=(new N).a(),a=(new v6).P((new Q).a(),a),b=rn().li;ff(this,b,a);return a};d.H=function(){return 2};
d.Qb=function(a){return cj(this,a)};d.vX=function(){M();var a=(new N).a(),a=(new w6).P((new Q).a(),a),b=rn().li;ff(this,b,a);return a};d.h=function(a){return this===a?!0:pfa(a)?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return rn()};d.tX=function(){M();var a=(new N).a(),a=(new I1).P((new Q).a(),a),b=rn().li;ff(this,b,a);return a};
d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Nd=function(){var a=B(this.g,rn().$).G,a=a.b()?"default-parametrized":a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};d.xQ=function(){M();var a=(new N).a(),a=(new X3).P((new Q).a(),a),b=rn().li;ff(this,b,a);return a};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};
d.v3=function(){M();var a=(new N).a(),a=(new U7).P((new Q).a(),a),b=rn().li;ff(this,b,a);return a};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.w3=function(){M();var a=(new N).a(),a=(new V7).P((new Q).a(),a),b=rn().li;ff(this,b,a);return a};d.P=function(a,b){this.g=a;this.E=b;return this};function pfa(a){return!!(a&&a.$classData&&a.$classData.v.pwa)}
d.$classData=q({pwa:0},!1,"amf.plugins.domain.webapi.models.security.ParametrizedSecurityScheme",{pwa:1,f:1,de:1,Wc:1,Rc:1,rwa:1,A:1,w:1,q:1,n:1});function gOa(){vE.call(this);this.En=this.A1=null}gOa.prototype=new A4;gOa.prototype.constructor=gOa;d=gOa.prototype;d.L=function(){return"DuplicateKeyException"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Wwa&&this.A1===a.A1){var b=this.En;a=a.En;return null===b?null===a:b.h(a)}return!1};
d.EE=function(a,b){this.A1=a;this.En=b;vE.prototype.pe.call(this,"Duplicate key : '"+a+"'",b,0,!0);return this};d.K=function(a){switch(a){case 0:return this.A1;case 1:return this.En;default:throw(new X).e(""+a);}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Wwa:0},!1,"org.yaml.model.DuplicateKeyException",{Wwa:1,XY:1,Qh:1,Kf:1,Fe:1,f:1,n:1,A:1,w:1,q:1});function wR(){vE.call(this);this.En=this.Xu=null}wR.prototype=new A4;wR.prototype.constructor=wR;d=wR.prototype;
d.L=function(){return"LexerException"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.C8&&this.Xu===a.Xu){var b=this.En;a=a.En;return null===b?null===a:b.h(a)}return!1};d.EE=function(a,b){this.Xu=a;this.En=b;vE.prototype.pe.call(this,"Syntax error in the following text: '"+a+"'",b,0,!0);return this};d.K=function(a){switch(a){case 0:return this.Xu;case 1:return this.En;default:throw(new X).e(""+a);}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({C8:0},!1,"org.yaml.model.LexerException",{C8:1,XY:1,Qh:1,Kf:1,Fe:1,f:1,n:1,A:1,w:1,q:1});function $tb(){vE.call(this);this.En=this.Xu=this.$2=null}$tb.prototype=new A4;$tb.prototype.constructor=$tb;d=$tb.prototype;d.L=function(){return"ParseException"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Xwa&&this.$2===a.$2&&this.Xu===a.Xu){var b=this.En;a=a.En;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.$2;case 1:return this.Xu;case 2:return this.En;default:throw(new X).e(""+a);}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};function Zva(a,b,c){var e=new $tb;e.$2=a;e.Xu=b;e.En=c;vE.prototype.pe.call(e,"Cannot parse '"+b+"' with tag '"+a+"'",c,0,!0);return e}d.$classData=q({Xwa:0},!1,"org.yaml.model.ParseException",{Xwa:1,XY:1,Qh:1,Kf:1,Fe:1,f:1,n:1,A:1,w:1,q:1});function vR(){vE.call(this);this.En=this.Xu=null}vR.prototype=new A4;
vR.prototype.constructor=vR;d=vR.prototype;d.L=function(){return"ParserException"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ywa&&this.Xu===a.Xu){var b=this.En;a=a.En;return null===b?null===a:b.h(a)}return!1};d.EE=function(a,b){this.Xu=a;this.En=b;vE.prototype.pe.call(this,"Syntax error : "+a,b,0,!0);return this};d.K=function(a){switch(a){case 0:return this.Xu;case 1:return this.En;default:throw(new X).e(""+a);}};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.$classData=q({Ywa:0},!1,"org.yaml.model.ParserException",{Ywa:1,XY:1,Qh:1,Kf:1,Fe:1,f:1,n:1,A:1,w:1,q:1});function hOa(){vE.call(this);this.En=this.t_=null}hOa.prototype=new A4;hOa.prototype.constructor=hOa;d=hOa.prototype;d.L=function(){return"UndefinedAnchorException"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.$wa&&this.t_===a.t_){var b=this.En;a=a.En;return null===b?null===a:b.h(a)}return!1};
d.EE=function(a,b){this.t_=a;this.En=b;vE.prototype.pe.call(this,"Undefined anchor : '"+a+"'",b,0,!0);return this};d.K=function(a){switch(a){case 0:return this.t_;case 1:return this.En;default:throw(new X).e(""+a);}};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({$wa:0},!1,"org.yaml.model.UndefinedAnchorException",{$wa:1,XY:1,Qh:1,Kf:1,Fe:1,f:1,n:1,A:1,w:1,q:1});function AYa(){this.eQ=this.n0=null}AYa.prototype=new j2a;AYa.prototype.constructor=AYa;d=AYa.prototype;
d.L=function(){return"YFail"};d.H=function(){return 1};d.h=function(){return!1};d.K=function(a){switch(a){case 0:return this.n0;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Gp=function(){Zf();return(new $f).d(this.n0)};d.f1=function(a){this.n0=a;this.eQ=O().Op;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.hQ=function(){throw(new fk).a();};function FDa(a){return!!(a&&a.$classData&&a.$classData.v.exa)}
d.$classData=q({exa:0},!1,"org.yaml.model.YFail",{exa:1,W4a:1,f:1,qJ:1,AB:1,lEa:1,A:1,w:1,q:1,n:1});function f2a(){this.eQ=this.Bd=null}f2a.prototype=new j2a;f2a.prototype.constructor=f2a;d=f2a.prototype;d.L=function(){return"YSuccess"};d.H=function(){return 1};d.h=function(a){if(FDa(a))return!1;if(Iva(a)){var b=this.Bd;a=a.hQ();return Yj(b,a)}if(a&&a.$classData&&a.$classData.v.rS)return Yj(a,this);throw(new v).d(a);};d.K=function(a){switch(a){case 0:return this.Bd;default:throw(new X).e(""+a);}};
d.u=function(){return this.Bd.u()};d.PU=function(a){this.Bd=a;this.eQ=a.pb().nb;return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.hQ=function(){return this.Bd};d.$classData=q({nxa:0},!1,"org.yaml.model.YSuccess",{nxa:1,W4a:1,f:1,qJ:1,AB:1,lEa:1,A:1,w:1,q:1,n:1});function OR(){this.Ai=null;this.J_=0}OR.prototype=new VZa;OR.prototype.constructor=OR;d=OR.prototype;d.s1=function(){try{return M1(this.Ai,32),!0}catch(a){if(fbb(a))return!1;throw a;}};d.Nv=function(){return this.Ai.Nv()};
function nOa(a,b,c){a.Ai=b;if(null===b)throw(new rk).e("null value for BigDecimal");if(null===c)throw(new rk).e("null MathContext for BigDecimal");a.J_=1565550863;return a}d.eca=function(){try{return M1(this.Ai,16),!0}catch(a){if(fbb(a))return!1;throw a;}};d.E_=function(){return this.Ai.xt()<<24>>24};
d.h=function(a){if(a&&a.$classData&&a.$classData.v.sea)return aub(this,a);if(a&&a.$classData&&a.$classData.v.tea){var b=a.bm,b=eD(fD(),b),c=NR(this.Ai);if(b>3.3219280948873626*(-2+(c-this.Ai.uf|0)|0)){var e;if(0>=this.Ai.uf||0>=W1a(this.Ai).uf)try{e=(new A).d((new OF).CE(U1a(this.Ai)))}catch(f){if(fbb(f))e=w();else throw f;}else e=w();if(e.b())return!1;e=e.c();return 0===bZ(a.bm,e.bm)}return!1}return"number"===typeof a?(e=+a,Infinity!==e&&-Infinity!==e&&(a=this.Ai.VB(),Infinity!==a&&-Infinity!==a&&
a===e)?(e=mOa(),aub(this,KZa(a,e.hO))):!1):ma(a)?(e=+a,Infinity!==e&&-Infinity!==e&&(a=this.Ai.tK(),Infinity!==a&&-Infinity!==a&&a===e)?(e=mOa(),aub(this,KZa(a,e.hO))):!1):this.t1()&&Tda(this,a)};d.dca=function(){return this.s1()&&0<=M1(this.Ai,32).Na&&65535>=M1(this.Ai,32).Na};d.u=function(){return this.Ai.u()};d.Wn=function(a){return Z1a(this.Ai,a.Ai)};d.cca=function(){try{return M1(this.Ai,8),!0}catch(a){if(fbb(a))return!1;throw a;}};d.Xn=function(a){return Z1a(this.Ai,a.Ai)};d.VGa=function(){return this.Ai};
d.O2=function(){return this.Ai.xt()<<16>>16};d.VB=function(){return this.Ai.VB()};d.y=function(){if(1565550863===this.J_){if((0>=this.Ai.uf||0>=W1a(this.Ai).uf)&&4934>(NR(this.Ai)-this.Ai.uf|0))var a=(new OF).CE(T1a(this.Ai)).y();else{a=this.Ai.VB();if(Infinity!==a&&-Infinity!==a)var b=mOa(),a=aub(this,KZa(a,b.hO));else a=!1;a?a=tCa(zI(),this.Ai.VB()):(a=W1a(this.Ai),a=xI().qL(T1a($1a(a,a.uf)).y(),a.uf))}this.J_=a}return this.J_};d.xt=function(){return this.Ai.xt()};
d.t1=function(){try{return M1(this.Ai,64),!0}catch(a){if(fbb(a))return!1;throw a;}};d.tK=function(){return this.Ai.tK()};function aub(a,b){return 0===Z1a(a.Ai,b.Ai)}d.$classData=q({sea:0},!1,"scala.math.BigDecimal",{sea:1,uEa:1,By:1,f:1,n:1,b9a:1,vEa:1,q:1,vx:1,sh:1});function OF(){this.bm=null}OF.prototype=new VZa;OF.prototype.constructor=OF;d=OF.prototype;d.s1=function(){var a=dZ(kI(),-2147483648);return 0<=this.Xn(a)?(a=dZ(kI(),2147483647),0>=this.Xn(a)):!1};d.Nv=function(){return this.bm.Nv()};
d.eca=function(){var a=dZ(kI(),-32768);return 0<=this.Xn(a)?(a=dZ(kI(),32767),0>=this.Xn(a)):!1};d.E_=function(){return this.bm.xt()<<24>>24};
d.h=function(a){if(a&&a.$classData&&a.$classData.v.tea)return 0===bZ(this.bm,a.bm);if(a&&a.$classData&&a.$classData.v.sea)return a.h(this);if("number"===typeof a){a=+a;var b=this.bm,b=eD(fD(),b);if(53>=b)b=!0;else var c=a2a(this.bm),b=1024>=b&&c>=(-53+b|0)&&1024>c;return b&&!bub(this)?(b=this.bm,rC(wa(),kD(lD(),b))===a):!1}return ma(a)?(a=+a,b=this.bm,b=eD(fD(),b),24>=b?b=!0:(c=a2a(this.bm),b=128>=b&&c>=(-24+b|0)&&128>c),b&&!bub(this)?(b=this.bm,b=kD(lD(),b),ea(rC(wa(),b))===a):!1):this.t1()&&Tda(this,
a)};function bub(a){a=Pta(a.bm,2147483647);return 0!==a.ff&&!a.h(kI().fFa)}d.dca=function(){var a=dZ(kI(),0);return 0<=this.Xn(a)?(a=dZ(kI(),65535),0>=this.Xn(a)):!1};d.u=function(){var a=this.bm;return kD(lD(),a)};d.Wn=function(a){return bZ(this.bm,a.bm)};d.cca=function(){var a=dZ(kI(),-128);return 0<=this.Xn(a)?(a=dZ(kI(),127),0>=this.Xn(a)):!1};d.Xn=function(a){return bZ(this.bm,a.bm)};d.VGa=function(){return this.bm};d.O2=function(){return this.bm.xt()<<16>>16};
d.VB=function(){var a=this.bm;return rC(wa(),kD(lD(),a))};d.y=function(){var a;if(this.t1()){var b=this.Nv();a=b.Na;b=b.$a;a=(-1===b?0<=(-2147483648^a):-1<b)&&(0===b?-1>=(-2147483648^a):0>b)?a:$J(zI(),(new aq).La(a,b))}else a=yI(zI(),this.bm);return a};d.xt=function(){return this.bm.xt()};d.CE=function(a){this.bm=a;return this};d.t1=function(){var a=TZa(kI(),(new aq).La(0,-2147483648));return 0<=this.Xn(a)?(a=TZa(kI(),(new aq).La(-1,2147483647)),0>=this.Xn(a)):!1};
d.tK=function(){var a=this.bm,a=kD(lD(),a);return ea(rC(wa(),a))};var SZa=q({tea:0},!1,"scala.math.BigInt",{tea:1,uEa:1,By:1,f:1,n:1,b9a:1,vEa:1,q:1,vx:1,sh:1});OF.prototype.$classData=SZa;function M8(){this.cr=null}M8.prototype=new r8;M8.prototype.constructor=M8;M8.prototype.a=function(){this.cr="Boolean";return this};M8.prototype.As=function(a){return ia(La(Ma),[a])};M8.prototype.Dp=function(){return n(Ma)};
M8.prototype.$classData=q({k9a:0},!1,"scala.reflect.ManifestFactory$BooleanManifest$",{k9a:1,aI:1,f:1,wx:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});var cub=void 0;function bAa(){cub||(cub=(new M8).a());return cub}function N8(){this.cr=null}N8.prototype=new r8;N8.prototype.constructor=N8;N8.prototype.a=function(){this.cr="Byte";return this};N8.prototype.As=function(a){return ia(La(Oa),[a])};N8.prototype.Dp=function(){return n(Oa)};
N8.prototype.$classData=q({l9a:0},!1,"scala.reflect.ManifestFactory$ByteManifest$",{l9a:1,aI:1,f:1,wx:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});var dub=void 0;function Vza(){dub||(dub=(new N8).a());return dub}function O8(){this.cr=null}O8.prototype=new r8;O8.prototype.constructor=O8;O8.prototype.a=function(){this.cr="Char";return this};O8.prototype.As=function(a){return ia(La(Na),[a])};O8.prototype.Dp=function(){return n(Na)};
O8.prototype.$classData=q({m9a:0},!1,"scala.reflect.ManifestFactory$CharManifest$",{m9a:1,aI:1,f:1,wx:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});var eub=void 0;function Xza(){eub||(eub=(new O8).a());return eub}function P8(){this.cr=null}P8.prototype=new r8;P8.prototype.constructor=P8;P8.prototype.a=function(){this.cr="Double";return this};P8.prototype.As=function(a){return ia(La(Ua),[a])};P8.prototype.Dp=function(){return n(Ua)};
P8.prototype.$classData=q({n9a:0},!1,"scala.reflect.ManifestFactory$DoubleManifest$",{n9a:1,aI:1,f:1,wx:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});var fub=void 0;function aAa(){fub||(fub=(new P8).a());return fub}function Q8(){this.cr=null}Q8.prototype=new r8;Q8.prototype.constructor=Q8;Q8.prototype.a=function(){this.cr="Float";return this};Q8.prototype.As=function(a){return ia(La(Ta),[a])};Q8.prototype.Dp=function(){return n(Ta)};
Q8.prototype.$classData=q({o9a:0},!1,"scala.reflect.ManifestFactory$FloatManifest$",{o9a:1,aI:1,f:1,wx:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});var gub=void 0;function $za(){gub||(gub=(new Q8).a());return gub}function R8(){this.cr=null}R8.prototype=new r8;R8.prototype.constructor=R8;R8.prototype.a=function(){this.cr="Int";return this};R8.prototype.As=function(a){return ia(La(Ra),[a])};R8.prototype.Dp=function(){return n(Ra)};
R8.prototype.$classData=q({p9a:0},!1,"scala.reflect.ManifestFactory$IntManifest$",{p9a:1,aI:1,f:1,wx:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});var hub=void 0;function Yza(){hub||(hub=(new R8).a());return hub}function S8(){this.cr=null}S8.prototype=new r8;S8.prototype.constructor=S8;S8.prototype.a=function(){this.cr="Long";return this};S8.prototype.As=function(a){return ia(La(Sa),[a])};S8.prototype.Dp=function(){return n(Sa)};
S8.prototype.$classData=q({q9a:0},!1,"scala.reflect.ManifestFactory$LongManifest$",{q9a:1,aI:1,f:1,wx:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});var iub=void 0;function Zza(){iub||(iub=(new S8).a());return iub}function T8(){this.WA=null}T8.prototype=new Uob;T8.prototype.constructor=T8;function jub(){}jub.prototype=T8.prototype;T8.prototype.h=function(a){return this===a};T8.prototype.u=function(){return this.WA};T8.prototype.y=function(){return va(this)};function U8(){this.cr=null}U8.prototype=new r8;
U8.prototype.constructor=U8;U8.prototype.a=function(){this.cr="Short";return this};U8.prototype.As=function(a){return ia(La(Qa),[a])};U8.prototype.Dp=function(){return n(Qa)};U8.prototype.$classData=q({u9a:0},!1,"scala.reflect.ManifestFactory$ShortManifest$",{u9a:1,aI:1,f:1,wx:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});var kub=void 0;function Wza(){kub||(kub=(new U8).a());return kub}function V8(){this.cr=null}V8.prototype=new r8;V8.prototype.constructor=V8;V8.prototype.a=function(){this.cr="Unit";return this};
V8.prototype.As=function(a){return ia(La(na),[a])};V8.prototype.Dp=function(){return n(waa)};V8.prototype.$classData=q({v9a:0},!1,"scala.reflect.ManifestFactory$UnitManifest$",{v9a:1,aI:1,f:1,wx:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});var lub=void 0;function cAa(){lub||(lub=(new V8).a());return lub}function W8(a,b){a=a.kb();for(b=b.kb();a.Qa()&&b.Qa();)if(!ub(vb(),a.Sa(),b.Sa()))return!1;return!a.Qa()&&!b.Qa()}
function EHa(a,b){b=b.Vn(a.Ji());var c=(new iA).$d(0);a.X(t(new u,function(a,b,c){return function(a){b.Ic((new P).N(a,c.ta));c.ta=1+c.ta|0}}(a,b,c)));return b.lc()}function mub(a,b){var c=a.Ed();if(!(0>=b)){c.Ss(b,a);var e=0;for(a=a.kb();e<b&&a.Qa();)c.Ic(a.Sa()),e=1+e|0}return c.lc()}function nub(a,b,c,e){var f=c;c=c+e|0;e=DI(W(),b);c=c<e?c:e;for(a=a.kb();f<c&&a.Qa();)pCa(W(),b,f,a.Sa()),f=1+f|0}
function X8(a,b,c){c=c.Vn(a.Ji());a=a.kb();for(b=b.kb();a.Qa()&&b.Qa();)c.Ic((new P).N(a.Sa(),b.Sa()));return c.lc()}function Y8(){this.bW=this.s=null}Y8.prototype=new J6;Y8.prototype.constructor=Y8;Y8.prototype.a=function(){kS.prototype.a.call(this);oub=this;this.bW=(new UOa).a();return this};Y8.prototype.lA=function(){return G()};Y8.prototype.Ed=function(){return(new $g).a()};Y8.prototype.$classData=q({rab:0},!1,"scala.collection.immutable.List$",{rab:1,Uy:1,Ty:1,Os:1,Ln:1,f:1,Qs:1,Mn:1,q:1,n:1});
var oub=void 0;function Di(){oub||(oub=(new Y8).a());return oub}function Z8(){this.s=null}Z8.prototype=new J6;Z8.prototype.constructor=Z8;Z8.prototype.a=function(){kS.prototype.a.call(this);return this};function pub(a,b,c){return NI(new OI,b,jb(function(a,b,c){return function(){return pub(Js(),b+c|0,c)}}(a,b,c)))}function qub(a,b,c,e){var f=b.fa();return NI(new OI,f,jb(function(a,b,c,e){return function(){return rS(b.sa(),c,e)}}(a,b,c,e)))}Z8.prototype.lA=function(){return gS()};
function rub(a,b,c,e,f){return NI(new OI,b,jb(function(a,b,c,e){return function(){return b.sa().$b(c,e)}}(a,c,e,f)))}Z8.prototype.Ed=function(){return(new O6).a()};Z8.prototype.$classData=q({Vab:0},!1,"scala.collection.immutable.Stream$",{Vab:1,Uy:1,Ty:1,Os:1,Ln:1,f:1,Qs:1,Mn:1,q:1,n:1});var sub=void 0;function Js(){sub||(sub=(new Z8).a());return sub}function $8(){this.s=null}$8.prototype=new J6;$8.prototype.constructor=$8;$8.prototype.a=function(){kS.prototype.a.call(this);return this};
$8.prototype.Ed=function(){return(new pk).a()};$8.prototype.$classData=q({Bbb:0},!1,"scala.collection.mutable.ArrayBuffer$",{Bbb:1,Uy:1,Ty:1,Os:1,Ln:1,f:1,Qs:1,Mn:1,q:1,n:1});var tub=void 0;function a2(){tub||(tub=(new $8).a());return tub}function a9(){this.s=null}a9.prototype=new J6;a9.prototype.constructor=a9;a9.prototype.a=function(){kS.prototype.a.call(this);return this};
a9.prototype.Ed=function(){var a=(new pk).a();return QAa(new SI,a,t(new u,function(){return function(a){var c=(new uub).$d(a.x);JF(a,c.YS,0);return c}}(this)))};a9.prototype.$classData=q({Nbb:0},!1,"scala.collection.mutable.ArraySeq$",{Nbb:1,Uy:1,Ty:1,Os:1,Ln:1,f:1,Qs:1,Mn:1,q:1,n:1});var vub=void 0;function qOa(){vub||(vub=(new a9).a());return vub}function b9(){this.s=null}b9.prototype=new J6;b9.prototype.constructor=b9;b9.prototype.a=function(){kS.prototype.a.call(this);return this};
b9.prototype.Ed=function(){return Yg(new Zg,(new $g).a())};b9.prototype.$classData=q({vcb:0},!1,"scala.collection.mutable.ListBuffer$",{vcb:1,Uy:1,Ty:1,Os:1,Ln:1,f:1,Qs:1,Mn:1,q:1,n:1});var wub=void 0;function Wg(){wub||(wub=(new b9).a());return wub}function Ml(){this.na=this.p=null}Ml.prototype=new r;Ml.prototype.constructor=Ml;d=Ml.prototype;d.L=function(){return"Module"};d.a=function(){M();var a=(new N).a();Ml.prototype.Vaa.call(this,(new mh).P((new Q).a(),a));return this};
d.Mm=function(a){return JS(this,a)};d.Wo=function(a){return BS(this,a)};d.H=function(){return 1};d.ap=function(a){return FS(this,a)};d.Yo=function(){return DS(this)};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Wha){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.cp=function(){return MS(this)};d.Wl=function(){return LS(this)};d.u=function(){return U(W(),this)};
d.St=function(a){return FK(this,a)};d.Xo=function(a){return NS(this,a)};d.$o=function(a){return CS(this,a)};d.Nm=function(){return KS(this)};d.bc=function(){return Eo(this)};d.Vaa=function(a){this.p=a;this.na=ju().na;return this};d.bp=function(a){return ES(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.Ut=function(){return EK(this)};d.M=function(){return Z(this)};d.Rt=function(a){return DK(this,a)};d.Nn=function(){return HS(this)};d.dp=function(){return GS(this)};
Ml.prototype.annotations=function(){return this.bc()};Object.defineProperty(Ml.prototype,"sourceVendor",{get:function(){return this.Nn()},configurable:!0});Ml.prototype.findByType=function(a){return this.Xo(a)};Ml.prototype.findById=function(a){return this.Wo(a)};Ml.prototype.withUsage=function(a){return this.bp(a)};Ml.prototype.withLocation=function(a){return this.$o(a)};Ml.prototype.withRaw=function(a){return this.Mm(a)};Ml.prototype.withReferences=function(a){return this.ap(a)};
Object.defineProperty(Ml.prototype,"modelVersion",{get:function(){return this.cp()},configurable:!0});Object.defineProperty(Ml.prototype,"usage",{get:function(){return this.dp()},configurable:!0});Object.defineProperty(Ml.prototype,"location",{get:function(){return this.Wl()},configurable:!0});Object.defineProperty(Ml.prototype,"raw",{get:function(){return this.Nm()},configurable:!0});Ml.prototype.references=function(){return this.Yo()};
Object.defineProperty(Ml.prototype,"id",{get:function(){return this.hc()},configurable:!0});Ml.prototype.withDeclares=function(a){return this.St(a)};Ml.prototype.withDeclaredElement=function(a){return this.Rt(a)};Object.defineProperty(Ml.prototype,"declares",{get:function(){return this.Ut()},configurable:!0});Ml.prototype.$classData=q({Wha:0},!1,"amf.client.model.document.Module",{Wha:1,f:1,hp:1,Id:1,xd:1,Fb:1,CD:1,A:1,w:1,q:1,n:1});function C_(){In.call(this)}C_.prototype=new i2;
C_.prototype.constructor=C_;d=C_.prototype;d.a=function(){M();var a=(new N).a();C_.prototype.HU.call(this,(new v6).P((new Q).a(),a));return this};d.Xf=function(){S();var a=B(this.p.g,NP().$);S().wb();return Gb(a)};d.L=function(){return"ApiKeySettings"};d.Ie=function(){return this.Xf()};d.H=function(){return 1};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.cia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p,c=NP().$;Eb(b,c,a);return this};d.HU=function(a){In.prototype.aH.call(this,a);return this};C_.prototype.withIn=function(a){var b=this.p,c=NP().uz;Eb(b,c,a);return this};C_.prototype.withName=function(a){return this.xe(a)};
Object.defineProperty(C_.prototype,"in",{get:function(){S();var a=B(this.p.g,NP().uz);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(C_.prototype,"name",{get:function(){return this.Ie()},configurable:!0});C_.prototype.$classData=q({cia:0},!1,"amf.client.model.domain.ApiKeySettings",{cia:1,dN:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function km(){this.na=this.p=null}km.prototype=new r;km.prototype.constructor=km;d=km.prototype;
d.a=function(){or();M();var a=(new N).a();km.prototype.sU.call(this,(new DL).P((new Q).a(),a));return this};d.L=function(){return"ArrayNode"};d.H=function(){return 1};d.Ie=function(){return S_a(this)};d.nd=function(){return SS(this)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.X6?this.p===a.p:!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.sU=function(a){this.p=a;this.na=ju().na;return this};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.xe=function(a){return T_a(this,a)};km.prototype.annotations=function(){return this.bc()};km.prototype.graph=function(){return this.nd()};
km.prototype.withId=function(a){return this.qd(a)};km.prototype.withExtendsNode=function(a){return this.pd(a)};km.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(km.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(km.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(km.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});
Object.defineProperty(km.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});km.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(km.prototype,"name",{get:function(){return this.Ie()},configurable:!0});km.prototype.addMember=function(a){esa(this.p,a.p);return this};Object.defineProperty(km.prototype,"members",{get:function(){var a=Ab(),b=B(this.p.ea,im().du),c=Ab().tq();return Il(a,b,c).sb()},configurable:!0});
km.prototype.$classData=q({X6:0},!1,"amf.client.model.domain.ArrayNode",{X6:1,f:1,iia:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function kn(){this.na=this.p=null}kn.prototype=new r;kn.prototype.constructor=kn;function xub(a){S();a=a.p;return xub(r_a(yub(),a))}d=kn.prototype;d.a=function(){M();var a=(new N).a();kn.prototype.cBa.call(this,(new S3).P((new Q).a(),a));return this};d.L=function(){return"Callback"};d.Xf=function(){S();var a=B(this.p.g,hn().$);S().wb();return Gb(a)};d.H=function(){return 1};
d.Ie=function(){return this.Xf()};d.nd=function(){return SS(this)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.dia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.cBa=function(a){this.p=a;this.na=ju().na;return this};
d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p;M();var c=(new N).a();Ue(b,a,c);return this};kn.prototype.annotations=function(){return this.bc()};kn.prototype.graph=function(){return this.nd()};kn.prototype.withId=function(a){return this.qd(a)};
kn.prototype.withExtendsNode=function(a){return this.pd(a)};kn.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(kn.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(kn.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(kn.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});
Object.defineProperty(kn.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});kn.prototype.withEndpoint=function(){for(var a=arguments.length|0,b=0,c=[];b<a;)c.push(arguments[b]),b=b+1|0;switch(c.length|0){case 0:return xub(this);case 1:return b=c[0],a=this.p,S(),c9(),b=b.p,c=hn().XM,ff(a,c,b),this;default:throw"No matching overload";}};kn.prototype.withExpression=function(a){var b=this.p,c=hn().gY;Eb(b,c,a);return this};kn.prototype.withName=function(a){return this.xe(a)};
Object.defineProperty(kn.prototype,"endpoint",{get:function(){S();var a=B(this.p.g,hn().XM);return v_a(c9(),a)},configurable:!0});Object.defineProperty(kn.prototype,"expression",{get:function(){S();var a=B(this.p.g,hn().gY);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(kn.prototype,"name",{get:function(){return this.Ie()},configurable:!0});kn.prototype.$classData=q({dia:0},!1,"amf.client.model.domain.Callback",{dia:1,f:1,Re:1,Id:1,xd:1,Fb:1,Yl:1,A:1,w:1,q:1,n:1});
function am(){this.na=this.p=null}am.prototype=new r;am.prototype.constructor=am;d=am.prototype;d.L=function(){return"CustomDomainProperty"};d.a=function(){M();var a=(new N).a();am.prototype.SO.call(this,(new Le).P((new Q).a(),a));return this};d.YQ=function(a){var b=this.p;Ab();Ab().wj();a=a.qg();var c=Zl().Fc;ff(b,c,a);return this};d.Xf=function(){Ab();var a=B(this.p.g,Zl().$);Ab().wb();return Gb(a)};d.Wt=function(){return zb(this)};d.lw=function(a){return Cb(this,a)};d.H=function(){return 1};
d.Vt=function(){return this.iE()};d.nd=function(){return SS(this)};d.Ie=function(){return this.Xf()};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.gia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.iw=function(){return w()};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.qR=function(){return this.IW()};d.u=function(){return U(W(),this)};d.ow=function(){return xb(this)};
d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.yj=function(){Ab();var a=B(this.p.g,Zl().fb);Ab().wb();return Gb(a)};d.Tt=function(a){var b=this.p,c=Zl().gd;Eb(b,c,a);return this};d.Ao=function(){return zub(this)};d.rd=function(){return PS(this)};function zub(a){Ab();a=a.p;M();var b=(new N).a(),b=(new Le).P((new Q).a(),b);a=Te(b,a.k);Csb();return(new am).SO(a)}d.IW=function(){Ab();var a=B(this.p.g,Zl().Fc);return AS(Ab().wj(),a)};d.ws=function(){return zub(this)};
d.jw=function(a){return Hb(this,a)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.hi=function(a){var b=this.p,c=Zl().fb;Eb(b,c,a);return this};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.SO=function(a){this.p=a;this.na=ju().na;return this};d.Rh=function(){return this.yj()};d.y=function(){return Y(this)};d.iE=function(){Ab();var a=B(this.p.g,Zl().gd);Ab().wb();return Gb(a)};d.M=function(){return Z(this)};
d.xe=function(a){var b=this.p;M();var c=(new N).a();Ue(b,a,c);return this};d.pw=function(){return Fb(this)};d.mw=function(a){return Ib(this,a)};am.prototype.annotations=function(){return this.bc()};am.prototype.graph=function(){return this.nd()};am.prototype.withId=function(a){return this.qd(a)};am.prototype.withExtendsNode=function(a){return this.pd(a)};am.prototype.withCustomDomainProperties=function(a){return this.od(a)};
Object.defineProperty(am.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(am.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(am.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(am.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});
am.prototype.link=function(){for(var a=arguments.length|0,b=0,c=[];b<a;)c.push(arguments[b]),b=b+1|0;a=void 0===c[0]?this.iw():c[0];return this.jw(a)};am.prototype.withLinkLabel=function(a){return this.lw(a)};am.prototype.withLinkTarget=function(a){return this.mw(a)};Object.defineProperty(am.prototype,"linkLabel",{get:function(){return this.pw()},configurable:!0});Object.defineProperty(am.prototype,"isLink",{get:function(){return this.ow()},configurable:!0});
Object.defineProperty(am.prototype,"linkTarget",{get:function(){return this.Wt()},configurable:!0});am.prototype.linkCopy=function(){return this.Ao()};am.prototype.withSchema=function(a){return this.YQ(a)};am.prototype.withDomain=function(a){var b=this.p,c=Ab(),e=Ab().oh();a=ml(nl(new ol,c,a,e));c=Zl().OF;dr(b,c,a);return this};am.prototype.withDescription=function(a){return this.hi(a)};am.prototype.withDisplayName=function(a){return this.Tt(a)};am.prototype.withName=function(a){return this.xe(a)};
Object.defineProperty(am.prototype,"schema",{get:function(){return this.qR()},configurable:!0});Object.defineProperty(am.prototype,"domain",{get:function(){var a=Ab(),b=B(this.p.g,Zl().OF),c=Ab().wb();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(am.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty(am.prototype,"displayName",{get:function(){return this.Vt()},configurable:!0});
Object.defineProperty(am.prototype,"name",{get:function(){return this.Ie()},configurable:!0});am.prototype.$classData=q({gia:0},!1,"amf.client.model.domain.CustomDomainProperty",{gia:1,f:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,A:1,w:1,q:1,n:1});function HA(){h2.call(this)}HA.prototype=new $2a;HA.prototype.constructor=HA;d=HA.prototype;d.a=function(){M();var a=(new N).a();HA.prototype.DAa.call(this,(new TM).P((new Q).a(),a));return this};d.L=function(){return"DatatypePropertyTerm"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.jia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.Jd=function(){return this.p};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.DAa=function(a){h2.prototype.HAa.call(this,a);return this};
d.$classData=q({jia:0},!1,"amf.client.model.domain.DatatypePropertyTerm",{jia:1,oKa:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function Vm(){this.na=this.p=null}Vm.prototype=new r;Vm.prototype.constructor=Vm;d=Vm.prototype;d.L=function(){return"EndPoint"};d.a=function(){M();var a=(new N).a(),b=(new Q).a();Vm.prototype.UO.call(this,(new aC).P(b,a));return this};d.Xf=function(){S();var a=B(this.p.g,Tm().$);S().wb();return Gb(a)};d.h4=function(a){var b=this.p,c=Tm().$f;Eb(b,c,a);return this};d.H=function(){return 1};
d.nd=function(){return SS(this)};d.Ie=function(){return this.Xf()};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.pia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.Fda=function(){S();var a=B(this.p.g,Tm().$f);S().wb();return Gb(a)};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.HI=function(){return this.GL()};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};
d.GL=function(){var a=S(),b=B(this.p.g,Tm().mf),c=I8();return Il(a,b,c).sb()};d.sR=function(){return this.PW()};d.qd=function(a){return RS(this,a)};d.yj=function(){S();var a=B(this.p.g,Tm().fb);S().wb();return Gb(a)};d.PW=function(){var a=S(),b=B(this.p.g,Tm().Wh),c=d9();return Il(a,b,c).sb()};d.xX=function(a){S();a=this.p.BM(a);return A_(d9(),a)};d.rd=function(){return PS(this)};d.$Q=function(a){return this.xX(a)};
d.ZQ=function(a){var b=this.p,c=S(),e=Aub();a=ml(nl(new ol,c,a,e));c=Tm().oc;qf(b,c,a);return this};d.sd=function(){return OS(this)};d.xfa=function(){S();var a=B(this.p.g,Tm().Mp);S().wb();return Gb(a)};d.bc=function(){return Eo(this)};d.AM=function(a){S();a=this.p.Sr((new A).d(a));return h_(I8(),a)};d.hi=function(a){var b=this.p,c=Tm().fb;Eb(b,c,a);return this};d.BI=function(a){return this.AM(a)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};
d.rR=function(){return this.NW()};d.Rh=function(){return this.yj()};d.y=function(){return Y(this)};d.e5=function(){return this.xfa()};d.nR=function(){return this.Fda()};d.M=function(){return Z(this)};d.u4=function(a){var b=this.p,c=Tm().Mp;Eb(b,c,a);return this};d.xe=function(a){var b=this.p;M();var c=(new N).a();Ue(b,a,c);return this};d.UO=function(a){this.p=a;this.na=ju().na;return this};d.aR=function(a){var b=this.p,c=S(),e=d9();a=ml(nl(new ol,c,a,e));c=Tm().Wh;qf(b,c,a);return this};
d.CI=function(a){var b=this.p,c=S(),e=I8();a=ml(nl(new ol,c,a,e));c=Tm().mf;qf(b,c,a);return this};d.NW=function(){var a=S(),b=B(this.p.g,Tm().oc),c=Aub();return Il(a,b,c).sb()};Vm.prototype.annotations=function(){return this.bc()};Vm.prototype.graph=function(){return this.nd()};Vm.prototype.withId=function(a){return this.qd(a)};Vm.prototype.withExtendsNode=function(a){return this.pd(a)};Vm.prototype.withCustomDomainProperties=function(a){return this.od(a)};
Object.defineProperty(Vm.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(Vm.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(Vm.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(Vm.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});Vm.prototype.withServer=function(a){return this.$Q(a)};Vm.prototype.withPayload=function(a){return this.BI(a)};
Vm.prototype.withParameter=function(a){S();a=LJa(this.p,a);return e_(H8(),a)};Vm.prototype.withOperation=function(a){S();a=VJa(this.p,a);var b=Bub();return dt(b.l.na,a)};Vm.prototype.withSecurity=function(a){return this.ZQ(a)};Vm.prototype.withServers=function(a){return this.aR(a)};Vm.prototype.withPayloads=function(a){return this.CI(a)};Vm.prototype.withParameters=function(a){var b=this.p,c=S(),e=H8();a=ml(nl(new ol,c,a,e));c=Tm().Pn;qf(b,c,a);return this};
Vm.prototype.withOperations=function(a){var b=this.p,c=S(),e=Bub();a=ml(nl(new ol,c,a,e));c=Tm().xk;qf(b,c,a);return this};Vm.prototype.withPath=function(a){return this.h4(a)};Vm.prototype.withSummary=function(a){return this.u4(a)};Vm.prototype.withDescription=function(a){return this.hi(a)};Vm.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(Vm.prototype,"relativePath",{get:function(){return STa(this.p)},configurable:!0});
Object.defineProperty(Vm.prototype,"parent",{get:function(){var a=S(),b=SV(this.p),c=c9();return Bb(a,b,c).sb()},configurable:!0});Object.defineProperty(Vm.prototype,"security",{get:function(){return this.rR()},configurable:!0});Object.defineProperty(Vm.prototype,"servers",{get:function(){return this.sR()},configurable:!0});Object.defineProperty(Vm.prototype,"payloads",{get:function(){return this.HI()},configurable:!0});
Object.defineProperty(Vm.prototype,"parameters",{get:function(){var a=S(),b=B(this.p.g,Tm().Pn),c=H8();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(Vm.prototype,"operations",{get:function(){var a=S(),b=B(this.p.g,Tm().xk),c=Bub();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(Vm.prototype,"path",{get:function(){return this.nR()},configurable:!0});Object.defineProperty(Vm.prototype,"summary",{get:function(){return this.e5()},configurable:!0});
Object.defineProperty(Vm.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty(Vm.prototype,"name",{get:function(){return this.Ie()},configurable:!0});Vm.prototype.$classData=q({pia:0},!1,"amf.client.model.domain.EndPoint",{pia:1,f:1,Re:1,Id:1,xd:1,Fb:1,Yl:1,A:1,w:1,q:1,n:1});function E_(){In.call(this)}E_.prototype=new i2;E_.prototype.constructor=E_;d=E_.prototype;
d.a=function(){M();var a=(new N).a();E_.prototype.IU.call(this,(new U7).P((new Q).a(),a));return this};d.L=function(){return"HttpSettings"};d.H=function(){return 1};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.via){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.IU=function(a){In.prototype.aH.call(this,a);return this};d.u=function(){return U(W(),this)};
d.$4=function(){S();var a=B(this.p.g,N2().Eq);S().wb();return Gb(a)};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};E_.prototype.withBearerFormat=function(a){var b=this.p,c=N2().OM;Eb(b,c,a);return this};E_.prototype.withScheme=function(a){var b=this.p,c=N2().Eq;Eb(b,c,a);return this};Object.defineProperty(E_.prototype,"bearerFormat",{get:function(){S();var a=B(this.p.g,N2().OM);S().wb();return Gb(a)},configurable:!0});
Object.defineProperty(E_.prototype,"scheme",{get:function(){return this.$4()},configurable:!0});E_.prototype.$classData=q({via:0},!1,"amf.client.model.domain.HttpSettings",{via:1,dN:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function Ym(){this.na=this.p=null}Ym.prototype=new r;Ym.prototype.constructor=Ym;d=Ym.prototype;d.a=function(){M();var a=(new N).a();Ym.prototype.fBa.call(this,(new wO).P((new Q).a(),a));return this};d.L=function(){return"License"};
d.Xf=function(){S();var a=B(this.p.g,Xm().$);S().wb();return Gb(a)};d.H=function(){return 1};d.Ie=function(){return this.Xf()};d.nd=function(){return SS(this)};d.qw=function(){return this.wF()};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.xia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};
d.wF=function(){S();var a=B(this.p.g,Xm().Jf);S().wb();return Gb(a)};d.iD=function(a){var b=this.p,c=Xm().Jf;Eb(b,c,a);return this};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.fBa=function(a){this.p=a;this.na=ju().na;return this};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.xe=function(a){var b=this.p;M();var c=(new N).a();Ue(b,a,c);return this};Ym.prototype.annotations=function(){return this.bc()};Ym.prototype.graph=function(){return this.nd()};Ym.prototype.withId=function(a){return this.qd(a)};Ym.prototype.withExtendsNode=function(a){return this.pd(a)};Ym.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(Ym.prototype,"position",{get:function(){return this.fd()},configurable:!0});
Object.defineProperty(Ym.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(Ym.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(Ym.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});Ym.prototype.withName=function(a){return this.xe(a)};Ym.prototype.withUrl=function(a){return this.iD(a)};Object.defineProperty(Ym.prototype,"name",{get:function(){return this.Ie()},configurable:!0});
Object.defineProperty(Ym.prototype,"url",{get:function(){return this.qw()},configurable:!0});Ym.prototype.$classData=q({xia:0},!1,"amf.client.model.domain.License",{xia:1,f:1,Re:1,Id:1,xd:1,Fb:1,Yl:1,A:1,w:1,q:1,n:1});function G_(){In.call(this)}G_.prototype=new i2;G_.prototype.constructor=G_;d=G_.prototype;d.a=function(){M();var a=(new N).a();G_.prototype.JU.call(this,(new w6).P((new Q).a(),a));return this};d.L=function(){return"OAuth1Settings"};d.H=function(){return 1};
d.v$=function(){S();var a=B(this.p.g,oX().rm);S().wb();return Gb(a)};d.N3=function(a){var b=this.p,c=oX().rm;Eb(b,c,a);return this};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Aia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.JU=function(a){In.prototype.aH.call(this,a);return this};d.Fd=function(){return this.p};
d.y=function(){return Y(this)};d.A4=function(){return this.v$()};d.M=function(){return Z(this)};G_.prototype.withSignatures=function(a){var b=this.p,c=S(),e=S().oh();a=ml(nl(new ol,c,a,e));c=oX().BJ;dr(b,c,a);return this};G_.prototype.withTokenCredentialsUri=function(a){var b=this.p,c=oX().EJ;Eb(b,c,a);return this};G_.prototype.withAuthorizationUri=function(a){return this.N3(a)};G_.prototype.withRequestTokenUri=function(a){var b=this.p,c=oX().AJ;Eb(b,c,a);return this};
Object.defineProperty(G_.prototype,"signatures",{get:function(){var a=S(),b=B(this.p.g,oX().BJ),c=S().wb();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(G_.prototype,"tokenCredentialsUri",{get:function(){S();var a=B(this.p.g,oX().EJ);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(G_.prototype,"authorizationUri",{get:function(){return this.A4()},configurable:!0});
Object.defineProperty(G_.prototype,"requestTokenUri",{get:function(){S();var a=B(this.p.g,oX().AJ);S().wb();return Gb(a)},configurable:!0});G_.prototype.$classData=q({Aia:0},!1,"amf.client.model.domain.OAuth1Settings",{Aia:1,dN:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function I_(){In.call(this)}I_.prototype=new i2;I_.prototype.constructor=I_;d=I_.prototype;d.a=function(){M();var a=(new N).a();I_.prototype.KU.call(this,(new X3).P((new Q).a(),a));return this};d.L=function(){return"OAuth2Settings"};
d.N3=function(a){var b=this.p,c=QP().rm;Eb(b,c,a);return this};d.v$=function(){S();var a=B(this.p.g,QP().rm);S().wb();return Gb(a)};d.H=function(){return 1};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Bia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.KU=function(a){In.prototype.aH.call(this,a);return this};d.u=function(){return U(W(),this)};
d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.A4=function(){return this.v$()};d.M=function(){return Z(this)};I_.prototype.withScopes=function(a){var b=this.p,c=S(),e=Cub();a=ml(nl(new ol,c,a,e));c=QP().sr;qf(b,c,a);return this};I_.prototype.withRefreshUri=function(a){var b=this.p,c=QP().sN;Eb(b,c,a);return this};I_.prototype.withFlow=function(a){var b=this.p,c=QP().Wx;Eb(b,c,a);return this};
I_.prototype.withAuthorizationGrants=function(a){var b=this.p,c=S(),e=S().oh();a=ml(nl(new ol,c,a,e));c=QP().pz;dr(b,c,a);return this};I_.prototype.withAccessTokenUri=function(a){var b=this.p,c=QP().sq;Eb(b,c,a);return this};I_.prototype.withAuthorizationUri=function(a){return this.N3(a)};Object.defineProperty(I_.prototype,"scopes",{get:function(){var a=S(),b=B(this.p.g,QP().sr),c=Cub();return Il(a,b,c).sb()},configurable:!0});
Object.defineProperty(I_.prototype,"refreshUri",{get:function(){S();var a=B(this.p.g,QP().sN);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(I_.prototype,"flow",{get:function(){S();var a=B(this.p.g,QP().Wx);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(I_.prototype,"authorizationGrants",{get:function(){var a=S(),b=B(this.p.g,QP().pz),c=S().wb();return Il(a,b,c).sb()},configurable:!0});
Object.defineProperty(I_.prototype,"accessTokenUri",{get:function(){S();var a=B(this.p.g,QP().sq);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(I_.prototype,"authorizationUri",{get:function(){return this.A4()},configurable:!0});I_.prototype.$classData=q({Bia:0},!1,"amf.client.model.domain.OAuth2Settings",{Bia:1,dN:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function gm(){this.na=this.p=null}gm.prototype=new r;gm.prototype.constructor=gm;d=gm.prototype;
d.a=function(){xr();M();var a=(new N).a();gm.prototype.xE.call(this,(new kA).P((new Q).a(),a));return this};d.L=function(){return"ObjectNode"};d.H=function(){return 1};d.Ie=function(){return S_a(this)};d.nd=function(){return SS(this)};d.xE=function(a){this.p=a;this.na=ju().na;return this};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Z6?this.p===a.p:!1};
d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.rd=function(){return PS(this)};d.oR=function(){var a=Ab(),b=A3a(this.p),c=Ab().tq(),e=new El;e.ek=b;e.$p=c;if(null===a)throw Lb(Mb(),null);e.l=a;return e.sb()};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.xe=function(a){return T_a(this,a)};gm.prototype.annotations=function(){return this.bc()};gm.prototype.graph=function(){return this.nd()};gm.prototype.withId=function(a){return this.qd(a)};gm.prototype.withExtendsNode=function(a){return this.pd(a)};gm.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(gm.prototype,"position",{get:function(){return this.fd()},configurable:!0});
Object.defineProperty(gm.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(gm.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(gm.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});gm.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(gm.prototype,"name",{get:function(){return this.Ie()},configurable:!0});
gm.prototype.addProperty=function(a,b){mA(this.p,a,b.p,(M(),(new N).a()));return this};gm.prototype.getProperty=function(a){var b=Ab(),c;c=this.p;var e=c.ea;a=B3a(a);e=e.Pb.Ta(a).wa();c=(new adb).xE(c);c=hd(e,c);e=Ab().tq();return Bb(b,c,e).sb()};Object.defineProperty(gm.prototype,"properties",{get:function(){return this.oR()},configurable:!0});gm.prototype.$classData=q({Z6:0},!1,"amf.client.model.domain.ObjectNode",{Z6:1,f:1,iia:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});
function GA(){h2.call(this)}GA.prototype=new $2a;GA.prototype.constructor=GA;d=GA.prototype;d.a=function(){M();var a=(new N).a();GA.prototype.FAa.call(this,(new UM).P((new Q).a(),a));return this};d.L=function(){return"ObjectPropertyTerm"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Cia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.Jd=function(){return this.p};
d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.FAa=function(a){h2.prototype.HAa.call(this,a);return this};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Cia:0},!1,"amf.client.model.domain.ObjectPropertyTerm",{Cia:1,oKa:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function K_(){In.call(this)}K_.prototype=new i2;K_.prototype.constructor=K_;d=K_.prototype;
d.a=function(){M();var a=(new N).a();K_.prototype.MU.call(this,(new V7).P((new Q).a(),a));return this};d.L=function(){return"OpenIdConnectSettings"};d.MU=function(a){In.prototype.aH.call(this,a);return this};d.H=function(){return 1};d.qw=function(){return this.wF()};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Dia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.iD=function(a){var b=this.p,c=K6a().Jf;Eb(b,c,a);return this};d.wF=function(){S();var a=B(this.p.g,K6a().Jf);S().wb();return Gb(a)};d.u=function(){return U(W(),this)};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};K_.prototype.withUrl=function(a){return this.iD(a)};Object.defineProperty(K_.prototype,"url",{get:function(){return this.qw()},configurable:!0});
K_.prototype.$classData=q({Dia:0},!1,"amf.client.model.domain.OpenIdConnectSettings",{Dia:1,dN:1,f:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function an(){this.na=this.p=null}an.prototype=new r;an.prototype.constructor=an;d=an.prototype;d.lga=function(a){S();a=this.p.mga(a);return E_a(Dub(),a)};d.L=function(){return"Operation"};d.Xf=function(){S();var a=B(this.p.g,Zm().$);S().wb();return Gb(a)};d.a=function(){M();var a=(new N).a();an.prototype.FU.call(this,(new cC).P((new Q).a(),a));return this};
d.jR=function(){return this.BT()};d.x4=function(){return this.K9()};d.H=function(){return 1};d.$$=function(){S();var a=B(this.p.g,Zm().bh);return s_a(m8(),a)};d.nd=function(){return SS(this)};d.Ie=function(){return this.Xf()};d.r4=function(a){var b=this.p,c=S(),e=S().oh(),c=ml(nl(new ol,c,a,e));a=Zm().yk;c=c.wa();dr(b,a,c);return this};d.L$=function(){var a=S(),b=B(this.p.g,Zm().tl),c=S().wb();return Il(a,b,c).sb()};d.BT=function(){S();var a=B(this.p.g,Zm().gp);S().sl();return tK(a)};
d.pd=function(a){return US(this,a)};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Eia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.Jd=function(){return this.p};d.eR=function(){return this.L$()};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.K9=function(){var a=S(),b=B(this.p.g,Zm().Jp),c=S().wb();return Il(a,b,c).sb()};d.fd=function(){return QS(this)};d.sR=function(){return this.PW()};
d.qd=function(a){return RS(this,a)};d.yj=function(){S();var a=B(this.p.g,Zm().fb);S().wb();return Gb(a)};d.FU=function(a){this.p=a;this.na=ju().na;return this};d.G4=function(){return this.$$()};d.p4=function(a){var b=this.p,c=S(),e=Dub();a=ml(nl(new ol,c,a,e));c=Zm().Zl;qf(b,c,a);return this};d.R3=function(a){var b=this.p;S();m8();a=a.p;var c=Zm().bh;ff(b,c,a);return this};d.PW=function(){var a=S(),b=B(this.p.g,Zm().Wh),c=d9();return Il(a,b,c).sb()};
d.P3=function(a){var b=this.p,c=S(),e=S().oh(),c=ml(nl(new ol,c,a,e));a=Zm().tl;c=c.wa();dr(b,a,c);return this};d.xX=function(a){S();a=this.p.BM(a);return A_(d9(),a)};d.rd=function(){return PS(this)};d.$Q=function(a){return this.xX(a)};d.ZQ=function(a){var b=this.p,c=S(),e=S().et();a=ml(nl(new ol,c,a,e));c=Zm().oc;qf(b,c,a);return this};d.sd=function(){return OS(this)};d.Z4=function(){return this.gea()};d.xfa=function(){S();var a=B(this.p.g,Zm().Mp);S().wb();return Gb(a)};d.bc=function(){return Eo(this)};
d.a5=function(){return this.Rea()};d.Rea=function(){var a=S(),b=B(this.p.g,Zm().yk),c=S().wb();return Il(a,b,c).sb()};d.hi=function(a){var b=this.p,c=Zm().fb;Eb(b,c,a);return this};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.rR=function(){return this.NW()};d.Rh=function(){return this.yj()};d.y=function(){return Y(this)};d.e5=function(){return this.xfa()};
d.J3=function(a){var b=this.p,c=S(),e=S().oh(),c=ml(nl(new ol,c,a,e));a=Zm().Jp;c=c.wa();dr(b,a,c);return this};d.M=function(){return Z(this)};d.o4=function(a){return this.lga(a)};d.xe=function(a){var b=this.p;M();var c=(new N).a();Ue(b,a,c);return this};d.u4=function(a){var b=this.p,c=Zm().Mp;Eb(b,c,a);return this};d.gea=function(){var a=S(),b=B(this.p.g,Zm().Zl),c=Dub();return Il(a,b,c).sb()};d.aR=function(a){var b=this.p,c=S(),e=d9();a=ml(nl(new ol,c,a,e));c=Zm().Wh;qf(b,c,a);return this};
d.NW=function(){var a=S(),b=B(this.p.g,Zm().oc),c=Aub();return Il(a,b,c).sb()};d.PQ=function(a){var b=this.p,c=Zm().gp;dj(b,c,a);return this};an.prototype.annotations=function(){return this.bc()};an.prototype.graph=function(){return this.nd()};an.prototype.withId=function(a){return this.qd(a)};an.prototype.withExtendsNode=function(a){return this.pd(a)};an.prototype.withCustomDomainProperties=function(a){return this.od(a)};
Object.defineProperty(an.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(an.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(an.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(an.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});an.prototype.withServer=function(a){return this.$Q(a)};
an.prototype.withCallback=function(a){S();var b=this.p;M();var c=(new N).a(),c=(new S3).P((new Q).a(),c);M();var e=(new N).a();a=Ue(c,a,e);c=Zm().NF;nh(b,c,a);return r_a(yub(),a)};an.prototype.withRequest=function(){for(var a=arguments.length|0,b=0,c=[];b<a;)c.push(arguments[b]),b=b+1|0;switch(c.length|0){case 0:return S(),a=YLa(this.p),D_a(Eub(),a);case 1:return b=c[0],a=this.p,S(),Eub(),b=b.p,c=Zm().kp,ff(a,c,b),this;default:throw"No matching overload";}};an.prototype.withResponse=function(a){return this.o4(a)};
an.prototype.withServers=function(a){return this.aR(a)};an.prototype.withCallbacks=function(a){var b=this.p,c=S(),e=yub();a=ml(nl(new ol,c,a,e));c=Zm().NF;qf(b,c,a);return this};an.prototype.withSecurity=function(a){return this.ZQ(a)};an.prototype.withResponses=function(a){return this.p4(a)};an.prototype.withContentType=function(a){return this.P3(a)};an.prototype.withAccepts=function(a){return this.J3(a)};an.prototype.withSchemes=function(a){return this.r4(a)};an.prototype.withDocumentation=function(a){return this.R3(a)};
an.prototype.withSummary=function(a){return this.u4(a)};an.prototype.withDeprecated=function(a){return this.PQ(!!a)};an.prototype.withDescription=function(a){return this.hi(a)};an.prototype.withName=function(a){return this.xe(a)};an.prototype.withMethod=function(a){var b=this.p,c=Zm().nt;Eb(b,c,a);return this};Object.defineProperty(an.prototype,"servers",{get:function(){return this.sR()},configurable:!0});
Object.defineProperty(an.prototype,"callbacks",{get:function(){var a=S(),b=B(this.p.g,Zm().NF),c=yub();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(an.prototype,"security",{get:function(){return this.rR()},configurable:!0});Object.defineProperty(an.prototype,"responses",{get:function(){return this.Z4()},configurable:!0});Object.defineProperty(an.prototype,"request",{get:function(){S();var a=B(this.p.g,Zm().kp);return D_a(Eub(),a)},configurable:!0});
Object.defineProperty(an.prototype,"contentType",{get:function(){return this.eR()},configurable:!0});Object.defineProperty(an.prototype,"accepts",{get:function(){return this.x4()},configurable:!0});Object.defineProperty(an.prototype,"schemes",{get:function(){return this.a5()},configurable:!0});Object.defineProperty(an.prototype,"documentation",{get:function(){return this.G4()},configurable:!0});Object.defineProperty(an.prototype,"summary",{get:function(){return this.e5()},configurable:!0});
Object.defineProperty(an.prototype,"deprecated",{get:function(){return this.jR()},configurable:!0});Object.defineProperty(an.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty(an.prototype,"name",{get:function(){return this.Ie()},configurable:!0});Object.defineProperty(an.prototype,"method",{get:function(){S();var a=B(this.p.g,Zm().nt);S().wb();return Gb(a)},configurable:!0});
an.prototype.$classData=q({Eia:0},!1,"amf.client.model.domain.Operation",{Eia:1,f:1,Re:1,Id:1,xd:1,Fb:1,Yl:1,A:1,w:1,q:1,n:1});function cn(){this.na=this.p=null}cn.prototype=new r;cn.prototype.constructor=cn;d=cn.prototype;d.a=function(){M();var a=(new N).a();cn.prototype.gBa.call(this,(new EO).P((new Q).a(),a));return this};d.L=function(){return"Organization"};d.Xf=function(){S();var a=B(this.p.g,bn().$);S().wb();return Gb(a)};d.H=function(){return 1};d.Ie=function(){return this.Xf()};d.nd=function(){return SS(this)};
d.qw=function(){return this.wF()};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Fia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.wF=function(){S();var a=B(this.p.g,bn().Jf);S().wb();return Gb(a)};d.iD=function(a){var b=this.p,c=bn().Jf;Eb(b,c,a);return this};d.u=function(){return U(W(),this)};
d.gBa=function(a){this.p=a;this.na=ju().na;return this};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p;M();var c=(new N).a();Ue(b,a,c);return this};cn.prototype.annotations=function(){return this.bc()};
cn.prototype.graph=function(){return this.nd()};cn.prototype.withId=function(a){return this.qd(a)};cn.prototype.withExtendsNode=function(a){return this.pd(a)};cn.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(cn.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(cn.prototype,"id",{get:function(){return this.hc()},configurable:!0});
Object.defineProperty(cn.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(cn.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});cn.prototype.withEmail=function(a){var b=this.p,c=bn().XI;Eb(b,c,a);return this};cn.prototype.withName=function(a){return this.xe(a)};cn.prototype.withUrl=function(a){return this.iD(a)};
Object.defineProperty(cn.prototype,"email",{get:function(){S();var a=B(this.p.g,bn().XI);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(cn.prototype,"name",{get:function(){return this.Ie()},configurable:!0});Object.defineProperty(cn.prototype,"url",{get:function(){return this.qw()},configurable:!0});cn.prototype.$classData=q({Fia:0},!1,"amf.client.model.domain.Organization",{Fia:1,f:1,Re:1,Id:1,xd:1,Fb:1,Yl:1,A:1,w:1,q:1,n:1});function en(){this.na=this.p=null}en.prototype=new r;
en.prototype.constructor=en;d=en.prototype;d.q4=function(a){return this.nga(a)};d.L=function(){return"Parameter"};d.a=function(){M();var a=(new N).a();en.prototype.hBa.call(this,(new JB).P((new Q).a(),a));return this};d.hBa=function(a){this.p=a;this.na=ju().na;return this};d.YQ=function(a){var b=this.p;S();S().wj();a=a.qg();var c=Ej().Fc;ff(b,c,a);return this};d.Xf=function(){S();var a=B(this.p.g,Ej().$);S().wb();return Gb(a)};d.f4=function(a){return this.gga(a)};d.jR=function(){return this.BT()};
d.H=function(){return 1};d.nd=function(){return SS(this)};d.Ie=function(){return this.Xf()};d.nga=function(a){S();a=this.p.wX(a);return F_a(Fub(),a)};d.EI=function(){return this.oK()};d.saa=function(){S();var a=B(this.p.g,Ej().hv);S().sl();return tK(a)};d.z4=function(){return this.O9()};d.pd=function(a){return US(this,a)};d.BT=function(){S();var a=B(this.p.g,Ej().gp);S().sl();return tK(a)};d.oK=function(){var a=S(),b=B(this.p.g,Ej().Vc),c=n8();return Il(a,b,c).sb()};d.Jd=function(){return this.p};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Gia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.HI=function(){return this.GL()};d.xI=function(a){var b=this.p,c=S(),e=n8();a=ml(nl(new ol,c,a,e));c=Ej().Vc;qf(b,c,a);return this};d.qR=function(){return this.IW()};d.u=function(){return U(W(),this)};d.dea=function(){S();var a=B(this.p.g,Ej().kj);S().sl();return tK(a)};
d.ufa=function(){S();var a=B(this.p.g,Ej().eu);S().wb();return Gb(a)};d.t4=function(a){var b=this.p,c=Ej().eu;Eb(b,c,a);return this};d.fd=function(){return QS(this)};d.GL=function(){var a=S(),b=B(this.p.g,Ej().mf),c=I8();return Il(a,b,c).sb()};d.qd=function(a){return RS(this,a)};d.W3=function(a){var b=this.p,c=Ej().hv;dj(b,c,a);return this};d.yj=function(){S();var a=B(this.p.g,Ej().fb);S().wb();return Gb(a)};d.QQ=function(a){return this.uX(a)};d.J4=function(){return this.saa()};d.rd=function(){return PS(this)};
d.Y4=function(){return this.dea()};d.IW=function(){S();var a=B(this.p.g,Ej().Fc);return AS(S().wj(),a)};d.n4=function(a){var b=this.p,c=Ej().kj;dj(b,c,a);return this};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.AM=function(a){S();var b=this.p;M();var c=(new N).a(),c=(new VO).P((new Q).a(),c),e=vn().Md;a=Eb(c,e,a);c=Ej().mf;nh(b,c,a);return h_(I8(),a)};d.hi=function(a){var b=this.p,c=Ej().fb;Eb(b,c,a);return this};d.L3=function(a){var b=this.p,c=Ej().bv;dj(b,c,a);return this};
d.BI=function(a){return this.AM(a)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Rh=function(){return this.yj()};d.y=function(){return Y(this)};d.d5=function(){return this.ufa()};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p;M();var c=(new N).a();Ue(b,a,c);return this};d.gga=function(a){S();a=this.p.hga(a);return y_a(Gub(),a)};d.uX=function(a){S();a=this.p.AF((new A).d(a));return w_a(n8(),a)};
d.CI=function(a){var b=this.p,c=S(),e=I8();a=ml(nl(new ol,c,a,e));c=Ej().mf;qf(b,c,a);return this};d.O9=function(){S();var a=B(this.p.g,Ej().bv);S().sl();return tK(a)};d.PQ=function(a){var b=this.p,c=Ej().gp;dj(b,c,a);return this};en.prototype.annotations=function(){return this.bc()};en.prototype.graph=function(){return this.nd()};en.prototype.withId=function(a){return this.qd(a)};en.prototype.withExtendsNode=function(a){return this.pd(a)};en.prototype.withCustomDomainProperties=function(a){return this.od(a)};
Object.defineProperty(en.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(en.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(en.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(en.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});en.prototype.withExample=function(a){return this.QQ(a)};en.prototype.withPayload=function(a){return this.BI(a)};
en.prototype.withScalarSchema=function(a){return this.q4(a)};en.prototype.withObjectSchema=function(a){return this.f4(a)};en.prototype.withSchema=function(a){return this.YQ(a)};en.prototype.withExamples=function(a){return this.xI(a)};en.prototype.withPayloads=function(a){return this.CI(a)};en.prototype.withBinding=function(a){var b=this.p,c=Ej().df;Eb(b,c,a);return this};en.prototype.withAllowReserved=function(a){return this.L3(!!a)};en.prototype.withExplode=function(a){return this.W3(!!a)};
en.prototype.withStyle=function(a){return this.t4(a)};en.prototype.withAllowEmptyValue=function(a){a=!!a;var b=this.p,c=Ej().IF;dj(b,c,a);return this};en.prototype.withDeprecated=function(a){return this.PQ(!!a)};en.prototype.withRequired=function(a){return this.n4(!!a)};en.prototype.withDescription=function(a){return this.hi(a)};en.prototype.withParameterName=function(a){var b=this.p,c=Ej().Fw;Eb(b,c,a);return this};en.prototype.withName=function(a){return this.xe(a)};
Object.defineProperty(en.prototype,"examples",{get:function(){return this.EI()},configurable:!0});Object.defineProperty(en.prototype,"payloads",{get:function(){return this.HI()},configurable:!0});Object.defineProperty(en.prototype,"schema",{get:function(){return this.qR()},configurable:!0});Object.defineProperty(en.prototype,"binding",{get:function(){S();var a=B(this.p.g,Ej().df);S().wb();return Gb(a)},configurable:!0});
Object.defineProperty(en.prototype,"allowReserved",{get:function(){return this.z4()},configurable:!0});Object.defineProperty(en.prototype,"explode",{get:function(){return this.J4()},configurable:!0});Object.defineProperty(en.prototype,"style",{get:function(){return this.d5()},configurable:!0});Object.defineProperty(en.prototype,"allowEmptyValue",{get:function(){S();var a=B(this.p.g,Ej().IF);S().sl();return tK(a)},configurable:!0});
Object.defineProperty(en.prototype,"deprecated",{get:function(){return this.jR()},configurable:!0});Object.defineProperty(en.prototype,"required",{get:function(){return this.Y4()},configurable:!0});Object.defineProperty(en.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty(en.prototype,"parameterName",{get:function(){S();var a=B(this.p.g,Ej().Fw);S().wb();return Gb(a)},configurable:!0});
Object.defineProperty(en.prototype,"name",{get:function(){return this.Ie()},configurable:!0});en.prototype.$classData=q({Gia:0},!1,"amf.client.model.domain.Parameter",{Gia:1,f:1,Re:1,Id:1,xd:1,Fb:1,Yl:1,A:1,w:1,q:1,n:1});function xn(){this.na=this.p=null}xn.prototype=new r;xn.prototype.constructor=xn;d=xn.prototype;d.q4=function(a){return this.nga(a)};d.L=function(){return"Payload"};d.a=function(){M();var a=(new N).a();xn.prototype.jBa.call(this,(new VO).P((new Q).a(),a));return this};
d.YQ=function(a){var b=this.p;S();S().wj();a=a.qg();var c=vn().Fc;ff(b,c,a);return this};d.Xf=function(){S();var a=B(this.p.g,vn().$);S().wb();return Gb(a)};d.f4=function(a){return this.gga(a)};d.H=function(){return 1};d.nd=function(){return SS(this)};d.lL=function(){S();var a=B(this.p.g,vn().Md);S().wb();return Gb(a)};d.nga=function(a){S();a=this.p.wX(a);return F_a(Fub(),a)};d.Ie=function(){return this.Xf()};d.EI=function(){return this.oK()};
d.oK=function(){var a=S(),b=B(this.p.g,vn().Vc),c=n8();return Il(a,b,c).sb()};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Kia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.xI=function(a){var b=this.p,c=S(),e=n8();a=ml(nl(new ol,c,a,e));c=vn().Vc;qf(b,c,a);return this};d.qR=function(){return this.IW()};
d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.QQ=function(a){return this.uX(a)};d.rd=function(){return PS(this)};d.IW=function(){S();var a=B(this.p.g,vn().Fc);return AS(S().wj(),a)};d.jBa=function(a){this.p=a;this.na=ju().na;return this};d.sd=function(){return OS(this)};d.TQ=function(a){var b=this.p,c=vn().Md;Eb(b,c,a);return this};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.fz=function(){return this.lL()};
d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p;M();var c=(new N).a();Ue(b,a,c);return this};d.gga=function(a){S();a=this.p.hga(a);return y_a(Gub(),a)};d.uX=function(a){S();a=this.p.AF((new A).d(a));return w_a(n8(),a)};xn.prototype.annotations=function(){return this.bc()};xn.prototype.graph=function(){return this.nd()};xn.prototype.withId=function(a){return this.qd(a)};
xn.prototype.withExtendsNode=function(a){return this.pd(a)};xn.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(xn.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(xn.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(xn.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});
Object.defineProperty(xn.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});xn.prototype.withEncoding=function(a){var b;if(Lo(a))S(),b=Ifb(this.p,a),a=Hub(),b=dt(a.l.na,b);else{b=this.p;var c=S(),e=Hub();a=ml(nl(new ol,c,a,e));c=vn().YI;qf(b,c,a);b=this}return b};xn.prototype.withExample=function(a){return this.QQ(a)};xn.prototype.withScalarSchema=function(a){return this.q4(a)};xn.prototype.withObjectSchema=function(a){return this.f4(a)};
xn.prototype.withExamples=function(a){return this.xI(a)};xn.prototype.withSchema=function(a){return this.YQ(a)};xn.prototype.withMediaType=function(a){return this.TQ(a)};xn.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(xn.prototype,"encoding",{get:function(){var a=S(),b=B(this.p.g,vn().YI),c=Hub();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(xn.prototype,"examples",{get:function(){return this.EI()},configurable:!0});
Object.defineProperty(xn.prototype,"schema",{get:function(){return this.qR()},configurable:!0});Object.defineProperty(xn.prototype,"mediaType",{get:function(){return this.fz()},configurable:!0});Object.defineProperty(xn.prototype,"name",{get:function(){return this.Ie()},configurable:!0});xn.prototype.$classData=q({Kia:0},!1,"amf.client.model.domain.Payload",{Kia:1,f:1,Re:1,Id:1,xd:1,Fb:1,Yl:1,A:1,w:1,q:1,n:1});function Dn(){this.na=this.p=null}Dn.prototype=new r;Dn.prototype.constructor=Dn;d=Dn.prototype;
d.zI=function(a){return this.zM(a)};d.L=function(){return"Response"};d.a=function(){M();var a=(new N).a();Dn.prototype.lBa.call(this,(new LB).P((new Q).a(),a));return this};d.Xf=function(){S();var a=B(this.p.g,Bn().$);S().wb();return Gb(a)};d.lBa=function(a){this.p=a;this.na=ju().na;return this};d.i4=function(){return this.jga()};d.AI=function(a){var b=this.p,c=S(),e=H8();a=ml(nl(new ol,c,a,e));c=Bn().Qg;qf(b,c,a);return this};d.H=function(){return 1};d.nd=function(){return SS(this)};
d.jga=function(){S();var a=this.p.Sr(w());return h_(I8(),a)};d.Ie=function(){return this.Xf()};d.EI=function(){return this.oK()};d.pd=function(a){return US(this,a)};d.oK=function(){var a=S(),b=B(this.p.g,Bn().Vc),c=n8();return Il(a,b,c).sb()};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Sia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.zM=function(a){S();a=this.p.sI(a);return e_(H8(),a)};
d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.HI=function(){return this.GL()};d.xI=function(a){var b=this.p,c=S(),e=n8();a=ml(nl(new ol,c,a,e));c=Bn().Vc;qf(b,c,a);return this};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.GL=function(){var a=S(),b=B(this.p.g,Bn().mf),c=I8();return Il(a,b,c).sb()};d.qd=function(a){return RS(this,a)};d.yj=function(){S();var a=B(this.p.g,Bn().fb);S().wb();return Gb(a)};d.rd=function(){return PS(this)};
d.vK=function(){var a=S(),b=B(this.p.g,Bn().Qg),c=H8();return Il(a,b,c).sb()};d.GI=function(){return this.vK()};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.AM=function(a){S();a=this.p.Sr((new A).d(a));return h_(I8(),a)};d.hi=function(a){var b=this.p,c=Bn().fb;Eb(b,c,a);return this};d.BI=function(a){return this.AM(a)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Rh=function(){return this.yj()};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.xe=function(a){var b=this.p;M();var c=(new N).a();Ue(b,a,c);return this};d.CI=function(a){var b=this.p,c=S(),e=I8();a=ml(nl(new ol,c,a,e));c=Bn().mf;qf(b,c,a);return this};Dn.prototype.annotations=function(){return this.bc()};Dn.prototype.graph=function(){return this.nd()};Dn.prototype.withId=function(a){return this.qd(a)};Dn.prototype.withExtendsNode=function(a){return this.pd(a)};Dn.prototype.withCustomDomainProperties=function(a){return this.od(a)};
Object.defineProperty(Dn.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(Dn.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(Dn.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(Dn.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});
Dn.prototype.withPayload=function(){for(var a=arguments.length|0,b=0,c=[];b<a;)c.push(arguments[b]),b=b+1|0;switch(c.length|0){case 1:return this.BI(c[0]);case 0:return this.i4();default:throw"No matching overload";}};Dn.prototype.withHeader=function(a){return this.zI(a)};Dn.prototype.withLinks=function(a){var b=this.p,c=S(),e=Iub();a=ml(nl(new ol,c,a,e));c=Bn().jN;qf(b,c,a);return this};Dn.prototype.withExamples=function(a){return this.xI(a)};Dn.prototype.withPayloads=function(a){return this.CI(a)};
Dn.prototype.withHeaders=function(a){return this.AI(a)};Dn.prototype.withStatusCode=function(a){var b=this.p,c=Bn().vn;Eb(b,c,a);return this};Dn.prototype.withDescription=function(a){return this.hi(a)};Dn.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(Dn.prototype,"links",{get:function(){var a=S(),b=B(this.p.g,Bn().jN),c=Iub();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(Dn.prototype,"examples",{get:function(){return this.EI()},configurable:!0});
Object.defineProperty(Dn.prototype,"payloads",{get:function(){return this.HI()},configurable:!0});Object.defineProperty(Dn.prototype,"headers",{get:function(){return this.GI()},configurable:!0});Object.defineProperty(Dn.prototype,"statusCode",{get:function(){S();var a=B(this.p.g,Bn().vn);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(Dn.prototype,"description",{get:function(){return this.Rh()},configurable:!0});
Object.defineProperty(Dn.prototype,"name",{get:function(){return this.Ie()},configurable:!0});Dn.prototype.$classData=q({Sia:0},!1,"amf.client.model.domain.Response",{Sia:1,f:1,Re:1,Id:1,xd:1,Fb:1,Yl:1,A:1,w:1,q:1,n:1});function hm(){this.na=this.p=null}hm.prototype=new r;hm.prototype.constructor=hm;d=hm.prototype;d.tc=function(a,b){Dr();b=Wa().Ia(b);hm.prototype.RO.call(this,Ar(0,a,b,(M(),(new N).a())));return this};
d.a=function(){Dr();var a=w();hm.prototype.RO.call(this,Ar(0,"",a,(M(),(new N).a())));return this};d.L=function(){return"ScalarNode"};d.H=function(){return 1};d.Ie=function(){return S_a(this)};d.nd=function(){return SS(this)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.$6?this.p===a.p:!1};d.Zo=function(){return this.u()};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};
d.u=function(){var a=S_a(this).fj;return(a.b()?null:a.c())+":"+this.Q_()+"\x3d"+this.s3()};d.E4=function(){return this.Q_()};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.s3=function(){Ab();var a=B(this.p.ea,xj().rf);Ab().wb();return Gb(a)};d.RO=function(a){this.p=a;this.na=ju().na;return this};d.Q_=function(){Ab();var a=B(this.p.ea,xj().af);Ab().wb();return Gb(a)};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.II=function(){return this.s3()};
d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.xe=function(a){return T_a(this,a)};hm.prototype.annotations=function(){return this.bc()};hm.prototype.graph=function(){return this.nd()};hm.prototype.withId=function(a){return this.qd(a)};hm.prototype.withExtendsNode=function(a){return this.pd(a)};hm.prototype.withCustomDomainProperties=function(a){return this.od(a)};
Object.defineProperty(hm.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(hm.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(hm.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(hm.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});hm.prototype.withName=function(a){return this.xe(a)};
Object.defineProperty(hm.prototype,"name",{get:function(){return this.Ie()},configurable:!0});hm.prototype.toString=function(){return this.Zo()};Object.defineProperty(hm.prototype,"dataType",{get:function(){return this.E4()},configurable:!0});Object.defineProperty(hm.prototype,"value",{get:function(){return this.II()},configurable:!0});hm.prototype.$classData=q({$6:0},!1,"amf.client.model.domain.ScalarNode",{$6:1,f:1,iia:1,Re:1,Id:1,xd:1,Fb:1,A:1,w:1,q:1,n:1});function un(){this.na=this.p=null}
un.prototype=new r;un.prototype.constructor=un;d=un.prototype;d.lga=function(a){S();a=this.p.mga(a);return E_a(Dub(),a)};d.hfa=function(){S();var a=B(this.p.g,vi().li);return H_a(Esb(),a)};d.zI=function(a){return this.zM(a)};d.d4=function(){return this.ega()};d.L=function(){return"SecurityScheme"};d.Xf=function(){S();var a=B(this.p.g,vi().$);S().wb();return Gb(a)};d.a=function(){M();var a=(new N).a(),b=(new Q).a();un.prototype.rBa.call(this,(new NB).P(b,a));return this};d.Wt=function(){return zb(this)};
d.rBa=function(a){this.p=a;this.na=ju().na;return this};d.lw=function(a){return Cb(this,a)};d.AI=function(a){var b=this.p,c=S(),e=H8();a=ml(nl(new ol,c,a,e));c=vi().Qg;qf(b,c,a);return this};d.H=function(){return 1};d.nd=function(){return SS(this)};d.Vt=function(){return this.iE()};d.Ie=function(){return this.Xf()};d.pd=function(a){return US(this,a)};d.iw=function(){return w()};d.Jd=function(){return this.p};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Wia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.kga=function(a){S();a=this.p.x3(a);return e_(H8(),a)};d.zM=function(a){S();a=this.p.sI(a);return e_(H8(),a)};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.ega=function(){S();var a=this.p.vX();J_a(S());return(new G_).JU(a)};d.k4=function(a){return this.kga(a)};d.u=function(){return U(W(),this)};
d.bga=function(){S();var a=this.p.v3();N_a(S());return(new E_).IU(a)};d.ow=function(){return xb(this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.yj=function(){S();var a=B(this.p.g,vi().fb);S().wb();return Gb(a)};d.p4=function(a){var b=this.p,c=S(),e=Dub();a=ml(nl(new ol,c,a,e));c=vi().Zl;qf(b,c,a);return this};d.Tt=function(a){var b=this.p,c=vi().gd;Eb(b,c,a);return this};d.$fa=function(){S();var a=this.p.uQ();L_a(S());return(new C_).HU(a)};d.U4=function(){return this.Tda()};
d.Ao=function(){return Jub(this)};d.e4=function(){return this.fga()};d.rd=function(){return PS(this)};d.vK=function(){var a=S(),b=B(this.p.g,vi().Qg),c=H8();return Il(a,b,c).sb()};d.g4=function(){return this.iga()};d.GI=function(){return this.vK()};d.ws=function(){return Jub(this)};d.jw=function(a){return Hb(this,a)};d.sd=function(){return OS(this)};d.Z4=function(){return this.gea()};d.bc=function(){return Eo(this)};d.Tda=function(){var a=S(),b=B(this.p.g,vi().um),c=H8();return Il(a,b,c).sb()};
d.hi=function(a){var b=this.p,c=vi().fb;Eb(b,c,a);return this};d.od=function(a){return WS(this,a)};d.iga=function(){S();var a=this.p.w3();P_a(S());return(new K_).MU(a)};d.Uda=function(){S();var a=B(this.p.g,vi().Dq);return AS(S().wj(),a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.m4=function(a){var b=this.p;S();S().wj();a=a.qg();var c=vi().Dq;ff(b,c,a);return this};d.M3=function(){return this.$fa()};d.Rh=function(){return this.yj()};d.y=function(){return Y(this)};
d.iE=function(){S();var a=B(this.p.g,vi().gd);S().wb();return Gb(a)};function Jub(a){S();a=a.p;M();var b=(new N).a(),c=(new Q).a(),b=(new NB).P(c,b);a=Te(b,a.k);return G_a(Fsb(),a)}d.M=function(){return Z(this)};d.o4=function(a){return this.lga(a)};d.xe=function(a){var b=this.p;M();var c=(new N).a();Ue(b,a,c);return this};d.fga=function(){S();var a=this.p.xQ();K_a(S());return(new I_).KU(a)};d.V4=function(){return this.Uda()};d.gea=function(){var a=S(),b=B(this.p.g,vi().Zl),c=Dub();return Il(a,b,c).sb()};
d.s4=function(a){var b=this.p;S();Esb();a=a.p;var c=vi().li;ff(b,c,a);return this};d.l4=function(a){var b=this.p,c=S(),e=H8();a=ml(nl(new ol,c,a,e));c=vi().um;qf(b,c,a);return this};d.aga=function(){S();var a=this.p.tX();return H_a(Esb(),a)};d.pw=function(){return Fb(this)};d.b5=function(){return this.hfa()};d.Q3=function(){return this.aga()};d.Z3=function(){return this.bga()};d.mw=function(a){return Ib(this,a)};un.prototype.annotations=function(){return this.bc()};un.prototype.graph=function(){return this.nd()};
un.prototype.withId=function(a){return this.qd(a)};un.prototype.withExtendsNode=function(a){return this.pd(a)};un.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(un.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(un.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(un.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});
Object.defineProperty(un.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});un.prototype.link=function(){for(var a=arguments.length|0,b=0,c=[];b<a;)c.push(arguments[b]),b=b+1|0;a=void 0===c[0]?this.iw():c[0];return this.jw(a)};un.prototype.withLinkLabel=function(a){return this.lw(a)};un.prototype.withLinkTarget=function(a){return this.mw(a)};Object.defineProperty(un.prototype,"linkLabel",{get:function(){return this.pw()},configurable:!0});
Object.defineProperty(un.prototype,"isLink",{get:function(){return this.ow()},configurable:!0});Object.defineProperty(un.prototype,"linkTarget",{get:function(){return this.Wt()},configurable:!0});un.prototype.linkCopy=function(){return this.Ao()};un.prototype.withOpenIdConnectSettings=function(){return this.g4()};un.prototype.withHttpSettings=function(){return this.Z3()};un.prototype.withApiKeySettings=function(){return this.M3()};un.prototype.withOAuth2Settings=function(){return this.e4()};
un.prototype.withOAuth1Settings=function(){return this.d4()};un.prototype.withDefaultSettings=function(){return this.Q3()};un.prototype.withResponse=function(a){return this.o4(a)};un.prototype.withQueryParameter=function(a){return this.k4(a)};un.prototype.withHeader=function(a){return this.zI(a)};un.prototype.withQueryString=function(a){return this.m4(a)};un.prototype.withSettings=function(a){return this.s4(a)};un.prototype.withResponses=function(a){return this.p4(a)};
un.prototype.withQueryParameters=function(a){return this.l4(a)};un.prototype.withHeaders=function(a){return this.AI(a)};un.prototype.withDescription=function(a){return this.hi(a)};un.prototype.withDisplayName=function(a){return this.Tt(a)};un.prototype.withType=function(a){var b=this.p,c=vi().Nj;Eb(b,c,a);return this};un.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(un.prototype,"queryString",{get:function(){return this.V4()},configurable:!0});
Object.defineProperty(un.prototype,"settings",{get:function(){return this.b5()},configurable:!0});Object.defineProperty(un.prototype,"responses",{get:function(){return this.Z4()},configurable:!0});Object.defineProperty(un.prototype,"queryParameters",{get:function(){return this.U4()},configurable:!0});Object.defineProperty(un.prototype,"headers",{get:function(){return this.GI()},configurable:!0});Object.defineProperty(un.prototype,"description",{get:function(){return this.Rh()},configurable:!0});
Object.defineProperty(un.prototype,"displayName",{get:function(){return this.Vt()},configurable:!0});Object.defineProperty(un.prototype,"type",{get:function(){S();var a=B(this.p.g,vi().Nj);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(un.prototype,"name",{get:function(){return this.Ie()},configurable:!0});un.prototype.$classData=q({Wia:0},!1,"amf.client.model.domain.SecurityScheme",{Wia:1,f:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,A:1,w:1,q:1,n:1});function ro(){this.na=this.p=null}
ro.prototype=new r;ro.prototype.constructor=ro;d=ro.prototype;d.L=function(){return"TemplatedLink"};d.a=function(){M();var a=(new N).a();ro.prototype.nBa.call(this,(new d6).P((new Q).a(),a));return this};d.Xf=function(){S();var a=B(this.p.g,po().$);S().wb();return Gb(a)};d.H=function(){return 1};d.nd=function(){return SS(this)};d.Ie=function(){return this.Xf()};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Zia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.nBa=function(a){this.p=a;this.na=ju().na;return this};d.qd=function(a){return RS(this,a)};d.yj=function(){S();var a=B(this.p.g,po().fb);S().wb();return Gb(a)};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};
d.bc=function(){return Eo(this)};d.hi=function(a){var b=this.p,c=po().fb;Eb(b,c,a);return this};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Rh=function(){return this.yj()};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p;M();var c=(new N).a();Ue(b,a,c);return this};ro.prototype.annotations=function(){return this.bc()};ro.prototype.graph=function(){return this.nd()};ro.prototype.withId=function(a){return this.qd(a)};
ro.prototype.withExtendsNode=function(a){return this.pd(a)};ro.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(ro.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(ro.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(ro.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});
Object.defineProperty(ro.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});ro.prototype.withServer=function(a){var b=this.p;S();d9();a=a.p;var c=po().cG;ff(b,c,a);return this};ro.prototype.withRequestBody=function(a){var b=this.p,c=po().tN;Eb(b,c,a);return this};ro.prototype.withMapping=function(a){var b=this.p,c=S(),e=Kub();a=ml(nl(new ol,c,a,e));c=po().rJ;qf(b,c,a);return this};ro.prototype.withOperationRef=function(a){var b=this.p,c=po().lN;Eb(b,c,a);return this};
ro.prototype.withOperationId=function(a){var b=this.p,c=po().$F;Eb(b,c,a);return this};ro.prototype.withTemplate=function(a){var b=this.p,c=po().o9;Eb(b,c,a);return this};ro.prototype.withDescription=function(a){return this.hi(a)};ro.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(ro.prototype,"server",{get:function(){S();var a=B(this.p.g,po().cG);return A_(d9(),a)},configurable:!0});
Object.defineProperty(ro.prototype,"requestBody",{get:function(){S();var a=B(this.p.g,po().tN);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(ro.prototype,"mapping",{get:function(){var a=S(),b=B(this.p.g,po().rJ),c=Kub();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(ro.prototype,"operationRef",{get:function(){S();var a=B(this.p.g,po().lN);S().wb();return Gb(a)},configurable:!0});
Object.defineProperty(ro.prototype,"operationId",{get:function(){S();var a=B(this.p.g,po().$F);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(ro.prototype,"template",{get:function(){S();var a=B(this.p.g,po().$F);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(ro.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty(ro.prototype,"name",{get:function(){return this.Ie()},configurable:!0});
ro.prototype.$classData=q({Zia:0},!1,"amf.client.model.domain.TemplatedLink",{Zia:1,f:1,Re:1,Id:1,xd:1,Fb:1,Yl:1,A:1,w:1,q:1,n:1});function Ln(){this.na=this.p=null}Ln.prototype=new r;Ln.prototype.constructor=Ln;d=Ln.prototype;d.L=function(){return"WebApi"};d.Xf=function(){S();var a=B(this.p.g,Jn().$);S().wb();return Gb(a)};d.a=function(){M();var a=(new N).a();Ln.prototype.oBa.call(this,(new xX).P((new Q).a(),a));return this};d.x4=function(){return this.K9()};d.H=function(){return 1};d.nd=function(){return SS(this)};
d.Ie=function(){return this.Xf()};d.r4=function(a){var b=this.p,c=S(),e=S().oh();a=ml(nl(new ol,c,a,e));c=Jn().yk;dr(b,c,a);return this};d.L$=function(){var a=S(),b=B(this.p.g,Jn().tl),c=S().wb();return Il(a,b,c).sb()};d.pd=function(a){return US(this,a)};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.eja){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.Jd=function(){return this.p};d.eR=function(){return this.L$()};
d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.oBa=function(a){this.p=a;this.na=ju().na;return this};d.u=function(){return U(W(),this)};d.K9=function(){var a=S(),b=B(this.p.g,Jn().Jp),c=S().wb();return Il(a,b,c).sb()};d.fd=function(){return QS(this)};d.sR=function(){return this.PW()};d.qd=function(a){return RS(this,a)};d.yj=function(){S();var a=B(this.p.g,Jn().fb);S().wb();return Gb(a)};d.PW=function(){var a=S(),b=B(this.p.g,Jn().Wh),c=d9();return Il(a,b,c).sb()};
d.P3=function(a){var b=this.p,c=S(),e=S().oh();a=ml(nl(new ol,c,a,e));c=Jn().tl;dr(b,c,a);return this};d.xX=function(a){S();a=this.p.BM(a);return A_(d9(),a)};d.rd=function(){return PS(this)};d.$Q=function(a){return this.xX(a)};d.ZQ=function(a){var b=this.p,c=S(),e=Aub();a=ml(nl(new ol,c,a,e));c=Jn().oc;qf(b,c,a);return this};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.a5=function(){return this.Rea()};
d.Rea=function(){var a=S(),b=B(this.p.g,Jn().yk),c=S().wb();return Il(a,b,c).sb()};d.hi=function(a){var b=this.p,c=Jn().fb;Eb(b,c,a);return this};d.w4=function(a){var b=this.p,c=Jn().Tm;Eb(b,c,a);return this};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Xfa=function(){S();var a=B(this.p.g,Jn().Tm);S().wb();return Gb(a)};d.rR=function(){return this.NW()};d.Rh=function(){return this.yj()};d.y=function(){return Y(this)};
d.J3=function(a){var b=this.p,c=S(),e=S().oh();a=ml(nl(new ol,c,a,e));c=Jn().Jp;dr(b,c,a);return this};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p;M();var c=(new N).a();Ue(b,a,c);return this};d.Nn=function(){var a;a=Zb(this.p.E,n($S));a.b()?a=w():(a=a.c(),a=(new A).d(a.Qe));return a};d.aR=function(a){var b=this.p,c=S(),e=d9();a=ml(nl(new ol,c,a,e));c=Jn().Wh;qf(b,c,a);return this};d.NW=function(){var a=S(),b=B(this.p.g,Jn().oc),c=Aub();return Il(a,b,c).sb()};
Ln.prototype.annotations=function(){return this.bc()};Ln.prototype.graph=function(){return this.nd()};Ln.prototype.withId=function(a){return this.qd(a)};Ln.prototype.withExtendsNode=function(a){return this.pd(a)};Ln.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(Ln.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(Ln.prototype,"id",{get:function(){return this.hc()},configurable:!0});
Object.defineProperty(Ln.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(Ln.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});Object.defineProperty(Ln.prototype,"sourceVendor",{get:function(){return this.Nn()},configurable:!0});Ln.prototype.withDefaultServer=function(a){S();a=this.p.BM(a);var b=(new GO).a();a=ac(a,b);return A_(d9(),a)};Ln.prototype.withServer=function(a){return this.$Q(a)};
Ln.prototype.withEndPoint=function(a){S();a=y9a(this.p,a);return v_a(c9(),a)};Ln.prototype.withDocumentationUrl=function(a){S();var b=this.p;M();var c=(new N).a(),e=(new Q).a(),c=(new r4).P(e,c),e=Gi().Jf;a=Eb(c,e,a);c=Jn().tw;nh(b,c,a);return s_a(m8(),a)};Ln.prototype.withDocumentationTitle=function(a){S();var b=this.p;M();var c=(new N).a(),e=(new Q).a(),c=(new r4).P(e,c),e=Gi().fu;a=Eb(c,e,a);c=Jn().tw;nh(b,c,a);return s_a(m8(),a)};Ln.prototype.withSecurity=function(a){return this.ZQ(a)};
Ln.prototype.withServers=function(a){return this.aR(a)};Ln.prototype.withDocumentation=function(a){var b=this.p,c=S(),e=m8();a=ml(nl(new ol,c,a,e));c=Jn().tw;qf(b,c,a);return this};Ln.prototype.withLicense=function(a){var b=this.p;S();Lub();a=a.p;var c=Jn().WF;ff(b,c,a);return this};Ln.prototype.withProvider=function(a){var b=this.p;S();Mub();a=a.p;var c=Jn().bG;ff(b,c,a);return this};Ln.prototype.withTermsOfService=function(a){var b=this.p,c=Jn().dG;Eb(b,c,a);return this};
Ln.prototype.withVersion=function(a){return this.w4(a)};Ln.prototype.withContentType=function(a){return this.P3(a)};Ln.prototype.withAccepts=function(a){return this.J3(a)};Ln.prototype.withEndPoints=function(a){var b=this.p,c=S(),e=c9();a=ml(nl(new ol,c,a,e));c=Jn().kr;qf(b,c,a);return this};Ln.prototype.withSchemes=function(a){return this.r4(a)};Ln.prototype.withDescription=function(a){return this.hi(a)};Ln.prototype.withName=function(a){return this.xe(a)};
Object.defineProperty(Ln.prototype,"security",{get:function(){return this.rR()},configurable:!0});Object.defineProperty(Ln.prototype,"servers",{get:function(){return this.sR()},configurable:!0});Object.defineProperty(Ln.prototype,"documentations",{get:function(){var a=S(),b=B(this.p.g,Jn().tw),c=m8();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(Ln.prototype,"license",{get:function(){S();var a=B(this.p.g,Jn().WF),b=Lub();return dt(b.l.na,a)},configurable:!0});
Object.defineProperty(Ln.prototype,"provider",{get:function(){S();var a=B(this.p.g,Jn().bG),b=Mub();return dt(b.l.na,a)},configurable:!0});Object.defineProperty(Ln.prototype,"termsOfService",{get:function(){S();var a=B(this.p.g,Jn().dG);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(Ln.prototype,"version",{get:function(){return this.Xfa()},configurable:!0});Object.defineProperty(Ln.prototype,"contentType",{get:function(){return this.eR()},configurable:!0});
Object.defineProperty(Ln.prototype,"accepts",{get:function(){return this.x4()},configurable:!0});Object.defineProperty(Ln.prototype,"endPoints",{get:function(){var a=S(),b=B(this.p.g,Jn().kr),c=c9();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(Ln.prototype,"schemes",{get:function(){return this.a5()},configurable:!0});Object.defineProperty(Ln.prototype,"description",{get:function(){return this.Rh()},configurable:!0});
Object.defineProperty(Ln.prototype,"name",{get:function(){return this.Ie()},configurable:!0});Ln.prototype.$classData=q({eja:0},!1,"amf.client.model.domain.WebApi",{eja:1,f:1,Re:1,Id:1,xd:1,Fb:1,Yl:1,A:1,w:1,q:1,n:1});function nB(){this.t=this.ba=this.Fs=null}nB.prototype=new r;nB.prototype.constructor=nB;d=nB.prototype;d.L=function(){return"TrackedElement"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(mB(a)){var b=this.Fs;a=a.Fs;return null===b?null===a:o4(b,a)}return!1};
d.K=function(a){switch(a){case 0:return this.Fs;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.te=function(){return this.ba};d.Qj=function(a){this.Fs=a;this.ba="tracked-element";this.t=IG(a,"",",","");xx(a);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.cM=function(a){var b=this.Fs,c=Pf(),c=Qf(c);return(new nB).Qj(De(b,a,c))};function mB(a){return!!(a&&a.$classData&&a.$classData.v.Ija)}
var lB=q({Ija:0},!1,"amf.core.annotations.TrackedElement",{Ija:1,f:1,pka:1,Sm:1,lf:1,mh:1,dJ:1,A:1,w:1,q:1,n:1});nB.prototype.$classData=lB;function Le(){this.E=this.g=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}Le.prototype=new r;Le.prototype.constructor=Le;d=Le.prototype;d.L=function(){return"CustomDomainProperty"};d.Ub=function(){return H(z(),G())};d.Zu=function(a){this.Nk=a};d.H=function(){return 2};d.Qb=function(a){return s9a(this,a)};d.es=function(){};
d.It=function(a){this.Zi=a};d.h=function(a){return this===a?!0:$l(a)?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.El=function(){M();var a=(new N).a(),a=(new Le).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return Zl()};d.Mq=function(){return H(z(),G())};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.lu=function(a){this.Zg=a};d.Nt=function(){return this.Zg};
d.Nd=function(){var a=B(this.g,Zl().$).G;a.b()?a=w():(a=a.c(),a=(new Cf).e(a),a=(new A).d(Gj(a.zd)));return a.b()?"":a.c()};d.Hu=function(){};d.Is=function(a,b,c,e){return fL(this,a,b,c,e)};d.bf=function(){return this.ma?this.mb:this.Hd()};function s9a(a,b){if(Wa().Ia(a.k).b()){if(-1!==(b.indexOf("#")|0)){var c=a.Nd(),c=(new Cf).e(c);b=b+"/"+Gj(c.zd);return Te(a,b)}c=a.Nd();c=(new Cf).e(c);b=b+"#"+Gj(c.zd);return Te(a,b)}return a}d.Yb=function(){return Yb(this)};
d.gk=function(a,b){return gL(this,a,b)};d.Qk=function(){return qd(function(){return function(a,b){return(new Le).P(a,b)}}(this))};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.Ht=function(a){this.Jk=a};d.Ch=function(){return Zl().$};d.y=function(){return Y(this)};d.Up=function(a){return Px(this,a)};d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.ku=function(a){this.zk=a};
d.P=function(a,b){this.g=a;this.E=b;hL(this);return this};function $l(a){return!!(a&&a.$classData&&a.$classData.v.vka)}d.$classData=q({vka:0},!1,"amf.core.model.domain.extensions.CustomDomainProperty",{vka:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,A:1,w:1,q:1,n:1});function ds(){this.l=this.xc=this.E=this.G=null}ds.prototype=new r;ds.prototype.constructor=ds;d=ds.prototype;d.L=function(){return"AnyFieldImpl"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Fka&&a.l===this.l){var b=this.G,c=a.G;if((null===b?null===c:b.h(c))&&this.E===a.E)return b=this.xc,a=a.xc,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.G;case 1:return this.E;case 2:return this.xc;default:throw(new X).e(""+a);}};d.u=function(){return gba(this)};d.zE=function(a,b,c){ds.prototype.Kv.call(this,a,Wa().Ia(b.t),b.E,c);return this};d.Nu=function(){return this.G};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Kv=function(a,b,c,e){this.G=b;this.E=c;this.xc=e;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.$classData=q({Fka:0},!1,"amf.core.parser.Fields$AnyFieldImpl",{Fka:1,f:1,Heb:1,GY:1,FY:1,HY:1,JY:1,A:1,w:1,q:1,n:1});function Sr(){this.l=this.xc=this.E=this.G=null}Sr.prototype=new r;Sr.prototype.constructor=Sr;d=Sr.prototype;d.L=function(){return"StrFieldImpl"};d.H=function(){return 3};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Jka&&a.l===this.l){var b=this.G,c=a.G;if((null===b?null===c:b.h(c))&&this.E===a.E)return b=this.xc,a=a.xc,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.G;case 1:return this.E;case 2:return this.xc;default:throw(new X).e(""+a);}};d.u=function(){return gba(this)};d.zE=function(a,b,c){var e=Wa().Ia(b.t);e.b()?e=w():(e=e.c(),e=(new A).d(e));Sr.prototype.Kv.call(this,a,e,b.E,c);return this};d.Nu=function(){return this.G};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Kv=function(a,b,c,e){this.G=b;this.E=c;this.xc=e;if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.$classData=q({Jka:0},!1,"amf.core.parser.Fields$StrFieldImpl",{Jka:1,f:1,Leb:1,GY:1,FY:1,HY:1,JY:1,A:1,w:1,q:1,n:1});function Nub(){this.Aa=this.jg=this.ug=this.Ud=this.qc=this.nc=this.ob=this.Mc=this.ch=this.Jc=this.g=this.ja=this.lr=this.Rf=null}Nub.prototype=new r;Nub.prototype.constructor=Nub;d=Nub.prototype;
d.a=function(){Oub=this;Iq(this);bT(this);H0(this);I0(this);G5(this);DM(this);Vib(this);var a=Xc(),b=C().Kc;this.Rf=Rb(new Sb,a,D(new F,b,"definedBy"),Tb(new Ub,Vb().tm,"","",G()));a=(new Ki).Ld(Xc());b=C().Zd;this.lr=Rb(new Sb,a,D(new F,b,"graphDependencies"),Tb(new Ub,Vb().tm,"","",G()));var a=C().Kc,a=D(new F,a,"DialectInstancePatch"),b=C().Zd,b=D(new F,b,"DocumentExtension"),c=Ap().ja;this.ja=oz(new pz,a,oz(new pz,b,c));var a=this.Rf,b=this.lr,c=this.ch,e=this.Jc,f=Rl().g;this.g=oz(new pz,a,oz(new pz,
b,oz(new pz,c,oz(new pz,e,f))));return this};d.RD=function(){};d.Yc=function(a){this.Aa=a};d.yn=function(a){this.ug=a};d.Bn=function(a){this.qc=a};d.wi=function(){return this.Jc};d.f_=function(a){this.Jc=a};d.sc=function(){return this.g};d.Tc=function(){return this.Aa};d.An=function(a){this.jg=a};d.gy=function(a){this.Mc=a};d.Zc=function(){M();var a=(new N).a();return(new Z6).P((new Q).a(),a)};d.g_=function(){};d.ec=function(){return this.ja};d.Qp=function(a){this.ob=a};d.Cn=function(a){this.Ud=a};
d.SD=function(){};d.zn=function(a){this.nc=a};d.TD=function(a){this.ch=a};d.$classData=q({ARa:0},!1,"amf.plugins.document.vocabularies.metamodel.document.DialectInstancePatchModel$",{ARa:1,f:1,tB:1,xq:1,tn:1,Oc:1,ic:1,Xc:1,Az:1,SF:1,DY:1});var Oub=void 0;function cHa(){Oub||(Oub=(new Nub).a());return Oub}function Pub(){yp.call(this);this.Bk=null;this.r1=!1;this.ad=this.s2=this.iEa=this.rCa=this.UE=null}Pub.prototype=new $nb;Pub.prototype.constructor=Pub;
function g5a(a,b){a=a.up.Ta(b);return x(a)&&(a=a.i,xA(a))?(new A).d(a):w()}function $sb(a,b){var c=new Pub,e=w();c.Bk=a;yp.prototype.co.call(c,b.Xg,b.yf,b.Yh,b.Xi,w());c.r1=!1;c.UE=G();c.rCa=Qub(c,"library");c.iEa=Qub(c,"root");c.s2=A5a(c);c.up=b.up;c.Ru=b.Ru;e.b()?(a=(new A).d(c),b=c.Yh,e=pc(fc().db,G()),a=(new c1).XU(e,a,b)):a=e.c();c.ad=a;return c}
Pub.prototype.Oo=function(a){var b=a.pb().nb,c=O().vq;if(b===c)return Zf(),b=zc(),c=Ac().fi,a=L(a,b,c).ya,(new $f).d(a);Aw(a.we())?(b=Pc(),c=Ac().fi,b=L(a,b,c),b=yc((new K).Y(b),"$include").qa()):b=!1;if(b)return Zf(),b=Pc(),c=Ac().fi,a=L(a,b,c),a=yc((new K).Y(a),"$include").c().i,b=qe(),c=Ac().fi,a=L(a,b,c),(new $f).d(a);Zf();return(new ag).d(a)};function i5a(a,b){a=B(a.Bk.g,ed().Mc);var c=hd,e=new jeb;e.zca=b;return c(a,e)}
function A5a(a){var b=B(B(a.Bk.g,ed().vj).g,fd().qz).G;if(x(b))if(a=b.i,a=kd(ta(),a,"/",0),a=[Wj((new md).vc(a))],0===(a.length|0))a=Yd();else{for(var b=Zd(new ee,Yd()),c=0,e=a.length|0;c<e;)fe(b,a[c]),c=1+c|0;a=b.gb}else b=Wa(),c=B(a.Bk.g,ed().vj),b=b.Ia(B(c.g,fd().cs)),b.b()?b=w():(b=B(b.c().g,OA().$t),c=t(new u,function(){return function(a){a=B(a.g,MA().$).G;return a.b()?null:a.c()}}(a)),e=z(),b=(new A).d(b.ka(c,e.s))),b=b.b()?H(z(),G()):b.c(),c=Wa(),e=B(a.Bk.g,ed().vj),c=c.Ia(B(e.g,fd().ay)),
c.b()?a=w():(c=B(c.c().g,OA().$t),a=t(new u,function(){return function(a){a=B(a.g,MA().$).G;return a.b()?null:a.c()}}(a)),e=z(),a=(new A).d(c.ka(a,e.s))),a=a.b()?H(z(),G()):a.c(),c=z(),a=b.la(a,c.s).pg();b=z();return a.vk(H(b,(new J).aa(["uses","external"])).pg())}
function Qub(a,b){var c=Wa().Ia(B(a.Bk.g,ed().vj));if(c.b())b=w();else if(c=c.c(),b="root"===b?Wa().Ia(B(c.g,fd().cs)):Wa().Ia(B(c.g,fd().ay)),b.b())b=w();else{b=B(b.c().g,OA().$t);var c=t(new u,function(a){return function(b){var c=B(b.g,MA().mv).G,c=i5a(a,c.b()?null:c.c());if(c.b())return w();c=c.c();b=B(b.g,MA().$).G;return(new A).d((new P).N(b.b()?null:b.c(),c))}}(a)),e=z();b=b.ka(c,e.s);c=new ieb;e=z();b=(new A).d(b.$b(c,e.s))}return(b.b()?G():b.c()).ae(pc(fc().db,G()),qd(function(){return function(a,
b){var c=(new P).N(a,b);a=c.ep;b=c.rq;if(null!==b)return c=b.pa(),b=b.Ba(),a.Zb((new P).N(c,b));throw(new v).d(c);}}(a)))}Pub.prototype.$classData=q({ASa:0},!1,"amf.plugins.document.vocabularies.parser.instances.DialectInstanceContext",{ASa:1,au:1,f:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1,Ama:1});function DN(){this.QH=this.i2=this.mV=this.ZC=this.Q=null}DN.prototype=new oKa;DN.prototype.constructor=DN;d=DN.prototype;d.EGa=function(){return this.ZC};d.L=function(){return"OasTagToReferenceEmitter"};
d.Ob=function(a){var b;a:if(b=this.ZC,ns(b)&&yb(b).qa()){var c=yb(b);if(x(c)){b=c.i;break a}var c=this.Q.Si(),e=Bc().nh,f=b.k,g=w(),h="Expected shape link target on "+this.ZC,k=Zb(this.ZC.ha(),n(Fd)),l=this.ZC.Yb();c.Hc(e.k,f,g,h,k,xc().tb,l)}os(b)&&Yh(b.ha(),n(Zt))?Dv(this.Q,a,Foa(Hy(),this.QH)):dn(b)&&Yh(b.E,n(Zt))?Dv(this.Q,a,Goa(Hy(),this.QH,this.Q)):wn(b)&&Yh(b.E,n(Zt))?Dv(this.Q,a,Goa(Hy(),this.QH,this.Q)):Cn(b)&&Yh(b.E,n(Zt))?(b=this.Q,c=Hy(),e=this.QH,Dv(b,a,Fy(this.Q.of)?Gy(c,e,"responses"):
""+c.fea+e)):jn(b)&&Yh(b.E,n(Zt))?Dv(this.Q,a,Gy(Hy(),this.QH,"callbacks")):qo(b)&&Yh(b.E,n(Zt))?Dv(this.Q,a,Gy(Hy(),this.QH,"links")):Dv(this.Q,a,this.QH)};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Zoa){var b=this.ZC,c=a.ZC;(null===b?null===c:b.h(c))?(b=this.mV,c=a.mV,b=null===b?null===c:b.h(c)):b=!1;if(b)return b=this.i2,a=a.i2,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.ZC;case 1:return this.mV;case 2:return this.i2;default:throw(new X).e(""+a);}};d.cya=function(a){this.QH=a};d.u=function(){return U(W(),this)};d.pCa=function(){return this.mV};function CN(a,b,c,e,f){a.ZC=b;a.mV=c;a.i2=e;cP.prototype.sA.call(a,f);gla(a);return a}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){return jq(Cq(),this.ZC.ha(),n(Fd))};
d.$classData=q({Zoa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.OasTagToReferenceEmitter",{Zoa:1,jS:1,f:1,fS:1,hUa:1,lh:1,Ra:1,A:1,w:1,q:1,n:1});function wV(){l3.call(this);this.oy=this.tF=this.Lg=this.ox=this.oE=null}wV.prototype=new T7a;wV.prototype.constructor=wV;d=wV.prototype;d.L=function(){return"Raml08TypeParser"};d.lC=function(a,b,c,e,f,g){this.oE=a;this.ox=b;this.Lg=c;this.tF=e;this.oy=f;l3.prototype.lC.call(this,a,b,c,e,f,g);return this};d.H=function(){return 5};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Fpa){var b=this.oE,c=a.oE;(null===b?null===c:b.h(c))&&Yj(this.ox,a.ox)?(b=this.Lg,c=a.Lg,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.tF,c=a.tF,b=null===b?null===c:b.h(c)):b=!1;return b?this.oy===a.oy:!1}return!1};d.K=function(a){switch(a){case 0:return this.oE;case 1:return this.ox;case 2:return this.Lg;case 3:return this.tF;case 4:return this.oy;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.wc=function(){var a=PW(QW(),this.Bd),b=this.Xd,c=Ke(M(),this.ox),b=Ue(a,b,c);this.Lg.R(b);a=this.Bd.pb().nb;if(O().ua===a){a=this.Bd;b=Pc();c=L(a,b,this.va);a=yc((new K).Y(c),"schema");if(a.b())return Wa().Ia(u7a(new Y2,this.Xd,this.Lg,c,this.oy.sF,this.va).Hi());a.c();a=s7a(this,c,this.Lg,this.va).wc();if(a.b())return w();b=a.c();a=b.Qv().yC();M();var e=(new N).a(),a=Ue(a,"inherits",e);this.Lg.R(a);c=(new G3).RU("example",c,t(new u,function(a,b){return function(a){return b.AF(a)}}(this,a)),Aca((new lO).wA(!0,
!0,!1),b),this.va).wc();if(c.b())a=b;else{var c=c.c(),e=Pg().ld,f=z(),b=gr(new hr,H(f,(new J).aa([b])),(new N).a());ff(a,e,b);b=xh().Vc;c=H(z(),(new J).aa([c]));a=qf(a,b,c)}return(new A).d(a)}return O().Nc===a?(a=Wa(),KVa||(KVa=(new iX).a()),c=JVa(this.Bd),e=this.Xd,f=Ke(M(),this.ox),c=Ue(c,e,f),b=b.k,H(z(),G()),b=cj(c,b),c=this.Bd,e=Jc(),a.Ia(w7a(new v7a,b,L(c,e,this.va),this.Bd,this.va).DP())):r7a(this,this.Bd,this.Lg,this.Xd,this.oy,this.va).wc()};d.Mb=function(){return this.va};
d.nQ=function(){return wU(function(a){return function(b,c,e,f,g){f=!!f;IU();var h=a.va;return(new wV).lC(b,(R(),Th(R(),c)),e,TU(f,!1),g,(new mz).Vk(h.Xg,h.yf,h,(new A).d(h.le()),w(),w(),py().On))}}(this))};d.y=function(){return Y(this)};d.Jo=function(){return this.va};d.M=function(){return Z(this)};d.$classData=q({Fpa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml08TypeParser",{Fpa:1,HWa:1,KD:1,f:1,lv:1,$r:1,ig:1,A:1,w:1,q:1,n:1});
function AV(){l3.call(this);this.oy=this.tF=this.Lg=this.ox=this.oE=null}AV.prototype=new T7a;AV.prototype.constructor=AV;d=AV.prototype;d.lC=function(a,b,c,e,f,g){this.oE=a;this.ox=b;this.Lg=c;this.tF=e;this.oy=f;l3.prototype.lC.call(this,a,b,c,e,f,g);return this};d.L=function(){return"Raml10TypeParser"};d.H=function(){return 5};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ppa){var b=this.oE,c=a.oE;(null===b?null===c:b.h(c))&&Yj(this.ox,a.ox)?(b=this.Lg,c=a.Lg,b=null===b?null===c:b.h(c)):b=!1;b?(b=this.tF,c=a.tF,b=null===b?null===c:b.h(c)):b=!1;return b?this.oy===a.oy:!1}return!1};d.K=function(a){switch(a){case 0:return this.oE;case 1:return this.ox;case 2:return this.Lg;case 3:return this.tF;case 4:return this.oy;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Mb=function(){return this.va};
d.nQ=function(){return wU(function(a){return function(b,c,e,f,g){f=!!f;SU();var h=a.va;return(new AV).lC(b,(R(),Th(R(),c)),e,TU(f,!1),g,h)}}(this))};d.y=function(){return Y(this)};d.Jo=function(){return this.va};d.M=function(){return Z(this)};d.$classData=q({Ppa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.Raml10TypeParser",{Ppa:1,HWa:1,KD:1,f:1,lv:1,$r:1,ig:1,A:1,w:1,q:1,n:1});function m8a(){w1.call(this);this.Lg=this.eb=this.xa=null}m8a.prototype=new x1;m8a.prototype.constructor=m8a;
d=m8a.prototype;d.L=function(){return"ArrayShapeParser"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Rqa&&a.l===this.l){var b=this.xa,c=a.xa;if((null===b?null===c:b.h(c))&&Yj(this.eb,a.eb))return b=this.Lg,a=a.Lg,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.eb;case 2:return this.Lg;default:throw(new X).e(""+a);}};
d.Hi=function(){this.Lg.R(this.xa);w1.prototype.Hi.call(this);var a=(new K).Y(this.eb),b=this.l,c=Wh().tr;Bh(a,"uniqueItems",Uh(Ch(Dh(b,c,this.l.Mb()),this.xa)));var a=(new K).Y(this.eb),b=Kh((new Cf).e("collectionFormat")),c=this.l,e=Wh().sD;Bh(a,b,Ch(Dh(c,e,this.l.Mb()),this.xa));a=yc((new K).Y(this.eb),"items");if(a.b())a=w();else if(a=a.c(),b=t(new u,function(a){return function(b){return b.Qb(a.xa.k,b.Ub())}}(this)),c=this.l.IJ,e=TU(!1,!1),b=RU(SU(),a,b,e,c,this.l.Mb()).wc(),b.b())a=w();else{b=
b.c();c=H(z(),(new J).aa([b]));e=$h(this.xa);tf();a=a.ga;a=zf(0,Af(Bf(),a.vf,a.Ef,a.ag,a.fg));Pca(this,c,e,a);if(Vh(b))a=Vy(Wy(this.xa,b));else if(Oi(b))a=Vy(Wy(this.xa,b));else{if(null===b)throw(new v).d(b);a=Wy(this.xa,b)}a=(new A).d(a)}a=a.b()?Rub(this):a;a=a.b()?(new A).d(this.xa):a;if(x(a)&&(a=a.i,Xh(a)))return this.Lg.R(a),a;var a=this.l.Mb(),b=rh().t9,c=this.xa.k,e=this.eb,f=w();Cc(a,b,c,f,"Cannot parse data arrangement shape",e.ga);return this.xa};d.u=function(){return U(W(),this)};
function Rub(a){var b=B(a.xa.ea,Pg().ld).pc();if(b.b())b=w();else{b=b.c();if(Oi(b))b=B(b.ea,Wh().wf);else if(Qi(b))b=B(b.ea,Un().Np).fa();else if(Vh(b))b=B(b.ea,Wh().wf);else if(null===b)throw(new v).d(b);b=(new A).d(b)}var c=!1,e=null;return x(b)&&(c=!0,e=b,Vh(e.i))?(new A).d(Vy(a.xa)):c&&Oi(e.i)||c&&Qi(e.i)?(new A).d(Vy(a.xa)):c&&null!==e.i?(new A).d(a.xa):w()}d.QN=function(){return this.l};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Rqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$ArrayShapeParser",{Rqa:1,lJ:1,mJ:1,f:1,nr:1,GD:1,bra:1,A:1,w:1,q:1,n:1});function Sub(){w1.call(this);this.xa=this.eb=this.Lg=this.Dm=null}Sub.prototype=new x1;Sub.prototype.constructor=Sub;d=Sub.prototype;d.L=function(){return"FileShapeParser"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Tqa&&a.l===this.l&&Yj(this.Dm,a.Dm)){var b=this.Lg;a=a.Lg;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Dm;case 1:return this.Lg;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.IH=function(){w1.prototype.Hi.call(this);Nca(this,this.eb,this.xa);var a=!1,b=null,c=yc((new K).Y(this.eb),"fileTypes");a:{if(x(c)){var a=!0,b=c,c=b.i,e=c.i.pb().nb,f=O().Nc;if(e===f){var a=this.xa,b=ao().pB,e=c.i,f=tv(),e=L(e,f,this.l.Mb()).Jn,f=t(new u,function(a){return function(b){var c=zc();return Nh(new Oh,L(b,c,a.l.Mb()).ya,(new N).a())}}(this)),g=uv(),e=e.ka(f,g.gc),c=Ke(M(),c.i);jr(a,b,e,c);break a}}if(a&&(c=b.i,e=c.i.pb().nb,f=O().Wa,e===f)){a=this.xa;b=ao().pB;e=z();f=c.i;g=zc();f=[Nh(new Oh,
L(f,g,this.l.Mb()).ya,(new N).a())];e=H(e,(new J).aa(f));c=Ke(M(),c.i);jr(a,b,e,c);break a}a&&(c=b.i,a=this.l.Mb(),b=rh().y9,e=this.xa.k,f=(new A).d(Gc(ao().pB.t)),g="Unexpected syntax for the fileTypes property: "+c.i.pb().nb,Cc(a,b,e,f,g,c.i.ga))}c=(new K).Y(this.eb);a=Kh((new Cf).e("minimum"));c=yc(c,a);c.b()||(b=c.c(),e=(new Eh).Vb(b.i,this.l.Mb()),c=this.xa,a=xh().jj,e=e.Hf(),b=Ke(M(),b),Fh(c,a,e,b));c=(new K).Y(this.eb);a=Kh((new Cf).e("maximum"));c=yc(c,a);c.b()||(b=c.c(),e=(new Eh).Vb(b.i,
this.l.Mb()),c=this.xa,a=xh().ij,e=e.Hf(),b=Ke(M(),b),Fh(c,a,e,b));c=(new K).Y(this.eb);a=Kh((new Cf).e("format"));b=this.l;e=xh().sn;Bh(c,a,Ch(Dh(b,e,this.l.Mb()),this.xa));c=yc((new K).Y(this.eb),"multipleOf");c.b()||(b=c.c(),e=(new Eh).Vb(b.i,this.l.Mb()),c=this.xa,a=xh().nv,e=e.Hf(),b=Ke(M(),b),Fh(c,a,e,b));return this.xa};function g8a(a,b,c){var e=new Sub;e.Dm=b;e.Lg=c;w1.prototype.iC.call(e,a);var f=Pc();e.eb=L(b,f,a.Mb());a=Ke(M(),e.eb);a=(new ui).P((new Q).a(),a);c.R(a);e.xa=a;return e}
d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Tqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$FileShapeParser",{Tqa:1,lJ:1,mJ:1,f:1,nr:1,GD:1,IWa:1,A:1,w:1,q:1,n:1});function i8a(){w1.call(this);this.eb=this.xa=null}i8a.prototype=new x1;i8a.prototype.constructor=i8a;function h8a(a,b,c,e){a.xa=c;a.eb=e;w1.prototype.iC.call(a,b);return a}d=i8a.prototype;d.L=function(){return"NodeShapeParser"};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Wqa&&a.l===this.l){var b=this.xa,c=a.xa;return(null===b?null===c:b.h(c))?Yj(this.eb,a.eb):!1}return!1};d.K=function(a){switch(a){case 0:return this.xa;case 1:return this.eb;default:throw(new X).e(""+a);}};
d.Hi=function(){w1.prototype.Hi.call(this);Tub(this);var a=(new K).Y(this.eb),b=this.l,c=ci().Dw;Bh(a,"minProperties",Uh(Ch(Dh(b,c,this.l.Mb()),this.xa)));a=(new K).Y(this.eb);b=this.l;c=ci().Cw;Bh(a,"maxProperties",Uh(Ch(Dh(b,c,this.l.Mb()),this.xa)));B(this.xa.ea,Pg().ld).b()?(a=this.xa,b=ci().Pk,dj(a,b,!1)):yc((new K).Y(this.eb),"additionalProperties").b()&&(a=o6a(this.xa).Cd(t(new u,function(){return function(a){return bi(a)&&B(a.ea,ci().Pk).G.qa()?(a=B(a.ea,ci().Pk),gd(a)):!1}}(this))),b=this.xa,
c=ci().Pk,dj(b,c,a));a=(new K).Y(this.eb);b=this.l;c=ci().Pk;b=TIa(Ch(Dh(b,c,this.l.Mb()),this.xa));Bh(a,"additionalProperties",$N(b,(new Xi).a()));a=yc((new K).Y(this.eb),Kh((new Cf).e("additionalProperties")));if(!a.b()&&(a=a.c(),b=rV(sV(),a,t(new u,function(a){return function(b){b.Qb(a.xa.k,b.Ub())}}(this)),Lx(Jx(),this.l.Mb())).wc(),!b.b())){var b=b.c(),c=this.xa,e=ci().HF,a=Ke(M(),a);Fh(c,e,b,a)}a=(new K).Y(this.eb);b=this.l;c=ci().dt;Bh(a,"discriminator",Uh(Ch(Dh(b,c,this.l.Mb()),this.xa)));
a=(new K).Y(this.eb);b=this.l;c=ci().rz;Bh(a,"discriminatorValue",Uh(Ch(Dh(b,c,this.l.Mb()),this.xa)));a=yc((new K).Y(this.eb),"properties");if(!a.b())if(a=a.c(),b=a.i.pb().nb,O().ua===b){b=a.i;c=Pc();b=L(b,c,this.l.Mb());b=wJa(new rO,this.l,b,t(new u,function(a){return function(b){return F3(a.xa,b)}}(this))).fh();b.Cd(t(new u,function(){return function(a){a=B(a.ea,rj().rv);return!eM(a)}}(this)))?(c=B(this.xa.ea,ci().Pk),c=gd(c)):c=!1;if(c){var c=this.l.Mb(),e=rh().sZ,f=this.xa.k,g=this.l.Bd,h=w();
Cc(c,e,f,h,"Node without additional properties support cannot have pattern properties",g.ga)}b.X(t(new u,function(a,b){return function(c){var e=z(),f=[B(c.ea,rj().If)],e=H(e,(new J).aa(f));c=Yb(c);tf();f=b.ga;f=zf(0,Af(Bf(),f.vf,f.Ef,f.ag,f.fg));Pca(a,e,c,f)}}(this,a)));c=B(this.xa.ea,ci().dt).G;if(!c.b()&&(g=c.c(),!b.Cd(t(new u,function(a,b){return function(a){a=B(a.ea,Pg().$).G;return(a.b()?null:a.c())===b}}(this,g))))){var c=this.l.Mb(),e=rh().ZY,f=this.xa.k,g="Property '"+g+"' marked as discriminator is missing in properties facet",
h=w(),k=w(),l=w();c.Hc(e.k,f,h,g,k,xc().tb,l)}c=this.xa;e=ci().Rg;b=gr(new hr,b,Ke(M(),a.i));a=Ke(M(),a);Fh(c,e,b,a)}else O().yd!==b&&(b=this.l.Mb(),c=rh().R6,e=this.xa.k,f=w(),Cc(b,c,e,f,"Properties facet must be a map of key and values",a.ga));b=pc(Bib(),G());B(this.xa.ea,ci().Rg).X(t(new u,function(a,b){return function(a){var c=B(a.ea,Pg().$).G,c=c.b()?null:c.c();b.Oe(c,a);return b}}(this,b)));a=(new K).Y(this.eb);c=Kh((new Cf).e("dependencies"));a=yc(a,c);a.b()||(a=a.c(),c=a.i,e=Pc(),e=t8a(new r3,
L(c,e,this.l.Mb()),b,this.l.Mb()).fh(),b=this.xa,c=ci().wD,e=gr(new hr,e,Ke(M(),a.i)),a=Ke(M(),a),Fh(b,c,e,a));return this.xa};d.u=function(){return U(W(),this)};d.QN=function(){return this.l};
function Tub(a){if(1===B(a.xa.ea,Pg().ld).Ka()&&Ni(B(a.xa.ea,Pg().ld).fa())){var b=yc((new K).Y(a.eb),"discriminator");if(!b.b()){var b=b.c(),c=a.l.Mb(),e=rh().KR,f=a.xa.k,g=w();Cc(c,e,f,g,"Property discriminator forbidden in a node extending a unionShape",b.ga)}b=yc((new K).Y(a.eb),"discriminatorValue");b.b()||(b=b.c(),c=a.l.Mb(),e=rh().KR,a=a.xa.k,f=w(),Cc(c,e,a,f,"Property discriminatorValue forbidden in a node extending a unionShape",b.ga))}}d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Wqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$NodeShapeParser",{Wqa:1,lJ:1,mJ:1,f:1,nr:1,GD:1,bra:1,A:1,w:1,q:1,n:1});function e8a(){w1.call(this);this.eb=this.xa=this.mq=this.VJ=null;this.sg=!1}e8a.prototype=new x1;e8a.prototype.constructor=e8a;d=e8a.prototype;d.L=function(){return"ScalarShapeParser"};
function Uub(a,b,c,e){b.b()?b=!1:(b=b.c(),b=re(ta(),b,"#integer"));if(b&&-1!==(c.indexOf(".")|0)){b=a.l.Mb();var f=rh().B6;a=a.xa.k;c="Invalid decimal point for an integer: "+c;var g=w();Cc(b,f,a,g,c,e.ga);return!1}return!0}d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ara&&a.l===this.l){if(this.mq===a.mq)var b=this.xa,c=a.xa,b=null===b?null===c:b.h(c);else b=!1;return b?Yj(this.eb,a.eb):!1}return!1};d.AT=function(){return this.sg?this.VJ:this.S$()};
d.K=function(a){switch(a){case 0:return this.mq;case 1:return this.xa;case 2:return this.eb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.JH=function(){w1.prototype.Hi.call(this);Nca(this,this.eb,this.xa);var a=Hca(Ica(this.xa,this.mq,this.l.Mb()),this.eb);if(sg()===a){var b=Li(this.xa).G;if(!b.b()&&(b=b.c(),"rfc3339"!==b&&"rfc2616"!==b)){var b=this.l.Mb(),c=rh().A6,e=this.xa.k,f=this.l.me,g=w();Cc(b,c,e,g,"Invalid format value for datetime, must be 'rfc3339' or 'rfc2616'",f.ga)}}b=this.l.sM(this.eb);b.b()?(b=this.xa,c=xh().af,a=Nh(new Oh,sB(tB(),a),(new N).a()),e=(M(),(new N).a()).Wb((new V2).a())):(e=b.c(),b=this.xa,c=xh().af,a=
Nh(new Oh,sB(tB(),a),(new N).a()),e=Ke(M(),e));Fh(b,c,a,e);a=yc((new K).Y(this.eb),"minimum");a.b()||(c=a.c(),e=(new Eh).Vb(c.i,this.l.Mb()),Uub(this,B(this.xa.ea,xh().af).G,c.i.u(),c.i)&&(a=this.xa,b=xh().jj,e=e.Hf(),c=Ke(M(),c),Fh(a,b,e,c)));a=yc((new K).Y(this.eb),"maximum");a.b()||(c=a.c(),e=(new Eh).Vb(c.i,this.l.Mb()),Uub(this,B(this.xa.ea,xh().af).G,c.i.u(),c.i)&&(a=this.xa,b=xh().ij,e=e.Hf(),c=Ke(M(),c),Fh(a,b,e,c)));a=yc((new K).Y(this.eb),"multipleOf");a.b()||(c=a.c(),e=(new Eh).Vb(c.i,
this.l.Mb()),Uub(this,B(this.xa.ea,xh().af).G,c.i.u(),c.i)&&(a=this.xa,b=xh().nv,e=e.Hf(),c=Ke(M(),c),Fh(a,b,e,c)));return this.xa};d.S$=function(){if(!this.sg){var a=(new A).d(this.xa.k),b=(new Mv).a(),c=(new Ie).a();this.VJ=t(new u,function(a,b){return function(a){return g6a(b,a)}}(this,h6a(b,a,c,this.l.Mb())));this.sg=!0}return this.VJ};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({ara:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$ScalarShapeParser",{ara:1,lJ:1,mJ:1,f:1,nr:1,GD:1,IWa:1,A:1,w:1,q:1,n:1});function j3(){K3.call(this);this.J2=this.T_=this.Uj=null}j3.prototype=new o9a;j3.prototype.constructor=j3;d=j3.prototype;d.L=function(){return"Oas2DocumentParser"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.uta){var b=this.Uj;a=a.Uj;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Uj;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Sb=function(){return this.va};d.ty=function(a,b){this.Uj=a;K3.prototype.ty.call(this,a,b);this.T_="definitions";this.J2="securityDefinitions";return this};d.y=function(){return Y(this)};d.Jo=function(){return this.va};d.M=function(){return Z(this)};
d.DL=function(a){var b=K3.prototype.DL.call(this,a),c=(new K).Y(a),e=Jn().Jp;Bh(c,"consumes",Ch(Dh(this,e,this.va),b));c=(new K).Y(a);e=Jn().tl;Bh(c,"produces",Ch(Dh(this,e,this.va),b));a=(new K).Y(a);c=Jn().yk;Bh(a,"schemes",Ch(Dh(this,c,this.va),b));return b};d.$classData=q({uta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.Oas2DocumentParser",{uta:1,WXa:1,SY:1,f:1,lv:1,$r:1,ig:1,A:1,w:1,q:1,n:1});function oeb(){K3.call(this);this.J2=this.T_=this.Uj=null}oeb.prototype=new o9a;
oeb.prototype.constructor=oeb;d=oeb.prototype;d.L=function(){return"Oas3DocumentParser"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.xta){var b=this.Uj;a=a.Uj;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Uj;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
function Vub(a,b,c){b=yc((new K).Y(b),"requestBodies");if(!b.b()){b=b.c().i;var e=Pc();b=L(b,e,a.va).Bb;a=t(new u,function(a,b){return function(c){var e=c.Da,l=zc(),e=L(e,l,a.va).ya;c=c.i;l=Pc();c=(new V3).$G(a,L(c,l,a.va),t(new u,function(a,b,c){return function(a){M();var e=(new N).a();a=Ue(a,b,e);H(z(),G());cj(a,c)}}(a,e,b)),a.va).wc();c.b()||(c=c.c(),e=a.va.Mh,l=(new zi).a(),Ai(e,ac(c,l)))}}(a,c));c=uv();b.ka(a,c.gc)}}
function Wub(a,b,c){b=yc((new K).Y(b),"examples");b.b()||(b=b.c(),(new z3).jC(b,a.va).fh().X(t(new u,function(a,b){return function(c){H(z(),G());cj(c,b);var h=a.va.Mh,k=(new zi).a();return Ai(h,ac(c,k))}}(a,c))))}d.Sb=function(){return this.va};d.ty=function(a,b){this.Uj=a;K3.prototype.ty.call(this,a,b);this.T_="schemas";this.J2="securitySchemes";return this};
function Xub(a,b,c){b=yc((new K).Y(b),"callbacks");if(!b.b()){b=b.c().i;var e=Pc();b=L(b,e,a.va).Bb;a=t(new u,function(a,b){return function(c){var e=c.Da,l=zc(),e=L(e,l,a.va).ya;c=c.i;l=Pc();c=z9a(A9a(new Q3,a,L(c,l,a.va),t(new u,function(a,b,c){return function(a){M();var e=(new N).a();a=Ue(a,b,e);H(z(),G());cj(a,c)}}(a,e,b))));e=(new zi).a();ac(c,e);return Ai(a.va.Mh,c)}}(a,c));c=uv();b.ka(a,c.gc)}}
d.MA=function(a,b){b=yc((new K).Y(b),"components");if(!b.b()){b=b.c();a=a.ga+"#/declarations";b=b.i;var c=Pc();b=L(b,c,this.va);Wub(this,b,a+"/examples");Yub(this,b,a+"/links");K3.prototype.FH.call(this,b,a+"/securitySchemes");K3.prototype.wda.call(this,b,a+"/types");Zub(this,b,a+"/headers");K3.prototype.sDa.call(this,b,a+"/parameters");K3.prototype.V1.call(this,"responses",b,a+"/responses");Vub(this,b,a+"/requestBodies");Xub(this,b,a+"/callbacks");K3.prototype.T1.call(this,b,a);J2(new I2,Hv((new Cf).e("resourceTypes")),
t(new u,function(){return function(a){return PB(RB(),a)}}(this)),b,a+"/resourceTypes",this.va).Pc();J2(new I2,Hv((new Cf).e("traits")),t(new u,function(){return function(a){return TB(VB(),a)}}(this)),b,a+"/traits",this.va).Pc()}};d.y=function(){return Y(this)};d.Jo=function(){return this.va};
function Zub(a,b,c){b=yc((new K).Y(b),"headers");if(!b.b()){b=b.c().i;var e=Pc();(new A3).hx(L(b,e,a.va),t(new u,function(a,b){return function(a){H(z(),G());cj(a,b)}}(a,c)),a.va).fh().X(t(new u,function(a){return function(b){var c=(new zi).a(),c=ac(b,c),e=(new Onb).a();ac(c,e);var c=a.va.Mh,e=c.uE,l=B(b.g,Ej().$).G,l=l.b()?null:l.c();c.uE=e.Zb((new P).N(l,b))}}(a)))}}d.M=function(){return Z(this)};
d.DL=function(a){var b=K3.prototype.DL.call(this,a),c=(new K).Y(a),e=Hv((new Cf).e("consumes")),f=Jn().Jp;Bh(c,e,Ch(Dh(this,f,this.va),b));c=(new K).Y(a);e=Hv((new Cf).e("produces"));f=Jn().tl;Bh(c,e,Ch(Dh(this,f,this.va),b));a=(new K).Y(a);c=Hv((new Cf).e("schemes"));e=Jn().yk;Bh(a,c,Ch(Dh(this,e,this.va),b));return b};
function Yub(a,b,c){b=yc((new K).Y(b),"links");if(!b.b()){b=b.c().i;var e=Pc();L(b,e,a.va).Bb.X(t(new u,function(a,b){return function(c){var e=ja((new Eh).Vb(c.Da,a.va).Hf().t);c=(new c6).QK(c.i,e,t(new u,function(a,b){return function(a){H(z(),G());cj(a,b)}}(a,b)),a.va).wc();c.b()||(c=c.c(),e=(new zi).a(),ac(c,e),Ai(a.va.Mh,c))}}(a,c)))}}d.$classData=q({xta:0},!1,"amf.plugins.document.webapi.parser.spec.oas.Oas3DocumentParser",{xta:1,WXa:1,SY:1,f:1,lv:1,$r:1,ig:1,A:1,w:1,q:1,n:1});
function P5(){A1.call(this);this.hh=this.va=this.IG=this.Yd=null}P5.prototype=new z1a;P5.prototype.constructor=P5;d=P5.prototype;d.L=function(){return"OasFragmentParser"};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.aua){var b=this.Yd,c=a.Yd;if(null===b?null===c:b.h(c))return b=this.IG,a=a.IG,null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Yd;case 1:return this.IG;default:throw(new X).e(""+a);}};
d.u=function(){return U(W(),this)};function neb(a,b,c,e){a.Yd=b;a.IG=c;a.va=e;A1.prototype.BE.call(a,e);a.hh=ju().na;return a}d.y=function(){return Y(this)};d.Jo=function(){return this.va};d.M=function(){return Z(this)};
d.U1=function(){var a=this.Yd.Gg.Vd,b=Pc(),a=Iv(a).Gp(b);if(Hp(a))a=a.i;else{var a=this.va,b=rh().vz,c=this.Yd.ga,e=this.Yd.Gg.Vd,f=w();Cc(a,b,c,f,"Cannot parse empty map",e.ga);a=sq().Td}b=this.IG;b=b.b()?Jv().oG(this.Yd):b;b.b()?b=w():(b=b.c(),b=wla()===b?(new A).d((new k$a).fx(this,a).Ada()):xla()===b?(new A).d((new j$a).fx(this,a).zda()):zla()===b?(new A).d((new n$a).fx(this,a).Bda()):Ala()===b?(new A).d((new p$a).fx(this,a).Dda()):Bla()===b?(new A).d((new i$a).fx(this,a).yda()):Cla()===b?(new A).d((new o$a).fx(this,
a).Cda()):yla()===b?(new A).d(m$a((new l$a).fx(this,a))):vla()===b||Kv()===b?(new D2).a().OA(this.Yd,this.va,this.hh,(new cb).a()):w());if(b.b()){M();b=(new N).a();b=(new zp).P((new Q).a(),b);c=this.Yd.ga;e=Ap().nc;b=Eb(b,e,c);b=Te(b,this.Yd.ga);M();var c=(new N).a(),c=(new Bp).P((new Q).a(),c),e=this.Yd.ue,f=Wl().Sd,c=Eb(c,f,e),e=Rl().ob,b=ff(b,e,c),c=this.va,e=rh().vz,f=b.k,g=w();Cc(c,e,f,g,"Unsupported oas type",a.ga)}else b=b.c();c=Dx(Ex(new Fx,b,Hv((new Cf).e("uses")),a,this.Yd.U,this.va),this.Yd.ga);
e=this.Yd.ga;f=Ap().nc;e=Eb(b,f,e);f=Ke(M(),this.Yd.Gg.Vd);cc(e,f);q9a(this,a,b).Pc();Tc(c.U)&&(a=n3(c),c=Nl().qc,Vg(b,c,a));return b};d.$classData=q({aua:0},!1,"amf.plugins.document.webapi.parser.spec.oas.OasFragmentParser",{aua:1,SY:1,f:1,lv:1,$r:1,ig:1,Fb:1,A:1,w:1,q:1,n:1});function $ub(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.nc=this.Lj=this.Sd=this.$=this.Aa=this.ja=this.g=this.oa=this.Md=this.Fq=this.Ho=this.iY=this.fb=this.Mp=this.gd=null;this.ma=0}$ub.prototype=new r;
$ub.prototype.constructor=$ub;d=$ub.prototype;d.pp=function(a){this.ef=a};d.qp=function(a){this.kg=a};
d.a=function(){avb=this;Iq(this);cT(this);YK(this);XK(this);Wb(this);var a=Pb(),b=C().dc,b=D(new F,b,"displayName"),c=Vb().dc,e=z(),f=C().dc;this.gd=Rb(new Sb,a,b,Tb(new Ub,c,"display name","Human readable name for the example",H(e,(new J).aa([Gc(D(new F,f,"name"))]))));a=Pb();b=C().bb;b=D(new F,b,"guiSummary");c=Vb().bb;e=z();f=C().bb;this.Mp=Rb(new Sb,a,b,Tb(new Ub,c,"gui summary","Human readable description of the example",H(e,(new J).aa([Gc(D(new F,f,"description"))]))));a=Pb();b=C().dc;this.fb=
Rb(new Sb,a,D(new F,b,"description"),Tb(new Ub,Vb().dc,"description","",G()));a=Pb();b=C().Zd;this.iY=Rb(new Sb,a,D(new F,b,"externalValue"),Tb(new Ub,Vb().dg,"external value","Raw text containing an unparsable example",G()));a=lm();b=C().Zd;this.Ho=Rb(new Sb,a,D(new F,b,"structuredValue"),Tb(new Ub,Vb().dg,"structured value","Data structure containing the value of the example",G()));a=Yc();b=C().Zd;this.Fq=Rb(new Sb,a,D(new F,b,"strict"),Tb(new Ub,Vb().dg,"strict","Indicates if this example should be validated against an associated schema",
G()));a=Pb();b=C().dc;this.Md=Rb(new Sb,a,D(new F,b,"mediaType"),Tb(new Ub,Vb().dc,"media type","Media type associated to the example",G()));this.oa=this.$;Di();a=(new J).aa([this.$,this.gd,this.Mp,this.fb,this.iY,this.Fq,this.Md,this.Ho]);b=Di().s;a=Ei(a,b);b=Lc().g;c=Di();a=a.la(b,c.s);b=Db().g;c=Di();a=a.la(b,c.s);b=jh().g;c=Di();this.g=a.la(b,c.s);a=C().bb;a=D(new F,a,"Example");b=Lc().ja;this.ja=oz(new pz,a,b);this.Aa=Tb(new Ub,Vb().bb,"Example","Example value for a schema inside an API",G());
return this};d.NB=function(a){this.Sd=a};d.Ce=function(a){this.Hb=a};d.Yc=function(){};d.op=function(a){this.Je=a};d.Pm=function(){return 0===(2&this.ma)<<24>>24?this.J5():this.ke};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.np=function(a){this.wd=a};d.MB=function(a){this.nc=a};d.Zc=function(){M();var a=(new N).a(),b=(new Q).a();return(new iB).P(b,a)};d.OB=function(a){this.Lj=a};d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};
d.J5=function(){0===(2&this.ma)<<24>>24&&(this.ke=xPa(),this.ma=(2|this.ma)<<24>>24);return this.ke};d.$classData=q({h_a:0},!1,"amf.plugins.domain.shapes.metamodel.ExampleModel$",{h_a:1,f:1,efb:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,Bz:1,yq:1});var avb=void 0;function lh(){avb||(avb=(new $ub).a());return avb}
function bvb(){this.ke=this.Hb=this.Jc=this.Ew=this.$=this.fb=this.bh=this.Aa=this.g=this.ja=this.oa=this.Wh=this.NF=this.wv=this.oc=this.Zl=this.kp=this.tl=this.Jp=this.yk=this.Mp=this.gp=this.nt=null;this.ma=0}bvb.prototype=new r;bvb.prototype.constructor=bvb;d=bvb.prototype;
d.a=function(){cvb=this;Iq(this);cT(this);mDa(this);Wb(this);Ob(this);Fi(this);var a=Pb(),b=C().bb;this.nt=Rb(new Sb,a,D(new F,b,"method"),Tb(new Ub,Vb().bb,"method","HTTP method required to invoke the operation",G()));a=Yc();b=C().dc;this.gp=Rb(new Sb,a,D(new F,b,"deprecated"),Tb(new Ub,Vb().dc,"deprecated","Marks the operation as deprecated",G()));var a=Pb(),b=C().bb,b=D(new F,b,"guiSummary"),c=Vb().bb,e=z(),f=C().dc;this.Mp=Rb(new Sb,a,b,Tb(new Ub,c,"gui summary","Human readable description of the operation",
H(e,(new J).aa([Gc(D(new F,f,"description"))]))));a=(new Ki).Ld(Pb());b=C().bb;this.yk=Rb(new Sb,a,D(new F,b,"scheme"),Tb(new Ub,Vb().bb,"scheme","URI scheme for the API protocol",G()));a=(new Ki).Ld(Pb());b=C().bb;this.Jp=Rb(new Sb,a,D(new F,b,"accepts"),Tb(new Ub,Vb().bb,"accepts","Media-types accepted in a API request",G()));a=(new Ki).Ld(Pb());b=C().dc;this.tl=Rb(new Sb,a,D(new F,b,"mediaType"),Tb(new Ub,Vb().dc,"media type","Media types returned by a API response",G()));a=yn();b=C().bb;this.kp=
Rb(new Sb,a,D(new F,b,"expects"),Tb(new Ub,Vb().bb,"expects","Request information required by the operation",G()));a=(new Ki).Ld(Bn());b=C().bb;this.Zl=Rb(new Sb,a,D(new F,b,"returns"),Tb(new Ub,Vb().bb,"returns","Response data returned by the operation",G()));a=(new Ki).Ld(rn());b=C().oc;this.oc=Rb(new Sb,a,D(new F,b,"security"),Tb(new Ub,Vb().oc,"security","security schemes applied to an element in the API spec",G()));a=(new Ki).Ld(Pb());b=C().bb;this.wv=Rb(new Sb,a,D(new F,b,"tag"),Tb(new Ub,Vb().bb,
"tag","Additionally custom tagged information",G()));a=(new Ki).Ld(hn());b=C().bb;this.NF=Rb(new Sb,a,D(new F,b,"callback"),Tb(new Ub,Vb().bb,"callback","associated callbacks",G()));a=(new Ki).Ld(fn());b=C().bb;this.Wh=Rb(new Sb,a,D(new F,b,"server"),Tb(new Ub,Vb().bb,"server","server information",G()));this.oa=this.nt;a=C().bb;a=D(new F,a,"Operation");b=Lc().ja;this.ja=oz(new pz,a,b);Di();a=(new J).aa([this.nt,this.$,this.fb,this.gp,this.Mp,this.bh,this.yk,this.Jp,this.tl,this.kp,this.Zl,this.oc,
this.wv,this.NF,this.Wh]);b=Di().s;a=Ei(a,b);b=Lc().g;c=Di();this.g=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().bb,"Operation","Action that can be executed using a particular HTTP invocation",G());return this};d.Ce=function(a){this.Hb=a};d.h_=function(a){this.Ew=a};d.QB=function(a){this.bh=a};d.Yc=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a();return(new cC).P((new Q).a(),a)};d.ec=function(){return this.ja};
d.Rp=function(a){this.$=a};d.$classData=q({P0a:0},!1,"amf.plugins.domain.webapi.metamodel.OperationModel$",{P0a:1,f:1,se:1,Oc:1,ic:1,Xc:1,Kj:1,EY:1,yq:1,ul:1,Ez:1});var cvb=void 0;function Zm(){cvb||(cvb=(new bvb).a());return cvb}function dvb(){this.ke=this.Hb=this.Jc=this.Ew=this.$=this.Je=this.wd=this.ef=this.kg=this.Vc=this.Aa=this.g=this.ja=this.oa=this.YI=this.Fc=this.Md=null;this.ma=0}dvb.prototype=new r;dvb.prototype.constructor=dvb;d=dvb.prototype;d.pp=function(a){this.ef=a};
d.a=function(){evb=this;Iq(this);cT(this);mDa(this);Wb(this);YK(this);Ji(this);var a=Pb(),b=C().dc;this.Md=Rb(new Sb,a,D(new F,b,"mediaType"),Tb(new Ub,Vb().dc,"media type","Media types supported in the payload",G()));a=Pg();b=C().Gb;this.Fc=Rb(new Sb,a,D(new F,b,"schema"),Tb(new Ub,Vb().Gb,"schema","Schema associated to this payload",G()));a=(new Ki).Ld(ln());b=C().bb;this.YI=Rb(new Sb,a,D(new F,b,"encoding"),Tb(new Ub,Vb().bb,"encoding","",G()));this.oa=this.Md;a=C().bb;a=D(new F,a,"Payload");b=
Lc().ja;this.ja=oz(new pz,a,b);var a=this.$,b=this.Md,c=this.Fc,e=this.Vc,f=this.YI,g=Lc().g,h=Db().g,k=Di(),g=g.la(h,k.s);this.g=oz(new pz,a,oz(new pz,b,oz(new pz,c,oz(new pz,e,oz(new pz,f,g)))));this.Aa=Tb(new Ub,Vb().bb,"Payload","Encoded payload using certain media-type",G());return this};d.qp=function(a){this.kg=a};d.Ce=function(a){this.Hb=a};d.h_=function(a){this.Ew=a};d.Yc=function(){};d.op=function(a){this.Je=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};
d.np=function(a){this.wd=a};d.hy=function(a){this.Vc=a};d.Zc=function(){M();var a=(new N).a();return(new VO).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};d.$classData=q({S0a:0},!1,"amf.plugins.domain.webapi.metamodel.PayloadModel$",{S0a:1,f:1,se:1,Oc:1,ic:1,Xc:1,Kj:1,EY:1,yq:1,Fo:1,Aw:1});var evb=void 0;function vn(){evb||(evb=(new dvb).a());return evb}
function S3(){this.E=this.g=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}S3.prototype=new r;S3.prototype.constructor=S3;function fvb(){}d=fvb.prototype=S3.prototype;d.L=function(){return"Callback"};d.Ub=function(){return H(z(),G())};d.Zu=function(a){this.Nk=a};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.es=function(){};d.It=function(a){this.Zi=a};d.h=function(a){return this===a?!0:jn(a)?this.g===a.g?this.E===a.E:!1:!1};
d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.El=function(){M();var a=(new N).a(),a=(new S3).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return hn()};d.Mq=function(){return H(z(),G())};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.lu=function(a){this.Zg=a};d.Nt=function(){return this.Zg};
d.Nd=function(){var a=B(this.g,hn().$).G,a=a.b()?"default-callback":a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};d.Hu=function(){};d.Is=function(a,b,c,e){return fL(this,a,b,c,e)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.gk=function(a,b){return gL(this,a,b)};d.Qk=function(){return qd(function(){return function(a,b){return(new S3).P(a,b)}}(this))};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};
d.Ht=function(a){this.Jk=a};d.Ch=function(){return hn().$};d.y=function(){return Y(this)};d.Up=function(a){return Px(this,a)};d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.ku=function(a){this.zk=a};d.P=function(a,b){this.g=a;this.E=b;hL(this);return this};function jn(a){return!!(a&&a.$classData&&a.$classData.v.j8)}
d.$classData=q({j8:0},!1,"amf.plugins.domain.webapi.models.Callback",{j8:1,f:1,Jh:1,de:1,Wc:1,Rc:1,Pi:1,A:1,w:1,q:1,n:1});function cC(){this.k=this.mb=this.E=this.g=null;this.ma=!1}cC.prototype=new r;cC.prototype.constructor=cC;d=cC.prototype;d.L=function(){return"Operation"};d.BM=function(a){M();var b=(new N).a(),b=(new e6).P((new Q).a(),b),c=fn().Jf;a=Eb(b,c,a);b=Zm().Wh;nh(this,b,a);return a};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};
d.tI=function(a){M();var b=(new N).a(),b=(new x6).P((new Q).a(),b),c=rn().$;a=Eb(b,c,a);b=Zm().oc;nh(this,b,a);return a};d.h=function(a){return this===a?!0:$m(a)?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Zm()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};
d.Nd=function(){var a=B(this.g,Zm().nt).G,a=a.b()?"default-operation":a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.g3=function(){var a=B(this.g,Lc().wi()),b=(new shb).FU(this),c=z();return a.$b(b,c.s)};d.ca=function(){return this.g};function YLa(a){M();var b=(new N).a(),b=(new T3).P((new Q).a(),b),c=Zm().kp;ff(a,c,b);return b}
d.mga=function(a){M();var b=(new N).a(),b=(new LB).P((new Q).a(),b);M();var c=(new N).a(),b=Ue(b,a,c);a="default"===a?"200":a;c=Bn().vn;a=Eb(b,c,a);b=Zm().Zl;nh(this,b,a);return a};d.Ch=function(){return Zm().$};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;return this};function $m(a){return!!(a&&a.$classData&&a.$classData.v.ewa)}
d.$classData=q({ewa:0},!1,"amf.plugins.domain.webapi.models.Operation",{ewa:1,f:1,Jh:1,de:1,Wc:1,Rc:1,dwa:1,A:1,w:1,q:1,n:1});function VO(){this.E=this.g=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}VO.prototype=new r;VO.prototype.constructor=VO;d=VO.prototype;d.L=function(){return"Payload"};d.Zu=function(a){this.Nk=a};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.es=function(){};
d.It=function(a){this.Zi=a};function Ifb(a,b){M();var c=(new N).a(),c=(new u6).P((new Q).a(),c),e=ln().aG;b=Eb(c,e,b);c=vn().YI;nh(a,c,b);return b}d.h=function(a){return this===a?!0:wn(a)?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.El=function(){M();var a=(new N).a(),a=(new VO).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return vn()};
d.Mq=function(){return H(z(),G())};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.lu=function(a){this.Zg=a};d.Nt=function(){return this.Zg};d.Nd=function(){var a=B(this.g,vn().Md).G;a.b()?(a=B(this.g,vn().$).G,a=a.b()?"default":a.c()):a=a.c();a=(new Cf).e(a);return"/"+Gj(a.zd)};d.Hu=function(){};d.hga=function(a){M();var b=(new N).a(),b=(new si).P((new Q).a(),b);M();var c=(new N).a();a=Ue(b,a,c);b=vn().Fc;ff(this,b,a);return a};
d.wX=function(a){M();var b=(new N).a(),b=(new pi).P((new Q).a(),b);M();var c=(new N).a();a=Ue(b,a,c);b=vn().Fc;ff(this,b,a);return a};d.Is=function(a,b,c,e){return fL(this,a,b,c,e)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.gk=function(a,b){return gL(this,a,b)};d.Qk=function(){return qd(function(){return function(a,b){return(new VO).P(a,b)}}(this))};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};
d.Ht=function(a){this.Jk=a};d.Ch=function(){return vn().$};d.Up=function(a){return Px(this,a)};d.y=function(){return Y(this)};d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};d.M=function(){return Z(this)};d.AF=function(a){M();var b=(new N).a(),c=(new Q).a(),b=(new iB).P(c,b);a.b()||(a=a.c(),M(),c=(new N).a(),Ue(b,a,c));a=vn().Vc;nh(this,a,b);return b};d.Te=function(a){this.k=a};d.ku=function(a){this.zk=a};d.P=function(a,b){this.g=a;this.E=b;hL(this);return this};
function wn(a){return!!(a&&a.$classData&&a.$classData.v.fwa)}d.$classData=q({fwa:0},!1,"amf.plugins.domain.webapi.models.Payload",{fwa:1,f:1,Jh:1,de:1,Wc:1,Rc:1,Pi:1,A:1,w:1,q:1,n:1});function d6(){this.E=this.g=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}d6.prototype=new r;d6.prototype.constructor=d6;d=d6.prototype;d.L=function(){return"TemplatedLink"};d.Zu=function(a){this.Nk=a};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};
d.Qb=function(a){return cj(this,a)};d.es=function(){};d.It=function(a){this.Zi=a};d.h=function(a){return this===a?!0:qo(a)?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.El=function(){M();var a=(new N).a(),a=(new d6).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return po()};d.Mq=function(){return H(z(),G())};d.ha=function(){return this.E};
d.u=function(){return U(W(),this)};d.lu=function(a){this.Zg=a};d.Nt=function(){return this.Zg};d.Nd=function(){var a=B(this.g,po().$).G,a=a.b()?"UnknownTemplatedLink":a.c(),a=(new Cf).e(a);return"/templatedLink/"+Gj(a.zd)};d.Hu=function(){};d.Is=function(a,b,c,e){return fL(this,a,b,c,e)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.gk=function(a,b){return gL(this,a,b)};d.Qk=function(){return qd(function(){return function(a,b){return(new d6).P(a,b)}}(this))};
d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.Ht=function(a){this.Jk=a};d.Ch=function(){return po().$};d.Up=function(a){return Px(this,a)};d.y=function(){return Y(this)};d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.ku=function(a){this.zk=a};d.P=function(a,b){this.g=a;this.E=b;hL(this);return this};function qo(a){return!!(a&&a.$classData&&a.$classData.v.iwa)}
d.$classData=q({iwa:0},!1,"amf.plugins.domain.webapi.models.TemplatedLink",{iwa:1,f:1,Jh:1,de:1,Wc:1,Rc:1,Pi:1,A:1,w:1,q:1,n:1});function Fj(){o2.call(this);this.ab=this.ea=null}Fj.prototype=new D3a;Fj.prototype.constructor=Fj;d=Fj.prototype;d.L=function(){return"ParametrizedResourceType"};d.H=function(){return 2};d.h=function(a){return this===a?!0:nn(a)?this.ea===a.ea?this.ab===a.ab:!1:!1};d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;default:throw(new X).e(""+a);}};
d.rc=function(){return nfa()};d.ha=function(){return this.ab};d.u=function(){return U(W(),this)};d.ca=function(){return this.ea};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.P=function(a,b){this.ea=a;this.ab=b;o2.prototype.P.call(this,a,b);return this};function nn(a){return!!(a&&a.$classData&&a.$classData.v.swa)}d.$classData=q({swa:0},!1,"amf.plugins.domain.webapi.models.templates.ParametrizedResourceType",{swa:1,sNa:1,f:1,Jh:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});
function Kj(){o2.call(this);this.ab=this.ea=null}Kj.prototype=new D3a;Kj.prototype.constructor=Kj;d=Kj.prototype;d.L=function(){return"ParametrizedTrait"};d.H=function(){return 2};d.h=function(a){return this===a?!0:pn(a)?this.ea===a.ea?this.ab===a.ab:!1:!1};d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;default:throw(new X).e(""+a);}};d.rc=function(){return ofa()};d.ha=function(){return this.ab};d.u=function(){return U(W(),this)};d.ca=function(){return this.ea};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.P=function(a,b){this.ea=a;this.ab=b;o2.prototype.P.call(this,a,b);return this};function pn(a){return!!(a&&a.$classData&&a.$classData.v.twa)}d.$classData=q({twa:0},!1,"amf.plugins.domain.webapi.models.templates.ParametrizedTrait",{twa:1,sNa:1,f:1,Jh:1,de:1,Wc:1,Rc:1,A:1,w:1,q:1,n:1});function mI(){this.WA=null}mI.prototype=new jub;mI.prototype.constructor=mI;mI.prototype.a=function(){this.WA="Any";w();G();n(Ja);return this};
mI.prototype.As=function(a){return ia(La(Ja),[a])};mI.prototype.Dp=function(){return n(Ja)};mI.prototype.$classData=q({i9a:0},!1,"scala.reflect.ManifestFactory$AnyManifest$",{i9a:1,v2:1,u2:1,f:1,wx:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});var dAa=void 0;function nI(){this.WA=null}nI.prototype=new jub;nI.prototype.constructor=nI;nI.prototype.a=function(){this.WA="AnyVal";w();G();n(Ja);return this};nI.prototype.As=function(a){return ia(La(Ja),[a])};nI.prototype.Dp=function(){return n(Ja)};
nI.prototype.$classData=q({j9a:0},!1,"scala.reflect.ManifestFactory$AnyValManifest$",{j9a:1,v2:1,u2:1,f:1,wx:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});var eAa=void 0;function e9(){this.WA=null}e9.prototype=new jub;e9.prototype.constructor=e9;e9.prototype.a=function(){this.WA="Nothing";w();G();n(WZa);return this};e9.prototype.As=function(a){return ia(La(Ja),[a])};e9.prototype.Dp=function(){return n(WZa)};
e9.prototype.$classData=q({r9a:0},!1,"scala.reflect.ManifestFactory$NothingManifest$",{r9a:1,v2:1,u2:1,f:1,wx:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});var gvb=void 0;function fAa(){gvb||(gvb=(new e9).a());return gvb}function f9(){this.WA=null}f9.prototype=new jub;f9.prototype.constructor=f9;f9.prototype.a=function(){this.WA="Null";w();G();n(mCa);return this};f9.prototype.As=function(a){return ia(La(Ja),[a])};f9.prototype.Dp=function(){return n(mCa)};
f9.prototype.$classData=q({s9a:0},!1,"scala.reflect.ManifestFactory$NullManifest$",{s9a:1,v2:1,u2:1,f:1,wx:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});var hvb=void 0;function gAa(){hvb||(hvb=(new f9).a());return hvb}function g9(){this.WA=null}g9.prototype=new jub;g9.prototype.constructor=g9;g9.prototype.a=function(){this.WA="Object";w();G();n(Ja);return this};g9.prototype.As=function(a){return ia(La(Ja),[a])};g9.prototype.Dp=function(){return n(Ja)};
g9.prototype.$classData=q({t9a:0},!1,"scala.reflect.ManifestFactory$ObjectManifest$",{t9a:1,v2:1,u2:1,f:1,wx:1,Tu:1,Yv:1,Uu:1,q:1,n:1,w:1});var ivb=void 0;function Pu(){ivb||(ivb=(new g9).a());return ivb}function h9(){this.sJ=this.s=null}h9.prototype=new ynb;h9.prototype.constructor=h9;h9.prototype.a=function(){kS.prototype.a.call(this);jvb=this;this.sJ=(new Q6).Zh(0,0,0);return this};h9.prototype.lA=function(){return this.sJ};h9.prototype.Ed=function(){return(new zq).a()};
h9.prototype.$classData=q({sbb:0},!1,"scala.collection.immutable.Vector$",{sbb:1,iFa:1,Uy:1,Ty:1,Os:1,Ln:1,f:1,Qs:1,Mn:1,q:1,n:1});var jvb=void 0;function yq(){jvb||(jvb=(new h9).a());return jvb}function xm(){Tl.call(this)}xm.prototype=new C5;xm.prototype.constructor=xm;d=xm.prototype;d.a=function(){M();var a=(new N).a();xm.prototype.KAa.call(this,(new c4).P((new Q).a(),a));return this};d.L=function(){return"AnnotationTypeDeclaration"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Qha){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.KAa=function(a){Tl.prototype.fC.call(this,a);return this};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Qha:0},!1,"amf.client.model.document.AnnotationTypeDeclaration",{Qha:1,qB:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,A:1,w:1,q:1,n:1});function zm(){Tl.call(this)}zm.prototype=new C5;zm.prototype.constructor=zm;d=zm.prototype;d.a=function(){M();var a=(new N).a();zm.prototype.LAa.call(this,(new dQ).P((new Q).a(),a));return this};d.L=function(){return"DataType"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Rha){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.LAa=function(a){Tl.prototype.fC.call(this,a);return this};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Rha:0},!1,"amf.client.model.document.DataType",{Rha:1,qB:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,A:1,w:1,q:1,n:1});function UA(){this.na=this.p=null}UA.prototype=new r;UA.prototype.constructor=UA;d=UA.prototype;d.L=function(){return"Dialect"};d.a=function(){M();var a=(new N).a();UA.prototype.HK.call(this,(new mN).P((new Q).a(),a));return this};d.Xf=function(){lM();var a=B(this.p.g,ed().$);lM().wb();return Gb(a)};d.H=function(){return 1};d.Mm=function(a){return JS(this,a)};
d.Wo=function(a){return BS(this,a)};d.ap=function(a){return FS(this,a)};d.Yo=function(){return DS(this)};d.EQ=function(){return this.Xf()};d.h=function(a){if(this===a)return!0;if(o8a(a)){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.cp=function(){return MS(this)};d.Wl=function(){return LS(this)};d.u=function(){return U(W(),this)};d.St=function(a){return FK(this,a)};d.nw=function(){return SCa(this)};
d.kw=function(a){return GK(this,a)};d.Xo=function(a){return NS(this,a)};d.$o=function(a){return CS(this,a)};d.Nm=function(){return KS(this)};d.bc=function(){return Eo(this)};d.w4=function(a){var b=this.p,c=ed().Tm;Eb(b,c,a);return this};d.bp=function(a){return ES(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Xfa=function(){lM();var a=B(this.p.g,ed().Tm);lM().wb();return Gb(a)};d.y=function(){return Y(this)};
d.yI=function(a){var b=this.p,c=lM(),e=z5();a=ml(nl(new ol,c,a,e));c=ge().ch;qf(b,c,a);return this};d.Ut=function(){return EK(this)};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p,c=ed().$;Eb(b,c,a);return this};d.Rt=function(a){return DK(this,a)};d.Nn=function(){return HS(this)};d.dp=function(){return GS(this)};d.FI=function(){return this.qK()};d.qK=function(){var a=lM(),b=xd(this.p),c=z5();return Il(a,b,c).sb()};d.HK=function(a){this.p=a;this.na=ju().na;return this};
UA.prototype.annotations=function(){return this.bc()};Object.defineProperty(UA.prototype,"sourceVendor",{get:function(){return this.Nn()},configurable:!0});UA.prototype.findByType=function(a){return this.Xo(a)};UA.prototype.findById=function(a){return this.Wo(a)};UA.prototype.withUsage=function(a){return this.bp(a)};UA.prototype.withLocation=function(a){return this.$o(a)};UA.prototype.withRaw=function(a){return this.Mm(a)};UA.prototype.withReferences=function(a){return this.ap(a)};
Object.defineProperty(UA.prototype,"modelVersion",{get:function(){return this.cp()},configurable:!0});Object.defineProperty(UA.prototype,"usage",{get:function(){return this.dp()},configurable:!0});Object.defineProperty(UA.prototype,"location",{get:function(){return this.Wl()},configurable:!0});Object.defineProperty(UA.prototype,"raw",{get:function(){return this.Nm()},configurable:!0});UA.prototype.references=function(){return this.Yo()};
Object.defineProperty(UA.prototype,"id",{get:function(){return this.hc()},configurable:!0});UA.prototype.withEncodes=function(a){return this.kw(a)};Object.defineProperty(UA.prototype,"encodes",{get:function(){return this.nw()},configurable:!0});UA.prototype.withDeclares=function(a){return this.St(a)};UA.prototype.withDeclaredElement=function(a){return this.Rt(a)};Object.defineProperty(UA.prototype,"declares",{get:function(){return this.Ut()},configurable:!0});
UA.prototype.withDocuments=function(a){var b=this.p;a=a.p;var c=ed().vj;ff(b,c,a);return this};UA.prototype.withExternals=function(a){return this.yI(a)};UA.prototype.withVersion=function(a){return this.w4(a)};UA.prototype.withName=function(a){return this.xe(a)};UA.prototype.documents=function(){return(new QA).iba(B(this.p.g,ed().vj))};Object.defineProperty(UA.prototype,"externals",{get:function(){return this.FI()},configurable:!0});
Object.defineProperty(UA.prototype,"allHeaders",{get:function(){var a=lM(),b=nQa(this.p),c=lM().oh();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(UA.prototype,"fragmentHeaders",{get:function(){var a=lM(),b=kvb(this.p),c=lM().oh();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(UA.prototype,"libraryHeader",{get:function(){var a=lM(),b=lvb(this.p),c=lM().oh();return Bb(a,b,c).sb()},configurable:!0});UA.prototype.isFragmentHeader=function(a){return Zsb(this.p,a)};
UA.prototype.isLibraryHeader=function(a){return atb(this.p,a)};Object.defineProperty(UA.prototype,"header",{get:function(){return this.p.wu()},configurable:!0});UA.prototype.nameAndVersion=function(){return mK(this.p)};UA.prototype.version=function(){return this.Xfa()};UA.prototype.name=function(){return this.EQ()};function o8a(a){return!!(a&&a.$classData&&a.$classData.v.Sha)}
UA.prototype.$classData=q({Sha:0},!1,"amf.client.model.document.Dialect",{Sha:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,CD:1,A:1,w:1,q:1,n:1});function Gm(){Tl.call(this)}Gm.prototype=new C5;Gm.prototype.constructor=Gm;d=Gm.prototype;d.a=function(){M();var a=(new N).a();Gm.prototype.MAa.call(this,(new d4).P((new Q).a(),a));return this};d.L=function(){return"DocumentationItem"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Tha){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.MAa=function(a){Tl.prototype.fC.call(this,a);return this};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Tha:0},!1,"amf.client.model.document.DocumentationItem",{Tha:1,qB:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,A:1,w:1,q:1,n:1});function Vl(){Tl.call(this)}Vl.prototype=new C5;Vl.prototype.constructor=Vl;d=Vl.prototype;d.a=function(){M();var a=(new N).a();Vl.prototype.Taa.call(this,(new zp).P((new Q).a(),a));return this};d.L=function(){return"ExternalFragment"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Vha){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Taa=function(a){Tl.prototype.fC.call(this,a);return this};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Vha:0},!1,"amf.client.model.document.ExternalFragment",{Vha:1,qB:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,A:1,w:1,q:1,n:1});function Im(){Tl.call(this)}Im.prototype=new C5;Im.prototype.constructor=Im;d=Im.prototype;d.a=function(){M();var a=(new N).a();Im.prototype.NAa.call(this,(new e4).P((new Q).a(),a));return this};d.L=function(){return"NamedExample"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Xha){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.NAa=function(a){Tl.prototype.fC.call(this,a);return this};
d.$classData=q({Xha:0},!1,"amf.client.model.document.NamedExample",{Xha:1,qB:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,A:1,w:1,q:1,n:1});function Em(){Tl.call(this)}Em.prototype=new C5;Em.prototype.constructor=Em;d=Em.prototype;d.L=function(){return"PayloadFragment"};d.T$=function(){Ab();var a=Xp(this.p.g,Dm().ob);return nm(Ab().tq(),a)};d.D4=function(){return this.T$()};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(Lnb(a)){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.e6a=function(a,b){Em.prototype.U0.call(this,fh(hh(),a.p,b));return this};d.g6a=function(a,b){Em.prototype.U0.call(this,fh(hh(),a.p,b));return this};d.U0=function(a){Tl.prototype.fC.call(this,a);return this};d.fz=function(){return B(this.p.g,Dm().Md)};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.h6a=function(a,b){Em.prototype.U0.call(this,fh(hh(),a.p,b));return this};
d.M=function(){return Z(this)};Object.defineProperty(Em.prototype,"dataNode",{get:function(){return this.D4()},configurable:!0});Object.defineProperty(Em.prototype,"mediaType",{get:function(){return this.fz()},configurable:!0});function Lnb(a){return!!(a&&a.$classData&&a.$classData.v.Zha)}Em.prototype.$classData=q({Zha:0},!1,"amf.client.model.document.PayloadFragment",{Zha:1,qB:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,A:1,w:1,q:1,n:1});function Km(){Tl.call(this)}Km.prototype=new C5;
Km.prototype.constructor=Km;d=Km.prototype;d.a=function(){M();var a=(new N).a();Km.prototype.OAa.call(this,(new f4).P((new Q).a(),a));return this};d.L=function(){return"ResourceTypeFragment"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.$ha){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Fd=function(){return this.p};
d.y=function(){return Y(this)};d.OAa=function(a){Tl.prototype.fC.call(this,a);return this};d.M=function(){return Z(this)};d.$classData=q({$ha:0},!1,"amf.client.model.document.ResourceTypeFragment",{$ha:1,qB:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,A:1,w:1,q:1,n:1});function Mm(){Tl.call(this)}Mm.prototype=new C5;Mm.prototype.constructor=Mm;d=Mm.prototype;d.PAa=function(a){Tl.prototype.fC.call(this,a);return this};d.a=function(){M();var a=(new N).a();Mm.prototype.PAa.call(this,(new g4).P((new Q).a(),a));return this};
d.L=function(){return"SecuritySchemeFragment"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.aia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({aia:0},!1,"amf.client.model.document.SecuritySchemeFragment",{aia:1,qB:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,A:1,w:1,q:1,n:1});function Om(){Tl.call(this)}Om.prototype=new C5;Om.prototype.constructor=Om;d=Om.prototype;d.a=function(){M();var a=(new N).a();Om.prototype.QAa.call(this,(new h4).P((new Q).a(),a));return this};d.L=function(){return"TraitFragment"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.bia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.QAa=function(a){Tl.prototype.fC.call(this,a);return this};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({bia:0},!1,"amf.client.model.document.TraitFragment",{bia:1,qB:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,A:1,w:1,q:1,n:1});function $n(){this.na=this.p=null}$n.prototype=new r;$n.prototype.constructor=$n;d=$n.prototype;d.L=function(){return"Example"};d.a=function(){M();var a=(new N).a(),b=(new Q).a();$n.prototype.TAa.call(this,(new iB).P(b,a));return this};d.Xf=function(){S();var a=B(this.p.g,lh().$);S().wb();return Gb(a)};d.Wt=function(){return zb(this)};d.lw=function(a){return Cb(this,a)};
d.H=function(){return 1};d.Vt=function(){return this.iE()};d.nd=function(){return SS(this)};d.Ie=function(){return this.Xf()};d.lL=function(){S();var a=B(this.p.g,lh().Md);S().wb();return Gb(a)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.qia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.iw=function(){return w()};
d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.Wl=function(){return this.hL()};d.u=function(){return U(W(),this)};d.ow=function(){return xb(this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.yj=function(){S();var a=B(this.p.g,lh().fb);S().wb();return Gb(a)};d.s3=function(){S();var a=B(this.p.g,jh().Sd);S().wb();return Gb(a)};d.Tt=function(a){var b=this.p,c=lh().gd;Eb(b,c,a);return this};
function mvb(a){S();a=a.p;M();var b=(new N).a(),c=(new Q).a(),b=(new iB).P(c,b);a=Te(b,a.k);return w_a(n8(),a)}d.Ao=function(){return mvb(this)};d.rd=function(){return PS(this)};d.ws=function(){return mvb(this)};d.jw=function(a){return Hb(this,a)};d.sd=function(){return OS(this)};d.TQ=function(a){var b=this.p,c=lh().Md;Eb(b,c,a);return this};d.bc=function(){return Eo(this)};d.hi=function(a){var b=this.p,c=lh().fb;Eb(b,c,a);return this};d.II=function(){return this.s3()};
d.od=function(a){return WS(this,a)};d.fz=function(){return this.lL()};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Rh=function(){return this.yj()};d.y=function(){return Y(this)};d.TAa=function(a){this.p=a;this.na=ju().na;return this};d.iE=function(){S();var a=B(this.p.g,lh().gd);S().wb();return Gb(a)};d.hL=function(){var a=S(),b=$h(this.p),c=S().oh();return Bb(a,b,c).sb()};d.M=function(){return Z(this)};d.xe=function(a){var b=this.p;M();var c=(new N).a();Ue(b,a,c);return this};
d.pw=function(){return Fb(this)};d.mw=function(a){return Ib(this,a)};$n.prototype.annotations=function(){return this.bc()};$n.prototype.graph=function(){return this.nd()};$n.prototype.withId=function(a){return this.qd(a)};$n.prototype.withExtendsNode=function(a){return this.pd(a)};$n.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty($n.prototype,"position",{get:function(){return this.fd()},configurable:!0});
Object.defineProperty($n.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty($n.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty($n.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});$n.prototype.link=function(){for(var a=arguments.length|0,b=0,c=[];b<a;)c.push(arguments[b]),b=b+1|0;a=void 0===c[0]?this.iw():c[0];return this.jw(a)};$n.prototype.withLinkLabel=function(a){return this.lw(a)};
$n.prototype.withLinkTarget=function(a){return this.mw(a)};Object.defineProperty($n.prototype,"linkLabel",{get:function(){return this.pw()},configurable:!0});Object.defineProperty($n.prototype,"isLink",{get:function(){return this.ow()},configurable:!0});Object.defineProperty($n.prototype,"linkTarget",{get:function(){return this.Wt()},configurable:!0});Object.defineProperty($n.prototype,"toYaml",{get:function(){return tca(this.p)},configurable:!0});
Object.defineProperty($n.prototype,"toJson",{get:function(){var a;a:{a=this.p;var b=!1,c=null,e=B(a.g,jh().Sd).G;e.b()?e=w():(e=e.c(),e=(new A).d(uca(kh(),e,!1)));if(x(e)&&(b=!0,c=e,"application/json"===c.i)){a=B(a.g,jh().Sd).G;a=a.b()?null:a.c();break a}b&&"application/xml"===c.i?a="":(a=B(a.g,lh().Ho),a=sca(a))}return a},configurable:!0});$n.prototype.linkCopy=function(){return this.Ao()};$n.prototype.withMediaType=function(a){return this.TQ(a)};
$n.prototype.withStrict=function(a){a=!!a;var b=this.p,c=lh().Fq;dj(b,c,a);return this};$n.prototype.withStructuredValue=function(a){var b=this.p;S();S().tq();a=a.p;var c=lh().Ho;ff(b,c,a);return this};$n.prototype.withValue=function(a){var b=this.p,c=jh().Sd;Eb(b,c,a);return this};$n.prototype.withDescription=function(a){return this.hi(a)};$n.prototype.withDisplayName=function(a){return this.Tt(a)};$n.prototype.withName=function(a){return this.xe(a)};
Object.defineProperty($n.prototype,"location",{get:function(){return this.Wl()},configurable:!0});Object.defineProperty($n.prototype,"mediaType",{get:function(){return this.fz()},configurable:!0});Object.defineProperty($n.prototype,"strict",{get:function(){S();var a=B(this.p.g,lh().Fq);S().sl();return tK(a)},configurable:!0});Object.defineProperty($n.prototype,"structuredValue",{get:function(){S();var a=B(this.p.g,lh().Ho);return nm(S().tq(),a)},configurable:!0});
Object.defineProperty($n.prototype,"value",{get:function(){return this.II()},configurable:!0});Object.defineProperty($n.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty($n.prototype,"displayName",{get:function(){return this.Vt()},configurable:!0});Object.defineProperty($n.prototype,"name",{get:function(){return this.Ie()},configurable:!0});
$n.prototype.$classData=q({qia:0},!1,"amf.client.model.domain.Example",{qia:1,f:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1,A:1,w:1,q:1,n:1});function on(){this.na=this.p=null}on.prototype=new r;on.prototype.constructor=on;d=on.prototype;d.a=function(){M();var a=(new N).a();on.prototype.tBa.call(this,(new Fj).P((new Q).a(),a));return this};d.L=function(){return"ParametrizedResourceType"};d.H=function(){return 1};d.tR=function(){return Z2a(this)};d.nd=function(){return SS(this)};d.Ie=function(){return S2a(this)};
d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Hia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.v4=function(a){return V2a(this,a)};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.tBa=function(a){this.p=a;this.na=ju().na;return this};d.rd=function(){return PS(this)};
d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.JI=function(){return T2a(this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.xe=function(a){return X2a(this,a)};d.DI=function(a){return Y2a(this,a)};on.prototype.annotations=function(){return this.bc()};on.prototype.graph=function(){return this.nd()};on.prototype.withId=function(a){return this.qd(a)};
on.prototype.withExtendsNode=function(a){return this.pd(a)};on.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(on.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(on.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(on.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});
Object.defineProperty(on.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});on.prototype.withVariables=function(a){return this.DI(a)};on.prototype.withTarget=function(a){return this.v4(a)};on.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(on.prototype,"variables",{get:function(){return this.JI()},configurable:!0});Object.defineProperty(on.prototype,"target",{get:function(){return this.tR()},configurable:!0});
Object.defineProperty(on.prototype,"name",{get:function(){return this.Ie()},configurable:!0});on.prototype.$classData=q({Hia:0},!1,"amf.client.model.domain.ParametrizedResourceType",{Hia:1,f:1,nKa:1,Re:1,Id:1,xd:1,Fb:1,Yl:1,A:1,w:1,q:1,n:1});function qn(){this.na=this.p=null}qn.prototype=new r;qn.prototype.constructor=qn;d=qn.prototype;d.a=function(){M();var a=(new N).a();qn.prototype.uBa.call(this,(new Kj).P((new Q).a(),a));return this};d.L=function(){return"ParametrizedTrait"};d.H=function(){return 1};
d.tR=function(){return Z2a(this)};d.nd=function(){return SS(this)};d.Ie=function(){return S2a(this)};d.pd=function(a){return US(this,a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Jia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.v4=function(a){return V2a(this,a)};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.fd=function(){return QS(this)};
d.qd=function(a){return RS(this,a)};d.uBa=function(a){this.p=a;this.na=ju().na;return this};d.rd=function(){return PS(this)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.JI=function(){return T2a(this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.xe=function(a){return X2a(this,a)};d.DI=function(a){return Y2a(this,a)};qn.prototype.annotations=function(){return this.bc()};
qn.prototype.graph=function(){return this.nd()};qn.prototype.withId=function(a){return this.qd(a)};qn.prototype.withExtendsNode=function(a){return this.pd(a)};qn.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(qn.prototype,"position",{get:function(){return this.fd()},configurable:!0});Object.defineProperty(qn.prototype,"id",{get:function(){return this.hc()},configurable:!0});
Object.defineProperty(qn.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(qn.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});qn.prototype.withVariables=function(a){return this.DI(a)};qn.prototype.withTarget=function(a){return this.v4(a)};qn.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(qn.prototype,"variables",{get:function(){return this.JI()},configurable:!0});
Object.defineProperty(qn.prototype,"target",{get:function(){return this.tR()},configurable:!0});Object.defineProperty(qn.prototype,"name",{get:function(){return this.Ie()},configurable:!0});qn.prototype.$classData=q({Jia:0},!1,"amf.client.model.domain.ParametrizedTrait",{Jia:1,f:1,nKa:1,Re:1,Id:1,xd:1,Fb:1,Yl:1,A:1,w:1,q:1,n:1});function mh(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}mh.prototype=new r;mh.prototype.constructor=mh;d=mh.prototype;d.L=function(){return"Module"};
d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:Ll(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Ug()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};
d.Pe=function(){return Xp(this.g,Ug().qc)};d.Yb=function(){return jd(this)};d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ak=function(){return Xp(this.g,Ug().Mc)};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function Ll(a){return!!(a&&a.$classData&&a.$classData.v.ika)}
d.$classData=q({ika:0},!1,"amf.core.model.document.Module",{ika:1,f:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,uB:1,A:1,w:1,q:1,n:1});function $r(){this.l=this.xc=this.E=this.G=null}$r.prototype=new r;$r.prototype.constructor=$r;d=$r.prototype;d.L=function(){return"BoolFieldImpl"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Gka&&a.l===this.l){var b=this.G,c=a.G;if((null===b?null===c:b.h(c))&&this.E===a.E)return b=this.xc,a=a.xc,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.G;case 1:return this.E;case 2:return this.xc;default:throw(new X).e(""+a);}};d.u=function(){return gba(this)};d.zE=function(a,b,c){var e=Wa().Ia(b.t);e.b()?e=w():(e=e.c(),e=(new A).d(!!e));$r.prototype.Kv.call(this,a,e,b.E,c);return this};d.Nu=function(){return this.G};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Kv=function(a,b,c,e){this.G=b;this.E=c;this.xc=e;if(null===a)throw Lb(Mb(),null);this.l=a;return this};
d.$classData=q({Gka:0},!1,"amf.core.parser.Fields$BoolFieldImpl",{Gka:1,f:1,Ieb:1,fka:1,GY:1,FY:1,HY:1,JY:1,A:1,w:1,q:1,n:1});function cs(){this.l=this.xc=this.E=this.G=null}cs.prototype=new r;cs.prototype.constructor=cs;d=cs.prototype;d.L=function(){return"DoubleFieldImpl"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Hka&&a.l===this.l){var b=this.G,c=a.G;if((null===b?null===c:b.h(c))&&this.E===a.E)return b=this.xc,a=a.xc,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.G;case 1:return this.E;case 2:return this.xc;default:throw(new X).e(""+a);}};d.u=function(){return gba(this)};d.zE=function(a,b,c){var e=$cb(b);e.b()?e=w():(e=e.c(),e=(new A).d(+e));cs.prototype.Kv.call(this,a,e,b.E,c);return this};d.Nu=function(){return this.G};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Kv=function(a,b,c,e){this.G=b;this.E=c;this.xc=e;if(null===a)throw Lb(Mb(),null);this.l=a;return this};
d.$classData=q({Hka:0},!1,"amf.core.parser.Fields$DoubleFieldImpl",{Hka:1,f:1,Jeb:1,fka:1,GY:1,FY:1,HY:1,JY:1,A:1,w:1,q:1,n:1});function as(){this.l=this.xc=this.E=this.G=null}as.prototype=new r;as.prototype.constructor=as;d=as.prototype;d.L=function(){return"IntFieldImpl"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ika&&a.l===this.l){var b=this.G,c=a.G;if((null===b?null===c:b.h(c))&&this.E===a.E)return b=this.xc,a=a.xc,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.G;case 1:return this.E;case 2:return this.xc;default:throw(new X).e(""+a);}};d.u=function(){return gba(this)};d.zE=function(a,b,c){var e=Wa().Ia(b.t);e.b()?e=w():(e=e.c(),e=(new A).d(e|0));as.prototype.Kv.call(this,a,e,b.E,c);return this};d.Nu=function(){return this.G};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Kv=function(a,b,c,e){this.G=b;this.E=c;this.xc=e;if(null===a)throw Lb(Mb(),null);this.l=a;return this};
d.$classData=q({Ika:0},!1,"amf.core.parser.Fields$IntFieldImpl",{Ika:1,f:1,Keb:1,fka:1,GY:1,FY:1,HY:1,JY:1,A:1,w:1,q:1,n:1});function qQa(){this.Xb=this.o=this.mm=this.rb=null}qQa.prototype=new r;qQa.prototype.constructor=qQa;d=qQa.prototype;d.L=function(){return"NodeMappingEmitter"};function nvb(a,b,c){return B(c.g,ed().qc).Cd(t(new u,function(a,b){return function(a){return VA(a)?B(a.g,ed().ob).k===b.k:!1}}(a,b)))}d.H=function(){return 4};
function ovb(a,b,c){R();var e=B(c.g,c.$).G,e=e.b()?null:e.c(),f=Th(R(),e),e=(new My).e(b.da),g=e.r,h=e.da,k=(new pq).e(h),l=H(z(),G()),p=B(c.g,cg().Jg);if(p.Fa()){var y=cg().Jg,y=Cd(c,y),I=t(new u,function(a){return function(b){b=b.G;b=b.b()?null:b.c();b=lv(a,b);return x(b)?(new A).d(b.i):w()}}(a)),E=z(),p=p.ka(I,E.s),I=new Fdb,E=z(),p=p.$b(I,E.s),y=H(z(),(new J).aa([tQa(p,y)])),p=z(),l=l.la(y,p.s);c=rQa(a,c);y=z();l=l.la(c,y.s);a.o.Cb(l).X(t(new u,function(a,b){return function(a){a.Va(b)}}(a,k)))}T(g,
lq(R(),rq(sq(),k.r,h),O().ua));a=e.r;f=[f];if(0>a.x)throw(new X).e("0");g=f.length|0;c=a.x+g|0;hC(a,c);Ca(a.z,0,a.z,g,a.x);g=a.z;l=g.j.length;k=h=0;y=f.length|0;l=y<l?y:l;y=g.j.length;for(l=l<y?l:y;h<l;)g.j[k]=f[h],h=1+h|0,k=1+k|0;a.x=c;T(b.r,iC(jC(),e.r))}
function pvb(a,b,c){R();var e=B(c.g,c.$).G,e=e.b()?null:e.c(),f=Th(R(),e),e=(new My).e(b.da),g=e.r,h=e.da,k=(new pq).e(h),l=B(c.g,Tj().ov).G,l=l.b()?null:l.c(),l=lv(a,l);if(x(l))Bv(new Cv,"classTerm",l.i,O().Wa,Gd()).Va(k);else if(w()===l)B(c.g,Tj().ov);else throw(new v).d(l);var p=B(c.g,Tj().Qi);if(null!==p&&p.Fa()){R();var y=Th(R(),"mapping"),l=(new My).e(k.da),I=l.r,E=l.da,V=(new pq).e(E),da=t(new u,function(a){return function(b){var c=a.o,e=a.Xb,f=new qvb;f.rb=a.rb;f.ih=b;f.o=c;f.Xb=e;return f}}(a)),
sa=z(),p=p.ka(da,sa.s);iq(Cq(),a.o.Cb(p),V);T(I,lq(R(),rq(sq(),V.r,E),O().ua));a=l.r;y=[y];if(0>a.x)throw(new X).e("0");E=y.length|0;I=a.x+E|0;hC(a,I);Ca(a.z,0,a.z,E,a.x);E=a.z;da=E.j.length;p=V=0;sa=y.length|0;da=sa<da?sa:da;sa=E.j.length;for(da=da<sa?da:sa;V<da;)E.j[p]=y[V],V=1+V|0,p=1+p|0;a.x=I;T(k.r,iC(jC(),l.r))}l=B(c.g,Lc().wi()).pc();x(l)&&(a=l.i,ns(a)&&(R(),l=Th(R(),"extends"),R(),a=B(a.ca(),Db().wd).G,a=a.b()?null:a.c(),a=Th(R(),a),qq(k,l,a)));l=B(c.g,Tj().Xx).G;l.b()||(a=l.c(),R(),l=Th(R(),
"idTemplate"),R(),a=Th(R(),a),qq(k,l,a));c=Zka(c).G;c.b()||(l=c.c(),R(),c=Th(R(),"patch"),R(),l=Th(R(),l),qq(k,c,l));T(g,lq(R(),rq(sq(),k.r,h),O().ua));g=e.r;f=[f];if(0>g.x)throw(new X).e("0");k=f.length|0;h=g.x+k|0;hC(g,h);Ca(g.z,0,g.z,k,g.x);k=g.z;a=k.j.length;l=c=0;y=f.length|0;a=y<a?y:a;y=k.j.length;for(a=a<y?a:y;c<a;)k.j[l]=f[c],c=1+c|0,l=1+l|0;g.x=h;T(b.r,iC(jC(),e.r))}
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Qla){var b=this.rb,c=a.rb;(null===b?null===c:b.h(c))?(b=this.mm,c=a.mm,b=null===b?null===c:b.h(c)):b=!1;if(b&&this.o===a.o)return b=this.Xb,a=a.Xb,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.rb;case 1:return this.mm;case 2:return this.o;case 3:return this.Xb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){if(yb(this.mm).qa()){if(nvb(this,yb(this.mm).c(),this.rb)){R();var b=this.mm,b=B(b.ca(),b.$).G,b=b.b()?null:b.c(),b=Th(R(),b);R();var c=B(this.mm.ca(),Db().wd).G,c=Fva(0,c.b()?null:c.c())}else R(),b=this.mm,b=B(b.ca(),b.$).G,b=b.b()?null:b.c(),b=Th(R(),b),R(),c=B(this.mm.ca(),Db().wd).G,c=c.b()?null:c.c(),c=Th(R(),c);qq(a,b,c)}else if(b=this.mm,he(b))pvb(this,a,b);else if(bg(b))ovb(this,a,b);else throw(new v).d(b);};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.Oa=function(){var a=Zb(this.mm.ha(),n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};d.$classData=q({Qla:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.NodeMappingEmitter",{Qla:1,f:1,ib:1,Ra:1,OQa:1,WQa:1,eJ:1,Cz:1,A:1,w:1,q:1,n:1});function qvb(){this.Xb=this.o=this.ih=this.rb=null}qvb.prototype=new r;qvb.prototype.constructor=qvb;d=qvb.prototype;d.L=function(){return"PropertyMappingEmitter"};d.H=function(){return 4};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Rla){var b=this.rb,c=a.rb;(null===b?null===c:b.h(c))?(b=this.ih,c=a.ih,b=null===b?null===c:b.h(c)):b=!1;if(b&&this.o===a.o)return b=this.Xb,a=a.Xb,null===b?null===a:O1(b,a)}return!1};d.K=function(a){switch(a){case 0:return this.rb;case 1:return this.ih;case 2:return this.o;case 3:return this.Xb;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.Va=function(a){R();var b=B(this.ih.g,sf().$).G,c=b.b()?null:b.c(),e=Th(R(),c),f=(new My).e(a.da),g=f.r,h=f.da,k=(new pq).e(h),l=null,l=H(z(),G()),p=B(this.ih.g,sf().Kh).G,y=p.b()?null:p.c(),I=lv(this,y);if(x(I))var E=I.i,V=this.ih,da=sf().Kh,sa=Cd(V,da),ua=l,Ia=z(),Pa=[Bv(new Cv,"propertyTerm",E,O().Wa,sa)],Za=H(Ia,(new J).aa(Pa)),db=z(),l=ua.la(Za,db.s);else if(w()!==I)throw(new v).d(I);var Qb=B(this.ih.g,sf().xf).G;if(!Qb.b()){var bc=Qb.c(),rc=C().Gb;if(bc===Gc(D(new F,rc,"guid")))var Fc=this.ih,
Rd=sf().xf,Ld=Cd(Fc,Rd),ze=l,Td=z(),Je=[Bv(new Cv,"range","guid",O().Wa,Ld)],$d=H(Td,(new J).aa(Je)),te=z(),l=ze.la($d,te.s);else if(re(ta(),bc,"anyURI"))var Hd=this.ih,ie=sf().xf,Nd=Cd(Hd,ie),td=l,yd=z(),ud=[Bv(new Cv,"range","uri",O().Wa,Nd)],Ve=H(yd,(new J).aa(ud)),Me=z(),l=td.la(Ve,Me.s);else if(re(ta(),bc,"link"))var Rc=this.ih,me=sf().xf,Ae=Cd(Rc,me),We=l,od=z(),Ad=[Bv(new Cv,"range","link",O().Wa,Ae)],ue=H(od,(new J).aa(Ad)),Id=z(),l=We.la(ue,Id.s);else if(re(ta(),bc,"anyType"))var gf=this.ih,
Jd=sf().xf,Vd=Cd(gf,Jd),je=l,Wd=z(),ve=[Bv(new Cv,"range","any",O().Wa,Vd)],$c=H(Wd,(new J).aa(ve)),we=z(),l=je.la($c,we.s);else if(re(ta(),bc,"number"))var cd=this.ih,ae=sf().xf,be=Cd(cd,ae),xe=l,ne=z(),Ed=[Bv(new Cv,"range","number",O().Wa,be)],Ne=H(ne,(new J).aa(Ed)),hf=z(),l=xe.la(Ne,hf.s);else var Ef=this.ih,Vf=sf().xf,Xe=Cd(Ef,Vf),Ye=l,vf=z(),Oe=C().mj.he,Xd=kd(ta(),bc,Oe,0),Ff=[Bv(new Cv,"range",ld((new md).vc(Xd)),O().Wa,Xe)],rf=H(vf,(new J).aa(Ff)),cf=z(),l=Ye.la(rf,cf.s)}var hg=Zka(this.ih).G;
if(!hg.b())var kg=hg.c(),oe=this.ih,wf=sf().mt,ce=Cd(oe,wf),jf=l,Kf=z(),xf=[Bv(new Cv,"patch",kg,O().Wa,ce)],Pe=H(Kf,(new J).aa(xf)),Ze=z(),l=jf.la(Pe,Ze.s);var Oc=B(this.ih.g,cg().Jg);if(Oc.Fa()){var ke=this.ih,Lf=sf().Jg,df=Cd(ke,Lf),de=t(new u,function(a){return function(b){var c=b.G,c=c.b()?null:c.c(),e=C().Kc;if(c===Gc(D(new F,e,"anyNode")))return(new A).d("anyNode");b=b.G;b=b.b()?null:b.c();b=lv(a,b);return x(b)?(new A).d(b.i):w()}}(this)),yg=z(),Mf=Oc.ka(de,yg.s),pe=new Gdb,Qe=z(),$e=Mf.$b(pe,
Qe.s);if(1===$e.lb())var kf=l,Re=z(),le=[Bv(new Cv,"range",$e.fa(),O().Wa,df)],Se=H(Re,(new J).aa(le)),Nf=z(),l=kf.la(Se,Nf.s);else if(1<$e.lb())var Gf=l,yf=H(z(),(new J).aa([uQa($e,df)])),ef=z(),l=Gf.la(yf,ef.s)}var lf=B(this.ih.g,sf().cu).G;if(lf.b()){var mf=B(this.ih.g,sf().qr).G;if(!mf.b()){var zg=mf.c(),yh=this.ih,Ag=sf().qr,zh=Cd(yh,Ag),Hf=lv(this,zg);if(x(Hf))var Sf=Hf.i,ig=l,Wf=z(),Kg=[Bv(new Cv,"mapTermKey",Sf,O().Wa,zh)],Bg=H(Wf,(new J).aa(Kg)),Xg=z(),l=ig.la(Bg,Xg.s)}}else var If=lf.c(),
lg=this.ih,Cg=sf().cu,mg=Cd(lg,Cg),Lg=l,bh=z(),ch=[Bv(new Cv,"mapKey",If,O().Wa,mg)],Mg=H(bh,(new J).aa(ch)),Hj=z(),l=Lg.la(Mg,Hj.s);var Ah=B(this.ih.g,sf().Bw).G;if(Ah.b()){var Of=B(this.ih.g,sf().cy).G;if(!Of.b()){var dh=Of.c(),Xf=this.ih,Ng=sf().cy,wi=Cd(Xf,Ng),Hi=lv(this,dh);if(x(Hi))var Yf=Hi.i,ji=l,mj=z(),xi=[Bv(new Cv,"mapTermValue",Yf,O().Wa,wi)],Og=H(mj,(new J).aa(xi)),Ij=z(),l=ji.la(Og,Ij.s)}}else var nj=Ah.c(),oj=this.ih,zk=sf().Bw,ng=Cd(oj,zk),gh=l,ki=z(),Zi=[Bv(new Cv,"mapValue",nj,O().Wa,
ng)],li=H(ki,(new J).aa(Zi)),$i=z(),l=gh.la(li,$i.s);var pj=B(this.ih.g,sf().eG).G;if(!pj.b())var Tf=!!pj.c(),mi=this.ih,aj=sf().eG,Ii=Cd(mi,aj),qj=l,Pl=z(),ni=[Bv(new Cv,"unique",""+Tf,O().ui,Ii)],Ak=H(Pl,(new J).aa(ni)),Jj=z(),l=qj.la(Ak,Jj.s);var $k=Dd(this.ih.g,sf().Uh);if(!$k.b()){var wl=$k.c(),Am=wl.t.t.t,ip=Cd(this.ih,wl.xc);if(ub(vb(),0,Am))var xo=l,kw=z(),Cu=[Bv(new Cv,"mandatory","false",O().ui,ip)],Nq=H(kw,(new J).aa(Cu)),Tr=z(),l=xo.la(Nq,Tr.s);else if(ub(vb(),1,Am))var yo=l,Wm=z(),Ur=
[Bv(new Cv,"mandatory","true",O().ui,ip)],gt=H(Wm,(new J).aa(Ur)),Vr=z(),l=yo.la(gt,Vr.s);else throw(new v).d(Am);}var Oq=Dd(this.ih.g,sf().vl);if(!Oq.b())var jp=Oq.c(),Pq=ja(jp.t.t.t),ht=Cd(this.ih,jp.xc),it=l,jt=z(),Qq=[Bv(new Cv,"pattern",Pq,O().Wa,ht)],lw=H(jt,(new J).aa(Qq)),zo=z(),l=it.la(lw,zo.s);var Ao=Dd(this.ih.g,sf().jj);if(!Ao.b())var kt=Ao.c(),Wr=kt.t.t.t,kp=Cd(this.ih,kt.xc),Du=l,lt=z(),mt=[Bv(new Cv,"minimum",ja(Wr),O().Oi,kp)],nt=H(lt,(new J).aa(mt)),Eu=z(),l=Du.la(nt,Eu.s);var Rq=
Dd(this.ih.g,sf().ij);if(!Rq.b())var Wn=Rq.c(),Fu=Wn.t.t.t,mw=Cd(this.ih,Wn.xc),nw=l,Sq=z(),ot=[Bv(new Cv,"maximum",ja(Fu),O().Oi,mw)],Tq=H(Sq,(new J).aa(ot)),Uq=z(),l=nw.la(Tq,Uq.s);var pt=Dd(this.ih.g,sf().oz);if(!pt.b())var Vq=pt.c(),ow=Vq.t.t.t,pw=Cd(this.ih,Vq.xc),qw=l,ty=z(),vy=[Bv(new Cv,"allowMultiple",ja(ow),O().ui,pw)],Bm=H(ty,(new J).aa(vy)),Gu=z(),l=qw.la(Bm,Gu.s);var rw=Dd(this.ih.g,sf().CJ);if(!rw.b())var sw=rw.c(),Hu=sw.t.t.t,wy=Cd(this.ih,sw.xc),Xr=l,Iu=z(),xy=[Bv(new Cv,"sorted",
ja(Hu),O().ui,wy)],yy=H(Iu,(new J).aa(xy)),zy=z(),l=Xr.la(yy,zy.s);var IA=Dd(this.ih.g,sf().$I);if(!IA.b())var Cm=IA.c(),Ju=l,tw=z(),qt=[Kw(new Lw,"enum",Cm,this.o,!1)],rt=H(tw,(new J).aa(qt)),Ay=z(),l=Ju.la(rt,Ay.s);var Yr=l,Ku=rQa(this,this.ih),By=z(),l=Yr.la(Ku,By.s);this.o.Cb(l).X(t(new u,function(a,b){return function(a){a.Va(b)}}(this,k)));T(g,lq(R(),rq(sq(),k.r,h),O().ua));var lp=f.r,st=[e];if(0>lp.x)throw(new X).e("0");var JA=st.length|0,mp=lp.x+JA|0;hC(lp,mp);Ca(lp.z,0,lp.z,JA,lp.x);for(var Lu=
lp.z,Cy=Lu.j.length,Xq=0,Mu=0,uw=st.length|0,tt=uw<Cy?uw:Cy,vw=Lu.j.length,KA=tt<vw?tt:vw;Xq<KA;)Lu.j[Mu]=st[Xq],Xq=1+Xq|0,Mu=1+Mu|0;lp.x=mp;T(a.r,iC(jC(),f.r))};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Oa=function(){var a=Zb(this.ih.E,n(Fd));a.b()?a=w():(a=a.c(),a=(new A).d(a.cc.Dd));return a.b()?Gd():a.c()};d.$classData=q({Rla:0},!1,"amf.plugins.document.vocabularies.emitters.dialects.PropertyMappingEmitter",{Rla:1,f:1,ib:1,Ra:1,OQa:1,WQa:1,eJ:1,Cz:1,A:1,w:1,q:1,n:1});
function fN(){this.k=this.mb=this.ct=this.mt=this.E=this.g=null;this.ma=!1}fN.prototype=new r;fN.prototype.constructor=fN;d=fN.prototype;d.L=function(){return"PropertyMapping"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:Gqa(a)?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return sf()};
d.ha=function(){return this.E};d.u=function(){return U(W(),this)};function TRa(a,b){var c=sf().$I,e=t(new u,function(){return function(a){return Nh(new Oh,a,(new N).a())}}(a)),f=z();b=b.ka(e,f.s);qf(a,c,b)}d.Nd=function(){return""};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.PN=function(a){this.mt=a};
function Uj(a){var b=B(a.g,sf().Kh).G;if(b.b())var b=C().zg,c=B(a.g,sf().$).G,c=c.b()?null:c.c(),b=Gc(D(new F,b,c));else b=b.c();b=sT(tT(),b);if(B(a.g,cg().Jg).Fa()||Wa().Ia(ET(a)).qa())return c=B(a.g,sf().oz),gd(c)||B(a.g,sf().qr).G.qa()?Rb(new Sb,(new Ki).Ld((pv(),jQa(new vT,(pv(),H(z(),G())),(pv(),G()),(pv(),w())))),b,Tb(new Ub,Vb().tm,"","",G())):Rb(new Sb,(pv(),jQa(new vT,(pv(),H(z(),G())),(pv(),G()),(pv(),w()))),b,Tb(new Ub,Vb().tm,"","",G()));var c=B(a.g,sf().xf).G,c=c.b()?null:c.c(),e=C().Gb;
c===Gc(D(new F,e,"link"))?c=Xc():c===qi().ir?c=KL():re(ta(),c,"anyType")?c=ad():re(ta(),c,"number")?c=bs():c===qi().hj?c=Zc():c===qi().rg?c=bs():c===qi().vi?c=Ci():c===qi().Xj?c=Yc():c===qi().uD?c=Zc():c===qi().Gw?(Uib||(Uib=(new q7).a()),c=Uib):c=c===qi().uq?UK():c===qi().Xl?UK():Pb();a=B(a.g,sf().oz);return gd(a)?Rb(new Sb,(new Ki).Ld(c),b,Tb(new Ub,Vb().tm,"","",G())):Rb(new Sb,c,b,Tb(new Ub,Vb().tm,"","",G()))}d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};
function x2(a){var b=B(a.g,cg().Jg);if(b.b())return b=Wa().Ia(ET(a)),(b.b()?pc(fc().db,G()):b.c()).Rr().ce();a=t(new u,function(){return function(a){a=a.G;return a.b()?null:a.c()}}(a));var c=z();return b.ka(a,c.s)}d.ON=function(a){this.ct=a};
function VGa(a){var b=B(a.g,cg().Jg).Cd(t(new u,function(){return function(a){a=a.G;a=a.b()?null:a.c();var b=C().Kc;return a===Gc(D(new F,b,"anyNode"))}}(a))),c=B(a.g,sf().xf).G.qa(),e=B(a.g,cg().Jg).Fa(),f=B(a.g,sf().oz).G,f=!(f.b()||!f.c()),g=B(a.g,sf().qr).G.qa();a=B(a.g,sf().cy).G.qa();return b?fGa():c&&!f?hGa():c?jGa():e&&g&&a?nGa():e&&g?JM():e&&!f?MM():OM()}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;Ud(this);return this};
function Gqa(a){return!!(a&&a.$classData&&a.$classData.v.wma)}d.$classData=q({wma:0},!1,"amf.plugins.document.vocabularies.model.domain.PropertyMapping",{wma:1,f:1,de:1,Wc:1,Rc:1,sma:1,eS:1,fSa:1,A:1,w:1,q:1,n:1});function K8(){yp.call(this);this.Dza=this.Cza=this.MDa=this.IG=this.Sca=this.qCa=this.Bk=this.ad=this.sW=null}K8.prototype=new $nb;K8.prototype.constructor=K8;
K8.prototype.vU=function(a,b){yp.prototype.co.call(this,a.Xg,a.yf,a.Yh,a.Xi,w());a=[(new P).N("$dialect",!1),(new P).N("dialect",!0),(new P).N("version",!0),(new P).N("usage",!1),(new P).N("external",!1),(new P).N("uses",!1),(new P).N("nodeMappings",!1),(new P).N("documents",!1)];for(var c=Ry(new Sy,Xs()),e=0,f=a.length|0;e<f;)Ty(c,a[e]),e=1+e|0;this.Bk=c.gb;a=[(new P).N("usage",!1),(new P).N("external",!1),(new P).N("uses",!1),(new P).N("nodeMappings",!1)];c=Ry(new Sy,Xs());e=0;for(f=a.length|0;e<
f;)Ty(c,a[e]),e=1+e|0;this.qCa=c.gb;a=[(new P).N("classTerm",!1),(new P).N("mapping",!1),(new P).N("idProperty",!1),(new P).N("idTemplate",!1),(new P).N("patch",!1),(new P).N("extends",!1)];c=Ry(new Sy,Xs());e=0;for(f=a.length|0;e<f;)Ty(c,a[e]),e=1+e|0;this.Sca=c.gb;a=[(new P).N("usage",!1),(new P).N("external",!1),(new P).N("uses",!1)];c=Ry(new Sy,Xs());e=0;for(f=a.length|0;e<f;)Ty(c,a[e]),e=1+e|0;this.IG=c.gb.gr(this.Sca);a=[(new P).N("propertyTerm",!1),(new P).N("range",!1),(new P).N("mapKey",
!1),(new P).N("mapValue",!1),(new P).N("mapTermKey",!1),(new P).N("mapTermValue",!1),(new P).N("mandatory",!1),(new P).N("pattern",!1),(new P).N("sorted",!1),(new P).N("minimum",!1),(new P).N("maximum",!1),(new P).N("allowMultiple",!1),(new P).N("enum",!1),(new P).N("typeDiscriminatorName",!1),(new P).N("typeDiscriminator",!1),(new P).N("unique",!1),(new P).N("patch",!1)];c=Ry(new Sy,Xs());e=0;for(f=a.length|0;e<f;)Ty(c,a[e]),e=1+e|0;this.MDa=c.gb;a=[(new P).N("root",!1),(new P).N("fragments",!1),
(new P).N("library",!1),(new P).N("options",!1)];c=Ry(new Sy,Xs());e=0;for(f=a.length|0;e<f;)Ty(c,a[e]),e=1+e|0;this.Cza=c.gb;a=[(new P).N("selfEncoded",!1),(new P).N("declarationsPath",!1),(new P).N("keyProperty",!1),(new P).N("referenceStyle",!1)];c=Ry(new Sy,Xs());e=0;for(f=a.length|0;e<f;)Ty(c,a[e]),e=1+e|0;this.Dza=c.gb;this.sW=pc(fc().db,G());b.b()?(b=(new A).d(this),a=this.Yh,c=pc(fc().db,G()),b=(new nU).XU(c,b,a)):b=b.c();this.ad=b;return this};
K8.prototype.$classData=q({tSa:0},!1,"amf.plugins.document.vocabularies.parser.dialects.DialectContext",{tSa:1,au:1,f:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1,Veb:1,Ama:1});function Wsb(){yp.call(this);this.NDa=this.Oya=this.lHa=this.ad=this.DC=this.N0=null}Wsb.prototype=new $nb;Wsb.prototype.constructor=Wsb;
function BGa(a,b,c,e,f){if(-1!==(c.indexOf(".")|0)){b=kd(ta(),c,"\\.",0);b=Wj((new md).vc(b));c=kd(ta(),c,"\\.",0);c=ld((new md).vc(c));e=a.ad.Gn.Ta(b);if(x(e))return a=B(e.i.g,zd().uh).G,(new A).d(""+(a.b()?null:a.c())+c);if(w()===e)return a=a.ad.ai.Ta(b),x(a)&&(a=a.i,HGa(a))?LGa(a,c):w();throw(new v).d(e);}b=""+b+c;var g=LGa(a.ad,c);if(!x(g))if(w()===g)f&&(f=a.DC,c=H(z(),(new J).aa([(new z6).vA(b,c,e,!1)])),e=z(),a.DC=f.la(c,e.s));else throw(new v).d(g);return(new A).d(b)}
function FGa(a,b,c){a.DC=a.DC.xb(t(new u,function(a,b){return function(a){a=a.Co;var c=b.k;return!(null===a?null===c:pa(a,c))}}(a,c)));a.ad.tG=a.ad.tG.Zb((new P).N(b,c))}function yGa(a){var b=(new dd).Qd(a.ad.tG).Rb.gf().kd();a=(new dd).Qd(a.ad.OH).Rb.gf().kd();var c=z();return b.la(a,c.s)}function T5a(a,b,c){a.N0=a.N0.Zb((new P).N(b,c))}
function CGa(a,b,c){a.DC=a.DC.xb(t(new u,function(a,b){return function(a){a=a.Co;var c=b.k;return!(null===a?null===c:pa(a,c))}}(a,c)));a.ad.OH=a.ad.OH.Zb((new P).N(b,c))}
function AGa(a,b,c,e,f){if(-1!==(c.indexOf(".")|0)){b=kd(ta(),c,"\\.",0);b=Wj((new md).vc(b));c=kd(ta(),c,"\\.",0);c=ld((new md).vc(c));e=a.ad.Gn.Ta(b);if(x(e))return a=B(e.i.g,zd().uh).G,(new A).d(""+(a.b()?null:a.c())+c);if(w()===e)return a=a.ad.ai.Ta(b),x(a)&&(a=a.i,HGa(a))?JGa(a,c):w();throw(new v).d(e);}b=""+b+c;var g=JGa(a.ad,c);if(!x(g))if(w()===g)f&&(f=a.DC,c=H(z(),(new J).aa([(new z6).vA(b,c,e,!0)])),e=z(),a.DC=f.la(c,e.s));else throw(new v).d(g);return(new A).d(b)}
Wsb.prototype.vU=function(a,b){yp.prototype.co.call(this,a.Xg,a.yf,a.Yh,a.Xi,w());a=[(new P).N("$dialect","string"),(new P).N("base","string"),(new P).N("usage","string"),(new P).N("vocabulary","string"),(new P).N("uses","libraries"),(new P).N("external","libraries"),(new P).N("classTerms","ClassTerm[]"),(new P).N("propertyTerms","PropertyTerm[]")];for(var c=Ry(new Sy,Xs()),e=0,f=a.length|0;e<f;)Ty(c,a[e]),e=1+e|0;this.lHa=c.gb;a=[(new P).N("displayName","string"),(new P).N("description","string"),
(new P).N("properties","string[]"),(new P).N("extends","string[]")];c=Ry(new Sy,Xs());e=0;for(f=a.length|0;e<f;)Ty(c,a[e]),e=1+e|0;this.Oya=c.gb;a=[(new P).N("displayName","string"),(new P).N("description","string"),(new P).N("range","string[]"),(new P).N("extends","string[]")];c=Ry(new Sy,Xs());e=0;for(f=a.length|0;e<f;)Ty(c,a[e]),e=1+e|0;this.NDa=c.gb;this.N0=pc(fc().db,G());this.DC=G();if(b.b()){b=(new A).d(this);a=this.Yh;var c=pc(fc().db,G()),e=pc(fc().db,G()),f=pc(fc().db,G()),g=pc(fc().db,
G()),h=pc(fc().db,G());b=(new XM).m1(c,e,f,g,h,b,a)}else b=b.c();this.ad=b;return this};Wsb.prototype.$classData=q({QSa:0},!1,"amf.plugins.document.vocabularies.parser.vocabularies.VocabularyContext",{QSa:1,au:1,f:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1,Web:1,Ama:1});function i9(){yp.call(this);this.hh=this.y1=this.rH=this.ad=null}i9.prototype=new $nb;i9.prototype.constructor=i9;function rvb(){}rvb.prototype=i9.prototype;function c1a(a,b){a.rH=(new A).d(b);a.y1=(new A).d((new rv).Dr(b,a))}
function L8(a,b,c){a.up.Rl(svb(b),c)}function zlb(a,b,c){if(null===c)throw(new Rg).a();if(""===c)return Uga(b);if(0<=(c.length|0)&&"/"===c.substring(0,1)||-1!==(c.indexOf(":")|0))return c;if(0<=(c.length|0)&&"#"===c.substring(0,1))return a=kd(ta(),b,"#",0),""+Wj((new md).vc(a))+c;a=a.A_(b);a=(new Cf).e(a);c=""+ba.decodeURI(a.zd)+c;return Uga(c)}function R3(a,b,c){var e=zlb(c,c.Xg,b);b=Alb(e);a=Blb(a,e);if(a.b())return w();a=a.c();return T0a(lFa(),a,b,c)}
function d1a(a,b){a=a.y1;if(x(a)){a=a.i;var c;"#"===b||""===b||"/"===b?c="/":(c=0<=(b.length|0)&&"#"===b.substring(0,1)?b.split("#").join(""):b,0<=(c.length|0)&&"/"===c.substring(0,1)&&(c=(new ph).e(c),c=Zo(c,"/")));a=a.bx.Ta(c);if(a.b())return w();a=a.c();return(new A).d((new P).N(b,a))}return w()}function Ptb(a,b){a=a.up.Ta(svb(b));return x(a)&&(a=a.i,Xh(a))?(new A).d(a):w()}
function Blb(a,b){b=kd(ta(),b,"#",0);b=Wj((new md).vc(b));a=a.yf.xb(t(new u,function(){return function(a){return jd(a.Od).qa()}}(a))).xb(t(new u,function(a,b){return function(a){a=jd(a.Od).c();return null===a?null===b:pa(a,b)}}(a,b)));return hd(a,new Ieb)}
function Qtb(a,b,c){var e=kd(ta(),b,"#",0);e=null!==e&&1<e.j.length?(new A).d(ld((new md).vc(e))):w();b=kd(ta(),b,"#",0);b=Wj((new md).vc(b));a=a.yf.xb(t(new u,function(){return function(a){return jd(a.Od).qa()}}(a))).xb(t(new u,function(a,b){return function(a){a=jd(a.Od).c();return null===a?null===b:pa(a,b)}}(a,b)));c=hd(a,Heb(e,c));return c.b()?w():c.c()}
function a1a(a,b){b=b.we();if(Aw(b)&&(b=b.eb.Ta((R(),Th(R(),"$schema"))),x(b))){b=b.i;var c=b.we();if(rs(c))return a=c.ya,-1!==(a.indexOf("http://json-schema.org/draft-01/schema")|0)?dJa():-1!==(a.indexOf("http://json-schema.org/draft-02/schema")|0)?dJa():-1!==(a.indexOf("http://json-schema.org/draft-03/schema")|0)?dJa():fJa();var c=rh().H6,e=w();Cc(a,c,"",e,"JSON Schema version value must be a string",b.ga);return fJa()}gJa||(gJa=(new fO).a());return gJa}
i9.prototype.xy=function(a,b,c,e,f,g){yp.prototype.co.call(this,a,b,c.Yh,(f.b()?c.Xi:f.c())|0,g.b()?c.tp():g);this.hh=ju().na;if(e.b()){a=w();b=(new A).d(this);e=this.Yh;f=pc(fc().db,G());g=pc(fc().db,G());var h=pc(fc().db,G()),k=pc(fc().db,G()),l=pc(fc().db,G()),p=pc(fc().db,G()),y=pc(fc().db,G()),I=pc(fc().db,G()),E=pc(fc().db,G()),V=pc(fc().db,G()),da=pc(fc().db,G()),sa=pc(fc().db,G()),ua=pc(fc().db,G()),Ia=pc(fc().db,G()),Pa=pc(fc().db,G()),Za=pc(fc().db,G());a=(new jw).TU(a,f,g,h,k,l,p,y,I,E,
V,da,sa,ua,Ia,Pa,b,e,Za)}else a=e.c();this.ad=a;this.rH=c&&c.$classData&&c.$classData.v.wB?c.rH:w();this.y1=c&&c.$classData&&c.$classData.v.wB?c.y1:w();this.up=c.up;this.Ru=c.Ru;return this};function Alb(a){a=kd(ta(),a,"#",0);return null!==a&&1<a.j.length?(new A).d(ld((new md).vc(a))):w()}i9.prototype.A_=function(a){if(-1!==(a.indexOf("#")|0)){a=kd(ta(),a,"#",0);var b=Wj((new md).vc(a))}else b=a;a=(new ph).e(b);b=b.lastIndexOf("/")|0;return B2(a,b).pa()+"/"};
function xO(a,b,c,e){var f=a.Km.dh.Ta(e);if(x(f))c.Bb.X(t(new u,function(a,b,c,e){return function(f){var g=f.Da,E=wN(),g=g.Gp(E).Mk();g.b()?g=w():(g=g.c(),g=(new A).d(g.ya));E=g.b()?f.Da.u():g.c();if(!a.Naa(b,E)&&!c.Ja(E)){var g=of().SI,E="Property '"+E+"' not supported in a "+a.Pg()+" "+b+" node",V=w();Cc(a,g,e,V,E,f.ga)}}}(a,e,f.i,b)));else if(w()===f){f=of().SI;e="Cannot validate unknown node type "+e+" for "+a.Pg();var g=w();Cc(a,f,b,g,e,c.ga)}else throw(new v).d(f);}
function svb(a){return re(ta(),a,"/")?(a=(new ph).e(a),Lca(a,1)):a}function qO(){nO.call(this);this.Pa=this.va=this.YT=this.Zf=this.kc=null}qO.prototype=new B1;qO.prototype.constructor=qO;d=qO.prototype;d.L=function(){return"InheritanceParser"};d.H=function(){return 3};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Uqa&&a.Pa===this.Pa){if(this.kc===a.kc)var b=this.Zf,c=a.Zf,b=null===b?null===c:b.h(c);else b=!1;if(b)return b=this.YT,a=a.YT,null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.kc;case 1:return this.Zf;case 2:return this.YT;default:throw(new X).e(""+a);}};function rJa(a,b,c,e,f,g){a.kc=c;a.Zf=e;a.YT=f;a.va=g;if(null===b)throw Lb(Mb(),null);a.Pa=b;nO.prototype.qs.call(a,g);return a}d.u=function(){return U(W(),this)};d.QN=function(){return this.Pa};
d.Pc=function(){var a=this.kc.i.pb().nb;if(O().Nc===a){var a=this.kc.i,b=Jc(),b=L(a,b,this.va),a=1<b.lb(),c=z(),b=b.cg(c.s),a=t(new u,function(a,b){return function(c){if(null!==c){var e=c.pa();c=c.si();c=b?""+a.Zf.k+c:a.Zf.k;var f=zc(),f=L(e,f,a.va).ya,g=Zla().cj(f);if(!g.b())return f=g.c(),g=a.Pa.Hq,e=(new A).d(e),e=Xy(g,0,e,!1,a.va).EP(f).c(),f=e.Ub(),e.Qb(c,f);if(Wca(f,!1))return e=Uca(f),g=Ke(M(),a.kc.Da),e=Ue(e,f,g),f=e.Ub(),e.Qb(c,f);c=cz(a.va.le(),f,Nr(),w());return x(c)?c.i:tvb(a,e,a.Zf)}throw(new v).d(c);
}}(this,a)),c=z(),a=b.ka(a,c.s),b=this.Zf;tf();c=this.Pa.Bd.ga;c=zf(0,Af(Bf(),c.vf,c.Ef,c.ag,c.fg));Rca(this,b,a,c);vj(this.Zf.ca(),Pg().ld,gr(new hr,a,Ke(M(),this.kc.i)),Ke(M(),this.kc))}else if(O().ua===a){if(a=RU(SU(),this.kc,t(new u,function(a){return function(b){return b.Qb(a.Zf.k,b.Ub())}}(this)),TU(!1,!1),tO(),this.va).wc(),!a.b()){a=a.c();b=this.Zf;c=H(z(),(new J).aa([a]));tf();var e=this.kc.ga,e=zf(0,Af(Bf(),e.vf,e.Ef,e.ag,e.fg));Rca(this,b,c,e);b=this.Zf;c=Pg().ld;e=z();a=gr(new hr,H(e,
(new J).aa([a])),Ke(M(),this.kc.i));e=Ke(M(),this.kc);Fh(b,c,a,e)}}else if(b=Zla(),c=this.kc.i,e=zc(),b.cj(L(c,e,this.va).ya).qa())a=RU(SU(),this.kc,t(new u,function(a){return function(b){return b.Qb(a.Zf.k,b.Ub())}}(this)),TU(!1,!1),tO(),this.va).wc(),a.b()||(a=a.c(),b=this.Zf,c=H(z(),(new J).aa([a])),tf(),e=this.kc.ga,e=zf(0,Af(Bf(),e.vf,e.Ef,e.ag,e.fg)),Rca(this,b,c,e),b=this.Zf,c=Pg().ld,e=z(),a=gr(new hr,H(e,(new J).aa([a])),Ke(M(),this.kc.i)),e=Ke(M(),this.kc),Fh(b,c,a,e));else if(O().Wa===
a?(a=Xla(),R(),b=this.kc.i,c=this.va,e=qe(),a=a.cj(L(b,e,c)).qa()):a=!1,a)a=(new W2).PK((R(),Th(R(),"schema")),this.kc.i,t(new u,function(a){return function(b){return Te(b,a.Zf.k+"/xmlSchema")}}(this)),!1,this.va),a=mO(a),b=this.Zf,c=H(z(),(new J).aa([a])),tf(),e=this.kc.ga,e=zf(0,Af(Bf(),e.vf,e.Ef,e.ag,e.fg)),Rca(this,b,c,e),b=this.Zf,c=Pg().ld,e=z(),a=gr(new hr,H(e,(new J).aa([a])),Ke(M(),this.kc.i)),e=Ke(M(),this.kc),Fh(b,c,a,e);else if(a=this.kc.i,b=zc(),a=L(a,b,this.va).ya,Wca(a,!1))a=this.Zf,
b=(new Xi).a(),ac(a,b);else if(a=this.kc.i,b=zc(),a=L(a,b,this.va).ya,b=cz(this.va.le(),a,Nr(),w()),x(b)){var f=b.i,b=this.Zf,c=H(z(),(new J).aa([f]));tf();e=this.kc.ga;e=zf(0,Af(Bf(),e.vf,e.Ef,e.ag,e.fg));Rca(this,b,c,e);var b=this.Zf.ca(),c=Pg().ld,e=z(),a=f.gk(a,Ke(M(),this.kc.i)),f=B(f.ca(),Pg().$).G,f=f.b()?"schema":f.c(),g=Ke(M(),this.kc.Da),a=Ue(a,f,g),f=(new Zx).a(),a=[ac(a,f)];vj(b,c,gr(new hr,H(e,(new J).aa(a)),Ke(M(),this.kc.i)),Ke(M(),this.kc))}else{Yla().cj(a).b()?c=tvb(this,this.kc.i,
this.Zf):(b=this.va,c=rh().cJ,e=this.Zf.k,f=(new A).d(Gc(Pg().ld.t)),iL(b,c,e,f,"Inheritance from JSON Schema",this.kc.i.ga),b=(new X2).PK((R(),Th(R(),"schema")),this.kc.i,t(new u,function(a){return function(b){return Te(b,a.Zf.k+"/jsonSchema")}}(this)),!1,this.va),c=mO(b));if(null===a)throw(new Rg).a();Sg(Tg(),"\x3c\x3c.*\x3e\x3e",a)||(a=this.Zf,b=Pg().ld,e=z(),c=gr(new hr,H(e,(new J).aa([c])),Ke(M(),this.kc.i)),e=Ke(M(),this.kc),Fh(a,b,c,e))}};d.y=function(){return Y(this)};
function tvb(a,b,c){var e=zc(),e=L(b,e,a.va).ya,f=(new Q).a(),g=Ke(M(),b),h=a.YT;h.b()?h=w():(h=h.c(),h=(new A).d(t(new u,function(a,b,c){return function(e){var f=new G2,g=a.va,h=a.Pa.PB;f.ra=b;f.W=c;f.m=g;f.mQ=h;f.BP=e;return f}}(a,c,h))));c=Vi(new Wi,f,g,e,h,(new A).d(t(new u,function(a,b){return function(a){var c=b.ca(),e=Db().kg;c.Pb.Ja(e)&&(c=Db().kg,Eb(b,c,a))}}(a,c))),!0);hc(c,a.va);if(dFa((new Cf).e(e)))f=!1;else{f=Pd(a.va.le().ai).ah.Tq();for(g=!1;!g&&f.Qa();)g=f.Sa(),h=kd(ta(),e,"\\.",0),
g=g===Wj((new md).vc(h));f=g}if(f){var f=a.va,g=rh().GR,h=c.k,e="Chained reference '"+e,k=w();Cc(f,g,h,k,e,b.ga)}else dz(c,e,b,a.va);a.Pa.Hq.R(c);return c}d.Jo=function(){return this.va};d.M=function(){return Z(this)};d.$classData=q({Uqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlTypeParser$InheritanceParser",{Uqa:1,KD:1,f:1,lv:1,$r:1,ig:1,nr:1,bra:1,A:1,w:1,q:1,n:1});
function j9(a){var b=ho(),c=C().Gb;a.kG(Rb(new Sb,b,D(new F,c,"xmlSerialization"),Tb(new Ub,Vb().Gb,"XML serialization","information about how to serialize",G())));Di();var b=C().Gb,b=(new J).aa([D(new F,b,"AnyShape")]),c=Di().s,b=Ei(b,c),c=Pg().ja,e=Di();a.lG(b.la(c,e.s))}
function uvb(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.$=this.Ew=this.Vc=this.fb=this.Aa=this.g=this.ja=this.oa=this.mf=this.Fc=this.df=this.bv=this.hv=this.eu=this.IF=this.gp=this.kj=this.Fw=null;this.ma=0}uvb.prototype=new r;uvb.prototype.constructor=uvb;d=uvb.prototype;d.pp=function(a){this.ef=a};d.qp=function(a){this.kg=a};
d.a=function(){vvb=this;Iq(this);cT(this);YK(this);Wb(this);mDa(this);Ji(this);Ob(this);var a=Pb(),b=C().bb,b=D(new F,b,"paramName"),c=Vb().bb,e=z(),f=C().dc;this.Fw=Rb(new Sb,a,b,Tb(new Ub,c,"param name","Name of a parameter",H(e,(new J).aa([Gc(D(new F,f,"name"))]))));a=Yc();b=C().bb;this.kj=Rb(new Sb,a,D(new F,b,"required"),Tb(new Ub,Vb().bb,"required","Marks the parameter as required",G()));a=Yc();b=C().Zd;this.gp=Rb(new Sb,a,D(new F,b,"deprecated"),Tb(new Ub,Vb().bb,"deprecated","Marks the parameter as deprecated",
G()));a=Yc();b=C().bb;this.IF=Rb(new Sb,a,D(new F,b,"allowEmptyValue"),Tb(new Ub,Vb().bb,"allow empty value","Parameter can be passed without value",G()));a=Pb();b=C().bb;this.eu=Rb(new Sb,a,D(new F,b,"style"),Tb(new Ub,Vb().bb,"style","Encoding style for the parameter information",G()));a=Yc();b=C().bb;this.hv=Rb(new Sb,a,D(new F,b,"explode"),Tb(new Ub,Vb().bb,"explode","",G()));a=Yc();b=C().bb;this.bv=Rb(new Sb,a,D(new F,b,"allowReserved"),Tb(new Ub,Vb().bb,"allow reserved","",G()));a=Pb();b=C().bb;
this.df=Rb(new Sb,a,D(new F,b,"binding"),Tb(new Ub,Vb().bb,"binding","Part of the Request model where the parameter can be encoded (header, path, query param, etc.)",G()));a=Pg();b=C().Gb;this.Fc=Rb(new Sb,a,D(new F,b,"schema"),Tb(new Ub,Vb().Gb,"schema","Schema the parameter value must validate",G()));a=(new Ki).Ld(vn());b=C().bb;this.mf=Rb(new Sb,a,D(new F,b,"payload"),Tb(new Ub,Vb().bb,"payload","",G()));this.oa=this.$;a=C().bb;a=D(new F,a,"Parameter");b=Lc().ja;this.ja=oz(new pz,a,b);Di();a=(new J).aa([this.$,
this.Fw,this.fb,this.kj,this.gp,this.IF,this.eu,this.hv,this.bv,this.df,this.Fc,this.mf,this.Vc]);b=Di().s;a=Ei(a,b);b=Db().g;c=Di();a=a.la(b,c.s);b=Lc().g;c=Di();this.g=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().bb,"Parameter","Piece of data required or returned by an Operation",G());return this};d.Ce=function(a){this.Hb=a};d.h_=function(a){this.Ew=a};d.Yc=function(){};d.op=function(a){this.Je=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.np=function(a){this.wd=a};
d.hy=function(a){this.Vc=a};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a();return(new JB).P((new Q).a(),a)};d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};d.$classData=q({R0a:0},!1,"amf.plugins.domain.webapi.metamodel.ParameterModel$",{R0a:1,f:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,yq:1,EY:1,Aw:1,ul:1});var vvb=void 0;function Ej(){vvb||(vvb=(new uvb).a());return vvb}function wvb(){}wvb.prototype=new r;wvb.prototype.constructor=wvb;function xvb(){}d=xvb.prototype=wvb.prototype;
d.Yn=function(a,b){JF(this,a,b)};d.tu=function(a){return yAa(this,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.md=function(a,b){return eA(this,a,b)};d.Ck=function(a){return qib(this,a)};d.ng=function(a){return this.Fk("",a,"")};d.Fk=function(a,b,c){return IG(this,a,b,c)};d.qq=function(a){return IC(new JC,this,a)};d.u=function(){return E6(this)};d.ae=function(a,b){return pd(this,a,b)};d.pc=function(){return Ps(this)};d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};
d.xb=function(a){return this.yaa(a,!1)};d.bj=function(){var a=a2().s;return Ei(this,a)};d.yaa=function(a,b){return F6(this,a,b)};d.lb=function(){return FI(this)};d.om=function(a){return rib(this,a)};d.lm=function(){return this.ng("")};d.Ph=function(a){return this.yaa(a,!0)};d.la=function(a,b){return vp(this,a,b)};d.Ol=function(){return-1};d.jn=function(a){return ska(this,a)};d.sa=function(){return Cw(this)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.Vo=function(){return this.Qf()};d.ce=function(){return this.kd()};
d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.rl=function(a,b){return this.ae(a,b)};d.Ji=function(){return this};d.jh=function(){return this.ce()};d.ko=function(){return!0};d.Ym=function(a){return H6(this,a)};d.$g=function(a){var b=Ry(new Sy,Xs());this.X(t(new u,function(a,b,f){return function(a){return f.Ic(a)}}(this,a,b)));return b.gb};d.ka=function(a,b){return De(this,a,b)};d.Ql=function(a){return II(this,a)};d.Fa=function(){return Tc(this)};d.Sj=function(a){return JI(this,a)};
d.$b=function(a,b){return Fr(this,a,b)};d.Ed=function(){return this.Lh().Ed()};d.Lk=function(){return I6(this)};function yvb(a,b){if(0>b)return 1;var c=0;for(a=a.kb();a.Qa();){if(c===b)return a.Qa()?1:0;a.Sa();c=1+c|0}return c-b|0}function k9(a){a=a.Ka();return(new ZQ).Zh(0,a,1)}function Ss(a,b,c){c=c.Vn(a.Ji());c.Cf(a.Hj());c.Ic(b);return c.lc()}
function nv(a,b){var c=a.Ka(),e=a.Ed();if(1===c)e.Cf(a);else if(1<c){e.Gh(c);var c=ia(La(Ja),[c]),f=(new iA).$d(0);a.X(t(new u,function(a,b,c){return function(a){b.j[c.ta]=a;c.ta=1+c.ta|0}}(a,c,f)));gya(gH(),c,b);for(f.ta=0;f.ta<c.j.length;)e.Ic(c.j[f.ta]),f.ta=1+f.ta|0}return e.lc()}function zvb(a,b,c){var e=0<c?c:0;for(a=a.kb().mE(c);a.Qa();){if(b.R(a.Sa()))return e;e=1+e|0}return-1}
function l9(a,b){b=Avb(a,b.Uo());var c=a.Ed();a.X(t(new u,function(a,b,c){return function(a){var e=b.R(a)|0;0<e&&(c.Ic(a),b.Rl(a,-1+e|0))}}(a,b,c)));return c.lc()}function Bpa(a){var b=G(),c=(new Qd).d(b);a.X(t(new u,function(a,b){return function(a){b.ta=oz(new pz,a,b.ta)}}(a,c)));b=a.Ed();ANa(b,a);for(a=c.ta;!a.b();)c=a.fa(),b.Ic(c),a=a.sa();return b.lc()}
function oM(a){var b=!!(a&&a.$classData&&a.$classData.v.dI);if(b&&0>=a.Ge(1))return a.Ji();for(var c=a.Ed(),e=(new qp).a(),f=a.kb(),g=!1;f.Qa();){var h=f.Sa();cBa(e,h)?c.Ic(h):g=!0}return g||!b?c.lc():a.Ji()}function Bvb(a,b,c){c=c.Vn(a.Ji());c.Ic(b);c.Cf(a.Hj());return c.lc()}function m9(a,b){b=Avb(a,b.Uo());var c=a.Ed();a.X(t(new u,function(a,b,c){return function(a){var e=b.R(a)|0;return 0===e?c.Ic(a):(b.Rl(a,-1+e|0),void 0)}}(a,b,c)));return c.lc()}
function Avb(a,b){var c=(new n9).RK(a);b.X(t(new u,function(a,b){return function(a){var c=1+(b.R(a)|0)|0;b.Oe(a,c)}}(a,c)));return c}function Vs(a,b){return a.Cd(t(new u,function(a,b){return function(a){return ub(vb(),a,b)}}(a,b)))}function o9(a,b,c){return a.Ej(vnb(c,b))}function Cvb(a,b,c){var e=0;for(a=a.kb().mE(c);a.Qa()&&b.R(a.Sa());)e=1+e|0;return e}function RLa(a,b){return a.fn(b)}function Dvb(a,b){var c=a.Ky(b);a=a.Jy(b);return(new P).N(c,a)}function Evb(a,b){return a.tL(b.td().Vo())}
function Fvb(a,b){var c=a.fn(b);a=a.fn(t(new u,function(a,b){return function(a){return!b.R(a)}}(a,b)));return(new P).N(c,a)}function p9(a){return""+a.Lk()+a.wM()+"(...)"}function Gvb(a,b){b=kk(a).Ym(b);return(new yu).IE(b,t(new u,function(a){return function(b){return a.uL(jb(function(a,b){return function(){return b}}(a,b)))}}(a)))}function q9(a,b){return a.fn(t(new u,function(a,b){return function(a){return!b.R(a)}}(a,b)))}
function Hvb(a,b){return a.rK(t(new u,function(a,b){return function(a){return b.Xa(a)}}(a,b))).VE(b)}function Ivb(a){throw(new Gt).e(Qwa(nG(),a,".newBuilder"));}function r9(a){return a.b()?a.FW():Jvb(a,1)}function nib(){this.Kk=OG()}nib.prototype=new r;nib.prototype.constructor=nib;d=nib.prototype;d.s1=function(){YJ();var a=this.Kk,b=a.Na;return b===a.Na&&b>>31===a.$a};d.Nv=function(){var a=this.Kk;return(new aq).La(a.Na,a.$a)};
d.eca=function(){YJ();var a=this.Kk,b=a.Na<<16>>16;return b===a.Na&&b>>31===a.$a};d.E_=function(){YJ();return this.Kk.Na<<24>>24};d.mU=function(a){this.Kk=a;return this};d.h=function(a){var b;YJ();b=this.Kk;if(a&&a.$classData&&a.$classData.v.nGa){a=a.Kk;var c=a.$a;b=b.Na===a.Na&&b.$a===c}else b=!1;return b};d.dca=function(){YJ();var a=this.Kk,b=65535&a.Na;return b===a.Na&&b>>31===a.$a};d.u=function(){return""+this.Kk};
d.Wn=function(a){var b=this.Kk,c=Ea((new aq).La(b.Na,b.$a)),b=c.Na,c=c.$a,e=Ea(a);a=e.Na;e=e.$a;return p_a(Fa(),b,c,a,e)};d.cca=function(){YJ();var a=this.Kk,b=a.Na<<24>>24;return b===a.Na&&b>>31===a.$a};d.Xn=function(a){var b=this.Kk,c=Ea((new aq).La(b.Na,b.$a)),b=c.Na,c=c.$a,e=Ea(a);a=e.Na;e=e.$a;return p_a(Fa(),b,c,a,e)};d.O2=function(){YJ();return this.Kk.Na<<16>>16};d.VB=function(){YJ();var a=this.Kk;return sC(Fa(),a.Na,a.$a)};d.y=function(){var a=this.Kk;return a.Na^a.$a};
d.xt=function(){YJ();return this.Kk.Na};d.tK=function(){YJ();var a=this.Kk;return ea(sC(Fa(),a.Na,a.$a))};d.$classData=q({nGa:0},!1,"scala.runtime.RichLong",{nGa:1,f:1,Fgb:1,Jgb:1,Igb:1,vEa:1,Qfb:1,t8a:1,Ggb:1,vx:1,sh:1,Hgb:1});function Qm(){Ql.call(this)}Qm.prototype=new Eib;Qm.prototype.constructor=Qm;d=Qm.prototype;d.a=function(){M();var a=(new N).a();Qm.prototype.mba.call(this,(new L3).P((new Q).a(),a));return this};d.L=function(){return"Extension"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Uha){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.mba=function(a){Ql.prototype.rU.call(this,a);return this};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Uha:0},!1,"amf.client.model.document.Extension",{Uha:1,V6:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,CD:1,A:1,w:1,q:1,n:1});function Sm(){Ql.call(this)}Sm.prototype=new Eib;Sm.prototype.constructor=Sm;d=Sm.prototype;d.a=function(){M();var a=(new N).a();Sm.prototype.nba.call(this,(new M3).P((new Q).a(),a));return this};d.L=function(){return"Overlay"};d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Yha){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.nba=function(a){Ql.prototype.rU.call(this,a);return this};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({Yha:0},!1,"amf.client.model.document.Overlay",{Yha:1,V6:1,f:1,hp:1,Id:1,xd:1,Fb:1,Yr:1,CD:1,A:1,w:1,q:1,n:1});function em(){this.na=this.p=null}em.prototype=new r;em.prototype.constructor=em;d=em.prototype;d.WQ=function(a){return Ccb(this,a)};d.vR=function(){return Bcb(this)};d.L=function(){return"PropertyShape"};d.a=function(){M();var a=(new N).a();em.prototype.Zaa.call(this,(new s7).P((new Q).a(),a));return this};d.Wt=function(){return zb(this)};d.jR=function(){return this.BT()};
d.qg=function(){return this.p};d.h4=function(a){var b=this.p,c=rj().$f;Eb(b,c,a);return this};d.lw=function(a){return Cb(this,a)};d.H=function(){return 1};d.Vt=function(){return Dcb(this)};d.nd=function(){return SS(this)};d.LQ=function(a){return wcb(this,a)};d.Eca=function(){Ab();var a=B(this.p.ea,rj().Uh);Ab().ww();return xK(a)};d.Ie=function(){return gcb(this)};d.BT=function(){Ab();var a=B(this.p.ea,rj().gp);Ab().sl();return tK(a)};d.pd=function(a){return US(this,a)};
d.cR=function(a){return qcb(this,a)};d.JQ=function(a){return pcb(this,a)};d.iw=function(){return w()};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Nia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.Fda=function(){Ab();var a=B(this.p.ea,rj().$f);Ab().wb();return Gb(a)};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.KQ=function(a){return xcb(this,a)};d.mR=function(){return mcb(this)};
d.u=function(){return U(W(),this)};d.uR=function(){return vcb(this)};d.VQ=function(a){return ucb(this,a)};d.MQ=function(a){return Ecb(this,a)};d.hR=function(){return Acb(this)};d.OQ=function(a){return Fcb(this,a)};d.ow=function(){return xb(this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.W4=function(){Ab();var a=B(this.p.ea,rj().If);return AS(Ab().wj(),a)};d.kR=function(){return ocb(this)};d.Tt=function(a){return jcb(this,a)};d.dR=function(){return Gcb(this)};d.Ao=function(){return Kvb(this)};
d.rd=function(){return PS(this)};d.ws=function(){return Kvb(this)};d.jw=function(a){return Hb(this,a)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};d.hi=function(a){return ycb(this,a)};d.fR=function(){return rcb(this)};d.gR=function(){return zcb(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Rh=function(){return ncb(this)};d.y=function(){return Y(this)};d.nR=function(){return this.Fda()};
d.a4=function(a){var b=this.p,c=rj().Uh;lr(b,c,a);return this};d.M=function(){return Z(this)};d.xe=function(a){return hcb(this,a)};function Kvb(a){Ab();a=a.p;M();var b=(new N).a(),b=(new s7).P((new Q).a(),b);a=Te(b,a.k);return A_a(Ab().FB(),a)}d.RQ=function(a){return lcb(this,a)};d.lR=function(){return icb(this)};d.Zaa=function(a){this.p=a;this.na=ju().na;return this};d.bR=function(a){return Hcb(this,a)};d.NQ=function(a){return tcb(this,a)};d.pw=function(){return Fb(this)};d.iR=function(){return kcb(this)};
d.PQ=function(a){var b=this.p,c=rj().gp;dj(b,c,a);return this};d.mw=function(a){return Ib(this,a)};em.prototype.annotations=function(){return this.bc()};em.prototype.graph=function(){return this.nd()};em.prototype.withId=function(a){return this.qd(a)};em.prototype.withExtendsNode=function(a){return this.pd(a)};em.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(em.prototype,"position",{get:function(){return this.fd()},configurable:!0});
Object.defineProperty(em.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(em.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(em.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});em.prototype.link=function(){for(var a=arguments.length|0,b=0,c=[];b<a;)c.push(arguments[b]),b=b+1|0;a=void 0===c[0]?this.iw():c[0];return this.jw(a)};em.prototype.withLinkLabel=function(a){return this.lw(a)};
em.prototype.withLinkTarget=function(a){return this.mw(a)};Object.defineProperty(em.prototype,"linkLabel",{get:function(){return this.pw()},configurable:!0});Object.defineProperty(em.prototype,"isLink",{get:function(){return this.ow()},configurable:!0});Object.defineProperty(em.prototype,"linkTarget",{get:function(){return this.Wt()},configurable:!0});em.prototype.withCustomShapePropertyDefinition=function(a){return this.LQ(a)};em.prototype.withCustomShapePropertyDefinitions=function(a){return this.MQ(a)};
em.prototype.withCustomShapeProperties=function(a){return this.KQ(a)};em.prototype.withDefaultStr=function(a){return this.NQ(a)};em.prototype.withNode=function(a){return this.VQ(a)};em.prototype.withXone=function(a){return this.cR(a)};em.prototype.withAnd=function(a){return this.JQ(a)};em.prototype.withOr=function(a){return this.WQ(a)};em.prototype.withInherits=function(a){return this.RQ(a)};em.prototype.withValues=function(a){return this.bR(a)};em.prototype.withDefaultValue=function(a){return this.OQ(a)};
em.prototype.withDescription=function(a){return this.hi(a)};em.prototype.withDisplayName=function(a){return this.Tt(a)};em.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(em.prototype,"not",{get:function(){return this.lR()},configurable:!0});Object.defineProperty(em.prototype,"xone",{get:function(){return this.vR()},configurable:!0});Object.defineProperty(em.prototype,"and",{get:function(){return this.dR()},configurable:!0});
Object.defineProperty(em.prototype,"or",{get:function(){return this.mR()},configurable:!0});Object.defineProperty(em.prototype,"customShapePropertyDefinitions",{get:function(){return this.gR()},configurable:!0});Object.defineProperty(em.prototype,"customShapeProperties",{get:function(){return this.fR()},configurable:!0});Object.defineProperty(em.prototype,"inherits",{get:function(){return this.kR()},configurable:!0});Object.defineProperty(em.prototype,"values",{get:function(){return this.uR()},configurable:!0});
Object.defineProperty(em.prototype,"defaultValueStr",{get:function(){return this.hR()},configurable:!0});Object.defineProperty(em.prototype,"defaultValue",{get:function(){return this.iR()},configurable:!0});Object.defineProperty(em.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty(em.prototype,"displayName",{get:function(){return this.Vt()},configurable:!0});Object.defineProperty(em.prototype,"name",{get:function(){return this.Ie()},configurable:!0});
em.prototype.linkCopy=function(){return this.Ao()};em.prototype.withPatternName=function(a){var b=this.p,c=rj().rv;Eb(b,c,a);return this};em.prototype.withDeprecated=function(a){return this.PQ(!!a)};em.prototype.withWriteOnly=function(a){a=!!a;var b=this.p,c=rj().WZ;dj(b,c,a);return this};em.prototype.withReadOnly=function(a){a=!!a;var b=this.p,c=rj().MD;dj(b,c,a);return this};em.prototype.withMaxCount=function(a){a|=0;var b=this.p,c=rj().YF;lr(b,c,a);return this};
em.prototype.withMinCount=function(a){return this.a4(a|0)};em.prototype.withRange=function(a){var b=this.p;a=a.qg();var c=rj().If;ff(b,c,a);return this};em.prototype.withPath=function(a){return this.h4(a)};Object.defineProperty(em.prototype,"patternName",{get:function(){Ab();var a=B(this.p.ea,rj().rv);Ab().wb();return Gb(a)},configurable:!0});Object.defineProperty(em.prototype,"deprecated",{get:function(){return this.jR()},configurable:!0});
Object.defineProperty(em.prototype,"writeOnly",{get:function(){Ab();var a=B(this.p.ea,rj().WZ);Ab().sl();return tK(a)},configurable:!0});Object.defineProperty(em.prototype,"readOnly",{get:function(){Ab();var a=B(this.p.ea,rj().MD);Ab().sl();return tK(a)},configurable:!0});Object.defineProperty(em.prototype,"maxCount",{get:function(){Ab();var a=B(this.p.ea,rj().YF);Ab().ww();return xK(a)},configurable:!0});Object.defineProperty(em.prototype,"minCount",{get:function(){return this.Eca()},configurable:!0});
Object.defineProperty(em.prototype,"range",{get:function(){return this.W4()},configurable:!0});Object.defineProperty(em.prototype,"path",{get:function(){return this.nR()},configurable:!0});em.prototype.$classData=q({Nia:0},!1,"amf.client.model.domain.PropertyShape",{Nia:1,f:1,yz:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1,A:1,w:1,q:1,n:1});function oo(){this.na=this.p=null}oo.prototype=new r;oo.prototype.constructor=oo;d=oo.prototype;d.WQ=function(a){return Ccb(this,a)};d.vR=function(){return Bcb(this)};
d.L=function(){return"RecursiveShape"};d.Wt=function(){return zb(this)};d.qg=function(){return this.p};d.lw=function(a){return Cb(this,a)};d.H=function(){return 1};d.Vt=function(){return Dcb(this)};d.nd=function(){return SS(this)};d.LQ=function(a){return wcb(this,a)};d.Ie=function(){return gcb(this)};d.pd=function(a){return US(this,a)};d.cR=function(a){return qcb(this,a)};d.JQ=function(a){return pcb(this,a)};d.iw=function(){return w()};d.Jd=function(){return this.p};
d.h=function(a){return this===a?!0:a&&a.$classData&&a.$classData.v.Pia?this.p===a.p:!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.KQ=function(a){return xcb(this,a)};d.mR=function(){return mcb(this)};d.sAa=function(a){this.p=a;this.na=ju().na;return this};d.u=function(){return U(W(),this)};d.uR=function(){return vcb(this)};d.VQ=function(a){return ucb(this,a)};d.MQ=function(a){return Ecb(this,a)};d.hR=function(){return Acb(this)};
d.OQ=function(a){return Fcb(this,a)};d.ow=function(){return xb(this)};d.fd=function(){return QS(this)};d.qd=function(a){return RS(this,a)};d.kR=function(){return ocb(this)};d.Tt=function(a){return jcb(this,a)};d.dR=function(){return Gcb(this)};d.Ao=function(){return this.ws()};d.rd=function(){return PS(this)};d.ws=function(){throw Lb(Mb(),(new Nb).e("Recursive shape cannot be linked"));};d.jw=function(a){return Hb(this,a)};d.sd=function(){return OS(this)};d.bc=function(){return Eo(this)};
d.hi=function(a){return ycb(this,a)};d.fR=function(){return rcb(this)};d.gR=function(){return zcb(this)};d.od=function(a){return WS(this,a)};d.hc=function(){return this.p.k};d.Fd=function(){return this.p};d.Rh=function(){return ncb(this)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.xe=function(a){return hcb(this,a)};d.RQ=function(a){return lcb(this,a)};d.lR=function(){return icb(this)};d.bR=function(a){return Hcb(this,a)};d.NQ=function(a){return tcb(this,a)};d.pw=function(){return Fb(this)};
d.iR=function(){return kcb(this)};d.mw=function(a){return Ib(this,a)};oo.prototype.annotations=function(){return this.bc()};oo.prototype.graph=function(){return this.nd()};oo.prototype.withId=function(a){return this.qd(a)};oo.prototype.withExtendsNode=function(a){return this.pd(a)};oo.prototype.withCustomDomainProperties=function(a){return this.od(a)};Object.defineProperty(oo.prototype,"position",{get:function(){return this.fd()},configurable:!0});
Object.defineProperty(oo.prototype,"id",{get:function(){return this.hc()},configurable:!0});Object.defineProperty(oo.prototype,"extendsNode",{get:function(){return this.sd()},configurable:!0});Object.defineProperty(oo.prototype,"customDomainProperties",{get:function(){return this.rd()},configurable:!0});oo.prototype.link=function(){for(var a=arguments.length|0,b=0,c=[];b<a;)c.push(arguments[b]),b=b+1|0;a=void 0===c[0]?this.iw():c[0];return this.jw(a)};oo.prototype.withLinkLabel=function(a){return this.lw(a)};
oo.prototype.withLinkTarget=function(a){return this.mw(a)};Object.defineProperty(oo.prototype,"linkLabel",{get:function(){return this.pw()},configurable:!0});Object.defineProperty(oo.prototype,"isLink",{get:function(){return this.ow()},configurable:!0});Object.defineProperty(oo.prototype,"linkTarget",{get:function(){return this.Wt()},configurable:!0});oo.prototype.withCustomShapePropertyDefinition=function(a){return this.LQ(a)};oo.prototype.withCustomShapePropertyDefinitions=function(a){return this.MQ(a)};
oo.prototype.withCustomShapeProperties=function(a){return this.KQ(a)};oo.prototype.withDefaultStr=function(a){return this.NQ(a)};oo.prototype.withNode=function(a){return this.VQ(a)};oo.prototype.withXone=function(a){return this.cR(a)};oo.prototype.withAnd=function(a){return this.JQ(a)};oo.prototype.withOr=function(a){return this.WQ(a)};oo.prototype.withInherits=function(a){return this.RQ(a)};oo.prototype.withValues=function(a){return this.bR(a)};oo.prototype.withDefaultValue=function(a){return this.OQ(a)};
oo.prototype.withDescription=function(a){return this.hi(a)};oo.prototype.withDisplayName=function(a){return this.Tt(a)};oo.prototype.withName=function(a){return this.xe(a)};Object.defineProperty(oo.prototype,"not",{get:function(){return this.lR()},configurable:!0});Object.defineProperty(oo.prototype,"xone",{get:function(){return this.vR()},configurable:!0});Object.defineProperty(oo.prototype,"and",{get:function(){return this.dR()},configurable:!0});
Object.defineProperty(oo.prototype,"or",{get:function(){return this.mR()},configurable:!0});Object.defineProperty(oo.prototype,"customShapePropertyDefinitions",{get:function(){return this.gR()},configurable:!0});Object.defineProperty(oo.prototype,"customShapeProperties",{get:function(){return this.fR()},configurable:!0});Object.defineProperty(oo.prototype,"inherits",{get:function(){return this.kR()},configurable:!0});Object.defineProperty(oo.prototype,"values",{get:function(){return this.uR()},configurable:!0});
Object.defineProperty(oo.prototype,"defaultValueStr",{get:function(){return this.hR()},configurable:!0});Object.defineProperty(oo.prototype,"defaultValue",{get:function(){return this.iR()},configurable:!0});Object.defineProperty(oo.prototype,"description",{get:function(){return this.Rh()},configurable:!0});Object.defineProperty(oo.prototype,"displayName",{get:function(){return this.Vt()},configurable:!0});Object.defineProperty(oo.prototype,"name",{get:function(){return this.Ie()},configurable:!0});
oo.prototype.linkCopy=function(){return this.Ao()};oo.prototype.withFixPoint=function(a){var b=this.p,c=ej().it;Eb(b,c,a);return this};Object.defineProperty(oo.prototype,"fixpoint",{get:function(){Ab();var a=B(this.p.ea,ej().it);Ab().wb();return Gb(a)},configurable:!0});oo.prototype.$classData=q({Pia:0},!1,"amf.client.model.domain.RecursiveShape",{Pia:1,f:1,yz:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1,A:1,w:1,q:1,n:1});function Pn(){$6.call(this)}Pn.prototype=new Fib;Pn.prototype.constructor=Pn;d=Pn.prototype;
d.L=function(){return"ResourceType"};d.a=function(){M();var a=(new N).a(),b=(new Q).a();Pn.prototype.c1.call(this,(new QB).P(b,a));return this};d.Wt=function(){return this.pV()};d.H=function(){return 1};d.c1=function(a){$6.prototype.aba.call(this,a);return this};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Ria){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.Jd=function(){return this.p};
d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.pV=function(){var a=S(),b=yb(this.p),c=S().et();return Bb(a,b,c).sb()};d.Ao=function(){return Lvb(this)};d.ws=function(){return Lvb(this)};function Lvb(a){S();a=a.p;M();var b=(new N).a(),c=(new Q).a(),b=(new QB).P(c,b);a=Te(b,a.k);S();null===S().g9&&null===S().g9&&(S().g9=new t_);S();return(new Pn).c1(a)}d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.D1=function(){return Lvb(this)};Pn.prototype.asEndpoint=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;b=void 0===e[0]?Ek():e[0];S();b=enb(this.p,a.p,b,(this.p,gb()));return v_a(c9(),b)};Pn.prototype.$classData=q({Ria:0},!1,"amf.client.model.domain.ResourceType",{Ria:1,W6:1,f:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1,A:1,w:1,q:1,n:1});function Nn(){$6.call(this)}Nn.prototype=new Fib;Nn.prototype.constructor=Nn;d=Nn.prototype;d.L=function(){return"Trait"};
d.a=function(){M();var a=(new N).a(),b=(new Q).a();Nn.prototype.d1.call(this,(new UB).P(b,a));return this};d.Wt=function(){return this.pV()};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.$ia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.Jd=function(){return this.p};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};
function Mvb(a){S();a=a.p;M();var b=(new N).a(),c=(new Q).a(),b=(new UB).P(c,b);a=Te(b,a.k);S();null===S().p9&&null===S().p9&&(S().p9=new Q_);S();return(new Nn).d1(a)}d.u=function(){return U(W(),this)};d.pV=function(){var a=S(),b=yb(this.p),c=S().et();return Bb(a,b,c).sb()};d.d1=function(a){$6.prototype.aba.call(this,a);return this};d.Ao=function(){return Mvb(this)};d.ws=function(){return Mvb(this)};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.D1=function(){return Mvb(this)};Nn.prototype.asOperation=function(a){for(var b=arguments.length|0,c=1,e=[];c<b;)e.push(arguments[c]),c=c+1|0;b=void 0===e[0]?Ek():e[0];return(new an).FU(gnb(this.p,a.p,b))};Nn.prototype.$classData=q({$ia:0},!1,"amf.client.model.domain.Trait",{$ia:1,W6:1,f:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1,A:1,w:1,q:1,n:1});function Ig(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}Ig.prototype=new r;Ig.prototype.constructor=Ig;function Nvb(){}d=Nvb.prototype=Ig.prototype;d.L=function(){return"Document"};
d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:Ol(a)?this.ca()===a.ca()?this.ha()===a.ha():!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.ca();case 1:return this.ha();default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Nl()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};
d.Pe=function(){return Xp(this.ca(),Nl().qc)};d.Yb=function(){return jd(this)};d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ak=function(){return Xp(this.ca(),Nl().Mc)};d.ca=function(){return this.g};d.ze=function(){return Xp(this.ca(),Nl().ob)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function Ol(a){return!!(a&&a.$classData&&a.$classData.v.IY)}
d.$classData=q({IY:0},!1,"amf.core.model.document.Document",{IY:1,f:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,mr:1,uB:1,A:1,w:1,q:1,n:1});function zp(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}zp.prototype=new r;zp.prototype.constructor=zp;d=zp.prototype;d.L=function(){return"ExternalFragment"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:Ul(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};
d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Wea()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return Xp(this.g,Nl().qc)};d.Yb=function(){return jd(this)};d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ca=function(){return this.g};d.ze=function(){return Xp(this.g,Rl().ob)};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function Ul(a){return!!(a&&a.$classData&&a.$classData.v.hka)}d.$classData=q({hka:0},!1,"amf.core.model.document.ExternalFragment",{hka:1,f:1,vB:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,mr:1,A:1,w:1,q:1,n:1});function dA(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}dA.prototype=new r;dA.prototype.constructor=dA;d=dA.prototype;d.L=function(){return"PayloadFragment"};
d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:ffa(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Dm()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};
d.Pe=function(){return Xp(this.g,Nl().qc)};d.Yb=function(){return jd(this)};d.Lm=function(a,b,c){return J0(this,a,b,c)};function Ypa(a,b){var c=Dm().Md;Eb(a,c,b);return a}d.ca=function(){return this.g};d.ze=function(){return Xp(this.g,Dm().ob)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function ffa(a){return!!(a&&a.$classData&&a.$classData.v.jka)}
d.$classData=q({jka:0},!1,"amf.core.model.document.PayloadFragment",{jka:1,f:1,vB:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,mr:1,A:1,w:1,q:1,n:1});function gdb(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}gdb.prototype=new r;gdb.prototype.constructor=gdb;d=gdb.prototype;d.L=function(){return"RecursiveUnit"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:e1(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};
d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Rl()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return Xp(this.g,Nl().qc)};d.Yb=function(){return jd(this)};d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ca=function(){return this.g};d.ze=function(){return Xp(this.g,Rl().ob)};d.y=function(){return Y(this)};
d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function e1(a){return!!(a&&a.$classData&&a.$classData.v.kka)}d.$classData=q({kka:0},!1,"amf.core.model.document.RecursiveUnit",{kka:1,f:1,vB:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,mr:1,A:1,w:1,q:1,n:1});function s7(){Qg.call(this);this.ab=this.ea=null}s7.prototype=new $ib;s7.prototype.constructor=s7;d=s7.prototype;d.L=function(){return"PropertyShape"};
d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a,b){return N8a(this,a,b)};d.h=function(a){return this===a?!0:dm(a)?this.ea===a.ea?this.ab===a.ab:!1:!1};d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;default:throw(new X).e(""+a);}};function N8a(a,b,c){cj(a,b);if(Wa().Ia(B(a.ea,rj().If)).qa()){b=B(a.ea,rj().If);var e=a.k,f=a.k,g=z();b.Qb(e,c.hg(f,g.s))}return a}d.El=function(){M();var a=(new N).a(),a=(new s7).P((new Q).a(),a);return Te(a,this.k)};
d.rc=function(){return rj()};d.u=function(){return U(W(),this)};d.ha=function(){return this.ab};d.Nd=function(){var a=B(this.ea,Pg().$).G,a=a.b()?"default-property":a.c(),a=(new Cf).e(a);return"/property/"+Gj(a.zd)};d.aO=function(a,b,c){return FLa(this,a,b,c)};d.Qk=function(){return qd(function(){return function(a,b){return(new s7).P(a,b)}}(this))};d.ca=function(){return this.ea};d.y=function(){return Y(this)};
function FLa(a,b,c,e){var f=zj(M(),a.ab),f=(new s7).P((new Q).a(),f);f.k=a.k;nda(a,b,f,c,e);return f}d.M=function(){return Z(this)};d.P=function(a,b){this.ea=a;this.ab=b;Qg.prototype.a.call(this);return this};function dm(a){return!!(a&&a.$classData&&a.$classData.v.xka)}d.$classData=q({xka:0},!1,"amf.core.model.domain.extensions.PropertyShape",{xka:1,zw:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,$x:1,A:1,w:1,q:1,n:1});function oN(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}oN.prototype=new r;
oN.prototype.constructor=oN;d=oN.prototype;d.L=function(){return"DialectFragment"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:VA(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Kqa()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};
d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return B(this.g,ed().qc)};d.Yb=function(){return jd(this)};d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ca=function(){return this.g};d.ze=function(){return B(this.g,ed().ob)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function VA(a){return!!(a&&a.$classData&&a.$classData.v.ima)}
d.$classData=q({ima:0},!1,"amf.plugins.document.vocabularies.model.document.DialectFragment",{ima:1,f:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,mr:1,fJ:1,A:1,w:1,q:1,n:1});function VM(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}VM.prototype=new r;VM.prototype.constructor=VM;d=VM.prototype;d.L=function(){return"Vocabulary"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:vd(a)?this.g===a.g?this.E===a.E:!1:!1};
d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return wd()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return B(this.g,wd().qc)};d.Yb=function(){return jd(this)};d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ak=function(){return B(this.g,wd().Mc)};d.ca=function(){return this.g};
d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function vd(a){return!!(a&&a.$classData&&a.$classData.v.oma)}d.$classData=q({oma:0},!1,"amf.plugins.document.vocabularies.model.document.Vocabulary",{oma:1,f:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,uB:1,fJ:1,A:1,w:1,q:1,n:1});function s9(){i9.call(this);this.Mh=this.bDa=this.yQ=null;this.tCa=!1}s9.prototype=new rvb;s9.prototype.constructor=s9;
function Ovb(){}d=Ovb.prototype=s9.prototype;d.Naa=function(a,b){return 0<=(b.length|0)&&"x-"===b.substring(0,2)||"$ref"===b||0<=(b.length|0)&&"/"===b.substring(0,1)&&("webApi"===a||"paths"===a)};d.qV=function(){return this.tCa};
d.Oo=function(a){var b=Pc(),b=sv(a,b);if(Hp(b)){b=yc((new K).Y(b.i),"$ref");if(b.b())b=w();else var b=b.c().i,c=wN(),b=b.Gp(c).Mk();b.b()?b=w():(b=b.c(),b=(new A).d(b.ya));if(x(b))return a=b.i,Zf(),(new $f).d(a);if(w()===b)return Zf(),(new ag).d(a);throw(new v).d(b);}Zf();return(new ag).d(a)};
d.Mba=function(a,b,c,e,f,g,h){this.yQ=c;this.bDa=h;i9.prototype.xy.call(this,a,b,c,e,f,g);e.b()?(a=this.yf,b=t(new u,function(){return function(a){if(Ul(a.Od)){var b=Xp(a.Od.g,Rl().ob).Gg;b.b()?a=w():(b=b.c(),a=(new A).d((new P).N(a.oo.Bf,b)));return a.wa()}return w().wa()}}(this)),e=z(),a=Boa(new ry,a.md(b,e.s).$g(fc().ci),w(),(new A).d(this),this.Yh)):a=e.c();this.Mh=a;this.tCa=!(c&&c.$classData&&c.$classData.v.hJ);return this};d.yl=function(){return this.Mh};
function c4(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}c4.prototype=new r;c4.prototype.constructor=c4;d=c4.prototype;d.L=function(){return"AnnotationTypeDeclarationFragment"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:wm(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};
d.Uc=function(a){return Te(this,a)};d.rc=function(){return dfa()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return Xp(this.g,Nl().qc)};d.Yb=function(){return jd(this)};d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ca=function(){return this.g};d.ze=function(){return Xp(this.g,Rl().ob)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};
d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function wm(a){return!!(a&&a.$classData&&a.$classData.v.kna)}d.$classData=q({kna:0},!1,"amf.plugins.document.webapi.model.AnnotationTypeDeclarationFragment",{kna:1,f:1,vB:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,mr:1,A:1,w:1,q:1,n:1});function dQ(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}dQ.prototype=new r;dQ.prototype.constructor=dQ;d=dQ.prototype;d.L=function(){return"DataTypeFragment"};d.Ub=function(){return H(z(),G())};
d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:ym(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return efa()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return Xp(this.g,Nl().qc)};d.Yb=function(){return jd(this)};
d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ca=function(){return this.g};d.ze=function(){return Xp(this.g,Rl().ob)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function ym(a){return!!(a&&a.$classData&&a.$classData.v.lna)}d.$classData=q({lna:0},!1,"amf.plugins.document.webapi.model.DataTypeFragment",{lna:1,f:1,vB:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,mr:1,A:1,w:1,q:1,n:1});
function d4(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}d4.prototype=new r;d4.prototype.constructor=d4;d=d4.prototype;d.L=function(){return"DocumentationItemFragment"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:Fm(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};
d.Uc=function(a){return Te(this,a)};d.rc=function(){return gfa()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return Xp(this.g,Nl().qc)};d.Yb=function(){return jd(this)};d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ca=function(){return this.g};d.ze=function(){return Xp(this.g,Rl().ob)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};
d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function Fm(a){return!!(a&&a.$classData&&a.$classData.v.mna)}d.$classData=q({mna:0},!1,"amf.plugins.document.webapi.model.DocumentationItemFragment",{mna:1,f:1,vB:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,mr:1,A:1,w:1,q:1,n:1});function e4(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}e4.prototype=new r;e4.prototype.constructor=e4;d=e4.prototype;d.L=function(){return"NamedExampleFragment"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};
d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:Hm(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return hfa()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return Xp(this.g,Nl().qc)};d.Yb=function(){return jd(this)};
d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ca=function(){return this.g};d.ze=function(){return Xp(this.g,Rl().ob)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function Hm(a){return!!(a&&a.$classData&&a.$classData.v.ona)}d.$classData=q({ona:0},!1,"amf.plugins.document.webapi.model.NamedExampleFragment",{ona:1,f:1,vB:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,mr:1,A:1,w:1,q:1,n:1});
function f4(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}f4.prototype=new r;f4.prototype.constructor=f4;d=f4.prototype;d.L=function(){return"ResourceTypeFragment"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:Jm(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};
d.Uc=function(a){return Te(this,a)};d.rc=function(){return ifa()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return Xp(this.g,Nl().qc)};d.Yb=function(){return jd(this)};d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ca=function(){return this.g};d.ze=function(){return Xp(this.g,Rl().ob)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};
d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function Jm(a){return!!(a&&a.$classData&&a.$classData.v.qna)}d.$classData=q({qna:0},!1,"amf.plugins.document.webapi.model.ResourceTypeFragment",{qna:1,f:1,vB:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,mr:1,A:1,w:1,q:1,n:1});function g4(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}g4.prototype=new r;g4.prototype.constructor=g4;d=g4.prototype;d.L=function(){return"SecuritySchemeFragment"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};
d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:Lm(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return jfa()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return Xp(this.g,Nl().qc)};d.Yb=function(){return jd(this)};
d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ca=function(){return this.g};d.ze=function(){return Xp(this.g,Rl().ob)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function Lm(a){return!!(a&&a.$classData&&a.$classData.v.rna)}d.$classData=q({rna:0},!1,"amf.plugins.document.webapi.model.SecuritySchemeFragment",{rna:1,f:1,vB:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,mr:1,A:1,w:1,q:1,n:1});
function h4(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}h4.prototype=new r;h4.prototype.constructor=h4;d=h4.prototype;d.L=function(){return"TraitFragment"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:Nm(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};
d.rc=function(){return kfa()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return Xp(this.g,Nl().qc)};d.Yb=function(){return jd(this)};d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ca=function(){return this.g};d.ze=function(){return Xp(this.g,Rl().ob)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};
function Nm(a){return!!(a&&a.$classData&&a.$classData.v.sna)}d.$classData=q({sna:0},!1,"amf.plugins.document.webapi.model.TraitFragment",{sna:1,f:1,vB:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,mr:1,A:1,w:1,q:1,n:1});function B9a(){S3.call(this);this.zs=null}B9a.prototype=new fvb;B9a.prototype.constructor=B9a;d=B9a.prototype;d.xH=function(){return this.zs};d.Uc=function(a){return XU(this,a)};d.jG=function(a){return Te(this,a)};
d.Rq=function(a,b){S3.prototype.P.call(this,(new Q).a(),Ke(M(),b));this.zs="http://amferror.com/#errorCallback/";XU(this,a);return this};d.$classData=q({sVa:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$ErrorCallback",{sVa:1,j8:1,f:1,Jh:1,de:1,Wc:1,Rc:1,Pi:1,A:1,w:1,q:1,n:1,VF:1});function bC(){aC.call(this);this.zs=this.me=this.Hn=null}bC.prototype=new phb;bC.prototype.constructor=bC;d=bC.prototype;d.L=function(){return"ErrorEndPoint"};d.xH=function(){return this.zs};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.una&&this.Hn===a.Hn){var b=this.me;a=a.me;return null===b?null===a:b.h(a)}return!1};d.Uc=function(a){return XU(this,a)};d.K=function(a){switch(a){case 0:return this.Hn;case 1:return this.me;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.jG=function(a){return Te(this,a)};
d.Rq=function(a,b){this.Hn=a;this.me=b;aC.prototype.P.call(this,(new Q).a(),Ke(M(),b));this.zs="http://amferror.com/#errorEndPoint/";XU(this,a);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({una:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$ErrorEndPoint",{una:1,l8:1,f:1,Jh:1,de:1,Wc:1,Rc:1,dwa:1,VF:1,A:1,w:1,q:1,n:1});function Jfb(){JB.call(this);this.zs=this.me=this.Hn=null}Jfb.prototype=new thb;Jfb.prototype.constructor=Jfb;d=Jfb.prototype;
d.L=function(){return"ErrorParameter"};d.xH=function(){return this.zs};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.wna&&this.Hn===a.Hn){var b=this.me;a=a.me;return null===b?null===a:b.h(a)}return!1};d.Uc=function(a){return XU(this,a)};d.K=function(a){switch(a){case 0:return this.Hn;case 1:return this.me;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.jG=function(a){return Te(this,a)};
d.Rq=function(a,b){this.Hn=a;this.me=b;JB.prototype.P.call(this,(new Q).a(),Ke(M(),b));this.zs="http://amferror.com/#errorParameter/";XU(this,a);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({wna:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$ErrorParameter",{wna:1,p8:1,f:1,Jh:1,de:1,Wc:1,Rc:1,Pi:1,VF:1,A:1,w:1,q:1,n:1});function XN(){LB.call(this);this.zs=this.me=this.Hn=null}XN.prototype=new uhb;XN.prototype.constructor=XN;d=XN.prototype;
d.L=function(){return"ErrorResponse"};d.xH=function(){return this.zs};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.yna&&this.Hn===a.Hn){var b=this.me;a=a.me;return null===b?null===a:b.h(a)}return!1};d.Uc=function(a){return XU(this,a)};d.K=function(a){switch(a){case 0:return this.Hn;case 1:return this.me;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.jG=function(a){return Te(this,a)};
d.Rq=function(a,b){this.Hn=a;this.me=b;LB.prototype.P.call(this,(new Q).a(),Ke(M(),b));this.zs="http://amferror.com/#errorResponse/";a=XU(this,a);b=Bn().vn;Eb(a,b,"200");return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({yna:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$ErrorResponse",{yna:1,q8:1,f:1,Jh:1,de:1,Wc:1,Rc:1,Pi:1,VF:1,A:1,w:1,q:1,n:1});
function X2(){nO.call(this);this.Df=this.i=this.Da=null;this.Py=!1;this.PD=this.XT=this.va=null}X2.prototype=new B1;X2.prototype.constructor=X2;d=X2.prototype;d.L=function(){return"RamlJsonSchemaExpression"};d.H=function(){return 4};
function P7a(a,b,c){if(mG(c)){var e=c.hda.nb,f=O().vq;if(e===f){e=c.TV.ya;e=kd(ta(),e,"#",0);e=Wj((new md).vc(e));e=b.yf.Ib(t(new u,function(a,b){return function(a){a=jd(a.Od);if(a.b())return!1;a=a.c();return re(ta(),a,b)}}(a,e)));if(x(e))return f=e.i,Jx(),c=jd(f.Od).c(),e=f.Od.Pe(),a=t(new u,function(a,b){return function(a){return Jp(new Kp,a,(new f1).Di(jd(b.Od).c(),G()),w())}}(a,f)),f=z(),Coa(c,e.ka(a,f.s),b);a=Wa();e=c.we();if(a.Ia(e.ga.Of).qa())return Jx(),a=c.we(),Coa(a.ga.Of,b.yf,b)}}return zoa(Jx(),
b)}d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.lqa){if(Yj(this.Da,a.Da)&&Yj(this.i,a.i))var b=this.Df,c=a.Df,b=null===b?null===c:b.h(c);else b=!1;return b?this.Py===a.Py:!1}return!1};d.PK=function(a,b,c,e,f){this.Da=a;this.i=b;this.Df=c;this.Py=e;this.va=f;nO.prototype.qs.call(this,f);this.XT="JSON";return this};d.K=function(a){switch(a){case 0:return this.Da;case 1:return this.i;case 2:return this.Df;case 3:return this.Py;default:throw(new X).e(""+a);}};
function Pvb(a,b,c,e,f,g,h){var k=a.va.le().Ti;h.b()?k=w():(h=h.c(),k=k.Ta(h));k=k.b()?w():k.c().ga;if(k.qa())b=CF(DF(),b,k.c(),qE().xn,a.va);else{DF();k=e.we().ga.Of;h=e.ga;h=Af(Bf(),h.vf,h.Ef,h.ag,h.fg).vf;var l=e.ga,l=Af(Bf(),l.vf,l.Ef,l.ag,l.fg).Ef,p=a.va;b=CF(0,b,k,pE(qE(),h,l,(qE(),0)),p)}b=b.PA(!0).fa();kG(b)?c=gF(jC(),c,b.Bd):(b=a.va,k=rh().qY,h=w(),Cc(b,k,"",h,"invalid json schema expression",e.ga),c=gF(jC(),c,R().yd));c1a(a.va,c.i);b=P7a(a,a.va,e);e=zlb(b,b.Xg,"");k=LVa(Zoa(),e,c);M();h=
(new N).a();k=Ue(k,e,h).Uc(e);h=Db().Je;k=dj(k,h,!0);dz(k,e,c,b);hc(k,b);f.R(k);L8(a.va,e,k);c=qV(sV(),c,t(new u,function(a,b){return function(a){b.R(a)}}(a,f)),a1a(a.va,c.i),b).wc();if(x(c))g=c.i,dc(a.va.Yh,e,g),Qvb(k,g),L8(a.va,e,g),g=yb(g).qa()?g.Up(g.Mq()):g;else{if(w()!==c)throw(new v).d(c);M();e=(new N).a();e=(new Ui).P((new Q).a(),e);f.R(e);f=a.va;c=rh().FJ;b=e.k;k=w();Cc(f,c,b,k,"Cannot parse JSON Schema",g.ga);g=e}a.va.up.X(t(new u,function(a){return function(b){var c=b.pa(),c=kd(ta(),c,
"#",0),c=Ps((new md).vc(c)),c=c.b()?"":c.c(),e=a.va.rH.c();if(c===e.ga.Of)return a.va.up.Hs(b.pa())}}(a)));a.va.rH=w();return g}d.u=function(){return U(W(),this)};
d.tDa=function(a){var b=a.AL;if(x(b)){var b=b.i,c=Fia(Jia(),b);if(null===c)throw(new v).d(c);b=c.pa();c=c.Ba();if(c.b())var e=w();else e=c.c(),e=(new ph).e(e),e=Zo(e,"/definitions/"),e=(new ph).e(e),e=(new A).d(Zo(e,"definitions/"));if(e.b())var f=w();else f=e.c(),f=HSa(this.va.le(),b,f);f=f.b()?this.va.le().ns.Ta(b):f;if(x(f))a=f.i,e=Qg.prototype.vG.call(a),a=Te(e,a.k),e=this.Da,f=qe(),e=L(e,f,this.va),M(),f=(new N).a(),a=Ue(a,e,f),b=this.va.le().Ti.Ta(b),b.b()||(b=""+b.c().Vw.k+(c.b()?"":c.c()),
c=jh().Lj,Eb(a,c,b)),B(a.ca(),th().Vc).Fa()&&(a.k=null,this.Df.R(a),Bia(a.ca(),Gc(th().Vc.t))),b=a;else if(e.qa()){var f=a.jd,g=a.Pt,h=new N7a;h.m=this.va;h.jd=f;h.Pt=g;h.Hg=b;if(null===this)throw Lb(Mb(),null);h.l=this;h.Pc();e=HSa(this.va.le(),b,e.c());if(x(e))a=e.i,e=Qg.prototype.vG.call(a),a=Te(e,a.k),e=this.Da,f=qe(),e=L(e,f,this.va),M(),f=(new N).a(),a=Ue(a,e,f);else{M();e=(new N).a();f=(new Q).a();e=(new oi).P(f,e);this.Df.R(e);var f=this.va,g=rh().S6,h=e.k,k="could not find json schema fragment "+
c.c()+" in file "+b;a=a.Pt;var l=w();Cc(f,g,h,l,k,a.ga);a=e}b=this.va.le().Ti.Ta(b);b.b()||(b=""+b.c().Vw.k+c.c(),e=jh().Lj,Eb(a,e,b));a.ha().Wb((new f0).e(c.c()));b=a}else c=Pvb(this,a.jd,this.Da,a.Pt,this.Df,this.i,a.AL),e=this.va.le().Ti.Ta(b),e.b()||(e=e.c().Vw.k,f=jh().Lj,Eb(c,f,e)),e=this.va.le(),e.ns=e.ns.Zb((new P).N(b,c)),c.ha().Wb((new o1).e(a.jd.trim())),b=c}else{if(w()!==b)throw(new v).d(b);b=Pvb(this,a.jd,this.Da,a.Pt,this.Df,this.i,w());b.ha().Wb((new o1).e(a.jd))}this.Py?(c=this.i.pb().nb,
a=O().ua,c=c===a):c=!1;c&&(c=this.i,a=Pc(),c=L(c,a,this.va),a=(new K).Y(c),e=Pg().gd,Bh(a,"displayName",Uh(Ch(Dh(this,e,this.va),b))),a=(new K).Y(c),e=Pg().fb,Bh(a,"description",Uh(Ch(Dh(this,e,this.va),b))),c=yc((new K).Y(c),"default"),c.b()||(c=c.c(),a=cx(dx(c.i,b.k,!1,!1,!1,this.va)),fda(b,c),a=a.xl,a.b()||(a=a.c(),e=Pg().vh,c=Ke(M(),c),Fh(b,e,a,c))),c=this.i,a=Pc(),c=L(c,a,this.va),a=t1a(),yca(this,b,c,a,this.va));b.ha().Wb((new S5).a());return b};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.Da)),a=zI().Ga(a,yI(zI(),this.i)),a=zI().Ga(a,yI(zI(),this.Df)),a=zI().Ga(a,this.Py?1231:1237);return zI().Wd(a,4)};d.Jo=function(){return this.va};d.M=function(){return Z(this)};d.F9=function(){null===this.PD&&null===this.PD&&(this.PD=K7a(this));return this.PD};d.$classData=q({lqa:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlJsonSchemaExpression",{lqa:1,KD:1,f:1,lv:1,$r:1,ig:1,vWa:1,GD:1,nr:1,A:1,w:1,q:1,n:1});
function W2(){nO.call(this);this.Df=this.i=this.Da=null;this.Py=!1;this.PD=this.XT=this.va=null}W2.prototype=new B1;W2.prototype.constructor=W2;d=W2.prototype;d.L=function(){return"RamlXmlSchemaExpression"};d.H=function(){return 4};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.gra){if(Yj(this.Da,a.Da)&&Yj(this.i,a.i))var b=this.Df,c=a.Df,b=null===b?null===c:b.h(c);else b=!1;return b?this.Py===a.Py:!1}return!1};
d.PK=function(a,b,c,e,f){this.Da=a;this.i=b;this.Df=c;this.Py=e;this.va=f;nO.prototype.qs.call(this,f);this.XT="XML";return this};d.K=function(a){switch(a){case 0:return this.Da;case 1:return this.i;case 2:return this.Df;case 3:return this.Py;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.tDa=function(a){a=a.AL;if(a.b())var b=w();else a=a.c(),b=(new A).d(Fia(Jia(),a));a:{var c,e;if(x(b)&&(a=b.i,null!==a)){b=a.pa();a=a.Ba();b=this.va.le().Ti.Ta(b);if(b.b())var f=w();else f=b.c().Vw.k,a.b()?c=w():(c=a.c(),c=(new A).d(0<=(c.length|0)&&"/"===c.substring(0,1)?c:"/"+c)),f=(new A).d(""+f+(c.b()?"":c.c()));c=b.b()?w():b.c().ga;b=f;e=a;break a}if(w()===b)b=w(),f=w(),a=w(),c=f,e=a;else throw(new v).d(b);}f=b;a=c;b=e;c=this.i.pb().nb;if(O().ua===c){c=this.i;e=Pc();c=L(c,e,this.va);e=this.Lca(c);
a:{if(x(e)){var g=e.i;if(null!==g&&Hc(Ic(g.i),zc()).qa()){M();e=(new N).a();e=(new Ui).P((new Q).a(),e);var g=g.i,h=zc(),g=L(g,h,this.va).ya,h=fo().Sd;e=Eb(e,h,g);g=fo().Md;e=Eb(e,g,"application/xml");g=this.Da;h=qe();g=L(g,h,this.va);M();h=(new N).a();Ue(e,g,h);this.Df.R(e);break a}}M();e=(new N).a();e=(new Ui).P((new Q).a(),e);this.Df.R(e);var g=this.va,h=rh().wY,k=e.k,l=this.i,p=w();Cc(g,h,k,p,"Cannot parse XML Schema expression out of a non string value",l.ga)}g=(new K).Y(c);h=Pg().gd;Bh(g,"displayName",
Uh(Ch(Dh(this,h,this.va),e)));g=(new K).Y(c);h=Pg().fb;Bh(g,"description",Uh(Ch(Dh(this,h,this.va),e)));c=yc((new K).Y(c),"default");c.b()||(c=c.c(),g=cx(dx(c.i,e.k,!1,!1,!1,this.va)),fda(e,c),g=g.xl,g.b()||(g=g.c(),h=Pg().vh,c=Ke(M(),c),Fh(e,h,g,c)));c=this.i;g=Pc();c=L(c,g,this.va);g=t1a();yca(this,e,c,g,this.va);c=e}else O().Nc===c?(M(),c=(new N).a(),c=(new Ui).P((new Q).a(),c),this.Df.R(c),e=this.va,g=rh().wY,h=c.k,k=this.i,l=w(),Cc(e,g,h,l,"Cannot parse XML Schema expression out of a non string value",
k.ga)):(c=this.i,e=zc(),c=L(c,e,this.va).ya,M(),e=(new N).a(),e=(new Ui).P((new Q).a(),e),g=fo().Sd,c=Eb(e,g,c),e=fo().Md,c=Eb(c,e,"application/xml"),e=this.Da,g=qe(),e=L(e,g,this.va),M(),g=(new N).a(),Ue(c,e,g),this.Df.R(c));x(f)?(f=f.i,e=jh().Lj,Eb(c,e,f)):(f=c.ab,tf(),e=this.i.ga,f.Wb((new uf).Ui(zf(0,Af(Bf(),e.vf,e.Ef,e.ag,e.fg)))));f=fo().nc;a=a.b()?this.va.Xg:a.c();Eb(c,f,a);b.b()||(a=b.c(),c.ab.Wb((new f0).e(a)));return c};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.Da)),a=zI().Ga(a,yI(zI(),this.i)),a=zI().Ga(a,yI(zI(),this.Df)),a=zI().Ga(a,this.Py?1231:1237);return zI().Wd(a,4)};d.Jo=function(){return this.va};d.M=function(){return Z(this)};d.F9=function(){null===this.PD&&null===this.PD&&(this.PD=K7a(this));return this.PD};d.$classData=q({gra:0},!1,"amf.plugins.document.webapi.parser.spec.declaration.RamlXmlSchemaExpression",{gra:1,KD:1,f:1,lv:1,$r:1,ig:1,vWa:1,GD:1,nr:1,A:1,w:1,q:1,n:1});
function web(){j6.call(this);this.De=this.Uj=null}web.prototype=new kgb;web.prototype.constructor=web;d=web.prototype;d.L=function(){return"RamlModuleParser"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.ava){var b=this.Uj;a=a.Uj;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Uj;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Mb=function(){return this.De};
d.sda=function(){var a=Ke(M(),this.Uj.Gg.Vd),a=(new mh).P((new Q).a(),a),b=this.Uj.ga,c=Ap().nc,a=Eb(a,c,b),b=this.Uj.ga;H(z(),G());a=cj(a,b);b=E0(new F0,this.De.Pg());a=ac(a,b);b=this.Uj.ga;c=Ap().nc;Eb(a,c,b);b=Hc(Ic(this.Uj.Gg.Vd),Pc());if(!b.b()){c=b.c();xO(this.De,a.k,c,"module");b=Dx(Ex(new Fx,a,"uses",c,this.Uj.U,this.De),this.Uj.ga);this.MA(this.Uj,c);M$a(this,c,a).Pc();c=this.De.le().qu();if(c.Fa()){var e=Ug().Mc;Vg(a,e,c)}Tc(b.U)&&(b=n3(b),c=Nl().qc,Vg(a,c,b))}ec(this.De.Yh);return a};
d.y=function(){return Y(this)};d.Jo=function(){return this.De};d.M=function(){return Z(this)};d.wE=function(a,b){this.Uj=a;this.De=b;j6.prototype.qs.call(this,b);return this};d.FH=function(a,b){Xca(this,a,b)};d.$classData=q({ava:0},!1,"amf.plugins.document.webapi.parser.spec.raml.RamlModuleParser",{ava:1,Y7:1,KD:1,f:1,lv:1,$r:1,ig:1,nr:1,Bua:1,A:1,w:1,q:1,n:1});
function Rvb(){this.ke=this.Hb=this.Jc=this.Ew=this.Vc=this.Je=this.wd=this.ef=this.kg=this.$=this.fb=this.lp=this.Dq=this.um=this.Qg=this.Aa=this.g=this.ja=this.oa=this.jN=this.mf=this.vn=null;this.ma=0}Rvb.prototype=new r;Rvb.prototype.constructor=Rvb;d=Rvb.prototype;d.pp=function(a){this.ef=a};d.qp=function(a){this.kg=a};
d.a=function(){Svb=this;Iq(this);cT(this);mDa(this);Ji(this);YK(this);Wb(this);Ob(this);zda(this);var a=Pb(),b=C().bb;this.vn=Rb(new Sb,a,D(new F,b,"statusCode"),Tb(new Ub,Vb().bb,"status code","HTTP status code returned by a response",G()));a=(new Ki).Ld(vn());b=C().bb;this.mf=Rb(new Sb,a,D(new F,b,"payload"),Tb(new Ub,Vb().bb,"payload","Payload for a Request/Response",G()));a=(new Ki).Ld(po());b=C().bb;this.jN=Rb(new Sb,a,D(new F,b,"link"),Tb(new Ub,Vb().bb,"links","Structural definition of links on the source data shape AST",
G()));this.oa=this.vn;a=C().bb;a=D(new F,a,"Response");b=Lc().ja;this.ja=oz(new pz,a,b);a=Db().g;Di();var b=(new J).aa([this.$,this.fb,this.vn,this.Qg,this.mf,this.jN,this.Vc]),c=Di().s,b=Ei(b,c),c=Di(),a=a.la(b,c.s),b=Lc().g,c=Di();this.g=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().bb,"Response","Response information for an operation",G());return this};d.j$=function(a){this.lp=a};d.Ce=function(a){this.Hb=a};d.h_=function(a){this.Ew=a};d.Yc=function(){};d.op=function(a){this.Je=a};d.Tc=function(){return this.Aa};
d.sc=function(){return this.g};d.np=function(a){this.wd=a};d.hy=function(a){this.Vc=a};d.g$=function(a){this.Qg=a};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a();return(new LB).P((new Q).a(),a)};d.h$=function(a){this.um=a};d.ec=function(){return this.ja};d.Rp=function(a){this.$=a};d.i$=function(a){this.Dq=a};d.$classData=q({U0a:0},!1,"amf.plugins.domain.webapi.metamodel.ResponseModel$",{U0a:1,f:1,se:1,Oc:1,ic:1,Xc:1,Kj:1,EY:1,Aw:1,Fo:1,yq:1,ul:1,cwa:1});var Svb=void 0;
function Bn(){Svb||(Svb=(new Rvb).a());return Svb}function t9(a){var b=(new pk).$d(a.lb());a=a.td();Yda(b,a);return b}function bo(){Qn.call(this)}bo.prototype=new l8;bo.prototype.constructor=bo;d=bo.prototype;d.T4=function(){return this.cW()};d.L=function(){return"FileShape"};d.a=function(){M();var a=(new N).a();bo.prototype.UAa.call(this,(new ui).P((new Q).a(),a));return this};d.Y3=function(a){var b=this.p,c=xh().sn;Eb(b,c,a);return this};d.qg=function(){return this.p};d.H=function(){return 1};
d.S4=function(){return this.Ica()};d.Aca=function(){S();var a=B(this.p.ca(),xh().Aq);S().ww();return xK(a)};d.XQ=function(a){var b=this.p,c=xh().vl;Eb(b,c,a);return this};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.tia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.I4=function(){return this.qaa()};
d.paa=function(){S();var a=B(this.p.ca(),xh().Ux);S().sl();return tK(a)};d.u=function(){return U(W(),this)};d.Ica=function(){S();var a=B(this.p.ca(),xh().nv);S().xD();return vK(a)};d.cW=function(){S();var a=B(this.p.ca(),xh().vl);S().wb();return Gb(a)};d.Sh=function(){return this.p};d.Ao=function(){return Tvb(this)};d.O4=function(){return this.yV()};d.yV=function(){S();var a=B(this.p.ca(),xh().ij);S().xD();return vK(a)};d.ws=function(){return Tvb(this)};
d.SQ=function(a){var b=this.p,c=xh().ij;er(b,c,a);return this};d.qaa=function(){S();var a=B(this.p.ca(),xh().Vx);S().sl();return tK(a)};d.UQ=function(a){var b=this.p,c=xh().jj;er(b,c,a);return this};d.Fd=function(){return this.p};d.N4=function(){return this.Aca()};function Tvb(a){S();a=a.p;M();var b=(new N).a(),b=(new ui).P((new Q).a(),b);a=Te(b,a.k);b=S();if(null===S().jY&&null===S().jY){var c=S(),e=new VZ;if(null===b)throw Lb(Mb(),null);e.l=b;c.jY=e}b=S().jY;return dt(b.l.na,a)}d.y=function(){return Y(this)};
d.AV=function(){S();var a=B(this.p.ca(),xh().jj);S().xD();return vK(a)};d.Gaa=function(){S();var a=Li(this.p);S().wb();return Gb(a)};d.V3=function(a){var b=this.p,c=xh().Vx;dj(b,c,a);return this};d.Q4=function(){return this.Fca()};d.H4=function(){return this.paa()};d.b4=function(a){var b=this.p,c=xh().Cq;lr(b,c,a);return this};d.M=function(){return Z(this)};d.RE=function(){return Tvb(this)};d.UAa=function(a){Qn.prototype.vy.call(this,a);return this};d.L4=function(){return this.Gaa()};
d.$3=function(a){var b=this.p,c=xh().Aq;lr(b,c,a);return this};d.U3=function(a){var b=this.p,c=xh().Ux;dj(b,c,a);return this};d.R4=function(){return this.AV()};d.c4=function(a){var b=this.p,c=xh().nv;er(b,c,a);return this};d.Fca=function(){S();var a=B(this.p.ca(),xh().Cq);S().ww();return xK(a)};bo.prototype.withMultipleOf=function(a){return this.c4(+a)};bo.prototype.withFormat=function(a){return this.Y3(a)};bo.prototype.withExclusiveMaximum=function(a){return this.U3(!!a)};
bo.prototype.withExclusiveMinimum=function(a){return this.V3(!!a)};bo.prototype.withMaximum=function(a){return this.SQ(+a)};bo.prototype.withMinimum=function(a){return this.UQ(+a)};bo.prototype.withMaxLength=function(a){return this.$3(a|0)};bo.prototype.withMinLength=function(a){return this.b4(a|0)};bo.prototype.withPattern=function(a){return this.XQ(a)};bo.prototype.withFileTypes=function(a){var b=this.p,c=S(),e=S().oh();a=ml(nl(new ol,c,a,e));c=ao().pB;dr(b,c,a);return this};
Object.defineProperty(bo.prototype,"multipleOf",{get:function(){return this.S4()},configurable:!0});Object.defineProperty(bo.prototype,"format",{get:function(){return this.L4()},configurable:!0});Object.defineProperty(bo.prototype,"exclusiveMaximum",{get:function(){return this.H4()},configurable:!0});Object.defineProperty(bo.prototype,"exclusiveMinimum",{get:function(){return this.I4()},configurable:!0});Object.defineProperty(bo.prototype,"maximum",{get:function(){return this.O4()},configurable:!0});
Object.defineProperty(bo.prototype,"minimum",{get:function(){return this.R4()},configurable:!0});Object.defineProperty(bo.prototype,"maxLength",{get:function(){return this.N4()},configurable:!0});Object.defineProperty(bo.prototype,"minLength",{get:function(){return this.Q4()},configurable:!0});Object.defineProperty(bo.prototype,"pattern",{get:function(){return this.T4()},configurable:!0});
Object.defineProperty(bo.prototype,"fileTypes",{get:function(){var a=S(),b=B(this.p.ea,ao().pB),c=S().wb();return Il(a,b,c).sb()},configurable:!0});bo.prototype.$classData=q({tia:0},!1,"amf.client.model.domain.FileShape",{tia:1,rB:1,f:1,yz:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1,A:1,w:1,q:1,n:1});function Rn(){Qn.call(this)}Rn.prototype=new l8;Rn.prototype.constructor=Rn;d=Rn.prototype;d.a=function(){M();var a=(new N).a();Rn.prototype.VAa.call(this,(new ii).P((new Q).a(),a));return this};d.L=function(){return"NilShape"};
d.qg=function(){return this.p};d.H=function(){return 1};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.yia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.VAa=function(a){Qn.prototype.vy.call(this,a);return this};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Sh=function(){return this.p};d.Ao=function(){return Uvb(this)};d.ws=function(){return Uvb(this)};
d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.RE=function(){return Uvb(this)};function Uvb(a){S();a=a.p;M();var b=(new N).a(),b=(new ii).P((new Q).a(),b);a=Te(b,a.k);b=S();if(null===S().cZ&&null===S().cZ){var c=S(),e=new YZ;if(null===b)throw Lb(Mb(),null);e.l=b;c.cZ=e}b=S().cZ;return dt(b.l.na,a)}d.$classData=q({yia:0},!1,"amf.client.model.domain.NilShape",{yia:1,rB:1,f:1,yz:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1,A:1,w:1,q:1,n:1});
function co(){Qn.call(this)}co.prototype=new l8;co.prototype.constructor=co;d=co.prototype;d.L=function(){return"NodeShape"};d.a=function(){M();var a=(new N).a();co.prototype.WAa.call(this,(new si).P((new Q).a(),a));return this};d.qg=function(){return this.p};d.H=function(){return 1};d.kW=function(){var a=S(),b=B(this.p.ea,ci().Rg),c=S().FB();return Il(a,b,c).sb()};d.Jd=function(){return this.p};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.zia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Sh=function(){return this.p};d.Ao=function(){return Vvb(this)};d.oR=function(){return this.kW()};d.ws=function(){return Vvb(this)};d.Fd=function(){return this.p};
d.j4=function(a){var b=this.p,c=S(),e=S().FB();a=ml(nl(new ol,c,a,e));c=ci().Rg;qf(b,c,a);return this};d.y=function(){return Y(this)};function Vvb(a){S();a=a.p;M();var b=(new N).a(),b=(new si).P((new Q).a(),b);a=Te(b,a.k);return y_a(Gub(),a)}d.M=function(){return Z(this)};d.RE=function(){return Vvb(this)};d.WAa=function(a){Qn.prototype.vy.call(this,a);return this};
co.prototype.withInheritsScalar=function(a){S();var b=this.p;M();var c=(new N).a(),c=(new pi).P((new Q).a(),c);M();var e=(new N).a();a=Ue(c,a,e);c=ci().ld;nh(b,c,a);return F_a(Fub(),a)};co.prototype.withInheritsObject=function(a){S();var b=this.p;M();var c=(new N).a(),c=(new si).P((new Q).a(),c);M();var e=(new N).a();a=Ue(c,a,e);c=ci().ld;nh(b,c,a);return y_a(Gub(),a)};
co.prototype.withDependency=function(){S();var a=this.p;M();var b=(new N).a(),b=(new L2).P((new Q).a(),b),c=ci().wD;nh(a,c,b);a=Wvb();return dt(a.l.na,b)};co.prototype.withDependencies=function(a){var b=this.p,c=S(),e=Wvb();a=ml(nl(new ol,c,a,e));c=ci().wD;qf(b,c,a);return this};co.prototype.withProperty=function(a){S();a=F3(this.p,a);return A_a(S().FB(),a)};co.prototype.withProperties=function(a){return this.j4(a)};
co.prototype.withDiscriminatorMapping=function(a){var b=this.p,c=S(),e=Kub();a=ml(nl(new ol,c,a,e));c=ci().VI;qf(b,c,a);return this};co.prototype.withDiscriminatorValue=function(a){var b=this.p,c=ci().rz;Eb(b,c,a);return this};co.prototype.withDiscriminator=function(a){var b=this.p,c=ci().dt;Eb(b,c,a);return this};co.prototype.withClosed=function(a){a=!!a;var b=this.p,c=ci().Pk;dj(b,c,a);return this};co.prototype.withMaxProperties=function(a){a|=0;var b=this.p,c=ci().Cw;lr(b,c,a);return this};
co.prototype.withMinProperties=function(a){a|=0;var b=this.p,c=ci().Dw;lr(b,c,a);return this};Object.defineProperty(co.prototype,"dependencies",{get:function(){var a=S(),b=B(this.p.ea,ci().wD),c=Wvb();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(co.prototype,"additionalPropertiesSchema",{get:function(){S();var a=B(this.p.ea,ci().HF);return AS(S().wj(),a)},configurable:!0});Object.defineProperty(co.prototype,"properties",{get:function(){return this.oR()},configurable:!0});
Object.defineProperty(co.prototype,"discriminatorMapping",{get:function(){var a=S(),b=B(this.p.ea,ci().VI),c=Kub();return Il(a,b,c).sb()},configurable:!0});Object.defineProperty(co.prototype,"discriminatorValue",{get:function(){S();var a=B(this.p.ea,ci().rz);S().wb();return Gb(a)},configurable:!0});Object.defineProperty(co.prototype,"discriminator",{get:function(){S();var a=B(this.p.ea,ci().dt);S().wb();return Gb(a)},configurable:!0});
Object.defineProperty(co.prototype,"closed",{get:function(){S();var a=B(this.p.ea,ci().Pk);S().sl();return tK(a)},configurable:!0});Object.defineProperty(co.prototype,"maxProperties",{get:function(){S();var a=B(this.p.ea,ci().Cw);S().ww();return xK(a)},configurable:!0});Object.defineProperty(co.prototype,"minProperties",{get:function(){S();var a=B(this.p.ea,ci().Dw);S().ww();return xK(a)},configurable:!0});
co.prototype.$classData=q({zia:0},!1,"amf.client.model.domain.NodeShape",{zia:1,rB:1,f:1,yz:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1,A:1,w:1,q:1,n:1});function eo(){Qn.call(this)}eo.prototype=new l8;eo.prototype.constructor=eo;d=eo.prototype;d.T4=function(){return this.cW()};d.L=function(){return"ScalarShape"};d.a=function(){M();var a=(new N).a();eo.prototype.YAa.call(this,(new pi).P((new Q).a(),a));return this};d.Y3=function(a){var b=this.p,c=xh().sn;Eb(b,c,a);return this};d.qg=function(){return this.p};
d.H=function(){return 1};d.S4=function(){return this.Ica()};d.Aca=function(){S();var a=B(this.p.ca(),xh().Aq);S().ww();return xK(a)};d.XQ=function(a){var b=this.p,c=xh().vl;Eb(b,c,a);return this};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Tia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.I4=function(){return this.qaa()};
d.paa=function(){S();var a=B(this.p.ca(),xh().Ux);S().sl();return tK(a)};d.u=function(){return U(W(),this)};d.E4=function(){return this.Q_()};d.Ica=function(){S();var a=B(this.p.ca(),xh().nv);S().xD();return vK(a)};d.cW=function(){S();var a=B(this.p.ca(),xh().vl);S().wb();return Gb(a)};d.Sh=function(){return this.p};d.Q_=function(){S();var a=B(this.p.ea,xh().af);S().wb();return Gb(a)};d.Ao=function(){return Xvb(this)};d.O4=function(){return this.yV()};
d.YAa=function(a){Qn.prototype.vy.call(this,a);return this};d.yV=function(){S();var a=B(this.p.ca(),xh().ij);S().xD();return vK(a)};d.ws=function(){return Xvb(this)};d.SQ=function(a){var b=this.p,c=xh().ij;er(b,c,a);return this};d.qaa=function(){S();var a=B(this.p.ca(),xh().Vx);S().sl();return tK(a)};d.UQ=function(a){var b=this.p,c=xh().jj;er(b,c,a);return this};d.Fd=function(){return this.p};d.N4=function(){return this.Aca()};d.y=function(){return Y(this)};
d.AV=function(){S();var a=B(this.p.ca(),xh().jj);S().xD();return vK(a)};d.Gaa=function(){S();var a=Li(this.p);S().wb();return Gb(a)};d.V3=function(a){var b=this.p,c=xh().Vx;dj(b,c,a);return this};d.Q4=function(){return this.Fca()};d.H4=function(){return this.paa()};d.b4=function(a){var b=this.p,c=xh().Cq;lr(b,c,a);return this};d.M=function(){return Z(this)};d.RE=function(){return Xvb(this)};d.L4=function(){return this.Gaa()};d.$3=function(a){var b=this.p,c=xh().Aq;lr(b,c,a);return this};
d.U3=function(a){var b=this.p,c=xh().Ux;dj(b,c,a);return this};d.R4=function(){return this.AV()};function Xvb(a){S();a=a.p;M();var b=(new N).a(),b=(new pi).P((new Q).a(),b);a=Te(b,a.k);return F_a(Fub(),a)}d.c4=function(a){var b=this.p,c=xh().nv;er(b,c,a);return this};d.Fca=function(){S();var a=B(this.p.ca(),xh().Cq);S().ww();return xK(a)};eo.prototype.withMultipleOf=function(a){return this.c4(+a)};eo.prototype.withFormat=function(a){return this.Y3(a)};eo.prototype.withExclusiveMaximum=function(a){return this.U3(!!a)};
eo.prototype.withExclusiveMinimum=function(a){return this.V3(!!a)};eo.prototype.withMaximum=function(a){return this.SQ(+a)};eo.prototype.withMinimum=function(a){return this.UQ(+a)};eo.prototype.withMaxLength=function(a){return this.$3(a|0)};eo.prototype.withMinLength=function(a){return this.b4(a|0)};eo.prototype.withPattern=function(a){return this.XQ(a)};eo.prototype.withDataType=function(a){var b=this.p,c=xh().af;Eb(b,c,a);return this};
Object.defineProperty(eo.prototype,"multipleOf",{get:function(){return this.S4()},configurable:!0});Object.defineProperty(eo.prototype,"format",{get:function(){return this.L4()},configurable:!0});Object.defineProperty(eo.prototype,"exclusiveMaximum",{get:function(){return this.H4()},configurable:!0});Object.defineProperty(eo.prototype,"exclusiveMinimum",{get:function(){return this.I4()},configurable:!0});Object.defineProperty(eo.prototype,"maximum",{get:function(){return this.O4()},configurable:!0});
Object.defineProperty(eo.prototype,"minimum",{get:function(){return this.R4()},configurable:!0});Object.defineProperty(eo.prototype,"maxLength",{get:function(){return this.N4()},configurable:!0});Object.defineProperty(eo.prototype,"minLength",{get:function(){return this.Q4()},configurable:!0});Object.defineProperty(eo.prototype,"pattern",{get:function(){return this.T4()},configurable:!0});Object.defineProperty(eo.prototype,"dataType",{get:function(){return this.E4()},configurable:!0});
eo.prototype.$classData=q({Tia:0},!1,"amf.client.model.domain.ScalarShape",{Tia:1,rB:1,f:1,yz:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1,A:1,w:1,q:1,n:1});function go(){Qn.call(this)}go.prototype=new l8;go.prototype.constructor=go;d=go.prototype;d.a=function(){M();var a=(new N).a();go.prototype.ZAa.call(this,(new Ui).P((new Q).a(),a));return this};d.L=function(){return"SchemaShape"};d.qg=function(){return this.p};d.H=function(){return 1};d.Mm=function(a){var b=this.p,c=fo().Sd;Eb(b,c,a);return this};
d.lL=function(){S();var a=B(this.p.ea,fo().Md);S().wb();return Gb(a)};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Uia){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.Wl=function(){return this.hL()};d.u=function(){return U(W(),this)};d.Yda=function(){S();var a=B(this.p.ea,jh().Sd);S().wb();return Gb(a)};
function Yvb(a){S();a=a.p;M();var b=(new N).a(),b=(new Ui).P((new Q).a(),b);a=Te(b,a.k);b=S();if(null===S().GZ&&null===S().GZ){var c=S(),e=new w_;if(null===b)throw Lb(Mb(),null);e.l=b;c.GZ=e}b=S().GZ;return dt(b.l.na,a)}d.Sh=function(){return this.p};d.Nm=function(){return this.Yda()};d.Ao=function(){return Yvb(this)};d.ws=function(){return Yvb(this)};d.fz=function(){return this.lL()};d.Fd=function(){return this.p};d.y=function(){return Y(this)};
d.hL=function(){var a=S(),b=$h(this.p),c=S().oh();return Bb(a,b,c).sb()};d.M=function(){return Z(this)};d.RE=function(){return Yvb(this)};d.ZAa=function(a){Qn.prototype.vy.call(this,a);return this};go.prototype.withRaw=function(a){return this.Mm(a)};go.prototype.withMediatype=function(a){var b=this.p,c=fo().Md;Eb(b,c,a);return this};Object.defineProperty(go.prototype,"location",{get:function(){return this.Wl()},configurable:!0});
Object.defineProperty(go.prototype,"raw",{get:function(){return this.Nm()},configurable:!0});Object.defineProperty(go.prototype,"mediaType",{get:function(){return this.fz()},configurable:!0});go.prototype.$classData=q({Uia:0},!1,"amf.client.model.domain.SchemaShape",{Uia:1,rB:1,f:1,yz:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1,A:1,w:1,q:1,n:1});function mo(){Qn.call(this)}mo.prototype=new l8;mo.prototype.constructor=mo;d=mo.prototype;
d.a=function(){M();var a=(new N).a();mo.prototype.aBa.call(this,(new ti).P((new Q).a(),a));return this};d.L=function(){return"UnionShape"};d.qg=function(){return this.p};d.H=function(){return 1};d.Jd=function(){return this.p};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.bja){var b=this.p;a=a.p;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.p;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};
d.aBa=function(a){Qn.prototype.vy.call(this,a);return this};d.Sh=function(){return this.p};d.Fd=function(){return this.p};d.y=function(){return Y(this)};d.M=function(){return Z(this)};mo.prototype.withAnyOf=function(a){var b=this.p,c=S(),e=S().wj();a=ml(nl(new ol,c,a,e));c=lo().Ee;qf(b,c,a);return this};Object.defineProperty(mo.prototype,"anyOf",{get:function(){var a=S(),b=B(this.p.ea,lo().Ee),c=S().wj();return Il(a,b,c).sb()},configurable:!0});
mo.prototype.$classData=q({bja:0},!1,"amf.client.model.domain.UnionShape",{bja:1,rB:1,f:1,yz:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1,A:1,w:1,q:1,n:1});function Zvb(){Ig.call(this)}Zvb.prototype=new Nvb;Zvb.prototype.constructor=Zvb;function $vb(){}$vb.prototype=Zvb.prototype;Zvb.prototype.ze=function(){return Xp(this.ca(),Nl().ob)};function vz(a){return!!(a&&a.$classData&&a.$classData.v.gka)}function nN(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}nN.prototype=new r;nN.prototype.constructor=nN;d=nN.prototype;
d.L=function(){return"DialectLibrary"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:XA(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Lqa()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};
d.Nd=function(){return""};d.Pe=function(){return B(this.g,ed().qc)};d.Yb=function(){return jd(this)};d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ak=function(){return B(this.g,ed().Mc)};d.ca=function(){return this.g};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function XA(a){return!!(a&&a.$classData&&a.$classData.v.nma)}
d.$classData=q({nma:0},!1,"amf.plugins.document.vocabularies.model.document.DialectLibrary",{nma:1,f:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,fJ:1,uB:1,z7:1,A:1,w:1,q:1,n:1});function jN(){this.ct=this.mt=this.$=this.E=this.g=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}jN.prototype=new r;jN.prototype.constructor=jN;d=jN.prototype;d.L=function(){return"NodeMapping"};d.Ub=function(){return H(z(),G())};d.Zu=function(a){this.Nk=a};d.H=function(){return 2};
d.k_=function(a){this.$=a};d.Qb=function(a){return cj(this,a)};d.es=function(){};d.It=function(a){this.Zi=a};d.h=function(a){return this===a?!0:he(a)?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.El=function(){M();var a=(new N).a(),a=(new jN).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return Tj()};d.Mq=function(){return H(z(),G())};d.ha=function(){return this.E};
d.u=function(){return U(W(),this)};d.lu=function(a){this.Zg=a};d.Nt=function(){return this.Zg};function u5a(a){return B(a.g,Tj().Qi).xb(t(new u,function(){return function(a){a=B(a.g,sf().eG).G;return!(a.b()||!a.c())}}(a))).qi(t(new u,function(){return function(a){a=B(a.g,sf().Kh).G;return a.b()?null:a.c()}}(a)),Kc())}d.Nd=function(){var a=B(this.g,this.$).G,a=a.b()?null:a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};d.Hu=function(){};
d.Is=function(a,b,c,e){a=gL(this,a,b);e&&ns(a)&&(b=Db().Je,dj(a,b,e));e=Te(a,c.k);c=B(c.g,c.$).G;c=c.b()?null:c.c();return Eb(e,e.$,c)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.gk=function(a,b){return gL(this,a,b)};d.PN=function(a){this.mt=a};d.Qk=function(){return qd(function(){return function(a,b){return(new jN).P(a,b)}}(this))};d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};
d.Ht=function(a){this.Jk=a};d.ON=function(a){this.ct=a};d.Up=function(a){return Px(this,a)};d.y=function(){return Y(this)};d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};d.dga=function(a){return Eb(this,this.$,a)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.ku=function(a){this.zk=a};d.P=function(a,b){this.g=a;this.E=b;hL(this);Ud(this);Wba(this);return this};function he(a){return!!(a&&a.$classData&&a.$classData.v.uma)}
d.$classData=q({uma:0},!1,"amf.plugins.document.vocabularies.model.domain.NodeMapping",{uma:1,f:1,de:1,Wc:1,Rc:1,Pi:1,sma:1,eS:1,tma:1,y7:1,A:1,w:1,q:1,n:1});function qy(){s9.call(this);this.fr=this.Km=this.Oh=this.ym=null;this.uCa=!1}qy.prototype=new Ovb;qy.prototype.constructor=qy;d=qy.prototype;d.Pg=function(){return this.fr};d.qV=function(){return this.uCa};d.tp=function(){return this.ym};
d.xy=function(a,b,c,e,f,g){this.ym=g;s9.prototype.Mba.call(this,a,b,c,e,f,g,H(tsb(),G()));this.Oh=(new B7).BE(this);this.Km=aP();this.fr=rca();this.uCa=!(c&&c.$classData&&c.$classData.v.hJ)&&!!(c&&c.$classData&&c.$classData.v.L7);return this};d.$classData=q({sTa:0},!1,"amf.plugins.document.webapi.JsonSchemaWebApiContext",{sTa:1,L7:1,wB:1,au:1,f:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1,TF:1,Fb:1});function uy(){s9.call(this);this.Km=this.fr=this.Oh=this.ym=null}uy.prototype=new Ovb;
uy.prototype.constructor=uy;uy.prototype.Pg=function(){return this.fr};uy.prototype.tp=function(){return this.ym};uy.prototype.xy=function(a,b,c,e,f,g){this.ym=g;s9.prototype.Mba.call(this,a,b,c,e,f,g,H(tsb(),G()));this.Oh=(new yjb).BE(this);this.fr=wt();this.Km=lKa();return this};uy.prototype.$classData=q({bna:0},!1,"amf.plugins.document.webapi.contexts.Oas2WebApiContext",{bna:1,L7:1,wB:1,au:1,f:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1,TF:1,Fb:1});
function sy(){s9.call(this);this.Km=this.fr=this.Oh=this.ym=null}sy.prototype=new Ovb;sy.prototype.constructor=sy;sy.prototype.Pg=function(){return this.fr};sy.prototype.tp=function(){return this.ym};sy.prototype.xy=function(a,b,c,e,f,g){this.ym=g;s9.prototype.Mba.call(this,a,b,c,e,f,g,H(tsb(),G()));this.Oh=(new B7).BE(this);this.fr=xt();this.Km=aP();return this};
sy.prototype.$classData=q({fna:0},!1,"amf.plugins.document.webapi.contexts.Oas3WebApiContext",{fna:1,L7:1,wB:1,au:1,f:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1,TF:1,Fb:1});function u9(){i9.call(this);this.Dv=this.yQ=null;this.kAa=!1;this.Mh=this.YE=null}u9.prototype=new rvb;u9.prototype.constructor=u9;function awb(){}d=awb.prototype=u9.prototype;
d.Vk=function(a,b,c,e,f,g,h){this.yQ=c;this.Dv=h;i9.prototype.xy.call(this,a,b,c,e,f,g);this.kAa=!1;this.YE=pc(Os(),G());e.b()?(a=w(),b=(new A).d(this),c=this.Yh,e=pc(fc().db,G()),f=pc(fc().db,G()),a=(new hw).YU(e,f,a,b,c)):a=e.c();this.Mh=a;return this};d.wGa=function(){return!0};d.le=function(){return this.Mh};
function Lra(a,b,c){if(!b.b()){var e=b.fa(),e=c.ai.Ta(e);if(x(e)&&(e=e.i)&&e.$classData&&e.$classData.v.OY)return Lra(a,b.sa(),e);var e=Bc().vD,f=w();b="Cannot find declarations in context '"+b.ng(".");var g=w(),h=w();a.Hc(e.k,"",f,b,g,xc().tb,h)}return c}
function p6a(a,b,c,e,f){var g=b.k,h=jA(b,!0,H(xz(),G())),k=Tla(Vla(),e),l=a.Km.dh.Ta(e);if(x(l))a:{if(b=(new Qd).d(l.i),f.kx&&(b.ta=b.ta.vk(a.Km.dh.R("annotation"))),f.jP&&(b.ta=b.ta.vk(a.Km.dh.R("property"))),b=t(new u,function(a,b,c,e){return function(f){f=b.ta.vk(Pd(f));z();Oj();var g=(new $g).a().wa();return c.Bb.ae(g,qd(function(a,b,c){return function(e,f){var g=f.Da,h=wN(),k=Ac().fi,g=L(g,h,k).ya;if(a.Naa(b,g)||c.Ja(g))return e;f=H(z(),(new J).aa([f]));g=z();return e.la(f,g.s)}}(a,e,f)))}}(a,
b,c,e)),e=z(),h=h.ka(b,e.s).Ib(t(new u,function(){return function(a){return a.Fa()}}(a))),w()!==h){if(x(h)&&(b=h.i,null!==b)){e=1<b.lb()?"Properties":"Property";h=of().SI;c=t(new u,function(){return function(a){a=a.Da;var b=wN(),c=Ac().fi;return L(a,b,c).ya}}(a));f=z();c=b.ka(c,f.s);f=t(new u,function(){return function(a){return"'"+a+"'"}}(a));l=z();k=e+" "+c.ka(f,l.s).ng(",")+" not supported in a "+a.Pg()+" "+k+" node";b=b.fa();e=w();Cc(a,h,g,e,k,b.ga);break a}throw(new v).d(h);}}else if(w()===l)k=
of().SI,h="Cannot validate unknown node type "+e+" for "+a.Pg(),sz(a,k,g,h,b.ha());else throw(new v).d(l);}
d.Naa=function(a,b){var c;(c=this.wGa()&&0<=(b.length|0)&&"("===b.substring(0,1)&&re(ta(),b,")"))||(c=G(),c=oz(new pz,"webApi",oz(new pz,"endPoint",c)),c=0<=(b.length|0)&&"/"===b.substring(0,1)&&uh(c,a));if(!c){c=G();c=oz(new pz,"resourceType",oz(new pz,"trait",c));if(null===b)throw(new Rg).a();c=Sg(Tg(),"\x3c\x3c.+\x3e\x3e",b)?uh(c,a):!1}c||(c=G(),c=oz(new pz,"resourceType",c),c=0<=(b.length|0)&&"/"===b.substring(0,1)&&uh(c,a));return c};
function Omb(a){a.YE.Rr().X(t(new u,function(a){return function(c){bwb(a,c)}}(a)));a.YE.qC().X(t(new u,function(a){return function(c){return a.YE.Hs(c)}}(a)))}d.Oo=function(a){var b=a.pb().nb,c=O().vq;if(b===c)return Zf(),b=wN(),c=Ac().fi,a=L(a,b,c).ya,(new $f).d(a);Zf();return(new ag).d(a)};function bwb(a,b){GSa(a.le(),b.le());b.le().bC().HC.X(t(new u,function(a){return function(b){return a.le().bC().HC.Ih(b)}}(a)));b.Yh.HC.X(t(new u,function(a){return function(b){return a.Yh.HC.Ih(b)}}(a)))}
function Sab(a,b){var c=a.YE.Ta(b);c.b()||(c=c.c(),bwb(a,c));a.YE.Hs(b)}d.yl=function(){return this.le()};function NIa(){QB.call(this);this.CV=this.YD=this.vE=null}NIa.prototype=new dnb;NIa.prototype.constructor=NIa;d=NIa.prototype;d.L=function(){return"ErrorResourceType"};d.xH=function(){return this.CV};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.xna&&this.vE===a.vE){var b=this.YD;a=a.YD;return null===b?null===a:b.h(a)}return!1};
d.Uc=function(a){return XU(this,a)};d.K=function(a){switch(a){case 0:return this.vE;case 1:return this.YD;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.jG=function(a){return Te(this,a)};d.jA=function(){xr();M();var a=(new N).a();return(new kA).P((new Q).a(),a)};d.Rq=function(a,b){this.vE=a;this.YD=b;QB.prototype.P.call(this,(new Q).a(),Ke(M(),b));this.CV="http://amferror.com/#errorResourceType/";XU(this,a);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};
d.$classData=q({xna:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$ErrorResourceType",{xna:1,t8:1,j7:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,VF:1,A:1,w:1,q:1,n:1});function xkb(){NB.call(this);this.zs=this.me=this.Hn=null}xkb.prototype=new cnb;xkb.prototype.constructor=xkb;d=xkb.prototype;d.L=function(){return"ErrorSecurityScheme"};d.xH=function(){return this.zs};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.zna&&this.Hn===a.Hn){var b=this.me;a=a.me;return null===b?null===a:b.h(a)}return!1};d.Uc=function(a){return XU(this,a)};d.K=function(a){switch(a){case 0:return this.Hn;case 1:return this.me;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.jG=function(a){return Te(this,a)};
d.Rq=function(a,b){this.Hn=a;this.me=b;NB.prototype.P.call(this,(new Q).a(),Ke(M(),b));this.zs="http://amferror.com/#errorSecurityScheme/";XU(this,a);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({zna:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$ErrorSecurityScheme",{zna:1,s8:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,rwa:1,VF:1,A:1,w:1,q:1,n:1});function FIa(){UB.call(this);this.CV=this.YD=this.vE=null}FIa.prototype=new fnb;
FIa.prototype.constructor=FIa;d=FIa.prototype;d.L=function(){return"ErrorTrait"};d.xH=function(){return this.CV};d.H=function(){return 2};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Q7&&this.vE===a.vE){var b=this.YD;a=a.YD;return null===b?null===a:b.h(a)}return!1};d.Uc=function(a){return XU(this,a)};d.K=function(a){switch(a){case 0:return this.vE;case 1:return this.YD;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.jG=function(a){return Te(this,a)};
d.Rq=function(a,b){this.vE=a;this.YD=b;UB.prototype.P.call(this,(new Q).a(),Ke(M(),b));this.CV="http://amferror.com/#errorTrait/";XU(this,a);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({Q7:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$ErrorTrait",{Q7:1,u8:1,j7:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,VF:1,A:1,w:1,q:1,n:1});function pUa(){jW.call(this);this.Ks=null}pUa.prototype=new Mmb;pUa.prototype.constructor=pUa;d=pUa.prototype;d.L=function(){return"ExtensionLikeParser"};
d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.xua){var b=this.Ks;a=a.Ks;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ks;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.rda=function(){this.De.Dv=py().V5;var a=cwb(this);x(a)&&dwb(this,a.i,this.De.S1);M();a=(new N).a();a=ueb(this,(new L3).P((new Q).a(),a));ewb(this,a);return a};d.Mb=function(){return this.De};
function dwb(a,b,c){Xp(b.ca(),Nl().Mc).X(t(new u,function(a,b){return function(a){return Ai(b,a)}}(a,c)));var e=b.Pe().jn(t(new u,function(){return function(a){return vz(a)||Ol(a)}}(a)));if(null===e)throw(new v).d(e);var f=e.pa(),e=e.Ba();b=Zb(b.ha(),n(nd));b.b()||b.c().Xb.X(t(new u,function(a,b,c){return function(e){var f=e.Ba().pa(),f=b.Ib(t(new u,function(a,b){return function(a){a=jd(a);return a.b()?!1:a.c()===b}}(a,f)));x(f)&&(f=f.i,Ll(f)&&(e=CIa(c,e.pa()),Xp(f.g,Ug().Mc).X(t(new u,function(a,
b){return function(a){return Ai(b,a)}}(a,e)))))}}(a,e,c)));f.X(t(new u,function(a,b){return function(c){dwb(a,c,b)}}(a,c)))}function cwb(a){var b=a.Ks.U;a=t(new u,function(){return function(a){return a.Od}}(a));var c=z(),b=b.ka(a,c.s);return hd(b,new igb)}d.vda=function(){this.De.Dv=py().V8;var a=cwb(this);x(a)&&dwb(this,a.i,this.De.S1);M();a=(new N).a();a=ueb(this,(new M3).P((new Q).a(),a));ewb(this,a);return a};d.y=function(){return Y(this)};d.Jo=function(){return this.De};d.M=function(){return Z(this)};
d.FH=function(a,b){Xca(this,a,b)};function ewb(a,b){var c=qz().Jc,e=a.Ks.Gg.Vd,f=Pc(),e=L(e,f,a.De);M$a(a,e,b).Pc();e=yc((new K).Y(e),"extends");e.b()||(e=e.c(),a=a.Ks.U.Ib(t(new u,function(a,b){return function(c){c=c.oo.Bf;var e=b.i,f=qe();return c===L(e,f,a.De)}}(a,e))),a.b()||(a=a.c(),a=Nh(new Oh,a.Od.k,Ke(M(),e.i)),e=Ke(M(),e),Fh(b,c,a,e)))}
d.$classData=q({xua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.ExtensionLikeParser",{xua:1,Kua:1,Y7:1,KD:1,f:1,lv:1,$r:1,ig:1,nr:1,Bua:1,A:1,w:1,q:1,n:1});function teb(){jW.call(this);this.Ks=null}teb.prototype=new Mmb;teb.prototype.constructor=teb;d=teb.prototype;d.L=function(){return"Raml08DocumentParser"};
function fwb(a,b,c){b=yc((new K).Y(b),"schemas");if(!b.b()){var e=b.c(),f=e.i.pb().nb;if(O().ua===f)b=e.i,e=Pc(),gwb(a,L(b,e,a.De).Bb,c);else if(O().yd!==f)if(O().Nc===f)b=e.i,e=Pc(),f=uv().gc,b=L(b,CM(f,e),a.De),e=t(new u,function(){return function(a){return a.Bb}}(a)),f=z(),gwb(a,b.md(e,f.s),c);else{a=a.De;b=rh().vY;var f="Invalid type "+f+" for 'types' node.",e=e.i,g=w();Cc(a,b,c,g,f,e.ga)}}}d.H=function(){return 1};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.zua){var b=this.Ks;a=a.Ks;return null===b?null===a:b.h(a)}return!1};d.K=function(a){switch(a){case 0:return this.Ks;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Mb=function(){return this.De};
function hwb(a,b,c){b.X(t(new u,function(a,b){return function(c){var h=a.De.le();c=Yca(Zca(),c,qd(function(a,b){return function(a,c){M();var e=(new N).a();a=Ue(a,c,e);H(z(),G());return yi(a,b)}}(a,b)),a.De).LH();var k=(new zi).a();return Ai(h,ac(c,k))}}(a,c)))}
function iwb(a,b,c,e,f){b=yc((new K).Y(e),b);if(!b.b()){var g=b.c(),h=g.i.pb().nb;if(O().Nc===h)b=g.i,e=Pc(),h=uv().gc,b=L(b,CM(h,e),a.De),e=t(new u,function(){return function(a){return a.Bb}}(a)),h=z(),b=b.md(e,h.s);else if(O().ua===h)b=g.i,e=Pc(),b=L(b,e,a.De).Bb;else{b=a.De;e=rh().WR;var h="Invalid node "+h+" in abstract declaration",g=g.i,k=w();Cc(b,e,f,k,h,g.ga);b=G()}b.X(t(new u,function(a,b,c){return function(e){return Ai(a.De.le(),H2(PSa(SSa(),b.R(e),c,e,a.De)))}}(a,c,f)))}}
function gwb(a,b,c){b.X(t(new u,function(a,b){return function(c){ei();var h=c.Da,k=wN();if(bma(0,L(h,k,a.De).ya).qa()){var h=a.De,k=rh().bJ,l=c.Da,p=wN(),l="'"+L(l,p,a.De).ya+"' cannot be used to name a custom type",p=c.Da,y=w();Cc(h,k,b,y,l,p.ga)}h=HU(IU(),c,t(new u,function(a,b,c){return function(e){R();var f=b.Da,g=a.De,h=qe(),f=L(f,h,g);M();g=(new N).a();e=Ue(e,f,g);f=e.Ub();return e.Qb(c,f)}}(a,c,b)),!1,tO(),a.De).wc();if(x(h))c=h.i,h=a.De.le(),k=(new zi).a(),Ai(h,ac(c,k)),h=a.De.A_(a.De.Xg),
k=B(c.ca(),Pg().$).G,h=""+h+(k.b()?null:k.c()),h=Uga(h),dc(a.De.Yh,h,c);else if(w()===h)h=a.De,k=rh().bJ,l="Error parsing shape '"+c+"'",p=w(),Cc(h,k,b,p,l,c.ga);else throw(new v).d(h);}}(a,c)))}
d.MA=function(a,b){a=a.ga+"#/declarations";fwb(this,b,a+"/schemas");iwb(this,"resourceTypes",t(new u,function(a,b){return function(f){var g=PB(RB(),f),h=f.Da,k=wN(),h=L(h,k,a.De).ya;M();k=(new N).a();g=Ue(g,h,k);f=f.Da;h=wN();f=L(f,h,a.De).ya;f=(new Cf).e(f);return g.Uc(b+"/resourceTypes/"+Gj(f.zd))}}(this,a)),b,a+"/resourceTypes");iwb(this,"traits",t(new u,function(a,b){return function(f){var g=TB(VB(),f),h=f.Da,k=wN(),h=L(h,k,a.De).ya;M();k=(new N).a();g=Ue(g,h,k);f=f.Da;h=wN();f=L(f,h,a.De).ya;
f=(new Cf).e(f);return g.Uc(b+"/traits/"+Gj(f.zd))}}(this,a)),b,a+"/traits");this.FH(b,a+"/securitySchemes")};d.y=function(){return Y(this)};d.Jo=function(){return this.De};d.M=function(){return Z(this)};d.wE=function(a,b){this.Ks=a;jW.prototype.wE.call(this,a,b);ju();return this};
d.FH=function(a,b){a=yc((new K).Y(a),"securitySchemes");if(!a.b()){var c=a.c(),e=c.i.pb().nb;if(O().Nc===e){a=c.i;var f=Pc(),e=uv().gc;L(a,CM(e,f),this.De).X(t(new u,function(a,b){return function(c){hwb(a,c.Bb,b)}}(this,b)))}else if(O().ua===e)a=c.i,f=Pc(),hwb(this,L(a,f,this.De).Bb,b);else if(O().yd!==e){a=this.De;var f=rh().ZR,e="Invalid type "+e+" for 'securitySchemes' node.",c=c.i,g=w();Cc(a,f,b,g,e,c.ga)}}};
d.$classData=q({zua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.Raml08DocumentParser",{zua:1,Kua:1,Y7:1,KD:1,f:1,lv:1,$r:1,ig:1,nr:1,Fb:1,A:1,w:1,q:1,n:1});function veb(){jW.call(this);this.Ks=null}veb.prototype=new Mmb;veb.prototype.constructor=veb;d=veb.prototype;d.L=function(){return"Raml10DocumentParser"};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.Cua){var b=this.Ks;a=a.Ks;return null===b?null===a:b.h(a)}return!1};
d.K=function(a){switch(a){case 0:return this.Ks;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Mb=function(){return this.De};d.y=function(){return Y(this)};d.Jo=function(){return this.De};d.M=function(){return Z(this)};d.wE=function(a,b){this.Ks=a;jW.prototype.wE.call(this,a,b);return this};d.FH=function(a,b){Xca(this,a,b)};
d.$classData=q({Cua:0},!1,"amf.plugins.document.webapi.parser.spec.raml.Raml10DocumentParser",{Cua:1,Kua:1,Y7:1,KD:1,f:1,lv:1,$r:1,ig:1,nr:1,Bua:1,A:1,w:1,q:1,n:1});function jwb(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.fb=this.Qx=this.Rx=this.oa=this.ki=this.Xh=this.Th=this.Vh=this.ld=this.Eo=this.Kg=this.Jj=this.vh=this.gd=this.$=this.nc=this.Lj=this.Sd=this.Vc=this.bh=this.ja=this.wn=this.g=this.Aa=null;this.ma=0}jwb.prototype=new r;jwb.prototype.constructor=jwb;d=jwb.prototype;
d.pp=function(a){this.ef=a};d.kG=function(a){this.wn=a};d.qp=function(a){this.kg=a};d.a=function(){kwb=this;Iq(this);cT(this);YK(this);Ob(this);r7(this);XK(this);Ji(this);Fi(this);j9(this);var a=Vb().Gb,b=z(),c=C().Gb;this.Aa=Tb(new Ub,a,"Any Shape","Base class for all shapes stored in the graph model",H(b,(new J).aa([Gc(D(new F,c,"Shape"))])));a=Pg().g;Di();b=(new J).aa([this.bh,this.wn,this.Vc]);c=Di().s;b=Ei(b,c);c=Di();a=a.la(b,c.s);b=jh().g;c=Di();this.g=a.la(b,c.s);return this};
d.NB=function(a){this.Sd=a};d.Ce=function(a){this.Hb=a};d.QB=function(a){this.bh=a};d.Yc=function(){};d.Uz=function(a){this.Jj=a};d.op=function(a){this.Je=a};d.lG=function(a){this.ja=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.np=function(a){this.wd=a};d.Vz=function(a){this.gd=a};d.hy=function(a){this.Vc=a};d.bA=function(a){this.oa=a};d.MB=function(a){this.nc=a};d.Rz=function(a){this.Th=a};d.Wz=function(a){this.ld=a};d.$l=function(a){this.fb=a};
d.Zc=function(){M();var a=(new N).a(),b=(new Q).a();return(new oi).P(b,a)};d.Yz=function(a){this.ki=a};d.Sz=function(a){this.Eo=a};d.OB=function(a){this.Lj=a};d.ec=function(){return this.ja};d.aA=function(a){this.Xh=a};d.yC=function(){M();var a=(new N).a(),b=(new Q).a();return(new oi).P(b,a)};d.Zz=function(a){this.Vh=a};d.$z=function(a){this.Kg=a};d.Xz=function(a){this.$=a};d.Tz=function(a){this.vh=a};
d.$classData=q({d_a:0},!1,"amf.plugins.domain.shapes.metamodel.AnyShapeModel$",{d_a:1,f:1,LD:1,xw:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,ul:1,Bz:1,Aw:1,Ez:1});var kwb=void 0;function th(){kwb||(kwb=(new jwb).a());return kwb}
function v9(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.fb=this.Qx=this.Rx=this.oa=this.ki=this.Xh=this.Th=this.Vh=this.ld=this.Eo=this.Kg=this.Jj=this.vh=this.gd=this.$=this.nc=this.Lj=this.Sd=this.Vc=this.bh=this.ja=this.wn=this.Aa=this.g=this.uo=this.sD=this.tr=this.rr=this.Bq=this.wf=null;this.ma=0}v9.prototype=new r;v9.prototype.constructor=v9;function lwb(){}d=lwb.prototype=v9.prototype;d.pp=function(a){this.ef=a};d.kG=function(a){this.wn=a};d.qp=function(a){this.kg=a};
d.a=function(){Iq(this);cT(this);YK(this);Ob(this);r7(this);XK(this);Ji(this);Fi(this);j9(this);var a=Pg(),b=C().Gb;this.wf=Rb(new Sb,a,D(new F,b,"items"),Tb(new Ub,Vb().Gb,"items","Shapes inside the data arrangement",G()));a=Zc();b=C().cb;this.Bq=Rb(new Sb,a,D(new F,b,"minCount"),Tb(new Ub,Bi().cb,"min count","Minimum items count constraint",G()));a=Zc();b=C().cb;this.rr=Rb(new Sb,a,D(new F,b,"maxCount"),Tb(new Ub,Bi().cb,"max count","Maximum items count constraint",G()));a=Yc();b=C().Gb;this.tr=
Rb(new Sb,a,D(new F,b,"uniqueItems"),Tb(new Ub,Vb().Gb,"uinque items","Unique items constraint",G()));a=Pb();b=C().Gb;this.sD=Rb(new Sb,a,D(new F,b,"collectionFormat"),Tb(new Ub,Vb().Gb,"collection format","Input collection format information",G()));Di();var a=(new J).aa([this.wf,this.Bq,this.rr,this.tr,this.sD]),b=Di().s,a=this.uo=Ei(a,b),b=th().g,c=Di(),a=a.la(b,c.s),b=Lc().g,c=Di();this.g=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().Gb,"Data Arrangement Shape","Base shape class for any data shape that contains a nested collection of data shapes",
G());return this};d.NB=function(a){this.Sd=a};d.Ce=function(a){this.Hb=a};d.QB=function(a){this.bh=a};d.Yc=function(){};d.Uz=function(a){this.Jj=a};d.op=function(a){this.Je=a};d.lG=function(a){this.ja=a};d.sc=function(){return this.g};d.np=function(a){this.wd=a};d.Vz=function(a){this.gd=a};d.hy=function(a){this.Vc=a};d.MB=function(a){this.nc=a};d.bA=function(a){this.oa=a};d.Wz=function(a){this.ld=a};d.Rz=function(a){this.Th=a};d.$l=function(a){this.fb=a};d.Yz=function(a){this.ki=a};
d.Sz=function(a){this.Eo=a};d.OB=function(a){this.Lj=a};d.aA=function(a){this.Xh=a};d.$z=function(a){this.Kg=a};d.Zz=function(a){this.Vh=a};d.Xz=function(a){this.$=a};d.Tz=function(a){this.vh=a};function mwb(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.fb=this.Qx=this.Rx=this.oa=this.ki=this.Xh=this.Th=this.Vh=this.ld=this.Eo=this.Kg=this.Jj=this.vh=this.gd=this.$=this.nc=this.Lj=this.Sd=this.Vc=this.bh=this.wn=this.Aa=this.g=this.ja=null;this.ma=0}mwb.prototype=new r;
mwb.prototype.constructor=mwb;d=mwb.prototype;d.pp=function(a){this.ef=a};d.kG=function(a){this.wn=a};d.qp=function(a){this.kg=a};d.a=function(){nwb=this;Iq(this);cT(this);YK(this);Ob(this);r7(this);XK(this);Ji(this);Fi(this);j9(this);Di();var a=C().Gb,a=(new J).aa([D(new F,a,"NilShape")]),b=Di().s,a=Ei(a,b),b=Pg().ja,c=Di();this.ja=a.la(b,c.s);this.g=th().g;this.Aa=Tb(new Ub,Vb().Gb,"Nil Shape","Data shape representing the null/nil value in the input schema",G());return this};
d.NB=function(a){this.Sd=a};d.Ce=function(a){this.Hb=a};d.QB=function(a){this.bh=a};d.Yc=function(){};d.Uz=function(a){this.Jj=a};d.op=function(a){this.Je=a};d.lG=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.np=function(a){this.wd=a};d.Vz=function(a){this.gd=a};d.hy=function(a){this.Vc=a};d.MB=function(a){this.nc=a};d.bA=function(a){this.oa=a};d.Wz=function(a){this.ld=a};d.Rz=function(a){this.Th=a};d.$l=function(a){this.fb=a};
d.Zc=function(){M();var a=(new N).a();return(new ii).P((new Q).a(),a)};d.Yz=function(a){this.ki=a};d.Sz=function(a){this.Eo=a};d.ec=function(){return this.ja};d.OB=function(a){this.Lj=a};d.aA=function(a){this.Xh=a};d.yC=function(){M();var a=(new N).a();return(new ii).P((new Q).a(),a)};d.$z=function(a){this.Kg=a};d.Zz=function(a){this.Vh=a};d.Xz=function(a){this.$=a};d.Tz=function(a){this.vh=a};
d.$classData=q({k_a:0},!1,"amf.plugins.domain.shapes.metamodel.NilShapeModel$",{k_a:1,f:1,LD:1,xw:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,ul:1,Bz:1,Aw:1,Ez:1});var nwb=void 0;function sfa(){nwb||(nwb=(new mwb).a());return nwb}
function owb(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.fb=this.Qx=this.Rx=this.oa=this.ki=this.Xh=this.Th=this.Vh=this.ld=this.Eo=this.Kg=this.Jj=this.vh=this.gd=this.$=this.nc=this.Lj=this.Sd=this.Vc=this.bh=this.wn=this.Aa=this.ja=this.g=this.uo=this.wD=this.Rg=this.VI=this.rz=this.dt=this.HF=this.Pk=this.Cw=this.Dw=null;this.ma=0}owb.prototype=new r;owb.prototype.constructor=owb;d=owb.prototype;d.pp=function(a){this.ef=a};d.kG=function(a){this.wn=a};
d.qp=function(a){this.kg=a};
d.a=function(){pwb=this;Iq(this);cT(this);YK(this);Ob(this);r7(this);XK(this);Ji(this);Fi(this);j9(this);var a=Zc(),b=C().Gb;this.Dw=Rb(new Sb,a,D(new F,b,"minProperties"),Tb(new Ub,Vb().Gb,"min properties","Minimum number of properties in the input node constraint",G()));a=Zc();b=C().Gb;this.Cw=Rb(new Sb,a,D(new F,b,"maxProperties"),Tb(new Ub,Vb().Gb,"max properties","Maximum number of properties in the input node constraint",G()));a=Yc();b=C().cb;this.Pk=Rb(new Sb,a,D(new F,b,"closed"),Tb(new Ub,
Bi().cb,"closed","Additional properties in the input node accepted constraint",G()));a=Pg();b=C().cb;this.HF=Rb(new Sb,a,D(new F,b,"additionalPropertiesSchema"),Tb(new Ub,Bi().cb,"additional properties schema","",G()));a=Pb();b=C().Gb;this.dt=Rb(new Sb,a,D(new F,b,"discriminator"),Tb(new Ub,Vb().Gb,"discriminator","Discriminator property",G()));a=Pb();b=C().Gb;this.rz=Rb(new Sb,a,D(new F,b,"discriminatorValue"),Tb(new Ub,Vb().Gb,"discriminator value","Values for the discriminator property",G()));
a=(new Ki).Ld(so());b=C().Gb;this.VI=Rb(new Sb,a,D(new F,b,"discriminatorMapping"),Tb(new Ub,Vb().Gb,"discriminator mapping","Mappping of acceptable values for the ndoe discriminator",G()));a=(new Ki).Ld(rj());b=C().cb;this.Rg=Rb(new Sb,a,D(new F,b,"property"),Tb(new Ub,Bi().cb,"property","Properties associated to this node",G()));a=(new Ki).Ld(jo());b=C().Gb;this.wD=Rb(new Sb,a,D(new F,b,"dependencies"),Tb(new Ub,Vb().Gb,"dependencies","Dependent properties constraint",G()));Di();var a=(new J).aa([this.Dw,
this.Cw,this.Pk,this.HF,this.dt,this.rz,this.VI,this.Rg,this.wD]),b=Di().s,a=this.uo=Ei(a,b),b=th().g,c=Di(),a=a.la(b,c.s),b=Lc().g,c=Di();this.g=a.la(b,c.s);Di();a=C().cb;a=(new J).aa([D(new F,a,"NodeShape")]);b=Di().s;a=Ei(a,b);b=th().ja;c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().Gb,"Node Shape","Shape that validates a record of fields, like a JS object",G());return this};d.NB=function(a){this.Sd=a};d.Ce=function(a){this.Hb=a};d.QB=function(a){this.bh=a};d.Yc=function(){};
d.Uz=function(a){this.Jj=a};d.op=function(a){this.Je=a};d.lG=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.np=function(a){this.wd=a};d.Vz=function(a){this.gd=a};d.hy=function(a){this.Vc=a};d.MB=function(a){this.nc=a};d.bA=function(a){this.oa=a};d.Wz=function(a){this.ld=a};d.Rz=function(a){this.Th=a};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a();return(new si).P((new Q).a(),a)};d.Yz=function(a){this.ki=a};d.Sz=function(a){this.Eo=a};d.ec=function(){return this.ja};
d.OB=function(a){this.Lj=a};d.aA=function(a){this.Xh=a};d.yC=function(){M();var a=(new N).a();return(new si).P((new Q).a(),a)};d.$z=function(a){this.Kg=a};d.Zz=function(a){this.Vh=a};d.Xz=function(a){this.$=a};d.Tz=function(a){this.vh=a};d.$classData=q({l_a:0},!1,"amf.plugins.domain.shapes.metamodel.NodeShapeModel$",{l_a:1,f:1,LD:1,xw:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,ul:1,Bz:1,Aw:1,Ez:1});var pwb=void 0;function ci(){pwb||(pwb=(new owb).a());return pwb}
function qwb(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.fb=this.Qx=this.Rx=this.oa=this.ki=this.Xh=this.Th=this.Vh=this.ld=this.Eo=this.Kg=this.Jj=this.vh=this.gd=this.$=this.nc=this.Lj=this.Sd=this.Vc=this.bh=this.wn=this.Aa=this.ja=this.g=this.uo=this.Ee=null;this.ma=0}qwb.prototype=new r;qwb.prototype.constructor=qwb;d=qwb.prototype;d.pp=function(a){this.ef=a};d.kG=function(a){this.wn=a};d.qp=function(a){this.kg=a};
d.a=function(){rwb=this;Iq(this);cT(this);YK(this);Ob(this);r7(this);XK(this);Ji(this);Fi(this);j9(this);var a=(new Ki).Ld(Pg()),b=C().Gb;this.Ee=Rb(new Sb,a,D(new F,b,"anyOf"),Tb(new Ub,Vb().Gb,"any of","Data shapes in the union",G()));Di();var a=(new J).aa([this.Ee]),b=Di().s,a=this.uo=Ei(a,b),b=th().g,c=Di(),a=a.la(b,c.s),b=Lc().g,c=Di();this.g=a.la(b,c.s);Di();a=C().Gb;a=(new J).aa([D(new F,a,"UnionShape")]);b=Di().s;a=Ei(a,b);b=th().ja;c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().Gb,"Union Shape",
"Shape representing the union of many alternative data shapes",G());return this};d.NB=function(a){this.Sd=a};d.Ce=function(a){this.Hb=a};d.QB=function(a){this.bh=a};d.Yc=function(){};d.Uz=function(a){this.Jj=a};d.op=function(a){this.Je=a};d.lG=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.np=function(a){this.wd=a};d.Vz=function(a){this.gd=a};d.hy=function(a){this.Vc=a};d.MB=function(a){this.nc=a};d.bA=function(a){this.oa=a};d.Wz=function(a){this.ld=a};
d.Rz=function(a){this.Th=a};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a();return(new ti).P((new Q).a(),a)};d.Yz=function(a){this.ki=a};d.Sz=function(a){this.Eo=a};d.ec=function(){return this.ja};d.OB=function(a){this.Lj=a};d.aA=function(a){this.Xh=a};d.yC=function(){M();var a=(new N).a();return(new ti).P((new Q).a(),a)};d.$z=function(a){this.Kg=a};d.Zz=function(a){this.Vh=a};d.Xz=function(a){this.$=a};d.Tz=function(a){this.vh=a};
d.$classData=q({q_a:0},!1,"amf.plugins.domain.shapes.metamodel.UnionShapeModel$",{q_a:1,f:1,LD:1,xw:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,ul:1,Bz:1,Aw:1,Ez:1});var rwb=void 0;function lo(){rwb||(rwb=(new qwb).a());return rwb}function Wj(a){return HF(a)?a.kb().Sa():a.jb(0)}function w9(a,b){return a.Ka()-b|0}function x9(a,b){if(b&&b.$classData&&b.$classData.v.kn){var c=a.Ka();if(c===b.Ka()){for(var e=0;e<c&&ub(vb(),a.jb(e),b.jb(e));)e=1+e|0;return e===c}return!1}return W8(a,b)}
function y9(a,b){return swb(a,b,!1)!==a.Ka()}function HF(a){return 0===a.Ka()}function swb(a,b,c){for(var e=0;e<a.Ka()&&!!b.R(a.jb(e))===c;)e=1+e|0;return e}function z9(a,b){return a.ck(A9(a,b,0))}function B9(a,b){return swb(a,b,!0)===a.Ka()}function C9(a,b){for(var c=0,e=a.Ka();c<e;)b.R(a.jb(c)),c=1+c|0}function D9(a,b,c){c=0<c?c:0;for(var e=a.Ka(),f=c;;){if(f<e)var g=a.jb(f),g=!b.R(g);else g=!1;if(g)f=1+f|0;else break}b=c+(f-c|0)|0;return b>=a.Ka()?-1:b}function E9(a,b){return a.Wj(A9(a,b,0))}
function F9(a,b,c){b=0<b?b:0;c=0<c?c:0;var e=a.Ka();c=c<e?c:e;var e=c-b|0,f=0<e?e:0,e=a.Ed();for(e.Gh(f);b<c;)e.Ic(a.jb(b)),b=1+b|0;return e.lc()}function VY(a){var b=a.Ed();b.Gh(a.Ka());for(var c=a.Ka();0<c;)c=-1+c|0,b.Ic(a.jb(c));return b.lc()}function G9(a,b){for(var c=a.Ka(),e=0;;){if(e<c)var f=a.jb(e),f=!b.R(f);else f=!1;if(f)e=1+e|0;else break}b=e;return b<a.Ka()?(new A).d(a.jb(b)):w()}function H9(a,b){return a.br(A9(a,b,0))}
function I9(a,b){b=b.Vn(a.Ji());var c=a.Ka();b.Gh(c);for(var e=0;e<c;)b.Ic((new P).N(a.jb(e),e)),e=1+e|0;return b.lc()}function J9(a,b,c,e){for(;;){if(0===b)return c;var f=-1+b|0;c=e.zf(a.jb(-1+b|0),c);b=f}}function B2(a,b){return(new P).N(a.Wj(b),a.ck(b))}function ld(a){return 0<a.Ka()?a.jb(-1+a.Ka()|0):a.Xq()}function K9(a,b,c,e,f){for(;;){if(b===c)return e;var g=1+b|0;e=f.zf(e,a.jb(b));b=g}}function tu(a){return HF(a)?a.Yq():a.lq(1,a.Ka())}
function L9(a,b,c,e){var f=0,g=c,h=a.Ka();e=h<e?h:e;c=DI(W(),b)-c|0;for(c=e<c?e:c;f<c;)pCa(W(),b,g,a.jb(f)),f=1+f|0,g=1+g|0}function A9(a,b,c){for(var e=a.Ka(),f=c;f<e&&b.R(a.jb(f));)f=1+f|0;return f-c|0}function Lca(a,b){return a.lq(0,a.Ka()-(0<b?b:0)|0)}function M9(a,b){if(0<a.Ka()){var c=a.Ka(),e=a.jb(0);return K9(a,1,c,e,b)}return JI(a,b)}function Ot(a,b){if(0>b)b=1;else a:{var c=0;for(;;){if(c===b){b=a.b()?0:1;break a}if(a.b()){b=-1;break a}c=1+c|0;a=a.sa()}}return b}
function Pt(a,b){a=a.b0(b);if(0>b||a.b())throw(new X).e(""+b);return a.fa()}function twb(a,b){for(;!a.b();){if(b.R(a.fa()))return!0;a=a.sa()}return!1}function uwb(a,b){if(b&&b.$classData&&b.$classData.v.DW){if(a===b)return!0;for(;!a.b()&&!b.b()&&ub(vb(),a.fa(),b.fa());)a=a.sa(),b=b.sa();return a.b()&&b.b()}return W8(a,b)}function vwb(a,b){for(;!a.b();){if(!b.R(a.fa()))return!1;a=a.sa()}return!0}function wwb(a,b,c){for(;!a.b();)b=c.zf(b,a.fa()),a=a.sa();return b}
function xwb(a,b,c){var e=0<c?c:0;for(a=a.b0(c);;)if(Tc(a)){if(b.R(a.fa()))return e;e=1+e|0;a=a.sa()}else break;return-1}function ywb(a,b){for(;!a.b();){if(b.R(a.fa()))return(new A).d(a.fa());a=a.sa()}return w()}function Fp(a){for(var b=0;!a.b();)b=1+b|0,a=a.sa();return b}function Rs(a){if(a.b())throw(new PH).a();for(var b=a.sa();!b.b();)a=b,b=b.sa();return a.fa()}function uh(a,b){for(;!a.b();){if(ub(vb(),a.fa(),b))return!0;a=a.sa()}return!1}function zwb(a,b){return 0<=b&&0<Ot(a,b)}
function Awb(a,b){if(a.b())throw(new Gt).e("empty.reduceLeft");return a.sa().ae(a.fa(),b)}function Bwb(a){var b=(new pk).$d(a.lb());a.X(t(new u,function(a,b){return function(a){return T(b,a)}}(a,b)));return b}function xx(a){if(a.b())return Zf().G9.sJ;Zf();var b=(new zq).a();a.X(t(new u,function(a,b){return function(a){return b.Ic(a)}}(a,b)));return Bq(b)}function Cwb(a,b){return b.td().rl(a,qd(function(){return function(a,b){return a.Ij(b)}}(a)))}
function Dwb(a){var b=(new ck).a();try{return a.X(t(new u,function(a,b){return function(a){throw(new Ax).N(b,(new A).d(a));}}(a,b))),w()}catch(c){if(Bx(c)&&c.Da===b)return c.Qt();throw c;}}function Ewb(a){var b=(new mk).rs(!0),c=(new Qd).d(null);a.X(t(new u,function(a,b,c){return function(a){b.ta=!1;c.ta=a}}(a,b,c)));if(b.ta)throw(new PH).e("last of empty traversable");return c.ta}function Sn(){Qn.call(this);this.ti=null}Sn.prototype=new vsb;Sn.prototype.constructor=Sn;function Fwb(){}
d=Fwb.prototype=Sn.prototype;d.L=function(){return"ArrayShape"};d.a=function(){M();var a=(new N).a();Sn.prototype.MK.call(this,(new ri).P((new Q).a(),a));return this};d.qg=function(){return this.ti};d.H=function(){return 1};d.MK=function(a){this.ti=a;Qn.prototype.vy.call(this,a);return this};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.BY){var b=this.ti;a=a.ti;return null===b?null===a:b.h(a)}return!1};d.Jd=function(){return this.ti};
d.K=function(a){switch(a){case 0:return this.ti;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.Sh=function(){return this.ti};d.Ao=function(){return Gwb(this)};d.ws=function(){return Gwb(this)};d.M4=function(){S();var a=B(this.ti.ea,Wh().wf);return AS(S().wj(),a)};d.Fd=function(){return this.ti};function Gwb(a){a=a.ti;M();var b=(new N).a(),b=(new ri).P((new Q).a(),b);return(new Sn).MK(Te(b,a.k))}d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.RE=function(){return Gwb(this)};
d.cga=function(a){Wy(this.ti,(S(),S().wj(),a.qg()));return this};d.yga=function(a){return this.cga(a)};Sn.prototype.withItems=function(a){return this.yga(a)};Object.defineProperty(Sn.prototype,"items",{get:function(){return this.M4()},configurable:!0});Sn.prototype.$classData=q({BY:0},!1,"amf.client.model.domain.ArrayShape",{BY:1,hia:1,rB:1,f:1,yz:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1,A:1,w:1,q:1,n:1});function Vn(){Qn.call(this);this.ti=null}Vn.prototype=new vsb;Vn.prototype.constructor=Vn;d=Vn.prototype;
d.a=function(){M();var a=(new N).a();Vn.prototype.$Aa.call(this,(new Ri).P((new Q).a(),a));return this};d.L=function(){return"TupleShape"};d.qg=function(){return this.ti};d.H=function(){return 1};d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.aja){var b=this.ti;a=a.ti;return null===b?null===a:b.h(a)}return!1};d.Jd=function(){return this.ti};d.K=function(a){switch(a){case 0:return this.ti;default:throw(new X).e(""+a);}};
function Hwb(a){S();a=a.ti;M();var b=(new N).a(),b=(new Ri).P((new Q).a(),b);a=Te(b,a.k);b=S();if(null===S().PZ&&null===S().PZ){var c=S(),e=new R_;if(null===b)throw Lb(Mb(),null);e.l=b;c.PZ=e}b=S().PZ;return dt(b.l.na,a)}d.u=function(){return U(W(),this)};d.Sh=function(){return this.ti};d.Ao=function(){return Hwb(this)};d.$Aa=function(a){this.ti=a;Qn.prototype.vy.call(this,a);return this};d.ws=function(){return Hwb(this)};
d.M4=function(){var a=S(),b=B(this.ti.ea,Un().Np),c=S().wj();return Il(a,b,c).sb()};d.Fd=function(){return this.ti};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.RE=function(){return Hwb(this)};Vn.prototype.withAdditionalItems=function(a){a=!!a;var b=this.ti,c=Un().AR;dj(b,c,a);return this};Object.defineProperty(Vn.prototype,"additionalItems",{get:function(){S();var a=B(this.ti.ea,Un().AR);S().sl();return tK(a)},configurable:!0});
Vn.prototype.withItems=function(a){var b=this.ti,c=S(),e=S().wj();a=ml(nl(new ol,c,a,e));c=Un().Np;qf(b,c,a);return this};Object.defineProperty(Vn.prototype,"items",{get:function(){return this.M4()},configurable:!0});Vn.prototype.$classData=q({aja:0},!1,"amf.client.model.domain.TupleShape",{aja:1,hia:1,rB:1,f:1,yz:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1,A:1,w:1,q:1,n:1});function mN(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}mN.prototype=new r;mN.prototype.constructor=mN;d=mN.prototype;d.L=function(){return"Dialect"};
function nQa(a){var b=z(),c=[a.wu()],b=H(b,(new J).aa(c)),c=lvb(a).wa(),e=z(),b=b.la(c,e.s),c=kvb(a),e=z(),b=b.la(c,e.s),c=z();a=[btb(a)];a=H(c,(new J).aa(a));c=z();return b.la(a,c.s)}d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:TA(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};
d.Uc=function(a){return Te(this,a)};d.rc=function(){return ed()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return B(this.g,ed().qc)};function Zsb(a,b){return kvb(a).Ja(b.split(" ").join(""))}d.Yb=function(){return jd(this)};d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ak=function(){return B(this.g,ed().Mc)};function atb(a,b){return lvb(a).Ja(b.split(" ").join(""))}
function mK(a){var b=B(a.g,ed().$).G,b=b.b()?null:b.c();a=B(a.g,ed().Tm).G;return b+" "+(a.b()?null:a.c())}function btb(a){a=a.wu();a=(new ph).e(a);return"%Patch/"+Zo(a,"%")}function kvb(a){var b=B(B(a.g,ed().vj).g,fd().tz);a=t(new u,function(a){return function(b){b=B(b.g,OA().Sx).G;b=(b.b()?null:b.c()).split(" ").join("");var c=a.wu(),c=(new ph).e(c);return"%"+b+"/"+Zo(c,"%")}}(a));var c=z();return b.ka(a,c.s)}d.ca=function(){return this.g};d.wu=function(){return("%"+mK(this)).split(" ").join("")};
d.ze=function(){return B(this.g,ed().ob)};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};function lvb(a){var b=Wa(),c=B(a.g,ed().vj),b=b.Ia(B(c.g,fd().ay));if(b.b())return w();b.c();a=a.wu();a=(new ph).e(a);return(new A).d("%Library/"+Zo(a,"%"))}d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function TA(a){return!!(a&&a.$classData&&a.$classData.v.hma)}
d.$classData=q({hma:0},!1,"amf.plugins.document.vocabularies.model.document.Dialect",{hma:1,f:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,fJ:1,uB:1,mr:1,z7:1,A:1,w:1,q:1,n:1});function A5(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}A5.prototype=new r;A5.prototype.constructor=A5;d=A5.prototype;d.L=function(){return"DialectInstanceFragment"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:cB(a)?this.g===a.g?this.E===a.E:!1:!1};
d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return bB()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return B(this.g,ZA().qc)};d.Yb=function(){return jd(this)};d.Lm=function(a,b,c){return J0(this,a,b,c)};d.H0=function(){return B(this.g,ZA().lr)};d.ca=function(){return this.g};
d.J$=function(){};d.ze=function(){return B(this.g,ZA().ob)};d.y=function(){return Y(this)};d.S_=function(){return B(this.g,ZA().Rf)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);Yba(this);return this};function cB(a){return!!(a&&a.$classData&&a.$classData.v.kma)}
d.$classData=q({kma:0},!1,"amf.plugins.document.vocabularies.model.document.DialectInstanceFragment",{kma:1,f:1,MY:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,fJ:1,mr:1,gma:1,A:1,w:1,q:1,n:1});function B5(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}B5.prototype=new r;B5.prototype.constructor=B5;d=B5.prototype;d.L=function(){return"DialectInstanceLibrary"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};
d.h=function(a){return this===a?!0:Nqa(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return Mqa()};d.u=function(){return U(W(),this)};d.ha=function(){return this.E};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return B(this.g,ZA().qc)};d.Yb=function(){return jd(this)};
d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ak=function(){return B(this.g,ZA().Mc)};d.H0=function(){return B(this.g,ZA().lr)};d.ca=function(){return this.g};d.J$=function(){};d.y=function(){return Y(this)};d.S_=function(){return B(this.g,ZA().Rf)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);Yba(this);return this};function Nqa(a){return!!(a&&a.$classData&&a.$classData.v.lma)}
d.$classData=q({lma:0},!1,"amf.plugins.document.vocabularies.model.document.DialectInstanceLibrary",{lma:1,f:1,MY:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,fJ:1,uB:1,gma:1,A:1,w:1,q:1,n:1});function Z6(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}Z6.prototype=new r;Z6.prototype.constructor=Z6;d=Z6.prototype;d.L=function(){return"DialectInstancePatch"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};
d.h=function(a){return this===a?!0:gHa(a)?this.g===a.g?this.E===a.E:!1:!1};d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return cHa()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return B(this.g,ZA().qc)};d.Yb=function(){return jd(this)};
d.Lm=function(a,b,c){return J0(this,a,b,c)};d.ak=function(){return B(this.g,ZA().Mc)};d.H0=function(){return B(this.g,ZA().lr)};d.ca=function(){return this.g};d.ze=function(){return B(this.g,ZA().ob)};d.y=function(){return Y(this)};d.S_=function(){return B(this.g,ZA().Rf)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);return this};function gHa(a){return!!(a&&a.$classData&&a.$classData.v.mma)}
d.$classData=q({mma:0},!1,"amf.plugins.document.vocabularies.model.document.DialectInstancePatch",{mma:1,f:1,MY:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,fJ:1,uB:1,mr:1,A:1,w:1,q:1,n:1});function kN(){this.ct=this.mt=this.$=this.E=this.g=null;this.$h=this.Zg=!1;this.k=this.mb=this.zk=this.Jk=this.mk=this.Zi=this.Nk=null;this.ma=!1}kN.prototype=new r;kN.prototype.constructor=kN;d=kN.prototype;d.L=function(){return"UnionNodeMapping"};d.Ub=function(){return H(z(),G())};d.Zu=function(a){this.Nk=a};d.H=function(){return 2};
d.k_=function(a){this.$=a};d.Qb=function(a){return cj(this,a)};d.es=function(){};d.It=function(a){this.Zi=a};d.h=function(a){return this===a?!0:bg(a)?this.g===a.g?this.E===a.E:!1:!1};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.El=function(){M();var a=(new N).a(),a=(new kN).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return cg()};d.Mq=function(){return H(z(),G())};d.ha=function(){return this.E};
d.u=function(){return U(W(),this)};d.lu=function(a){this.Zg=a};d.Nt=function(){return this.Zg};d.Nd=function(){var a=B(this.g,this.$).G,a=a.b()?null:a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};d.Hu=function(){};d.Is=function(a,b,c,e){return fL(this,a,b,c,e)};d.bf=function(){return this.ma?this.mb:this.Hd()};d.Yb=function(){return Yb(this)};d.gk=function(a,b){return gL(this,a,b)};d.PN=function(a){this.mt=a};d.Qk=function(){return qd(function(){return function(a,b){return(new kN).P(a,b)}}(this))};
d.Hd=function(){this.ma||(this.mb=N0(this),this.ma=!0);return this.mb};d.ca=function(){return this.g};d.Ht=function(a){this.Jk=a};d.ON=function(a){this.ct=a};d.Up=function(a){return Px(this,a)};d.y=function(){return Y(this)};d.Gt=function(a){this.mk=a};d.zt=function(a){this.$h=a};d.dga=function(a){return Eb(this,this.$,a)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.ku=function(a){this.zk=a};d.P=function(a,b){this.g=a;this.E=b;hL(this);Ud(this);Wba(this);return this};
function bg(a){return!!(a&&a.$classData&&a.$classData.v.yma)}d.$classData=q({yma:0},!1,"amf.plugins.document.vocabularies.model.domain.UnionNodeMapping",{yma:1,f:1,de:1,Wc:1,Rc:1,Pi:1,sma:1,eS:1,fSa:1,tma:1,y7:1,A:1,w:1,q:1,n:1});function bQ(){u9.call(this);this.fr=this.Km=this.Oh=this.ym=null}bQ.prototype=new awb;bQ.prototype.constructor=bQ;d=bQ.prototype;
d.Vk=function(a,b,c,e,f,g,h){this.ym=f;u9.prototype.Vk.call(this,a,b,c,e,g,f,h);this.Oh=(new PU).qs(this);a=new $Ha;a.dh=pc(fc().db,G());this.Km=a;this.fr=ih();return this};d.Pg=function(){return this.fr};d.tp=function(){return this.ym};d.mT=function(a){return(new bQ).Vk(this.Xg,this.yf,this.yQ,(new A).d(a),this.ym,w(),py().On)};d.$classData=q({OTa:0},!1,"amf.plugins.document.webapi.contexts.PayloadContext",{OTa:1,hJ:1,wB:1,au:1,f:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1,TF:1,Fb:1,gS:1});
function mz(){u9.call(this);this.Km=this.fr=this.Oh=this.ym=null}mz.prototype=new awb;mz.prototype.constructor=mz;function Iwb(){}d=Iwb.prototype=mz.prototype;d.Vk=function(a,b,c,e,f,g,h){this.ym=g;u9.prototype.Vk.call(this,a,b,c,e,f,g,h);this.Oh=(new kSa).qs(this);this.fr=oc();sUa||(sUa=(new kW).a());this.Km=sUa;return this};d.wGa=function(){return!1};d.Pg=function(){return this.fr};d.tp=function(){return this.ym};
d.mT=function(a){var b=this.Xg,c=this.yf,e=this.yQ;a=(new A).d(a);var f=this.ym,g=w(),h=py().On;return(new mz).Vk(b,c,e,a,g,f,h)};function UJa(a){return!!(a&&a.$classData&&a.$classData.v.M7)}d.$classData=q({M7:0},!1,"amf.plugins.document.webapi.contexts.Raml08WebApiContext",{M7:1,hJ:1,wB:1,au:1,f:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1,TF:1,Fb:1,gS:1});function oy(){u9.call(this);this.Km=this.fr=this.Oh=this.ym=null}oy.prototype=new awb;oy.prototype.constructor=oy;function Jwb(){}d=Jwb.prototype=oy.prototype;
d.qHa=function(){return this.yQ};d.Vk=function(a,b,c,e,f,g,h){this.ym=g;u9.prototype.Vk.call(this,a,b,c,e,f,g,h);this.Oh=(new PU).qs(this);this.fr=nc();tUa||(tUa=(new lW).a());this.Km=tUa;return this};d.Pg=function(){return this.fr};d.tp=function(){return this.ym};d.mT=function(a){var b=this.Xg,c=this.yf,e=this.qHa();a=(new A).d(a);var f=this.ym,g=w(),h=py().On;return(new oy).Vk(b,c,e,a,g,f,h)};
d.$classData=q({N7:0},!1,"amf.plugins.document.webapi.contexts.Raml10WebApiContext",{N7:1,hJ:1,wB:1,au:1,f:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1,TF:1,Fb:1,gS:1});function L3(){Ig.call(this);this.RS=this.aU=null}L3.prototype=new $vb;L3.prototype.constructor=L3;d=L3.prototype;d.rc=function(){return lfa()};d.ha=function(){return this.RS};d.ca=function(){return this.aU};d.P=function(a,b){this.aU=a;this.RS=b;Ig.prototype.P.call(this,a,b);return this};
function Pm(a){return!!(a&&a.$classData&&a.$classData.v.nna)}d.$classData=q({nna:0},!1,"amf.plugins.document.webapi.model.Extension",{nna:1,gka:1,IY:1,f:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,mr:1,uB:1,A:1,w:1,q:1,n:1});function M3(){Ig.call(this);this.RS=this.aU=null}M3.prototype=new $vb;M3.prototype.constructor=M3;d=M3.prototype;d.rc=function(){return mfa()};d.ha=function(){return this.RS};d.ca=function(){return this.aU};d.P=function(a,b){this.aU=a;this.RS=b;Ig.prototype.P.call(this,a,b);return this};
function Rm(a){return!!(a&&a.$classData&&a.$classData.v.pna)}d.$classData=q({pna:0},!1,"amf.plugins.document.webapi.model.Overlay",{pna:1,gka:1,IY:1,f:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,mr:1,uB:1,A:1,w:1,q:1,n:1});function YN(){iB.call(this);this.zs=this.me=this.Hn=null}YN.prototype=new Fob;YN.prototype.constructor=YN;d=YN.prototype;d.L=function(){return"ErrorNamedExample"};d.xH=function(){return this.zs};d.H=function(){return 2};
d.h=function(a){if(this===a)return!0;if(a&&a.$classData&&a.$classData.v.vna&&this.Hn===a.Hn){var b=this.me;a=a.me;return null===b?null===a:b.h(a)}return!1};d.Uc=function(a){return XU(this,a)};d.K=function(a){switch(a){case 0:return this.Hn;case 1:return this.me;default:throw(new X).e(""+a);}};d.u=function(){return U(W(),this)};d.jG=function(a){return Te(this,a)};
d.Rq=function(a,b){this.Hn=a;this.me=b;iB.prototype.P.call(this,(new Q).a(),Ke(M(),b));this.zs="http://amferror.com/#errorNamedExample/";XU(this,a);return this};d.y=function(){return Y(this)};d.M=function(){return Z(this)};d.$classData=q({vna:0},!1,"amf.plugins.document.webapi.parser.spec.WebApiDeclarations$ErrorNamedExample",{vna:1,f8:1,f:1,Jh:1,de:1,Wc:1,Rc:1,Pi:1,yw:1,yVa:1,VF:1,A:1,w:1,q:1,n:1});function Kwb(){v9.call(this);this.yG=this.hw=null}Kwb.prototype=new lwb;
Kwb.prototype.constructor=Kwb;d=Kwb.prototype;d.a=function(){v9.prototype.a.call(this);Lwb=this;Di();var a=C().Gb,a=(new J).aa([D(new F,a,"ArrayShape")]),b=Di().s,a=Ei(a,b),b=th().ja,c=Di();this.hw=a.la(b,c.s);this.yG=Tb(new Ub,Vb().Gb,"Array Shape","Shape that contains a nested collection of data shapes",G());return this};d.Tc=function(){return this.yG};d.Zc=function(){M();var a=(new N).a();return(new ri).P((new Q).a(),a)};d.yC=function(){M();var a=(new N).a();return(new ri).P((new Q).a(),a)};
d.ec=function(){return this.hw};d.$classData=q({e_a:0},!1,"amf.plugins.domain.shapes.metamodel.ArrayShapeModel$",{e_a:1,Fva:1,f:1,LD:1,xw:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,ul:1,Bz:1,Aw:1,Ez:1});var Lwb=void 0;function Wh(){Lwb||(Lwb=(new Kwb).a());return Lwb}
function Mwb(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.fb=this.Qx=this.Rx=this.oa=this.ki=this.Xh=this.Th=this.Vh=this.ld=this.Eo=this.Kg=this.Jj=this.vh=this.gd=this.$=this.nc=this.Lj=this.Sd=this.Vc=this.bh=this.wn=this.sT=this.nv=this.sn=this.Ux=this.Vx=this.ij=this.jj=this.Aq=this.Cq=this.vl=this.Aa=this.ja=this.g=this.uo=this.pB=null;this.ma=0}Mwb.prototype=new r;Mwb.prototype.constructor=Mwb;d=Mwb.prototype;d.pp=function(a){this.ef=a};d.kG=function(a){this.wn=a};
d.qp=function(a){this.kg=a};
d.a=function(){Nwb=this;Iq(this);cT(this);YK(this);Ob(this);r7(this);XK(this);Ji(this);Fi(this);j9(this);ada(this);var a=(new Ki).Ld(Pb()),b=C().Gb;this.pB=Rb(new Sb,a,D(new F,b,"fileType"),Tb(new Ub,Vb().Gb,"file type","Type of file described by this shape",G()));Di();var a=(new J).aa([this.pB]),b=Di().s,a=this.uo=Ei(a,b),b=this.sT,c=Di(),a=a.la(b,c.s),b=th().g,c=Di(),a=a.la(b,c.s),b=Lc().g,c=Di();this.g=a.la(b,c.s);Di();a=C().Gb;a=(new J).aa([D(new F,a,"FileShape")]);b=Di().s;a=Ei(a,b);b=th().ja;
c=Di();this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().Gb,"File Shape","Shape describing data uploaded in an API request",G());return this};d.NB=function(a){this.Sd=a};d.iya=function(a){this.Aq=a};d.hya=function(a){this.sn=a};d.gya=function(a){this.Vx=a};d.Ce=function(a){this.Hb=a};d.QB=function(a){this.bh=a};d.fya=function(a){this.Ux=a};d.Yc=function(){};d.nya=function(a){this.vl=a};d.Uz=function(a){this.Jj=a};d.lya=function(a){this.jj=a};d.op=function(a){this.Je=a};d.mya=function(a){this.nv=a};
d.lG=function(){};d.kya=function(a){this.Cq=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.jya=function(a){this.ij=a};d.np=function(a){this.wd=a};d.Vz=function(a){this.gd=a};d.hy=function(a){this.Vc=a};d.oya=function(a){this.sT=a};d.MB=function(a){this.nc=a};d.bA=function(a){this.oa=a};d.Wz=function(a){this.ld=a};d.Rz=function(a){this.Th=a};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a();return(new ui).P((new Q).a(),a)};d.Yz=function(a){this.ki=a};
d.Sz=function(a){this.Eo=a};d.OB=function(a){this.Lj=a};d.ec=function(){return this.ja};d.aA=function(a){this.Xh=a};d.yC=function(){M();var a=(new N).a();return(new ui).P((new Q).a(),a)};d.$z=function(a){this.Kg=a};d.Zz=function(a){this.Vh=a};d.Xz=function(a){this.$=a};d.Tz=function(a){this.vh=a};d.$classData=q({i_a:0},!1,"amf.plugins.domain.shapes.metamodel.FileShapeModel$",{i_a:1,f:1,LD:1,xw:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,ul:1,Bz:1,Aw:1,Ez:1,f_a:1});var Nwb=void 0;
function ao(){Nwb||(Nwb=(new Mwb).a());return Nwb}function Owb(){v9.call(this);this.yG=this.hw=null}Owb.prototype=new lwb;Owb.prototype.constructor=Owb;d=Owb.prototype;d.a=function(){v9.prototype.a.call(this);Pwb=this;Di();var a=C().Gb,a=D(new F,a,"MatrixShape"),b=C().Gb,a=(new J).aa([a,D(new F,b,"ArrayShape")]),b=Di().s,a=Ei(a,b),b=th().ja,c=Di();this.hw=a.la(b,c.s);this.yG=Tb(new Ub,Vb().Gb,"Matrix Shape","Data shape containing nested multi-dimensional collection shapes",G());return this};
d.Tc=function(){return this.yG};d.Zc=function(){M();var a=(new N).a();return(new Pi).P((new Q).a(),a)};d.yC=function(){M();var a=(new N).a();return(new Pi).P((new Q).a(),a)};d.ec=function(){return this.hw};d.$classData=q({j_a:0},!1,"amf.plugins.domain.shapes.metamodel.MatrixShapeModel$",{j_a:1,Fva:1,f:1,LD:1,xw:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,ul:1,Bz:1,Aw:1,Ez:1});var Pwb=void 0;function tfa(){Pwb||(Pwb=(new Owb).a());return Pwb}
function Qwb(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.fb=this.Qx=this.Rx=this.oa=this.ki=this.Xh=this.Th=this.Vh=this.ld=this.Eo=this.Kg=this.Jj=this.vh=this.gd=this.$=this.nc=this.Lj=this.Sd=this.Vc=this.bh=this.wn=this.sT=this.nv=this.sn=this.Ux=this.Vx=this.ij=this.jj=this.Aq=this.Cq=this.vl=this.Aa=this.ja=this.g=this.uo=this.af=null;this.ma=0}Qwb.prototype=new r;Qwb.prototype.constructor=Qwb;d=Qwb.prototype;d.pp=function(a){this.ef=a};d.kG=function(a){this.wn=a};
d.qp=function(a){this.kg=a};
d.a=function(){Rwb=this;Iq(this);cT(this);YK(this);Ob(this);r7(this);XK(this);Ji(this);Fi(this);j9(this);ada(this);var a=Xc(),b=C().cb;this.af=Rb(new Sb,a,D(new F,b,"datatype"),Tb(new Ub,Bi().cb,"datatype","Scalar range constraining this scalar shape",G()));Di();var a=(new J).aa([this.af]),b=Di().s,a=this.uo=Ei(a,b),b=this.sT,c=Di(),a=a.la(b,c.s),b=th().g,c=Di(),a=a.la(b,c.s),b=Lc().g,c=Di();this.g=a.la(b,c.s);Di();a=C().Gb;a=(new J).aa([D(new F,a,"ScalarShape")]);b=Di().s;a=Ei(a,b);b=th().ja;c=Di();
this.ja=a.la(b,c.s);this.Aa=Tb(new Ub,Vb().Gb,"Scalar Shape","Data shape describing a scalar value in the input data model, reified as an scalar node in the mapped graph",G());return this};d.NB=function(a){this.Sd=a};d.iya=function(a){this.Aq=a};d.hya=function(a){this.sn=a};d.gya=function(a){this.Vx=a};d.Ce=function(a){this.Hb=a};d.QB=function(a){this.bh=a};d.fya=function(a){this.Ux=a};d.Yc=function(){};d.nya=function(a){this.vl=a};d.Uz=function(a){this.Jj=a};d.lya=function(a){this.jj=a};
d.op=function(a){this.Je=a};d.mya=function(a){this.nv=a};d.lG=function(){};d.kya=function(a){this.Cq=a};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.jya=function(a){this.ij=a};d.np=function(a){this.wd=a};d.Vz=function(a){this.gd=a};d.hy=function(a){this.Vc=a};d.oya=function(a){this.sT=a};d.MB=function(a){this.nc=a};d.bA=function(a){this.oa=a};d.Wz=function(a){this.ld=a};d.Rz=function(a){this.Th=a};d.$l=function(a){this.fb=a};
d.Zc=function(){M();var a=(new N).a();return(new pi).P((new Q).a(),a)};d.Yz=function(a){this.ki=a};d.Sz=function(a){this.Eo=a};d.OB=function(a){this.Lj=a};d.ec=function(){return this.ja};d.aA=function(a){this.Xh=a};d.yC=function(){M();var a=(new N).a();return(new pi).P((new Q).a(),a)};d.$z=function(a){this.Kg=a};d.Zz=function(a){this.Vh=a};d.Xz=function(a){this.$=a};d.Tz=function(a){this.vh=a};
d.$classData=q({n_a:0},!1,"amf.plugins.domain.shapes.metamodel.ScalarShapeModel$",{n_a:1,f:1,LD:1,xw:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,ul:1,Bz:1,Aw:1,Ez:1,f_a:1});var Rwb=void 0;function xh(){Rwb||(Rwb=(new Qwb).a());return Rwb}
function Swb(){this.ke=this.Hb=this.Jc=this.Je=this.wd=this.ef=this.kg=this.fb=this.Qx=this.Rx=this.oa=this.ki=this.Xh=this.Th=this.Vh=this.ld=this.Eo=this.Kg=this.Jj=this.vh=this.gd=this.$=this.nc=this.Lj=this.Sd=this.Vc=this.bh=this.wn=this.Aa=this.ja=this.g=this.uo=this.Md=null;this.ma=0}Swb.prototype=new r;Swb.prototype.constructor=Swb;d=Swb.prototype;d.pp=function(a){this.ef=a};d.kG=function(a){this.wn=a};d.qp=function(a){this.kg=a};
d.a=function(){Twb=this;Iq(this);cT(this);YK(this);Ob(this);r7(this);XK(this);Ji(this);Fi(this);j9(this);var a=Pb(),b=C().dc;this.Md=Rb(new Sb,a,D(new F,b,"mediaType"),Tb(new Ub,Vb().dc,"media type","Media type associated to a shape",G()));Di();var a=(new J).aa([this.Md]),b=Di().s,a=this.uo=Ei(a,b),b=th().g,c=Di(),a=a.la(b,c.s),b=Lc().g,c=Di(),a=a.la(b,c.s),b=Db().g,c=Di();this.g=a.la(b,c.s);Di();a=C().Gb;a=(new J).aa([D(new F,a,"SchemaShape")]);b=Di().s;a=Ei(a,b);b=th().ja;c=Di();this.ja=a.la(b,
c.s);this.Aa=Tb(new Ub,Vb().Gb,"Schema Shape","Raw schema that cannot be parsed using AMF shapes model",G());return this};d.NB=function(a){this.Sd=a};d.Ce=function(a){this.Hb=a};d.QB=function(a){this.bh=a};d.Yc=function(){};d.Uz=function(a){this.Jj=a};d.op=function(a){this.Je=a};d.lG=function(){};d.Tc=function(){return this.Aa};d.sc=function(){return this.g};d.np=function(a){this.wd=a};d.Vz=function(a){this.gd=a};d.hy=function(a){this.Vc=a};d.bA=function(a){this.oa=a};d.MB=function(a){this.nc=a};
d.Rz=function(a){this.Th=a};d.Wz=function(a){this.ld=a};d.$l=function(a){this.fb=a};d.Zc=function(){M();var a=(new N).a();return(new Ui).P((new Q).a(),a)};d.Yz=function(a){this.ki=a};d.Sz=function(a){this.Eo=a};d.ec=function(){return this.ja};d.OB=function(a){this.Lj=a};d.aA=function(a){this.Xh=a};d.yC=function(){M();var a=(new N).a();return(new Ui).P((new Q).a(),a)};d.Zz=function(a){this.Vh=a};d.$z=function(a){this.Kg=a};d.Xz=function(a){this.$=a};d.Tz=function(a){this.vh=a};
d.$classData=q({o_a:0},!1,"amf.plugins.domain.shapes.metamodel.SchemaShapeModel$",{o_a:1,f:1,ffb:1,LD:1,xw:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,ul:1,Bz:1,Aw:1,Ez:1});var Twb=void 0;function fo(){Twb||(Twb=(new Swb).a());return Twb}function Uwb(){v9.call(this);this.yG=this.ea=this.hw=this.Np=this.AR=null}Uwb.prototype=new lwb;Uwb.prototype.constructor=Uwb;d=Uwb.prototype;
d.a=function(){v9.prototype.a.call(this);Vwb=this;var a=Yc(),b=C().Gb;this.AR=Rb(new Sb,a,D(new F,b,"additionalItems"),Tb(new Ub,Vb().Gb,"additional items","Constraint allowing additional shapes in the collection",G()));a=(new o7).Ld(Pg());b=C().Gb;this.Np=Rb(new Sb,a,D(new F,b,"items"),Tb(new Ub,Vb().Gb,"items","Shapes contained in the Tuple Shape",G()));Di();var a=C().Gb,a=D(new F,a,"TupleShape"),b=C().Gb,a=(new J).aa([a,D(new F,b,"ArrayShape")]),b=Di().s,a=Ei(a,b),b=th().ja,c=Di();this.hw=a.la(b,
c.s);Di();a=(new J).aa([this.Np,this.Bq,this.rr,this.tr,this.AR,this.sD]);b=Di().s;a=Ei(a,b);b=th().g;c=Di();a=a.la(b,c.s);b=Lc().g;c=Di();this.ea=a.la(b,c.s);this.yG=Tb(new Ub,Vb().Gb,"Tuple Shape","Data shape containing a multi-valued collection of shapes",G());return this};d.Tc=function(){return this.yG};d.sc=function(){return this.ea};d.Zc=function(){M();var a=(new N).a();return(new Ri).P((new Q).a(),a)};d.yC=function(){M();var a=(new N).a();return(new Ri).P((new Q).a(),a)};d.ec=function(){return this.hw};
d.$classData=q({p_a:0},!1,"amf.plugins.domain.shapes.metamodel.TupleShapeModel$",{p_a:1,Fva:1,f:1,LD:1,xw:1,se:1,Oc:1,ic:1,Xc:1,Fo:1,Kj:1,ul:1,Bz:1,Aw:1,Ez:1});var Vwb=void 0;function Un(){Vwb||(Vwb=(new Uwb).a());return Vwb}function oi(){Qg.call(this);this.lU=this.X2=this.V2=this.ab=this.ea=null}oi.prototype=new $ib;oi.prototype.constructor=oi;function N9(){}d=N9.prototype=oi.prototype;d.El=function(){return this.Ey()};d.rc=function(){return this.Qv()};d.ha=function(){return this.ab};d.H_=function(){return(new yL).a()};
d.Nd=function(){var a=B(this.ca(),Pg().$).G,a=a.b()?"default-any":a.c(),a=(new Cf).e(a);return"/any/"+Gj(a.zd)};d.aO=function(a,b,c,e){return kda(this,a,b,c,e)};d.Yb=function(){return $h(this)};d.Qk=function(){return qd(function(){return function(a,b){return(new oi).P(a,b)}}(this))};d.Vv=function(){return"anyShape"};d.ca=function(){return this.ea};d.Ey=function(){M();var a=(new N).a(),b=(new Q).a(),a=(new oi).P(b,a);return Te(a,this.k)};
function Jnb(a){if(a.Qv().ec().h(th().ja))var b=ls(a.ca(),t(new u,function(){return function(a){a=a.pa();var b=th().Vc;return!(null===a?null===b:pa(a,b))}}(a))).Pb,b=Tc(b);else b=!1;return b?Zb(a.ha(),n(Av)).b():!1}function Inb(a,b){return B(a.ca(),th().Vc).Ib(t(new u,function(a,b){return function(a){var c=(new Zcb).DK(a,b);a=a.ha().jf;var h=Wg().s;return Fr(a,c,h).Fa()}}(a,b)))}d.Qv=function(){return th()};
d.AF=function(a){M();var b=(new N).a(),c=(new Q).a(),b=(new iB).P(c,b);a.b()||(a=a.c(),M(),c=(new N).a(),Ue(b,a,c));a=th().Vc;nh(this,a,b);return b};d.G$=function(){return w()};d.P=function(a,b){this.ea=a;this.ab=b;Qg.prototype.a.call(this);this.V2=H(Mi(),G());this.X2=H(Mi(),G());this.lU=H(Mi(),G());return this};function Z6a(a,b,c){b=(new oi).P(b,c);return Te(b,a.k)}function Xh(a){return!!(a&&a.$classData&&a.$classData.v.Zx)}
d.$classData=q({Zx:0},!1,"amf.plugins.domain.shapes.models.AnyShape",{Zx:1,zw:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,$x:1,Hz:1,Gz:1,yB:1,zB:1,yw:1,Fz:1});function Eba(a,b){var c=a.Ta(b);if(w()===c)return a.HX(b);if(x(c))return c.i;throw(new v).d(c);}function Wwb(a){var b=(new pk).$d(a.lb());a.X(t(new u,function(a,b){return function(a){return T(b,a)}}(a,b)));return b}
function Xwb(a,b,c,e,f){var g=a.kb();a=(new Sz).Cu(g,t(new u,function(){return function(a){if(null!==a){var b=a.pa();a=a.Ba();return""+Qwa(nG(),b," -\x3e ")+a}throw(new v).d(a);}}(a)));return HI(a,b,c,e,f)}function iN(a){if(a.b())return Zf().G9.sJ;Zf();var b=(new zq).a();a.X(t(new u,function(a,b){return function(a){return b.Ic(a)}}(a,b)));return Bq(b)}function O9(a,b){var c=(new Qd).d(a);a.X(t(new u,function(a,b,c){return function(a){b.R(a)&&(c.ta=c.ta.Bo(a.pa()))}}(a,b,c)));return c.ta}
function Ywb(a,b,c){return a.vu(b,jb(function(a,b,c){return function(){return c.R(b)}}(a,b,c)))}function Zwb(a,b){a.Gea().X(t(new u,function(a,b,f){return function(g){f.ta||a.Pu().R(g)||(f.ta=!0);return f.ta?b.R(g):void 0}}(a,b,(new mk).rs(!1))))}function $wb(a,b){a.Hea().X(t(new u,function(a,b){return function(f){return a.Pu().R(f)?b.R(f):void 0}}(a,b)))}
function axb(a,b){a.cFa().X(t(new u,function(a,b){return function(f){a.wC().R(f).td().X(t(new u,function(a,b){return function(a){return b.R(a)}}(a,b)))}}(a,b)))}function bxb(a,b){a.dFa().X(t(new u,function(a,b){return function(f){return b.R(a.wC().R(f))}}(a,b)))}
function cxb(a,b){var c=(new ck).a();try{a.Jea().X(t(new u,function(a,b,c){return function(h){if(!a.Pu().R(h))throw h=new W6,Ax.prototype.N.call(h,c,void 0),h;return b.R(h)}}(a,b,c)))}catch(e){if(Bx(e))if(e.Da===c)e.gHa();else throw e;else throw e;}}function Tn(){Sn.call(this)}Tn.prototype=new Fwb;Tn.prototype.constructor=Tn;d=Tn.prototype;d.a=function(){M();var a=(new N).a(),a=(new ri).P((new Q).a(),a);Sn.prototype.MK.call(this,a);return this};d.MK=function(a){Sn.prototype.MK.call(this,a);return this};
d.qg=function(){return this.ti};d.Jd=function(){return this.ti};d.Sh=function(){return this.ti};d.Fd=function(){return this.ti};function dxb(a,b){if(b&&b.$classData&&b.$classData.v.BY)return Sn.prototype.cga.call(a,b);throw Lb(Mb(),(new Nb).e("Matrix shapes can only accept arrays as items"));}d.cga=function(a){return dxb(this,a)};d.yga=function(a){return dxb(this,a)};
d.$classData=q({mKa:0},!1,"amf.client.model.domain.MatrixShape",{mKa:1,BY:1,hia:1,rB:1,f:1,yz:1,Re:1,Id:1,xd:1,Fb:1,Zr:1,Yl:1,A:1,w:1,q:1,n:1});function eN(){this.k=this.na=this.ue=this.Ke=this.E=this.g=null}eN.prototype=new r;eN.prototype.constructor=eN;d=eN.prototype;d.L=function(){return"DialectInstance"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a){return cj(this,a)};d.h=function(a){return this===a?!0:$A(a)?this.g===a.g?this.E===a.E:!1:!1};
d.Bp=function(a){this.ue=a};d.K=function(a){switch(a){case 0:return this.g;case 1:return this.E;default:throw(new X).e(""+a);}};d.Uc=function(a){return Te(this,a)};d.rc=function(){return ZA()};d.ha=function(){return this.E};d.u=function(){return U(W(),this)};d.Po=function(a){this.Ke=a};d.Nd=function(){return""};d.Pe=function(){return B(this.g,ZA().qc)};d.Yb=function(){return jd(this)};
d.Lm=function(a,b,c){a=t(new u,function(a,b){return function(a){return Yl(a)?!!b.R(a):!1}}(this,a));b=qd(function(a,b){return function(a,c){return Yl(a)?b.zf(a,!!c):(new A).d(a)}}(this,b));c=qd(function(a,b){return function(a,c){return k0a(b,a,c)}}(this,c));var e=H(xz(),G()),f=Yd();q0a(this,this,a,b,e,f,c);return this};d.ak=function(){return B(this.g,ZA().Mc)};d.H0=function(){return B(this.g,ZA().lr)};d.ca=function(){return this.g};d.J$=function(){};d.ze=function(){return B(this.g,ZA().ob)};d.y=function(){return Y(this)};
d.S_=function(){return B(this.g,ZA().Rf)};d.M=function(){return Z(this)};d.Te=function(a){this.k=a};d.P=function(a,b){this.g=a;this.E=b;this.na=ju().na;K0(this);Yba(this);return this};function $A(a){return!!(a&&a.$classData&&a.$classData.v.jma)}d.$classData=q({jma:0},!1,"amf.plugins.document.vocabularies.model.document.DialectInstance",{jma:1,f:1,MY:1,Go:1,Wc:1,Rc:1,Rm:1,Fb:1,fJ:1,uB:1,mr:1,gma:1,A:1,w:1,q:1,n:1});function iW(){oy.call(this);this.V$=this.S1=this.oga=this.WDa=this.vCa=null}
iW.prototype=new Jwb;iW.prototype.constructor=iW;d=iW.prototype;d.qHa=function(){return this.oga};d.le=function(){return this.V$};function oUa(a,b,c,e,f,g){var h=w(),k=py().On;a.vCa=b;a.WDa=c;a.oga=e;a.S1=g;var l=w();oy.prototype.Vk.call(a,b,c,e,f,h,l,k);if(x(f))b=f.i,g=s1a(b.ns,b.WT,g,b.iG(),b.CG(),b.bC());else if(w()===f)b=w(),c=(new A).d(a),e=a.Yh,f=pc(fc().db,G()),h=pc(fc().db,G()),g=s1a(f,h,g,b,c,e);else throw(new v).d(f);a.V$=g;return a}
d.mT=function(a){return oUa(new iW,this.vCa,this.WDa,this.oga,(new A).d(a),this.S1)};d.yl=function(){return this.V$};d.$classData=q({JTa:0},!1,"amf.plugins.document.webapi.contexts.ExtensionLikeWebApiContext",{JTa:1,N7:1,hJ:1,wB:1,au:1,f:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1,TF:1,Fb:1,gS:1});function P9(){oi.call(this)}P9.prototype=new N9;P9.prototype.constructor=P9;function exb(){}exb.prototype=P9.prototype;P9.prototype.Ub=function(){return H(z(),G())};
P9.prototype.Qb=function(a,b){return apa(this,a,b)};P9.prototype.Nd=function(){var a=B(this.ca(),Pg().$).G,a=a.b()?"default-array":a.c(),a=(new Cf).e(a);return"/array/"+Gj(a.zd)};P9.prototype.Vv=function(){return"arrayShape"};function apa(a,b,c){var e=c.Ja(a.k);-1!==((""+b).indexOf("#")|0)?cj(a,b):cj(a,b+"#/");if(!e&&(b=Dd(a.ea,Wh().wf),x(b)))if(b=b.i.t.t,os(b)){var f=e=a.k,g=z();b.Qb(e+"/items",c.hg(f,g.s))}else if(es(b))c=a.k+"/itemsTuple"+b.Tb.Ka(),cj(a,c);else throw(new v).d(b);return a}
function $oa(a){return!!(a&&a.$classData&&a.$classData.v.e8)}function Sra(){mz.call(this)}Sra.prototype=new Iwb;Sra.prototype.constructor=Sra;d=Sra.prototype;d.a=function(){var a=G();z();Oj();var b=(new $g).a();mz.prototype.Vk.call(this,"",a,(new yp).co("",b.wa(),(new Np).a(),Op(),w()),w(),w(),w(),py().On);return this};d.ps=function(){};d.cC=function(a,b){return b};d.Vs=function(){};
d.$classData=q({A1a:0},!1,"amf.plugins.domain.webapi.resolution.CustomRaml08WebApiContext",{A1a:1,M7:1,hJ:1,wB:1,au:1,f:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1,TF:1,Fb:1,gS:1});function Tra(){oy.call(this)}Tra.prototype=new Jwb;Tra.prototype.constructor=Tra;d=Tra.prototype;d.a=function(){var a=G();z();Oj();var b=(new $g).a();oy.prototype.Vk.call(this,"",a,(new yp).co("",b.wa(),(new Np).a(),Op(),w()),w(),w(),w(),py().On);return this};d.ps=function(){};d.cC=function(a,b){return b};d.Vs=function(){};
d.$classData=q({B1a:0},!1,"amf.plugins.domain.webapi.resolution.CustomRaml10WebApiContext",{B1a:1,N7:1,hJ:1,wB:1,au:1,f:1,zq:1,Lp:1,ip:1,A:1,w:1,q:1,n:1,TF:1,Fb:1,gS:1});function Vka(a,b){return b.td().rl(a,qd(function(){return function(a,b){return a.Zb(b)}}(a)))}function HL(a){if(null!==a){var b=a.toLowerCase();if("true"===b)return!0;if("false"===b)return!1;throw(new rk).e('For input string: "'+a+'"');}throw(new rk).e('For input string: "null"');}function Ou(a){return kCa(a)?a.VGa():a}
function fxb(a,b,c){b=0<b?b:0;var e=a.Ka(),e=c<e?c:e;if(b>=e)return a.Ed().lc();c=a.Ed();a=a.u().substring(b,e);return c.Cf((new ph).e(a)).lc()}function Ws(a,b){a=a.u();b=97<=b&&122>=b||65<=b&&90>=b||48<=b&&57>=b?ba.String.fromCharCode(b):"\\"+Dc(b);return kd(ta(),a,b,0)}function pha(a,b){var c=(new lk).a(),e=-1+b|0;if(!(0>=b))for(b=0;;){nk(c,a.u());if(b===e)break;b=1+b|0}return c.Be.Ue}
function Kja(a){if(null===a.u())return null;if(0===(a.u().length|0))return"";var b=65535&(a.u().charCodeAt(0)|0),c=Ft();if(8544<=b&&8559>=b||9398<=b&&9423>=b||1===FYa(c,b))return a.u();a=Dt(ta(),a.u());b=a.j[0];a.j[0]=oka(Ft(),b);return XD(ta(),a,0,a.j.length)}function Zo(a,b){var c=a.u();return 0<=(c.length|0)&&c.substring(0,b.length|0)===b?a.u().substring(b.length|0):a.u()}function JO(a,b){if(re(ta(),a.u(),b)){var c=a.u();a=(a.u().length|0)-(b.length|0)|0;return c.substring(0,a)}return a.u()}
function Zz(a){var b=(new lk).a(),c=new W4;if(null===a)throw Lb(Mb(),null);c.Pa=a;c.tfa=a.u();c.pH=c.tfa.length|0;for(c.Bj=0;c.Qa();){a=c.My();for(var e=a.length|0,f=0;;)if(f<e&&32>=(65535&(a.charCodeAt(f)|0)))f=1+f|0;else break;a=f<e&&124===(65535&(a.charCodeAt(f)|0))?a.substring(1+f|0):a;nk(b,a)}return b.Be.Ue}
function XUa(a){var b=a.u().length|0;if(0===b)return a.u();var c=a.nG(-1+b|0);if(10===c||12===c){var e=a.u();a=10===c&&2<=b&&13===a.nG(-2+b|0)?-2+b|0:-1+b|0;return e.substring(0,a)}return a.u()}function gxb(){}gxb.prototype=new xvb;gxb.prototype.constructor=gxb;function hxb(){}d=hxb.prototype=gxb.prototype;d.td=function(){return this.Mi()};d.fa=function(){return this.kb().Sa()};d.$y=function(){return this};d.pm=function(){return this.kb()};d.Jl=function(a){return W8(this,a)};
d.Cd=function(a){var b=this.kb();return IOa(b,a)};d.Qf=function(){return this.$y()};d.Mi=function(){return this};d.b=function(){return!this.kb().Qa()};d.Lh=function(){return pf()};d.Ng=function(a){var b=this.kb();return cS(b,a)};d.X=function(a){var b=this.kb();fS(b,a)};d.Ar=function(a,b){var c=this.kb();return sAa(c,a,b)};d.ol=function(a){for(var b=this.Ed(),c=this.kb();c.Qa();){var e=c.Sa();if(!a.R(e))break;b.Ic(e)}return b.lc()};d.Ib=function(a){var b=this.kb();return MOa(b,a)};
d.cg=function(a){return EHa(this,a)};d.Wj=function(a){return mub(this,a)};d.kd=function(){return this.kb().kd()};d.ck=function(a){var b=this.Ed();XOa(b,this,-(0>a?0:a)|0);for(var c=0,e=this.kb();c<a&&e.Qa();)e.Sa(),c=1+c|0;return b.Cf(e).lc()};d.$j=function(a,b,c){nub(this,a,b,c)};var Ibb=q({Li:0},!0,"scala.collection.immutable.Iterable",{Li:1,aj:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$i:1,cd:1,$c:1,zc:1,Bc:1,w:1});function ixb(a,b){var c=Js();return a.CF(pub(c,0,1),b)}
function ph(){this.ia=null}ph.prototype=new r;ph.prototype.constructor=ph;d=ph.prototype;d.td=function(){return(new TI).e(this.ia)};d.Yn=function(a,b){JF(this,a,b)};d.fa=function(){return Wj(this)};d.jb=function(a){a=65535&(this.ia.charCodeAt(a)|0);return Dc(a)};d.Ge=function(a){return w9(this,a)};d.pm=function(){return hD(new iD,this,0,this.ia.length|0)};d.Jl=function(a){return x9(this,a)};d.Cd=function(a){return y9(this,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return HF(this)};
d.Qf=function(){return(new TI).e(this.ia)};d.md=function(a,b){return eA(this,a,b)};d.h=function(a){Mh();return a&&a.$classData&&a.$classData.v.vFa?this.ia===(null===a?null:a.ia):!1};d.nG=function(a){return 65535&(this.ia.charCodeAt(a)|0)};d.Ck=function(a){return z9(this,a)};d.ng=function(a){return IG(this,"",a,"")};d.Fk=function(a,b,c){return IG(this,a,b,c)};d.qq=function(a){return IC(new JC,this,a)};d.Ng=function(a){return B9(this,a)};d.hg=function(a,b){return Ss(this,a,b)};
d.Ej=function(a){return nv(this,a)};d.u=function(){return this.ia};d.Wn=function(a){var b=this.ia;return b===a?0:b<a?-1:1};d.X=function(a){C9(this,a)};d.ae=function(a,b){return K9(this,0,this.ia.length|0,a,b)};d.Xn=function(a){var b=this.ia;return b===a?0:b<a?-1:1};d.fm=function(a,b){return D9(this,a,b)};d.Qr=function(a,b){return vp(this,a,b)};d.ol=function(a){return E9(this,a)};d.pc=function(){return Ps(this)};d.lq=function(a,b){return Lh(Mh(),this.ia,a,b)};d.Mo=function(a){return l9(this,a)};
d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.xb=function(a){return F6(this,a,!1)};d.lb=function(){return this.ia.length|0};d.bj=function(){return t9(this)};d.Ri=function(){return oM(this)};d.kb=function(){return hD(new iD,this,0,this.ia.length|0)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.Tp=function(a){return m9(this,a)};d.lm=function(){return this.ia};d.Ka=function(){return this.ia.length|0};d.cg=function(a){return I9(this,a)};
d.la=function(a,b){return vp(this,a,b)};d.Xq=function(){return G6(this)};d.Yq=function(){return Cw(this)};d.Ph=function(a){return F6(this,a,!0)};d.Ol=function(){return this.ia.length|0};d.br=function(a){return B2(this,a)};d.Wj=function(a){return Lh(Mh(),this.ia,0,a)};d.kd=function(){var a=hD(new iD,this,0,this.ia.length|0);return Tu(a)};d.ck=function(a){var b=this.ia.length|0;return Lh(Mh(),this.ia,a,b)};d.Ja=function(a){return Vs(this,a)};d.Hj=function(){return(new TI).e(this.ia)};d.sa=function(){return tu(this)};
d.Vo=function(){return(new TI).e(this.ia)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.qi=function(a,b){return o9(this,a,b)};d.ce=function(){return(new TI).e(this.ia)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this.ia};d.rl=function(a,b){return K9(this,0,this.ia.length|0,a,b)};d.$j=function(a,b,c){L9(this,a,b,c)};d.ko=function(){return!0};d.y=function(){var a=this.ia;return ra(ta(),a)};d.Ym=function(a){return H6(this,a)};d.e=function(a){this.ia=a;return this};
d.Zq=function(a,b){return X8(this,a,b)};d.$g=function(){for(var a=Ry(new Sy,Xs()),b=0,c=this.ia.length|0;b<c;){var e=this.jb(b);Ty(a,e);b=1+b|0}return a.gb};d.ka=function(a,b){return De(this,a,b)};d.Ql=function(){return Dt(ta(),this.ia)};d.Fa=function(){return Tc(this)};d.$b=function(a,b){return Fr(this,a,b)};d.Sj=function(a){return M9(this,a)};d.Ed=function(){return(new lk).a()};d.Lk=function(){return I6(this)};
d.$classData=q({vFa:0},!1,"scala.collection.immutable.StringOps",{vFa:1,f:1,uFa:1,ok:1,Ki:1,Ye:1,Bc:1,w:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,zc:1,Xe:1,vx:1,sh:1});function Q9(a,b,c){var e=a.Ji();b=0<b?b:0;c=0<c?c:0;var f=DI(W(),e);c=(c<f?c:f)-b|0;c=0<c?c:0;a=Ht(It(),Jt(ka(a.Ji())),c);0<c&&Kt(ye(),e,b,a,0,c);return a}function R9(a,b,c,e){var f=DI(W(),a.Ji());e=e<f?e:f;f=DI(W(),b)-c|0;e=e<f?e:f;0<e&&Kt(ye(),a.Ji(),0,b,c,e)}function S9(a,b){var c=b.Dp();return Jt(ka(a.Ji()))===c?a.Ji():II(a,b)}
function ii(){oi.call(this);this.no=null}ii.prototype=new N9;ii.prototype.constructor=ii;d=ii.prototype;d.L=function(){return"NilShape"};d.H=function(){return 2};d.h=function(a){return this===a?!0:Ti(a)?this.ea===a.ea?this.ab===a.ab:!1:!1};d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;default:throw(new X).e(""+a);}};d.El=function(){M();var a=(new N).a(),a=(new ii).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return this.no};d.u=function(){return U(W(),this)};
d.ha=function(){return this.ab};d.Nd=function(){var a=B(this.ea,Pg().$).G,a=a.b()?"default-nil":a.c(),a=(new Cf).e(a);return"/nil/"+Gj(a.zd)};d.Vv=function(){return"shape"};d.Qk=function(){return qd(function(){return function(a,b){return(new ii).P(a,b)}}(this))};d.ca=function(){return this.ea};d.Ey=function(){M();var a=(new N).a(),a=(new ii).P((new Q).a(),a);return Te(a,this.k)};d.y=function(){return Y(this)};d.Qv=function(){return this.no};d.M=function(){return Z(this)};
d.P=function(a,b){oi.prototype.P.call(this,a,b);this.no=sfa();return this};function Ti(a){return!!(a&&a.$classData&&a.$classData.v.Kva)}d.$classData=q({Kva:0},!1,"amf.plugins.domain.shapes.models.NilShape",{Kva:1,Zx:1,zw:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,$x:1,Hz:1,Gz:1,yB:1,zB:1,yw:1,Fz:1,A:1,w:1,q:1,n:1});function si(){oi.call(this);this.oW=this.no=null}si.prototype=new N9;si.prototype.constructor=si;
function F3(a,b){M();var c=(new N).a(),c=(new s7).P((new Q).a(),c);M();var e=(new N).a();b=Ue(c,b,e);c=ci().Rg;nh(a,c,b);return b}d=si.prototype;d.L=function(){return"NodeShape"};d.Ub=function(){return H(z(),G())};d.H=function(){return 2};d.Qb=function(a,b){return L8a(this,a,b)};d.h=function(a){return this===a?!0:bi(a)?this.ea===a.ea?this.ab===a.ab:!1:!1};d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;default:throw(new X).e(""+a);}};
d.El=function(){M();var a=(new N).a(),a=(new si).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return this.no};function L8a(a,b,c){var e=c.Ja(a.k);-1!==((""+b).indexOf("#")|0)?cj(a,b):cj(a,b+"#/");e||(b=a.k,e=z(),c=c.hg(b,e.s),B(a.ea,ci().Rg).X(t(new u,function(a,b){return function(c){return N8a(c,a.k,b)}}(a,c))),b=Wa().Ia(B(a.ea,ci().HF)),b.b()||b.c().Qb(a.k,c));return a}d.ha=function(){return this.ab};d.u=function(){return U(W(),this)};
d.Nd=function(){var a=B(this.ea,Pg().$).G,a=a.b()?"default-node":a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};d.Vv=function(){return this.oW};d.Qk=function(){return qd(function(){return function(a,b){return(new si).P(a,b)}}(this))};d.ca=function(){return this.ea};d.Ey=function(){M();var a=(new N).a(),a=(new si).P((new Q).a(),a);return Te(a,this.k)};d.y=function(){return Y(this)};d.Qv=function(){return this.no};d.M=function(){return Z(this)};
d.P=function(a,b){oi.prototype.P.call(this,a,b);this.no=ci();this.oW="nodeShape";return this};function bi(a){return!!(a&&a.$classData&&a.$classData.v.Lva)}d.$classData=q({Lva:0},!1,"amf.plugins.domain.shapes.models.NodeShape",{Lva:1,Zx:1,zw:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,$x:1,Hz:1,Gz:1,yB:1,zB:1,yw:1,Fz:1,A:1,w:1,q:1,n:1});function Ui(){oi.call(this)}Ui.prototype=new N9;Ui.prototype.constructor=Ui;d=Ui.prototype;d.L=function(){return"SchemaShape"};d.H=function(){return 2};
d.h=function(a){return this===a?!0:ai(a)?this.ea===a.ea?this.ab===a.ab:!1:!1};d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;default:throw(new X).e(""+a);}};d.El=function(){M();var a=(new N).a(),a=(new Ui).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return fo()};d.ha=function(){return this.ab};d.u=function(){return U(W(),this)};d.Nd=function(){var a=B(this.ea,Pg().$).G,a=a.b()?"default-schema":a.c(),a=(new Cf).e(a);return"/schema/"+Gj(a.zd)};
d.Qk=function(){return qd(function(){return function(a,b){return(new Ui).P(a,b)}}(this))};d.Vv=function(){return"schemaShape"};d.ca=function(){return this.ea};d.Ey=function(){M();var a=(new N).a(),a=(new Ui).P((new Q).a(),a);return Te(a,this.k)};d.y=function(){return Y(this)};d.Qv=function(){return fo()};d.M=function(){return Z(this)};d.P=function(a,b){oi.prototype.P.call(this,a,b);return this};function ai(a){return!!(a&&a.$classData&&a.$classData.v.Nva)}
d.$classData=q({Nva:0},!1,"amf.plugins.domain.shapes.models.SchemaShape",{Nva:1,Zx:1,zw:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,$x:1,Hz:1,Gz:1,yB:1,zB:1,yw:1,Fz:1,A:1,w:1,q:1,n:1});function ti(){oi.call(this);this.no=null}ti.prototype=new N9;ti.prototype.constructor=ti;d=ti.prototype;d.L=function(){return"UnionShape"};d.H=function(){return 2};d.h=function(a){return this===a?!0:Ni(a)?this.ea===a.ea?this.ab===a.ab:!1:!1};
d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;default:throw(new X).e(""+a);}};d.El=function(){M();var a=(new N).a(),a=(new ti).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return this.no};d.u=function(){return U(W(),this)};d.ha=function(){return this.ab};d.Nd=function(){var a=B(this.ea,Pg().$).G,a=a.b()?"default-union":a.c(),a=(new Cf).e(a);return"/union/"+Gj(a.zd)};d.Vv=function(){return"unionShape"};
d.Qk=function(){return qd(function(){return function(a,b){return(new ti).P(a,b)}}(this))};d.ca=function(){return this.ea};d.Ey=function(){M();var a=(new N).a(),a=(new ti).P((new Q).a(),a);return Te(a,this.k)};d.y=function(){return Y(this)};d.Qv=function(){return this.no};d.M=function(){return Z(this)};d.P=function(a,b){oi.prototype.P.call(this,a,b);this.no=lo();return this};function Ni(a){return!!(a&&a.$classData&&a.$classData.v.Pva)}
d.$classData=q({Pva:0},!1,"amf.plugins.domain.shapes.models.UnionShape",{Pva:1,Zx:1,zw:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,$x:1,Hz:1,Gz:1,yB:1,zB:1,yw:1,Fz:1,A:1,w:1,q:1,n:1});function ri(){oi.call(this);this.FA=null}ri.prototype=new exb;ri.prototype.constructor=ri;d=ri.prototype;d.L=function(){return"ArrayShape"};d.H=function(){return 2};d.h=function(a){return this===a?!0:Vh(a)?this.ea===a.ea?this.ab===a.ab:!1:!1};function Vy(a){var b=(new Pi).P(a.ea,a.ab);return Te(b,a.k)}
d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;default:throw(new X).e(""+a);}};d.El=function(){M();var a=(new N).a(),a=(new ri).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return this.FA};d.u=function(){return U(W(),this)};d.ha=function(){return this.ab};function Wy(a,b){fr(a.ea,a.k+"/items",Wh().wf,b,(M(),(new N).a()));return a}d.Qk=function(){return qd(function(){return function(a,b){return(new ri).P(a,b)}}(this))};d.ca=function(){return this.ea};
d.Ey=function(){M();var a=(new N).a(),a=(new ri).P((new Q).a(),a);return Te(a,this.k)};d.y=function(){return Y(this)};d.Qv=function(){return this.FA};d.M=function(){return Z(this)};d.P=function(a,b){oi.prototype.P.call(this,a,b);this.FA=Wh();return this};function Vh(a){return!!(a&&a.$classData&&a.$classData.v.Gva)}d.$classData=q({Gva:0},!1,"amf.plugins.domain.shapes.models.ArrayShape",{Gva:1,e8:1,Zx:1,zw:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,$x:1,Hz:1,Gz:1,yB:1,zB:1,yw:1,Fz:1,A:1,w:1,q:1,n:1});
function ui(){oi.call(this);this.oW=this.no=null}ui.prototype=new N9;ui.prototype.constructor=ui;d=ui.prototype;d.L=function(){return"FileShape"};d.H=function(){return 2};d.h=function(a){return this===a?!0:Si(a)?this.ea===a.ea?this.ab===a.ab:!1:!1};d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;default:throw(new X).e(""+a);}};d.El=function(){M();var a=(new N).a(),a=(new ui).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return this.no};d.ha=function(){return this.ab};
d.u=function(){return U(W(),this)};d.Nd=function(){var a=B(this.ea,Pg().$).G,a=a.b()?"default-file":a.c(),a=(new Cf).e(a);return"/"+Gj(a.zd)};d.Vv=function(){return this.oW};d.Qk=function(){return qd(function(){return function(a,b){return(new ui).P(a,b)}}(this))};d.ca=function(){return this.ea};d.Ey=function(){M();var a=(new N).a(),a=(new ui).P((new Q).a(),a);return Te(a,this.k)};d.y=function(){return Y(this)};d.Qv=function(){return this.no};d.M=function(){return Z(this)};
d.P=function(a,b){oi.prototype.P.call(this,a,b);this.no=ao();this.oW="fileShape";return this};function Si(a){return!!(a&&a.$classData&&a.$classData.v.Iva)}d.$classData=q({Iva:0},!1,"amf.plugins.domain.shapes.models.FileShape",{Iva:1,Zx:1,zw:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,$x:1,Hz:1,Gz:1,yB:1,zB:1,yw:1,Fz:1,w_a:1,A:1,w:1,q:1,n:1});function Pi(){oi.call(this);this.FA=null}Pi.prototype=new exb;Pi.prototype.constructor=Pi;d=Pi.prototype;
d.lI=function(){var a=(new ri).P(this.ea,this.ab),b=Wa().Ia(this.k);if(x(b)){var c=b.i;if(null!==c)return Te(a,c)}if(w()===b)return a;throw(new v).d(b);};d.L=function(){return"MatrixShape"};d.H=function(){return 2};d.h=function(a){return this===a?!0:Oi(a)?this.ea===a.ea?this.ab===a.ab:!1:!1};d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;default:throw(new X).e(""+a);}};d.El=function(){M();var a=(new N).a(),a=(new Pi).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return this.FA};
d.u=function(){return U(W(),this)};d.ha=function(){return this.ab};d.Qk=function(){return qd(function(){return function(a,b){return(new Pi).P(a,b)}}(this))};d.ca=function(){return this.ea};d.Ey=function(){M();var a=(new N).a(),a=(new Pi).P((new Q).a(),a);return Te(a,this.k)};d.y=function(){return Y(this)};d.Qv=function(){return this.FA};d.M=function(){return Z(this)};d.P=function(a,b){oi.prototype.P.call(this,a,b);this.FA=tfa();return this};
function Oi(a){return!!(a&&a.$classData&&a.$classData.v.Jva)}d.$classData=q({Jva:0},!1,"amf.plugins.domain.shapes.models.MatrixShape",{Jva:1,e8:1,Zx:1,zw:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,$x:1,Hz:1,Gz:1,yB:1,zB:1,yw:1,Fz:1,A:1,w:1,q:1,n:1});function pi(){oi.call(this);this.no=null}pi.prototype=new N9;pi.prototype.constructor=pi;d=pi.prototype;d.L=function(){return"ScalarShape"};d.H=function(){return 2};d.h=function(a){return this===a?!0:di(a)?this.ea===a.ea?this.ab===a.ab:!1:!1};
d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;default:throw(new X).e(""+a);}};d.El=function(){M();var a=(new N).a(),a=(new pi).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return this.no};d.u=function(){return U(W(),this)};d.ha=function(){return this.ab};d.Nd=function(){var a=B(this.ea,Pg().$).G,a=a.b()?"default-scalar":a.c(),a=(new Cf).e(a);return"/scalar/"+Gj(a.zd)};d.Qk=function(){return qd(function(){return function(a,b){return(new pi).P(a,b)}}(this))};
d.Vv=function(){var a=B(this.ea,xh().af).G,a=a.b()?"#shape":a.c(),a=kd(ta(),a,"#",0),a=ld((new md).vc(a));return"integer"===a||"float"===a||"double"===a||"long"===a||"number"===a?"numberScalarShape":"string"===a?"stringScalarShape":"dateTime"===a?"dateScalarShape":"shape"};d.ca=function(){return this.ea};d.Ey=function(){M();var a=(new N).a(),a=(new pi).P((new Q).a(),a);return Te(a,this.k)};d.y=function(){return Y(this)};d.Qv=function(){return this.no};d.M=function(){return Z(this)};
d.P=function(a,b){oi.prototype.P.call(this,a,b);this.no=xh();return this};function di(a){return!!(a&&a.$classData&&a.$classData.v.Mva)}d.$classData=q({Mva:0},!1,"amf.plugins.domain.shapes.models.ScalarShape",{Mva:1,Zx:1,zw:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,$x:1,Hz:1,Gz:1,yB:1,zB:1,yw:1,Fz:1,w_a:1,A:1,w:1,q:1,n:1});function Ri(){oi.call(this);this.FA=null}Ri.prototype=new exb;Ri.prototype.constructor=Ri;d=Ri.prototype;d.L=function(){return"TupleShape"};d.H=function(){return 2};
d.h=function(a){return this===a?!0:Qi(a)?this.ea===a.ea?this.ab===a.ab:!1:!1};d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;default:throw(new X).e(""+a);}};d.El=function(){M();var a=(new N).a(),a=(new Ri).P((new Q).a(),a);return Te(a,this.k)};d.rc=function(){return this.FA};d.u=function(){return U(W(),this)};d.ha=function(){return this.ab};d.Qk=function(){return qd(function(){return function(a,b){return(new Ri).P(a,b)}}(this))};d.ca=function(){return this.ea};
d.Ey=function(){M();var a=(new N).a(),a=(new Ri).P((new Q).a(),a);return Te(a,this.k)};d.y=function(){return Y(this)};d.Qv=function(){return this.FA};d.M=function(){return Z(this)};d.P=function(a,b){oi.prototype.P.call(this,a,b);this.FA=Un();return this};function Qi(a){return!!(a&&a.$classData&&a.$classData.v.Ova)}d.$classData=q({Ova:0},!1,"amf.plugins.domain.shapes.models.TupleShape",{Ova:1,e8:1,Zx:1,zw:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,$x:1,Hz:1,Gz:1,yB:1,zB:1,yw:1,Fz:1,A:1,w:1,q:1,n:1});
function Wi(){oi.call(this);this.qQ=this.GG=this.PH=null;this.YP=!1;this.De=this.no=null}Wi.prototype=new N9;Wi.prototype.constructor=Wi;d=Wi.prototype;d.L=function(){return"UnresolvedShape"};d.H=function(){return 6};d.es=function(a,b){var c=this.GG;c.b()||c.c().R(a).Pc();a=this.qQ;a.b()||a.c().R(b)};
d.h=function(a){if(this===a)return!0;if(mda(a)){if(this.ea===a.ea&&this.ab===a.ab&&this.PH===a.PH)var b=this.GG,c=a.GG,b=null===b?null===c:b.h(c);else b=!1;b?(b=this.qQ,c=a.qQ,b=null===b?null===c:b.h(c)):b=!1;return b?this.YP===a.YP:!1}return!1};d.K=function(a){switch(a){case 0:return this.ea;case 1:return this.ab;case 2:return this.PH;case 3:return this.GG;case 4:return this.qQ;case 5:return this.YP;default:throw(new X).e(""+a);}};d.El=function(){return this};d.rc=function(){return this.no};
d.Mq=function(){return H(z(),G())};d.ha=function(){return this.ab};d.u=function(){return U(W(),this)};d.Nt=function(){return this.YP};d.Nd=function(){return"/unresolved"};d.gk=function(){return this};d.Qk=function(){return qd(function(a){return function(b,c){return Vi(new Wi,b,c,a.PH,a.GG,w(),!0)}}(this))};d.ca=function(){return this.ea};d.Ey=function(){return this};function Vi(a,b,c,e,f,g,h){a.PH=e;a.GG=f;a.qQ=g;a.YP=h;oi.prototype.P.call(a,b,c);a.De=w();a.no=th();return a}d.Up=function(){return this};
d.y=function(){var a=-889275714,a=zI().Ga(a,yI(zI(),this.ea)),a=zI().Ga(a,yI(zI(),this.ab)),a=zI().Ga(a,yI(zI(),this.PH)),a=zI().Ga(a,yI(zI(),this.GG)),a=zI().Ga(a,yI(zI(),this.qQ)),a=zI().Ga(a,this.YP?1231:1237);return zI().Wd(a,6)};d.Qv=function(){return this.no};d.M=function(){return Z(this)};function Qvb(a,b){b=b.gk(a.PH,a.ab);a=B(a.ea,Pg().$).G;a=a.b()?null:a.c();M();var c=(new N).a();Ue(b,a,c)}function mda(a){return!!(a&&a.$classData&&a.$classData.v.Qva)}
var SVa=q({Qva:0},!1,"amf.plugins.domain.shapes.models.UnresolvedShape",{Qva:1,Zx:1,zw:1,f:1,de:1,Wc:1,Rc:1,Pi:1,Jh:1,$x:1,Hz:1,Gz:1,yB:1,zB:1,yw:1,Fz:1,Neb:1,A:1,w:1,q:1,n:1});Wi.prototype.$classData=SVa;function dd(){this.Rb=null}dd.prototype=new hxb;dd.prototype.constructor=dd;function jxb(){}d=jxb.prototype=dd.prototype;d.X=function(a){var b=this.Rb.gf();fS(b,a)};d.lb=function(){return this.Rb.lb()};d.kb=function(){return this.Rb.gf()};
d.Qd=function(a){if(null===a)throw Lb(Mb(),null);this.Rb=a;return this};d.$classData=q({JEa:0},!1,"scala.collection.MapLike$DefaultValuesIterable",{JEa:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,q:1,n:1});function nZa(){this.ia=null}nZa.prototype=new r;nZa.prototype.constructor=nZa;d=nZa.prototype;d.td=function(){return(new o5).TG(this.ia)};d.Yn=function(a,b){JF(this,a,b)};d.fa=function(){return Wj(this)};d.jb=function(a){return this.ia.j[a]};
d.Ge=function(a){return w9(this,a)};d.pm=function(){return hD(new iD,this,0,this.ia.j.length)};d.Jl=function(a){return x9(this,a)};d.Cd=function(a){return y9(this,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return HF(this)};d.Qf=function(){return(new o5).TG(this.ia)};d.md=function(a,b){return eA(this,a,b)};d.h=function(a){SAa||(SAa=(new UI).a());return a&&a.$classData&&a.$classData.v.JFa?this.ia===(null===a?null:a.ia):!1};d.Ck=function(a){return z9(this,a)};
d.ng=function(a){return IG(this,"",a,"")};d.Fk=function(a,b,c){return IG(this,a,b,c)};d.qq=function(a){return IC(new JC,this,a)};d.Ng=function(a){return B9(this,a)};d.hg=function(a,b){return Ss(this,a,b)};d.Ej=function(a){return nv(this,a)};d.u=function(){return E6(this)};d.X=function(a){C9(this,a)};d.ae=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.Qr=function(a,b){return vp(this,a,b)};d.ol=function(a){return E9(this,a)};d.pc=function(){return Ps(this)};
d.lq=function(a,b){return Q9(this,a,b)};d.Mo=function(a){return l9(this,a)};d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.xb=function(a){return F6(this,a,!1)};d.lb=function(){return this.ia.j.length};d.bj=function(){return t9(this)};d.Ri=function(){return oM(this)};d.kb=function(){return hD(new iD,this,0,this.ia.j.length)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.Tp=function(a){return m9(this,a)};d.lm=function(){return IG(this,"","","")};
d.cg=function(a){return I9(this,a)};d.la=function(a,b){return vp(this,a,b)};d.Ka=function(){return this.ia.j.length};d.Xq=function(){return G6(this)};d.Yq=function(){return Cw(this)};d.Ph=function(a){return F6(this,a,!0)};d.Ol=function(){return this.ia.j.length};d.br=function(a){return B2(this,a)};d.Wj=function(a){return Q9(this,0,a)};d.kd=function(){var a=hD(new iD,this,0,this.ia.j.length);return Tu(a)};d.ck=function(a){return Q9(this,a,this.ia.j.length)};d.Ja=function(a){return Vs(this,a)};
d.sa=function(){return tu(this)};d.Hj=function(){return(new o5).TG(this.ia)};d.Vo=function(){return(new o5).TG(this.ia)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.qi=function(a,b){return o9(this,a,b)};d.ce=function(){return(new o5).TG(this.ia)};d.TG=function(a){this.ia=a;return this};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this.ia};d.rl=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.$j=function(a,b,c){R9(this,a,b,c)};d.ko=function(){return!0};
d.Ym=function(a){return H6(this,a)};d.y=function(){return this.ia.y()};d.Zq=function(a,b){return X8(this,a,b)};d.$g=function(){for(var a=Ry(new Sy,Xs()),b=0,c=this.ia.j.length;b<c;)Ty(a,this.ia.j[b]),b=1+b|0;return a.gb};d.ka=function(a,b){return De(this,a,b)};d.Ql=function(a){return S9(this,a)};d.Fa=function(){return Tc(this)};d.$b=function(a,b){return Fr(this,a,b)};d.Sj=function(a){return M9(this,a)};d.Ed=function(){return(new Srb).a()};d.Lk=function(){return I6(this)};
d.$classData=q({JFa:0},!1,"scala.collection.mutable.ArrayOps$ofBoolean",{JFa:1,f:1,jF:1,iq:1,Ll:1,ml:1,Ki:1,Ye:1,Bc:1,w:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,zc:1,Xe:1,ok:1,gi:1});function oZa(){this.ia=null}oZa.prototype=new r;oZa.prototype.constructor=oZa;d=oZa.prototype;d.td=function(){return(new i5).MG(this.ia)};d.Yn=function(a,b){JF(this,a,b)};d.fa=function(){return Wj(this)};d.jb=function(a){return this.ia.j[a]};d.Ge=function(a){return w9(this,a)};d.pm=function(){return hD(new iD,this,0,this.ia.j.length)};
d.Jl=function(a){return x9(this,a)};d.Cd=function(a){return y9(this,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return HF(this)};d.Qf=function(){return(new i5).MG(this.ia)};d.md=function(a,b){return eA(this,a,b)};d.h=function(a){TAa||(TAa=(new VI).a());return a&&a.$classData&&a.$classData.v.KFa?this.ia===(null===a?null:a.ia):!1};d.Ck=function(a){return z9(this,a)};d.ng=function(a){return IG(this,"",a,"")};d.Fk=function(a,b,c){return IG(this,a,b,c)};
d.qq=function(a){return IC(new JC,this,a)};d.Ng=function(a){return B9(this,a)};d.hg=function(a,b){return Ss(this,a,b)};d.Ej=function(a){return nv(this,a)};d.u=function(){return E6(this)};d.X=function(a){C9(this,a)};d.ae=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.Qr=function(a,b){return vp(this,a,b)};d.ol=function(a){return E9(this,a)};d.pc=function(){return Ps(this)};d.lq=function(a,b){return Q9(this,a,b)};d.Mo=function(a){return l9(this,a)};
d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.xb=function(a){return F6(this,a,!1)};d.lb=function(){return this.ia.j.length};d.bj=function(){return t9(this)};d.Ri=function(){return oM(this)};d.kb=function(){return hD(new iD,this,0,this.ia.j.length)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.Tp=function(a){return m9(this,a)};d.lm=function(){return IG(this,"","","")};d.cg=function(a){return I9(this,a)};d.la=function(a,b){return vp(this,a,b)};d.Ka=function(){return this.ia.j.length};
d.Xq=function(){return G6(this)};d.Yq=function(){return Cw(this)};d.Ph=function(a){return F6(this,a,!0)};d.Ol=function(){return this.ia.j.length};d.br=function(a){return B2(this,a)};d.Wj=function(a){return Q9(this,0,a)};d.kd=function(){var a=hD(new iD,this,0,this.ia.j.length);return Tu(a)};d.ck=function(a){return Q9(this,a,this.ia.j.length)};d.Ja=function(a){return Vs(this,a)};d.sa=function(){return tu(this)};d.Hj=function(){return(new i5).MG(this.ia)};d.Vo=function(){return(new i5).MG(this.ia)};
d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.qi=function(a,b){return o9(this,a,b)};d.ce=function(){return(new i5).MG(this.ia)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this.ia};d.rl=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.$j=function(a,b,c){R9(this,a,b,c)};d.ko=function(){return!0};d.Ym=function(a){return H6(this,a)};d.y=function(){return this.ia.y()};d.Zq=function(a,b){return X8(this,a,b)};
d.$g=function(){for(var a=Ry(new Sy,Xs()),b=0,c=this.ia.j.length;b<c;)Ty(a,this.ia.j[b]),b=1+b|0;return a.gb};d.MG=function(a){this.ia=a;return this};d.ka=function(a,b){return De(this,a,b)};d.Ql=function(a){return S9(this,a)};d.Fa=function(){return Tc(this)};d.$b=function(a,b){return Fr(this,a,b)};d.Sj=function(a){return M9(this,a)};d.Ed=function(){return(new Vrb).a()};d.Lk=function(){return I6(this)};
d.$classData=q({KFa:0},!1,"scala.collection.mutable.ArrayOps$ofByte",{KFa:1,f:1,jF:1,iq:1,Ll:1,ml:1,Ki:1,Ye:1,Bc:1,w:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,zc:1,Xe:1,ok:1,gi:1});function Et(){this.ia=null}Et.prototype=new r;Et.prototype.constructor=Et;d=Et.prototype;d.td=function(){return(new az).dx(this.ia)};d.Yn=function(a,b){JF(this,a,b)};d.fa=function(){return Wj(this)};d.jb=function(a){return Dc(this.ia.j[a])};d.Ge=function(a){return w9(this,a)};d.pm=function(){return hD(new iD,this,0,this.ia.j.length)};
d.Jl=function(a){return x9(this,a)};d.Cd=function(a){return y9(this,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return HF(this)};d.Qf=function(){return(new az).dx(this.ia)};d.md=function(a,b){return eA(this,a,b)};d.h=function(a){UAa||(UAa=(new WI).a());return a&&a.$classData&&a.$classData.v.LFa?this.ia===(null===a?null:a.ia):!1};d.Ck=function(a){return z9(this,a)};d.ng=function(a){return IG(this,"",a,"")};d.Fk=function(a,b,c){return IG(this,a,b,c)};
d.qq=function(a){return IC(new JC,this,a)};d.Ng=function(a){return B9(this,a)};d.hg=function(a,b){return Ss(this,a,b)};d.Ej=function(a){return nv(this,a)};d.u=function(){return E6(this)};d.X=function(a){C9(this,a)};d.ae=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.Qr=function(a,b){return vp(this,a,b)};d.ol=function(a){return E9(this,a)};d.pc=function(){return Ps(this)};d.lq=function(a,b){return Q9(this,a,b)};d.Mo=function(a){return l9(this,a)};
d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.xb=function(a){return F6(this,a,!1)};d.lb=function(){return this.ia.j.length};d.bj=function(){return t9(this)};d.Ri=function(){return oM(this)};d.kb=function(){return hD(new iD,this,0,this.ia.j.length)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.Tp=function(a){return m9(this,a)};d.lm=function(){return IG(this,"","","")};d.cg=function(a){return I9(this,a)};d.la=function(a,b){return vp(this,a,b)};d.Ka=function(){return this.ia.j.length};
d.Xq=function(){return G6(this)};d.Yq=function(){return Cw(this)};d.Ph=function(a){return F6(this,a,!0)};d.Ol=function(){return this.ia.j.length};d.br=function(a){return B2(this,a)};d.Wj=function(a){return Q9(this,0,a)};d.dx=function(a){this.ia=a;return this};d.kd=function(){var a=hD(new iD,this,0,this.ia.j.length);return Tu(a)};d.ck=function(a){return Q9(this,a,this.ia.j.length)};d.Ja=function(a){return Vs(this,a)};d.sa=function(){return tu(this)};d.Hj=function(){return(new az).dx(this.ia)};
d.Vo=function(){return(new az).dx(this.ia)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.qi=function(a,b){return o9(this,a,b)};d.ce=function(){return(new az).dx(this.ia)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this.ia};d.rl=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.$j=function(a,b,c){R9(this,a,b,c)};d.ko=function(){return!0};d.Ym=function(a){return H6(this,a)};d.y=function(){return this.ia.y()};d.Zq=function(a,b){return X8(this,a,b)};
d.$g=function(){for(var a=Ry(new Sy,Xs()),b=0,c=this.ia.j.length;b<c;){var e=this.jb(b);Ty(a,e);b=1+b|0}return a.gb};d.ka=function(a,b){return De(this,a,b)};d.Ql=function(a){return S9(this,a)};d.Fa=function(){return Tc(this)};d.$b=function(a,b){return Fr(this,a,b)};d.Sj=function(a){return M9(this,a)};d.Ed=function(){return(new Yrb).a()};d.Lk=function(){return I6(this)};
d.$classData=q({LFa:0},!1,"scala.collection.mutable.ArrayOps$ofChar",{LFa:1,f:1,jF:1,iq:1,Ll:1,ml:1,Ki:1,Ye:1,Bc:1,w:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,zc:1,Xe:1,ok:1,gi:1});function pZa(){this.ia=null}pZa.prototype=new r;pZa.prototype.constructor=pZa;d=pZa.prototype;d.td=function(){return(new n5).OG(this.ia)};d.Yn=function(a,b){JF(this,a,b)};d.fa=function(){return Wj(this)};d.jb=function(a){return this.ia.j[a]};d.Ge=function(a){return w9(this,a)};d.pm=function(){return hD(new iD,this,0,this.ia.j.length)};
d.Jl=function(a){return x9(this,a)};d.Cd=function(a){return y9(this,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return HF(this)};d.Qf=function(){return(new n5).OG(this.ia)};d.md=function(a,b){return eA(this,a,b)};d.h=function(a){VAa||(VAa=(new XI).a());return a&&a.$classData&&a.$classData.v.MFa?this.ia===(null===a?null:a.ia):!1};d.Ck=function(a){return z9(this,a)};d.ng=function(a){return IG(this,"",a,"")};d.OG=function(a){this.ia=a;return this};
d.Fk=function(a,b,c){return IG(this,a,b,c)};d.qq=function(a){return IC(new JC,this,a)};d.Ng=function(a){return B9(this,a)};d.hg=function(a,b){return Ss(this,a,b)};d.Ej=function(a){return nv(this,a)};d.u=function(){return E6(this)};d.X=function(a){C9(this,a)};d.ae=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.Qr=function(a,b){return vp(this,a,b)};d.ol=function(a){return E9(this,a)};d.pc=function(){return Ps(this)};
d.lq=function(a,b){return Q9(this,a,b)};d.Mo=function(a){return l9(this,a)};d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.xb=function(a){return F6(this,a,!1)};d.lb=function(){return this.ia.j.length};d.bj=function(){return t9(this)};d.Ri=function(){return oM(this)};d.kb=function(){return hD(new iD,this,0,this.ia.j.length)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.Tp=function(a){return m9(this,a)};d.lm=function(){return IG(this,"","","")};
d.cg=function(a){return I9(this,a)};d.la=function(a,b){return vp(this,a,b)};d.Ka=function(){return this.ia.j.length};d.Xq=function(){return G6(this)};d.Yq=function(){return Cw(this)};d.Ph=function(a){return F6(this,a,!0)};d.Ol=function(){return this.ia.j.length};d.br=function(a){return B2(this,a)};d.Wj=function(a){return Q9(this,0,a)};d.kd=function(){var a=hD(new iD,this,0,this.ia.j.length);return Tu(a)};d.ck=function(a){return Q9(this,a,this.ia.j.length)};d.Ja=function(a){return Vs(this,a)};
d.sa=function(){return tu(this)};d.Hj=function(){return(new n5).OG(this.ia)};d.Vo=function(){return(new n5).OG(this.ia)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.qi=function(a,b){return o9(this,a,b)};d.ce=function(){return(new n5).OG(this.ia)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this.ia};d.rl=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.$j=function(a,b,c){R9(this,a,b,c)};d.ko=function(){return!0};d.Ym=function(a){return H6(this,a)};
d.y=function(){return this.ia.y()};d.Zq=function(a,b){return X8(this,a,b)};d.$g=function(){for(var a=Ry(new Sy,Xs()),b=0,c=this.ia.j.length;b<c;)Ty(a,this.ia.j[b]),b=1+b|0;return a.gb};d.ka=function(a,b){return De(this,a,b)};d.Ql=function(a){return S9(this,a)};d.Fa=function(){return Tc(this)};d.$b=function(a,b){return Fr(this,a,b)};d.Sj=function(a){return M9(this,a)};d.Ed=function(){return(new asb).a()};d.Lk=function(){return I6(this)};
d.$classData=q({MFa:0},!1,"scala.collection.mutable.ArrayOps$ofDouble",{MFa:1,f:1,jF:1,iq:1,Ll:1,ml:1,Ki:1,Ye:1,Bc:1,w:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,zc:1,Xe:1,ok:1,gi:1});function qZa(){this.ia=null}qZa.prototype=new r;qZa.prototype.constructor=qZa;d=qZa.prototype;d.td=function(){return(new m5).PG(this.ia)};d.Yn=function(a,b){JF(this,a,b)};d.fa=function(){return Wj(this)};d.jb=function(a){return this.ia.j[a]};d.Ge=function(a){return w9(this,a)};d.pm=function(){return hD(new iD,this,0,this.ia.j.length)};
d.Jl=function(a){return x9(this,a)};d.Cd=function(a){return y9(this,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return HF(this)};d.Qf=function(){return(new m5).PG(this.ia)};d.md=function(a,b){return eA(this,a,b)};d.h=function(a){WAa||(WAa=(new YI).a());return a&&a.$classData&&a.$classData.v.NFa?this.ia===(null===a?null:a.ia):!1};d.Ck=function(a){return z9(this,a)};d.ng=function(a){return IG(this,"",a,"")};d.Fk=function(a,b,c){return IG(this,a,b,c)};
d.qq=function(a){return IC(new JC,this,a)};d.Ng=function(a){return B9(this,a)};d.hg=function(a,b){return Ss(this,a,b)};d.Ej=function(a){return nv(this,a)};d.u=function(){return E6(this)};d.X=function(a){C9(this,a)};d.ae=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.Qr=function(a,b){return vp(this,a,b)};d.ol=function(a){return E9(this,a)};d.pc=function(){return Ps(this)};d.lq=function(a,b){return Q9(this,a,b)};d.Mo=function(a){return l9(this,a)};
d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.xb=function(a){return F6(this,a,!1)};d.lb=function(){return this.ia.j.length};d.bj=function(){return t9(this)};d.Ri=function(){return oM(this)};d.kb=function(){return hD(new iD,this,0,this.ia.j.length)};d.PG=function(a){this.ia=a;return this};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.Tp=function(a){return m9(this,a)};d.lm=function(){return IG(this,"","","")};d.cg=function(a){return I9(this,a)};
d.la=function(a,b){return vp(this,a,b)};d.Ka=function(){return this.ia.j.length};d.Xq=function(){return G6(this)};d.Yq=function(){return Cw(this)};d.Ph=function(a){return F6(this,a,!0)};d.Ol=function(){return this.ia.j.length};d.br=function(a){return B2(this,a)};d.Wj=function(a){return Q9(this,0,a)};d.kd=function(){var a=hD(new iD,this,0,this.ia.j.length);return Tu(a)};d.ck=function(a){return Q9(this,a,this.ia.j.length)};d.Ja=function(a){return Vs(this,a)};d.sa=function(){return tu(this)};d.Hj=function(){return(new m5).PG(this.ia)};
d.Vo=function(){return(new m5).PG(this.ia)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.qi=function(a,b){return o9(this,a,b)};d.ce=function(){return(new m5).PG(this.ia)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this.ia};d.rl=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.$j=function(a,b,c){R9(this,a,b,c)};d.ko=function(){return!0};d.Ym=function(a){return H6(this,a)};d.y=function(){return this.ia.y()};d.Zq=function(a,b){return X8(this,a,b)};
d.$g=function(){for(var a=Ry(new Sy,Xs()),b=0,c=this.ia.j.length;b<c;)Ty(a,this.ia.j[b]),b=1+b|0;return a.gb};d.ka=function(a,b){return De(this,a,b)};d.Ql=function(a){return S9(this,a)};d.Fa=function(){return Tc(this)};d.$b=function(a,b){return Fr(this,a,b)};d.Sj=function(a){return M9(this,a)};d.Ed=function(){return(new dsb).a()};d.Lk=function(){return I6(this)};
d.$classData=q({NFa:0},!1,"scala.collection.mutable.ArrayOps$ofFloat",{NFa:1,f:1,jF:1,iq:1,Ll:1,ml:1,Ki:1,Ye:1,Bc:1,w:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,zc:1,Xe:1,ok:1,gi:1});function rZa(){this.ia=null}rZa.prototype=new r;rZa.prototype.constructor=rZa;d=rZa.prototype;d.td=function(){return(new k5).QG(this.ia)};d.Yn=function(a,b){JF(this,a,b)};d.fa=function(){return Wj(this)};d.jb=function(a){return this.ia.j[a]};d.Ge=function(a){return w9(this,a)};d.pm=function(){return hD(new iD,this,0,this.ia.j.length)};
d.Jl=function(a){return x9(this,a)};d.Cd=function(a){return y9(this,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return HF(this)};d.Qf=function(){return(new k5).QG(this.ia)};d.md=function(a,b){return eA(this,a,b)};d.h=function(a){XAa||(XAa=(new ZI).a());return a&&a.$classData&&a.$classData.v.OFa?this.ia===(null===a?null:a.ia):!1};d.Ck=function(a){return z9(this,a)};d.ng=function(a){return IG(this,"",a,"")};d.Fk=function(a,b,c){return IG(this,a,b,c)};
d.qq=function(a){return IC(new JC,this,a)};d.Ng=function(a){return B9(this,a)};d.hg=function(a,b){return Ss(this,a,b)};d.Ej=function(a){return nv(this,a)};d.u=function(){return E6(this)};d.X=function(a){C9(this,a)};d.ae=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.Qr=function(a,b){return vp(this,a,b)};d.ol=function(a){return E9(this,a)};d.pc=function(){return Ps(this)};d.lq=function(a,b){return Q9(this,a,b)};d.Mo=function(a){return l9(this,a)};
d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.xb=function(a){return F6(this,a,!1)};d.lb=function(){return this.ia.j.length};d.bj=function(){return t9(this)};d.Ri=function(){return oM(this)};d.kb=function(){return hD(new iD,this,0,this.ia.j.length)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.Tp=function(a){return m9(this,a)};d.QG=function(a){this.ia=a;return this};d.lm=function(){return IG(this,"","","")};d.cg=function(a){return I9(this,a)};
d.la=function(a,b){return vp(this,a,b)};d.Ka=function(){return this.ia.j.length};d.Xq=function(){return G6(this)};d.Yq=function(){return Cw(this)};d.Ph=function(a){return F6(this,a,!0)};d.Ol=function(){return this.ia.j.length};d.br=function(a){return B2(this,a)};d.Wj=function(a){return Q9(this,0,a)};d.kd=function(){var a=hD(new iD,this,0,this.ia.j.length);return Tu(a)};d.ck=function(a){return Q9(this,a,this.ia.j.length)};d.Ja=function(a){return Vs(this,a)};d.sa=function(){return tu(this)};d.Hj=function(){return(new k5).QG(this.ia)};
d.Vo=function(){return(new k5).QG(this.ia)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.qi=function(a,b){return o9(this,a,b)};d.ce=function(){return(new k5).QG(this.ia)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this.ia};d.rl=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.$j=function(a,b,c){R9(this,a,b,c)};d.ko=function(){return!0};d.Ym=function(a){return H6(this,a)};d.y=function(){return this.ia.y()};d.Zq=function(a,b){return X8(this,a,b)};
d.$g=function(){for(var a=Ry(new Sy,Xs()),b=0,c=this.ia.j.length;b<c;)Ty(a,this.ia.j[b]),b=1+b|0;return a.gb};d.ka=function(a,b){return De(this,a,b)};d.Ql=function(a){return S9(this,a)};d.Fa=function(){return Tc(this)};d.$b=function(a,b){return Fr(this,a,b)};d.Sj=function(a){return M9(this,a)};d.Ed=function(){return(new gsb).a()};d.Lk=function(){return I6(this)};
d.$classData=q({OFa:0},!1,"scala.collection.mutable.ArrayOps$ofInt",{OFa:1,f:1,jF:1,iq:1,Ll:1,ml:1,Ki:1,Ye:1,Bc:1,w:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,zc:1,Xe:1,ok:1,gi:1});function sZa(){this.ia=null}sZa.prototype=new r;sZa.prototype.constructor=sZa;d=sZa.prototype;d.td=function(){return(new l5).RG(this.ia)};d.Yn=function(a,b){JF(this,a,b)};d.fa=function(){return Wj(this)};d.jb=function(a){return this.ia.j[a]};d.Ge=function(a){return w9(this,a)};d.pm=function(){return hD(new iD,this,0,this.ia.j.length)};
d.Jl=function(a){return x9(this,a)};d.Cd=function(a){return y9(this,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return HF(this)};d.RG=function(a){this.ia=a;return this};d.Qf=function(){return(new l5).RG(this.ia)};d.md=function(a,b){return eA(this,a,b)};d.h=function(a){YAa||(YAa=(new $I).a());return a&&a.$classData&&a.$classData.v.PFa?this.ia===(null===a?null:a.ia):!1};d.Ck=function(a){return z9(this,a)};d.ng=function(a){return IG(this,"",a,"")};
d.Fk=function(a,b,c){return IG(this,a,b,c)};d.qq=function(a){return IC(new JC,this,a)};d.Ng=function(a){return B9(this,a)};d.hg=function(a,b){return Ss(this,a,b)};d.Ej=function(a){return nv(this,a)};d.u=function(){return E6(this)};d.X=function(a){C9(this,a)};d.ae=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.Qr=function(a,b){return vp(this,a,b)};d.ol=function(a){return E9(this,a)};d.pc=function(){return Ps(this)};
d.lq=function(a,b){return Q9(this,a,b)};d.Mo=function(a){return l9(this,a)};d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.xb=function(a){return F6(this,a,!1)};d.lb=function(){return this.ia.j.length};d.bj=function(){return t9(this)};d.Ri=function(){return oM(this)};d.kb=function(){return hD(new iD,this,0,this.ia.j.length)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.Tp=function(a){return m9(this,a)};d.lm=function(){return IG(this,"","","")};
d.cg=function(a){return I9(this,a)};d.la=function(a,b){return vp(this,a,b)};d.Ka=function(){return this.ia.j.length};d.Xq=function(){return G6(this)};d.Yq=function(){return Cw(this)};d.Ph=function(a){return F6(this,a,!0)};d.Ol=function(){return this.ia.j.length};d.br=function(a){return B2(this,a)};d.Wj=function(a){return Q9(this,0,a)};d.kd=function(){var a=hD(new iD,this,0,this.ia.j.length);return Tu(a)};d.ck=function(a){return Q9(this,a,this.ia.j.length)};d.Ja=function(a){return Vs(this,a)};
d.sa=function(){return tu(this)};d.Hj=function(){return(new l5).RG(this.ia)};d.Vo=function(){return(new l5).RG(this.ia)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.qi=function(a,b){return o9(this,a,b)};d.ce=function(){return(new l5).RG(this.ia)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this.ia};d.rl=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.$j=function(a,b,c){R9(this,a,b,c)};d.ko=function(){return!0};d.Ym=function(a){return H6(this,a)};
d.y=function(){return this.ia.y()};d.Zq=function(a,b){return X8(this,a,b)};d.$g=function(){for(var a=Ry(new Sy,Xs()),b=0,c=this.ia.j.length;b<c;){var e=this.ia.j[b];Ty(a,(new aq).La(e.Na,e.$a));b=1+b|0}return a.gb};d.ka=function(a,b){return De(this,a,b)};d.Ql=function(a){return S9(this,a)};d.Fa=function(){return Tc(this)};d.$b=function(a,b){return Fr(this,a,b)};d.Sj=function(a){return M9(this,a)};d.Ed=function(){return(new jsb).a()};d.Lk=function(){return I6(this)};
d.$classData=q({PFa:0},!1,"scala.collection.mutable.ArrayOps$ofLong",{PFa:1,f:1,jF:1,iq:1,Ll:1,ml:1,Ki:1,Ye:1,Bc:1,w:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,zc:1,Xe:1,ok:1,gi:1});function md(){this.ia=null}md.prototype=new r;md.prototype.constructor=md;d=md.prototype;d.td=function(){return(new FH).vc(this.ia)};d.Yn=function(a,b){JF(this,a,b)};d.fa=function(){return Wj(this)};d.jb=function(a){return this.ia.j[a]};d.Ge=function(a){return w9(this,a)};d.pm=function(){return hD(new iD,this,0,this.ia.j.length)};
d.Jl=function(a){return x9(this,a)};d.Cd=function(a){return y9(this,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return HF(this)};d.Qf=function(){return(new FH).vc(this.ia)};d.md=function(a,b){return eA(this,a,b)};d.h=function(a){ZAa||(ZAa=(new aJ).a());return a&&a.$classData&&a.$classData.v.QFa?this.ia===(null===a?null:a.ia):!1};d.Ck=function(a){return z9(this,a)};d.ng=function(a){return IG(this,"",a,"")};d.Fk=function(a,b,c){return IG(this,a,b,c)};
d.qq=function(a){return IC(new JC,this,a)};d.Ng=function(a){return B9(this,a)};d.hg=function(a,b){return Ss(this,a,b)};d.Ej=function(a){return nv(this,a)};d.u=function(){return E6(this)};d.X=function(a){C9(this,a)};d.ae=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.Qr=function(a,b){return vp(this,a,b)};d.ol=function(a){return E9(this,a)};d.pc=function(){return Ps(this)};d.lq=function(a,b){return Q9(this,a,b)};d.Mo=function(a){return l9(this,a)};
d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.xb=function(a){return F6(this,a,!1)};d.lb=function(){return this.ia.j.length};d.bj=function(){return t9(this)};d.Ri=function(){return oM(this)};d.vc=function(a){this.ia=a;return this};d.kb=function(){return hD(new iD,this,0,this.ia.j.length)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.Tp=function(a){return m9(this,a)};d.lm=function(){return IG(this,"","","")};d.cg=function(a){return I9(this,a)};
d.la=function(a,b){return vp(this,a,b)};d.Ka=function(){return this.ia.j.length};d.Xq=function(){return G6(this)};d.Yq=function(){return Cw(this)};d.Ph=function(a){return F6(this,a,!0)};d.Ol=function(){return this.ia.j.length};d.br=function(a){return B2(this,a)};d.Wj=function(a){return Q9(this,0,a)};d.kd=function(){var a=hD(new iD,this,0,this.ia.j.length);return Tu(a)};d.ck=function(a){return Q9(this,a,this.ia.j.length)};d.Ja=function(a){return Vs(this,a)};d.sa=function(){return tu(this)};d.Hj=function(){return(new FH).vc(this.ia)};
d.Vo=function(){return(new FH).vc(this.ia)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.qi=function(a,b){return o9(this,a,b)};d.ce=function(){return(new FH).vc(this.ia)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this.ia};d.rl=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.$j=function(a,b,c){R9(this,a,b,c)};d.ko=function(){return!0};d.Ym=function(a){return H6(this,a)};d.y=function(){return this.ia.y()};d.Zq=function(a,b){return X8(this,a,b)};
d.$g=function(){for(var a=Ry(new Sy,Xs()),b=0,c=this.ia.j.length;b<c;)Ty(a,this.ia.j[b]),b=1+b|0;return a.gb};d.ka=function(a,b){return De(this,a,b)};d.Ql=function(a){return S9(this,a)};d.Fa=function(){return Tc(this)};d.$b=function(a,b){return Fr(this,a,b)};d.Sj=function(a){return M9(this,a)};d.Ed=function(){var a=this.ia;return(new yW).k1(NUa(OUa(),Jt(ka(a))))};d.Lk=function(){return I6(this)};
d.$classData=q({QFa:0},!1,"scala.collection.mutable.ArrayOps$ofRef",{QFa:1,f:1,jF:1,iq:1,Ll:1,ml:1,Ki:1,Ye:1,Bc:1,w:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,zc:1,Xe:1,ok:1,gi:1});function tZa(){this.ia=null}tZa.prototype=new r;tZa.prototype.constructor=tZa;d=tZa.prototype;d.td=function(){return(new j5).SG(this.ia)};d.Yn=function(a,b){JF(this,a,b)};d.fa=function(){return Wj(this)};d.jb=function(a){return this.ia.j[a]};d.Ge=function(a){return w9(this,a)};d.pm=function(){return hD(new iD,this,0,this.ia.j.length)};
d.Jl=function(a){return x9(this,a)};d.Cd=function(a){return y9(this,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return HF(this)};d.SG=function(a){this.ia=a;return this};d.Qf=function(){return(new j5).SG(this.ia)};d.md=function(a,b){return eA(this,a,b)};d.h=function(a){$Aa||($Aa=(new bJ).a());return a&&a.$classData&&a.$classData.v.RFa?this.ia===(null===a?null:a.ia):!1};d.Ck=function(a){return z9(this,a)};d.ng=function(a){return IG(this,"",a,"")};
d.Fk=function(a,b,c){return IG(this,a,b,c)};d.qq=function(a){return IC(new JC,this,a)};d.Ng=function(a){return B9(this,a)};d.hg=function(a,b){return Ss(this,a,b)};d.Ej=function(a){return nv(this,a)};d.u=function(){return E6(this)};d.X=function(a){C9(this,a)};d.ae=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.Qr=function(a,b){return vp(this,a,b)};d.ol=function(a){return E9(this,a)};d.pc=function(){return Ps(this)};
d.lq=function(a,b){return Q9(this,a,b)};d.Mo=function(a){return l9(this,a)};d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.xb=function(a){return F6(this,a,!1)};d.lb=function(){return this.ia.j.length};d.bj=function(){return t9(this)};d.Ri=function(){return oM(this)};d.kb=function(){return hD(new iD,this,0,this.ia.j.length)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.Tp=function(a){return m9(this,a)};d.lm=function(){return IG(this,"","","")};
d.cg=function(a){return I9(this,a)};d.la=function(a,b){return vp(this,a,b)};d.Ka=function(){return this.ia.j.length};d.Xq=function(){return G6(this)};d.Yq=function(){return Cw(this)};d.Ph=function(a){return F6(this,a,!0)};d.Ol=function(){return this.ia.j.length};d.br=function(a){return B2(this,a)};d.Wj=function(a){return Q9(this,0,a)};d.kd=function(){var a=hD(new iD,this,0,this.ia.j.length);return Tu(a)};d.ck=function(a){return Q9(this,a,this.ia.j.length)};d.Ja=function(a){return Vs(this,a)};
d.sa=function(){return tu(this)};d.Hj=function(){return(new j5).SG(this.ia)};d.Vo=function(){return(new j5).SG(this.ia)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.qi=function(a,b){return o9(this,a,b)};d.ce=function(){return(new j5).SG(this.ia)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this.ia};d.rl=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.$j=function(a,b,c){R9(this,a,b,c)};d.ko=function(){return!0};d.Ym=function(a){return H6(this,a)};
d.y=function(){return this.ia.y()};d.Zq=function(a,b){return X8(this,a,b)};d.$g=function(){for(var a=Ry(new Sy,Xs()),b=0,c=this.ia.j.length;b<c;)Ty(a,this.ia.j[b]),b=1+b|0;return a.gb};d.ka=function(a,b){return De(this,a,b)};d.Ql=function(a){return S9(this,a)};d.Fa=function(){return Tc(this)};d.$b=function(a,b){return Fr(this,a,b)};d.Sj=function(a){return M9(this,a)};d.Ed=function(){return(new nsb).a()};d.Lk=function(){return I6(this)};
d.$classData=q({RFa:0},!1,"scala.collection.mutable.ArrayOps$ofShort",{RFa:1,f:1,jF:1,iq:1,Ll:1,ml:1,Ki:1,Ye:1,Bc:1,w:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,zc:1,Xe:1,ok:1,gi:1});function uZa(){this.ia=null}uZa.prototype=new r;uZa.prototype.constructor=uZa;d=uZa.prototype;d.td=function(){return(new p5).UG(this.ia)};d.Yn=function(a,b){JF(this,a,b)};d.fa=function(){return Wj(this)};d.jb=function(){};d.Ge=function(a){return w9(this,a)};d.pm=function(){return hD(new iD,this,0,this.ia.j.length)};
d.Jl=function(a){return x9(this,a)};d.Cd=function(a){return y9(this,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return HF(this)};d.Qf=function(){return(new p5).UG(this.ia)};d.md=function(a,b){return eA(this,a,b)};d.h=function(a){aBa||(aBa=(new cJ).a());return a&&a.$classData&&a.$classData.v.SFa?this.ia===(null===a?null:a.ia):!1};d.Ck=function(a){return z9(this,a)};d.ng=function(a){return IG(this,"",a,"")};d.Fk=function(a,b,c){return IG(this,a,b,c)};
d.qq=function(a){return IC(new JC,this,a)};d.Ng=function(a){return B9(this,a)};d.hg=function(a,b){return Ss(this,a,b)};d.Ej=function(a){return nv(this,a)};d.u=function(){return E6(this)};d.X=function(a){C9(this,a)};d.ae=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.Qr=function(a,b){return vp(this,a,b)};d.ol=function(a){return E9(this,a)};d.pc=function(){return Ps(this)};d.lq=function(a,b){return Q9(this,a,b)};d.Mo=function(a){return l9(this,a)};
d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.xb=function(a){return F6(this,a,!1)};d.lb=function(){return this.ia.j.length};d.bj=function(){return t9(this)};d.Ri=function(){return oM(this)};d.kb=function(){return hD(new iD,this,0,this.ia.j.length)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.Tp=function(a){return m9(this,a)};d.lm=function(){return IG(this,"","","")};d.cg=function(a){return I9(this,a)};d.la=function(a,b){return vp(this,a,b)};d.Ka=function(){return this.ia.j.length};
d.Xq=function(){return G6(this)};d.Yq=function(){return Cw(this)};d.Ph=function(a){return F6(this,a,!0)};d.Ol=function(){return this.ia.j.length};d.br=function(a){return B2(this,a)};d.Wj=function(a){return Q9(this,0,a)};d.kd=function(){var a=hD(new iD,this,0,this.ia.j.length);return Tu(a)};d.ck=function(a){return Q9(this,a,this.ia.j.length)};d.Ja=function(a){return Vs(this,a)};d.sa=function(){return tu(this)};d.Hj=function(){return(new p5).UG(this.ia)};d.UG=function(a){this.ia=a;return this};
d.Vo=function(){return(new p5).UG(this.ia)};d.vm=function(a,b,c,e){return HI(this,a,b,c,e)};d.qi=function(a,b){return o9(this,a,b)};d.ce=function(){return(new p5).UG(this.ia)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this.ia};d.rl=function(a,b){return K9(this,0,this.ia.j.length,a,b)};d.$j=function(a,b,c){R9(this,a,b,c)};d.ko=function(){return!0};d.Ym=function(a){return H6(this,a)};d.y=function(){return this.ia.y()};d.Zq=function(a,b){return X8(this,a,b)};
d.$g=function(){for(var a=Ry(new Sy,Xs()),b=0,c=this.ia.j.length;b<c;)Ty(a,void 0),b=1+b|0;return a.gb};d.ka=function(a,b){return De(this,a,b)};d.Ql=function(a){return S9(this,a)};d.Fa=function(){return Tc(this)};d.$b=function(a,b){return Fr(this,a,b)};d.Sj=function(a){return M9(this,a)};d.Ed=function(){return(new qsb).a()};d.Lk=function(){return I6(this)};
d.$classData=q({SFa:0},!1,"scala.collection.mutable.ArrayOps$ofUnit",{SFa:1,f:1,jF:1,iq:1,Ll:1,ml:1,Ki:1,Ye:1,Bc:1,w:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,zc:1,Xe:1,ok:1,gi:1});function kxb(){}kxb.prototype=new hxb;kxb.prototype.constructor=kxb;function lxb(){}lxb.prototype=kxb.prototype;function mxb(a){var b=a.Ed();b.Cf(a);return b.lc()}function nxb(a,b){b=a.nAa(b);-1!==b&&a.cea(b);return a}function up(){this.ah=this.Rb=null}up.prototype=new jxb;up.prototype.constructor=up;
up.prototype.X=function(a){for(var b=this.ah,c=b.qe,b=dC(b),e=c.j[b];null!==e;){var f=e.Sa();a.R(e.t);for(e=f;null===e&&0<b;)b=-1+b|0,e=c.j[b]}};up.prototype.fo=function(a){if(null===a)throw Lb(Mb(),null);this.ah=a;dd.prototype.Qd.call(this,a);return this};up.prototype.$classData=q({Wbb:0},!1,"scala.collection.mutable.HashMap$$anon$2",{Wbb:1,JEa:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,q:1,n:1});
function oxb(a,b){var c=Ry(new Sy,a.Vp());a=F6(a,t(new u,function(a,b){return function(a){return!ub(vb(),b,a.pa())}}(a,b)),!1);Yi(c,a);return c.gb}function pxb(a){var b=a.$Ea().kb();a=a.O1().kb();var c=new M4;if(null===b)throw Lb(Mb(),null);c.Pa=b;c.Cfa=a;return c}function qxb(a,b,c){var e=a.Ta(b);a.Rl(b,c);return e}function rxb(a,b){var c=a.Ta(b);a.Xt(b);return c}function sxb(a,b,c){var e=a.Ta(b);if(x(e))return e.i;if(w()===e)return c=gc(c),a.Rl(b,c),c;throw(new v).d(e);}
function txb(a){var b=(new pk).$d(a.lb());a.X(t(new u,function(a,b){return function(a){return T(b,a)}}(a,b)));return b}function uxb(a){return a.Gv().Cf(a)}function yM(a){var b=(new pk).$d(a.lb());a.X(t(new u,function(a,b){return function(a){return T(b,a)}}(a,b)));return b}
function Uea(a,b,c){var e=BBa();a=t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();a=b.vd(a);return(new P).N(c,a)}throw(new v).d(a);}}(a,c));c=Os();c=vA(c);var f={};De(b,a,c).X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b[c]=a}else throw(new v).d(a);}}(e,f)));return f}function Vea(a,b,c){var e;DBa||(DBa=(new tJ).a());e=DBa;a=t(new u,function(a,b){return function(a){return b.vd(a)}}(a,c));c=z();b=b.ka(a,c.s);return CBa(e,b)}
function Sea(a,b,c){var e=BBa();a=t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();a=b.vd(a);return(new P).N(c,a)}throw(new v).d(a);}}(a,c));c=Fqa();c=vA(c);var f={};De(b,a,c).X(t(new u,function(a,b){return function(a){if(null!==a){var c=a.pa();a=a.Ba();b[c]=a}else throw(new v).d(a);}}(e,f)));return f}function cfa(a){return qJ(rJ(),a)}function aDa(a){return void 0===a?w():(new A).d(a)}
function bfa(a,b,c){return EBa(FBa(),b).Lf(t(new u,function(a,b){return function(a){return b.Kd(a)}}(a,c)),um())}function vxb(a){return a.WEa().kb().KI(jb(function(a){return function(){return a.q2()}}(a)))}function wxb(a){var b=a.Bea().kb();return(new L4).Cu(b,a.Pu())}function xxb(a){var b=a.Cea().kb();return(new J4).Cu(b,a.Pu())}function yxb(a){var b=a.XEa().kb();return(new I4).Cu(b,a.wC())}function zxb(a){var b=a.YEa().kb();return(new Sz).Cu(b,a.wC())}
function Axb(a){return a.E0().kb().KI(jb(function(a){return function(){return a.ZEa()}}(a)))}function Bxb(a){var b=a.Dea().kb();return(new K4).Cu(b,a.Pu())}function Cxb(){}Cxb.prototype=new hxb;Cxb.prototype.constructor=Cxb;function T9(){}d=T9.prototype=Cxb.prototype;d.oAa=function(a,b){return xxa(this,a,b)};d.Ge=function(a){return yvb(this,a)};d.b=function(){return 0===this.Ge(0)};d.QA=function(a){return GH(this,a)};d.h=function(a){return F4(this,a)};d.Tn=function(a){return this.R(a)|0};
d.hg=function(a,b){return Ss(this,a,b)};d.Ej=function(a){return nv(this,a)};d.u=function(){return E6(this)};d.Qr=function(a,b){return this.la(a,b)};d.fm=function(a,b){return zvb(this,a,b)};d.Mo=function(a){return l9(this,a)};d.Js=function(){return Bpa(this)};d.lb=function(){return this.Ka()};d.Tr=function(a,b){return Bvb(this,a,b)};d.Ri=function(){return oM(this)};d.rp=function(a){return!!this.R(a)};d.Tp=function(a){return m9(this,a)};d.Kx=function(){return(new U9).RK(this)};
d.Ja=function(a){return Vs(this,a)};d.Hj=function(){return this};d.qi=function(a,b){return o9(this,a,b)};d.ce=function(){return this.Hj()};d.nAa=function(a){return this.oAa(a,0)};d.Za=function(a,b){return HH(this,a,b)};d.y=function(){return bS(xI(),this.Uo())};d.UC=function(a){return this.Ej((new AQ).Q0(a))};
function Dxb(){this.na=this.CR=this.LM=this.oB=this.ev=this.jv=this.uv=this.HR=this.GB=this.EB=this.vN=this.lB=this.cv=this.tv=this.pv=this.UM=this.mN=this.KM=this.DN=this.BN=this.JB=this.nB=this.NM=this.uN=this.SR=this.AN=this.DB=this.RM=this.rN=this.SM=this.EN=this.oN=this.yN=this.iB=this.VM=this.ZM=this.kB=this.vv=null}Dxb.prototype=new r;Dxb.prototype.constructor=Dxb;function Fo(){var a=Ab();null===Ab().CR&&null===Ab().CR&&(Ab().CR=(new UZ).Br(a));Ab()}
function W2a(){var a=Ab();null===Ab().KM&&null===Ab().KM&&(Ab().KM=(new JZ).Raa(a));return Ab().KM}d=Dxb.prototype;d.H5=function(){null===Ab().kB&&(Ab().kB=(new wZ).vp(this))};function QCa(){Ab();null===Ab().uN&&null===Ab().uN&&(Ab().uN=new q_);return Ab().uN}d.a=function(){Exb=this;this.na=ju().na;return this};d.kZ=function(){null===Ab().pv&&this.yS();return Ab().pv};d.CS=function(){null===Ab().tv&&(Ab().tv=(new HZ).Jv(this))};d.wb=function(){null===Ab().uv&&this.DS();return Ab().uv};
d.MM=function(){null===Ab().iB&&this.A5();return Ab().iB};d.A5=function(){null===Ab().iB&&(Ab().iB=(new vZ).vp(this))};d.FR=function(){null===Ab().ev&&(Ab().ev=(new sK).Br(this))};d.oh=function(){null===Ab().vv&&this.ES();return Ab().vv};function nPa(){Ab();null===Ab().UM&&null===Ab().UM&&(Ab().UM=new PZ);return Ab().UM}function b3a(){Ab();null===Ab().AN&&null===Ab().AN&&(Ab().AN=new S_);return Ab().AN}function F2a(){Ab();null===Ab().rN&&null===Ab().rN&&(Ab().rN=new o_);return Ab().rN}
d.ES=function(){null===Ab().vv&&(Ab().vv=(new AZ).vp(this))};d.DR=function(){null===Ab().cv&&(Ab().cv=(new EZ).Jv(this))};d.c9=function(){null===Ab().DB&&(Ab().DB=z_a(this))};d.xv=function(){null===Ab().JB&&this.E9();return Ab().JB};d.yS=function(){null===Ab().pv&&(Ab().pv=(new GZ).Jv(this))};d.ww=function(){null===Ab().jv&&this.VR();return Ab().jv};d.DS=function(){null===Ab().uv&&(Ab().uv=(new yK).Br(this))};d.tq=function(){null===Ab().lB&&this.M5();return Ab().lB};
function Csb(){Ab();null===Ab().HR&&null===Ab().HR&&(Ab().HR=new DZ);Ab()}d.i9=function(){null===Ab().GB&&(Ab().GB=Q_a(this))};function Pfa(){var a=Ab();null===Ab().yN&&null===Ab().yN&&(Ab().yN=(new BZ).vp(a));return Ab().yN}d.sl=function(){null===Ab().ev&&this.FR();return Ab().ev};function ega(){var a=Ab();null===Ab().BN&&null===Ab().BN&&(Ab().BN=(new V_).T0(a));return Ab().BN}
function Mo(){var a=Ab();if(null===Ab().NM&&null===Ab().NM){var b=Ab(),c=new qZ;if(null===a)throw Lb(Mb(),null);c.l=a;b.NM=c}return Ab().NM}d.NX=function(){null===Ab().kB&&this.H5();return Ab().kB};function U2a(){Ab();null===Ab().DN&&null===Ab().DN&&(Ab().DN=new W_);return Ab().DN}d.LX=function(){null===Ab().cv&&this.DR();return Ab().cv};d.CZ=function(){null===Ab().tv&&this.CS();return Ab().tv};d.M5=function(){null===Ab().lB&&(Ab().lB=(new FZ).Jv(this))};d.R5=function(){null===Ab().nB&&(Ab().nB=u_a(this))};
d.E9=function(){null===Ab().JB&&(Ab().JB=(new U_).T0(this))};d.et=function(){null===Ab().nB&&this.R5();return Ab().nB};d.VR=function(){null===Ab().jv&&(Ab().jv=(new wK).Br(this))};d.FB=function(){null===Ab().EB&&this.d9();return Ab().EB};d.d9=function(){null===Ab().EB&&(Ab().EB=B_a(this))};d.wj=function(){null===Ab().GB&&this.i9();return Ab().GB};function scb(){Ab();null===Ab().vN&&null===Ab().vN&&(Ab().vN=new N_);return Ab().vN}d.zS=function(){null===Ab().DB&&this.c9();return Ab().DB};
d.$classData=q({uIa:0},!1,"amf.client.convert.CoreClientConverters$",{uIa:1,f:1,pha:1,Fb:1,nha:1,wha:1,vha:1,qha:1,Cha:1,zha:1,Dha:1,rha:1,uha:1,sha:1,Hha:1,Fha:1,tha:1,lha:1,Bha:1,xha:1,Eha:1,Gha:1,yha:1,mha:1,Aha:1,oha:1});var Exb=void 0;function Ab(){Exb||(Exb=(new Dxb).a());return Exb}function Fxb(){}Fxb.prototype=new hxb;Fxb.prototype.constructor=Fxb;function Gxb(){}d=Gxb.prototype=Fxb.prototype;d.td=function(){return this.Wy()};d.Kn=function(){return this};d.R=function(a){return Eba(this,a)};
d.Mi=function(){return this.Wy()};d.b=function(){return 0===this.lb()};d.Qf=function(){return this};d.QA=function(a){return GH(this,a)};d.h=function(a){return O1(this,a)};d.Tn=function(a){return this.R(a)|0};d.vu=function(a,b){a=this.Ta(a);if(x(a))b=a.i;else if(w()===a)b=gc(b);else throw(new v).d(a);return b};d.u=function(){return E6(this)};d.Tq=function(){return(new P4).Qd(this)};d.Vp=function(){return Xs()};d.bj=function(){return Wwb(this)};d.Wy=function(){return this};d.Rr=function(){return(new dd).Qd(this)};
d.rp=function(a){return!!this.R(a)};d.gf=function(){return(new Q4).Qd(this)};d.HX=function(a){throw(new PH).e("key not found: "+a);};d.Ph=function(a){return this.zaa(a)};d.Ja=function(a){return this.Ta(a).qa()};d.vm=function(a,b,c,e){return Xwb(this,a,b,c,e)};d.ce=function(){return iN(this)};d.zaa=function(a){return O9(this,a)};d.Xa=function(a){return this.Ja(a)};d.qC=function(){return(new V9).Qd(this)};d.jh=function(){return this.ce()};d.y=function(){var a=xI();return lAa(a,this.Wy(),a.yca)};
d.Za=function(a,b){return Ywb(this,a,b)};d.Ed=function(){return Ry(new Sy,this.Vp())};d.Lk=function(){return"Map"};function Hxb(){}Hxb.prototype=new hxb;Hxb.prototype.constructor=Hxb;function W9(){}d=W9.prototype=Hxb.prototype;d.td=function(){return this.VA()};d.Kn=function(){return this};d.R=function(a){return this.Ja(a)};d.Mi=function(){return this.VA()};d.b=function(){return 0===this.lb()};d.Qf=function(){return this};d.h=function(a){return o4(this,a)};d.Tn=function(a){return this.Ja(a)|0};
d.u=function(){return E6(this)};d.Lh=function(){return ybb()};d.wfa=function(a){return this.Ng(a)};d.i5=function(a){return $da(this,a)};d.bj=function(){return Bwb(this)};d.rp=function(a){return this.Ja(a)};d.Gv=function(){return this.jaa()};d.VA=function(){return this};d.ce=function(){return xx(this)};d.kO=function(a){return $da(this,a)};d.jaa=function(){return this.Lh().lA()};d.jh=function(){return xx(this)};d.y=function(){var a=xI();return lAa(a,this.VA(),a.gfa)};
d.ka=function(a,b){return De(this,a,b)};d.p1=function(a){return this.xb(a)};d.vk=function(a){return Cwb(this,a)};d.Ed=function(){return Zd(new ee,this.Gv())};d.Lk=function(){return"Set"};d.hX=function(a){return this.vk(a)};function X9(a,b){return a.qx(jb(function(a,b){return function(){return kk(a).Mo(b)}}(a,b)))}function Y9(a){return a.qx(jb(function(a){return function(){return kk(a).Ri()}}(a)))}function Z9(a,b){return a.qx(jb(function(a,b){return function(){return kk(a).UC(b)}}(a,b)))}
function Ixb(a,b){Uz();b=(new N4).d(b);return Evb(a,b)}function $9(a,b,c){return a.qx(jb(function(a,b,c){return function(){return kk(a).qi(b,c)}}(a,b,c)))}function Jxb(a,b){return a.qx(jb(function(a,b){return function(){var f=kk(a),g=z();return f.Qr(b,g.s)}}(a,b)))}function a$(a,b){return a.qx(jb(function(a,b){return function(){return kk(a).Tp(b)}}(a,b)))}function Kxb(a,b){var c=G();return a.wP(oz(new pz,b,c))}function Lxb(a,b){return a.yH(FAa(HAa(),0,b))}
function b$(a,b){return a.qx(jb(function(a,b){return function(){return kk(a).Ej(b)}}(a,b)))}function Jvb(a,b){return a.yH(FAa(HAa(),b,2147483647))}function l4(){this.ah=this.XV=null}l4.prototype=new Gxb;l4.prototype.constructor=l4;function Mxb(){}d=Mxb.prototype=l4.prototype;d.tk=function(a){return this.Bo(a)};d.Bga=function(a){var b=Ry(new Sy,Xs());Yi(b,this);a=(new P).N(a.pa(),a.Ba());Ty(b,a);return b.gb};
d.X=function(a){this.ah.X(t(new u,function(a,c){return function(e){return a.XV.R(e.pa())?c.R(e):void 0}}(this,a)))};d.Bo=function(a){return oxb(this,a)};d.l1=function(a,b){this.XV=b;if(null===a)throw Lb(Mb(),null);this.ah=a;return this};d.kb=function(){var a=this.ah.kb();return(new J4).Cu(a,t(new u,function(a){return function(c){return!!a.XV.R(c.pa())}}(this)))};d.Ta=function(a){return this.XV.R(a)?this.ah.Ta(a):w()};d.Ja=function(a){return!!this.XV.R(a)&&this.ah.Ja(a)};d.Zt=function(a){return this.Bga(a)};
d.$classData=q({KEa:0},!1,"scala.collection.MapLike$FilteredKeys",{KEa:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,DEa:1});function Nxb(){this.ah=this.w0=null}Nxb.prototype=new Gxb;Nxb.prototype.constructor=Nxb;function Oxb(){}d=Oxb.prototype=Nxb.prototype;
d.X=function(a){IC(new JC,this.ah,t(new u,function(){return function(a){return null!==a}}(this))).X(t(new u,function(a,c){return function(e){if(null!==e){var f=e.pa();e=e.Ba();return c.R((new P).N(f,a.w0.R(e)))}throw(new v).d(e);}}(this,a)))};d.l1=function(a,b){this.w0=b;if(null===a)throw Lb(Mb(),null);this.ah=a;return this};d.lb=function(){return this.ah.lb()};
d.kb=function(){var a=this.ah.kb(),a=(new J4).Cu(a,t(new u,function(){return function(a){return null!==a}}(this)));return(new Sz).Cu(a,t(new u,function(a){return function(c){if(null!==c){var e=c.pa();c=c.Ba();return(new P).N(e,a.w0.R(c))}throw(new v).d(c);}}(this)))};d.Ta=function(a){a=this.ah.Ta(a);var b=this.w0;return a.b()?w():(new A).d(b.R(a.c()))};d.Ja=function(a){return this.ah.Ja(a)};function Pxb(a,b){var c=Ry(new Sy,Xs());Yi(c,a);a=(new P).N(b.pa(),b.Ba());Ty(c,a);return c.gb}
function Qxb(a,b){var c=Ry(new Sy,Xs());IC(new JC,a,t(new u,function(a,b){return function(a){return!ub(vb(),a.pa(),b)}}(a,b))).X(t(new u,function(a,b){return function(a){return b.Ic(a)}}(a,c)));return c.gb}function Rxb(){this.cza=this.j3=null}Rxb.prototype=new Gxb;Rxb.prototype.constructor=Rxb;function Sxb(){}d=Sxb.prototype=Rxb.prototype;d.A6a=function(a,b){this.j3=a;this.cza=b;return this};d.kb=function(){return this.j3.kb()};d.lb=function(){return this.j3.lb()};d.HX=function(a){return this.cza.R(a)};
d.Ta=function(a){return this.j3.Ta(a)};function V9(){this.ah=null}V9.prototype=new W9;V9.prototype.constructor=V9;function Txb(){}d=Txb.prototype=V9.prototype;d.tk=function(a){return this.Zs(a)};d.X=function(a){var b=this.ah.Tq();fS(b,a)};d.lb=function(){return this.ah.lb()};d.kb=function(){return this.ah.Tq()};d.Zs=function(a){return H(ybb(),G()).vk(this).Zs(a)};d.Qd=function(a){if(null===a)throw Lb(Mb(),null);this.ah=a;return this};d.Ja=function(a){return this.ah.Ja(a)};
d.Ij=function(a){return H(ybb(),G()).vk(this).Ij(a)};d.$classData=q({w2:0},!1,"scala.collection.MapLike$DefaultKeySet",{w2:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,q:1,n:1});function U9(){this.ma=!1;this.l=null}U9.prototype=new r;U9.prototype.constructor=U9;d=U9.prototype;d.td=function(){return this};d.Yn=function(a,b){JF(this,a,b)};d.yH=function(a){return Uxb(this,a)};d.fa=function(){return this.kb().Sa()};
d.jb=function(a){return this.l.jb(a)};d.Ge=function(a){return yvb(this,a)};d.pm=function(){return this.kb()};d.Jl=function(a){return W8(this,a)};d.R=function(a){return this.jb(a|0)};d.tu=function(a){return(new c$).eo(this,a)};d.Cd=function(a){var b=this.kb();return IOa(b,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return 0===this.Ge(0)};d.FW=function(){return Cw(this)};d.Mi=function(){return this};d.QA=function(a){return GH(this,a)};d.Qf=function(){return this};
d.md=function(a){return(new c$).eo(this,a)};d.h=function(a){return F4(this,a)};d.Tn=function(a){return this.jb(a)|0};d.Ck=function(a){return this.Jy(a)};d.ng=function(a){return jk(this,"",a,"")};d.Fk=function(a,b,c){return jk(this,a,b,c)};d.qq=function(a){return this.fn(a)};d.Ng=function(a){var b=this.kb();return cS(b,a)};d.hg=function(a){return Ixb(this,a)};d.Ej=function(a){return b$(this,a)};d.u=function(){return p9(this)};d.Lh=function(){return z()};d.X=function(a){var b=this.kb();fS(b,a)};
d.ae=function(a,b){return pd(this,a,b)};d.wM=function(){return""};d.Ar=function(a,b){var c=this.kb();return sAa(c,a,b)};d.wP=function(a){return(new d$).gH(this,a)};d.fm=function(a,b){return zvb(this,a,b)};d.Qr=function(a){return Jxb(this,a)};d.pc=function(){return Ps(this)};d.ol=function(a){return this.Ky(a)};d.Mo=function(a){return X9(this,a)};d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.xb=function(a){return this.fn(a)};d.Js=function(){return(new Vxb).wt(this)};d.lb=function(){return this.Ka()};
d.bj=function(){var a=a2().s;return Ei(this,a)};d.Ri=function(){return Y9(this)};d.Tr=function(a){return Kxb(this,a)};d.rp=function(a){return!!this.jb(a)};d.kb=function(){return this.l.kb()};d.Ib=function(a){var b=this.kb();return MOa(b,a)};d.om=function(a){return Dvb(this,a)};d.Tp=function(a){return a$(this,a)};d.lm=function(){return jk(this,"","","")};d.tL=function(a){return(new e$).gH(this,a)};d.la=function(a){return Evb(this,a)};d.cg=function(a){return ixb(this,a)};d.Ka=function(){return this.l.Ka()};
d.Uo=function(){return this};d.Ph=function(a){return q9(this,a)};d.Ol=function(){return-1};d.jn=function(a){return Fvb(this,a)};d.Ky=function(a){return(new Wxb).eo(this,a)};d.Wj=function(a){return Lxb(this,a)};d.kd=function(){return this.kb().kd()};d.Kx=function(){return(new U9).RK(this)};d.ck=function(a){return Jvb(this,a)};d.VE=function(a){return(new f$).eo(this,a)};d.Ja=function(a){return Vs(this,a)};d.Hj=function(){return this};d.sa=function(){return r9(this)};d.Vo=function(){return this};
d.vm=function(a,b,c,e){return Xda(this,a,b,c,e)};d.qi=function(a,b){return $9(this,a,b)};d.ce=function(){return this};d.rK=function(a){return this.fn(a)};d.Xa=function(a){return G4(this,a|0)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this};d.rl=function(a,b){return pd(this,a,b)};d.qx=function(a){return Xxb(this,a)};d.Za=function(a,b){return HH(this,a,b)};d.$j=function(a,b,c){nub(this,a,b,c)};d.ko=function(){return!0};d.jh=function(){return this};
d.y=function(){return bS(xI(),this)};d.Ym=function(a){return Gvb(this,a)};d.fn=function(a){return(new Yxb).eo(this,a)};d.$g=function(){for(var a=Ry(new Sy,Xs()),b=this.kb();b.Qa();){var c=b.Sa();Ty(a,c)}return a.gb};d.ka=function(a){return(new f$).eo(this,a)};d.aM=function(a,b){return Cvb(this,a,b)};d.Ql=function(a){return II(this,a)};d.RK=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.Fa=function(){return Tc(this)};d.Jy=function(a){return(new Zxb).eo(this,a)};
d.$b=function(a){return Hvb(this,a)};d.Sj=function(a){return JI(this,a)};d.Ed=function(){return Ivb(this)};d.uL=function(a){return Xxb(this,a)};d.Lk=function(){return"SeqView"};d.UC=function(a){return Z9(this,a)};d.CF=function(a){return $xb(this,a)};d.$classData=q({t$a:0},!1,"scala.collection.SeqLike$$anon$2",{t$a:1,f:1,el:1,fl:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,cl:1,dl:1,gl:1,hl:1,il:1});function at(){this.wR=this.ah=null}
at.prototype=new Txb;at.prototype.constructor=at;at.prototype.X=function(a){for(var b=this.wR,c=b.qe,b=dC(b),e=c.j[b];null!==e;){var f=e.Sa();a.R(e.oa);for(e=f;null===e&&0<b;)b=-1+b|0,e=c.j[b]}};at.prototype.fo=function(a){if(null===a)throw Lb(Mb(),null);this.wR=a;V9.prototype.Qd.call(this,a);return this};
at.prototype.$classData=q({Vbb:0},!1,"scala.collection.mutable.HashMap$$anon$1",{Vbb:1,w2:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,q:1,n:1});function g$(){this.ah=null}g$.prototype=new Txb;g$.prototype.constructor=g$;g$.prototype.Gv=function(){return(new dv).a()};g$.prototype.jaa=function(){return(new dv).a()};g$.prototype.TK=function(a){V9.prototype.Qd.call(this,a);return this};
g$.prototype.$classData=q({qcb:0},!1,"scala.collection.mutable.LinkedHashMap$DefaultKeySet",{qcb:1,w2:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,q:1,n:1});function h$(a,b){return a.EW().jb((-1+a.EW().Ka()|0)-b|0)}function i$(a){var b=G(),b=(new Qd).d(b);a.EW().X(t(new u,function(a,b){return function(a){b.ta=oz(new pz,a,b.ta)}}(a,b)));return Uc(b.ta)}function ayb(){}ayb.prototype=new Gxb;
ayb.prototype.constructor=ayb;function j$(){}d=j$.prototype=ayb.prototype;d.td=function(){return this};d.Kn=function(){return this};d.Mi=function(){return this};d.Qf=function(){return this};d.Lh=function(){return Ce()};d.Vp=function(){return this.kaa()};d.kaa=function(){return Xs()};d.Wy=function(){return this};d.gr=function(a){return Vka(this,a)};d.Ph=function(a){return this.zaa(a)};d.qC=function(){return Pd(this)};d.$g=function(){return this};d.jh=function(){return iN(this)};
function byb(){this.ma=!1;this.l=null}byb.prototype=new r;byb.prototype.constructor=byb;d=byb.prototype;d.td=function(){return this};d.Yn=function(a,b){JF(this,a,b)};d.yH=function(a){return cyb(this,a)};d.fa=function(){return this.kb().Sa()};d.jb=function(a){return Pt(this.l,a)};d.Ge=function(a){return yvb(this,a)};d.pm=function(){return this.kb()};d.Jl=function(a){return W8(this,a)};d.R=function(a){return this.jb(a|0)};d.tu=function(a){return(new k$).Wk(this,a)};
d.Cd=function(a){var b=this.kb();return IOa(b,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return 0===this.Ge(0)};d.FW=function(){return Cw(this)};d.Mi=function(){return this};d.QA=function(a){return GH(this,a)};d.Qf=function(){return this};d.md=function(a){return(new k$).Wk(this,a)};d.h=function(a){return F4(this,a)};d.Tn=function(a){return this.jb(a)|0};d.Ck=function(a){return this.Jy(a)};d.ng=function(a){return jk(this,"",a,"")};d.Fk=function(a,b,c){return jk(this,a,b,c)};
d.qq=function(a){return this.fn(a)};d.Ng=function(a){var b=this.kb();return cS(b,a)};d.hg=function(a){return Ixb(this,a)};d.Ej=function(a){return b$(this,a)};d.u=function(){return p9(this)};d.Lh=function(){return z()};d.X=function(a){var b=this.kb();fS(b,a)};d.ae=function(a,b){return pd(this,a,b)};d.wM=function(){return""};d.Ar=function(a,b){var c=this.kb();return sAa(c,a,b)};d.wP=function(a){return(new l$).hH(this,a)};d.fm=function(a,b){return zvb(this,a,b)};d.Qr=function(a){return Jxb(this,a)};
d.pc=function(){return Ps(this)};d.ol=function(a){return this.Ky(a)};d.Mo=function(a){return X9(this,a)};d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.n1=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.xb=function(a){return this.fn(a)};d.Js=function(){return(new m$).Du(this)};d.lb=function(){return this.Ka()};d.bj=function(){var a=a2().s;return Ei(this,a)};d.Ri=function(){return Y9(this)};d.Tr=function(a){return Kxb(this,a)};d.rp=function(a){return!!this.jb(a)};
d.kb=function(){return(new V4).n1(this.l)};d.Ib=function(a){var b=this.kb();return MOa(b,a)};d.om=function(a){return Dvb(this,a)};d.Tp=function(a){return a$(this,a)};d.lm=function(){return jk(this,"","","")};d.tL=function(a){return(new n$).hH(this,a)};d.la=function(a){return Evb(this,a)};d.cg=function(a){return ixb(this,a)};d.Ka=function(){return this.l.Ka()};d.Uo=function(){return this};d.Ph=function(a){return q9(this,a)};d.Ol=function(){return-1};d.jn=function(a){return Fvb(this,a)};
d.Ky=function(a){return(new o$).Wk(this,a)};d.Wj=function(a){return Lxb(this,a)};d.kd=function(){return this.kb().kd()};d.Kx=function(){return(new U9).RK(this)};d.ck=function(a){return Jvb(this,a)};d.VE=function(a){return(new p$).Wk(this,a)};d.Ja=function(a){return Vs(this,a)};d.Hj=function(){return this};d.sa=function(){return r9(this)};d.Vo=function(){return this};d.vm=function(a,b,c,e){return Xda(this,a,b,c,e)};d.qi=function(a,b){return $9(this,a,b)};d.ce=function(){return this};d.rK=function(a){return this.fn(a)};
d.Xa=function(a){return G4(this,a|0)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this};d.rl=function(a,b){return pd(this,a,b)};d.qx=function(a){return dyb(this,a)};d.Za=function(a,b){return HH(this,a,b)};d.$j=function(a,b,c){nub(this,a,b,c)};d.ko=function(){return!0};d.jh=function(){return this};d.y=function(){return bS(xI(),this)};d.Ym=function(a){return Gvb(this,a)};d.fn=function(a){return(new q$).Wk(this,a)};
d.$g=function(){for(var a=Ry(new Sy,Xs()),b=this.kb();b.Qa();){var c=b.Sa();Ty(a,c)}return a.gb};d.ka=function(a){return(new p$).Wk(this,a)};d.aM=function(a,b){return Cvb(this,a,b)};d.Ql=function(a){return II(this,a)};d.Fa=function(){return Tc(this)};d.Jy=function(a){return(new r$).Wk(this,a)};d.$b=function(a){return Hvb(this,a)};d.Sj=function(a){return JI(this,a)};d.Ed=function(){return Ivb(this)};d.uL=function(a){return dyb(this,a)};d.Lk=function(){return"StreamView"};
d.UC=function(a){return Z9(this,a)};d.CF=function(a){return eyb(this,a)};d.$classData=q({Wab:0},!1,"scala.collection.immutable.Stream$$anon$1",{Wab:1,f:1,SA:1,TA:1,el:1,fl:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,cl:1,dl:1,gl:1,hl:1,il:1});function s$(){this.ma=!1;this.l=null}s$.prototype=new r;s$.prototype.constructor=s$;function t$(){}d=t$.prototype=s$.prototype;d.td=function(){return this.Uo()};d.Yn=function(a,b){JF(this,a,b)};
d.yH=function(a){return Uxb(this,a)};d.fa=function(){return this.kb().Sa()};d.Ge=function(a){return yvb(this,a)};d.BGa=function(a){return Lxb(this,a)};d.pm=function(){return this.kb()};d.Jl=function(a){return W8(this,a)};d.tu=function(a){return this.I1(a)};d.Cd=function(a){var b=this.kb();return IOa(b,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return!this.kb().Qa()};d.Mi=function(){return this.Uo()};d.FW=function(){return Cw(this)};d.QA=function(a){return GH(this,a)};
d.Qf=function(){return this.Hj()};d.wt=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};d.md=function(a){return this.I1(a)};d.h=function(a){return F4(this,a)};d.Ck=function(a){return this.Fza(a)};d.Tn=function(a){return this.R(a)|0};d.ng=function(a){return jk(this,"",a,"")};d.Fk=function(a,b,c){return jk(this,a,b,c)};d.Mca=function(a){return(new Zxb).eo(this,a)};d.qq=function(a){return this.fn(a)};d.Ng=function(a){var b=this.kb();return cS(b,a)};d.hg=function(a){return Ixb(this,a)};
d.Ej=function(a){return b$(this,a)};d.Oca=function(){return(new Vxb).wt(this)};d.u=function(){return p9(this)};d.Lh=function(){return z()};d.Nca=function(a){return(new Yxb).eo(this,a)};d.X=function(a){var b=this.kb();fS(b,a)};d.AGa=function(a){return this.Ky(a)};d.ae=function(a,b){return pd(this,a,b)};d.wM=function(){return""+this.l.wM()+this.Ul()};d.wP=function(a){return(new d$).gH(this,a)};d.Ar=function(a,b){var c=this.kb();return sAa(c,a,b)};d.fm=function(a,b){return zvb(this,a,b)};
d.Qr=function(a){return Jxb(this,a)};d.ol=function(a){return this.AGa(a)};d.pc=function(){return Dwb(this)};d.Mo=function(a){return X9(this,a)};d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.xb=function(a){return this.rK(a)};d.Js=function(){return this.hEa()};d.lb=function(){return this.Ka()};d.bj=function(){var a=a2().s;return Ei(this,a)};d.I1=function(a){return this.KCa(a)};d.Ri=function(){return Y9(this)};d.Tr=function(a){return Kxb(this,a)};d.rp=function(a){return!!this.R(a)};
d.Pca=function(a){return(new Wxb).eo(this,a)};d.Ib=function(a){var b=this.kb();return MOa(b,a)};d.om=function(a){return Dvb(this,a)};d.Tp=function(a){return a$(this,a)};d.Fza=function(a){return this.Jy(a)};d.LCa=function(a){return(new f$).eo(this,a)};d.hEa=function(){return this.Oca()};d.tL=function(a){return this.JCa(a)};d.lm=function(){return jk(this,"","","")};d.la=function(a){return Evb(this,a)};d.cg=function(a){return ixb(this,a)};d.Ph=function(a){return q9(this,a)};d.Uo=function(){return this};
d.MCa=function(a){return $xb(this,a)};d.Ol=function(){return-1};d.jn=function(a){return Fvb(this,a)};d.Ky=function(a){return this.Pca(a)};d.Wj=function(a){return this.BGa(a)};d.Gza=function(a){return Jvb(this,a)};d.kd=function(){return this.kb().kd()};d.Kx=function(){return(new U9).RK(this)};d.ck=function(a){return this.Gza(a)};d.VE=function(a){return this.LCa(a)};d.Ja=function(a){return Vs(this,a)};d.sa=function(){return this.zGa()};d.Hj=function(){return this};
d.vm=function(a,b,c,e){return Xda(this,a,b,c,e)};d.Vo=function(){return this.Qf()};d.qi=function(a,b){return $9(this,a,b)};d.ce=function(){return this.Hj()};d.rK=function(a){return this.fn(a)};d.Xa=function(a){return G4(this,a|0)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this};d.rl=function(a,b){return this.ae(a,b)};d.qx=function(a){return Xxb(this,a)};d.Qca=function(a){return this.MCa(a)};d.Za=function(a,b){return HH(this,a,b)};
d.$j=function(a,b,c){nub(this,a,b,c)};d.jh=function(){return this.Hj()};d.ko=function(){return!0};d.Ym=function(a){return Gvb(this,a)};d.y=function(){return bS(xI(),this.Uo())};d.fn=function(a){return this.Nca(a)};d.JCa=function(a){return(new e$).gH(this,a)};d.$g=function(a){var b=Ry(new Sy,Xs());this.X(t(new u,function(a,b,f){return function(a){return f.Ic(a)}}(this,a,b)));return b.gb};d.ka=function(a){return this.VE(a)};d.aM=function(a,b){return Cvb(this,a,b)};
d.KCa=function(a){return(new c$).eo(this,a)};d.Ql=function(a){return II(this,a)};d.Fa=function(){return Tc(this)};d.Jy=function(a){return this.Mca(a)};d.$b=function(a){return Hvb(this,a)};d.Sj=function(a){return JI(this,a)};d.uL=function(a){return this.qx(a)};d.Ed=function(){return Ivb(this)};d.Lk=function(){return"SeqView"};d.UC=function(a){return Z9(this,a)};d.zGa=function(){return r9(this)};d.CF=function(a){return this.Qca(a)};
function fyb(a){return 0>=a.c3().Ge(a.B2().Ka())?a.c3().Ka():a.B2().Ka()}function gyb(a,b){return(new P).N(a.B2().jb(b),a.c3().jb(b))}function hyb(){}hyb.prototype=new W9;hyb.prototype.constructor=hyb;function iyb(){}d=iyb.prototype=hyb.prototype;d.td=function(){return this};d.Kn=function(){return this};d.xP=function(){throw(new PH).e("next of empty set");};d.R=function(a){return this.Ja(a)};d.tk=function(a){return this.DX(a)};d.b=function(){return!0};d.Mi=function(){return this};d.Qf=function(){return this};
d.mD=function(a){return jyb(new u$,this,a)};d.Lh=function(){Rrb||(Rrb=(new z8).a());return Rrb};d.lb=function(){return 0};d.kb=function(){var a=v$(this);return Uc(a)};d.Zs=function(a){return this.DX(a)};d.Gv=function(){return $ob()};function v$(a){for(var b=G();!a.b();){var c=a.KT(),b=oz(new pz,c,b);a=a.xP()}return b}d.VA=function(){return this};d.KT=function(){throw(new PH).e("elem of empty set");};d.Ja=function(){return!1};
function kyb(a,b){return b.b()?a:b.rl(a,qd(function(){return function(a,b){return a.mD(b)}}(a)))}d.pg=function(){return this};d.DX=function(){return this};d.jh=function(){return xx(this)};d.Ij=function(a){return this.mD(a)};d.vk=function(a){return kyb(this,a)};d.Lk=function(){return"ListSet"};function lyb(){}lyb.prototype=new W9;lyb.prototype.constructor=lyb;d=lyb.prototype;d.td=function(){return this};d.Kn=function(){return this};d.a=function(){return this};d.R=function(){return!1};d.tk=function(){return this};
d.Mi=function(){return this};d.Qf=function(){return this};d.Lh=function(){return Pf()};d.X=function(){};d.lb=function(){return 0};d.kb=function(){return Uz().Td};d.Zs=function(){return this};d.Gv=function(){return Yd()};d.VA=function(){return this};d.Ja=function(){return!1};d.pg=function(){return this};d.jh=function(){return xx(this)};d.Ij=function(a){return(new w$).d(a)};
d.$classData=q({Pab:0},!1,"scala.collection.immutable.Set$EmptySet$",{Pab:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,Vy:1,Li:1,aj:1,$i:1,q:1,n:1});var myb=void 0;function Yd(){myb||(myb=(new lyb).a());return myb}function w$(){this.Vf=null}w$.prototype=new W9;w$.prototype.constructor=w$;d=w$.prototype;d.td=function(){return this};d.Kn=function(){return this};d.fa=function(){return this.Vf};d.R=function(a){return this.Ja(a)};
d.tk=function(a){return this.av(a)};d.Cd=function(a){return!!a.R(this.Vf)};d.Mi=function(){return this};d.Qf=function(){return this};d.Ng=function(a){return!!a.R(this.Vf)};d.Lh=function(){return Pf()};d.X=function(a){a.R(this.Vf)};d.lb=function(){return 1};d.d=function(a){this.Vf=a;return this};d.kb=function(){Uz();var a=(new J).aa([this.Vf]);return hD(new iD,a,0,a.z.length|0)};d.Zs=function(a){return this.av(a)};d.Ib=function(a){return a.R(this.Vf)?(new A).d(this.Vf):w()};d.Gv=function(){return Yd()};
d.nD=function(a){return this.Ja(a)?this:(new x$).N(this.Vf,a)};d.VA=function(){return this};d.sa=function(){return Yd()};d.Ja=function(a){return ub(vb(),a,this.Vf)};d.pg=function(){return this};d.jh=function(){return xx(this)};d.Ij=function(a){return this.nD(a)};d.av=function(a){return ub(vb(),a,this.Vf)?Yd():this};
d.$classData=q({Qab:0},!1,"scala.collection.immutable.Set$Set1",{Qab:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,Vy:1,Li:1,aj:1,$i:1,q:1,n:1});function x$(){this.yh=this.Vf=null}x$.prototype=new W9;x$.prototype.constructor=x$;d=x$.prototype;d.td=function(){return this};d.Kn=function(){return this};d.fa=function(){return this.Vf};d.R=function(a){return this.Ja(a)};d.tk=function(a){return this.av(a)};
d.Cd=function(a){return!!a.R(this.Vf)||!!a.R(this.yh)};d.ZW=function(){return(new w$).d(this.yh)};d.Mi=function(){return this};d.Qf=function(){return this};d.N=function(a,b){this.Vf=a;this.yh=b;return this};d.Ng=function(a){return!!a.R(this.Vf)&&!!a.R(this.yh)};d.Lh=function(){return Pf()};d.X=function(a){a.R(this.Vf);a.R(this.yh)};d.lb=function(){return 2};d.kb=function(){Uz();var a=(new J).aa([this.Vf,this.yh]);return hD(new iD,a,0,a.z.length|0)};d.Zs=function(a){return this.av(a)};
d.Ib=function(a){return a.R(this.Vf)?(new A).d(this.Vf):a.R(this.yh)?(new A).d(this.yh):w()};d.Gv=function(){return Yd()};d.nD=function(a){return this.Ja(a)?this:(new y$).Er(this.Vf,this.yh,a)};d.VA=function(){return this};d.sa=function(){return this.ZW()};d.Ja=function(a){return ub(vb(),a,this.Vf)||ub(vb(),a,this.yh)};d.pg=function(){return this};d.jh=function(){return xx(this)};d.Ij=function(a){return this.nD(a)};
d.av=function(a){return ub(vb(),a,this.Vf)?(new w$).d(this.yh):ub(vb(),a,this.yh)?(new w$).d(this.Vf):this};d.$classData=q({Rab:0},!1,"scala.collection.immutable.Set$Set2",{Rab:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,Vy:1,Li:1,aj:1,$i:1,q:1,n:1});function y$(){this.Cl=this.yh=this.Vf=null}y$.prototype=new W9;y$.prototype.constructor=y$;d=y$.prototype;d.td=function(){return this};d.Kn=function(){return this};
d.fa=function(){return this.Vf};d.R=function(a){return this.Ja(a)};d.tk=function(a){return this.av(a)};d.Cd=function(a){return!!a.R(this.Vf)||!!a.R(this.yh)||!!a.R(this.Cl)};d.ZW=function(){return(new x$).N(this.yh,this.Cl)};d.Mi=function(){return this};d.Qf=function(){return this};d.Ng=function(a){return!!a.R(this.Vf)&&!!a.R(this.yh)&&!!a.R(this.Cl)};d.Lh=function(){return Pf()};d.X=function(a){a.R(this.Vf);a.R(this.yh);a.R(this.Cl)};d.lb=function(){return 3};
d.Er=function(a,b,c){this.Vf=a;this.yh=b;this.Cl=c;return this};d.kb=function(){Uz();var a=(new J).aa([this.Vf,this.yh,this.Cl]);return hD(new iD,a,0,a.z.length|0)};d.Zs=function(a){return this.av(a)};d.Ib=function(a){return a.R(this.Vf)?(new A).d(this.Vf):a.R(this.yh)?(new A).d(this.yh):a.R(this.Cl)?(new A).d(this.Cl):w()};d.Gv=function(){return Yd()};d.nD=function(a){return this.Ja(a)?this:(new nyb).vA(this.Vf,this.yh,this.Cl,a)};d.VA=function(){return this};d.sa=function(){return this.ZW()};
d.Ja=function(a){return ub(vb(),a,this.Vf)||ub(vb(),a,this.yh)||ub(vb(),a,this.Cl)};d.pg=function(){return this};d.jh=function(){return xx(this)};d.Ij=function(a){return this.nD(a)};d.av=function(a){return ub(vb(),a,this.Vf)?(new x$).N(this.yh,this.Cl):ub(vb(),a,this.yh)?(new x$).N(this.Vf,this.Cl):ub(vb(),a,this.Cl)?(new x$).N(this.Vf,this.yh):this};
d.$classData=q({Sab:0},!1,"scala.collection.immutable.Set$Set3",{Sab:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,Vy:1,Li:1,aj:1,$i:1,q:1,n:1});function nyb(){this.Fv=this.Cl=this.yh=this.Vf=null}nyb.prototype=new W9;nyb.prototype.constructor=nyb;d=nyb.prototype;d.td=function(){return this};d.Kn=function(){return this};d.fa=function(){return this.Vf};d.R=function(a){return this.Ja(a)};d.tk=function(a){return this.av(a)};
d.Cd=function(a){return!!a.R(this.Vf)||!!a.R(this.yh)||!!a.R(this.Cl)||!!a.R(this.Fv)};d.ZW=function(){return(new y$).Er(this.yh,this.Cl,this.Fv)};d.Mi=function(){return this};d.Qf=function(){return this};d.Ng=function(a){return!!a.R(this.Vf)&&!!a.R(this.yh)&&!!a.R(this.Cl)&&!!a.R(this.Fv)};d.Lh=function(){return Pf()};d.X=function(a){a.R(this.Vf);a.R(this.yh);a.R(this.Cl);a.R(this.Fv)};d.lb=function(){return 4};
d.kb=function(){Uz();var a=(new J).aa([this.Vf,this.yh,this.Cl,this.Fv]);return hD(new iD,a,0,a.z.length|0)};d.Zs=function(a){return this.av(a)};d.Ib=function(a){return a.R(this.Vf)?(new A).d(this.Vf):a.R(this.yh)?(new A).d(this.yh):a.R(this.Cl)?(new A).d(this.Cl):a.R(this.Fv)?(new A).d(this.Fv):w()};d.Gv=function(){return Yd()};d.nD=function(a){return this.Ja(a)?this:oyb(oyb(oyb(oyb(oyb((new pyb).a(),this.Vf),this.yh),this.Cl),this.Fv),a)};d.VA=function(){return this};d.sa=function(){return this.ZW()};
d.Ja=function(a){return ub(vb(),a,this.Vf)||ub(vb(),a,this.yh)||ub(vb(),a,this.Cl)||ub(vb(),a,this.Fv)};d.vA=function(a,b,c,e){this.Vf=a;this.yh=b;this.Cl=c;this.Fv=e;return this};d.pg=function(){return this};d.jh=function(){return xx(this)};d.Ij=function(a){return this.nD(a)};
d.av=function(a){return ub(vb(),a,this.Vf)?(new y$).Er(this.yh,this.Cl,this.Fv):ub(vb(),a,this.yh)?(new y$).Er(this.Vf,this.Cl,this.Fv):ub(vb(),a,this.Cl)?(new y$).Er(this.Vf,this.yh,this.Fv):ub(vb(),a,this.Fv)?(new y$).Er(this.Vf,this.yh,this.Cl):this};d.$classData=q({Tab:0},!1,"scala.collection.immutable.Set$Set4",{Tab:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,Vy:1,Li:1,aj:1,$i:1,q:1,n:1});
function qyb(a,b){return b<a.QP().Ka()?a.QP().jb(b):a.p2().jb(b-a.QP().Ka()|0)}function ryb(a,b){if(0<=b)return a.y2().jb(b+a.Ts()|0);throw(new X).e(""+b);}function syb(a){return a.y2().Ka()-a.Ts()|0}function tyb(a,b){return a.RP().jb(a.sy().j[b])}
function uyb(a){var b;b=0;var c=ia(La(Ra),[a.RP().Ka()]),e=a.RP().Ka(),f=-1+e|0;if(!(0>=e))for(e=0;;){var g=e;a.Pu().R(a.RP().jb(g))&&(c.j[b]=g,b=1+b|0);if(e===f)break;e=1+e|0}a=b;a=0<a?a:0;b=c.j.length;a=a<b?a:b;a=0<a?a:0;b=ia(La(Ra),[a]);0<a&&Kt(ye(),c,0,b,0,a);return b}function vyb(a,b){if(0>b||b>=wyb(a))throw(new X).e(""+b);var c=-1+a.WL().Ka()|0,c=xyb(a,b,0,c);return a.wC().R(a.WL().jb(c)).td().ce().jb(b-a.sy().j[c]|0)}function wyb(a){return a.sy().j[a.WL().Ka()]}
var xyb=function yyb(b,c,e,f){var g=(e+f|0)/2|0;return c<b.sy().j[g]?yyb(b,c,e,-1+g|0):c>=b.sy().j[1+g|0]?yyb(b,c,1+g|0,f):g};function zyb(a){var b=ia(La(Ra),[1+a.WL().Ka()|0]);b.j[0]=0;var c=a.WL().Ka(),e=-1+c|0;if(!(0>=c))for(c=0;;){var f=c;b.j[1+f|0]=b.j[f]+a.wC().R(a.WL().jb(f)).td().lb()|0;if(c===e)break;c=1+c|0}return b}function Ayb(a,b){return a.wC().R(a.aFa().jb(b))}function Byb(a,b){return b<a.GO().Ka()?a.GO().jb(b):a.z2().jb(b-a.GO().Ka()|0)}
function Cyb(a,b){if(0<=b&&(b+a.kK().ek|0)<a.kK().pI)return a.A2().jb(b+a.kK().ek|0);throw(new X).e(""+b);}function z$(a){return a.A2().kb().mE(a.kK().ek).gQ(AAa(a.kK()))}function Dyb(a,b){if(b<a.mP())return a.Eea().jb(b);throw(new X).e(""+b);}function pyb(){}pyb.prototype=new W9;pyb.prototype.constructor=pyb;function Eyb(){}d=Eyb.prototype=pyb.prototype;d.jX=function(a,b){return A$(new B$,a,b)};d.td=function(){return this};d.gE=function(a){return this.Paa(yI(zI(),a))};d.Kn=function(){return this};
d.a=function(){return this};d.R=function(a){return this.Ja(a)};function oyb(a,b){return a.jX(b,a.gE(b),0)}d.tk=function(a){return Fyb(this,a)};d.Mi=function(){return this};d.Qf=function(){return this};d.gX=function(a){return a};d.Lh=function(){return Yob()};function Gyb(a,b){var c=6+a.lb()|0,c=ia(La(u8),[224>c?c:224]);a=a.wO(b,!1,0,c,0);return null===a?x8():a}d.X=function(){};d.nI=function(a){return a};d.wfa=function(a){if(Hyb(a))return this.WW(a,0);var b=this.kb();return cS(b,a)};
d.xb=function(a){return Gyb(this,a)};d.lb=function(){return 0};d.kb=function(){return Uz().Td};d.Zs=function(a){return Fyb(this,a)};d.OL=function(){return this};d.Gv=function(){return x8()};d.Ph=function(a){var b=6+this.lb()|0,b=ia(La(u8),[224>b?b:224]);a=this.wO(a,!0,0,b,0);return null===a?x8():a};d.Paa=function(a){a=a+~(a<<9)|0;a^=a>>>14|0;a=a+(a<<4)|0;return a^(a>>>10|0)};function Fyb(a,b){a=a.OL(b,a.gE(b),0);return null===a?x8():a}d.hP=function(){return null};d.VA=function(){return this};
d.Ja=function(a){return this.ry(a,this.gE(a),0)};d.sa=function(){return this.Afa()};d.Afa=function(){return Fyb(this,this.fa())};d.kO=function(a){if(Hyb(a)){var b=6+this.lb()|0,b=ia(La(u8),[224>b?b:224]);a=this.FT(a,0,b,0);a=null===a?x8():a}else a=$da(this,a);return a};d.jaa=function(){return x8()};d.pg=function(){return this};d.FT=function(){return null};d.jh=function(){return xx(this)};d.wO=function(){return null};d.ry=function(){return!1};
d.p1=function(a){if(Hyb(a)){var b=this.lb(),c=a.lb(),b=6+(b<c?b:c)|0,b=ia(La(u8),[224>b?b:224]);a=this.hP(a,0,b,0);a=null===a?x8():a}else a=Gyb(this,a);return a};d.Ij=function(a){return oyb(this,a)};d.WW=function(){return!0};d.hX=function(a){if(Hyb(a)){var b=6+(this.lb()+a.lb()|0)|0,b=ia(La(u8),[224>b?b:224]);a=this.gX(a,0,b,0);a=null===a?x8():a}else a=Cwb(this,a);return a};function Hyb(a){return!!(a&&a.$classData&&a.$classData.v.VP)}
var u8=q({VP:0},!1,"scala.collection.immutable.HashSet",{VP:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,Vy:1,Li:1,aj:1,$i:1,gi:1,q:1,n:1});pyb.prototype.$classData=u8;function Iyb(){}Iyb.prototype=new iyb;Iyb.prototype.constructor=Iyb;Iyb.prototype.a=function(){return this};
Iyb.prototype.$classData=q({zab:0},!1,"scala.collection.immutable.ListSet$EmptyListSet$",{zab:1,xab:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,Vy:1,Li:1,aj:1,$i:1,q:1,n:1});var Jyb=void 0;function $ob(){Jyb||(Jyb=(new Iyb).a());return Jyb}function u$(){this.wR=this.Jza=null}u$.prototype=new iyb;u$.prototype.constructor=u$;d=u$.prototype;d.xP=function(){return this.wR};d.tk=function(a){return Kyb(a,this)};d.b=function(){return!1};
d.mD=function(a){return Lyb(this,a)?this:jyb(new u$,this,a)};d.lb=function(){a:{var a=this,b=0;for(;;){if(a.b())break a;a=a.xP();b=1+b|0}}return b};function Kyb(a,b){var c=G();for(;;){if(b.b())return Rs(c);if(ub(vb(),a,b.KT())){b=b.xP();for(a=c;!a.b();)c=a.fa(),b=jyb(new u$,b,c.KT()),a=a.sa();return b}var e=b.xP(),c=oz(new pz,b,c);b=e}}d.Zs=function(a){return Kyb(a,this)};function jyb(a,b,c){a.Jza=c;if(null===b)throw Lb(Mb(),null);a.wR=b;return a}d.KT=function(){return this.Jza};
d.Ja=function(a){return Lyb(this,a)};d.DX=function(a){return Kyb(a,this)};function Lyb(a,b){for(;;){if(a.b())return!1;if(ub(vb(),a.KT(),b))return!0;a=a.xP()}}d.Ij=function(a){return this.mD(a)};d.$classData=q({Aab:0},!1,"scala.collection.immutable.ListSet$Node",{Aab:1,xab:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,Vy:1,Li:1,aj:1,$i:1,q:1,n:1});function Myb(){this.ah=null}Myb.prototype=new Txb;
Myb.prototype.constructor=Myb;d=Myb.prototype;d.td=function(){return this};d.Kn=function(){return this};d.R=function(a){return this.ah.Ja(a)};d.tk=function(a){return this.av(a)};d.Mi=function(){return this};d.Qf=function(){return this};d.Lh=function(){return Pf()};function Pd(a){var b=new Myb;V9.prototype.Qd.call(b,a);return b}d.Zs=function(a){return this.av(a)};d.Gv=function(){return Yd()};d.nD=function(a){return this.ah.Ja(a)?this:H(Pf(),G()).vk(this).Ij(a)};d.VA=function(){return this};d.pg=function(){return this};
d.jh=function(){return xx(this)};d.Ij=function(a){return this.nD(a)};d.av=function(a){return this.ah.Ja(a)?H(Pf(),G()).vk(this).Zs(a):this};d.$classData=q({Jab:0},!1,"scala.collection.immutable.MapLike$ImmutableDefaultKeySet",{Jab:1,w2:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,q:1,n:1,Vy:1,Li:1,aj:1,$i:1});function C$(){}C$.prototype=new T9;C$.prototype.constructor=C$;function Nyb(){}Nyb.prototype=C$.prototype;
C$.prototype.td=function(){return this.bM()};C$.prototype.Mi=function(){return this.bM()};C$.prototype.bM=function(){return this};function Oyb(a,b){return Pyb(new D$,a,t(new u,function(a,b){return function(){return b}}(a,b)))}function Vxb(){s$.call(this);this.Pa=null}Vxb.prototype=new t$;Vxb.prototype.constructor=Vxb;d=Vxb.prototype;d.jb=function(a){return h$(this,a)};d.R=function(a){return h$(this,a|0)};d.wt=function(a){if(null===a)throw Lb(Mb(),null);this.Pa=a;s$.prototype.wt.call(this,a);return this};
d.EW=function(){return this.Pa};d.kb=function(){return i$(this)};d.Ul=function(){return"R"};d.Ka=function(){return this.Pa.Ka()};d.$classData=q({x$a:0},!1,"scala.collection.SeqViewLike$$anon$12",{x$a:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,NEa:1});function Qyb(){}Qyb.prototype=new Eyb;Qyb.prototype.constructor=Qyb;d=Qyb.prototype;d.a=function(){return this};
d.fa=function(){throw(new PH).e("Empty Set");};d.sa=function(){return this.Afa()};d.Afa=function(){throw(new PH).e("Empty Set");};d.$classData=q({nab:0},!1,"scala.collection.immutable.HashSet$EmptyHashSet$",{nab:1,VP:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,Vy:1,Li:1,aj:1,$i:1,gi:1,q:1,n:1});var Ryb=void 0;function x8(){Ryb||(Ryb=(new Qyb).a());return Ryb}function w8(){this.wl=0;this.tf=null;this.Rs=0}
w8.prototype=new Eyb;w8.prototype.constructor=w8;d=w8.prototype;
d.jX=function(a,b,c){var e=1<<(31&(b>>>c|0)),f=dJ(pC(),this.wl&(-1+e|0));if(0!==(this.wl&e)){e=this.tf.j[f];a=e.jX(a,b,5+c|0);if(e===a)return this;b=ia(La(u8),[this.tf.j.length]);Kt(ye(),this.tf,0,b,0,this.tf.j.length);b.j[f]=a;return v8(new w8,this.wl,b,this.Rs+(a.lb()-e.lb()|0)|0)}c=ia(La(u8),[1+this.tf.j.length|0]);Kt(ye(),this.tf,0,c,0,f);c.j[f]=A$(new B$,a,b);Kt(ye(),this.tf,f,c,1+f|0,this.tf.j.length-f|0);return v8(new w8,this.wl|e,c,1+this.Rs|0)};
d.gX=function(a,b,c,e){if(a===this)return this;if(Syb(a))return this.nI(a,b);if(Y4(a)){for(var f=this.tf,g=this.wl,h=0,k=a.tf,l=a.wl,p=0,y=e,I=0;0!==(g|l);){var E=g^g&(-1+g|0),V=l^l&(-1+l|0);if(E===V){var da=f.j[h].gX(k.j[p],5+b|0,c,y),I=I+da.lb()|0;c.j[y]=da;y=1+y|0;g&=~E;h=1+h|0;l&=~V;p=1+p|0}else{var da=-1+E|0,sa=-1+V|0;da<sa!==0>da!==0>sa?(V=f.j[h],I=I+V.lb()|0,c.j[y]=V,y=1+y|0,g&=~E,h=1+h|0):(E=k.j[p],I=I+E.lb()|0,c.j[y]=E,y=1+y|0,l&=~V,p=1+p|0)}}if(I===this.Rs)return this;if(I===a.Rs)return a;
b=y-e|0;f=ia(La(u8),[b]);Ca(c,e,f,0,b);return v8(new w8,this.wl|a.wl,f,I)}return this};d.X=function(a){for(var b=0;b<this.tf.j.length;)this.tf.j[b].X(a),b=1+b|0};
d.nI=function(a,b){var c=1<<(31&(a.Af>>>b|0)),e=dJ(pC(),this.wl&(-1+c|0));if(0!==(this.wl&c)){c=this.tf.j[e];a=c.nI(a,5+b|0);if(c===a)return this;b=ia(La(u8),[this.tf.j.length]);Kt(ye(),this.tf,0,b,0,this.tf.j.length);b.j[e]=a;return v8(new w8,this.wl,b,this.Rs+(a.lb()-c.lb()|0)|0)}b=ia(La(u8),[1+this.tf.j.length|0]);Kt(ye(),this.tf,0,b,0,e);b.j[e]=a;Kt(ye(),this.tf,e,b,1+e|0,this.tf.j.length-e|0);return v8(new w8,this.wl|c,b,this.Rs+a.lb()|0)};d.lb=function(){return this.Rs};
d.kb=function(){var a=new L6;X4.prototype.pAa.call(a,this.tf);return a};
d.OL=function(a,b,c){var e=1<<(31&(b>>>c|0)),f=dJ(pC(),this.wl&(-1+e|0));if(0!==(this.wl&e)){var g=this.tf.j[f];a=g.OL(a,b,5+c|0);return g===a?this:null===a?(e^=this.wl,0!==e?(a=ia(La(u8),[-1+this.tf.j.length|0]),Kt(ye(),this.tf,0,a,0,f),Kt(ye(),this.tf,1+f|0,a,f,-1+(this.tf.j.length-f|0)|0),f=this.Rs-g.lb()|0,1!==a.j.length||Y4(a.j[0])?v8(new w8,e,a,f):a.j[0]):null):1!==this.tf.j.length||Y4(a)?(e=ia(La(u8),[this.tf.j.length]),Kt(ye(),this.tf,0,e,0,this.tf.j.length),e.j[f]=a,f=this.Rs+(a.lb()-g.lb()|
0)|0,v8(new w8,this.wl,e,f)):a}return this};
d.hP=function(a,b,c,e){if(a===this)return this;if(Syb(a))return a.hP(this,b,c,e);if(Y4(a)){var f=this.tf,g=this.wl,h=0,k=a.tf,l=a.wl,p=0;if(0===(g&l))return null;for(var y=e,I=0,E=0;0!==(g&l);){var V=g^g&(-1+g|0),da=l^l&(-1+l|0);if(V===da){var sa=f.j[h].hP(k.j[p],5+b|0,c,y);null!==sa&&(I=I+sa.lb()|0,E|=V,c.j[y]=sa,y=1+y|0);g&=~V;h=1+h|0;l&=~da;p=1+p|0}else{var sa=-1+V|0,ua=-1+da|0;sa<ua!==0>sa!==0>ua?(g&=~V,h=1+h|0):(l&=~da,p=1+p|0)}}if(0===E)return null;if(I===this.Rs)return this;if(I===a.Rs)return a;
a=y-e|0;return 1!==a||Y4(c.j[e])?(b=ia(La(u8),[a]),Ca(c,e,b,0,a),v8(new w8,E,b,I)):c.j[e]}return null};
d.FT=function(a,b,c,e){if(a===this)return null;if(Fbb(a))return this.OL(a.Ek,a.Af,b);if(Y4(a)){for(var f=this.tf,g=this.wl,h=0,k=a.tf,l=a.wl,p=0,y=e,I=a=0;0!==g;){var E=g^g&(-1+g|0),V=l^l&(-1+l|0);if(E===V){var da=f.j[h].FT(k.j[p],5+b|0,c,y);null!==da&&(a=a+da.lb()|0,I|=E,c.j[y]=da,y=1+y|0);g&=~E;h=1+h|0;l&=~V;p=1+p|0}else{var da=-1+E|0,sa=-1+V|0;da<sa!==0>da!==0>sa?(V=f.j[h],a=a+V.lb()|0,I|=E,c.j[y]=V,y=1+y|0,g&=~E,h=1+h|0):(l&=~V,p=1+p|0)}}if(0===I)return null;if(a===this.Rs)return this;b=y-e|0;
return 1!==b||Y4(c.j[e])?(f=ia(La(u8),[b]),Ca(c,e,f,0,b),v8(new w8,I,f,a)):c.j[e]}if(Tyb(a))a:for(e=this,c=a.en;;){if(c.b()||null===e){b=e;break a}I=v$(c);e=e.OL(Uc(I).Sa(),a.Af,b);c=Cw(c)}else b=this;return b};function v8(a,b,c,e){a.wl=b;a.tf=c;a.Rs=e;aNa(fc(),dJ(pC(),b)===c.j.length);return a}
d.wO=function(a,b,c,e,f){for(var g=f,h=0,k=0,l=0;l<this.tf.j.length;){var p=this.tf.j[l].wO(a,b,5+c|0,e,g);null!==p&&(e.j[g]=p,g=1+g|0,h=h+p.lb()|0,k|=1<<l);l=1+l|0}if(g===f)return null;if(h===this.Rs)return this;if(g!==(1+f|0)||Y4(e.j[f])){b=g-f|0;a=ia(La(u8),[b]);Ca(e,f,a,0,b);if(b===this.tf.j.length)k=this.wl;else{Yob();e=0;for(f=this.wl;0!==k;)b=f^f&(-1+f|0),0!==(1&k)&&(e|=b),f&=~b,k=k>>>1|0;k=e}return v8(new w8,k,a,h)}return e.j[f]};
d.ry=function(a,b,c){var e=31&(b>>>c|0),f=1<<e;return-1===this.wl?this.tf.j[31&e].ry(a,b,5+c|0):0!==(this.wl&f)?(e=dJ(pC(),this.wl&(-1+f|0)),this.tf.j[e].ry(a,b,5+c|0)):!1};d.WW=function(a,b){if(a===this)return!0;if(Y4(a)&&this.Rs<=a.Rs){var c=this.wl,e=this.tf,f=0,g=a.tf;a=a.wl;var h=0;if((c&a)===c){for(;0!==c;){var k=c^c&(-1+c|0),l=a^a&(-1+a|0);if(k===l){if(!e.j[f].WW(g.j[h],5+b|0))return!1;c&=~k;f=1+f|0}a&=~l;h=1+h|0}return!0}}return!1};
function Y4(a){return!!(a&&a.$classData&&a.$classData.v.pFa)}d.$classData=q({pFa:0},!1,"scala.collection.immutable.HashSet$HashTrieSet",{pFa:1,VP:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,Vy:1,Li:1,aj:1,$i:1,gi:1,q:1,n:1});function Uyb(){}Uyb.prototype=new Eyb;Uyb.prototype.constructor=Uyb;function Vyb(){}Vyb.prototype=Uyb.prototype;function Syb(a){return!!(a&&a.$classData&&a.$classData.v.qFa)}
function Wyb(){}Wyb.prototype=new j$;Wyb.prototype.constructor=Wyb;function Xyb(){}d=Xyb.prototype=Wyb.prototype;d.Kn=function(){return this};d.Qt=function(){throw(new PH).e("value of empty map");};d.tk=function(a){return this.CX(a)};d.b=function(){return!0};d.Qf=function(){return this};d.Zb=function(a){return this.LI(a)};d.Vp=function(){return uib()};d.Bo=function(a){return this.CX(a)};d.kaa=function(){return uib()};d.lb=function(){return 0};d.gr=function(a){return Yyb(this,a)};d.Wy=function(){return this};
d.Gu=function(){throw(new PH).e("key of empty map");};d.kb=function(){var a=Zyb(this);return Uc(a)};d.LI=function(a){return $yb(new E$,this,a.pa(),a.Ba())};function Yyb(a,b){return b.b()?a:b.rl(a,qd(function(){return function(a,b){return a.LI(b)}}(a)))}d.Hh=function(a,b){return this.kX(a,b)};d.kX=function(a,b){return $yb(new E$,this,a,b)};d.Ph=function(a){return O9(this,a)};d.CX=function(){return this};d.Ta=function(){return w()};
function Zyb(a){for(var b=G();!a.b();){var c=(new P).N(a.Gu(),a.Qt()),b=oz(new pz,c,b);a=a.zH()}return b}d.qC=function(){return Pd(this)};d.jh=function(){return iN(this)};d.zH=function(){throw(new PH).e("next of empty map");};d.Zt=function(a){return this.LI(a)};d.Lk=function(){return"ListMap"};function azb(){}azb.prototype=new j$;azb.prototype.constructor=azb;d=azb.prototype;d.a=function(){return this};d.R=function(a){this.WS(a)};d.tk=function(){return this};d.vu=function(a,b){return gc(b)};
d.Zb=function(a){var b=a.pa();a=a.Ba();return(new F$).N(b,a)};d.Bo=function(){return this};d.lb=function(){return 0};d.kb=function(){return Uz().Td};d.Hh=function(a,b){return(new F$).N(a,b)};d.Ta=function(){return w()};d.Ja=function(){return!1};d.WS=function(a){throw(new PH).e("key not found: "+a);};d.Zt=function(a){var b=a.pa();a=a.Ba();return(new F$).N(b,a)};
d.$classData=q({Cab:0},!1,"scala.collection.immutable.Map$EmptyMap$",{Cab:1,RA:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,yx:1,Li:1,aj:1,$i:1,zx:1,q:1,n:1});var bzb=void 0;function Xs(){bzb||(bzb=(new azb).a());return bzb}function F$(){this.kh=this.pf=null}F$.prototype=new j$;F$.prototype.constructor=F$;d=F$.prototype;d.R=function(a){if(ub(vb(),a,this.pf))return this.kh;throw(new PH).e("key not found: "+a);};
d.tk=function(a){return this.gz(a)};d.vu=function(a,b){return ub(vb(),a,this.pf)?this.kh:gc(b)};d.N=function(a,b){this.pf=a;this.kh=b;return this};d.Zb=function(a){return this.Hh(a.pa(),a.Ba())};d.X=function(a){a.R((new P).N(this.pf,this.kh))};d.Bo=function(a){return this.gz(a)};d.lb=function(){return 1};d.kb=function(){Uz();var a=[(new P).N(this.pf,this.kh)],a=(new J).aa(a);return hD(new iD,a,0,a.z.length|0)};
d.Hh=function(a,b){return ub(vb(),a,this.pf)?(new F$).N(this.pf,b):(new G$).vA(this.pf,this.kh,a,b)};d.Ta=function(a){return ub(vb(),a,this.pf)?(new A).d(this.kh):w()};d.Ja=function(a){return ub(vb(),a,this.pf)};d.gz=function(a){return ub(vb(),a,this.pf)?Xs():this};d.Zt=function(a){return this.Hh(a.pa(),a.Ba())};
d.$classData=q({Dab:0},!1,"scala.collection.immutable.Map$Map1",{Dab:1,RA:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,yx:1,Li:1,aj:1,$i:1,zx:1,q:1,n:1});function G$(){this.ej=this.Cg=this.kh=this.pf=null}G$.prototype=new j$;G$.prototype.constructor=G$;d=G$.prototype;d.R=function(a){if(ub(vb(),a,this.pf))return this.kh;if(ub(vb(),a,this.Cg))return this.ej;throw(new PH).e("key not found: "+a);};d.tk=function(a){return this.gz(a)};
d.vu=function(a,b){return ub(vb(),a,this.pf)?this.kh:ub(vb(),a,this.Cg)?this.ej:gc(b)};d.Zb=function(a){return this.Hh(a.pa(),a.Ba())};d.X=function(a){a.R((new P).N(this.pf,this.kh));a.R((new P).N(this.Cg,this.ej))};d.Bo=function(a){return this.gz(a)};d.lb=function(){return 2};d.kb=function(){Uz();var a=[(new P).N(this.pf,this.kh),(new P).N(this.Cg,this.ej)],a=(new J).aa(a);return hD(new iD,a,0,a.z.length|0)};
d.Hh=function(a,b){return ub(vb(),a,this.pf)?(new G$).vA(this.pf,b,this.Cg,this.ej):ub(vb(),a,this.Cg)?(new G$).vA(this.pf,this.kh,this.Cg,b):H$(this.pf,this.kh,this.Cg,this.ej,a,b)};d.Ta=function(a){return ub(vb(),a,this.pf)?(new A).d(this.kh):ub(vb(),a,this.Cg)?(new A).d(this.ej):w()};d.Ja=function(a){return ub(vb(),a,this.pf)||ub(vb(),a,this.Cg)};d.vA=function(a,b,c,e){this.pf=a;this.kh=b;this.Cg=c;this.ej=e;return this};
d.gz=function(a){return ub(vb(),a,this.pf)?(new F$).N(this.Cg,this.ej):ub(vb(),a,this.Cg)?(new F$).N(this.pf,this.kh):this};d.Zt=function(a){return this.Hh(a.pa(),a.Ba())};d.$classData=q({Eab:0},!1,"scala.collection.immutable.Map$Map2",{Eab:1,RA:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,yx:1,Li:1,aj:1,$i:1,zx:1,q:1,n:1});function czb(){this.rn=this.Cj=this.ej=this.Cg=this.kh=this.pf=null}czb.prototype=new j$;
czb.prototype.constructor=czb;d=czb.prototype;d.R=function(a){if(ub(vb(),a,this.pf))return this.kh;if(ub(vb(),a,this.Cg))return this.ej;if(ub(vb(),a,this.Cj))return this.rn;throw(new PH).e("key not found: "+a);};d.tk=function(a){return this.gz(a)};d.vu=function(a,b){return ub(vb(),a,this.pf)?this.kh:ub(vb(),a,this.Cg)?this.ej:ub(vb(),a,this.Cj)?this.rn:gc(b)};d.Zb=function(a){return this.Hh(a.pa(),a.Ba())};
d.X=function(a){a.R((new P).N(this.pf,this.kh));a.R((new P).N(this.Cg,this.ej));a.R((new P).N(this.Cj,this.rn))};d.Bo=function(a){return this.gz(a)};function H$(a,b,c,e,f,g){var h=new czb;h.pf=a;h.kh=b;h.Cg=c;h.ej=e;h.Cj=f;h.rn=g;return h}d.lb=function(){return 3};d.kb=function(){Uz();var a=[(new P).N(this.pf,this.kh),(new P).N(this.Cg,this.ej),(new P).N(this.Cj,this.rn)],a=(new J).aa(a);return hD(new iD,a,0,a.z.length|0)};
d.Hh=function(a,b){return ub(vb(),a,this.pf)?H$(this.pf,b,this.Cg,this.ej,this.Cj,this.rn):ub(vb(),a,this.Cg)?H$(this.pf,this.kh,this.Cg,b,this.Cj,this.rn):ub(vb(),a,this.Cj)?H$(this.pf,this.kh,this.Cg,this.ej,this.Cj,b):dzb(this.pf,this.kh,this.Cg,this.ej,this.Cj,this.rn,a,b)};d.Ta=function(a){return ub(vb(),a,this.pf)?(new A).d(this.kh):ub(vb(),a,this.Cg)?(new A).d(this.ej):ub(vb(),a,this.Cj)?(new A).d(this.rn):w()};d.Ja=function(a){return ub(vb(),a,this.pf)||ub(vb(),a,this.Cg)||ub(vb(),a,this.Cj)};
d.gz=function(a){return ub(vb(),a,this.pf)?(new G$).vA(this.Cg,this.ej,this.Cj,this.rn):ub(vb(),a,this.Cg)?(new G$).vA(this.pf,this.kh,this.Cj,this.rn):ub(vb(),a,this.Cj)?(new G$).vA(this.pf,this.kh,this.Cg,this.ej):this};d.Zt=function(a){return this.Hh(a.pa(),a.Ba())};
d.$classData=q({Fab:0},!1,"scala.collection.immutable.Map$Map3",{Fab:1,RA:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,yx:1,Li:1,aj:1,$i:1,zx:1,q:1,n:1});function ezb(){this.Jx=this.us=this.rn=this.Cj=this.ej=this.Cg=this.kh=this.pf=null}ezb.prototype=new j$;ezb.prototype.constructor=ezb;d=ezb.prototype;
d.R=function(a){if(ub(vb(),a,this.pf))return this.kh;if(ub(vb(),a,this.Cg))return this.ej;if(ub(vb(),a,this.Cj))return this.rn;if(ub(vb(),a,this.us))return this.Jx;throw(new PH).e("key not found: "+a);};d.tk=function(a){return this.gz(a)};d.vu=function(a,b){return ub(vb(),a,this.pf)?this.kh:ub(vb(),a,this.Cg)?this.ej:ub(vb(),a,this.Cj)?this.rn:ub(vb(),a,this.us)?this.Jx:gc(b)};d.Zb=function(a){return this.Hh(a.pa(),a.Ba())};
d.X=function(a){a.R((new P).N(this.pf,this.kh));a.R((new P).N(this.Cg,this.ej));a.R((new P).N(this.Cj,this.rn));a.R((new P).N(this.us,this.Jx))};d.Bo=function(a){return this.gz(a)};d.lb=function(){return 4};d.kb=function(){Uz();var a=[(new P).N(this.pf,this.kh),(new P).N(this.Cg,this.ej),(new P).N(this.Cj,this.rn),(new P).N(this.us,this.Jx)],a=(new J).aa(a);return hD(new iD,a,0,a.z.length|0)};
function dzb(a,b,c,e,f,g,h,k){var l=new ezb;l.pf=a;l.kh=b;l.Cg=c;l.ej=e;l.Cj=f;l.rn=g;l.us=h;l.Jx=k;return l}
d.Hh=function(a,b){return ub(vb(),a,this.pf)?dzb(this.pf,b,this.Cg,this.ej,this.Cj,this.rn,this.us,this.Jx):ub(vb(),a,this.Cg)?dzb(this.pf,this.kh,this.Cg,b,this.Cj,this.rn,this.us,this.Jx):ub(vb(),a,this.Cj)?dzb(this.pf,this.kh,this.Cg,this.ej,this.Cj,b,this.us,this.Jx):ub(vb(),a,this.us)?dzb(this.pf,this.kh,this.Cg,this.ej,this.Cj,this.rn,this.us,b):fzb(fzb(fzb(fzb(fzb((new gzb).a(),this.pf,this.kh),this.Cg,this.ej),this.Cj,this.rn),this.us,this.Jx),a,b)};
d.Ta=function(a){return ub(vb(),a,this.pf)?(new A).d(this.kh):ub(vb(),a,this.Cg)?(new A).d(this.ej):ub(vb(),a,this.Cj)?(new A).d(this.rn):ub(vb(),a,this.us)?(new A).d(this.Jx):w()};d.Ja=function(a){return ub(vb(),a,this.pf)||ub(vb(),a,this.Cg)||ub(vb(),a,this.Cj)||ub(vb(),a,this.us)};
d.gz=function(a){return ub(vb(),a,this.pf)?H$(this.Cg,this.ej,this.Cj,this.rn,this.us,this.Jx):ub(vb(),a,this.Cg)?H$(this.pf,this.kh,this.Cj,this.rn,this.us,this.Jx):ub(vb(),a,this.Cj)?H$(this.pf,this.kh,this.Cg,this.ej,this.us,this.Jx):ub(vb(),a,this.us)?H$(this.pf,this.kh,this.Cg,this.ej,this.Cj,this.rn):this};d.Zt=function(a){return this.Hh(a.pa(),a.Ba())};
d.$classData=q({Gab:0},!1,"scala.collection.immutable.Map$Map4",{Gab:1,RA:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,yx:1,Li:1,aj:1,$i:1,zx:1,q:1,n:1});function wx(){l4.call(this)}wx.prototype=new Mxb;wx.prototype.constructor=wx;d=wx.prototype;d.td=function(){return this};d.IE=function(a,b){l4.prototype.l1.call(this,a,b);return this};d.Kn=function(){return this};d.tk=function(a){return Qxb(this,a)};d.Mi=function(){return this};
d.Qf=function(){return this};d.Bga=function(a){return Pxb(this,a)};d.Zb=function(a){return Pxb(this,a)};d.Lh=function(){return Ce()};d.Bo=function(a){return Qxb(this,a)};d.Vp=function(){return Xs()};d.gr=function(a){return Vka(this,a)};d.Wy=function(){return this};d.Hh=function(a,b){return this.Zb((new P).N(a,b))};d.Ph=function(a){return O9(this,a)};d.qC=function(){return Pd(this)};d.jh=function(){return iN(this)};d.$g=function(){return this};d.Zt=function(a){return Pxb(this,a)};
d.$classData=q({Hab:0},!1,"scala.collection.immutable.MapLike$$anon$1",{Hab:1,KEa:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,DEa:1,eab:1,yx:1,Li:1,aj:1,$i:1,zx:1});function yu(){Nxb.call(this)}yu.prototype=new Oxb;yu.prototype.constructor=yu;d=yu.prototype;d.td=function(){return this};d.IE=function(a,b){Nxb.prototype.l1.call(this,a,b);return this};d.Kn=function(){return this};d.tk=function(a){return Qxb(this,a)};
d.Mi=function(){return this};d.Qf=function(){return this};d.Zb=function(a){return Pxb(this,a)};d.Lh=function(){return Ce()};d.Bo=function(a){return Qxb(this,a)};d.Vp=function(){return Xs()};d.gr=function(a){return Vka(this,a)};d.Wy=function(){return this};d.Hh=function(a,b){return this.Zb((new P).N(a,b))};d.Ph=function(a){return O9(this,a)};d.qC=function(){return Pd(this)};d.jh=function(){return iN(this)};d.$g=function(){return this};d.Zt=function(a){return Pxb(this,a)};
d.$classData=q({Iab:0},!1,"scala.collection.immutable.MapLike$$anon$2",{Iab:1,bgb:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,DEa:1,eab:1,yx:1,Li:1,aj:1,$i:1,zx:1});function hzb(){s$.call(this);this.HGa=this.jDa=null;this.mi=!1;this.Pa=null}hzb.prototype=new t$;hzb.prototype.constructor=hzb;d=hzb.prototype;d.jb=function(a){return gyb(this,a)};d.R=function(a){return gyb(this,a|0)};d.O1=function(){return this.jDa};
d.kb=function(){return pxb(this)};d.Ul=function(){return"Z"};d.Ka=function(){return fyb(this)};d.$Ea=function(){return this.Pa};d.c3=function(){this.mi||this.mi||(this.HGa=this.O1().Mi().ce(),this.mi=!0);return this.HGa};function $xb(a,b){var c=new hzb;if(null===a)throw Lb(Mb(),null);c.Pa=a;c.jDa=b;s$.prototype.wt.call(c,a);return c}d.B2=function(){return this.Pa};
d.$classData=q({w$a:0},!1,"scala.collection.SeqViewLike$$anon$10",{w$a:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,L$a:1,a$a:1});function gzb(){}gzb.prototype=new j$;gzb.prototype.constructor=gzb;function izb(){}d=izb.prototype=gzb.prototype;d.td=function(){return this};d.gE=function(a){return this.Paa(yI(zI(),a))};d.Kn=function(){return this};d.a=function(){return this};
d.tk=function(a){return jzb(this,a)};d.Qf=function(){return this};d.rQ=function(a,b,c,e,f){return I$(new J$,a,b,e,f)};d.HO=function(){return w()};d.Zb=function(a){return kzb(this,a)};d.X=function(){};function kzb(a,b){return a.rQ(b.pa(),a.gE(b.pa()),0,b.Ba(),b,null)}function lzb(a,b){e8();var c=6+a.lb()|0,c=ia(La(a8),[224>c?c:224]);e8();a=a.vO(b,!0,0,c,0);return null===a?d8():a}function fzb(a,b,c){return a.rQ(b,a.gE(b),0,c,null,null)}d.Bo=function(a){return jzb(this,a)};d.Vp=function(){e8();return d8()};
d.vW=function(){return this};d.vO=function(){return null};function jzb(a,b){return a.vW(b,a.gE(b),0)}d.xb=function(a){e8();var b=6+this.lb()|0,b=ia(La(a8),[224>b?b:224]);e8();a=this.vO(a,!1,0,b,0);return null===a?d8():a};d.kaa=function(){e8();return d8()};d.lb=function(){return 0};d.Wy=function(){return this};d.kb=function(){return Uz().Td};d.Hh=function(a,b){return fzb(this,a,b)};d.zfa=function(){return jzb(this,this.fa().pa())};d.Ph=function(a){return lzb(this,a)};
d.Paa=function(a){a=a+~(a<<9)|0;a^=a>>>14|0;a=a+(a<<4)|0;return a^(a>>>10|0)};d.Ta=function(a){return this.HO(a,this.gE(a),0)};d.cO=function(){return!1};d.Ja=function(a){return this.cO(a,this.gE(a),0)};d.sa=function(){return this.zfa()};d.zaa=function(a){return lzb(this,a)};d.qC=function(){return Pd(this)};d.jh=function(){return iN(this)};d.Zt=function(a){return kzb(this,a)};
var a8=q({JW:0},!1,"scala.collection.immutable.HashMap",{JW:1,RA:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,yx:1,Li:1,aj:1,$i:1,zx:1,q:1,n:1,gi:1});gzb.prototype.$classData=a8;function B$(){this.Ek=null;this.Af=0}B$.prototype=new Vyb;B$.prototype.constructor=B$;d=B$.prototype;
d.jX=function(a,b,c){if(b===this.Af&&ub(vb(),a,this.Ek))return this;if(b!==this.Af)return Wob(Yob(),this.Af,this,b,A$(new B$,a,b),c);c=$ob();return K$(new L$,b,jyb(new u$,c,this.Ek).mD(a))};d.gX=function(a,b){return a.nI(this,b)};function A$(a,b,c){a.Ek=b;a.Af=c;return a}d.X=function(a){a.R(this.Ek)};
d.nI=function(a,b){if(a.Af!==this.Af)return Wob(Yob(),this.Af,this,a.Af,a,b);if(Fbb(a)){if(ub(vb(),this.Ek,a.Ek))return this;b=this.Af;var c=$ob();return K$(new L$,b,jyb(new u$,c,this.Ek).mD(a.Ek))}if(Tyb(a))return b=a.en.mD(this.Ek),b.lb()===a.en.lb()?a:K$(new L$,this.Af,b);throw(new v).d(a);};d.lb=function(){return 1};d.kb=function(){Uz();var a=(new J).aa([this.Ek]);return hD(new iD,a,0,a.z.length|0)};d.OL=function(a,b){return b===this.Af&&ub(vb(),a,this.Ek)?null:this};
d.hP=function(a,b){return a.ry(this.Ek,this.Af,b)?this:null};d.FT=function(a,b){return a.ry(this.Ek,this.Af,b)?null:this};d.wO=function(a,b){return b!==!!a.R(this.Ek)?this:null};d.ry=function(a,b){return b===this.Af&&ub(vb(),a,this.Ek)};d.WW=function(a,b){return a.ry(this.Ek,this.Af,b)};function Fbb(a){return!!(a&&a.$classData&&a.$classData.v.nFa)}
d.$classData=q({nFa:0},!1,"scala.collection.immutable.HashSet$HashSet1",{nFa:1,qFa:1,VP:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,Vy:1,Li:1,aj:1,$i:1,gi:1,q:1,n:1});function L$(){this.Af=0;this.en=null}L$.prototype=new Vyb;L$.prototype.constructor=L$;d=L$.prototype;d.jX=function(a,b,c){return b===this.Af?K$(new L$,b,this.en.mD(a)):Wob(Yob(),this.Af,this,b,A$(new B$,a,b),c)};
d.gX=function(a,b){return Syb(a)?this.nI(a,b):Y4(a)?a.nI(this,b):this};d.X=function(a){var b=v$(this.en);fS(Uc(b),a)};d.nI=function(a,b){if(a.Af!==this.Af)return Wob(Yob(),this.Af,this,a.Af,a,b);if(Fbb(a))return a=this.en.mD(a.Ek),a.lb()===this.en.lb()?this:K$(new L$,this.Af,a);if(Tyb(a)){b=kyb(this.en,a.en);var c=b.lb();return c===this.en.lb()?this:c===a.en.lb()?a:K$(new L$,this.Af,b)}throw(new v).d(a);};d.lb=function(){return this.en.lb()};d.kb=function(){var a=v$(this.en);return Uc(a)};
d.OL=function(a,b){if(b===this.Af){a=this.en.DX(a);var c=a.lb();switch(c){case 0:return null;case 1:return a=v$(a),A$(new B$,Uc(a).Sa(),b);default:return c===this.en.lb()?this:K$(new L$,b,a)}}else return this};d.hP=function(a,b){for(var c=this.en,e=Zd(new ee,$ob()),c=v$(c),c=Uc(c);c.Qa();){var f=c.Sa();!1!==a.ry(f,this.Af,b)&&fe(e,f)}b=e.gb;e=b.lb();return 0===e?null:e===this.en.lb()?this:e===a.lb()?a:1===e?(a=v$(b),A$(new B$,Uc(a).Sa(),this.Af)):K$(new L$,this.Af,b)};
function K$(a,b,c){a.Af=b;a.en=c;return a}d.FT=function(a,b){for(var c=this.en,e=Zd(new ee,$ob()),c=v$(c),c=Uc(c);c.Qa();){var f=c.Sa();!0!==a.ry(f,this.Af,b)&&fe(e,f)}a=e.gb;b=a.lb();return 0===b?null:b===this.en.lb()?this:1===b?(a=v$(a),A$(new B$,Uc(a).Sa(),this.Af)):K$(new L$,this.Af,a)};d.wO=function(a,b){a=b?F6(this.en,a,!0):F6(this.en,a,!1);b=a.lb();switch(b){case 0:return null;case 1:return a=v$(a),A$(new B$,Uc(a).Sa(),this.Af);default:return b===this.en.lb()?this:K$(new L$,this.Af,a)}};
d.ry=function(a,b){return b===this.Af&&this.en.Ja(a)};d.WW=function(a,b){for(var c=v$(this.en),c=Uc(c),e=!0;e&&c.Qa();)e=c.Sa(),e=a.ry(e,this.Af,b);return e};function Tyb(a){return!!(a&&a.$classData&&a.$classData.v.oFa)}d.$classData=q({oFa:0},!1,"scala.collection.immutable.HashSet$HashSetCollision1",{oFa:1,qFa:1,VP:1,Vu:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,Vy:1,Li:1,aj:1,$i:1,gi:1,q:1,n:1});function mzb(){}
mzb.prototype=new Xyb;mzb.prototype.constructor=mzb;mzb.prototype.a=function(){return this};mzb.prototype.$classData=q({vab:0},!1,"scala.collection.immutable.ListMap$EmptyListMap$",{vab:1,tab:1,RA:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,yx:1,Li:1,aj:1,$i:1,zx:1,q:1,n:1});var nzb=void 0;function uib(){nzb||(nzb=(new mzb).a());return nzb}function E$(){this.Aga=this.qI=this.Ek=null}E$.prototype=new Xyb;
E$.prototype.constructor=E$;function ozb(a,b){var c=G();for(;;){if(b.b())return Rs(c);if(ub(vb(),a,b.Gu())){b=b.zH();for(a=c;!a.b();)c=a.fa(),b=$yb(new E$,b,c.Gu(),c.Qt()),a=a.sa();return b}var e=b.zH(),c=oz(new pz,b,c);b=e}}d=E$.prototype;d.R=function(a){a:{var b=this;for(;;){if(b.b())throw(new PH).e("key not found: "+a);if(ub(vb(),a,b.Gu())){a=b.Qt();break a}b=b.zH()}}return a};d.tk=function(a){return ozb(a,this)};d.Qt=function(){return this.qI};d.b=function(){return!1};d.Zb=function(a){return this.LI(a)};
d.Bo=function(a){return ozb(a,this)};d.lb=function(){a:{var a=this,b=0;for(;;){if(a.b())break a;a=a.zH();b=1+b|0}}return b};d.Gu=function(){return this.Ek};d.LI=function(a){var b=ozb(a.pa(),this);return $yb(new E$,b,a.pa(),a.Ba())};d.Hh=function(a,b){return this.kX(a,b)};d.kX=function(a,b){var c=ozb(a,this);return $yb(new E$,c,a,b)};d.CX=function(a){return ozb(a,this)};d.Ta=function(a){a:{var b=this;for(;;){if(b.b()){a=w();break a}if(ub(vb(),a,b.Gu())){a=(new A).d(b.Qt());break a}b=b.zH()}}return a};
function $yb(a,b,c,e){a.Ek=c;a.qI=e;if(null===b)throw Lb(Mb(),null);a.Aga=b;return a}d.Ja=function(a){a:{var b=this;for(;;){if(b.b()){a=!1;break a}if(ub(vb(),a,b.Gu())){a=!0;break a}b=b.zH()}}return a};d.zH=function(){return this.Aga};d.Zt=function(a){return this.LI(a)};
d.$classData=q({wab:0},!1,"scala.collection.immutable.ListMap$Node",{wab:1,tab:1,RA:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,yx:1,Li:1,aj:1,$i:1,zx:1,q:1,n:1});function ZQ(){this.Fj=this.iK=this.pn=0;this.Mv=!1;this.Kea=this.fF=0}ZQ.prototype=new T9;ZQ.prototype.constructor=ZQ;function pzb(){}d=pzb.prototype=ZQ.prototype;d.td=function(){return this};d.NE=function(){return!1};
d.fa=function(){return this.Mv?G().M0():this.pn};d.jb=function(a){return this.Tn(a)};d.$y=function(){return this};d.R=function(a){return this.Tn(a|0)};d.b=function(){return this.Mv};d.Mi=function(){return this};d.Qf=function(){return this};d.h=function(a){if(a&&a.$classData&&a.$classData.v.Uea){if(this.Mv)return a.Mv;if(Tc(a)&&this.pn===a.pn){var b=M$(this);return b===M$(a)&&(this.pn===b||this.Fj===a.Fj)}return!1}return F4(this,a)};
function qzb(a,b){if(a.Mv)return a=a.pn,(new aq).La(a,a>>31);for(var c=a.pn,e=M$(a);c!==e&&b.rp(c);)c=c+a.Fj|0;if(c===e&&b.rp(c))return b=c,c=b>>31,e=a.Fj,a=e>>31,e=b+e|0,(new aq).La(e,(-2147483648^e)<(-2147483648^b)?1+(c+a|0)|0:c+a|0);a=c;return(new aq).La(a,a>>31)}d.Tn=function(a){0>this.fF&&Gxa(KG(),this.pn,this.iK,this.Fj,this.NE());if(0>a||a>=this.fF)throw(new X).e(""+a);return this.pn+ca(this.Fj,a)|0};
d.Ck=function(a){var b=qzb(this,a);a=b.Na;var b=b.$a,c=this.pn;a===c&&b===c>>31?a=this:(a=a-this.Fj|0,a===M$(this)?(a=M$(this),a=(new ZQ).Zh(a,a,this.Fj)):a=(new N$).Zh(a+this.Fj|0,M$(this),this.Fj));return a};
d.Zh=function(a,b,c){this.pn=a;this.iK=b;this.Fj=c;this.Mv=a>b&&0<c||a<b&&0>c||a===b&&!this.NE();if(0===c)throw(new rk).e("step cannot be 0.");if(this.Mv)a=0;else{var e;e=rzb(this);a=e.Na;var f=e.$a,g=this.Fj,h=g>>31;e=Fa();a=jD(e,a,f,g,h);e=e.be;g=this.NE()||!szb(this)?1:0;f=g>>31;g=a+g|0;e=(new aq).La(g,(-2147483648^g)<(-2147483648^a)?1+(e+f|0)|0:e+f|0);a=e.Na;e=e.$a;a=(0===e?-1<(-2147483648^a):0<e)?-1:a}this.fF=a;switch(c){case 1:b=this.NE()?b:-1+b|0;break;case -1:b=this.NE()?b:1+b|0;break;default:e=
rzb(this),a=e.Na,e=e.$a,f=c>>31,a=BD(Fa(),a,e,c,f),b=0!==a?b-a|0:this.NE()?b:b-c|0}this.Kea=b;return this};d.u=function(){var a=this.NE()?"to":"until",b=1===this.Fj?"":" by "+this.Fj;return(this.Mv?"empty ":szb(this)?"":"inexact ")+"Range "+this.pn+" "+a+" "+this.iK+b};d.Lh=function(){return xq()};d.X=function(a){if(!this.Mv)for(var b=this.pn;;){a.R(b);if(b===this.Kea)break;b=b+this.Fj|0}};
d.ol=function(a){var b=qzb(this,a);a=b.Na;var b=b.$a,c=this.pn;a===c&&b===c>>31?(a=this.pn,a=(new ZQ).Zh(a,a,this.Fj)):(a=a-this.Fj|0,a=a===M$(this)?this:(new N$).Zh(this.pn,a,this.Fj));return a};d.Zya=function(a,b,c){return(new ZQ).Zh(a,b,c)};d.Js=function(){return this.Mv?this:(new N$).Zh(M$(this),this.pn,-this.Fj|0)};d.lb=function(){return this.Ka()};d.bj=function(){return t9(this)};d.kb=function(){return hD(new iD,this,0,this.Ka())};
d.om=function(a){var b=qzb(this,a);a=b.Na;var b=b.$a,c=this.pn;if(a===c&&b===c>>31)return a=this.pn,(new P).N((new ZQ).Zh(a,a,this.Fj),this);a=a-this.Fj|0;return a===M$(this)?(a=M$(this),(new P).N(this,(new ZQ).Zh(a,a,this.Fj))):(new P).N((new N$).Zh(this.pn,a,this.Fj),(new N$).Zh(a+this.Fj|0,M$(this),this.Fj))};d.Ka=function(){return 0>this.fF?Gxa(KG(),this.pn,this.iK,this.Fj,this.NE()):this.fF};d.Uo=function(){return this};d.Ol=function(){return this.Ka()};
function tzb(a,b){return 0>=b||a.Mv?a:b>=a.fF&&0<=a.fF?(b=a.iK,(new ZQ).Zh(b,b,a.Fj)):a.Zya(a.pn+ca(a.Fj,b)|0,a.iK,a.Fj)}d.Wj=function(a){0>=a||this.Mv?(a=this.pn,a=(new ZQ).Zh(a,a,this.Fj)):a=a>=this.fF&&0<=this.fF?this:(new N$).Zh(this.pn,this.pn+ca(this.Fj,-1+a|0)|0,this.Fj);return a};function szb(a){var b=rzb(a),c=b.Na,b=b.$a,e=a.Fj,f=e>>31;a=Fa();c=BD(a,c,b,e,f);b=a.be;return 0===c&&0===b}d.Dy=function(){return M$(this)};d.ck=function(a){return tzb(this,a)};d.Hj=function(){return this};
d.sa=function(){this.Mv&&uzb(G());return tzb(this,1)};d.ce=function(){return this};function M$(a){return a.Mv?(a=G(),Rs(a)|0):a.Kea}d.Xa=function(a){return G4(this,a|0)};d.jh=function(){return this};d.y=function(){return bS(xI(),this)};function rzb(a){var b=a.iK,c=b>>31,e=a.pn;a=e>>31;e=b-e|0;return(new aq).La(e,(-2147483648^e)>(-2147483648^b)?-1+(c-a|0)|0:c-a|0)}
d.$classData=q({Uea:0},!1,"scala.collection.immutable.Range",{Uea:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,Sea:1,dI:1,Li:1,aj:1,$i:1,kn:1,Ki:1,gi:1,q:1,n:1});function vzb(){}vzb.prototype=new T9;vzb.prototype.constructor=vzb;function wzb(){}d=wzb.prototype=vzb.prototype;d.td=function(){return this};
function xzb(a){for(var b=gS(),b=(new Qd).d(b),c=a;!c.b();){Js();var e=KAa((new MI).LO(jb(function(a,b){return function(){return b.ta}}(a,b))),c.fa());e.sa();b.ta=e;c=c.sa()}return b.ta}d.jb=function(a){return Pt(this,a)};d.$y=function(){return this};function yzb(a,b){if(!a.b()&&b.R(a.fa())){var c=a.fa();return NI(new OI,c,jb(function(a,b){return function(){return yzb(a.sa(),b)}}(a,b)))}return gS()}d.Ge=function(a){return Ot(this,a)};d.R=function(a){return Pt(this,a|0)};
d.Jl=function(a){return uwb(this,a)};d.tu=function(a){return zzb(this,a)};d.Cd=function(a){return twb(this,a)};d.Mi=function(){return this};d.Qf=function(){return this};d.h=function(a){return this===a||F4(this,a)};
d.md=function(a,b){if(P6(b.Vn(this))){if(this.b())a=gS();else{b=(new Qd).d(this);for(var c=a.R(b.ta.fa()).kd();!b.ta.b()&&c.b();)b.ta=b.ta.sa(),b.ta.b()||(c=a.R(b.ta.fa()).kd());a=b.ta.b()?(Js(),gS()):MAa(c,jb(function(a,b,c){return function(){return c.ta.sa().md(b,(Js(),(new Ks).a()))}}(this,a,b)))}return a}return eA(this,a,b)};function rS(a,b,c){for(;!a.b()&&!!b.R(a.fa())===c;)a=a.sa();return Tc(a)?qub(Js(),a,b,c):gS()}d.b0=function(a){return Azb(this,a)};
d.Ck=function(a){for(var b=this;!b.b()&&a.R(b.fa());)b=b.sa();return b};d.ng=function(a){return this.Fk("",a,"")};d.Fk=function(a,b,c){var e=this,f=this;for(e.b()||(e=e.sa());f!==e&&!e.b();){e=e.sa();if(e.b())break;e=e.sa();if(e===f)break;f=f.sa()}return IG(this,a,b,c)};d.Ng=function(a){return vwb(this,a)};d.qq=function(a){return WOa(new qS,jb(function(a){return function(){return a}}(this)),a)};d.Lh=function(){return Js()};d.u=function(){return IG(this,"Stream(",", ",")")};
d.X=function(a){var b=this;a:for(;;){if(!b.b()){a.R(b.fa());b=b.sa();continue a}break}};d.ae=function(a,b){var c=this;for(;;){if(c.b())return a;var e=c.sa();a=b.zf(a,c.fa());c=e}};d.Ar=function(a,b){return this.b()?a:b.zf(this.fa(),this.sa().Ar(a,b))};d.fm=function(a,b){return xwb(this,a,b)};d.ol=function(a){return yzb(this,a)};
function kQa(a,b,c){for(;;){if(c.b())return c;var e=c.fa();if(b.Ja(e))c=c.sa();else return e=c.fa(),NI(new OI,e,jb(function(a,b,c){return function(){return kQa(a,b.Ij(c.fa()),c.sa())}}(a,b,c)))}}d.Js=function(){return xzb(this)};d.yaa=function(a,b){return rS(this,a,b)};d.Ri=function(){return kQa(this,H(Pf(),G()),this)};d.Tr=function(a,b){return P6(b.Vn(this))?NI(new OI,a,jb(function(a){return function(){return a}}(this))):Bvb(this,a,b)};d.kb=function(){return(new V4).n1(this)};
d.Ib=function(a){return ywb(this,a)};d.om=function(a){for(var b=this,c=this.Lh().Ed();!b.b()&&a.R(b.fa());)c.Ic(b.fa()),b=b.sa();return(new P).N(c.lc(),b)};d.Ka=function(){for(var a=0,b=this;!b.b();)a=1+a|0,b=b.sa();return a};d.la=function(a,b){return P6(b.Vn(this))?(this.b()?a=a.kd():(b=this.fa(),a=NI(new OI,b,jb(function(a,b){return function(){return a.sa().la(b,(Js(),(new Ks).a()))}}(this,a)))),a):vp(this,a,b)};d.cg=function(a){var b=Js();return this.CF(pub(b,0,1),a)};
d.lm=function(){return this.Fk("","","")};d.Uo=function(){return this};d.jn=function(a){var b=rS(this,t(new u,function(a,b){return function(a){return!!b.R(a)}}(this,a)),!1);return(new P).N(b,rS(this,t(new u,function(a,b){return function(a){return!!b.R(a)}}(this,a)),!0))};d.Wj=function(a){return Bzb(this,a)};d.kd=function(){return this};d.Kx=function(){return(new byb).n1(this)};
function zzb(a,b){for(var c=(new Qd).d(a);;)if(Tc(c.ta)){var e=b.R(c.ta.fa());if(e.b())c.ta=c.ta.sa();else return e=e.kd(),Js(),LAa((new MI).LO(jb(function(a,b,c){return function(){return zzb(c.ta.sa(),b)}}(a,b,c))),e)}else break;Js();return gS()}d.ck=function(a){return Azb(this,a)};function Azb(a,b){for(;;){if(0>=b||a.b())return a;a=a.sa();b=-1+b|0}}d.Hj=function(){return this};d.Ja=function(a){return uh(this,a)};
d.vm=function(a,b,c,e){nk(a,b);if(!this.b()){ok(a,this.fa());b=this;if(b.qF()){var f=this.sa();if(f.b())return nk(a,e),a;if(b!==f&&(b=f,f.qF()))for(f=f.sa();b!==f&&f.qF();)ok(nk(a,c),b.fa()),b=b.sa(),f=f.sa(),f.qF()&&(f=f.sa());if(f.qF()){for(var g=this,h=0;g!==f;)g=g.sa(),f=f.sa(),h=1+h|0;b===f&&0<h&&(ok(nk(a,c),b.fa()),b=b.sa());for(;b!==f;)ok(nk(a,c),b.fa()),b=b.sa()}else{for(;b!==f;)ok(nk(a,c),b.fa()),b=b.sa();Tc(b)&&ok(nk(a,c),b.fa())}}b.b()||(b.qF()?nk(nk(a,c),"..."):nk(nk(a,c),"?"))}nk(a,e);
return a};d.ce=function(){return this};d.Xa=function(a){return zwb(this,a|0)};d.jh=function(){return this};d.y=function(){return bS(xI(),this)};d.ka=function(a,b){return P6(b.Vn(this))?(this.b()?a=gS():(b=a.R(this.fa()),a=NI(new OI,b,jb(function(a,b){return function(){return a.sa().ka(b,(Js(),(new Ks).a()))}}(this,a)))),a):De(this,a,b)};
function Bzb(a,b){if(0>=b||a.b())return Js(),gS();if(1===b)return b=a.fa(),NI(new OI,b,jb(function(){return function(){Js();return gS()}}(a)));var c=a.fa();return NI(new OI,c,jb(function(a,b){return function(){return Bzb(a.sa(),-1+b|0)}}(a,b)))}d.$b=function(a,b){if(P6(b.Vn(this))){for(var c=this,e=(new Qd).d(null),f=a.QA(t(new u,function(a,b){return function(a){b.ta=a}}(this,e)));;)if(Tc(c)&&!f.R(c.fa()))c=c.sa();else break;return c.b()?gS():rub(Js(),e.ta,c,a,b)}return Fr(this,a,b)};
d.Sj=function(a){if(this.b())throw(new Gt).e("empty.reduceLeft");for(var b=this.fa(),c=this.sa();!c.b();)b=a.zf(b,c.fa()),c=c.sa();return b};function MAa(a,b){if(a.b())return gc(b).kd();var c=a.fa();return NI(new OI,c,jb(function(a,b){return function(){return MAa(a.sa(),b)}}(a,b)))}d.Lk=function(){return"Stream"};
d.CF=function(a,b){return P6(b.Vn(this))?(this.b()||a.b()?a=gS():(b=(new P).N(this.fa(),a.fa()),a=NI(new OI,b,jb(function(a,b){return function(){return a.sa().CF(b.sa(),(Js(),(new Ks).a()))}}(this,a)))),a):X8(this,a,b)};function UQ(a,b){if(b>=a.x)throw(new X).e(""+b);return a.z.j[b]}
function hC(a,b){var c=a.z.j.length,e=c>>31,f=b>>31;if(f===e?(-2147483648^b)>(-2147483648^c):f>e){f=c<<1;for(c=c>>>31|0|e<<1;;){var e=b>>31,g=f,h=c;if(e===h?(-2147483648^b)>(-2147483648^g):e>h)c=f>>>31|0|c<<1,f<<=1;else break}b=c;if(0===b?-1<(-2147483648^f):0<b)f=2147483647;b=f;b=ia(La(Ja),[b]);Ca(a.z,0,b,0,a.x);a.z=b}}function KF(a,b){for(vZa(fc(),b<=a.x);a.x>b;)a.x=-1+a.x|0,a.z.j[a.x]=null}function Czb(){s$.call(this);this.Pa=this.AO=null}Czb.prototype=new t$;Czb.prototype.constructor=Czb;d=Czb.prototype;
d.jb=function(a){return this.AO.jb(a)};d.R=function(a){return this.AO.jb(a|0)};function Xxb(a,b){var c=new Czb;if(null===a)throw Lb(Mb(),null);c.Pa=a;c.AO=gc(b);s$.prototype.wt.call(c,a);return c}d.X=function(a){this.AO.X(a)};d.kb=function(){return this.AO.kb()};d.Ul=function(){return"C"};d.Ka=function(){return this.AO.Ka()};
d.$classData=q({v$a:0},!1,"scala.collection.SeqViewLike$$anon$1",{v$a:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,I$a:1,Y9a:1,W$a:1});function e$(){s$.call(this);this.eEa=this.hea=null;this.mi=!1;this.Pa=null}e$.prototype=new t$;e$.prototype.constructor=e$;d=e$.prototype;d.jb=function(a){return qyb(this,a)};d.R=function(a){return qyb(this,a|0)};d.X=function(a){this.Fea().X(a);this.q2().X(a)};
d.gH=function(a,b){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.hea=b;s$.prototype.wt.call(this,a);return this};d.Fea=function(){return this.Pa};d.q2=function(){return this.hea};d.kb=function(){return vxb(this)};d.Ul=function(){return"A"};d.Ka=function(){return this.QP().Ka()+this.p2().Ka()|0};d.QP=function(){return this.Pa};d.WEa=function(){return this.Pa};d.p2=function(){this.mi||this.mi||(this.eEa=this.hea.jh(),this.mi=!0);return this.eEa};
d.$classData=q({y$a:0},!1,"scala.collection.SeqViewLike$$anon$2",{y$a:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,G$a:1,W9a:1,U$a:1});function d$(){s$.call(this);this.dAa=this.FO=null;this.mi=!1;this.Pa=null}d$.prototype=new t$;d$.prototype.constructor=d$;d=d$.prototype;d.jb=function(a){return Byb(this,a)};d.R=function(a){return Byb(this,a|0)};d.z2=function(){return this.Pa};
d.GO=function(){this.mi||this.mi||(this.dAa=this.FO.jh(),this.mi=!0);return this.dAa};d.X=function(a){this.E0().X(a);this.Iea().X(a)};d.gH=function(a,b){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.FO=b;s$.prototype.wt.call(this,a);return this};d.E0=function(){return this.FO};d.kb=function(){return Axb(this)};d.Ul=function(){return"A"};d.Ka=function(){return this.GO().Ka()+this.z2().Ka()|0};d.Iea=function(){return this.Pa};d.ZEa=function(){return this.Pa};
d.$classData=q({z$a:0},!1,"scala.collection.SeqViewLike$$anon$3",{z$a:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,K$a:1,$9a:1,Y$a:1});function f$(){s$.call(this);this.Pa=this.tV=null}f$.prototype=new t$;f$.prototype.constructor=f$;d=f$.prototype;d.jb=function(a){return Ayb(this,a)};d.R=function(a){return Ayb(this,a|0)};d.X=function(a){bxb(this,a)};d.wC=function(){return this.tV};
d.aFa=function(){return this.Pa};d.kb=function(){return zxb(this)};d.Ul=function(){return"M"};d.Ka=function(){return this.Pa.Ka()};d.YEa=function(){return this.Pa};d.eo=function(a,b){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.tV=b;s$.prototype.wt.call(this,a);return this};d.dFa=function(){return this.Pa};
d.$classData=q({A$a:0},!1,"scala.collection.SeqViewLike$$anon$4",{A$a:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,J$a:1,Z9a:1,X$a:1});function c$(){s$.call(this);this.Bj=this.tV=null;this.mi=!1;this.Pa=null}c$.prototype=new t$;c$.prototype.constructor=c$;d=c$.prototype;d.jb=function(a){return vyb(this,a)};d.R=function(a){return vyb(this,a|0)};d.WL=function(){return this.Pa};
d.X=function(a){axb(this,a)};d.wC=function(){return this.tV};d.kb=function(){return yxb(this)};d.Ul=function(){return"N"};d.Ka=function(){return wyb(this)};d.XEa=function(){return this.Pa};d.Qaa=function(){this.mi||(this.Bj=zyb(this),this.mi=!0);return this.Bj};d.cFa=function(){return this.Pa};d.eo=function(a,b){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.tV=b;s$.prototype.wt.call(this,a);return this};d.sy=function(){return this.mi?this.Bj:this.Qaa()};
d.$classData=q({B$a:0},!1,"scala.collection.SeqViewLike$$anon$5",{B$a:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,H$a:1,X9a:1,V$a:1});function Yxb(){s$.call(this);this.Bj=this.FC=null;this.mi=!1;this.Pa=null}Yxb.prototype=new t$;Yxb.prototype.constructor=Yxb;d=Yxb.prototype;d.jb=function(a){return tyb(this,a)};d.R=function(a){return tyb(this,a|0)};d.Cea=function(){return this.Pa};
d.X=function(a){$wb(this,a)};d.kb=function(){return xxb(this)};d.Ul=function(){return"F"};d.Ka=function(){return this.sy().j.length};d.Qaa=function(){this.mi||(this.Bj=uyb(this),this.mi=!0);return this.Bj};d.eo=function(a,b){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.FC=b;s$.prototype.wt.call(this,a);return this};d.sy=function(){return this.mi?this.Bj:this.Qaa()};d.Pu=function(){return this.FC};d.RP=function(){return this.Pa};d.Hea=function(){return this.Pa};
d.$classData=q({C$a:0},!1,"scala.collection.SeqViewLike$$anon$6",{C$a:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,MEa:1,FEa:1,REa:1});function Dzb(){s$.call(this);this.Pa=this.Nza=null}Dzb.prototype=new t$;Dzb.prototype.constructor=Dzb;d=Dzb.prototype;d.jb=function(a){return Cyb(this,a)};d.R=function(a){return Cyb(this,a|0)};d.A2=function(){return this.Pa};
d.X=function(a){var b=z$(this);fS(b,a)};d.kb=function(){return z$(this)};d.Ul=function(){return"S"};d.Ka=function(){var a=z$(this);return FI(a)};function Uxb(a,b){var c=new Dzb;if(null===a)throw Lb(Mb(),null);c.Pa=a;c.Nza=b;s$.prototype.wt.call(c,a);return c}d.kK=function(){return this.Nza};
d.$classData=q({D$a:0},!1,"scala.collection.SeqViewLike$$anon$7",{D$a:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,OEa:1,GEa:1,SEa:1});function Zxb(){s$.call(this);this.FC=null;this.oGa=0;this.mi=!1;this.Pa=null}Zxb.prototype=new t$;Zxb.prototype.constructor=Zxb;d=Zxb.prototype;d.jb=function(a){return ryb(this,a)};d.R=function(a){return ryb(this,a|0)};d.y2=function(){return this.Pa};
d.X=function(a){Zwb(this,a)};d.Bea=function(){return this.Pa};d.kb=function(){return wxb(this)};d.Ul=function(){return"D"};d.Ka=function(){return syb(this)};d.Gea=function(){return this.Pa};d.Ts=function(){this.mi||this.mi||(this.oGa=this.Pa.aM(this.FC,0),this.mi=!0);return this.oGa};d.eo=function(a,b){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.FC=b;s$.prototype.wt.call(this,a);return this};d.Pu=function(){return this.FC};
d.$classData=q({E$a:0},!1,"scala.collection.SeqViewLike$$anon$8",{E$a:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,LEa:1,EEa:1,QEa:1});function Wxb(){s$.call(this);this.FC=null;this.pH=0;this.mi=!1;this.Pa=null}Wxb.prototype=new t$;Wxb.prototype.constructor=Wxb;d=Wxb.prototype;d.jb=function(a){return Dyb(this,a)};d.R=function(a){return Dyb(this,a|0)};d.Dea=function(){return this.Pa};
d.mP=function(){this.mi||this.mi||(this.pH=this.Pa.aM(this.FC,0),this.mi=!0);return this.pH};d.X=function(a){cxb(this,a)};d.Jea=function(){return this.Pa};d.kb=function(){return Bxb(this)};d.Ul=function(){return"T"};d.Ka=function(){return this.mP()};d.Eea=function(){return this.Pa};d.eo=function(a,b){if(null===a)throw Lb(Mb(),null);this.Pa=a;this.FC=b;s$.prototype.wt.call(this,a);return this};d.Pu=function(){return this.FC};
d.$classData=q({F$a:0},!1,"scala.collection.SeqViewLike$$anon$9",{F$a:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,PEa:1,HEa:1,TEa:1});function Ezb(){}Ezb.prototype=new izb;Ezb.prototype.constructor=Ezb;d=Ezb.prototype;d.a=function(){return this};d.fa=function(){throw(new PH).e("Empty Map");};d.zfa=function(){throw(new PH).e("Empty Map");};d.sa=function(){return this.zfa()};
d.$classData=q({iab:0},!1,"scala.collection.immutable.HashMap$EmptyHashMap$",{iab:1,JW:1,RA:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,yx:1,Li:1,aj:1,$i:1,zx:1,q:1,n:1,gi:1});var Fzb=void 0;function d8(){Fzb||(Fzb=(new Ezb).a());return Fzb}function J$(){this.Ek=null;this.Af=0;this.B1=this.qI=null}J$.prototype=new izb;J$.prototype.constructor=J$;
function tib(a){null===a.B1&&(a.B1=(new P).N(a.Ek,a.qI));return a.B1}function I$(a,b,c,e,f){a.Ek=b;a.Af=c;a.qI=e;a.B1=f;return a}d=J$.prototype;d.rQ=function(a,b,c,e,f,g){if(b===this.Af&&ub(vb(),a,this.Ek)){if(null===g)return this.qI===e?this:I$(new J$,a,b,e,f);a=g.s$(tib(this),null!==f?f:(new P).N(a,e));return I$(new J$,a.pa(),b,a.Ba(),a)}if(b!==this.Af)return a=I$(new J$,a,b,e,f),Anb(e8(),this.Af,this,b,a,c,2);c=uib();return Gzb(new O$,b,$yb(new E$,c,this.Ek,this.qI).kX(a,e))};
d.HO=function(a,b){return b===this.Af&&ub(vb(),a,this.Ek)?(new A).d(this.qI):w()};d.X=function(a){a.R(tib(this))};d.vW=function(a,b){return b===this.Af&&ub(vb(),a,this.Ek)?(e8(),d8()):this};d.vO=function(a,b){return b!==!!a.R(tib(this))?this:null};d.lb=function(){return 1};d.kb=function(){Uz();var a=[tib(this)],a=(new J).aa(a);return hD(new iD,a,0,a.z.length|0)};d.cO=function(a,b){return b===this.Af&&ub(vb(),a,this.Ek)};
d.$classData=q({lFa:0},!1,"scala.collection.immutable.HashMap$HashMap1",{lFa:1,JW:1,RA:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,yx:1,Li:1,aj:1,$i:1,zx:1,q:1,n:1,gi:1});function O$(){this.Af=0;this.At=null}O$.prototype=new izb;O$.prototype.constructor=O$;d=O$.prototype;
d.rQ=function(a,b,c,e,f,g){if(b===this.Af)return null!==g&&this.At.Ja(a)?Gzb(new O$,b,this.At.LI(g.s$((new P).N(a,this.At.R(a)),f))):Gzb(new O$,b,this.At.kX(a,e));a=I$(new J$,a,b,e,f);return Anb(e8(),this.Af,this,b,a,c,1+this.At.lb()|0)};d.HO=function(a,b){return b===this.Af?this.At.Ta(a):w()};d.X=function(a){var b=Zyb(this.At);fS(Uc(b),a)};
d.vW=function(a,b){if(b===this.Af){a=this.At.CX(a);var c=a.lb();switch(c){case 0:return e8(),d8();case 1:return a=Zyb(a),a=Uc(a).Sa(),I$(new J$,a.pa(),b,a.Ba(),a);default:return c===this.At.lb()?this:Gzb(new O$,b,a)}}else return this};d.vO=function(a,b){a=b?O9(this.At,a):F6(this.At,a,!1);b=a.lb();switch(b){case 0:return null;case 1:a=Zyb(a);a=Uc(a).Sa();if(null===a)throw(new v).d(a);b=a.pa();var c=a.Ba();return I$(new J$,b,this.Af,c,a);default:return b===this.At.lb()?this:Gzb(new O$,this.Af,a)}};
d.kb=function(){var a=Zyb(this.At);return Uc(a)};d.lb=function(){return this.At.lb()};function Gzb(a,b,c){a.Af=b;a.At=c;return a}d.cO=function(a,b){return b===this.Af&&this.At.Ja(a)};d.$classData=q({jab:0},!1,"scala.collection.immutable.HashMap$HashMapCollision1",{jab:1,JW:1,RA:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,yx:1,Li:1,aj:1,$i:1,zx:1,q:1,n:1,gi:1});function c8(){this.hs=0;this.Uk=null;this.x=0}
c8.prototype=new izb;c8.prototype.constructor=c8;d=c8.prototype;
d.rQ=function(a,b,c,e,f,g){var h=1<<(31&(b>>>c|0)),k=dJ(pC(),this.hs&(-1+h|0));if(0!==(this.hs&h)){h=this.Uk.j[k];a=h.rQ(a,b,5+c|0,e,f,g);if(a===h)return this;b=ia(La(a8),[this.Uk.j.length]);Kt(ye(),this.Uk,0,b,0,this.Uk.j.length);b.j[k]=a;return b8(new c8,this.hs,b,this.x+(a.lb()-h.lb()|0)|0)}c=ia(La(a8),[1+this.Uk.j.length|0]);Kt(ye(),this.Uk,0,c,0,k);c.j[k]=I$(new J$,a,b,e,f);Kt(ye(),this.Uk,k,c,1+k|0,this.Uk.j.length-k|0);return b8(new c8,this.hs|h,c,1+this.x|0)};
d.HO=function(a,b,c){var e=31&(b>>>c|0);if(-1===this.hs)return this.Uk.j[e].HO(a,b,5+c|0);e=1<<e;return 0!==(this.hs&e)?(e=dJ(pC(),this.hs&(-1+e|0)),this.Uk.j[e].HO(a,b,5+c|0)):w()};d.X=function(a){for(var b=0;b<this.Uk.j.length;)this.Uk.j[b].X(a),b=1+b|0};
d.vW=function(a,b,c){var e=1<<(31&(b>>>c|0)),f=dJ(pC(),this.hs&(-1+e|0));if(0!==(this.hs&e)){var g=this.Uk.j[f];a=g.vW(a,b,5+c|0);if(a===g)return this;if(0===a.lb()){e^=this.hs;if(0!==e)return a=ia(La(a8),[-1+this.Uk.j.length|0]),Kt(ye(),this.Uk,0,a,0,f),Kt(ye(),this.Uk,1+f|0,a,f,-1+(this.Uk.j.length-f|0)|0),f=this.x-g.lb()|0,1!==a.j.length||Gbb(a.j[0])?b8(new c8,e,a,f):a.j[0];e8();return d8()}return 1!==this.Uk.j.length||Gbb(a)?(e=ia(La(a8),[this.Uk.j.length]),Kt(ye(),this.Uk,0,e,0,this.Uk.j.length),
e.j[f]=a,f=this.x+(a.lb()-g.lb()|0)|0,b8(new c8,this.hs,e,f)):a}return this};d.vO=function(a,b,c,e,f){for(var g=f,h=0,k=0,l=0;l<this.Uk.j.length;){var p=this.Uk.j[l].vO(a,b,5+c|0,e,g);null!==p&&(e.j[g]=p,g=1+g|0,h=h+p.lb()|0,k|=1<<l);l=1+l|0}if(g===f)return null;if(h===this.x)return this;if(g!==(1+f|0)||Gbb(e.j[f])){b=g-f|0;a=ia(La(a8),[b]);Ca(e,f,a,0,b);if(b===this.Uk.j.length)k=this.hs;else{e8();e=0;for(f=this.hs;0!==k;)b=f^f&(-1+f|0),0!==(1&k)&&(e|=b),f&=~b,k=k>>>1|0;k=e}return b8(new c8,k,a,h)}return e.j[f]};
d.kb=function(){var a=new K6;X4.prototype.pAa.call(a,this.Uk);return a};d.lb=function(){return this.x};function b8(a,b,c,e){a.hs=b;a.Uk=c;a.x=e;return a}d.cO=function(a,b,c){var e=31&(b>>>c|0);if(-1===this.hs)return this.Uk.j[e].cO(a,b,5+c|0);e=1<<e;return 0!==(this.hs&e)?(e=dJ(pC(),this.hs&(-1+e|0)),this.Uk.j[e].cO(a,b,5+c|0)):!1};function Gbb(a){return!!(a&&a.$classData&&a.$classData.v.mFa)}
d.$classData=q({mFa:0},!1,"scala.collection.immutable.HashMap$HashTrieMap",{mFa:1,JW:1,RA:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,yx:1,Li:1,aj:1,$i:1,zx:1,q:1,n:1,gi:1});function Hzb(){}Hzb.prototype=new T9;Hzb.prototype.constructor=Hzb;function Izb(){}d=Izb.prototype=Hzb.prototype;d.td=function(){return this};
function ija(a){a:{var b=Rxa(a,2);for(;;){if(G().h(b))break a;if(ft(b))b=b.ve,a=a.sa();else throw(new v).d(b);}}return a}d.jb=function(a){return Pt(this,a)};d.$y=function(){return this};d.Ge=function(a){return Ot(this,a)};d.R=function(a){return Pt(this,a|0)};d.Jl=function(a){return uwb(this,a)};d.Cd=function(a){return twb(this,a)};d.wa=function(){return this};d.Mi=function(){return this};d.Qf=function(){return this};
d.md=function(a,b){if(b===Di().s){if(this===G())return G();b=this;for(var c=(new mk).rs(!1),e=(new Qd).d(null),f=(new Qd).d(null);b!==G();)a.R(b.fa()).td().X(t(new u,function(a,b,c,e){return function(a){b.ta?(a=oz(new pz,a,G()),e.ta.ve=a,e.ta=a):(c.ta=oz(new pz,a,G()),e.ta=c.ta,b.ta=!0)}}(this,c,e,f))),b=b.sa();return c.ta?e.ta:G()}return eA(this,a,b)};d.b0=function(a){return Rxa(this,a)};d.Ck=function(a){a:{var b=this;for(;;){if(b.b()||!a.R(b.fa()))break a;b=b.sa()}}return b};
d.Ng=function(a){return vwb(this,a)};d.Lh=function(){return Di()};d.X=function(a){for(var b=this;!b.b();)a.R(b.fa()),b=b.sa()};d.ae=function(a,b){return wwb(this,a,b)};d.Ar=function(a,b){for(var c=mv(this);!c.b();){var e=c.fa();a=b.zf(e,a);c=c.sa()}return a};d.fm=function(a,b){return xwb(this,a,b)};d.ol=function(a){for(var b=(new $g).a(),c=this;!c.b()&&a.R(c.fa());)vh(b,c.fa()),c=c.sa();return b.wa()};
function Qab(a,b){a.b()?a=b:b.b()||(b=Er((new $g).a(),b),b.b()||(b.rE&&Jzb(b),b.Vq.ve=a,a=b.wa()));return a}d.Js=function(){return mv(this)};d.Tr=function(a,b){return b&&b.$classData&&b.$classData.v.Nea?oz(new pz,a,this):Bvb(this,a,b)};d.kb=function(){return Uc(this)};function Rxa(a,b){for(;!a.b()&&0<b;)a=a.sa(),b=-1+b|0;return a}d.Ib=function(a){return ywb(this,a)};d.om=function(a){for(var b=(new $g).a(),c=this;!c.b()&&a.R(c.fa());)vh(b,c.fa()),c=c.sa();return(new P).N(b.wa(),c)};
d.la=function(a,b){return b===Di().s?Qab(a.td().wa(),this):vp(this,a,b)};d.Ka=function(){return Fp(this)};d.Uo=function(){return this};d.Wj=function(a){a:if(this.b()||0>=a)a=G();else{for(var b=oz(new pz,this.fa(),G()),c=b,e=this.sa(),f=1;;){if(e.b()){a=this;break a}if(f<a)var f=1+f|0,g=oz(new pz,e.fa(),G()),c=c.ve=g,e=e.sa();else break}a=b}return a};d.kd=function(){return this.b()?gS():NI(new OI,this.fa(),jb(function(a){return function(){return a.sa().kd()}}(this)))};
d.ck=function(a){return Rxa(this,a)};d.Ja=function(a){return uh(this,a)};d.Hj=function(){return this};d.ce=function(){return this};d.Xa=function(a){return zwb(this,a|0)};d.y=function(){return bS(xI(),this)};d.jh=function(){return this};d.ka=function(a,b){if(b===Di().s){if(this===G())return G();for(var c=b=oz(new pz,a.R(this.fa()),G()),e=this.sa();e!==G();)var f=oz(new pz,a.R(e.fa()),G()),c=c.ve=f,e=e.sa();return b}return De(this,a,b)};
d.$b=function(a,b){if(b===Di().s){if(this===G())return G();b=this;var c=null;do{var e=a.Za(b.fa(),Di().bW);e!==Di().bW&&(c=oz(new pz,e,G()));b=b.sa();if(b===G())return null===c?G():c}while(null===c);e=c;do{var f=a.Za(b.fa(),Di().bW);f!==Di().bW&&(f=oz(new pz,f,G()),e=e.ve=f);b=b.sa()}while(b!==G());return c}return Fr(this,a,b)};d.Sj=function(a){return Awb(this,a)};function mv(a){for(var b=G();!a.b();){var c=a.fa(),b=oz(new pz,c,b);a=a.sa()}return b}d.Lk=function(){return"List"};
function COa(a){return!!(a&&a.$classData&&a.$classData.v.rFa)}function N$(){ZQ.call(this)}N$.prototype=new pzb;N$.prototype.constructor=N$;N$.prototype.NE=function(){return!0};N$.prototype.Zh=function(a,b,c){ZQ.prototype.Zh.call(this,a,b,c);return this};N$.prototype.Zya=function(a,b,c){return(new N$).Zh(a,b,c)};
N$.prototype.$classData=q({Mab:0},!1,"scala.collection.immutable.Range$Inclusive",{Mab:1,Uea:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,Sea:1,dI:1,Li:1,aj:1,$i:1,kn:1,Ki:1,gi:1,q:1,n:1});function OI(){this.e3=this.MGa=this.L0=null}OI.prototype=new wzb;OI.prototype.constructor=OI;d=OI.prototype;d.fa=function(){return this.L0};function Kzb(a){a.qF()||a.qF()||(a.MGa=gc(a.e3),a.e3=null);return a.MGa}
d.Jl=function(a){return Lzb(a)?Mzb(this,a):uwb(this,a)};d.qF=function(){return null===this.e3};d.b=function(){return!1};function Mzb(a,b){for(;;)if(ub(vb(),a.L0,b.L0))if(a=Kzb(a),Lzb(a))if(b=Kzb(b),Lzb(b)){if(a===b)return!0}else return!1;else return Kzb(b).b();else return!1}d.sa=function(){return Kzb(this)};function NI(a,b,c){a.L0=b;a.e3=c;return a}function Lzb(a){return!!(a&&a.$classData&&a.$classData.v.sFa)}
d.$classData=q({sFa:0},!1,"scala.collection.immutable.Stream$Cons",{sFa:1,Uab:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,Tea:1,dI:1,Li:1,aj:1,$i:1,DW:1,vea:1,wea:1,q:1,n:1});function Nzb(){}Nzb.prototype=new wzb;Nzb.prototype.constructor=Nzb;d=Nzb.prototype;d.a=function(){return this};d.fa=function(){this.M0()};d.qF=function(){return!1};d.b=function(){return!0};
d.M0=function(){throw(new PH).e("head of empty stream");};d.sa=function(){throw(new Gt).e("tail of empty stream");};d.$classData=q({Zab:0},!1,"scala.collection.immutable.Stream$Empty$",{Zab:1,Uab:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,Tea:1,dI:1,Li:1,aj:1,$i:1,DW:1,vea:1,wea:1,q:1,n:1});var Ozb=void 0;function gS(){Ozb||(Ozb=(new Nzb).a());return Ozb}function P$(){s$.call(this)}P$.prototype=new t$;
P$.prototype.constructor=P$;function Q$(){}d=Q$.prototype=P$.prototype;d.yH=function(a){return cyb(this,a)};d.tu=function(a){return(new k$).Wk(this,a)};d.Qf=function(){return this};d.Ck=function(a){return this.Jy(a)};d.Mca=function(a){return(new r$).Wk(this,a)};d.qq=function(a){return this.fn(a)};d.Ej=function(a){return b$(this,a)};d.u=function(){return p9(this)};d.Oca=function(){return(new m$).Du(this)};d.Nca=function(a){return(new q$).Wk(this,a)};d.wP=function(a){return(new l$).hH(this,a)};
d.ol=function(a){return this.Ky(a)};d.Du=function(a){s$.prototype.wt.call(this,a);return this};d.Mo=function(a){return X9(this,a)};d.xb=function(a){return this.fn(a)};d.Js=function(){return(new m$).Du(this)};d.Ri=function(){return Y9(this)};d.I1=function(a){return(new k$).Wk(this,a)};d.Pca=function(a){return(new o$).Wk(this,a)};d.Tp=function(a){return a$(this,a)};d.LCa=function(a){return(new p$).Wk(this,a)};d.tL=function(a){return(new n$).hH(this,a)};d.Ph=function(a){return q9(this,a)};
d.MCa=function(a){return eyb(this,a)};d.Wj=function(a){return Lxb(this,a)};d.Ky=function(a){return(new o$).Wk(this,a)};d.ck=function(a){return Jvb(this,a)};d.VE=function(a){return(new p$).Wk(this,a)};d.sa=function(){return r9(this)};d.qi=function(a,b){return $9(this,a,b)};d.Xa=function(a){return G4(this,a|0)};d.qx=function(a){return dyb(this,a)};d.Qca=function(a){return eyb(this,a)};d.jh=function(){return this};d.JCa=function(a){return(new n$).hH(this,a)};d.fn=function(a){return(new q$).Wk(this,a)};
d.KCa=function(a){return(new k$).Wk(this,a)};d.Jy=function(a){return(new r$).Wk(this,a)};d.uL=function(a){return dyb(this,a)};d.Lk=function(){return"StreamView"};d.UC=function(a){return Z9(this,a)};function Q6(){this.Pq=this.ao=this.nl=0;this.zl=!1;this.cm=0;this.Sw=this.rt=this.Lq=this.Ko=this.Wm=this.dm=null}Q6.prototype=new T9;Q6.prototype.constructor=Q6;d=Q6.prototype;d.td=function(){return this};d.tg=function(){return this.Lq};
function Pzb(a,b,c,e){if(a.zl)if(32>e)a.Nh(qk(a.Al()));else if(1024>e)a.wg(qk(a.ie())),a.ie().j[31&(b>>>5|0)]=a.Al(),a.Nh(tk(a.ie(),31&(c>>>5|0)));else if(32768>e)a.wg(qk(a.ie())),a.di(qk(a.Me())),a.ie().j[31&(b>>>5|0)]=a.Al(),a.Me().j[31&(b>>>10|0)]=a.ie(),a.wg(tk(a.Me(),31&(c>>>10|0))),a.Nh(tk(a.ie(),31&(c>>>5|0)));else if(1048576>e)a.wg(qk(a.ie())),a.di(qk(a.Me())),a.Bl(qk(a.tg())),a.ie().j[31&(b>>>5|0)]=a.Al(),a.Me().j[31&(b>>>10|0)]=a.ie(),a.tg().j[31&(b>>>15|0)]=a.Me(),a.di(tk(a.tg(),31&(c>>>
15|0))),a.wg(tk(a.Me(),31&(c>>>10|0))),a.Nh(tk(a.ie(),31&(c>>>5|0)));else if(33554432>e)a.wg(qk(a.ie())),a.di(qk(a.Me())),a.Bl(qk(a.tg())),a.yr(qk(a.pj())),a.ie().j[31&(b>>>5|0)]=a.Al(),a.Me().j[31&(b>>>10|0)]=a.ie(),a.tg().j[31&(b>>>15|0)]=a.Me(),a.pj().j[31&(b>>>20|0)]=a.tg(),a.Bl(tk(a.pj(),31&(c>>>20|0))),a.di(tk(a.tg(),31&(c>>>15|0))),a.wg(tk(a.Me(),31&(c>>>10|0))),a.Nh(tk(a.ie(),31&(c>>>5|0)));else if(1073741824>e)a.wg(qk(a.ie())),a.di(qk(a.Me())),a.Bl(qk(a.tg())),a.yr(qk(a.pj())),a.xG(qk(a.ks())),
a.ie().j[31&(b>>>5|0)]=a.Al(),a.Me().j[31&(b>>>10|0)]=a.ie(),a.tg().j[31&(b>>>15|0)]=a.Me(),a.pj().j[31&(b>>>20|0)]=a.tg(),a.ks().j[31&(b>>>25|0)]=a.pj(),a.yr(tk(a.ks(),31&(c>>>25|0))),a.Bl(tk(a.pj(),31&(c>>>20|0))),a.di(tk(a.tg(),31&(c>>>15|0))),a.wg(tk(a.Me(),31&(c>>>10|0))),a.Nh(tk(a.ie(),31&(c>>>5|0)));else throw(new rk).a();else{b=-1+a.Fn()|0;switch(b){case 5:a.xG(qk(a.ks()));a.yr(tk(a.ks(),31&(c>>>25|0)));a.Bl(tk(a.pj(),31&(c>>>20|0)));a.di(tk(a.tg(),31&(c>>>15|0)));a.wg(tk(a.Me(),31&(c>>>10|
0)));a.Nh(tk(a.ie(),31&(c>>>5|0)));break;case 4:a.yr(qk(a.pj()));a.Bl(tk(a.pj(),31&(c>>>20|0)));a.di(tk(a.tg(),31&(c>>>15|0)));a.wg(tk(a.Me(),31&(c>>>10|0)));a.Nh(tk(a.ie(),31&(c>>>5|0)));break;case 3:a.Bl(qk(a.tg()));a.di(tk(a.tg(),31&(c>>>15|0)));a.wg(tk(a.Me(),31&(c>>>10|0)));a.Nh(tk(a.ie(),31&(c>>>5|0)));break;case 2:a.di(qk(a.Me()));a.wg(tk(a.Me(),31&(c>>>10|0)));a.Nh(tk(a.ie(),31&(c>>>5|0)));break;case 1:a.wg(qk(a.ie()));a.Nh(tk(a.ie(),31&(c>>>5|0)));break;case 0:a.Nh(qk(a.Al()));break;default:throw(new v).d(b);
}a.zl=!0}}d.fa=function(){if(0===this.Ge(0))throw(new Gt).e("empty.head");return this.jb(0)};d.jb=function(a){var b=a+this.nl|0;if(0<=a&&b<this.ao)a=b;else throw(new X).e(""+a);return aea(this,a,a^this.Pq)};d.$y=function(){return this};d.Ge=function(a){return this.Ka()-a|0};d.Fn=function(){return this.cm};d.R=function(a){return this.jb(a|0)};d.Mi=function(){return this};d.Qf=function(){return this};d.Zh=function(a,b,c){this.nl=a;this.ao=b;this.Pq=c;this.zl=!1;return this};
d.xG=function(a){this.Sw=a};d.hg=function(a,b){return b===(xq(),uv().gc)||b===Oj().s||b===z().s?Qzb(this,a):Ss(this,a,b)};d.Lh=function(){return yq()};d.Al=function(){return this.dm};d.pj=function(){return this.rt};d.di=function(a){this.Ko=a};
function Rzb(a,b,c){var e=-1+a.cm|0;switch(e){case 0:a.dm=sk(a.dm,b,c);break;case 1:a.Wm=sk(a.Wm,b,c);break;case 2:a.Ko=sk(a.Ko,b,c);break;case 3:a.Lq=sk(a.Lq,b,c);break;case 4:a.rt=sk(a.rt,b,c);break;case 5:a.Sw=sk(a.Sw,b,c);break;default:throw(new v).d(e);}}d.vo=function(){return this};
function Qzb(a,b){if(a.ao!==a.nl){var c=-32&a.ao,e=31&a.ao;if(a.ao!==c){var f=(new Q6).Zh(a.nl,1+a.ao|0,c);uk(f,a,a.cm);f.zl=a.zl;Pzb(f,a.Pq,c,a.Pq^c);f.dm.j[e]=b;return f}var g=a.nl&~(-1+(1<<ca(5,-1+a.cm|0))|0),f=a.nl>>>ca(5,-1+a.cm|0)|0;if(0!==g){if(1<a.cm){var c=c-g|0,h=a.Pq-g|0,g=(new Q6).Zh(a.nl-g|0,(1+a.ao|0)-g|0,c);uk(g,a,a.cm);g.zl=a.zl;Rzb(g,f,0);Szb(g,h,c,h^c);g.dm.j[e]=b;return g}e=-32+c|0;c=a.Pq;h=(new Q6).Zh(a.nl-g|0,(1+a.ao|0)-g|0,e);uk(h,a,a.cm);h.zl=a.zl;Rzb(h,f,0);Pzb(h,c,e,c^e);
h.dm.j[32-g|0]=b;return h}f=a.Pq;g=(new Q6).Zh(a.nl,1+a.ao|0,c);uk(g,a,a.cm);g.zl=a.zl;Szb(g,f,c,f^c);g.dm.j[e]=b;return g}a=ia(La(Ja),[32]);a.j[0]=b;b=(new Q6).Zh(0,1,0);b.cm=1;b.dm=a;return b}d.bj=function(){return t9(this)};
function Tzb(a,b){a.cm=b;b=-1+b|0;switch(b){case 0:a.Wm=null;a.Ko=null;a.Lq=null;a.rt=null;a.Sw=null;break;case 1:a.Ko=null;a.Lq=null;a.rt=null;a.Sw=null;break;case 2:a.Lq=null;a.rt=null;a.Sw=null;break;case 3:a.rt=null;a.Sw=null;break;case 4:a.Sw=null;break;case 5:break;default:throw(new v).d(b);}}d.Tr=function(a,b){return b===(xq(),uv().gc)||b===Oj().s||b===z().s?Uzb(this,a):Bvb(this,a,b)};d.kb=function(){return Hxa(this)};d.wg=function(a){this.Wm=a};
function Vzb(a,b){for(;b<a.j.length;)a.j[b]=null,b=1+b|0}d.Ka=function(){return this.ao-this.nl|0};
d.la=function(a,b){if(b===(xq(),uv().gc)||b===Oj().s||b===z().s){if(a.b())return this;a=a.ko()?a.td():a.vo();var c=a.lb();if(2>=c||c<(this.Ka()>>>5|0))return b=(new Qd).d(this),a.X(t(new u,function(a,b){return function(a){b.ta=b.ta.hg(a,(yq(),uv().gc))}}(this,b))),b.ta;if(this.Ka()<(c>>>5|0)&&a&&a.$classData&&a.$classData.v.wFa){b=a;for(a=Jbb(this);a.Qa();)c=a.Sa(),b=b.Tr(c,(yq(),uv().gc));return b}return vp(this,a,b)}return vp(this,a.td(),b)};d.yr=function(a){this.rt=a};d.Uo=function(){return this};
function Szb(a,b,c,e){a.zl?(dea(a,b),bea(a,b,c,e)):(bea(a,b,c,e),a.zl=!0)}d.Ol=function(){return this.Ka()};d.ie=function(){return this.Wm};
d.Wj=function(a){if(0>=a)a=yq().sJ;else if(this.nl<(this.ao-a|0)){var b=this.nl+a|0,c=-32&(-1+b|0),e=Wzb(this.nl^(-1+b|0)),f=this.nl&~(-1+(1<<ca(5,e))|0);a=(new Q6).Zh(this.nl-f|0,b-f|0,c-f|0);uk(a,this,this.cm);a.zl=this.zl;Pzb(a,this.Pq,c,this.Pq^c);Tzb(a,e);b=b-f|0;if(32>=b)Vzb(a.dm,b);else if(1024>=b)Vzb(a.dm,1+(31&(-1+b|0))|0),a.Wm=R$(a.Wm,b>>>5|0);else if(32768>=b)Vzb(a.dm,1+(31&(-1+b|0))|0),a.Wm=R$(a.Wm,1+(31&((-1+b|0)>>>5|0))|0),a.Ko=R$(a.Ko,b>>>10|0);else if(1048576>=b)Vzb(a.dm,1+(31&(-1+
b|0))|0),a.Wm=R$(a.Wm,1+(31&((-1+b|0)>>>5|0))|0),a.Ko=R$(a.Ko,1+(31&((-1+b|0)>>>10|0))|0),a.Lq=R$(a.Lq,b>>>15|0);else if(33554432>=b)Vzb(a.dm,1+(31&(-1+b|0))|0),a.Wm=R$(a.Wm,1+(31&((-1+b|0)>>>5|0))|0),a.Ko=R$(a.Ko,1+(31&((-1+b|0)>>>10|0))|0),a.Lq=R$(a.Lq,1+(31&((-1+b|0)>>>15|0))|0),a.rt=R$(a.rt,b>>>20|0);else if(1073741824>=b)Vzb(a.dm,1+(31&(-1+b|0))|0),a.Wm=R$(a.Wm,1+(31&((-1+b|0)>>>5|0))|0),a.Ko=R$(a.Ko,1+(31&((-1+b|0)>>>10|0))|0),a.Lq=R$(a.Lq,1+(31&((-1+b|0)>>>15|0))|0),a.rt=R$(a.rt,1+(31&((-1+
b|0)>>>20|0))|0),a.Sw=R$(a.Sw,b>>>25|0);else throw(new rk).a();}else a=this;return a};d.Dy=function(){if(0===this.Ge(0))throw(new Gt).e("empty.last");return this.jb(-1+this.Ka()|0)};d.ks=function(){return this.Sw};d.ck=function(a){return Xzb(this,a)};d.Hj=function(){return this};d.sa=function(){if(0===this.Ge(0))throw(new Gt).e("empty.tail");return Xzb(this,1)};d.ce=function(){return this};
function Hxa(a){var b=(new yib).La(a.nl,a.ao);uk(b,a,a.cm);a.zl&&dea(b,a.Pq);1<b.X$&&cea(b,a.nl,a.nl^a.Pq);return b}function Wzb(a){if(32>a)return 1;if(1024>a)return 2;if(32768>a)return 3;if(1048576>a)return 4;if(33554432>a)return 5;if(1073741824>a)return 6;throw(new rk).a();}d.Xa=function(a){return G4(this,a|0)};function Yzb(a,b){for(var c=0;c<b;)a.j[c]=null,c=1+c|0}d.jh=function(){return this};d.y=function(){return bS(xI(),this)};d.Rw=function(a){this.cm=a};d.Me=function(){return this.Ko};
d.Nh=function(a){this.dm=a};
function Xzb(a,b){if(!(0>=b))if(a.nl<(a.ao-b|0)){var c=a.nl+b|0,e=-32&c,f=Wzb(c^(-1+a.ao|0)),g=c&~(-1+(1<<ca(5,f))|0);b=(new Q6).Zh(c-g|0,a.ao-g|0,e-g|0);uk(b,a,a.cm);b.zl=a.zl;Pzb(b,a.Pq,e,a.Pq^e);Tzb(b,f);a=c-g|0;if(32>a)Yzb(b.dm,a);else if(1024>a)Yzb(b.dm,31&a),b.Wm=S$(b.Wm,a>>>5|0);else if(32768>a)Yzb(b.dm,31&a),b.Wm=S$(b.Wm,31&(a>>>5|0)),b.Ko=S$(b.Ko,a>>>10|0);else if(1048576>a)Yzb(b.dm,31&a),b.Wm=S$(b.Wm,31&(a>>>5|0)),b.Ko=S$(b.Ko,31&(a>>>10|0)),b.Lq=S$(b.Lq,a>>>15|0);else if(33554432>a)Yzb(b.dm,
31&a),b.Wm=S$(b.Wm,31&(a>>>5|0)),b.Ko=S$(b.Ko,31&(a>>>10|0)),b.Lq=S$(b.Lq,31&(a>>>15|0)),b.rt=S$(b.rt,a>>>20|0);else if(1073741824>a)Yzb(b.dm,31&a),b.Wm=S$(b.Wm,31&(a>>>5|0)),b.Ko=S$(b.Ko,31&(a>>>10|0)),b.Lq=S$(b.Lq,31&(a>>>15|0)),b.rt=S$(b.rt,31&(a>>>20|0)),b.Sw=S$(b.Sw,a>>>25|0);else throw(new rk).a();a=b}else a=yq().sJ;return a}
function Uzb(a,b){if(a.ao!==a.nl){var c=-32&(-1+a.nl|0),e=31&(-1+a.nl|0);if(a.nl!==(32+c|0)){var f=(new Q6).Zh(-1+a.nl|0,a.ao,c);uk(f,a,a.cm);f.zl=a.zl;Pzb(f,a.Pq,c,a.Pq^c);f.dm.j[e]=b;return f}var g=(1<<ca(5,a.cm))-a.ao|0,f=g&~(-1+(1<<ca(5,-1+a.cm|0))|0),g=g>>>ca(5,-1+a.cm|0)|0;if(0!==f){if(1<a.cm){var c=c+f|0,h=a.Pq+f|0,f=(new Q6).Zh((-1+a.nl|0)+f|0,a.ao+f|0,c);uk(f,a,a.cm);f.zl=a.zl;Rzb(f,0,g);Szb(f,h,c,h^c);f.dm.j[e]=b;return f}e=32+c|0;c=a.Pq;h=(new Q6).Zh((-1+a.nl|0)+f|0,a.ao+f|0,e);uk(h,a,
a.cm);h.zl=a.zl;Rzb(h,0,g);Pzb(h,c,e,c^e);h.dm.j[-1+f|0]=b;return h}if(0>c)return f=(1<<ca(5,1+a.cm|0))-(1<<ca(5,a.cm))|0,g=c+f|0,c=a.Pq+f|0,f=(new Q6).Zh((-1+a.nl|0)+f|0,a.ao+f|0,g),uk(f,a,a.cm),f.zl=a.zl,Szb(f,c,g,c^g),f.dm.j[e]=b,f;f=a.Pq;g=(new Q6).Zh(-1+a.nl|0,a.ao,c);uk(g,a,a.cm);g.zl=a.zl;Szb(g,f,c,f^c);g.dm.j[e]=b;return g}a=ia(La(Ja),[32]);a.j[31]=b;b=(new Q6).Zh(31,32,0);b.cm=1;b.dm=a;return b}function R$(a,b){var c=ia(La(Ja),[a.j.length]);Ca(a,0,c,0,b);return c}
function S$(a,b){var c=ia(La(Ja),[a.j.length]);Ca(a,b,c,b,c.j.length-b|0);return c}d.Bl=function(a){this.Lq=a};d.$classData=q({wFa:0},!1,"scala.collection.immutable.Vector",{wFa:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,Sea:1,dI:1,Li:1,aj:1,$i:1,kn:1,Ki:1,xFa:1,q:1,n:1,gi:1});function TI(){this.ar=null}TI.prototype=new T9;TI.prototype.constructor=TI;d=TI.prototype;d.td=function(){return this};d.fa=function(){return Wj(this)};
d.jb=function(a){a=65535&(this.ar.charCodeAt(a)|0);return Dc(a)};d.$y=function(){return this};d.Ge=function(a){return w9(this,a)};d.Jl=function(a){return x9(this,a)};d.R=function(a){a=65535&(this.ar.charCodeAt(a|0)|0);return Dc(a)};d.Cd=function(a){return y9(this,a)};d.b=function(){return HF(this)};d.Mi=function(){return this};d.Qf=function(){return this};d.nG=function(a){return 65535&(this.ar.charCodeAt(a)|0)};d.Ck=function(a){return z9(this,a)};d.Ng=function(a){return B9(this,a)};d.Lh=function(){return xq()};
d.u=function(){return this.ar};d.Wn=function(a){var b=this.ar;return b===a?0:b<a?-1:1};d.X=function(a){C9(this,a)};d.ae=function(a,b){return K9(this,0,this.ar.length|0,a,b)};d.Ar=function(a,b){return J9(this,this.ar.length|0,a,b)};d.Xn=function(a){var b=this.ar;return b===a?0:b<a?-1:1};d.fm=function(a,b){return D9(this,a,b)};d.ol=function(a){return E9(this,a)};d.lq=function(a,b){return Zzb(this,a,b)};d.Js=function(){return VY(this)};d.bj=function(){return t9(this)};
d.kb=function(){return hD(new iD,this,0,this.ar.length|0)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.lm=function(){return this.ar};d.cg=function(a){return I9(this,a)};d.Ka=function(){return this.ar.length|0};d.Xq=function(){return G6(this)};d.Yq=function(){return Cw(this)};d.Uo=function(){return this};d.Ol=function(){return this.ar.length|0};d.br=function(a){return B2(this,a)};d.Wj=function(a){return Zzb(this,0,a)};d.Dy=function(){return ld(this)};
d.ck=function(a){return Zzb(this,a,this.ar.length|0)};d.sa=function(){return tu(this)};d.Hj=function(){return this};d.ce=function(){return this};d.Xa=function(a){return G4(this,a|0)};d.$j=function(a,b,c){L9(this,a,b,c)};d.jh=function(){return this};d.y=function(){return bS(xI(),this)};d.Zq=function(a,b){return X8(this,a,b)};d.e=function(a){this.ar=a;return this};
function Zzb(a,b,c){b=0>b?0:b;if(c<=b||b>=(a.ar.length|0))return(new TI).e("");c=c>(a.ar.length|0)?a.ar.length|0:c;fc();return(new TI).e((null!==a?a.ar:null).substring(b,c))}d.Ql=function(){return Dt(ta(),this.ar)};d.Sj=function(a){return M9(this,a)};d.Ed=function(){RAa||(RAa=(new RI).a());return RAa.Ed()};
d.$classData=q({wbb:0},!1,"scala.collection.immutable.WrappedString",{wbb:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,Sea:1,dI:1,Li:1,aj:1,$i:1,kn:1,Ki:1,uFa:1,ok:1,vx:1,sh:1});function pz(){this.ve=this.Aj=null}pz.prototype=new Izb;pz.prototype.constructor=pz;d=pz.prototype;d.L=function(){return"::"};d.fa=function(){return this.Aj};d.H=function(){return 2};d.b=function(){return!1};
d.K=function(a){switch(a){case 0:return this.Aj;case 1:return this.ve;default:throw(new X).e(""+a);}};d.sa=function(){return this.ve};function oz(a,b,c){a.Aj=b;a.ve=c;return a}d.M=function(){return Z(this)};function ft(a){return!!(a&&a.$classData&&a.$classData.v.kFa)}
d.$classData=q({kFa:0},!1,"scala.collection.immutable.$colon$colon",{kFa:1,rFa:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,Tea:1,dI:1,Li:1,aj:1,$i:1,DW:1,vea:1,A:1,wea:1,q:1,n:1});function $zb(){}$zb.prototype=new Izb;$zb.prototype.constructor=$zb;d=$zb.prototype;d.L=function(){return"Nil"};d.fa=function(){this.M0()};d.a=function(){return this};d.H=function(){return 0};d.b=function(){return!0};
function uzb(){throw(new Gt).e("tail of empty list");}d.h=function(a){return a&&a.$classData&&a.$classData.v.Nf?a.b():!1};d.K=function(a){throw(new X).e(""+a);};d.M0=function(){throw(new PH).e("head of empty list");};d.sa=function(){return uzb()};d.M=function(){return Z(this)};
d.$classData=q({Kab:0},!1,"scala.collection.immutable.Nil$",{Kab:1,rFa:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,Tea:1,dI:1,Li:1,aj:1,$i:1,DW:1,vea:1,A:1,wea:1,q:1,n:1});var aAb=void 0;function G(){aAb||(aAb=(new $zb).a());return aAb}function m$(){this.ma=!1;this.l=null}m$.prototype=new r;m$.prototype.constructor=m$;d=m$.prototype;d.td=function(){return this};d.Yn=function(a,b){JF(this,a,b)};
d.yH=function(a){return cyb(this,a)};d.fa=function(){return i$(this).Sa()};d.jb=function(a){return h$(this,a)};d.Ge=function(a){return yvb(this,a)};d.pm=function(){return i$(this)};d.Jl=function(a){return W8(this,a)};d.R=function(a){return h$(this,a|0)};d.tu=function(a){return(new k$).Wk(this,a)};d.Cd=function(a){var b=i$(this);return IOa(b,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return!this.kb().Qa()};d.FW=function(){return Cw(this)};d.Mi=function(){return this};
d.QA=function(a){return GH(this,a)};d.Qf=function(){return this};d.md=function(a){return(new k$).Wk(this,a)};d.h=function(a){return F4(this,a)};d.Tn=function(a){return h$(this,a)|0};d.Ck=function(a){return this.Jy(a)};d.ng=function(a){return jk(this,"",a,"")};d.Fk=function(a,b,c){return jk(this,a,b,c)};d.EW=function(){return this.l};d.qq=function(a){return this.fn(a)};d.Ng=function(a){var b=i$(this);return cS(b,a)};d.hg=function(a){return Ixb(this,a)};d.Ej=function(a){return b$(this,a)};d.u=function(){return p9(this)};
d.Lh=function(){return z()};d.X=function(a){var b=i$(this);fS(b,a)};d.ae=function(a,b){return pd(this,a,b)};d.wM=function(){return""+this.l.wM()+this.Ul()};d.Ar=function(a,b){var c=i$(this);return sAa(c,a,b)};d.wP=function(a){return(new l$).hH(this,a)};d.fm=function(a,b){return zvb(this,a,b)};d.Qr=function(a){return Jxb(this,a)};d.pc=function(){return Dwb(this)};d.ol=function(a){return this.Ky(a)};d.Mo=function(a){return X9(this,a)};d.Du=function(a){if(null===a)throw Lb(Mb(),null);this.l=a;return this};
d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};d.xb=function(a){return this.fn(a)};d.Js=function(){return(new m$).Du(this)};d.lb=function(){return this.l.Ka()};d.bj=function(){var a=a2().s;return Ei(this,a)};d.Ri=function(){return Y9(this)};d.Tr=function(a){return Kxb(this,a)};d.rp=function(a){return!!h$(this,a)};d.kb=function(){return i$(this)};d.Ib=function(a){var b=i$(this);return MOa(b,a)};d.om=function(a){return Dvb(this,a)};d.Tp=function(a){return a$(this,a)};d.Ul=function(){return"R"};
d.lm=function(){return jk(this,"","","")};d.tL=function(a){return(new n$).hH(this,a)};d.la=function(a){return Evb(this,a)};d.Ka=function(){return this.l.Ka()};d.cg=function(a){return ixb(this,a)};d.Uo=function(){return this};d.Ph=function(a){return q9(this,a)};d.Ol=function(){return-1};d.jn=function(a){return Fvb(this,a)};d.Ky=function(a){return(new o$).Wk(this,a)};d.Wj=function(a){return Lxb(this,a)};d.kd=function(){return i$(this).kd()};d.Kx=function(){return(new U9).RK(this)};
d.ck=function(a){return Jvb(this,a)};d.VE=function(a){return(new p$).Wk(this,a)};d.Ja=function(a){return Vs(this,a)};d.Hj=function(){return this};d.sa=function(){return r9(this)};d.Vo=function(){return this};d.vm=function(a,b,c,e){return Xda(this,a,b,c,e)};d.qi=function(a,b){return $9(this,a,b)};d.ce=function(){return this};d.rK=function(a){return this.fn(a)};d.Xa=function(a){return G4(this,a|0)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this};
d.rl=function(a,b){return pd(this,a,b)};d.qx=function(a){return dyb(this,a)};d.Za=function(a,b){return HH(this,a,b)};d.$j=function(a,b,c){nub(this,a,b,c)};d.ko=function(){return!0};d.jh=function(){return this};d.y=function(){return bS(xI(),this)};d.Ym=function(a){return Gvb(this,a)};d.fn=function(a){return(new q$).Wk(this,a)};d.$g=function(){for(var a=Ry(new Sy,Xs()),b=i$(this);b.Qa();){var c=b.Sa();Ty(a,c)}return a.gb};d.ka=function(a){return(new p$).Wk(this,a)};
d.aM=function(a,b){return Cvb(this,a,b)};d.Ql=function(a){return II(this,a)};d.Fa=function(){return Tc(this)};d.Jy=function(a){return(new r$).Wk(this,a)};d.$b=function(a){return Hvb(this,a)};d.Sj=function(a){return JI(this,a)};d.Ed=function(){return Ivb(this)};d.uL=function(a){return dyb(this,a)};d.Lk=function(){return"StreamView"};d.UC=function(a){return Z9(this,a)};d.CF=function(a){return eyb(this,a)};
d.$classData=q({fbb:0},!1,"scala.collection.immutable.StreamViewLike$$anon$13",{fbb:1,f:1,ogb:1,NEa:1,Im:1,el:1,fl:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,cl:1,dl:1,gl:1,hl:1,il:1,Hm:1,Jm:1,PC:1,SA:1,TA:1});function bAb(){}bAb.prototype=new Gxb;bAb.prototype.constructor=bAb;function cAb(){}d=cAb.prototype=bAb.prototype;d.td=function(){return this};d.Oe=function(a,b){return qxb(this,a,b)};d.Mi=function(){return this};
d.Hs=function(a){return rxb(this,a)};d.Lh=function(){return aqa()};d.Cga=function(a){return this.Vp().Cf(this).Ih(a)};d.Rl=function(a,b){this.Ih((new P).N(a,b))};d.oHa=function(a){return Oyb(this,a)};d.Ss=function(a,b){sS(this,a,b)};d.YGa=function(a,b){return this.Cga((new P).N(a,b))};d.IO=function(a,b){return sxb(this,a,b)};d.ce=function(){return txb(this)};d.Gh=function(){};d.zga=function(a){return this.Vp().Cf(this).Xt(a)};d.Cf=function(a){return Yi(this,a)};d.Ed=function(){return this.Vp()};
function dAb(){this.na=this.CR=this.LM=this.oB=this.ev=this.jv=this.uv=this.HR=this.GB=this.EB=this.vN=this.lB=this.cv=this.tv=this.pv=this.UM=this.mN=this.KM=this.DN=this.BN=this.JB=this.nB=this.NM=this.uN=this.SR=this.AN=this.DB=this.RM=this.rN=this.SM=this.EN=this.oN=this.yN=this.iB=this.VM=this.ZM=this.kB=this.vv=this.xZ=this.yZ=this.VX=this.YX=this.XX=this.VZ=this.hY=this.dZ=this.WX=this.SX=this.lZ=this.QX=null}dAb.prototype=new r;dAb.prototype.constructor=dAb;
function Asb(){var a=lM();if(null===lM().YX&&null===lM().YX){var b=lM(),c=new NZ;if(null===a)throw Lb(Mb(),null);c.l=a;b.YX=c}return lM().YX}d=dAb.prototype;d.a=function(){eAb=this;this.na=ju().na;return this};d.kZ=function(){null===lM().pv&&this.yS();return lM().pv};d.CS=function(){null===lM().tv&&(lM().tv=(new HZ).Jv(this))};d.wb=function(){null===lM().uv&&this.DS();return lM().uv};d.FR=function(){null===lM().ev&&(lM().ev=(new sK).Br(this))};d.A5=function(){null===lM().iB&&(lM().iB=(new vZ).vp(this))};
d.MM=function(){null===lM().iB&&this.A5();return lM().iB};d.oh=function(){null===lM().vv&&this.ES();return lM().vv};d.S5=function(){null===lM().oB&&(lM().oB=(new uK).Br(this))};function Bsb(){var a=lM();if(null===lM().XX&&null===lM().XX){var b=lM(),c=new MZ;if(null===a)throw Lb(Mb(),null);c.l=a;b.XX=c}return lM().XX}d.ES=function(){null===lM().vv&&(lM().vv=(new AZ).vp(this))};d.DR=function(){null===lM().cv&&(lM().cv=(new EZ).Jv(this))};d.yS=function(){null===lM().pv&&(lM().pv=(new GZ).Jv(this))};
d.ww=function(){null===lM().jv&&this.VR();return lM().jv};d.DS=function(){null===lM().uv&&(lM().uv=(new yK).Br(this))};function ecb(){var a=lM();if(null===lM().VZ&&null===lM().VZ){var b=lM(),c=new X_;if(null===a)throw Lb(Mb(),null);c.l=a;b.VZ=c}return lM().VZ}function z5(){var a=lM();if(null===lM().hY&&null===lM().hY){var b=lM(),c=new TZ;if(null===a)throw Lb(Mb(),null);c.l=a;b.hY=c}return lM().hY}d.sl=function(){null===lM().ev&&this.FR();return lM().ev};
function zsb(){var a=lM();if(null===lM().yZ&&null===lM().yZ){var b=lM(),c=new n_;if(null===a)throw Lb(Mb(),null);c.l=a;b.yZ=c}return lM().yZ}d.xD=function(){null===lM().oB&&this.S5();return lM().oB};function Dsb(){var a=lM();if(null===lM().xZ&&null===lM().xZ){var b=lM(),c=new l_;if(null===a)throw Lb(Mb(),null);c.l=a;b.xZ=c}return lM().xZ}d.LX=function(){null===lM().cv&&this.DR();return lM().cv};
function ysb(){var a=lM();if(null===lM().WX&&null===lM().WX){var b=lM(),c=new LZ;if(null===a)throw Lb(Mb(),null);c.l=a;b.WX=c}return lM().WX}d.CZ=function(){null===lM().tv&&this.CS();return lM().tv};function fFa(){lM();null===lM().VX&&null===lM().VX&&(lM().VX=new KZ);return lM().VX}d.VR=function(){null===lM().jv&&(lM().jv=(new wK).Br(this))};
d.$classData=q({OJa:0},!1,"amf.client.convert.VocabulariesClientConverter$",{OJa:1,f:1,web:1,pha:1,Fb:1,nha:1,wha:1,vha:1,qha:1,Cha:1,zha:1,Dha:1,rha:1,uha:1,sha:1,Hha:1,Fha:1,tha:1,lha:1,Bha:1,xha:1,Eha:1,Gha:1,yha:1,mha:1,Aha:1,geb:1,heb:1,Ldb:1,Odb:1,Ndb:1,xeb:1,Sdb:1,Xdb:1,Mdb:1,Kdb:1,Zdb:1,Gdb:1,veb:1,oha:1});var eAb=void 0;function lM(){eAb||(eAb=(new dAb).a());return eAb}function fAb(){}fAb.prototype=new lxb;fAb.prototype.constructor=fAb;function gAb(){}d=gAb.prototype=fAb.prototype;d.td=function(){return this};
d.Mi=function(){return this};d.b=function(){return 0===this.lb()};d.h=function(a){return o4(this,a)};d.Tn=function(a){return this.Ja(a)|0};d.u=function(){return E6(this)};d.wfa=function(a){var b=this.kb();return cS(b,a)};d.bj=function(){return Bwb(this)};d.rp=function(a){return this.Ja(a)};d.Ss=function(a,b){sS(this,a,b)};d.ce=function(){return yM(this)};d.y=function(){var a=xI();return lAa(a,this,a.gfa)};d.Gh=function(){};d.ka=function(a,b){return De(this,a,b)};
d.p1=function(a){return F6(this,a,!1)};d.Ed=function(){return this.Gv()};d.Cf=function(a){return Yi(this,a)};d.Lk=function(){return"Set"};function hAb(){s$.call(this);this.IGa=this.kDa=null;this.sg=!1;this.Rb=null}hAb.prototype=new Q$;hAb.prototype.constructor=hAb;d=hAb.prototype;d.jb=function(a){return gyb(this,a)};d.R=function(a){return gyb(this,a|0)};function eyb(a,b){var c=new hAb;if(null===a)throw Lb(Mb(),null);c.Rb=a;c.kDa=b;P$.prototype.Du.call(c,a);return c}d.O1=function(){return this.kDa};
d.kb=function(){return pxb(this)};d.Ul=function(){return"Z"};d.Ka=function(){return fyb(this)};d.$Ea=function(){return this.Rb};d.c3=function(){this.sg||this.sg||(this.IGa=this.O1().Mi().ce(),this.sg=!0);return this.IGa};d.B2=function(){return this.Rb};
d.$classData=q({ebb:0},!1,"scala.collection.immutable.StreamViewLike$$anon$10",{ebb:1,hF:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,PC:1,SA:1,TA:1,rgb:1,L$a:1,a$a:1});function iAb(){s$.call(this);this.Rb=this.BO=null}iAb.prototype=new Q$;iAb.prototype.constructor=iAb;d=iAb.prototype;d.jb=function(a){return this.BO.jb(a)};d.R=function(a){return this.BO.jb(a|0)};d.X=function(a){this.BO.X(a)};
d.kb=function(){return this.BO.kb()};d.Ul=function(){return"C"};d.Ka=function(){return this.BO.Ka()};function dyb(a,b){var c=new iAb;if(null===a)throw Lb(Mb(),null);c.Rb=a;c.BO=gc(b);P$.prototype.Du.call(c,a);return c}
d.$classData=q({dbb:0},!1,"scala.collection.immutable.StreamViewLike$$anon$1",{dbb:1,hF:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,PC:1,SA:1,TA:1,lgb:1,I$a:1,Y9a:1,W$a:1});function n$(){s$.call(this);this.fEa=this.iea=null;this.sg=!1;this.Rb=null}n$.prototype=new Q$;n$.prototype.constructor=n$;d=n$.prototype;d.jb=function(a){return qyb(this,a)};
d.R=function(a){return qyb(this,a|0)};d.hH=function(a,b){if(null===a)throw Lb(Mb(),null);this.Rb=a;this.iea=b;P$.prototype.Du.call(this,a);return this};d.X=function(a){this.Fea().X(a);this.q2().X(a)};d.Fea=function(){return this.Rb};d.q2=function(){return this.iea};d.kb=function(){return vxb(this)};d.Ul=function(){return"A"};d.Ka=function(){return this.QP().Ka()+this.p2().Ka()|0};d.QP=function(){return this.Rb};d.WEa=function(){return this.Rb};
d.p2=function(){this.sg||this.sg||(this.fEa=this.iea.jh(),this.sg=!0);return this.fEa};d.$classData=q({gbb:0},!1,"scala.collection.immutable.StreamViewLike$$anon$2",{gbb:1,hF:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,PC:1,SA:1,TA:1,hgb:1,G$a:1,W9a:1,U$a:1});function l$(){s$.call(this);this.eAa=this.Iaa=null;this.sg=!1;this.Rb=null}l$.prototype=new Q$;
l$.prototype.constructor=l$;d=l$.prototype;d.jb=function(a){return Byb(this,a)};d.R=function(a){return Byb(this,a|0)};d.z2=function(){return this.Rb};d.GO=function(){this.sg||this.sg||(this.eAa=this.Iaa.jh(),this.sg=!0);return this.eAa};d.hH=function(a,b){if(null===a)throw Lb(Mb(),null);this.Rb=a;this.Iaa=b;P$.prototype.Du.call(this,a);return this};d.X=function(a){this.E0().X(a);this.Iea().X(a)};d.E0=function(){return this.Iaa};d.kb=function(){return Axb(this)};d.Ul=function(){return"A"};
d.Ka=function(){return this.GO().Ka()+this.z2().Ka()|0};d.Iea=function(){return this.Rb};d.ZEa=function(){return this.Rb};d.$classData=q({hbb:0},!1,"scala.collection.immutable.StreamViewLike$$anon$3",{hbb:1,hF:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,PC:1,SA:1,TA:1,ngb:1,K$a:1,$9a:1,Y$a:1});function p$(){s$.call(this);this.Rb=this.uV=null}p$.prototype=new Q$;
p$.prototype.constructor=p$;d=p$.prototype;d.jb=function(a){return Ayb(this,a)};d.R=function(a){return Ayb(this,a|0)};d.X=function(a){bxb(this,a)};d.wC=function(){return this.uV};d.aFa=function(){return this.Rb};d.Wk=function(a,b){if(null===a)throw Lb(Mb(),null);this.Rb=a;this.uV=b;P$.prototype.Du.call(this,a);return this};d.kb=function(){return zxb(this)};d.Ul=function(){return"M"};d.Ka=function(){return this.Rb.Ka()};d.YEa=function(){return this.Rb};d.dFa=function(){return this.Rb};
d.$classData=q({ibb:0},!1,"scala.collection.immutable.StreamViewLike$$anon$4",{ibb:1,hF:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,PC:1,SA:1,TA:1,mgb:1,J$a:1,Z9a:1,X$a:1});function k$(){s$.call(this);this.cx=this.uV=null;this.sg=!1;this.Rb=null}k$.prototype=new Q$;k$.prototype.constructor=k$;d=k$.prototype;d.jb=function(a){return vyb(this,a)};
d.R=function(a){return vyb(this,a|0)};d.WL=function(){return this.Rb};d.jU=function(){this.sg||(this.cx=zyb(this),this.sg=!0);return this.cx};d.X=function(a){axb(this,a)};d.wC=function(){return this.uV};d.Wk=function(a,b){if(null===a)throw Lb(Mb(),null);this.Rb=a;this.uV=b;P$.prototype.Du.call(this,a);return this};d.kb=function(){return yxb(this)};d.Ul=function(){return"N"};d.Ka=function(){return wyb(this)};d.XEa=function(){return this.Rb};d.cFa=function(){return this.Rb};
d.sy=function(){return this.sg?this.cx:this.jU()};d.$classData=q({jbb:0},!1,"scala.collection.immutable.StreamViewLike$$anon$5",{jbb:1,hF:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,PC:1,SA:1,TA:1,kgb:1,H$a:1,X9a:1,V$a:1});function q$(){s$.call(this);this.cx=this.zp=null;this.sg=!1;this.Rb=null}q$.prototype=new Q$;q$.prototype.constructor=q$;d=q$.prototype;
d.jb=function(a){return tyb(this,a)};d.R=function(a){return tyb(this,a|0)};d.Cea=function(){return this.Rb};d.jU=function(){this.sg||(this.cx=uyb(this),this.sg=!0);return this.cx};d.X=function(a){$wb(this,a)};d.Wk=function(a,b){if(null===a)throw Lb(Mb(),null);this.Rb=a;this.zp=b;P$.prototype.Du.call(this,a);return this};d.kb=function(){return xxb(this)};d.Ul=function(){return"F"};d.Ka=function(){return this.sy().j.length};d.sy=function(){return this.sg?this.cx:this.jU()};d.Pu=function(){return this.zp};
d.RP=function(){return this.Rb};d.Hea=function(){return this.Rb};d.$classData=q({kbb:0},!1,"scala.collection.immutable.StreamViewLike$$anon$6",{kbb:1,hF:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,PC:1,SA:1,TA:1,jgb:1,MEa:1,FEa:1,REa:1});function jAb(){s$.call(this);this.Rb=this.pO=null}jAb.prototype=new Q$;jAb.prototype.constructor=jAb;d=jAb.prototype;
d.jb=function(a){return Cyb(this,a)};d.R=function(a){return Cyb(this,a|0)};d.A2=function(){return this.Rb};d.X=function(a){var b=z$(this);fS(b,a)};d.kb=function(){return z$(this)};d.Ul=function(){return"S"};d.Ka=function(){var a=z$(this);return FI(a)};function cyb(a,b){var c=new jAb;if(null===a)throw Lb(Mb(),null);c.Rb=a;c.pO=b;P$.prototype.Du.call(c,a);return c}d.kK=function(){return this.pO};
d.$classData=q({lbb:0},!1,"scala.collection.immutable.StreamViewLike$$anon$7",{lbb:1,hF:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,PC:1,SA:1,TA:1,pgb:1,OEa:1,GEa:1,SEa:1});function r$(){s$.call(this);this.zp=null;this.fM=0;this.sg=!1;this.Rb=null}r$.prototype=new Q$;r$.prototype.constructor=r$;d=r$.prototype;d.jb=function(a){return ryb(this,a)};
d.R=function(a){return ryb(this,a|0)};d.y2=function(){return this.Rb};d.X=function(a){Zwb(this,a)};d.Bea=function(){return this.Rb};d.Wk=function(a,b){if(null===a)throw Lb(Mb(),null);this.Rb=a;this.zp=b;P$.prototype.Du.call(this,a);return this};d.kb=function(){return wxb(this)};d.Ul=function(){return"D"};d.Ka=function(){return syb(this)};d.Gea=function(){return this.Rb};d.Ts=function(){return this.sg?this.fM:this.rfa()};d.Pu=function(){return this.zp};
d.rfa=function(){this.sg||(this.fM=Cvb(this.Rb,this.zp,0),this.sg=!0);return this.fM};d.$classData=q({mbb:0},!1,"scala.collection.immutable.StreamViewLike$$anon$8",{mbb:1,hF:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,PC:1,SA:1,TA:1,igb:1,LEa:1,EEa:1,QEa:1});function o$(){s$.call(this);this.zp=null;this.aL=0;this.sg=!1;this.Rb=null}o$.prototype=new Q$;o$.prototype.constructor=o$;
d=o$.prototype;d.jb=function(a){return Dyb(this,a)};d.R=function(a){return Dyb(this,a|0)};d.Dea=function(){return this.Rb};d.mP=function(){return this.sg?this.aL:this.qca()};d.X=function(a){cxb(this,a)};d.Jea=function(){return this.Rb};d.Wk=function(a,b){if(null===a)throw Lb(Mb(),null);this.Rb=a;this.zp=b;P$.prototype.Du.call(this,a);return this};d.kb=function(){return Bxb(this)};d.Ul=function(){return"T"};d.Ka=function(){return this.mP()};d.Eea=function(){return this.Rb};
d.qca=function(){this.sg||(this.aL=Cvb(this.Rb,this.zp,0),this.sg=!0);return this.aL};d.Pu=function(){return this.zp};d.$classData=q({nbb:0},!1,"scala.collection.immutable.StreamViewLike$$anon$9",{nbb:1,hF:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,PC:1,SA:1,TA:1,qgb:1,PEa:1,HEa:1,TEa:1});function T$(){}T$.prototype=new Nyb;T$.prototype.constructor=T$;function kAb(){}
kAb.prototype=T$.prototype;T$.prototype.RJ=function(){return mxb(this)};T$.prototype.h5=function(a){return nxb(this,a)};T$.prototype.Cf=function(a){return Yi(this,a)};function ar(){this.tf=null;this.eM=0}ar.prototype=new cAb;ar.prototype.constructor=ar;d=ar.prototype;d.Kn=function(){return this};d.a=function(){this.tf=G();this.eM=0;return this};d.Xt=function(a){return lAb(this,a)};d.tk=function(a){var b=(new ar).a();return Yi(b,this).Xt(a)};d.Qf=function(){return this};
d.uk=function(a){return $q(this,a)};d.Bo=function(a){var b=(new ar).a();return Yi(b,this).Xt(a)};d.Vp=function(){return(new ar).a()};function $q(a,b){a.tf=mAb(a,b.pa(),a.tf);a.tf=oz(new pz,b,a.tf);a.eM=1+a.eM|0;return a}d.lb=function(){return this.eM};d.Wy=function(){return this};d.lc=function(){return this};d.kb=function(){return Uc(this.tf)};d.i0=function(){return(new ar).a()};
function mAb(a,b,c){var e=G();for(;;){if(c.b())return e;if(ub(vb(),c.fa().pa(),b))return a.eM=-1+a.eM|0,a=e,Qab(c.sa(),a);var f=c.sa();c=c.fa();e=oz(new pz,c,e);c=f}}d.Ph=function(a){return O9(this,a)};d.Ta=function(a){a:{for(var b=this.tf;!b.b();){var c=b.fa();if(ub(vb(),c.pa(),a)){a=(new A).d(b.fa());break a}b=b.sa()}a=w()}if(a.b())return w();a=a.c();return(new A).d(a.Ba())};d.Ih=function(a){return $q(this,a)};d.Ic=function(a){return $q(this,a)};d.jh=function(){return txb(this)};
d.lD=function(a){return lAb(this,a)};d.PJ=function(){this.tf=G();this.eM=0};function lAb(a,b){a.tf=mAb(a,b,a.tf);return a}d.Zt=function(a){var b=(new ar).a();return Yi(b,this).Ih(a)};d.$classData=q({xcb:0},!1,"scala.collection.mutable.ListMap",{xcb:1,D2:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,LW:1,Ml:1,Nl:1,Il:1,MW:1,ll:1,kl:1,jl:1,OC:1,Kl:1,bl:1,Dk:1,q:1,n:1});
function D$(){Rxb.call(this);this.O_=this.Be=null}D$.prototype=new Sxb;D$.prototype.constructor=D$;d=D$.prototype;d.td=function(){return this};d.Kn=function(){return this};function nAb(a,b,c){return Pyb(new D$,a.Be.YGa(b,c),a.O_)}d.Oe=function(a,b){return qxb(this,a,b)};d.Xt=function(a){this.Be.Xt(a);return this};d.tk=function(a){return oAb(this,a)};d.Mi=function(){return this};d.Qf=function(){return this};d.Hs=function(a){return rxb(this,a)};d.uk=function(a){return pAb(this,a)};
function oAb(a,b){return Pyb(new D$,a.Be.zga(b),a.O_)}d.Lh=function(){return aqa()};d.Cga=function(a){return nAb(this,a.pa(),a.Ba())};d.Bo=function(a){return oAb(this,a)};d.Vp=function(){return qAb(this)};d.Rl=function(a,b){this.Ih((new P).N(a,b))};d.Wy=function(){return this};d.lc=function(){return this};d.oHa=function(a){return Pyb(new D$,this.Be,t(new u,function(a,c){return function(){return c}}(this,a)))};d.i0=function(){return qAb(this)};d.Ss=function(a,b){sS(this,a,b)};
d.Ph=function(a){return O9(this,a)};d.YGa=function(a,b){return nAb(this,a,b)};d.IO=function(a,b){return sxb(this,a,b)};d.Ih=function(a){return pAb(this,a)};d.ce=function(){return txb(this)};function Pyb(a,b,c){a.Be=b;a.O_=c;Rxb.prototype.A6a.call(a,b,c);return a}d.Ic=function(a){return pAb(this,a)};function qAb(a){return Pyb(new D$,a.Be.i0(),a.O_)}d.Gh=function(){};d.jh=function(){return txb(this)};d.lD=function(a){this.Be.Xt(a);return this};function pAb(a,b){a.Be.Ih(b);return a}
d.PJ=function(){for(var a=this.Tq();a.Qa();){var b=a.Sa();this.Xt(b)}};d.zga=function(a){return oAb(this,a)};d.Zt=function(a){return nAb(this,a.pa(),a.Ba())};d.Ed=function(){return qAb(this)};d.Cf=function(a){return Yi(this,a)};
d.$classData=q({Acb:0},!1,"scala.collection.mutable.Map$WithDefault",{Acb:1,agb:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,q:1,n:1,LW:1,Ml:1,Nl:1,Il:1,MW:1,ll:1,kl:1,jl:1,OC:1,Kl:1,bl:1,Dk:1});function rAb(a,b,c){HAa();var e=a.Ka();b=FAa(0,b,c<e?c:e);return sAb(a,b)}function tAb(a,b){return(new P).N((new U$).go(a,b),(new V$).go(a,b))}function uAb(a,b){return(new P).N(vAb(a,b),wAb(a,b))}
function xAb(a){if(HF(a))return a.eFa();var b=a.Ka();return rAb(a,1,b)}function wAb(a,b){b=FAa(HAa(),b,a.Ka());return sAb(a,b)}function vAb(a,b){HAa();var c=a.Ka();b=FAa(0,0,b<c?b:c);return sAb(a,b)}function yAb(){}yAb.prototype=new Nyb;yAb.prototype.constructor=yAb;function W$(){}d=W$.prototype=yAb.prototype;d.td=function(){return this};d.fa=function(){return Wj(this)};d.$y=function(){return this};d.Ge=function(a){return w9(this,a)};d.Jl=function(a){return x9(this,a)};
d.Cd=function(a){return y9(this,a)};d.b=function(){return HF(this)};d.Mi=function(){return this};d.Qf=function(){return this};d.Ck=function(a){return z9(this,a)};d.Ng=function(a){return B9(this,a)};d.Lh=function(){return Enb()};d.X=function(a){C9(this,a)};d.ae=function(a,b){var c=this.Ka();return K9(this,0,c,a,b)};d.Ar=function(a,b){var c=this.Ka();return J9(this,c,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.ol=function(a){return E9(this,a)};d.lq=function(a,b){return F9(this,a,b)};d.Js=function(){return VY(this)};
d.bj=function(){return t9(this)};d.kb=function(){return hD(new iD,this,0,this.Ka())};d.bM=function(){return this};d.om=function(a){return H9(this,a)};d.Ib=function(a){return G9(this,a)};d.cg=function(a){return I9(this,a)};d.Yq=function(){return Cw(this)};d.Xq=function(){return G6(this)};d.Uo=function(){return this};d.Ol=function(){return this.Ka()};d.br=function(a){return B2(this,a)};d.Wj=function(a){return F9(this,0,a)};d.Dy=function(){return ld(this)};d.Kx=function(){return X$(this)};
d.ck=function(a){var b=this.Ka();return F9(this,a,b)};d.Hj=function(){return this};d.sa=function(){return tu(this)};d.Xa=function(a){return G4(this,a|0)};d.$j=function(a,b,c){L9(this,a,b,c)};d.jh=function(){return this};d.Zq=function(a,b){return X8(this,a,b)};d.Ql=function(a){var b=a.Dp();return Jt(ka(this.z))===b?this.z:II(this,a)};d.Sj=function(a){return M9(this,a)};d.Ed=function(){return(new Qbb).k1(this.WB())};d.Lk=function(){return"WrappedArray"};function uub(){this.uC=0;this.YS=null}
uub.prototype=new Nyb;uub.prototype.constructor=uub;d=uub.prototype;d.td=function(){return this};d.fa=function(){return Wj(this)};d.jb=function(a){if(a>=this.uC)throw(new X).e(""+a);return this.YS.j[a]};d.$y=function(){return this};d.Ge=function(a){return w9(this,a)};d.Jl=function(a){return x9(this,a)};d.R=function(a){return this.jb(a|0)};d.Cd=function(a){return y9(this,a)};d.b=function(){return HF(this)};d.Mi=function(){return this};d.Qf=function(){return this};d.Ck=function(a){return z9(this,a)};
d.Ng=function(a){return B9(this,a)};d.Lh=function(){return qOa()};d.X=function(a){for(var b=0;b<this.uC;)a.R(this.YS.j[b]),b=1+b|0};d.ae=function(a,b){return K9(this,0,this.uC,a,b)};d.Ar=function(a,b){return J9(this,this.uC,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.ol=function(a){return E9(this,a)};d.lq=function(a,b){return F9(this,a,b)};d.Js=function(){return VY(this)};d.bj=function(){return t9(this)};d.kb=function(){return hD(new iD,this,0,this.uC)};d.bM=function(){return this};
d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.$d=function(a){this.uC=a;this.YS=ia(La(Ja),[a]);return this};d.Ka=function(){return this.uC};d.cg=function(a){return I9(this,a)};d.Xq=function(){return G6(this)};d.Yq=function(){return Cw(this)};d.Uo=function(){return this};d.Ol=function(){return this.uC};d.br=function(a){return B2(this,a)};d.Wj=function(a){return F9(this,0,a)};d.Kx=function(){return X$(this)};d.Dy=function(){return ld(this)};
d.ck=function(a){return F9(this,a,this.uC)};d.Hj=function(){return this};d.sa=function(){return tu(this)};d.Xa=function(a){return G4(this,a|0)};d.$j=function(a,b,c){var e=DI(W(),a)-b|0;c=c<e?c:e;e=this.uC;c=c<e?c:e;0<c&&Kt(ye(),this.YS,0,a,b,c)};d.jh=function(){return this};d.y=function(){return bS(xI(),this)};d.Zq=function(a,b){return X8(this,a,b)};d.Sj=function(a){return M9(this,a)};
d.$classData=q({Mbb:0},!1,"scala.collection.mutable.ArraySeq",{Mbb:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,$q:1,kn:1,Ki:1,ml:1,Ll:1,ok:1,gi:1,q:1,n:1});function T6(){this.Cy=this.ut=null;this.Ox=0;this.qe=null;this.gw=this.Pl=0;this.nn=null;this.Ax=0}T6.prototype=new cAb;T6.prototype.constructor=T6;d=T6.prototype;d.Kn=function(){return this};
d.Oe=function(a,b){a=Vu(this,a,b);if(null===a)return w();var c=a.t;a.t=b;return(new A).d(c)};d.a=function(){oBa(this);this.Cy=this.ut=null;return this};d.Xt=function(a){this.Hs(a);return this};d.K2=function(a){this.Ax=a};d.tk=function(a){var b=(new T6).a();return Yi(b,this).Xt(a)};d.Qf=function(){return this};d.Hs=function(a){a=qBa(this,a);if(null===a)return w();null===a.ls?this.ut=a.mo:a.ls.mo=a.mo;null===a.mo?this.Cy=a.ls:a.mo.ls=a.ls;a.ls=null;a.mo=null;return(new A).d(a.t)};
d.uk=function(a){return zAb(this,a)};d.X=function(a){for(var b=this.ut;null!==b;)a.R((new P).N(b.oa,b.t)),b=b.mo};d.Tq=function(){return(new e5).TK(this)};d.Bo=function(a){var b=(new T6).a();return Yi(b,this).Xt(a)};d.Vp=function(){return(new T6).a()};d.lb=function(){return this.Pl};d.Wy=function(){return this};d.lc=function(){return this};d.kb=function(){return(new Pbb).TK(this)};d.i0=function(){return(new T6).a()};d.gf=function(){return(new f5).TK(this)};d.Ph=function(a){return O9(this,a)};
d.O$=function(a,b){a=(new C2a).N(a,b);null===this.ut?this.ut=a:(this.Cy.mo=a,a.ls=this.Cy);return this.Cy=a};d.Ta=function(a){a=tBa(this,a);return null===a?w():(new A).d(a.t)};d.Ih=function(a){return zAb(this,a)};d.QW=function(a){this.nn=a};d.YW=function(a){this.qe=a};d.$U=function(){return 16};d.qC=function(){return(new g$).TK(this)};d.Ic=function(a){return zAb(this,a)};d.jh=function(){return txb(this)};d.lD=function(a){this.Hs(a);return this};d.PJ=function(){lBa(this);this.Cy=this.ut=null};
function zAb(a,b){a.Oe(b.pa(),b.Ba());return a}d.FX=function(a){this.Ox=a};d.aX=function(a){this.gw=a};d.Zt=function(a){var b=(new T6).a();return Yi(b,this).Ih(a)};d.jI=function(a){this.Pl=a};d.$classData=q({lcb:0},!1,"scala.collection.mutable.LinkedHashMap",{lcb:1,D2:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,LW:1,Ml:1,Nl:1,Il:1,MW:1,ll:1,kl:1,jl:1,OC:1,Kl:1,bl:1,Dk:1,F2:1,G2:1,q:1,n:1});
function ct(){this.Ox=0;this.qe=null;this.gw=this.Pl=0;this.nn=null;this.Ax=0}ct.prototype=new cAb;ct.prototype.constructor=ct;function AAb(){}d=AAb.prototype=ct.prototype;d.td=function(){return this};d.Kn=function(){return this};d.Oe=function(a,b){a=Vu(this,a,b);if(null===a)return w();var c=a.t;a.t=b;return(new A).d(c)};d.a=function(){ct.prototype.Qba.call(this,null);return this};d.Xt=function(a){qBa(this,a);return this};d.K2=function(a){this.Ax=a};
d.R=function(a){var b=tBa(this,a);return null===b?this.HX(a):b.t};d.tk=function(a){var b=(new ct).a();return Yi(b,this).Xt(a)};d.Qf=function(){return this};d.Hs=function(a){a=qBa(this,a);return null!==a?(new A).d(a.t):w()};function Gs(a,b){var c=b.pa(),e=b.Ba(),c=Vu(a,c,e);null!==c&&(c.t=b.Ba());return a}d.uk=function(a){return Gs(this,a)};d.X=function(a){for(var b=this.qe,c=dC(this),e=b.j[c];null!==e;){var f=e.Sa();a.R((new P).N(e.oa,e.t));for(e=f;null===e&&0<c;)c=-1+c|0,e=b.j[c]}};d.Tq=function(){return(new a5).fo(this)};
d.Bo=function(a){var b=(new ct).a();return Yi(b,this).Xt(a)};d.Vp=function(){return(new ct).a()};d.Rl=function(a,b){this.Oe(a,b)};d.lb=function(){return this.Pl};d.Wy=function(){return this};d.lc=function(){return this};d.Rr=function(){return(new up).fo(this)};d.kb=function(){return(new Sz).Cu(Kbb(this),t(new u,function(){return function(a){return(new P).N(a.oa,a.t)}}(this)))};d.i0=function(){return(new ct).a()};d.gf=function(){return(new b5).fo(this)};
d.Qba=function(a){oBa(this);null!==a&&(this.FX(a.Y7a()),this.YW(a.qe),this.jI(a.Pl),this.aX(a.gw),this.K2(a.Ax),this.QW(a.nn));return this};function BAb(a,b){return null!==b?(b=b.oa,!ub(vb(),b,a)):!1}d.Ph=function(a){return O9(this,a)};
d.IO=function(a,b){var c=yI(zI(),a),e=hJ(this,c),f;for(f=this.qe.j[e];BAb(a,f);)f=f.Ly;if(null!==f)return f.t;f=this.qe;b=gc(b);c=f===this.qe?e:hJ(this,c);a=(new d2).N(a,b);this.Pl>=this.gw?(c=a.Gu(),c=yI(zI(),c),c=hJ(this,c),sBa(this,a,c)):(a.Ly=this.qe.j[c],this.qe.j[c]=a,this.Pl=1+this.Pl|0,uBa(this,c));return a.t};d.O$=function(a,b){return(new d2).N(a,b)};d.Ta=function(a){a=tBa(this,a);return null===a?w():(new A).d(a.t)};d.Ih=function(a){return Gs(this,a)};d.QW=function(a){this.nn=a};
d.Ja=function(a){return null!==tBa(this,a)};d.YW=function(a){this.qe=a};d.$U=function(){return 16};d.qC=function(){return(new at).fo(this)};d.Ic=function(a){return Gs(this,a)};d.jh=function(){return txb(this)};d.lD=function(a){qBa(this,a);return this};d.PJ=function(){lBa(this)};d.FX=function(a){this.Ox=a};d.aX=function(a){this.gw=a};d.Zt=function(a){var b=(new ct).a();return Yi(b,this).Ih(a)};d.jI=function(a){this.Pl=a};
d.$classData=q({Vea:0},!1,"scala.collection.mutable.HashMap",{Vea:1,D2:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,LW:1,Ml:1,Nl:1,Il:1,MW:1,ll:1,kl:1,jl:1,OC:1,Kl:1,bl:1,Dk:1,F2:1,G2:1,gi:1,q:1,n:1});function CAb(){this.ma=!1;this.l=null}CAb.prototype=new r;CAb.prototype.constructor=CAb;d=CAb.prototype;d.td=function(){return this};d.Yn=function(a,b){JF(this,a,b)};d.yH=function(a){return sAb(this,a)};d.fa=function(){return Wj(this)};
d.jb=function(a){return this.l.jb(a)};d.Ge=function(a){return w9(this,a)};d.pm=function(){return this.kb()};d.Jl=function(a){return x9(this,a)};d.R=function(a){return this.jb(a|0)};d.tu=function(a){return(new c$).eo(this,a)};d.Cd=function(a){return y9(this,a)};d.wa=function(){var a=Di().s;return Ei(this,a)};d.b=function(){return HF(this)};d.FW=function(){return tu(this)};d.Mi=function(){return this};d.QA=function(a){return GH(this,a)};d.Qf=function(){return this};
d.md=function(a){return(new c$).eo(this,a)};d.h=function(a){return F4(this,a)};d.Tn=function(a){return this.jb(a)|0};d.Ck=function(a){return(new V$).go(this,a)};d.ng=function(a){return jk(this,"",a,"")};d.Fk=function(a,b,c){return jk(this,a,b,c)};d.qq=function(a){return this.fn(a)};d.Ng=function(a){return B9(this,a)};d.hg=function(a){return Ixb(this,a)};d.Ej=function(a){return b$(this,a)};d.u=function(){return p9(this)};d.Lh=function(){return Enb()};d.X=function(a){C9(this,a)};
d.ae=function(a,b){var c=this.Ka();return K9(this,0,c,a,b)};d.wM=function(){return""};d.Ar=function(a,b){var c=this.Ka();return J9(this,c,a,b)};d.wP=function(a){return(new d$).gH(this,a)};d.fm=function(a,b){return D9(this,a,b)};d.Qr=function(a){return Jxb(this,a)};d.pc=function(){return Ps(this)};d.ol=function(a){return(new U$).go(this,a)};d.lq=function(a,b){return rAb(this,a,b)};d.Mo=function(a){return X9(this,a)};d.vo=function(){yq();var a=uv().gc;return Ei(this,a)};
d.xb=function(a){return(new Y$).go(this,a)};d.Js=function(){return(new Z$).mC(this)};d.lb=function(){return this.Ka()};d.bj=function(){return t9(this)};d.eFa=function(){return r9(this)};d.Ri=function(){return Y9(this)};d.Tr=function(a){return Kxb(this,a)};d.rp=function(a){return!!this.jb(a)};d.kb=function(){return this.l.kb()};d.Ib=function(a){return G9(this,a)};d.om=function(a){return tAb(this,a)};d.Tp=function(a){return a$(this,a)};
function X$(a){var b=new CAb;if(null===a)throw Lb(Mb(),null);b.l=a;return b}d.lm=function(){return jk(this,"","","")};d.tL=function(a){return(new e$).gH(this,a)};d.la=function(a){return Evb(this,a)};d.cg=function(a){return ixb(this,a)};d.Ka=function(){return this.l.Ka()};d.Yq=function(){return Cw(this)};d.Xq=function(){return G6(this)};d.Uo=function(){return this};d.Ph=function(a){return q9(this,a)};d.Ol=function(){return this.Ka()};d.jn=function(a){return Fvb(this,a)};
d.br=function(a){return uAb(this,a)};d.Ky=function(a){return(new U$).go(this,a)};d.Wj=function(a){return vAb(this,a)};d.kd=function(){return this.kb().kd()};d.Kx=function(){return X$(this)};d.Dy=function(){return ld(this)};d.ck=function(a){return wAb(this,a)};d.VE=function(a){return(new f$).eo(this,a)};d.Ja=function(a){return Vs(this,a)};d.Hj=function(){return this};d.sa=function(){return xAb(this)};d.vm=function(a,b,c,e){return Xda(this,a,b,c,e)};d.Vo=function(){return this};
d.qi=function(a,b){return $9(this,a,b)};d.ce=function(){return this};d.rK=function(a){return(new Y$).go(this,a)};d.Xa=function(a){return G4(this,a|0)};d.pg=function(){var a=Pf(),a=Qf(a);return Ei(this,a)};d.Ji=function(){return this};d.rl=function(a,b){var c=this.Ka();return K9(this,0,c,a,b)};d.qx=function(a){return Xxb(this,a)};d.Za=function(a,b){return HH(this,a,b)};d.$j=function(a,b,c){L9(this,a,b,c)};d.ko=function(){return!0};d.jh=function(){return this};d.y=function(){return bS(xI(),this)};
d.Ym=function(a){return Gvb(this,a)};d.fn=function(a){return(new Y$).go(this,a)};d.Zq=function(a,b){return X8(this,a,b)};d.$g=function(){for(var a=Ry(new Sy,Xs()),b=0,c=this.Ka();b<c;){var e=this.jb(b);Ty(a,e);b=1+b|0}return a.gb};d.ka=function(a){return(new f$).eo(this,a)};d.aM=function(a,b){return A9(this,a,b)};d.Ql=function(a){return II(this,a)};d.Fa=function(){return Tc(this)};d.Jy=function(a){return(new V$).go(this,a)};d.$b=function(a){return Hvb(this,a)};d.Sj=function(a){return M9(this,a)};
d.Ed=function(){return Ivb(this)};d.uL=function(a){return Xxb(this,a)};d.Lk=function(){return"SeqView"};d.UC=function(a){return Z9(this,a)};d.CF=function(a){return $xb(this,a)};d.$classData=q({dcb:0},!1,"scala.collection.mutable.IndexedSeqLike$$anon$1",{dcb:1,f:1,KW:1,$q:1,jq:1,Ml:1,Nl:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,Il:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,kq:1,Kl:1,bl:1,Dk:1,kn:1,Ki:1,ml:1,Ll:1,ok:1,el:1,fl:1,cl:1,dl:1,gl:1,hl:1,il:1});
function dv(){this.Cy=this.ut=null;this.Ox=0;this.qe=null;this.gw=this.Pl=0;this.nn=null;this.Ax=0}dv.prototype=new gAb;dv.prototype.constructor=dv;d=dv.prototype;d.BX=function(a){this.uW(a);return this};d.Kn=function(){return this};d.a=function(){oBa(this);this.Cy=this.ut=null;return this};d.K2=function(a){this.Ax=a};d.R=function(a){return this.Ja(a)};d.tk=function(a){return uxb(this).BX(a)};d.Qf=function(){return this};d.uk=function(a){return HFa(this,a)};d.Lh=function(){return Mka()};
d.X=function(a){for(var b=this.ut;null!==b;)a.R(b.oa),b=b.mo};function HFa(a,b){a.Pz(b);return a}d.i5=function(a){var b=uxb(this);a=a.td();return Zda(b,a)};d.Om=function(a){return HFa(this,a)};d.lb=function(){return this.Pl};d.lc=function(){return this};d.kb=function(){var a=new g5;a.Rk=this.ut;return a};d.Zs=function(a){return uxb(this).BX(a)};d.Gv=function(){return(new dv).a()};d.O$=function(a){a=(new D2a).d(a);null===this.ut?this.ut=a:(this.Cy.mo=a,a.ls=this.Cy);return this.Cy=a};
d.QW=function(a){this.nn=a};d.Ja=function(a){return null!==tBa(this,a)};d.YW=function(a){this.qe=a};d.$U=function(){return 16};d.Ic=function(a){return HFa(this,a)};d.jh=function(){return yM(this)};d.lD=function(a){this.uW(a);return this};d.uW=function(a){a=qBa(this,a);return null!==a?(null===a.ls?this.ut=a.mo:a.ls.mo=a.mo,null===a.mo?this.Cy=a.ls:a.mo.ls=a.ls,a.ls=null,a.mo=null,!0):!1};d.Pz=function(a){return null===Vu(this,a,null)};d.Ij=function(a){return uxb(this).Om(a)};
d.vk=function(a){var b=uxb(this);a=a.td();return Yi(b,a)};d.FX=function(a){this.Ox=a};d.aX=function(a){this.gw=a};d.jI=function(a){this.Pl=a};d.$classData=q({rcb:0},!1,"scala.collection.mutable.LinkedHashSet",{rcb:1,zbb:1,ybb:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Ml:1,Nl:1,Il:1,Dcb:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,Gcb:1,x2:1,ll:1,kl:1,jl:1,OC:1,Kl:1,bl:1,Dk:1,F2:1,G2:1,q:1,n:1});function Fs(){ct.call(this)}Fs.prototype=new AAb;
Fs.prototype.constructor=Fs;Fs.prototype.a=function(){ct.prototype.Qba.call(this,null);return this};Fs.prototype.$U=function(){return this.Pl};Fs.prototype.$classData=q({lOa:0},!1,"amf.core.registries.AMFDomainRegistry$$anon$1",{lOa:1,Vea:1,D2:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,LW:1,Ml:1,Nl:1,Il:1,MW:1,ll:1,kl:1,jl:1,OC:1,Kl:1,bl:1,Dk:1,F2:1,G2:1,gi:1,q:1,n:1});function n9(){ct.call(this)}n9.prototype=new AAb;
n9.prototype.constructor=n9;n9.prototype.HX=function(){return 0};n9.prototype.RK=function(){ct.prototype.Qba.call(this,null);return this};n9.prototype.$classData=q({s$a:0},!1,"scala.collection.SeqLike$$anon$1",{s$a:1,Vea:1,D2:1,eq:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,gq:1,Ep:1,fq:1,hq:1,Ha:1,za:1,Fh:1,LW:1,Ml:1,Nl:1,Il:1,MW:1,ll:1,kl:1,jl:1,OC:1,Kl:1,bl:1,Dk:1,F2:1,G2:1,gi:1,q:1,n:1});
function qp(){this.Ox=0;this.qe=null;this.gw=this.Pl=0;this.nn=null;this.Ax=0}qp.prototype=new gAb;qp.prototype.constructor=qp;d=qp.prototype;d.td=function(){return this};d.BX=function(a){return DAb(this,a)};d.Kn=function(){return this};d.a=function(){qp.prototype.B6a.call(this,null);return this};d.R=function(a){return null!==hBa(this,a)};d.tk=function(a){var b=(new qp).a();return DAb(Yi(b,this),a)};d.Qf=function(){return this};d.uk=function(a){return EAb(this,a)};d.Lh=function(){return tsb()};
d.X=function(a){for(var b=0,c=this.qe.j.length;b<c;){var e=this.qe.j[b];null!==e&&a.R(gea(e));b=1+b|0}};d.i5=function(a){var b=(new qp).a(),b=Yi(b,this);a=a.td();return Zda(b,a)};d.Om=function(a){return EAb(this,a)};d.lb=function(){return this.Pl};d.lc=function(){return this};d.kb=function(){var a=new $4;if(null===this)throw Lb(Mb(),null);a.Pa=this;a.fk=0;return a};d.Zs=function(a){var b=(new qp).a();return DAb(Yi(b,this),a)};d.Gv=function(){return(new qp).a()};
d.Ja=function(a){return null!==hBa(this,a)};d.B6a=function(a){this.Ox=450;this.qe=ia(La(Ja),[pBa(iJ(),32)]);this.Pl=0;this.gw=fBa().FV(this.Ox,pBa(iJ(),32));this.nn=null;this.Ax=bBa(this);null!==a&&(this.Ox=a.Y7a(),this.qe=a.Kgb(),this.Pl=a.Pl,this.gw=a.gw,this.Ax=a.Ax,this.nn=a.nn);return this};d.Ic=function(a){return EAb(this,a)};d.jh=function(){return yM(this)};d.lD=function(a){return DAb(this,a)};function DAb(a,b){gBa(a,b);return a}d.uW=function(a){return gBa(this,a)};
d.Pz=function(a){return cBa(this,a)};d.Ij=function(a){var b=(new qp).a();return EAb(Yi(b,this),a)};d.vk=function(a){var b=(new qp).a(),b=Yi(b,this);a=a.td();return Yi(b,a)};function EAb(a,b){cBa(a,b);return a}d.$classData=q({Zbb:0},!1,"scala.collection.mutable.HashSet",{Zbb:1,zbb:1,ybb:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Ml:1,Nl:1,Il:1,Dcb:1,Pr:1,za:1,Or:1,Ms:1,Ps:1,Ns:1,Fh:1,Gcb:1,x2:1,ll:1,kl:1,jl:1,OC:1,Kl:1,bl:1,Dk:1,sgb:1,tgb:1,gi:1,q:1,n:1});
function o5(){this.z=null}o5.prototype=new W$;o5.prototype.constructor=o5;d=o5.prototype;d.jb=function(a){return this.rp(a)};d.R=function(a){return this.rp(a|0)};d.cz=function(a,b){this.z.j[a]=!!b};d.h=function(a){var b;if(a&&a.$classData&&a.$classData.v.Wea)if(gH(),b=this.z,a=a.z,b===a)b=!0;else if(null!==b&&null!==a&&b.j.length===a.j.length){for(var c=QY(fc(),b),c=k9(c),c=hD(new iD,c,0,c.Ka()),e=!0;e&&c.Qa();)e=c.Sa()|0,e=ub(vb(),b.j[e],a.j[e]);b=e}else b=!1;else b=F4(this,a);return b};d.rp=function(a){return this.z.j[a]};
d.Ka=function(){return this.z.j.length};d.WB=function(){return bAa()};d.TG=function(a){this.z=a;return this};d.y=function(){for(var a=xI(),b=this.z,c=a.Bx,e=0;e<b.j.length;)c=a.Ga(c,b.j[e]?1231:1237),e=1+e|0;return a.Wd(c,b.j.length)};
d.$classData=q({Wea:0},!1,"scala.collection.mutable.WrappedArray$ofBoolean",{Wea:1,QC:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,$q:1,kn:1,Ki:1,ml:1,iq:1,Ll:1,ok:1,gi:1,q:1,n:1});function i5(){this.z=null}i5.prototype=new W$;i5.prototype.constructor=i5;d=i5.prototype;d.jb=function(a){return this.z.j[a]};d.R=function(a){return this.z.j[a|0]};
d.cz=function(a,b){this.z.j[a]=b|0};d.h=function(a){var b;if(a&&a.$classData&&a.$classData.v.Xea)if(gH(),b=this.z,a=a.z,b===a)b=!0;else if(null!==b&&null!==a&&b.j.length===a.j.length){for(var c=QY(fc(),b),c=k9(c),c=hD(new iD,c,0,c.Ka()),e=!0;e&&c.Qa();)e=c.Sa()|0,e=ub(vb(),b.j[e],a.j[e]);b=e}else b=!1;else b=F4(this,a);return b};d.Ka=function(){return this.z.j.length};d.WB=function(){return Vza()};
d.y=function(){for(var a=xI(),b=this.z,c=b.j.length,e=a.Bx,f=0;4<=c;)var g=255&b.j[f],g=g|(255&b.j[1+f|0])<<8,g=g|(255&b.j[2+f|0])<<16,g=g|(255&b.j[3+f|0])<<24,e=a.Ga(e,g),f=4+f|0,c=-4+c|0;g=0;3===c&&(g^=(255&b.j[2+f|0])<<16);2<=c&&(g^=(255&b.j[1+f|0])<<8);1<=c&&(g^=255&b.j[f],e=a.qL(e,g));return a.Wd(e,b.j.length)};d.MG=function(a){this.z=a;return this};
d.$classData=q({Xea:0},!1,"scala.collection.mutable.WrappedArray$ofByte",{Xea:1,QC:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,$q:1,kn:1,Ki:1,ml:1,iq:1,Ll:1,ok:1,gi:1,q:1,n:1});function az(){this.z=null}az.prototype=new W$;az.prototype.constructor=az;d=az.prototype;d.jb=function(a){a=this.nG(a);return Dc(a)};d.R=function(a){a=this.nG(a|0);return Dc(a)};
d.cz=function(a,b){this.z.j[a]=null===b?0:b.t};d.h=function(a){var b;if(a&&a.$classData&&a.$classData.v.Yea)if(gH(),b=this.z,a=a.z,b===a)b=!0;else if(null!==b&&null!==a&&b.j.length===a.j.length){for(var c=QY(fc(),b),c=k9(c),c=hD(new iD,c,0,c.Ka()),e=!0;e&&c.Qa();)e=c.Sa()|0,e=ub(vb(),Dc(b.j[e]),Dc(a.j[e]));b=e}else b=!1;else b=F4(this,a);return b};d.nG=function(a){return this.z.j[a]};d.Ka=function(){return this.z.j.length};d.dx=function(a){this.z=a;return this};d.WB=function(){return Xza()};
d.y=function(){for(var a=xI(),b=this.z,c=a.Bx,e=0;e<b.j.length;)c=a.Ga(c,b.j[e]),e=1+e|0;return a.Wd(c,b.j.length)};d.$classData=q({Yea:0},!1,"scala.collection.mutable.WrappedArray$ofChar",{Yea:1,QC:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,$q:1,kn:1,Ki:1,ml:1,iq:1,Ll:1,ok:1,gi:1,q:1,n:1});function n5(){this.z=null}n5.prototype=new W$;n5.prototype.constructor=n5;d=n5.prototype;
d.jb=function(a){return this.z.j[a]};d.R=function(a){return this.z.j[a|0]};d.cz=function(a,b){this.z.j[a]=+b};d.h=function(a){var b;if(a&&a.$classData&&a.$classData.v.Zea)if(gH(),b=this.z,a=a.z,b===a)b=!0;else if(null!==b&&null!==a&&b.j.length===a.j.length){for(var c=QY(fc(),b),c=k9(c),c=hD(new iD,c,0,c.Ka()),e=!0;e&&c.Qa();)e=c.Sa()|0,e=ub(vb(),b.j[e],a.j[e]);b=e}else b=!1;else b=F4(this,a);return b};d.OG=function(a){this.z=a;return this};d.Ka=function(){return this.z.j.length};d.WB=function(){return aAa()};
d.y=function(){for(var a=xI(),b=this.z,c=a.Bx,e=0;e<b.j.length;)c=a.Ga(c,tCa(zI(),b.j[e])),e=1+e|0;return a.Wd(c,b.j.length)};d.$classData=q({Zea:0},!1,"scala.collection.mutable.WrappedArray$ofDouble",{Zea:1,QC:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,$q:1,kn:1,Ki:1,ml:1,iq:1,Ll:1,ok:1,gi:1,q:1,n:1});function m5(){this.z=null}m5.prototype=new W$;
m5.prototype.constructor=m5;d=m5.prototype;d.jb=function(a){return this.z.j[a]};d.R=function(a){return this.z.j[a|0]};d.cz=function(a,b){this.z.j[a]=+b};d.h=function(a){var b;if(a&&a.$classData&&a.$classData.v.$ea)if(gH(),b=this.z,a=a.z,b===a)b=!0;else if(null!==b&&null!==a&&b.j.length===a.j.length){for(var c=QY(fc(),b),c=k9(c),c=hD(new iD,c,0,c.Ka()),e=!0;e&&c.Qa();)e=c.Sa()|0,e=ub(vb(),b.j[e],a.j[e]);b=e}else b=!1;else b=F4(this,a);return b};d.PG=function(a){this.z=a;return this};d.Ka=function(){return this.z.j.length};
d.WB=function(){return $za()};d.y=function(){for(var a=xI(),b=this.z,c=a.Bx,e=0;e<b.j.length;)zI(),c=a.Ga(c,tCa(0,b.j[e])),e=1+e|0;return a.Wd(c,b.j.length)};d.$classData=q({$ea:0},!1,"scala.collection.mutable.WrappedArray$ofFloat",{$ea:1,QC:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,$q:1,kn:1,Ki:1,ml:1,iq:1,Ll:1,ok:1,gi:1,q:1,n:1});function k5(){this.z=null}
k5.prototype=new W$;k5.prototype.constructor=k5;d=k5.prototype;d.jb=function(a){return this.Tn(a)};d.R=function(a){return this.Tn(a|0)};d.cz=function(a,b){this.z.j[a]=b|0};d.h=function(a){var b;if(a&&a.$classData&&a.$classData.v.afa)if(gH(),b=this.z,a=a.z,b===a)b=!0;else if(null!==b&&null!==a&&b.j.length===a.j.length){for(var c=QY(fc(),b),c=k9(c),c=hD(new iD,c,0,c.Ka()),e=!0;e&&c.Qa();)e=c.Sa()|0,e=ub(vb(),b.j[e],a.j[e]);b=e}else b=!1;else b=F4(this,a);return b};d.Tn=function(a){return this.z.j[a]};
d.QG=function(a){this.z=a;return this};d.Ka=function(){return this.z.j.length};d.WB=function(){return Yza()};d.y=function(){for(var a=xI(),b=this.z,c=a.Bx,e=0;e<b.j.length;)c=a.Ga(c,b.j[e]),e=1+e|0;return a.Wd(c,b.j.length)};
d.$classData=q({afa:0},!1,"scala.collection.mutable.WrappedArray$ofInt",{afa:1,QC:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,$q:1,kn:1,Ki:1,ml:1,iq:1,Ll:1,ok:1,gi:1,q:1,n:1});function l5(){this.z=null}l5.prototype=new W$;l5.prototype.constructor=l5;d=l5.prototype;d.jb=function(a){return this.z.j[a]};d.R=function(a){return this.z.j[a|0]};d.RG=function(a){this.z=a;return this};
d.cz=function(a,b){b=Ea(b);this.z.j[a]=b};d.h=function(a){var b;if(a&&a.$classData&&a.$classData.v.bfa)if(gH(),b=this.z,a=a.z,b===a)b=!0;else if(null!==b&&null!==a&&b.j.length===a.j.length){for(var c=QY(fc(),b),c=k9(c),c=hD(new iD,c,0,c.Ka()),e=!0;e&&c.Qa();)e=c.Sa()|0,e=ub(vb(),b.j[e],a.j[e]);b=e}else b=!1;else b=F4(this,a);return b};d.Ka=function(){return this.z.j.length};d.WB=function(){return Zza()};
d.y=function(){for(var a=xI(),b=this.z,c=a.Bx,e=0;e<b.j.length;)c=a.Ga(c,$J(zI(),b.j[e])),e=1+e|0;return a.Wd(c,b.j.length)};d.$classData=q({bfa:0},!1,"scala.collection.mutable.WrappedArray$ofLong",{bfa:1,QC:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,$q:1,kn:1,Ki:1,ml:1,iq:1,Ll:1,ok:1,gi:1,q:1,n:1});function FH(){this.z=this.Kza=null;this.B$=!1}FH.prototype=new W$;
FH.prototype.constructor=FH;d=FH.prototype;d.jb=function(a){return this.z.j[a]};d.R=function(a){return this.jb(a|0)};d.cz=function(a,b){this.z.j[a]=b};d.h=function(a){var b;if(a&&a.$classData&&a.$classData.v.cfa)if(gH(),b=this.z,a=a.z,b===a)b=!0;else if(null!==b&&null!==a&&b.j.length===a.j.length){for(var c=QY(fc(),b),c=k9(c),c=hD(new iD,c,0,c.Ka()),e=!0;e&&c.Qa();)e=c.Sa()|0,e=ub(vb(),b.j[e],a.j[e]);b=e}else b=!1;else b=F4(this,a);return b};d.vc=function(a){this.z=a;return this};d.Ka=function(){return this.z.j.length};
d.WB=function(){this.B$||this.B$||(this.Kza=NUa(OUa(),Jt(ka(this.z))),this.B$=!0);return this.Kza};d.y=function(){for(var a=xI(),b=this.z,c=a.Bx,e=0;e<DI(W(),b);)c=a.Ga(c,yI(zI(),qCa(W(),b,e))),e=1+e|0;return a.Wd(c,DI(W(),b))};
d.$classData=q({cfa:0},!1,"scala.collection.mutable.WrappedArray$ofRef",{cfa:1,QC:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,$q:1,kn:1,Ki:1,ml:1,iq:1,Ll:1,ok:1,gi:1,q:1,n:1});function j5(){this.z=null}j5.prototype=new W$;j5.prototype.constructor=j5;d=j5.prototype;d.jb=function(a){return this.z.j[a]};d.R=function(a){return this.z.j[a|0]};d.SG=function(a){this.z=a;return this};
d.cz=function(a,b){this.z.j[a]=b|0};d.h=function(a){var b;if(a&&a.$classData&&a.$classData.v.dfa)if(gH(),b=this.z,a=a.z,b===a)b=!0;else if(null!==b&&null!==a&&b.j.length===a.j.length){for(var c=QY(fc(),b),c=k9(c),c=hD(new iD,c,0,c.Ka()),e=!0;e&&c.Qa();)e=c.Sa()|0,e=ub(vb(),b.j[e],a.j[e]);b=e}else b=!1;else b=F4(this,a);return b};d.Ka=function(){return this.z.j.length};d.WB=function(){return Wza()};
d.y=function(){for(var a=xI(),b=this.z,c=a.Bx,e=0;e<b.j.length;)c=a.Ga(c,b.j[e]),e=1+e|0;return a.Wd(c,b.j.length)};d.$classData=q({dfa:0},!1,"scala.collection.mutable.WrappedArray$ofShort",{dfa:1,QC:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,$q:1,kn:1,Ki:1,ml:1,iq:1,Ll:1,ok:1,gi:1,q:1,n:1});function p5(){this.z=null}p5.prototype=new W$;p5.prototype.constructor=p5;d=p5.prototype;
d.jb=function(a){this.z.j[a]};d.R=function(a){this.z.j[a|0]};d.cz=function(a,b){this.z.j[a]=b};d.h=function(a){return a&&a.$classData&&a.$classData.v.WFa?this.z.j.length===a.z.j.length:F4(this,a)};d.Ka=function(){return this.z.j.length};d.WB=function(){return cAa()};d.UG=function(a){this.z=a;return this};d.y=function(){for(var a=xI(),b=this.z,c=a.Bx,e=0;e<b.j.length;)c=a.Ga(c,0),e=1+e|0;return a.Wd(c,b.j.length)};
d.$classData=q({WFa:0},!1,"scala.collection.mutable.WrappedArray$ofUnit",{WFa:1,QC:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,$q:1,kn:1,Ki:1,ml:1,iq:1,Ll:1,ok:1,gi:1,q:1,n:1});function $$(){s$.call(this)}$$.prototype=new t$;$$.prototype.constructor=$$;function FAb(){}d=FAb.prototype=$$.prototype;d.td=function(){return this};d.yH=function(a){return sAb(this,a)};d.fa=function(){return Wj(this)};
d.Ge=function(a){return w9(this,a)};d.BGa=function(a){return vAb(this,a)};d.Jl=function(a){return x9(this,a)};d.tu=function(a){return(new c$).eo(this,a)};d.Cd=function(a){return y9(this,a)};d.b=function(){return HF(this)};d.Mi=function(){return this};d.Qf=function(){return this};d.Ck=function(a){return(new V$).go(this,a)};d.Mca=function(a){return(new V$).go(this,a)};d.qq=function(a){return this.fn(a)};d.Ng=function(a){return B9(this,a)};d.Ej=function(a){return b$(this,a)};d.Lh=function(){return Enb()};
d.u=function(){return p9(this)};d.Oca=function(){return(new Z$).mC(this)};d.Nca=function(a){return(new Y$).go(this,a)};d.X=function(a){C9(this,a)};d.AGa=function(a){return(new U$).go(this,a)};d.ae=function(a,b){var c=this.Ka();return K9(this,0,c,a,b)};d.Ar=function(a,b){var c=this.Ka();return J9(this,c,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.ol=function(a){return(new U$).go(this,a)};d.lq=function(a,b){return rAb(this,a,b)};d.Mo=function(a){return X9(this,a)};
d.xb=function(a){return(new Y$).go(this,a)};d.Js=function(){return(new Z$).mC(this)};d.bj=function(){return t9(this)};d.eFa=function(){return tu(this)};d.I1=function(a){return(new c$).eo(this,a)};d.Ri=function(){return Y9(this)};d.Pca=function(a){return(new U$).go(this,a)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return tAb(this,a)};d.Tp=function(a){return a$(this,a)};d.Fza=function(a){return(new V$).go(this,a)};d.hEa=function(){return(new Z$).mC(this)};
d.tL=function(a){return(new e$).gH(this,a)};d.cg=function(a){return I9(this,a)};d.Yq=function(){return r9(this)};d.Xq=function(){return Ewb(this)};d.Ph=function(a){return q9(this,a)};d.Uo=function(){return this};d.Ol=function(){return this.Ka()};d.br=function(a){return uAb(this,a)};d.Wj=function(a){return vAb(this,a)};d.Gza=function(a){return wAb(this,a)};d.Ky=function(a){return(new U$).go(this,a)};d.Dy=function(){return ld(this)};d.Kx=function(){return X$(this)};
d.ck=function(a){return wAb(this,a)};d.VE=function(a){return(new f$).eo(this,a)};d.Hj=function(){return this};d.sa=function(){return xAb(this)};d.qi=function(a,b){return $9(this,a,b)};d.rK=function(a){return(new Y$).go(this,a)};d.Xa=function(a){return G4(this,a|0)};d.mC=function(a){s$.prototype.wt.call(this,a);return this};d.Qca=function(a){return $xb(this,a)};d.$j=function(a,b,c){L9(this,a,b,c)};d.jh=function(){return this};d.y=function(){return bS(xI(),this)};
d.fn=function(a){return(new Y$).go(this,a)};d.Zq=function(a){return $xb(this,a)};d.aM=function(a,b){return A9(this,a,b)};d.Jy=function(a){return(new V$).go(this,a)};d.Sj=function(a){return M9(this,a)};d.uL=function(a){return Xxb(this,a)};d.UC=function(a){return Z9(this,a)};d.zGa=function(){return xAb(this)};
d.CF=function(a,b){if(a&&a.$classData&&a.$classData.v.kn){b=b.Vn(this.Ji());var c=0,e=this.Ka(),f=a.Ka(),e=e<f?e:f;for(b.Gh(e);c<e;)b.Ic((new P).N(this.jb(c),a.jb(c))),c=1+c|0;a=b.lc()}else a=this.Zq(a,b);return a};function $g(){this.Vq=this.Lb=null;this.rE=!1;this.Wq=0}$g.prototype=new kAb;$g.prototype.constructor=$g;d=$g.prototype;d.oAa=function(a,b){return xxa(this.Lb,a,b)};d.Yn=function(a,b){JF(this.Lb,a,b)};
function Jzb(a){if(!a.b()){var b=a.Lb,c=a.Vq.ve;for(a.PJ();b!==c;)vh(a,b.fa()),b=b.sa()}}d.Kn=function(){return this};d.fa=function(){return this.Lb.fa()};d.a=function(){this.Lb=G();this.rE=!1;this.Wq=0;return this};d.jb=function(a){if(0>a||a>=this.Wq)throw(new X).e(""+a);return Pt(this.Lb,a)};d.$y=function(){return this};d.Ge=function(a){return Ot(this.Lb,a)};d.Jl=function(a){return uwb(this.Lb,a)};d.R=function(a){return this.jb(a|0)};d.Cd=function(a){return twb(this.Lb,a)};
d.tk=function(a){return Nxa(Er((new $g).a(),this),a)};d.wa=function(){this.rE=!this.b();return this.Lb};d.b=function(){return 0===this.Wq};d.cz=function(a,b){if(0>a||a>=this.Wq)throw(new X).e(""+a);this.rE&&Jzb(this);if(0===a){var c=oz(new pz,b,this.Lb.sa());this.Vq===this.Lb&&(this.Vq=c);this.Lb=c}else{for(var c=this.Lb,e=1;e<a;)c=c.sa(),e=1+e|0;a=oz(new pz,b,c.sa().sa());this.Vq===c.sa()&&(this.Vq=a);c.ve=a}};d.Qf=function(){return this};
d.h=function(a){return a&&a.$classData&&a.$classData.v.VFa?this.Lb.h(a.Lb):F4(this,a)};d.ng=function(a){return IG(this.Lb,"",a,"")};d.Fk=function(a,b,c){return IG(this.Lb,a,b,c)};d.uk=function(a){return vh(this,a)};d.RJ=function(){return Er((new $g).a(),this)};d.Ng=function(a){return vwb(this.Lb,a)};d.Lh=function(){return Wg()};d.X=function(a){for(var b=this.Lb;!b.b();)a.R(b.fa()),b=b.sa()};d.ae=function(a,b){return wwb(this.Lb,a,b)};d.Ar=function(a,b){return this.Lb.Ar(a,b)};
d.fm=function(a,b){return xwb(this.Lb,a,b)};d.pc=function(){return Ps(this.Lb)};d.lb=function(){return this.Wq};d.bj=function(){var a=this.Lb,b=a2().s;return Ei(a,b)};d.lc=function(){return this.wa()};d.kb=function(){var a=new h5;a.yT=this.b()?G():this.Lb;return a};d.Ss=function(a,b){sS(this,a,b)};d.Ib=function(a){return ywb(this.Lb,a)};d.lm=function(){return IG(this.Lb,"","","")};d.Ka=function(){return this.Wq};d.Uo=function(){return this};
d.cea=function(a){if(0>a||a>=this.Wq)throw(new X).e(""+a);this.rE&&Jzb(this);var b=this.Lb.fa();if(0===a)this.Lb=this.Lb.sa();else{for(var c=this.Lb,b=1;b<a;)c=c.sa(),b=1+b|0;b=c.sa().fa();this.Vq===c.sa()&&(this.Vq=c);c.ve=c.sa().sa()}GAb(this);return b};
function Nxa(a,b){a.rE&&Jzb(a);if(!a.b())if(ub(vb(),a.Lb.fa(),b))a.Lb=a.Lb.sa(),GAb(a);else{for(var c=a.Lb;!c.sa().b()&&!ub(vb(),c.sa().fa(),b);)c=c.sa();if(!c.sa().b()){b=c;var e=b.ve,f=a.Vq;if(null===e?null===f:e.h(f))a.Vq=b;b.ve=c.sa().sa();GAb(a)}}return a}d.kd=function(){return this.Lb.kd()};function GAb(a){a.Wq=a.Wq-1|0;0>=a.Wq&&(a.Vq=null)}d.Ja=function(a){return uh(this.Lb,a)};d.vm=function(a,b,c,e){return HI(this.Lb,a,b,c,e)};
function vh(a,b){a.rE&&Jzb(a);if(a.b())a.Vq=oz(new pz,b,G()),a.Lb=a.Vq;else{var c=a.Vq;a.Vq=oz(new pz,b,G());c.ve=a.Vq}a.Wq=1+a.Wq|0;return a}d.ce=function(){return this.Lb};d.Xa=function(a){return zwb(this.Lb,a|0)};d.h5=function(a){return Nxa(this,a)};d.pg=function(){var a=this.Lb,b=Pf(),b=Qf(b);return Ei(a,b)};d.rl=function(a,b){return wwb(this.Lb,a,b)};d.Ic=function(a){return vh(this,a)};d.nAa=function(a){return xxa(this.Lb,a,0)};d.Gh=function(){};d.$j=function(a,b,c){nub(this.Lb,a,b,c)};
d.jh=function(){return this.Lb};d.$g=function(){for(var a=this.Lb,b=Ry(new Sy,Xs());!a.b();){var c=a.fa();Ty(b,c);a=a.sa()}return b.gb};d.lD=function(a){return Nxa(this,a)};d.PJ=function(){this.Lb=G();this.Vq=null;this.rE=!1;this.Wq=0};d.Ql=function(a){return II(this.Lb,a)};
function wxa(a,b,c){if(0>b||b>a.Wq)throw(new X).e(""+b);a.rE&&Jzb(a);c=mv(c.wa());a.Wq=a.Wq+Fp(c)|0;if(0===b)for(;!c.b();)b=oz(new pz,c.fa(),a.Lb),a.Lb.b()&&(a.Vq=b),a.Lb=b,c=c.sa();else{for(var e=a.Lb,f=1;f<b;)e=e.sa(),f=1+f|0;for(;!c.b();)b=oz(new pz,c.fa(),e.sa()),e.sa().b()&&(a.Vq=b),e.ve=b,c=c.sa()}}d.Fa=function(){return 0<this.Wq};function Er(a,b){a:for(;;){var c=b;if(null!==c&&c===a){b=mub(a,a.Wq);continue a}return Yi(a,b)}}d.Sj=function(a){return Awb(this.Lb,a)};
d.Cf=function(a){return Er(this,a)};d.Lk=function(){return"ListBuffer"};d.$classData=q({VFa:0},!1,"scala.collection.mutable.ListBuffer",{VFa:1,yFa:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,TFa:1,UFa:1,kl:1,jl:1,OC:1,x2:1,Fh:1,Lt:1,ll:1,fgb:1,egb:1,ggb:1,q:1,n:1});function lk(){this.Be=null}lk.prototype=new Nyb;lk.prototype.constructor=lk;d=lk.prototype;d.td=function(){return this};
d.fa=function(){return Wj(this)};function cE(a,b){dE(a.Be,b);return a}d.a=function(){lk.prototype.R0.call(this,16,"");return this};d.jb=function(a){a=this.Be.Ow(a);return Dc(a)};d.$y=function(){return this};d.Ge=function(a){return w9(this,a)};d.Jl=function(a){return x9(this,a)};d.R=function(a){a=this.Be.Ow(a|0);return Dc(a)};d.Cd=function(a){return y9(this,a)};d.b=function(){return HF(this)};d.Mi=function(){return this};d.Qf=function(){return this};
d.XC=function(a,b){return this.Be.Ue.substring(a,b)};d.nG=function(a){return this.Be.Ow(a)};d.Ck=function(a){return z9(this,a)};function bE(a,b){a=a.Be;a.Ue=""+a.Ue+b}d.uk=function(a){return cE(this,null===a?0:a.t)};d.Ng=function(a){return B9(this,a)};d.Lh=function(){return Enb()};d.u=function(){return this.Be.Ue};d.Wn=function(a){var b=this.Be.Ue;return b===a?0:b<a?-1:1};d.X=function(a){C9(this,a)};d.ae=function(a,b){var c=this.Be.Ka();return K9(this,0,c,a,b)};
d.Ar=function(a,b){var c=this.Be.Ka();return J9(this,c,a,b)};d.Xn=function(a){var b=this.Be.Ue;return b===a?0:b<a?-1:1};d.fm=function(a,b){return D9(this,a,b)};d.ol=function(a){return E9(this,a)};d.lq=function(a,b){return fxb(this,a,b)};d.Js=function(){return(new lk).SU(l2a((new R1).Nba(this.Be)))};d.bj=function(){return t9(this)};d.lc=function(){return this.Be.Ue};function nk(a,b){var c=a.Be;c.Ue=""+c.Ue+b;return a}d.kb=function(){return hD(new iD,this,0,this.Be.Ka())};d.bM=function(){return this};
d.Ss=function(a,b){sS(this,a,b)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.$d=function(a){lk.prototype.R0.call(this,a,"");return this};d.R0=function(a,b){a=(new R1).$d((b.length|0)+a|0);a.Ue=""+a.Ue+b;lk.prototype.SU.call(this,a);return this};d.lm=function(){return this.Be.Ue};d.cg=function(a){return I9(this,a)};d.Ka=function(){return this.Be.Ka()};d.Yq=function(){return Cw(this)};d.Xq=function(){return G6(this)};d.Uo=function(){return this};d.Ol=function(){return this.Be.Ka()};
d.br=function(a){return B2(this,a)};d.Wj=function(a){return fxb(this,0,a)};d.Dy=function(){return ld(this)};d.Kx=function(){return X$(this)};d.ck=function(a){var b=this.Be.Ka();return fxb(this,a,b)};d.sa=function(){return tu(this)};d.Hj=function(){return this};d.SU=function(a){this.Be=a;return this};function ok(a,b){var c=a.Be;c.Ue+=""+b;return a}d.Xa=function(a){return G4(this,a|0)};d.Ic=function(a){return cE(this,null===a?0:a.t)};d.Gh=function(){};d.$j=function(a,b,c){L9(this,a,b,c)};d.jh=function(){return this};
d.y=function(){return bS(xI(),this)};d.Zq=function(a,b){return X8(this,a,b)};d.Ql=function(){return Dt(ta(),this.Be.Ue)};d.Ow=function(a){return this.Be.Ow(a)};d.Sj=function(a){return M9(this,a)};d.Ed=function(){return Yg(new Zg,(new lk).a())};d.Cf=function(a){return Yi(this,a)};
d.$classData=q({Hcb:0},!1,"scala.collection.mutable.StringBuilder",{Hcb:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,kH:1,$q:1,kn:1,Ki:1,ml:1,uFa:1,ok:1,vx:1,sh:1,Lt:1,ll:1,kl:1,jl:1,q:1,n:1});function J(){this.z=null}J.prototype=new kAb;J.prototype.constructor=J;d=J.prototype;d.td=function(){return this};d.Kn=function(){return this};d.fa=function(){return Wj(this)};
d.a=function(){J.prototype.aa.call(this,[]);return this};d.jb=function(a){return this.z[a]};d.$y=function(){return this};d.Ge=function(a){return w9(this,a)};d.Jl=function(a){return x9(this,a)};d.R=function(a){return this.z[a|0]};d.Cd=function(a){return y9(this,a)};d.tk=function(a){return mxb(this).h5(a)};d.b=function(){return HF(this)};d.Mi=function(){return this};d.Qf=function(){return this};d.Ck=function(a){return z9(this,a)};d.uk=function(a){this.z.push(a);return this};
d.Ng=function(a){return B9(this,a)};d.Lh=function(){return Dl()};d.X=function(a){C9(this,a)};d.ae=function(a,b){return K9(this,0,this.z.length|0,a,b)};d.Ar=function(a,b){return J9(this,this.z.length|0,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.ol=function(a){return E9(this,a)};d.lq=function(a,b){return F9(this,a,b)};d.Js=function(){return VY(this)};d.bj=function(){return t9(this)};d.lc=function(){return this};d.kb=function(){return hD(new iD,this,0,this.z.length|0)};d.bM=function(){return this};
d.Ss=function(a,b){sS(this,a,b)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.Ka=function(){return this.z.length|0};d.cg=function(a){return I9(this,a)};d.Xq=function(){return G6(this)};d.Yq=function(){return Cw(this)};d.Uo=function(){return this};d.Ol=function(){return this.z.length|0};d.cea=function(a){if(0>a||a>=(this.z.length|0))throw(new X).a();return this.z.splice(a,1)[0]};d.br=function(a){return B2(this,a)};d.Wj=function(a){return F9(this,0,a)};d.Dy=function(){return ld(this)};
d.Kx=function(){return X$(this)};d.ck=function(a){return F9(this,a,this.z.length|0)};d.sa=function(){return tu(this)};d.Hj=function(){return this};d.Xa=function(a){return G4(this,a|0)};d.Ic=function(a){this.z.push(a);return this};d.Gh=function(){};d.$j=function(a,b,c){L9(this,a,b,c)};d.jh=function(){return this};d.y=function(){return bS(xI(),this)};d.Zq=function(a,b){return X8(this,a,b)};d.lD=function(a){return nxb(this,a)};d.aa=function(a){this.z=a;return this};d.Sj=function(a){return M9(this,a)};
d.Lk=function(){return"WrappedArray"};d.$classData=q({hGa:0},!1,"scala.scalajs.js.WrappedArray",{hGa:1,yFa:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,TFa:1,UFa:1,kl:1,jl:1,OC:1,x2:1,Fh:1,$q:1,kn:1,Ki:1,ml:1,iq:1,Ll:1,ok:1,ll:1});function Z$(){s$.call(this);this.Rb=null}Z$.prototype=new FAb;Z$.prototype.constructor=Z$;d=Z$.prototype;d.jb=function(a){return h$(this,a)};
d.R=function(a){return h$(this,a|0)};d.EW=function(){return this.Rb};d.kb=function(){return i$(this)};d.Ul=function(){return"R"};d.Ka=function(){return this.Rb.Ka()};d.mC=function(a){if(null===a)throw Lb(Mb(),null);this.Rb=a;$$.prototype.mC.call(this,a);return this};
d.$classData=q({icb:0},!1,"scala.collection.mutable.IndexedSeqView$$anon$5",{icb:1,H2:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,I2:1,KW:1,$q:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,kn:1,Ki:1,ml:1,Ll:1,ok:1,wgb:1,NEa:1});function pk(){this.CBa=0;this.z=null;this.x=0}pk.prototype=new kAb;pk.prototype.constructor=pk;d=pk.prototype;d.td=function(){return this};d.Kn=function(){return this};
function T(a,b){hC(a,1+a.x|0);a.z.j[a.x]=b;a.x=1+a.x|0;return a}d.fa=function(){return Wj(this)};d.a=function(){pk.prototype.$d.call(this,16);return this};d.jb=function(a){return UQ(this,a)};d.$y=function(){return this};d.Ge=function(a){return w9(this,a)};d.Jl=function(a){return x9(this,a)};d.R=function(a){return UQ(this,a|0)};d.Cd=function(a){return y9(this,a)};d.tk=function(a){return mxb(this).h5(a)};d.b=function(){return HF(this)};d.Mi=function(){return this};d.Qf=function(){return this};
d.Ck=function(a){return z9(this,a)};d.uk=function(a){return T(this,a)};d.Ng=function(a){return B9(this,a)};d.Lh=function(){return a2()};d.X=function(a){for(var b=0,c=this.x;b<c;)a.R(this.z.j[b]),b=1+b|0};d.ae=function(a,b){return K9(this,0,this.x,a,b)};d.Ar=function(a,b){return J9(this,this.x,a,b)};d.fm=function(a,b){return D9(this,a,b)};d.ol=function(a){return E9(this,a)};d.lq=function(a,b){return F9(this,a,b)};d.Js=function(){return VY(this)};d.bj=function(){return t9(this)};d.lc=function(){return this};
d.kb=function(){return hD(new iD,this,0,this.x)};d.bM=function(){return this};d.Ss=function(a,b){sS(this,a,b)};d.Ib=function(a){return G9(this,a)};d.om=function(a){return H9(this,a)};d.$d=function(a){a=this.CBa=a;this.z=ia(La(Ja),[1<a?a:1]);this.x=0;return this};d.cg=function(a){return I9(this,a)};d.Ka=function(){return this.x};d.Yq=function(){return Cw(this)};d.Xq=function(){return G6(this)};d.Uo=function(){return this};d.Ol=function(){return this.x};
d.cea=function(a){var b=UQ(this,a);if(0>a||a>(this.x-1|0))throw(new X).e("at "+a+" deleting 1");Ca(this.z,a+1|0,this.z,a,this.x-(a+1|0)|0);KF(this,this.x-1|0);return b};d.br=function(a){return B2(this,a)};d.Wj=function(a){return F9(this,0,a)};d.Dy=function(){return ld(this)};d.Kx=function(){return X$(this)};d.ck=function(a){return F9(this,a,this.x)};d.sa=function(){return tu(this)};d.Hj=function(){return this};
function Yda(a,b){if(b&&b.$classData&&b.$classData.v.Ki){var c=b.Ka();hC(a,a.x+c|0);b.$j(a.z,a.x,c);a.x=a.x+c|0;return a}return Yi(a,b)}d.Xa=function(a){return G4(this,a|0)};d.Ic=function(a){return T(this,a)};d.Gh=function(a){a>this.x&&1<=a&&(a=ia(La(Ja),[a]),Ca(this.z,0,a,0,this.x),this.z=a)};d.$j=function(a,b,c){var e=DI(W(),a)-b|0;c=c<e?c:e;e=this.x;c=c<e?c:e;0<c&&Kt(ye(),this.z,0,a,b,c)};d.jh=function(){return this};d.y=function(){return bS(xI(),this)};d.Zq=function(a,b){return X8(this,a,b)};
d.lD=function(a){return nxb(this,a)};d.Sj=function(a){return M9(this,a)};d.Cf=function(a){return Yda(this,a)};d.Lk=function(){return"ArrayBuffer"};d.$classData=q({Abb:0},!1,"scala.collection.mutable.ArrayBuffer",{Abb:1,yFa:1,Zv:1,To:1,Ve:1,We:1,f:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,cd:1,$c:1,zc:1,Bc:1,w:1,Yf:1,Ha:1,za:1,Nf:1,Xe:1,Ye:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,TFa:1,UFa:1,kl:1,jl:1,OC:1,x2:1,Fh:1,Ll:1,ml:1,Ki:1,ok:1,ll:1,Agb:1,$q:1,kn:1,gi:1,q:1,n:1});
function Y$(){s$.call(this);this.cx=this.zp=null;this.sg=!1;this.Rb=null}Y$.prototype=new FAb;Y$.prototype.constructor=Y$;d=Y$.prototype;d.jb=function(a){return tyb(this,a)};d.R=function(a){return tyb(this,a|0)};d.Cea=function(){return this.Rb};d.jU=function(){this.sg||(this.cx=uyb(this),this.sg=!0);return this.cx};d.X=function(a){$wb(this,a)};d.kb=function(){return xxb(this)};d.Ul=function(){return"F"};d.Ka=function(){return this.sy().j.length};
d.go=function(a,b){if(null===a)throw Lb(Mb(),null);this.Rb=a;this.zp=b;$$.prototype.mC.call(this,a);return this};d.sy=function(){return this.sg?this.cx:this.jU()};d.Pu=function(){return this.zp};d.RP=function(){return this.Rb};d.Hea=function(){return this.Rb};
d.$classData=q({ecb:0},!1,"scala.collection.mutable.IndexedSeqView$$anon$1",{ecb:1,H2:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,I2:1,KW:1,$q:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,kn:1,Ki:1,ml:1,Ll:1,ok:1,vgb:1,MEa:1,FEa:1,REa:1});function HAb(){s$.call(this);this.Rb=this.pO=null}HAb.prototype=new FAb;HAb.prototype.constructor=HAb;d=HAb.prototype;
d.jb=function(a){return Cyb(this,a)};d.R=function(a){return Cyb(this,a|0)};d.A2=function(){return this.Rb};d.X=function(a){var b=z$(this);fS(b,a)};d.kb=function(){return z$(this)};d.Ul=function(){return"S"};d.Ka=function(){return AAa(this.pO)};function sAb(a,b){var c=new HAb;if(null===a)throw Lb(Mb(),null);c.Rb=a;c.pO=b;$$.prototype.mC.call(c,a);return c}d.kK=function(){return this.pO};
d.$classData=q({fcb:0},!1,"scala.collection.mutable.IndexedSeqView$$anon$2",{fcb:1,H2:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,I2:1,KW:1,$q:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,kn:1,Ki:1,ml:1,Ll:1,ok:1,xgb:1,OEa:1,GEa:1,SEa:1});function V$(){s$.call(this);this.zp=null;this.fM=0;this.sg=!1;this.Rb=null}V$.prototype=new FAb;V$.prototype.constructor=V$;d=V$.prototype;
d.jb=function(a){return ryb(this,a)};d.R=function(a){return ryb(this,a|0)};d.y2=function(){return this.Rb};d.X=function(a){Zwb(this,a)};d.Bea=function(){return this.Rb};d.kb=function(){return wxb(this)};d.Ul=function(){return"D"};d.Ka=function(){return syb(this)};d.go=function(a,b){if(null===a)throw Lb(Mb(),null);this.Rb=a;this.zp=b;$$.prototype.mC.call(this,a);return this};d.Gea=function(){return this.Rb};d.Ts=function(){return this.sg?this.fM:this.rfa()};d.Pu=function(){return this.zp};
d.rfa=function(){this.sg||(this.fM=A9(this.Rb,this.zp,0),this.sg=!0);return this.fM};d.$classData=q({gcb:0},!1,"scala.collection.mutable.IndexedSeqView$$anon$3",{gcb:1,H2:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,I2:1,KW:1,$q:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,kn:1,Ki:1,ml:1,Ll:1,ok:1,ugb:1,LEa:1,EEa:1,QEa:1});
function U$(){s$.call(this);this.zp=null;this.aL=0;this.sg=!1;this.Rb=null}U$.prototype=new FAb;U$.prototype.constructor=U$;d=U$.prototype;d.jb=function(a){return Dyb(this,a)};d.R=function(a){return Dyb(this,a|0)};d.Dea=function(){return this.Rb};d.mP=function(){return this.sg?this.aL:this.qca()};d.X=function(a){cxb(this,a)};d.Jea=function(){return this.Rb};d.kb=function(){return Bxb(this)};d.Ul=function(){return"T"};d.Ka=function(){return this.mP()};
d.go=function(a,b){if(null===a)throw Lb(Mb(),null);this.Rb=a;this.zp=b;$$.prototype.mC.call(this,a);return this};d.Eea=function(){return this.Rb};d.qca=function(){this.sg||(this.aL=A9(this.Rb,this.zp,0),this.sg=!0);return this.aL};d.Pu=function(){return this.zp};
d.$classData=q({hcb:0},!1,"scala.collection.mutable.IndexedSeqView$$anon$4",{hcb:1,H2:1,ln:1,f:1,Yf:1,Ha:1,za:1,cd:1,dd:1,Dc:1,Ec:1,uc:1,Kb:1,Jb:1,Ac:1,Cc:1,bd:1,ed:1,$c:1,zc:1,Bc:1,w:1,Nf:1,Xe:1,Ye:1,Hm:1,cl:1,dl:1,gl:1,hl:1,il:1,Jm:1,Im:1,el:1,fl:1,I2:1,KW:1,$q:1,jq:1,Ml:1,Nl:1,Il:1,kq:1,Kl:1,bl:1,Dk:1,kn:1,Ki:1,ml:1,Ll:1,ok:1,ygb:1,PEa:1,HEa:1,TEa:1});
function IAb(){this.na=this.CR=this.LM=this.oB=this.ev=this.jv=this.uv=this.HR=this.GB=this.EB=this.vN=this.lB=this.cv=this.tv=this.pv=this.UM=this.mN=this.KM=this.DN=this.BN=this.JB=this.nB=this.NM=this.uN=this.SR=this.AN=this.DB=this.RM=this.rN=this.SM=this.EN=this.oN=this.yN=this.iB=this.VM=this.ZM=this.kB=this.vv=this.cY=this.g9=this.p9=this.nZ=this.TY=this.RX=this.AZ=this.BZ=this.mZ=this.qZ=this.tZ=this.rZ=this.JZ=this.LZ=this.W8=this.m6=this.B5=this.U8=this.T8=this.IZ=this.KZ=this.yY=this.OZ=
this.PX=this.bY=this.uZ=this.cZ=this.GZ=this.eZ=this.DZ=this.jY=this.KX=this.PZ=this.YZ=this.eY=this.wZ=null}IAb.prototype=new r;IAb.prototype.constructor=IAb;function n8(){var a=S();if(null===S().eY&&null===S().eY){var b=S(),c=new SZ;if(null===a)throw Lb(Mb(),null);c.l=a;b.eY=c}return S().eY}d=IAb.prototype;d.H5=function(){null===S().kB&&(S().kB=(new wZ).vp(this))};d.a=function(){JAb=this;this.na=ju().na;return this};d.kZ=function(){null===S().pv&&this.yS();return S().pv};
d.CS=function(){null===S().tv&&(S().tv=(new HZ).Jv(this))};function Cub(){var a=S();if(null===S().IZ&&null===S().IZ){var b=S(),c=new x_;if(null===a)throw Lb(Mb(),null);c.l=a;b.IZ=c}return S().IZ}function Knb(){S();null===S().uZ&&null===S().uZ&&(S().uZ=new j_);return S().uZ}function Gub(){var a=S();if(null===S().eZ&&null===S().eZ){var b=S(),c=new $Z;if(null===a)throw Lb(Mb(),null);c.l=a;b.eZ=c}return S().eZ}
function Aub(){var a=S();if(null===S().rZ&&null===S().rZ){var b=S(),c=new f_;if(null===a)throw Lb(Mb(),null);c.l=a;b.rZ=c}return S().rZ}d.wb=function(){null===S().uv&&this.DS();return S().uv};d.FR=function(){null===S().ev&&(S().ev=(new sK).Br(this))};function Dub(){var a=S();if(null===S().BZ&&null===S().BZ){var b=S(),c=new u_;if(null===a)throw Lb(Mb(),null);c.l=a;b.BZ=c}return S().BZ}d.oh=function(){null===S().vv&&this.ES();return S().vv};
function Bub(){var a=S();if(null===S().mZ&&null===S().mZ){var b=S(),c=new b_;if(null===a)throw Lb(Mb(),null);c.l=a;b.mZ=c}return S().mZ}d.S5=function(){null===S().oB&&(S().oB=(new uK).Br(this))};function I8(){var a=S();if(null===S().tZ&&null===S().tZ){var b=S(),c=new g_;if(null===a)throw Lb(Mb(),null);c.l=a;b.tZ=c}return S().tZ}function Fub(){var a=S();if(null===S().DZ&&null===S().DZ){var b=S(),c=new v_;if(null===a)throw Lb(Mb(),null);c.l=a;b.DZ=c}return S().DZ}
d.ES=function(){null===S().vv&&(S().vv=(new AZ).vp(this))};function N_a(a){null===S().m6&&null===S().m6&&(S().m6=(new D_).pA(a));S()}function J_a(a){null===S().T8&&null===S().T8&&(S().T8=(new F_).pA(a));S()}function c9(){var a=S();if(null===S().cY&&null===S().cY){var b=S(),c=new RZ;if(null===a)throw Lb(Mb(),null);c.l=a;b.cY=c}return S().cY}function Fsb(){var a=S();if(null===S().JZ&&null===S().JZ){var b=S(),c=new y_;if(null===a)throw Lb(Mb(),null);c.l=a;b.JZ=c}return S().JZ}
d.DR=function(){null===S().cv&&(S().cv=(new EZ).Jv(this))};d.c9=function(){null===S().DB&&(S().DB=z_a(this))};function Wvb(){var a=S();if(null===S().wZ&&null===S().wZ){var b=S(),c=new k_;if(null===a)throw Lb(Mb(),null);c.l=a;b.wZ=c}return S().wZ}d.xv=function(){null===S().JB&&this.E9();return S().JB};function yub(){var a=S();if(null===S().PX&&null===S().PX){var b=S(),c=new tZ;if(null===a)throw Lb(Mb(),null);c.l=a;b.PX=c}return S().PX}d.yS=function(){null===S().pv&&(S().pv=(new GZ).Jv(this))};
function m8(){var a=S();if(null===S().RX&&null===S().RX){var b=S(),c=new CZ;if(null===a)throw Lb(Mb(),null);c.l=a;b.RX=c}return S().RX}d.ww=function(){null===S().jv&&this.VR();return S().jv};d.DS=function(){null===S().uv&&(S().uv=(new yK).Br(this))};d.tq=function(){null===S().lB&&this.M5();return S().lB};function Eub(){var a=S();if(null===S().AZ&&null===S().AZ){var b=S(),c=new p_;if(null===a)throw Lb(Mb(),null);c.l=a;b.AZ=c}return S().AZ}
function d9(){var a=S();if(null===S().KZ&&null===S().KZ){var b=S(),c=new z_;if(null===a)throw Lb(Mb(),null);c.l=a;b.KZ=c}return S().KZ}function K_a(a){null===S().U8&&null===S().U8&&(S().U8=(new H_).pA(a));S()}function Kub(){var a=S();if(null===S().yY&&null===S().yY){var b=S(),c=new WZ;if(null===a)throw Lb(Mb(),null);c.l=a;b.yY=c}return S().yY}d.i9=function(){null===S().GB&&(S().GB=Q_a(this))};d.sl=function(){null===S().ev&&this.FR();return S().ev};
function P_a(a){null===S().W8&&null===S().W8&&(S().W8=(new J_).pA(a));S()}d.xD=function(){null===S().oB&&this.S5();return S().oB};d.NX=function(){null===S().kB&&this.H5();return S().kB};function L_a(a){null===S().B5&&null===S().B5&&(S().B5=(new B_).pA(a));S()}function Hub(){var a=S();if(null===S().bY&&null===S().bY){var b=S(),c=new QZ;if(null===a)throw Lb(Mb(),null);c.l=a;b.bY=c}return S().bY}
function Mub(){var a=S();if(null===S().nZ&&null===S().nZ){var b=S(),c=new c_;if(null===a)throw Lb(Mb(),null);c.l=a;b.nZ=c}return S().nZ}d.LX=function(){null===S().cv&&this.DR();return S().cv};d.M5=function(){null===S().lB&&(S().lB=(new FZ).Jv(this))};d.CZ=function(){null===S().tv&&this.CS();return S().tv};d.R5=function(){null===S().nB&&(S().nB=u_a(this))};function Esb(){var a=S();null===S().LZ&&null===S().LZ&&(S().LZ=(new L_).pA(a));return S().LZ}d.E9=function(){null===S().JB&&(S().JB=(new U_).T0(this))};
d.et=function(){null===S().nB&&this.R5();return S().nB};function Lub(){var a=S();if(null===S().TY&&null===S().TY){var b=S(),c=new XZ;if(null===a)throw Lb(Mb(),null);c.l=a;b.TY=c}return S().TY}function Nnb(){var a=S();if(null===S().YZ&&null===S().YZ){var b=S(),c=new Y_;if(null===a)throw Lb(Mb(),null);c.l=a;b.YZ=c}return S().YZ}d.VR=function(){null===S().jv&&(S().jv=(new wK).Br(this))};
function H8(){var a=S();if(null===S().qZ&&null===S().qZ){var b=S(),c=new d_;if(null===a)throw Lb(Mb(),null);c.l=a;b.qZ=c}return S().qZ}d.FB=function(){null===S().EB&&this.d9();return S().EB};d.d9=function(){null===S().EB&&(S().EB=B_a(this))};function Iub(){var a=S();if(null===S().OZ&&null===S().OZ){var b=S(),c=new P_;if(null===a)throw Lb(Mb(),null);c.l=a;b.OZ=c}return S().OZ}d.wj=function(){null===S().GB&&this.i9();return S().GB};d.zS=function(){null===S().DB&&this.c9();return S().DB};
d.$classData=q({QJa:0},!1,"amf.client.convert.WebApiClientConverters$",{QJa:1,f:1,zeb:1,pha:1,Fb:1,nha:1,wha:1,vha:1,qha:1,Cha:1,zha:1,Dha:1,rha:1,uha:1,sha:1,Hha:1,Fha:1,tha:1,lha:1,Bha:1,xha:1,Eha:1,Gha:1,yha:1,mha:1,Aha:1,Qdb:1,jeb:1,seb:1,aeb:1,Vdb:1,Hdb:1,ieb:1,keb:1,$db:1,beb:1,deb:1,ceb:1,oeb:1,qeb:1,neb:1,peb:1,Udb:1,reb:1,Fdb:1,Pdb:1,eeb:1,Jdb:1,Wdb:1,meb:1,Ydb:1,leb:1,Tdb:1,Ddb:1,Edb:1,teb:1,Aeb:1,Rdb:1,ueb:1,feb:1,yeb:1,oha:1,Idb:1});var JAb=void 0;
function S(){JAb||(JAb=(new IAb).a());return JAb}iea||(iea=(new vk).a());m.MessageStyles=iea;m.ProfileNames=Dda();Bea||(Bea=(new Jk).a());m.AMF=Bea;Dea||(Dea=(new il).a());m.Core=Dea;Hea||(Hea=(new sl).a());m.plugins=Hea;xfa||(xfa=(new Co).a());m.ErrorHandler=xfa;m.client=m.client||{};m.client.model=m.client.model||{};var KAb=m.client.model;yfa||(yfa=(new Ho).a());KAb.DataTypes=yfa;Jfa||(Jfa=(new Oo).a());m.ValidationMode=Jfa;m.render=m.render||{};
m.render.RenderOptions=function(){var a=new Po;Po.prototype.a.call(a);return a};m.render.RenderOptions.prototype=Po.prototype;m.render=m.render||{};m.render.ShapeRenderOptions=function(){var a=new Vo;Vo.prototype.a.call(a);return a};m.render.ShapeRenderOptions.prototype=Vo.prototype;m.Resolver=function(a){var b=new ll;ll.prototype.e.call(b,a);return b};m.Resolver.prototype=ll.prototype;m.client=m.client||{};m.client.validate=m.client.validate||{};
m.client.validate.PayloadParsingResult=function(a,b){var c=new $o;$o.prototype.d6a.call(c,a,b);return c};m.client.validate.PayloadParsingResult.prototype=$o.prototype;m.client=m.client||{};m.client.validate=m.client.validate||{};m.client.validate.ValidationReport=function(a,b,c,e){var f=new cp;cp.prototype.w6a.call(f,!!a,b,c,e);return f};m.client.validate.ValidationReport.prototype=cp.prototype;m.client=m.client||{};m.client.validate=m.client.validate||{};
m.client.validate.ValidationResult=function(a,b,c,e,f,g,h){var k=new fp;fp.prototype.v6a.call(k,a,b,c,e,f,g,h);return k};m.client.validate.ValidationResult.prototype=fp.prototype;m.ExecutionLog=xp();m.parser=m.parser||{};m.parser.ParsingOptions=function(){var a=new cb;cb.prototype.a.call(a);return a};m.parser.ParsingOptions.prototype=cb.prototype;m.core=m.core||{};m.core.Vendor=Sp();m.ResolutionPipeline=fb();m.core=m.core||{};m.core.validation=m.core.validation||{};
m.core.validation.SeverityLevels=xc();m.Main=FCa();m.client=m.client||{};m.client.DefaultEnvironment=Pk();m.AmfGraphParser=function(){for(var a=new al,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:al.prototype.a.call(a);break;case 1:al.prototype.zu.call(a,e[0]);break;default:throw"No matching overload";}return a};m.AmfGraphParser.prototype=al.prototype;
m.Aml10Parser=function(){for(var a=new HK,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:HK.prototype.a.call(a);break;case 1:b=e[0];HK.prototype.e.call(a,b);break;case 2:b=e[0];HK.prototype.s6a.call(a,b,e[1]);break;default:throw"No matching overload";}return a};m.Aml10Parser.prototype=HK.prototype;
m.JsonPayloadParser=function(){for(var a=new Tk,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:Tk.prototype.a.call(a);break;case 1:Tk.prototype.zu.call(a,e[0]);break;default:throw"No matching overload";}return a};m.JsonPayloadParser.prototype=Tk.prototype;
m.Oas20Parser=function(){for(var a=new cl,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:cl.prototype.zu.call(a,e[0]);break;case 0:cl.prototype.a.call(a);break;default:throw"No matching overload";}return a};m.Oas20Parser.prototype=cl.prototype;
m.Oas20YamlParser=function(){for(var a=new JK,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:JK.prototype.zu.call(a,e[0]);break;case 0:JK.prototype.a.call(a);break;default:throw"No matching overload";}return a};m.Oas20YamlParser.prototype=JK.prototype;
m.Raml08Parser=function(){for(var a=new el,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:el.prototype.a.call(a);break;case 1:el.prototype.zu.call(a,e[0]);break;default:throw"No matching overload";}return a};m.Raml08Parser.prototype=el.prototype;
m.Raml10Parser=function(){for(var a=new hl,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:hl.prototype.zu.call(a,e[0]);break;case 0:hl.prototype.a.call(a);break;default:throw"No matching overload";}return a};m.Raml10Parser.prototype=hl.prototype;
m.RamlParser=function(){for(var a=new gl,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:gl.prototype.zu.call(a,e[0]);break;case 0:gl.prototype.a.call(a);break;default:throw"No matching overload";}return a};m.RamlParser.prototype=gl.prototype;
m.YamlPayloadParser=function(){for(var a=new Sk,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:Sk.prototype.zu.call(a,e[0]);break;case 0:Sk.prototype.a.call(a);break;default:throw"No matching overload";}return a};m.YamlPayloadParser.prototype=Sk.prototype;m.AmfGraphRenderer=function(){var a=new Zk;Zk.prototype.a.call(a);return a};m.AmfGraphRenderer.prototype=Zk.prototype;
m.Aml10Renderer=function(){for(var a=new PK,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:PK.prototype.e.call(a,e[0]);break;case 0:PK.prototype.a.call(a);break;default:throw"No matching overload";}return a};m.Aml10Renderer.prototype=PK.prototype;m.JsonPayloadRenderer=function(){var a=new QK;QK.prototype.a.call(a);return a};m.JsonPayloadRenderer.prototype=QK.prototype;m.JsonldRenderer=function(){var a=new RK;RK.prototype.a.call(a);return a};
m.JsonldRenderer.prototype=RK.prototype;m.Oas20Renderer=function(){var a=new bl;bl.prototype.a.call(a);return a};m.Oas20Renderer.prototype=bl.prototype;m.Raml08Renderer=function(){var a=new dl;dl.prototype.a.call(a);return a};m.Raml08Renderer.prototype=dl.prototype;m.Raml10Renderer=function(){var a=new fl;fl.prototype.a.call(a);return a};m.Raml10Renderer.prototype=fl.prototype;m.YamlPayloadRenderer=function(){var a=new SK;SK.prototype.a.call(a);return a};m.YamlPayloadRenderer.prototype=SK.prototype;
m.AmfGraphResolver=function(){var a=new Vk;Vk.prototype.a.call(a);return a};m.AmfGraphResolver.prototype=Vk.prototype;m.Oas20Resolver=function(){var a=new Wk;Wk.prototype.a.call(a);return a};m.Oas20Resolver.prototype=Wk.prototype;m.Raml08Resolver=function(){var a=new Xk;Xk.prototype.a.call(a);return a};m.Raml08Resolver.prototype=Xk.prototype;m.Raml10Resolver=function(){var a=new Yk;Yk.prototype.a.call(a);return a};m.Raml10Resolver.prototype=Yk.prototype;m.org=m.org||{};m.org.yaml=m.org.yaml||{};
m.org.yaml.builder=m.org.yaml.builder||{};m.org.yaml.builder.JsOutputBuilder=function(){var a=new eR;eR.prototype.a.call(a);return a};m.org.yaml.builder.JsOutputBuilder.prototype=eR.prototype;m.SHACLValidator=function(){var a=new yC;yC.prototype.a.call(a);return a};m.SHACLValidator.prototype=yC.prototype;m.ResourceNotFound=function(a){var b=new $_;$_.prototype.e.call(b,a);return b};m.ResourceNotFound.prototype=$_.prototype;m.ProfileName=function(a){var b=new zS;zS.prototype.e.call(b,a);return b};
m.ProfileName.prototype=zS.prototype;m.client=m.client||{};m.client.environment=m.client.environment||{};m.client.environment.Environment=function(){var a=new AK;AK.prototype.a.call(a);return a};m.client.environment.Environment.prototype=AK.prototype;m.model=m.model||{};m.model.Annotations=function(){var a=new Go;Go.prototype.a.call(a);return a};m.model.Annotations.prototype=Go.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.Settings=function(){var a=new In;In.prototype.a.call(a);return a};m.model.domain.Settings.prototype=In.prototype;m.client=m.client||{};m.client.remote=m.client.remote||{};m.client.remote.CachedReference=function(a,b,c){var e=new sZ;sZ.prototype.t6a.call(e,a,b,!!c);return e};m.client.remote.CachedReference.prototype=sZ.prototype;m.client=m.client||{};m.client.remote=m.client.remote||{};
m.client.remote.Content=function(a,b){for(var c=new j2,e=arguments.length|0,f=2,g=[];f<e;)g.push(arguments[f]),f=f+1|0;switch(g.length|0){case 0:j2.prototype.tc.call(c,a,b);break;case 1:j2.prototype.j1.call(c,a,b,g[0]);break;default:throw"No matching overload";}return c};m.client.remote.Content.prototype=j2.prototype;m.client=m.client||{};m.client.plugins=m.client.plugins||{};m.client.plugins.ValidationCandidate=function(a,b){var c=new T_;T_.prototype.i6a.call(c,a,b);return c};
m.client.plugins.ValidationCandidate.prototype=T_.prototype;m.client=m.client||{};m.client.plugins=m.client.plugins||{};m.client.plugins.ValidationShapeSet=function(a,b,c){b=new k2;k2.prototype.C6a.call(b,a,0,c);return b};m.client.plugins.ValidationShapeSet.prototype=k2.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.Variable=function(a,b){var c=new p2;p2.prototype.Kba.call(c,a,b);return c};m.model.domain.Variable.prototype=p2.prototype;m.core=m.core||{};
m.core.parser=m.core.parser||{};m.core.parser.Range=function(a,b){var c=new jT;jT.prototype.wU.call(c,a,b);return c};m.core.parser.Range.prototype=jT.prototype;m.org=m.org||{};m.org.mulesoft=m.org.mulesoft||{};m.org.mulesoft.common=m.org.mulesoft.common||{};m.org.mulesoft.common.io=m.org.mulesoft.common.io||{};m.org.mulesoft.common.io.LimitedStringBuffer=function(a){var b=new y4;y4.prototype.$d.call(b,a|0);return b};m.org.mulesoft.common.io.LimitedStringBuffer.prototype=y4.prototype;
m.model=m.model||{};m.model.document=m.model.document||{};m.model.document.DialectFragment=function(){var a=new WA;WA.prototype.a.call(a);return a};m.model.document.DialectFragment.prototype=WA.prototype;m.model=m.model||{};m.model.document=m.model.document||{};m.model.document.DialectInstanceFragment=function(){var a=new dB;dB.prototype.a.call(a);return a};m.model.document.DialectInstanceFragment.prototype=dB.prototype;m.model=m.model||{};m.model.document=m.model.document||{};
m.model.document.DialectInstanceLibrary=function(){var a=new eB;eB.prototype.a.call(a);return a};m.model.document.DialectInstanceLibrary.prototype=eB.prototype;m.model=m.model||{};m.model.document=m.model.document||{};m.model.document.DialectLibrary=function(){var a=new YA;YA.prototype.a.call(a);return a};m.model.document.DialectLibrary.prototype=YA.prototype;m.model=m.model||{};m.model.document=m.model.document||{};m.model.document.Vocabulary=function(){var a=new SA;SA.prototype.a.call(a);return a};
m.model.document.Vocabulary.prototype=SA.prototype;m.core=m.core||{};m.core.parser=m.core.parser||{};m.core.parser.Position=function(a,b){var c=new kT;kT.prototype.La.call(c,a|0,b|0);return c};m.core.parser.Position.prototype=kT.prototype;m.model=m.model||{};m.model.document=m.model.document||{};m.model.document.DialectInstance=function(){var a=new aB;aB.prototype.a.call(a);return a};m.model.document.DialectInstance.prototype=aB.prototype;m.model=m.model||{};m.model.document=m.model.document||{};
m.model.document.DialectInstancePatch=function(){var a=new Y6;Y6.prototype.a.call(a);return a};m.model.document.DialectInstancePatch.prototype=Y6.prototype;m.model=m.model||{};m.model.document=m.model.document||{};m.model.document.Document=function(){for(var a=new Ql,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:Ql.prototype.f6a.call(a,e[0]);break;case 0:Ql.prototype.a.call(a);break;default:throw"No matching overload";}return a};
m.model.document.Document.prototype=Ql.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.AbstractDeclaration=function(a){var b=new $6;$6.prototype.aba.call(b,a);return b};m.model.domain.AbstractDeclaration.prototype=$6.prototype;m.JsBrowserHttpResourceLoader=function(){var a=new O0;O0.prototype.a.call(a);return a};m.JsBrowserHttpResourceLoader.prototype=O0.prototype;m.JsServerFileResourceLoader=function(){var a=new P0;P0.prototype.a.call(a);return a};
m.JsServerFileResourceLoader.prototype=P0.prototype;m.JsServerHttpResourceLoader=function(){var a=new Q0;Q0.prototype.a.call(a);return a};m.JsServerHttpResourceLoader.prototype=Q0.prototype;m.org=m.org||{};m.org.mulesoft=m.org.mulesoft||{};m.org.mulesoft.common=m.org.mulesoft.common||{};m.org.mulesoft.common.io=m.org.mulesoft.common.io||{};m.org.mulesoft.common.io.LimitReachedException=function(){var a=new z4;z4.prototype.a.call(a);return a};
m.org.mulesoft.common.io.LimitReachedException.prototype=z4.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.AnyShape=function(){var a=new Qn;Qn.prototype.a.call(a);return a};m.model.domain.AnyShape.prototype=Qn.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.ClassTerm=function(){var a=new BA;BA.prototype.a.call(a);return a};m.model.domain.ClassTerm.prototype=BA.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.CreativeWork=function(){var a=new Yn;Yn.prototype.a.call(a);return a};m.model.domain.CreativeWork.prototype=Yn.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.DialectDomainElement=function(){var a=new yA;yA.prototype.a.call(a);return a};m.model.domain.DialectDomainElement.prototype=yA.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.DocumentMapping=function(){var a=new PA;PA.prototype.a.call(a);return a};
m.model.domain.DocumentMapping.prototype=PA.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.DocumentsModel=function(){var a=new QA;QA.prototype.a.call(a);return a};m.model.domain.DocumentsModel.prototype=QA.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.DomainExtension=function(){for(var a=new cm,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:cm.prototype.WG.call(a,e[0]);break;case 0:cm.prototype.a.call(a);break;default:throw"No matching overload";}return a};m.model.domain.DomainExtension.prototype=cm.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.Encoding=function(){var a=new mn;mn.prototype.a.call(a);return a};m.model.domain.Encoding.prototype=mn.prototype;
m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.External=function(){var a=new CA;CA.prototype.a.call(a);return a};m.model.domain.External.prototype=CA.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.ExternalDomainElement=function(){for(var a=new Xl,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:Xl.prototype.Waa.call(a,e[0]);break;case 0:Xl.prototype.a.call(a);break;default:throw"No matching overload";}return a};
m.model.domain.ExternalDomainElement.prototype=Xl.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.IriTemplateMapping=function(){var a=new to;to.prototype.a.call(a);return a};m.model.domain.IriTemplateMapping.prototype=to.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.NodeMapping=function(){var a=new DA;DA.prototype.a.call(a);return a};m.model.domain.NodeMapping.prototype=DA.prototype;m.model=m.model||{};
m.model.domain=m.model.domain||{};m.model.domain.ParametrizedSecurityScheme=function(){var a=new sn;sn.prototype.a.call(a);return a};m.model.domain.ParametrizedSecurityScheme.prototype=sn.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.PropertyDependencies=function(){var a=new ko;ko.prototype.a.call(a);return a};m.model.domain.PropertyDependencies.prototype=ko.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.PropertyMapping=function(){var a=new EA;EA.prototype.a.call(a);return a};m.model.domain.PropertyMapping.prototype=EA.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.PublicNodeMapping=function(){var a=new NA;NA.prototype.a.call(a);return a};m.model.domain.PublicNodeMapping.prototype=NA.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.Request=function(){var a=new An;An.prototype.a.call(a);return a};
m.model.domain.Request.prototype=An.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.Scope=function(){var a=new Gn;Gn.prototype.a.call(a);return a};m.model.domain.Scope.prototype=Gn.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.Server=function(){var a=new gn;gn.prototype.a.call(a);return a};m.model.domain.Server.prototype=gn.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.ShapeExtension=function(){for(var a=new O_,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:O_.prototype.a.call(a);break;case 1:O_.prototype.$aa.call(a,e[0]);break;default:throw"No matching overload";}return a};m.model.domain.ShapeExtension.prototype=O_.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.VocabularyReference=function(){var a=new RA;RA.prototype.a.call(a);return a};
m.model.domain.VocabularyReference.prototype=RA.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.XMLSerializer=function(){var a=new io;io.prototype.a.call(a);return a};m.model.domain.XMLSerializer.prototype=io.prototype;m.model=m.model||{};m.model.document=m.model.document||{};
m.model.document.Module=function(){for(var a=new Ml,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:Ml.prototype.a.call(a);break;case 1:Ml.prototype.Vaa.call(a,e[0]);break;default:throw"No matching overload";}return a};m.model.document.Module.prototype=Ml.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.ApiKeySettings=function(){var a=new C_;C_.prototype.a.call(a);return a};m.model.domain.ApiKeySettings.prototype=C_.prototype;
m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.ArrayNode=function(){for(var a=new km,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:km.prototype.sU.call(a,e[0]);break;case 0:km.prototype.a.call(a);break;default:throw"No matching overload";}return a};m.model.domain.ArrayNode.prototype=km.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.Callback=function(){var a=new kn;kn.prototype.a.call(a);return a};
m.model.domain.Callback.prototype=kn.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.CustomDomainProperty=function(){for(var a=new am,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:am.prototype.a.call(a);break;case 1:am.prototype.SO.call(a,e[0]);break;default:throw"No matching overload";}return a};m.model.domain.CustomDomainProperty.prototype=am.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.DatatypePropertyTerm=function(){var a=new HA;HA.prototype.a.call(a);return a};m.model.domain.DatatypePropertyTerm.prototype=HA.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.EndPoint=function(){var a=new Vm;Vm.prototype.a.call(a);return a};m.model.domain.EndPoint.prototype=Vm.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.HttpSettings=function(){var a=new E_;E_.prototype.a.call(a);return a};
m.model.domain.HttpSettings.prototype=E_.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.License=function(){var a=new Ym;Ym.prototype.a.call(a);return a};m.model.domain.License.prototype=Ym.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.OAuth1Settings=function(){var a=new G_;G_.prototype.a.call(a);return a};m.model.domain.OAuth1Settings.prototype=G_.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.OAuth2Settings=function(){var a=new I_;I_.prototype.a.call(a);return a};m.model.domain.OAuth2Settings.prototype=I_.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.ObjectNode=function(){for(var a=new gm,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:gm.prototype.a.call(a);break;case 1:gm.prototype.xE.call(a,e[0]);break;default:throw"No matching overload";}return a};m.model.domain.ObjectNode.prototype=gm.prototype;
m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.ObjectPropertyTerm=function(){var a=new GA;GA.prototype.a.call(a);return a};m.model.domain.ObjectPropertyTerm.prototype=GA.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.OpenIdConnectSettings=function(){var a=new K_;K_.prototype.a.call(a);return a};m.model.domain.OpenIdConnectSettings.prototype=K_.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.Operation=function(){var a=new an;an.prototype.a.call(a);return a};m.model.domain.Operation.prototype=an.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.Organization=function(){var a=new cn;cn.prototype.a.call(a);return a};m.model.domain.Organization.prototype=cn.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.Parameter=function(){var a=new en;en.prototype.a.call(a);return a};m.model.domain.Parameter.prototype=en.prototype;
m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.Payload=function(){var a=new xn;xn.prototype.a.call(a);return a};m.model.domain.Payload.prototype=xn.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.Response=function(){var a=new Dn;Dn.prototype.a.call(a);return a};m.model.domain.Response.prototype=Dn.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.ScalarNode=function(){for(var a=new hm,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:b=e[0];hm.prototype.RO.call(a,b);break;case 0:hm.prototype.a.call(a);break;case 2:b=e[0];hm.prototype.tc.call(a,b,e[1]);break;default:throw"No matching overload";}return a};m.model.domain.ScalarNode.prototype=hm.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.SecurityScheme=function(){var a=new un;un.prototype.a.call(a);return a};
m.model.domain.SecurityScheme.prototype=un.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.TemplatedLink=function(){var a=new ro;ro.prototype.a.call(a);return a};m.model.domain.TemplatedLink.prototype=ro.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.WebApi=function(){var a=new Ln;Ln.prototype.a.call(a);return a};m.model.domain.WebApi.prototype=Ln.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.AnnotationTypeDeclaration=function(){var a=new xm;xm.prototype.a.call(a);return a};m.model.domain.AnnotationTypeDeclaration.prototype=xm.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.DataType=function(){var a=new zm;zm.prototype.a.call(a);return a};m.model.domain.DataType.prototype=zm.prototype;m.model=m.model||{};m.model.document=m.model.document||{};m.model.document.Dialect=function(){var a=new UA;UA.prototype.a.call(a);return a};
m.model.document.Dialect.prototype=UA.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.DocumentationItem=function(){var a=new Gm;Gm.prototype.a.call(a);return a};m.model.domain.DocumentationItem.prototype=Gm.prototype;m.model=m.model||{};m.model.document=m.model.document||{};
m.model.document.ExternalFragment=function(){for(var a=new Vl,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 1:Vl.prototype.Taa.call(a,e[0]);break;case 0:Vl.prototype.a.call(a);break;default:throw"No matching overload";}return a};m.model.document.ExternalFragment.prototype=Vl.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.NamedExample=function(){var a=new Im;Im.prototype.a.call(a);return a};
m.model.domain.NamedExample.prototype=Im.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.PayloadFragment=function(a,b){var c=new Em;if(a&&a.$classData&&a.$classData.v.$6)Em.prototype.h6a.call(c,a,b);else if(a&&a.$classData&&a.$classData.v.Z6)Em.prototype.g6a.call(c,a,b);else if(a&&a.$classData&&a.$classData.v.X6)Em.prototype.e6a.call(c,a,b);else throw"No matching overload";return c};m.model.domain.PayloadFragment.prototype=Em.prototype;m.model=m.model||{};
m.model.domain=m.model.domain||{};m.model.domain.ResourceTypeFragment=function(){var a=new Km;Km.prototype.a.call(a);return a};m.model.domain.ResourceTypeFragment.prototype=Km.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.SecuritySchemeFragment=function(){var a=new Mm;Mm.prototype.a.call(a);return a};m.model.domain.SecuritySchemeFragment.prototype=Mm.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.TraitFragment=function(){var a=new Om;Om.prototype.a.call(a);return a};m.model.domain.TraitFragment.prototype=Om.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.Example=function(){var a=new $n;$n.prototype.a.call(a);return a};m.model.domain.Example.prototype=$n.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.ParametrizedResourceType=function(){var a=new on;on.prototype.a.call(a);return a};
m.model.domain.ParametrizedResourceType.prototype=on.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.ParametrizedTrait=function(){var a=new qn;qn.prototype.a.call(a);return a};m.model.domain.ParametrizedTrait.prototype=qn.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.Extension=function(){for(var a=new Qm,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:Qm.prototype.a.call(a);break;case 1:Qm.prototype.mba.call(a,e[0]);break;default:throw"No matching overload";}return a};m.model.domain.Extension.prototype=Qm.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.Overlay=function(){for(var a=new Sm,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:Sm.prototype.a.call(a);break;case 1:Sm.prototype.nba.call(a,e[0]);break;default:throw"No matching overload";}return a};m.model.domain.Overlay.prototype=Sm.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.PropertyShape=function(){for(var a=new em,b=arguments.length|0,c=0,e=[];c<b;)e.push(arguments[c]),c=c+1|0;switch(e.length|0){case 0:em.prototype.a.call(a);break;case 1:em.prototype.Zaa.call(a,e[0]);break;default:throw"No matching overload";}return a};m.model.domain.PropertyShape.prototype=em.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.RecursiveShape=function(a){var b=new oo;oo.prototype.sAa.call(b,a);return b};
m.model.domain.RecursiveShape.prototype=oo.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.ResourceType=function(){var a=new Pn;Pn.prototype.a.call(a);return a};m.model.domain.ResourceType.prototype=Pn.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.Trait=function(){var a=new Nn;Nn.prototype.a.call(a);return a};m.model.domain.Trait.prototype=Nn.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.FileShape=function(){var a=new bo;bo.prototype.a.call(a);return a};m.model.domain.FileShape.prototype=bo.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.NilShape=function(){var a=new Rn;Rn.prototype.a.call(a);return a};m.model.domain.NilShape.prototype=Rn.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.NodeShape=function(){var a=new co;co.prototype.a.call(a);return a};m.model.domain.NodeShape.prototype=co.prototype;
m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.ScalarShape=function(){var a=new eo;eo.prototype.a.call(a);return a};m.model.domain.ScalarShape.prototype=eo.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.SchemaShape=function(){var a=new go;go.prototype.a.call(a);return a};m.model.domain.SchemaShape.prototype=go.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};
m.model.domain.UnionShape=function(){var a=new mo;mo.prototype.a.call(a);return a};m.model.domain.UnionShape.prototype=mo.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.ArrayShape=function(){var a=new Sn;Sn.prototype.a.call(a);return a};m.model.domain.ArrayShape.prototype=Sn.prototype;m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.TupleShape=function(){var a=new Vn;Vn.prototype.a.call(a);return a};m.model.domain.TupleShape.prototype=Vn.prototype;
m.model=m.model||{};m.model.domain=m.model.domain||{};m.model.domain.MatrixShape=function(){var a=new Tn;Tn.prototype.a.call(a);return a};m.model.domain.MatrixShape.prototype=Tn.prototype;


}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"ajv":44,"amf-shacl-node":86,"fs":1,"http":18,"https":7,"os":10,"path":11}],86:[function(require,module,exports){
(function (global,Buffer,setImmediate){
(function() {
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.SHACLValidator=e()}}(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
/**
 * Created by antoniogarrote on 08/05/2017.
 */

var jsonld = _dereq_("jsonld");
var ValidationReport = _dereq_("./src/validation-report");
var debug = _dereq_("debug")("index");
var error = _dereq_("debug")("index::error");
var $rdf = _dereq_("rdflib");

var TermFactory = _dereq_("./src/rdfquery/term-factory");
var RDFQuery = _dereq_("./src/rdfquery");
var T = RDFQuery.T;
var ShapesGraph = _dereq_("./src/shapes-graph");
var ValidationEngine = _dereq_("./src/validation-engine");
var rdflibgraph = _dereq_("./src/rdflib-graph");
var RDFLibGraph = rdflibgraph.RDFLibGraph;
var fs = _dereq_("fs");

/********************************/
/* Vocabularies                 */
/********************************/
var vocabs = _dereq_("./src/vocabularies");
var shapesGraphURI = "urn:x-shacl:shapesGraph";
var dataGraphURI = "urn:x-shacl:dataGraph";
var shaclFile = vocabs.shacl;
var dashFile = vocabs.dash;
/********************************/
/********************************/


// List utility

var createRDFListNode = function(store, items, index) {
    if (index >= items.length) {
        return T("rdf:nil");
    }
    else {
        var bnode = TermFactory.blankNode();
        store.add(bnode, T("rdf:first"), items[index]);
        store.add(bnode, T("rdf:rest"), createRDFListNode(store, items, index + 1));
        return bnode;
    }
};


// SHACL Interface
/**
 * SHACL Validator.
 * Main interface with the library
 */
var SHACLValidator = function() {
    this.$data = new RDFLibGraph();
    this.$shapes = new RDFLibGraph();
    this.depth = 0;
    this.results = null;
    this.validationEngine = null;
    this.validationError = null;
    this.sequence = null;
    this.shapesGraph = new ShapesGraph(this);
    this.functionsRegistry = _dereq_("./src/libraries");
};

SHACLValidator.prototype.compareNodes = function(node1, node2) {
    // TODO: Does not handle the case where nodes cannot be compared
    if (node1 && node2 && node1.isLiteral() && node2.isLiteral()) {
        if ((node1.datatype != null) !== (node2.datatype != null)) {
            return null;
        } else if (node1.datatype && node2.datatype && node1.datatype.value !== node2.datatype.value) {
            return null;
        }
    }
    return RDFQuery.compareTerms(node1, node2);
};

SHACLValidator.prototype.nodeConformsToShape = function(focusNode, shapeNode) {
    var shape = this.shapesGraph.getShape(shapeNode);
    try {
        this.depth++;
        var foundViolations = this.validationEngine.validateNodeAgainstShape(focusNode, shape, this.$data);
        return !foundViolations;
    }
    finally {
        this.depth--;
    }
}

// Data graph and Shapes graph logic


SHACLValidator.prototype.parseDataGraph = function(text, mediaType, andThen) {
    this.$data.clear();
    this.$data.loadGraph(text, dataGraphURI, mediaType, function () {
        andThen();
    }, function (ex) {
        error(ex);
    });
};

/**
 * Reloads the shapes graph.
 * It will load SHACL and DASH shapes constraints.
 */
SHACLValidator.prototype.loadDataGraph = function(rdfGraph, andThen) {
    this.$data.clear();
    this.$data.loadMemoryGraph(dataGraphURI, rdfGraph, function () {
        andThen();
    }, function(ex) {
        error(ex);
    });
};


/**
 * Validates the data graph against the shapes graph using the validation engine
 */
SHACLValidator.prototype.updateValidationEngine = function() {
    results = [];
    this.validationEngine = new ValidationEngine(this);
    try {
        this.validationError = null;
        if (this.sequence) {
            this.sequence = [];
        }
        this.validationEngine.validateAll(this.$data);
    }
    catch (ex) {
        this.validationError = ex;
    }
};

/**
 * Checks for a validation error or results in the validation
 * engine to build the RDF graph with the validation report.
 * It returns a ValidationReport object wrapping the RDF graph
 */
SHACLValidator.prototype.showValidationResults = function(cb) {
    if (this.validationError) {
        error("Validation Failure: " + this.validationError);
        throw (this.validationError);
    }
    else {

        var resultGraph = $rdf.graph();
        var reportNode = TermFactory.blankNode("report");
        resultGraph.add(reportNode, T("rdf:type"), T("sh:ValidationReport"));
        resultGraph.add(reportNode, T("sh:conforms"), T("" + (this.validationEngine.results.length == 0)));
        var nodes = {};

        for (var i = 0; i < this.validationEngine.results.length; i++) {
            var result = this.validationEngine.results[i];
            if (nodes[result[0].toString()] == null) {
                nodes[result[0].toString()] = true;
                resultGraph.add(reportNode, T("sh:result"), result[0]);
            }
            resultGraph.add(result[0], result[1], result[2]);
        }

        // Unsupported bug in JSON parser bug workaround
        var oldToString = resultGraph.toString;
        resultGraph.toString = function () {
            var text = oldToString.call(resultGraph);
            text = text.replace(/^\{/, "").replace(/\}$/, "");
            return text;
        };
        //////////////////

        jsonld.fromRDF(resultGraph.toNT(), {}, function (err, doc) {
            if (err != null) {
                cb(err);
            } else {
                jsonld.flatten(doc, function (err, result) {
                    if (err != null) {
                        cb(err);
                    } else {
                        cb(null, new ValidationReport(result));
                    }
                });
            }
        });
    }
};

/**
 * Reloads the shapes graph.
 * It will load SHACL and DASH shapes constraints.
 */
SHACLValidator.prototype.parseShapesGraph = function(text, mediaType, andThen) {
    var handleError = function (ex) {
        error(ex);
    };
    var that = this;
    this.$shapes.clear();
    this.$shapes.loadGraph(text, shapesGraphURI, mediaType, function () {
        that.$shapes.loadGraph(shaclFile, "http://shacl.org", "text/turtle", function () {
            that.$shapes.loadGraph(dashFile, "http://datashapes.org/dash", "text/turtle", function () {
                andThen();
            });
        }, handleError);
    }, handleError);
};

/**
 * Reloads the shapes graph.
 * It will load SHACL and DASH shapes constraints.
 */
SHACLValidator.prototype.loadShapesGraph = function(rdfGraph, andThen) {
    var handleError = function (ex) {
        error(ex);
    };
    var that = this;
    this.$shapes.clear();
    this.$shapes.loadMemoryGraph(shapesGraphURI, rdfGraph, function () {
        that.$shapes.loadGraph(shaclFile, "http://shacl.org", "text/turtle", function () {
            that.$shapes.loadGraph(dashFile, "http://datashapes.org/dash", "text/turtle", function () {
                andThen();
            });
        }, handleError);
    }, handleError);
};


// Update validations

/**
 * Updates the data graph and validate it against the current data shapes
 */
SHACLValidator.prototype.updateDataGraph = function(text, mediaType, cb) {
    var startTime = new Date().getTime();
    this.parseDataGraph(text, mediaType, this.onDataGraphChange(startTime, cb));
};

/**
 * Updates the data graph and validate it against the current data shapes
 */
SHACLValidator.prototype.updateDataGraphRdfModel = function(dataRdfGraph, cb) {
    var startTime = new Date().getTime();
    this.loadDataGraph(dataRdfGraph, this.onDataGraphChange(startTime, cb));
};

SHACLValidator.prototype.onDataGraphChange = function(startTime, cb) {
    var that = this;
    return function() {
        var midTime = new Date().getTime();
        that.updateValidationEngine();
        var endTime = new Date().getTime();
        debug("Parsing took " + (midTime - startTime) + " ms. Validating the data took " + (endTime - midTime) + " ms.");
        try {
            that.showValidationResults(cb);
        } catch (e) {
            cb(e, null);
        }
    }
}

/**
 *  Updates the shapes graph and validates it against the current data graph
 */
SHACLValidator.prototype.updateShapesGraph = function(shapes, mediaType, cb) {
    var startTime = new Date().getTime();
    this.parseShapesGraph(shapes, mediaType, this.onShapesGraphChange(startTime, cb));
};

/**
 *  Updates the shapes graph from a memory model, and validates it against the current data graph
 */
SHACLValidator.prototype.updateShapesGraphRdfModel = function(shapesRdfGraph, cb) {
    var startTime = new Date().getTime();
    this.loadShapesGraph(shapesRdfGraph, this.onShapesGraphChange(startTime, cb));
};

SHACLValidator.prototype.onShapesGraphChange = function(startTime, cb) {
    var that = this;
    return function() {
        var midTime = new Date().getTime();
        that.shapesGraph = new ShapesGraph(that);
        var midTime2 = new Date().getTime();
        that.shapesGraph.loadJSLibraries(function (err) {
            if (err) {
                cb(err, null);
            } else {
                that.updateValidationEngine();
                var endTime = new Date().getTime();
                debug("Parsing took " + (midTime - startTime) + " ms. Preparing the shapes took " + (midTime2 - midTime)
                    + " ms. Validation the data took " + (endTime - midTime2) + " ms.");
                try {

                    that.showValidationResults(cb);
                } catch (e) {
                    cb(e, null);
                }
            }
        });
    }
}

/**
 * Validates the provided data graph against the provided shapes graph
 */
SHACLValidator.prototype.validate = function (data, dataMediaType, shapes, shapesMediaType, cb) {
    var that = this;
    this.updateDataGraph(data, dataMediaType, function (e) {
        if (e != null) {
            cb(e, null);
        } else {
            that.updateShapesGraph(shapes, shapesMediaType, function (e, result) {
                if (e) {
                    cb(e, null);
                } else {
                    cb(null, result);
                }
            });
        }
    });
};


/**
* Validates the provided data graph against the provided shapes graph
*/
SHACLValidator.prototype.validateFromModels = function (dataRdfGraph, shapesRdfGraph, cb) {
    var that = this;
    this.updateDataGraphRdfModel(dataRdfGraph, function (e) {
        if (e != null) {
            cb(e, null);
        } else {
            that.updateShapesGraphRdfModel(shapesRdfGraph, function (e, result) {
                if (e) {
                    cb(e, null);
                } else {
                    cb(null, result);
                }
            });
        }
    });
};

/**
 * Saves a cached version of a remote JS file used during validation
 * @param url URL of the library to cache
 * @param localFile path to a local version of the file identified by url
 * @param cb invoked with an optional error when registration of the cached function has finished
 */
SHACLValidator.prototype.registerJSLibrary = function(url, localFile, cb){
    var that = this;
    fs.readFile(localFile, function(error, buffer) {
        if (error != null) {
            cb(error)
        } else {
            that.functionsRegistry[url]  = buffer.toString();
            cb(null)
        }
    });
};

/**
 * Saves a some JS library code using the provided URL that can be used during validation
 * @param url URL of the library to register
 * @param libraryCode JS code for the library being registered
  */
SHACLValidator.prototype.registerJSCode = function(url, jsCode){
    this.functionsRegistry[url] =  jsCode;
};

// Expose the RDF interface
SHACLValidator.$rdf = $rdf;
SHACLValidator.jsonld = jsonld;

module.exports = SHACLValidator;

},{"./src/libraries":83,"./src/rdflib-graph":84,"./src/rdfquery":85,"./src/rdfquery/term-factory":86,"./src/shapes-graph":87,"./src/validation-engine":88,"./src/validation-report":90,"./src/vocabularies":91,"debug":12,"fs":5,"jsonld":20,"rdflib":43}],2:[function(_dereq_,module,exports){
;(function () {

  var object = typeof exports != 'undefined' ? exports : this; // #8: web workers
  var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';

  function InvalidCharacterError(message) {
    this.message = message;
  }
  InvalidCharacterError.prototype = new Error;
  InvalidCharacterError.prototype.name = 'InvalidCharacterError';

  // encoder
  // [https://gist.github.com/999166] by [https://github.com/nignag]
  object.btoa || (
  object.btoa = function (input) {
    for (
      // initialize result and counter
      var block, charCode, idx = 0, map = chars, output = '';
      // if the next input index does not exist:
      //   change the mapping table to "="
      //   check if d has no fractional digits
      input.charAt(idx | 0) || (map = '=', idx % 1);
      // "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8
      output += map.charAt(63 & block >> 8 - idx % 1 * 8)
    ) {
      charCode = input.charCodeAt(idx += 3/4);
      if (charCode > 0xFF) {
        throw new InvalidCharacterError("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");
      }
      block = block << 8 | charCode;
    }
    return output;
  });

  // decoder
  // [https://gist.github.com/1020396] by [https://github.com/atk]
  object.atob || (
  object.atob = function (input) {
    input = input.replace(/=+$/, '');
    if (input.length % 4 == 1) {
      throw new InvalidCharacterError("'atob' failed: The string to be decoded is not correctly encoded.");
    }
    for (
      // initialize result and counters
      var bc = 0, bs, buffer, idx = 0, output = '';
      // get next character
      buffer = input.charAt(idx++);
      // character found in table? initialize bit storage and add its ascii value;
      ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,
        // and if not first of each 4 characters,
        // convert the first 8 bits to one ascii character
        bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0
    ) {
      // try to find character in table (0-63, not found => -1)
      buffer = chars.indexOf(buffer);
    }
    return output;
  });

}());

},{}],3:[function(_dereq_,module,exports){
(function (process){
/*!
 * async
 * https://github.com/caolan/async
 *
 * Copyright 2010-2014 Caolan McMahon
 * Released under the MIT license
 */
/*jshint onevar: false, indent:4 */
/*global setImmediate: false, setTimeout: false, console: false */
(function () {

    var async = {};

    // global on the server, window in the browser
    var root, previous_async;

    root = this;
    if (root != null) {
      previous_async = root.async;
    }

    async.noConflict = function () {
        root.async = previous_async;
        return async;
    };

    function only_once(fn) {
        var called = false;
        return function() {
            if (called) throw new Error("Callback was already called.");
            called = true;
            fn.apply(root, arguments);
        }
    }

    //// cross-browser compatiblity functions ////

    var _toString = Object.prototype.toString;

    var _isArray = Array.isArray || function (obj) {
        return _toString.call(obj) === '[object Array]';
    };

    var _each = function (arr, iterator) {
        for (var i = 0; i < arr.length; i += 1) {
            iterator(arr[i], i, arr);
        }
    };

    var _map = function (arr, iterator) {
        if (arr.map) {
            return arr.map(iterator);
        }
        var results = [];
        _each(arr, function (x, i, a) {
            results.push(iterator(x, i, a));
        });
        return results;
    };

    var _reduce = function (arr, iterator, memo) {
        if (arr.reduce) {
            return arr.reduce(iterator, memo);
        }
        _each(arr, function (x, i, a) {
            memo = iterator(memo, x, i, a);
        });
        return memo;
    };

    var _keys = function (obj) {
        if (Object.keys) {
            return Object.keys(obj);
        }
        var keys = [];
        for (var k in obj) {
            if (obj.hasOwnProperty(k)) {
                keys.push(k);
            }
        }
        return keys;
    };

    //// exported async module functions ////

    //// nextTick implementation with browser-compatible fallback ////
    if (typeof process === 'undefined' || !(process.nextTick)) {
        if (typeof setImmediate === 'function') {
            async.nextTick = function (fn) {
                // not a direct alias for IE10 compatibility
                setImmediate(fn);
            };
            async.setImmediate = async.nextTick;
        }
        else {
            async.nextTick = function (fn) {
                setTimeout(fn, 0);
            };
            async.setImmediate = async.nextTick;
        }
    }
    else {
        async.nextTick = process.nextTick;
        if (typeof setImmediate !== 'undefined') {
            async.setImmediate = function (fn) {
              // not a direct alias for IE10 compatibility
              setImmediate(fn);
            };
        }
        else {
            async.setImmediate = async.nextTick;
        }
    }

    async.each = function (arr, iterator, callback) {
        callback = callback || function () {};
        if (!arr.length) {
            return callback();
        }
        var completed = 0;
        _each(arr, function (x) {
            iterator(x, only_once(done) );
        });
        function done(err) {
          if (err) {
              callback(err);
              callback = function () {};
          }
          else {
              completed += 1;
              if (completed >= arr.length) {
                  callback();
              }
          }
        }
    };
    async.forEach = async.each;

    async.eachSeries = function (arr, iterator, callback) {
        callback = callback || function () {};
        if (!arr.length) {
            return callback();
        }
        var completed = 0;
        var iterate = function () {
            iterator(arr[completed], function (err) {
                if (err) {
                    callback(err);
                    callback = function () {};
                }
                else {
                    completed += 1;
                    if (completed >= arr.length) {
                        callback();
                    }
                    else {
                        iterate();
                    }
                }
            });
        };
        iterate();
    };
    async.forEachSeries = async.eachSeries;

    async.eachLimit = function (arr, limit, iterator, callback) {
        var fn = _eachLimit(limit);
        fn.apply(null, [arr, iterator, callback]);
    };
    async.forEachLimit = async.eachLimit;

    var _eachLimit = function (limit) {

        return function (arr, iterator, callback) {
            callback = callback || function () {};
            if (!arr.length || limit <= 0) {
                return callback();
            }
            var completed = 0;
            var started = 0;
            var running = 0;

            (function replenish () {
                if (completed >= arr.length) {
                    return callback();
                }

                while (running < limit && started < arr.length) {
                    started += 1;
                    running += 1;
                    iterator(arr[started - 1], function (err) {
                        if (err) {
                            callback(err);
                            callback = function () {};
                        }
                        else {
                            completed += 1;
                            running -= 1;
                            if (completed >= arr.length) {
                                callback();
                            }
                            else {
                                replenish();
                            }
                        }
                    });
                }
            })();
        };
    };


    var doParallel = function (fn) {
        return function () {
            var args = Array.prototype.slice.call(arguments);
            return fn.apply(null, [async.each].concat(args));
        };
    };
    var doParallelLimit = function(limit, fn) {
        return function () {
            var args = Array.prototype.slice.call(arguments);
            return fn.apply(null, [_eachLimit(limit)].concat(args));
        };
    };
    var doSeries = function (fn) {
        return function () {
            var args = Array.prototype.slice.call(arguments);
            return fn.apply(null, [async.eachSeries].concat(args));
        };
    };


    var _asyncMap = function (eachfn, arr, iterator, callback) {
        arr = _map(arr, function (x, i) {
            return {index: i, value: x};
        });
        if (!callback) {
            eachfn(arr, function (x, callback) {
                iterator(x.value, function (err) {
                    callback(err);
                });
            });
        } else {
            var results = [];
            eachfn(arr, function (x, callback) {
                iterator(x.value, function (err, v) {
                    results[x.index] = v;
                    callback(err);
                });
            }, function (err) {
                callback(err, results);
            });
        }
    };
    async.map = doParallel(_asyncMap);
    async.mapSeries = doSeries(_asyncMap);
    async.mapLimit = function (arr, limit, iterator, callback) {
        return _mapLimit(limit)(arr, iterator, callback);
    };

    var _mapLimit = function(limit) {
        return doParallelLimit(limit, _asyncMap);
    };

    // reduce only has a series version, as doing reduce in parallel won't
    // work in many situations.
    async.reduce = function (arr, memo, iterator, callback) {
        async.eachSeries(arr, function (x, callback) {
            iterator(memo, x, function (err, v) {
                memo = v;
                callback(err);
            });
        }, function (err) {
            callback(err, memo);
        });
    };
    // inject alias
    async.inject = async.reduce;
    // foldl alias
    async.foldl = async.reduce;

    async.reduceRight = function (arr, memo, iterator, callback) {
        var reversed = _map(arr, function (x) {
            return x;
        }).reverse();
        async.reduce(reversed, memo, iterator, callback);
    };
    // foldr alias
    async.foldr = async.reduceRight;

    var _filter = function (eachfn, arr, iterator, callback) {
        var results = [];
        arr = _map(arr, function (x, i) {
            return {index: i, value: x};
        });
        eachfn(arr, function (x, callback) {
            iterator(x.value, function (v) {
                if (v) {
                    results.push(x);
                }
                callback();
            });
        }, function (err) {
            callback(_map(results.sort(function (a, b) {
                return a.index - b.index;
            }), function (x) {
                return x.value;
            }));
        });
    };
    async.filter = doParallel(_filter);
    async.filterSeries = doSeries(_filter);
    // select alias
    async.select = async.filter;
    async.selectSeries = async.filterSeries;

    var _reject = function (eachfn, arr, iterator, callback) {
        var results = [];
        arr = _map(arr, function (x, i) {
            return {index: i, value: x};
        });
        eachfn(arr, function (x, callback) {
            iterator(x.value, function (v) {
                if (!v) {
                    results.push(x);
                }
                callback();
            });
        }, function (err) {
            callback(_map(results.sort(function (a, b) {
                return a.index - b.index;
            }), function (x) {
                return x.value;
            }));
        });
    };
    async.reject = doParallel(_reject);
    async.rejectSeries = doSeries(_reject);

    var _detect = function (eachfn, arr, iterator, main_callback) {
        eachfn(arr, function (x, callback) {
            iterator(x, function (result) {
                if (result) {
                    main_callback(x);
                    main_callback = function () {};
                }
                else {
                    callback();
                }
            });
        }, function (err) {
            main_callback();
        });
    };
    async.detect = doParallel(_detect);
    async.detectSeries = doSeries(_detect);

    async.some = function (arr, iterator, main_callback) {
        async.each(arr, function (x, callback) {
            iterator(x, function (v) {
                if (v) {
                    main_callback(true);
                    main_callback = function () {};
                }
                callback();
            });
        }, function (err) {
            main_callback(false);
        });
    };
    // any alias
    async.any = async.some;

    async.every = function (arr, iterator, main_callback) {
        async.each(arr, function (x, callback) {
            iterator(x, function (v) {
                if (!v) {
                    main_callback(false);
                    main_callback = function () {};
                }
                callback();
            });
        }, function (err) {
            main_callback(true);
        });
    };
    // all alias
    async.all = async.every;

    async.sortBy = function (arr, iterator, callback) {
        async.map(arr, function (x, callback) {
            iterator(x, function (err, criteria) {
                if (err) {
                    callback(err);
                }
                else {
                    callback(null, {value: x, criteria: criteria});
                }
            });
        }, function (err, results) {
            if (err) {
                return callback(err);
            }
            else {
                var fn = function (left, right) {
                    var a = left.criteria, b = right.criteria;
                    return a < b ? -1 : a > b ? 1 : 0;
                };
                callback(null, _map(results.sort(fn), function (x) {
                    return x.value;
                }));
            }
        });
    };

    async.auto = function (tasks, callback) {
        callback = callback || function () {};
        var keys = _keys(tasks);
        var remainingTasks = keys.length
        if (!remainingTasks) {
            return callback();
        }

        var results = {};

        var listeners = [];
        var addListener = function (fn) {
            listeners.unshift(fn);
        };
        var removeListener = function (fn) {
            for (var i = 0; i < listeners.length; i += 1) {
                if (listeners[i] === fn) {
                    listeners.splice(i, 1);
                    return;
                }
            }
        };
        var taskComplete = function () {
            remainingTasks--
            _each(listeners.slice(0), function (fn) {
                fn();
            });
        };

        addListener(function () {
            if (!remainingTasks) {
                var theCallback = callback;
                // prevent final callback from calling itself if it errors
                callback = function () {};

                theCallback(null, results);
            }
        });

        _each(keys, function (k) {
            var task = _isArray(tasks[k]) ? tasks[k]: [tasks[k]];
            var taskCallback = function (err) {
                var args = Array.prototype.slice.call(arguments, 1);
                if (args.length <= 1) {
                    args = args[0];
                }
                if (err) {
                    var safeResults = {};
                    _each(_keys(results), function(rkey) {
                        safeResults[rkey] = results[rkey];
                    });
                    safeResults[k] = args;
                    callback(err, safeResults);
                    // stop subsequent errors hitting callback multiple times
                    callback = function () {};
                }
                else {
                    results[k] = args;
                    async.setImmediate(taskComplete);
                }
            };
            var requires = task.slice(0, Math.abs(task.length - 1)) || [];
            var ready = function () {
                return _reduce(requires, function (a, x) {
                    return (a && results.hasOwnProperty(x));
                }, true) && !results.hasOwnProperty(k);
            };
            if (ready()) {
                task[task.length - 1](taskCallback, results);
            }
            else {
                var listener = function () {
                    if (ready()) {
                        removeListener(listener);
                        task[task.length - 1](taskCallback, results);
                    }
                };
                addListener(listener);
            }
        });
    };

    async.retry = function(times, task, callback) {
        var DEFAULT_TIMES = 5;
        var attempts = [];
        // Use defaults if times not passed
        if (typeof times === 'function') {
            callback = task;
            task = times;
            times = DEFAULT_TIMES;
        }
        // Make sure times is a number
        times = parseInt(times, 10) || DEFAULT_TIMES;
        var wrappedTask = function(wrappedCallback, wrappedResults) {
            var retryAttempt = function(task, finalAttempt) {
                return function(seriesCallback) {
                    task(function(err, result){
                        seriesCallback(!err || finalAttempt, {err: err, result: result});
                    }, wrappedResults);
                };
            };
            while (times) {
                attempts.push(retryAttempt(task, !(times-=1)));
            }
            async.series(attempts, function(done, data){
                data = data[data.length - 1];
                (wrappedCallback || callback)(data.err, data.result);
            });
        }
        // If a callback is passed, run this as a controll flow
        return callback ? wrappedTask() : wrappedTask
    };

    async.waterfall = function (tasks, callback) {
        callback = callback || function () {};
        if (!_isArray(tasks)) {
          var err = new Error('First argument to waterfall must be an array of functions');
          return callback(err);
        }
        if (!tasks.length) {
            return callback();
        }
        var wrapIterator = function (iterator) {
            return function (err) {
                if (err) {
                    callback.apply(null, arguments);
                    callback = function () {};
                }
                else {
                    var args = Array.prototype.slice.call(arguments, 1);
                    var next = iterator.next();
                    if (next) {
                        args.push(wrapIterator(next));
                    }
                    else {
                        args.push(callback);
                    }
                    async.setImmediate(function () {
                        iterator.apply(null, args);
                    });
                }
            };
        };
        wrapIterator(async.iterator(tasks))();
    };

    var _parallel = function(eachfn, tasks, callback) {
        callback = callback || function () {};
        if (_isArray(tasks)) {
            eachfn.map(tasks, function (fn, callback) {
                if (fn) {
                    fn(function (err) {
                        var args = Array.prototype.slice.call(arguments, 1);
                        if (args.length <= 1) {
                            args = args[0];
                        }
                        callback.call(null, err, args);
                    });
                }
            }, callback);
        }
        else {
            var results = {};
            eachfn.each(_keys(tasks), function (k, callback) {
                tasks[k](function (err) {
                    var args = Array.prototype.slice.call(arguments, 1);
                    if (args.length <= 1) {
                        args = args[0];
                    }
                    results[k] = args;
                    callback(err);
                });
            }, function (err) {
                callback(err, results);
            });
        }
    };

    async.parallel = function (tasks, callback) {
        _parallel({ map: async.map, each: async.each }, tasks, callback);
    };

    async.parallelLimit = function(tasks, limit, callback) {
        _parallel({ map: _mapLimit(limit), each: _eachLimit(limit) }, tasks, callback);
    };

    async.series = function (tasks, callback) {
        callback = callback || function () {};
        if (_isArray(tasks)) {
            async.mapSeries(tasks, function (fn, callback) {
                if (fn) {
                    fn(function (err) {
                        var args = Array.prototype.slice.call(arguments, 1);
                        if (args.length <= 1) {
                            args = args[0];
                        }
                        callback.call(null, err, args);
                    });
                }
            }, callback);
        }
        else {
            var results = {};
            async.eachSeries(_keys(tasks), function (k, callback) {
                tasks[k](function (err) {
                    var args = Array.prototype.slice.call(arguments, 1);
                    if (args.length <= 1) {
                        args = args[0];
                    }
                    results[k] = args;
                    callback(err);
                });
            }, function (err) {
                callback(err, results);
            });
        }
    };

    async.iterator = function (tasks) {
        var makeCallback = function (index) {
            var fn = function () {
                if (tasks.length) {
                    tasks[index].apply(null, arguments);
                }
                return fn.next();
            };
            fn.next = function () {
                return (index < tasks.length - 1) ? makeCallback(index + 1): null;
            };
            return fn;
        };
        return makeCallback(0);
    };

    async.apply = function (fn) {
        var args = Array.prototype.slice.call(arguments, 1);
        return function () {
            return fn.apply(
                null, args.concat(Array.prototype.slice.call(arguments))
            );
        };
    };

    var _concat = function (eachfn, arr, fn, callback) {
        var r = [];
        eachfn(arr, function (x, cb) {
            fn(x, function (err, y) {
                r = r.concat(y || []);
                cb(err);
            });
        }, function (err) {
            callback(err, r);
        });
    };
    async.concat = doParallel(_concat);
    async.concatSeries = doSeries(_concat);

    async.whilst = function (test, iterator, callback) {
        if (test()) {
            iterator(function (err) {
                if (err) {
                    return callback(err);
                }
                async.whilst(test, iterator, callback);
            });
        }
        else {
            callback();
        }
    };

    async.doWhilst = function (iterator, test, callback) {
        iterator(function (err) {
            if (err) {
                return callback(err);
            }
            var args = Array.prototype.slice.call(arguments, 1);
            if (test.apply(null, args)) {
                async.doWhilst(iterator, test, callback);
            }
            else {
                callback();
            }
        });
    };

    async.until = function (test, iterator, callback) {
        if (!test()) {
            iterator(function (err) {
                if (err) {
                    return callback(err);
                }
                async.until(test, iterator, callback);
            });
        }
        else {
            callback();
        }
    };

    async.doUntil = function (iterator, test, callback) {
        iterator(function (err) {
            if (err) {
                return callback(err);
            }
            var args = Array.prototype.slice.call(arguments, 1);
            if (!test.apply(null, args)) {
                async.doUntil(iterator, test, callback);
            }
            else {
                callback();
            }
        });
    };

    async.queue = function (worker, concurrency) {
        if (concurrency === undefined) {
            concurrency = 1;
        }
        function _insert(q, data, pos, callback) {
          if (!q.started){
            q.started = true;
          }
          if (!_isArray(data)) {
              data = [data];
          }
          if(data.length == 0) {
             // call drain immediately if there are no tasks
             return async.setImmediate(function() {
                 if (q.drain) {
                     q.drain();
                 }
             });
          }
          _each(data, function(task) {
              var item = {
                  data: task,
                  callback: typeof callback === 'function' ? callback : null
              };

              if (pos) {
                q.tasks.unshift(item);
              } else {
                q.tasks.push(item);
              }

              if (q.saturated && q.tasks.length === q.concurrency) {
                  q.saturated();
              }
              async.setImmediate(q.process);
          });
        }

        var workers = 0;
        var q = {
            tasks: [],
            concurrency: concurrency,
            saturated: null,
            empty: null,
            drain: null,
            started: false,
            paused: false,
            push: function (data, callback) {
              _insert(q, data, false, callback);
            },
            kill: function () {
              q.drain = null;
              q.tasks = [];
            },
            unshift: function (data, callback) {
              _insert(q, data, true, callback);
            },
            process: function () {
                if (!q.paused && workers < q.concurrency && q.tasks.length) {
                    var task = q.tasks.shift();
                    if (q.empty && q.tasks.length === 0) {
                        q.empty();
                    }
                    workers += 1;
                    var next = function () {
                        workers -= 1;
                        if (task.callback) {
                            task.callback.apply(task, arguments);
                        }
                        if (q.drain && q.tasks.length + workers === 0) {
                            q.drain();
                        }
                        q.process();
                    };
                    var cb = only_once(next);
                    worker(task.data, cb);
                }
            },
            length: function () {
                return q.tasks.length;
            },
            running: function () {
                return workers;
            },
            idle: function() {
                return q.tasks.length + workers === 0;
            },
            pause: function () {
                if (q.paused === true) { return; }
                q.paused = true;
            },
            resume: function () {
                if (q.paused === false) { return; }
                q.paused = false;
                // Need to call q.process once per concurrent
                // worker to preserve full concurrency after pause
                for (var w = 1; w <= q.concurrency; w++) {
                    async.setImmediate(q.process);
                }
            }
        };
        return q;
    };

    async.priorityQueue = function (worker, concurrency) {

        function _compareTasks(a, b){
          return a.priority - b.priority;
        };

        function _binarySearch(sequence, item, compare) {
          var beg = -1,
              end = sequence.length - 1;
          while (beg < end) {
            var mid = beg + ((end - beg + 1) >>> 1);
            if (compare(item, sequence[mid]) >= 0) {
              beg = mid;
            } else {
              end = mid - 1;
            }
          }
          return beg;
        }

        function _insert(q, data, priority, callback) {
          if (!q.started){
            q.started = true;
          }
          if (!_isArray(data)) {
              data = [data];
          }
          if(data.length == 0) {
             // call drain immediately if there are no tasks
             return async.setImmediate(function() {
                 if (q.drain) {
                     q.drain();
                 }
             });
          }
          _each(data, function(task) {
              var item = {
                  data: task,
                  priority: priority,
                  callback: typeof callback === 'function' ? callback : null
              };

              q.tasks.splice(_binarySearch(q.tasks, item, _compareTasks) + 1, 0, item);

              if (q.saturated && q.tasks.length === q.concurrency) {
                  q.saturated();
              }
              async.setImmediate(q.process);
          });
        }

        // Start with a normal queue
        var q = async.queue(worker, concurrency);

        // Override push to accept second parameter representing priority
        q.push = function (data, priority, callback) {
          _insert(q, data, priority, callback);
        };

        // Remove unshift function
        delete q.unshift;

        return q;
    };

    async.cargo = function (worker, payload) {
        var working     = false,
            tasks       = [];

        var cargo = {
            tasks: tasks,
            payload: payload,
            saturated: null,
            empty: null,
            drain: null,
            drained: true,
            push: function (data, callback) {
                if (!_isArray(data)) {
                    data = [data];
                }
                _each(data, function(task) {
                    tasks.push({
                        data: task,
                        callback: typeof callback === 'function' ? callback : null
                    });
                    cargo.drained = false;
                    if (cargo.saturated && tasks.length === payload) {
                        cargo.saturated();
                    }
                });
                async.setImmediate(cargo.process);
            },
            process: function process() {
                if (working) return;
                if (tasks.length === 0) {
                    if(cargo.drain && !cargo.drained) cargo.drain();
                    cargo.drained = true;
                    return;
                }

                var ts = typeof payload === 'number'
                            ? tasks.splice(0, payload)
                            : tasks.splice(0, tasks.length);

                var ds = _map(ts, function (task) {
                    return task.data;
                });

                if(cargo.empty) cargo.empty();
                working = true;
                worker(ds, function () {
                    working = false;

                    var args = arguments;
                    _each(ts, function (data) {
                        if (data.callback) {
                            data.callback.apply(null, args);
                        }
                    });

                    process();
                });
            },
            length: function () {
                return tasks.length;
            },
            running: function () {
                return working;
            }
        };
        return cargo;
    };

    var _console_fn = function (name) {
        return function (fn) {
            var args = Array.prototype.slice.call(arguments, 1);
            fn.apply(null, args.concat([function (err) {
                var args = Array.prototype.slice.call(arguments, 1);
                if (typeof console !== 'undefined') {
                    if (err) {
                        if (console.error) {
                            console.error(err);
                        }
                    }
                    else if (console[name]) {
                        _each(args, function (x) {
                            console[name](x);
                        });
                    }
                }
            }]));
        };
    };
    async.log = _console_fn('log');
    async.dir = _console_fn('dir');
    /*async.info = _console_fn('info');
    async.warn = _console_fn('warn');
    async.error = _console_fn('error');*/

    async.memoize = function (fn, hasher) {
        var memo = {};
        var queues = {};
        hasher = hasher || function (x) {
            return x;
        };
        var memoized = function () {
            var args = Array.prototype.slice.call(arguments);
            var callback = args.pop();
            var key = hasher.apply(null, args);
            if (key in memo) {
                async.nextTick(function () {
                    callback.apply(null, memo[key]);
                });
            }
            else if (key in queues) {
                queues[key].push(callback);
            }
            else {
                queues[key] = [callback];
                fn.apply(null, args.concat([function () {
                    memo[key] = arguments;
                    var q = queues[key];
                    delete queues[key];
                    for (var i = 0, l = q.length; i < l; i++) {
                      q[i].apply(null, arguments);
                    }
                }]));
            }
        };
        memoized.memo = memo;
        memoized.unmemoized = fn;
        return memoized;
    };

    async.unmemoize = function (fn) {
      return function () {
        return (fn.unmemoized || fn).apply(null, arguments);
      };
    };

    async.times = function (count, iterator, callback) {
        var counter = [];
        for (var i = 0; i < count; i++) {
            counter.push(i);
        }
        return async.map(counter, iterator, callback);
    };

    async.timesSeries = function (count, iterator, callback) {
        var counter = [];
        for (var i = 0; i < count; i++) {
            counter.push(i);
        }
        return async.mapSeries(counter, iterator, callback);
    };

    async.seq = function (/* functions... */) {
        var fns = arguments;
        return function () {
            var that = this;
            var args = Array.prototype.slice.call(arguments);
            var callback = args.pop();
            async.reduce(fns, args, function (newargs, fn, cb) {
                fn.apply(that, newargs.concat([function () {
                    var err = arguments[0];
                    var nextargs = Array.prototype.slice.call(arguments, 1);
                    cb(err, nextargs);
                }]))
            },
            function (err, results) {
                callback.apply(that, [err].concat(results));
            });
        };
    };

    async.compose = function (/* functions... */) {
      return async.seq.apply(null, Array.prototype.reverse.call(arguments));
    };

    var _applyEach = function (eachfn, fns /*args...*/) {
        var go = function () {
            var that = this;
            var args = Array.prototype.slice.call(arguments);
            var callback = args.pop();
            return eachfn(fns, function (fn, cb) {
                fn.apply(that, args.concat([cb]));
            },
            callback);
        };
        if (arguments.length > 2) {
            var args = Array.prototype.slice.call(arguments, 2);
            return go.apply(this, args);
        }
        else {
            return go;
        }
    };
    async.applyEach = doParallel(_applyEach);
    async.applyEachSeries = doSeries(_applyEach);

    async.forever = function (fn, callback) {
        function next(err) {
            if (err) {
                if (callback) {
                    return callback(err);
                }
                throw err;
            }
            fn(next);
        }
        next();
    };

    // Node.js
    if (typeof module !== 'undefined' && module.exports) {
        module.exports = async;
    }
    // AMD / RequireJS
    else if (typeof define !== 'undefined' && define.amd) {
        define([], function () {
            return async;
        });
    }
    // included directly via <script> tag
    else {
        root.async = async;
    }

}());

}).call(this,_dereq_("g5I+bs"))
},{"g5I+bs":30}],4:[function(_dereq_,module,exports){
var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

;(function (exports) {
	'use strict';

  var Arr = (typeof Uint8Array !== 'undefined')
    ? Uint8Array
    : Array

	var PLUS   = '+'.charCodeAt(0)
	var SLASH  = '/'.charCodeAt(0)
	var NUMBER = '0'.charCodeAt(0)
	var LOWER  = 'a'.charCodeAt(0)
	var UPPER  = 'A'.charCodeAt(0)
	var PLUS_URL_SAFE = '-'.charCodeAt(0)
	var SLASH_URL_SAFE = '_'.charCodeAt(0)

	function decode (elt) {
		var code = elt.charCodeAt(0)
		if (code === PLUS ||
		    code === PLUS_URL_SAFE)
			return 62 // '+'
		if (code === SLASH ||
		    code === SLASH_URL_SAFE)
			return 63 // '/'
		if (code < NUMBER)
			return -1 //no match
		if (code < NUMBER + 10)
			return code - NUMBER + 26 + 26
		if (code < UPPER + 26)
			return code - UPPER
		if (code < LOWER + 26)
			return code - LOWER + 26
	}

	function b64ToByteArray (b64) {
		var i, j, l, tmp, placeHolders, arr

		if (b64.length % 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
		var len = b64.length
		placeHolders = '=' === b64.charAt(len - 2) ? 2 : '=' === b64.charAt(len - 1) ? 1 : 0

		// base64 is 4/3 + up to two characters of the original data
		arr = new Arr(b64.length * 3 / 4 - placeHolders)

		// if there are placeholders, only get up to the last complete 4 chars
		l = placeHolders > 0 ? b64.length - 4 : b64.length

		var L = 0

		function push (v) {
			arr[L++] = v
		}

		for (i = 0, j = 0; i < l; i += 4, j += 3) {
			tmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3))
			push((tmp & 0xFF0000) >> 16)
			push((tmp & 0xFF00) >> 8)
			push(tmp & 0xFF)
		}

		if (placeHolders === 2) {
			tmp = (decode(b64.charAt(i)) << 2) | (decode(b64.charAt(i + 1)) >> 4)
			push(tmp & 0xFF)
		} else if (placeHolders === 1) {
			tmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2)
			push((tmp >> 8) & 0xFF)
			push(tmp & 0xFF)
		}

		return arr
	}

	function uint8ToBase64 (uint8) {
		var i,
			extraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes
			output = "",
			temp, length

		function encode (num) {
			return lookup.charAt(num)
		}

		function tripletToBase64 (num) {
			return encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F)
		}

		// go through the array every three bytes, we'll deal with trailing stuff later
		for (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {
			temp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])
			output += tripletToBase64(temp)
		}

		// pad the end with zeros, but make sure to not forget the extra bytes
		switch (extraBytes) {
			case 1:
				temp = uint8[uint8.length - 1]
				output += encode(temp >> 2)
				output += encode((temp << 4) & 0x3F)
				output += '=='
				break
			case 2:
				temp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1])
				output += encode(temp >> 10)
				output += encode((temp >> 4) & 0x3F)
				output += encode((temp << 2) & 0x3F)
				output += '='
				break
		}

		return output
	}

	exports.toByteArray = b64ToByteArray
	exports.fromByteArray = uint8ToBase64
}(typeof exports === 'undefined' ? (this.base64js = {}) : exports))

},{}],5:[function(_dereq_,module,exports){

},{}],6:[function(_dereq_,module,exports){
var http = module.exports;
var EventEmitter = _dereq_('events').EventEmitter;
var Request = _dereq_('./lib/request');
var url = _dereq_('url')

http.request = function (params, cb) {
    if (typeof params === 'string') {
        params = url.parse(params)
    }
    if (!params) params = {};
    if (!params.host && !params.port) {
        params.port = parseInt(window.location.port, 10);
    }
    if (!params.host && params.hostname) {
        params.host = params.hostname;
    }
    
    if (!params.scheme) params.scheme = window.location.protocol.split(':')[0];
    if (!params.host) {
        params.host = window.location.hostname || window.location.host;
    }
    if (/:/.test(params.host)) {
        if (!params.port) {
            params.port = params.host.split(':')[1];
        }
        params.host = params.host.split(':')[0];
    }
    if (!params.port) params.port = params.scheme == 'https' ? 443 : 80;
    
    var req = new Request(new xhrHttp, params);
    if (cb) req.on('response', cb);
    return req;
};

http.get = function (params, cb) {
    params.method = 'GET';
    var req = http.request(params, cb);
    req.end();
    return req;
};

http.Agent = function () {};
http.Agent.defaultMaxSockets = 4;

var xhrHttp = (function () {
    if (typeof window === 'undefined') {
        throw new Error('no window object present');
    }
    else if (window.XMLHttpRequest) {
        return window.XMLHttpRequest;
    }
    else if (window.ActiveXObject) {
        var axs = [
            'Msxml2.XMLHTTP.6.0',
            'Msxml2.XMLHTTP.3.0',
            'Microsoft.XMLHTTP'
        ];
        for (var i = 0; i < axs.length; i++) {
            try {
                var ax = new(window.ActiveXObject)(axs[i]);
                return function () {
                    if (ax) {
                        var ax_ = ax;
                        ax = null;
                        return ax_;
                    }
                    else {
                        return new(window.ActiveXObject)(axs[i]);
                    }
                };
            }
            catch (e) {}
        }
        throw new Error('ajax not supported in this browser')
    }
    else {
        throw new Error('ajax not supported in this browser');
    }
})();

http.STATUS_CODES = {
    100 : 'Continue',
    101 : 'Switching Protocols',
    102 : 'Processing',                 // RFC 2518, obsoleted by RFC 4918
    200 : 'OK',
    201 : 'Created',
    202 : 'Accepted',
    203 : 'Non-Authoritative Information',
    204 : 'No Content',
    205 : 'Reset Content',
    206 : 'Partial Content',
    207 : 'Multi-Status',               // RFC 4918
    300 : 'Multiple Choices',
    301 : 'Moved Permanently',
    302 : 'Moved Temporarily',
    303 : 'See Other',
    304 : 'Not Modified',
    305 : 'Use Proxy',
    307 : 'Temporary Redirect',
    400 : 'Bad Request',
    401 : 'Unauthorized',
    402 : 'Payment Required',
    403 : 'Forbidden',
    404 : 'Not Found',
    405 : 'Method Not Allowed',
    406 : 'Not Acceptable',
    407 : 'Proxy Authentication Required',
    408 : 'Request Time-out',
    409 : 'Conflict',
    410 : 'Gone',
    411 : 'Length Required',
    412 : 'Precondition Failed',
    413 : 'Request Entity Too Large',
    414 : 'Request-URI Too Large',
    415 : 'Unsupported Media Type',
    416 : 'Requested Range Not Satisfiable',
    417 : 'Expectation Failed',
    418 : 'I\'m a teapot',              // RFC 2324
    422 : 'Unprocessable Entity',       // RFC 4918
    423 : 'Locked',                     // RFC 4918
    424 : 'Failed Dependency',          // RFC 4918
    425 : 'Unordered Collection',       // RFC 4918
    426 : 'Upgrade Required',           // RFC 2817
    428 : 'Precondition Required',      // RFC 6585
    429 : 'Too Many Requests',          // RFC 6585
    431 : 'Request Header Fields Too Large',// RFC 6585
    500 : 'Internal Server Error',
    501 : 'Not Implemented',
    502 : 'Bad Gateway',
    503 : 'Service Unavailable',
    504 : 'Gateway Time-out',
    505 : 'HTTP Version Not Supported',
    506 : 'Variant Also Negotiates',    // RFC 2295
    507 : 'Insufficient Storage',       // RFC 4918
    509 : 'Bandwidth Limit Exceeded',
    510 : 'Not Extended',               // RFC 2774
    511 : 'Network Authentication Required' // RFC 6585
};
},{"./lib/request":7,"events":15,"url":75}],7:[function(_dereq_,module,exports){
var Stream = _dereq_('stream');
var Response = _dereq_('./response');
var Base64 = _dereq_('Base64');
var inherits = _dereq_('inherits');

var Request = module.exports = function (xhr, params) {
    var self = this;
    self.writable = true;
    self.xhr = xhr;
    self.body = [];
    
    self.uri = (params.scheme || 'http') + '://'
        + params.host
        + (params.port ? ':' + params.port : '')
        + (params.path || '/')
    ;
    
    if (typeof params.withCredentials === 'undefined') {
        params.withCredentials = true;
    }

    try { xhr.withCredentials = params.withCredentials }
    catch (e) {}
    
    xhr.open(
        params.method || 'GET',
        self.uri,
        true
    );

    self._headers = {};
    
    if (params.headers) {
        var keys = objectKeys(params.headers);
        for (var i = 0; i < keys.length; i++) {
            var key = keys[i];
            if (!self.isSafeRequestHeader(key)) continue;
            var value = params.headers[key];
            self.setHeader(key, value);
        }
    }
    
    if (params.auth) {
        //basic auth
        this.setHeader('Authorization', 'Basic ' + Base64.btoa(params.auth));
    }

    var res = new Response;
    res.on('close', function () {
        self.emit('close');
    });
    
    res.on('ready', function () {
        self.emit('response', res);
    });
    
    xhr.onreadystatechange = function () {
        // Fix for IE9 bug
        // SCRIPT575: Could not complete the operation due to error c00c023f
        // It happens when a request is aborted, calling the success callback anyway with readyState === 4
        if (xhr.__aborted) return;
        res.handle(xhr);
    };
};

inherits(Request, Stream);

Request.prototype.setHeader = function (key, value) {
    this._headers[key.toLowerCase()] = value
};

Request.prototype.getHeader = function (key) {
    return this._headers[key.toLowerCase()]
};

Request.prototype.removeHeader = function (key) {
    delete this._headers[key.toLowerCase()]
};

Request.prototype.write = function (s) {
    this.body.push(s);
};

Request.prototype.destroy = function (s) {
    this.xhr.__aborted = true;
    this.xhr.abort();
    this.emit('close');
};

Request.prototype.end = function (s) {
    if (s !== undefined) this.body.push(s);

    var keys = objectKeys(this._headers);
    for (var i = 0; i < keys.length; i++) {
        var key = keys[i];
        var value = this._headers[key];
        if (isArray(value)) {
            for (var j = 0; j < value.length; j++) {
                this.xhr.setRequestHeader(key, value[j]);
            }
        }
        else this.xhr.setRequestHeader(key, value)
    }

    if (this.body.length === 0) {
        this.xhr.send('');
    }
    else if (typeof this.body[0] === 'string') {
        this.xhr.send(this.body.join(''));
    }
    else if (isArray(this.body[0])) {
        var body = [];
        for (var i = 0; i < this.body.length; i++) {
            body.push.apply(body, this.body[i]);
        }
        this.xhr.send(body);
    }
    else if (/Array/.test(Object.prototype.toString.call(this.body[0]))) {
        var len = 0;
        for (var i = 0; i < this.body.length; i++) {
            len += this.body[i].length;
        }
        var body = new(this.body[0].constructor)(len);
        var k = 0;
        
        for (var i = 0; i < this.body.length; i++) {
            var b = this.body[i];
            for (var j = 0; j < b.length; j++) {
                body[k++] = b[j];
            }
        }
        this.xhr.send(body);
    }
    else {
        var body = '';
        for (var i = 0; i < this.body.length; i++) {
            body += this.body[i].toString();
        }
        this.xhr.send(body);
    }
};

// Taken from http://dxr.mozilla.org/mozilla/mozilla-central/content/base/src/nsXMLHttpRequest.cpp.html
Request.unsafeHeaders = [
    "accept-charset",
    "accept-encoding",
    "access-control-request-headers",
    "access-control-request-method",
    "connection",
    "content-length",
    "cookie",
    "cookie2",
    "content-transfer-encoding",
    "date",
    "expect",
    "host",
    "keep-alive",
    "origin",
    "referer",
    "te",
    "trailer",
    "transfer-encoding",
    "upgrade",
    "user-agent",
    "via"
];

Request.prototype.isSafeRequestHeader = function (headerName) {
    if (!headerName) return false;
    return indexOf(Request.unsafeHeaders, headerName.toLowerCase()) === -1;
};

var objectKeys = Object.keys || function (obj) {
    var keys = [];
    for (var key in obj) keys.push(key);
    return keys;
};

var isArray = Array.isArray || function (xs) {
    return Object.prototype.toString.call(xs) === '[object Array]';
};

var indexOf = function (xs, x) {
    if (xs.indexOf) return xs.indexOf(x);
    for (var i = 0; i < xs.length; i++) {
        if (xs[i] === x) return i;
    }
    return -1;
};

},{"./response":8,"Base64":2,"inherits":18,"stream":69}],8:[function(_dereq_,module,exports){
var Stream = _dereq_('stream');
var util = _dereq_('util');

var Response = module.exports = function (res) {
    this.offset = 0;
    this.readable = true;
};

util.inherits(Response, Stream);

var capable = {
    streaming : true,
    status2 : true
};

function parseHeaders (res) {
    var lines = res.getAllResponseHeaders().split(/\r?\n/);
    var headers = {};
    for (var i = 0; i < lines.length; i++) {
        var line = lines[i];
        if (line === '') continue;
        
        var m = line.match(/^([^:]+):\s*(.*)/);
        if (m) {
            var key = m[1].toLowerCase(), value = m[2];
            
            if (headers[key] !== undefined) {
            
                if (isArray(headers[key])) {
                    headers[key].push(value);
                }
                else {
                    headers[key] = [ headers[key], value ];
                }
            }
            else {
                headers[key] = value;
            }
        }
        else {
            headers[line] = true;
        }
    }
    return headers;
}

Response.prototype.getResponse = function (xhr) {
    var respType = String(xhr.responseType).toLowerCase();
    if (respType === 'blob') return xhr.responseBlob || xhr.response;
    if (respType === 'arraybuffer') return xhr.response;
    return xhr.responseText;
}

Response.prototype.getHeader = function (key) {
    return this.headers[key.toLowerCase()];
};

Response.prototype.handle = function (res) {
    if (res.readyState === 2 && capable.status2) {
        try {
            this.statusCode = res.status;
            this.headers = parseHeaders(res);
        }
        catch (err) {
            capable.status2 = false;
        }
        
        if (capable.status2) {
            this.emit('ready');
        }
    }
    else if (capable.streaming && res.readyState === 3) {
        try {
            if (!this.statusCode) {
                this.statusCode = res.status;
                this.headers = parseHeaders(res);
                this.emit('ready');
            }
        }
        catch (err) {}
        
        try {
            this._emitData(res);
        }
        catch (err) {
            capable.streaming = false;
        }
    }
    else if (res.readyState === 4) {
        if (!this.statusCode) {
            this.statusCode = res.status;
            this.emit('ready');
        }
        this._emitData(res);
        
        if (res.error) {
            this.emit('error', this.getResponse(res));
        }
        else this.emit('end');
        
        this.emit('close');
    }
};

Response.prototype._emitData = function (res) {
    var respBody = this.getResponse(res);
    if (respBody.toString().match(/ArrayBuffer/)) {
        this.emit('data', new Uint8Array(respBody, this.offset));
        this.offset = respBody.byteLength;
        return;
    }
    if (respBody.length > this.offset) {
        this.emit('data', respBody.slice(this.offset));
        this.offset = respBody.length;
    }
};

var isArray = Array.isArray || function (xs) {
    return Object.prototype.toString.call(xs) === '[object Array]';
};

},{"stream":69,"util":78}],9:[function(_dereq_,module,exports){
(function (global){
/*! http://mths.be/punycode v1.2.4 by @mathias */
;(function(root) {

	/** Detect free variables */
	var freeExports = typeof exports == 'object' && exports;
	var freeModule = typeof module == 'object' && module &&
		module.exports == freeExports && module;
	var freeGlobal = typeof global == 'object' && global;
	if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
		root = freeGlobal;
	}

	/**
	 * The `punycode` object.
	 * @name punycode
	 * @type Object
	 */
	var punycode,

	/** Highest positive signed 32-bit float value */
	maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1

	/** Bootstring parameters */
	base = 36,
	tMin = 1,
	tMax = 26,
	skew = 38,
	damp = 700,
	initialBias = 72,
	initialN = 128, // 0x80
	delimiter = '-', // '\x2D'

	/** Regular expressions */
	regexPunycode = /^xn--/,
	regexNonASCII = /[^ -~]/, // unprintable ASCII chars + non-ASCII chars
	regexSeparators = /\x2E|\u3002|\uFF0E|\uFF61/g, // RFC 3490 separators

	/** Error messages */
	errors = {
		'overflow': 'Overflow: input needs wider integers to process',
		'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
		'invalid-input': 'Invalid input'
	},

	/** Convenience shortcuts */
	baseMinusTMin = base - tMin,
	floor = Math.floor,
	stringFromCharCode = String.fromCharCode,

	/** Temporary variable */
	key;

	/*--------------------------------------------------------------------------*/

	/**
	 * A generic error utility function.
	 * @private
	 * @param {String} type The error type.
	 * @returns {Error} Throws a `RangeError` with the applicable error message.
	 */
	function error(type) {
		throw RangeError(errors[type]);
	}

	/**
	 * A generic `Array#map` utility function.
	 * @private
	 * @param {Array} array The array to iterate over.
	 * @param {Function} callback The function that gets called for every array
	 * item.
	 * @returns {Array} A new array of values returned by the callback function.
	 */
	function map(array, fn) {
		var length = array.length;
		while (length--) {
			array[length] = fn(array[length]);
		}
		return array;
	}

	/**
	 * A simple `Array#map`-like wrapper to work with domain name strings.
	 * @private
	 * @param {String} domain The domain name.
	 * @param {Function} callback The function that gets called for every
	 * character.
	 * @returns {Array} A new string of characters returned by the callback
	 * function.
	 */
	function mapDomain(string, fn) {
		return map(string.split(regexSeparators), fn).join('.');
	}

	/**
	 * Creates an array containing the numeric code points of each Unicode
	 * character in the string. While JavaScript uses UCS-2 internally,
	 * this function will convert a pair of surrogate halves (each of which
	 * UCS-2 exposes as separate characters) into a single code point,
	 * matching UTF-16.
	 * @see `punycode.ucs2.encode`
	 * @see <http://mathiasbynens.be/notes/javascript-encoding>
	 * @memberOf punycode.ucs2
	 * @name decode
	 * @param {String} string The Unicode input string (UCS-2).
	 * @returns {Array} The new array of code points.
	 */
	function ucs2decode(string) {
		var output = [],
		    counter = 0,
		    length = string.length,
		    value,
		    extra;
		while (counter < length) {
			value = string.charCodeAt(counter++);
			if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
				// high surrogate, and there is a next character
				extra = string.charCodeAt(counter++);
				if ((extra & 0xFC00) == 0xDC00) { // low surrogate
					output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
				} else {
					// unmatched surrogate; only append this code unit, in case the next
					// code unit is the high surrogate of a surrogate pair
					output.push(value);
					counter--;
				}
			} else {
				output.push(value);
			}
		}
		return output;
	}

	/**
	 * Creates a string based on an array of numeric code points.
	 * @see `punycode.ucs2.decode`
	 * @memberOf punycode.ucs2
	 * @name encode
	 * @param {Array} codePoints The array of numeric code points.
	 * @returns {String} The new Unicode string (UCS-2).
	 */
	function ucs2encode(array) {
		return map(array, function(value) {
			var output = '';
			if (value > 0xFFFF) {
				value -= 0x10000;
				output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
				value = 0xDC00 | value & 0x3FF;
			}
			output += stringFromCharCode(value);
			return output;
		}).join('');
	}

	/**
	 * Converts a basic code point into a digit/integer.
	 * @see `digitToBasic()`
	 * @private
	 * @param {Number} codePoint The basic numeric code point value.
	 * @returns {Number} The numeric value of a basic code point (for use in
	 * representing integers) in the range `0` to `base - 1`, or `base` if
	 * the code point does not represent a value.
	 */
	function basicToDigit(codePoint) {
		if (codePoint - 48 < 10) {
			return codePoint - 22;
		}
		if (codePoint - 65 < 26) {
			return codePoint - 65;
		}
		if (codePoint - 97 < 26) {
			return codePoint - 97;
		}
		return base;
	}

	/**
	 * Converts a digit/integer into a basic code point.
	 * @see `basicToDigit()`
	 * @private
	 * @param {Number} digit The numeric value of a basic code point.
	 * @returns {Number} The basic code point whose value (when used for
	 * representing integers) is `digit`, which needs to be in the range
	 * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
	 * used; else, the lowercase form is used. The behavior is undefined
	 * if `flag` is non-zero and `digit` has no uppercase form.
	 */
	function digitToBasic(digit, flag) {
		//  0..25 map to ASCII a..z or A..Z
		// 26..35 map to ASCII 0..9
		return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
	}

	/**
	 * Bias adaptation function as per section 3.4 of RFC 3492.
	 * http://tools.ietf.org/html/rfc3492#section-3.4
	 * @private
	 */
	function adapt(delta, numPoints, firstTime) {
		var k = 0;
		delta = firstTime ? floor(delta / damp) : delta >> 1;
		delta += floor(delta / numPoints);
		for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
			delta = floor(delta / baseMinusTMin);
		}
		return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
	}

	/**
	 * Converts a Punycode string of ASCII-only symbols to a string of Unicode
	 * symbols.
	 * @memberOf punycode
	 * @param {String} input The Punycode string of ASCII-only symbols.
	 * @returns {String} The resulting string of Unicode symbols.
	 */
	function decode(input) {
		// Don't use UCS-2
		var output = [],
		    inputLength = input.length,
		    out,
		    i = 0,
		    n = initialN,
		    bias = initialBias,
		    basic,
		    j,
		    index,
		    oldi,
		    w,
		    k,
		    digit,
		    t,
		    /** Cached calculation results */
		    baseMinusT;

		// Handle the basic code points: let `basic` be the number of input code
		// points before the last delimiter, or `0` if there is none, then copy
		// the first basic code points to the output.

		basic = input.lastIndexOf(delimiter);
		if (basic < 0) {
			basic = 0;
		}

		for (j = 0; j < basic; ++j) {
			// if it's not a basic code point
			if (input.charCodeAt(j) >= 0x80) {
				error('not-basic');
			}
			output.push(input.charCodeAt(j));
		}

		// Main decoding loop: start just after the last delimiter if any basic code
		// points were copied; start at the beginning otherwise.

		for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {

			// `index` is the index of the next character to be consumed.
			// Decode a generalized variable-length integer into `delta`,
			// which gets added to `i`. The overflow checking is easier
			// if we increase `i` as we go, then subtract off its starting
			// value at the end to obtain `delta`.
			for (oldi = i, w = 1, k = base; /* no condition */; k += base) {

				if (index >= inputLength) {
					error('invalid-input');
				}

				digit = basicToDigit(input.charCodeAt(index++));

				if (digit >= base || digit > floor((maxInt - i) / w)) {
					error('overflow');
				}

				i += digit * w;
				t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);

				if (digit < t) {
					break;
				}

				baseMinusT = base - t;
				if (w > floor(maxInt / baseMinusT)) {
					error('overflow');
				}

				w *= baseMinusT;

			}

			out = output.length + 1;
			bias = adapt(i - oldi, out, oldi == 0);

			// `i` was supposed to wrap around from `out` to `0`,
			// incrementing `n` each time, so we'll fix that now:
			if (floor(i / out) > maxInt - n) {
				error('overflow');
			}

			n += floor(i / out);
			i %= out;

			// Insert `n` at position `i` of the output
			output.splice(i++, 0, n);

		}

		return ucs2encode(output);
	}

	/**
	 * Converts a string of Unicode symbols to a Punycode string of ASCII-only
	 * symbols.
	 * @memberOf punycode
	 * @param {String} input The string of Unicode symbols.
	 * @returns {String} The resulting Punycode string of ASCII-only symbols.
	 */
	function encode(input) {
		var n,
		    delta,
		    handledCPCount,
		    basicLength,
		    bias,
		    j,
		    m,
		    q,
		    k,
		    t,
		    currentValue,
		    output = [],
		    /** `inputLength` will hold the number of code points in `input`. */
		    inputLength,
		    /** Cached calculation results */
		    handledCPCountPlusOne,
		    baseMinusT,
		    qMinusT;

		// Convert the input in UCS-2 to Unicode
		input = ucs2decode(input);

		// Cache the length
		inputLength = input.length;

		// Initialize the state
		n = initialN;
		delta = 0;
		bias = initialBias;

		// Handle the basic code points
		for (j = 0; j < inputLength; ++j) {
			currentValue = input[j];
			if (currentValue < 0x80) {
				output.push(stringFromCharCode(currentValue));
			}
		}

		handledCPCount = basicLength = output.length;

		// `handledCPCount` is the number of code points that have been handled;
		// `basicLength` is the number of basic code points.

		// Finish the basic string - if it is not empty - with a delimiter
		if (basicLength) {
			output.push(delimiter);
		}

		// Main encoding loop:
		while (handledCPCount < inputLength) {

			// All non-basic code points < n have been handled already. Find the next
			// larger one:
			for (m = maxInt, j = 0; j < inputLength; ++j) {
				currentValue = input[j];
				if (currentValue >= n && currentValue < m) {
					m = currentValue;
				}
			}

			// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
			// but guard against overflow
			handledCPCountPlusOne = handledCPCount + 1;
			if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
				error('overflow');
			}

			delta += (m - n) * handledCPCountPlusOne;
			n = m;

			for (j = 0; j < inputLength; ++j) {
				currentValue = input[j];

				if (currentValue < n && ++delta > maxInt) {
					error('overflow');
				}

				if (currentValue == n) {
					// Represent delta as a generalized variable-length integer
					for (q = delta, k = base; /* no condition */; k += base) {
						t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
						if (q < t) {
							break;
						}
						qMinusT = q - t;
						baseMinusT = base - t;
						output.push(
							stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
						);
						q = floor(qMinusT / baseMinusT);
					}

					output.push(stringFromCharCode(digitToBasic(q, 0)));
					bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
					delta = 0;
					++handledCPCount;
				}
			}

			++delta;
			++n;

		}
		return output.join('');
	}

	/**
	 * Converts a Punycode string representing a domain name to Unicode. Only the
	 * Punycoded parts of the domain name will be converted, i.e. it doesn't
	 * matter if you call it on a string that has already been converted to
	 * Unicode.
	 * @memberOf punycode
	 * @param {String} domain The Punycode domain name to convert to Unicode.
	 * @returns {String} The Unicode representation of the given Punycode
	 * string.
	 */
	function toUnicode(domain) {
		return mapDomain(domain, function(string) {
			return regexPunycode.test(string)
				? decode(string.slice(4).toLowerCase())
				: string;
		});
	}

	/**
	 * Converts a Unicode string representing a domain name to Punycode. Only the
	 * non-ASCII parts of the domain name will be converted, i.e. it doesn't
	 * matter if you call it with a domain that's already in ASCII.
	 * @memberOf punycode
	 * @param {String} domain The domain name to convert, as a Unicode string.
	 * @returns {String} The Punycode representation of the given domain name.
	 */
	function toASCII(domain) {
		return mapDomain(domain, function(string) {
			return regexNonASCII.test(string)
				? 'xn--' + encode(string)
				: string;
		});
	}

	/*--------------------------------------------------------------------------*/

	/** Define the public API */
	punycode = {
		/**
		 * A string representing the current Punycode.js version number.
		 * @memberOf punycode
		 * @type String
		 */
		'version': '1.2.4',
		/**
		 * An object of methods to convert from JavaScript's internal character
		 * representation (UCS-2) to Unicode code points, and back.
		 * @see <http://mathiasbynens.be/notes/javascript-encoding>
		 * @memberOf punycode
		 * @type Object
		 */
		'ucs2': {
			'decode': ucs2decode,
			'encode': ucs2encode
		},
		'decode': decode,
		'encode': encode,
		'toASCII': toASCII,
		'toUnicode': toUnicode
	};

	/** Expose `punycode` */
	// Some AMD build optimizers, like r.js, check for specific condition patterns
	// like the following:
	if (
		typeof define == 'function' &&
		typeof define.amd == 'object' &&
		define.amd
	) {
		define('punycode', function() {
			return punycode;
		});
	} else if (freeExports && !freeExports.nodeType) {
		if (freeModule) { // in Node.js or RingoJS v0.8.0+
			freeModule.exports = punycode;
		} else { // in Narwhal or RingoJS v0.7.0-
			for (key in punycode) {
				punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);
			}
		}
	} else { // in Rhino or a web browser
		root.punycode = punycode;
	}

}(this));

}).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],10:[function(_dereq_,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

var Buffer = _dereq_('buffer').Buffer;

function assertEncoding(encoding) {
  if (encoding && !Buffer.isEncoding(encoding)) {
    throw new Error('Unknown encoding: ' + encoding);
  }
}

var StringDecoder = exports.StringDecoder = function(encoding) {
  this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');
  assertEncoding(encoding);
  switch (this.encoding) {
    case 'utf8':
      // CESU-8 represents each of Surrogate Pair by 3-bytes
      this.surrogateSize = 3;
      break;
    case 'ucs2':
    case 'utf16le':
      // UTF-16 represents each of Surrogate Pair by 2-bytes
      this.surrogateSize = 2;
      this.detectIncompleteChar = utf16DetectIncompleteChar;
      break;
    case 'base64':
      // Base-64 stores 3 bytes in 4 chars, and pads the remainder.
      this.surrogateSize = 3;
      this.detectIncompleteChar = base64DetectIncompleteChar;
      break;
    default:
      this.write = passThroughWrite;
      return;
  }

  this.charBuffer = new Buffer(6);
  this.charReceived = 0;
  this.charLength = 0;
};


StringDecoder.prototype.write = function(buffer) {
  var charStr = '';
  var offset = 0;

  // if our last write ended with an incomplete multibyte character
  while (this.charLength) {
    // determine how many remaining bytes this buffer has to offer for this char
    var i = (buffer.length >= this.charLength - this.charReceived) ?
                this.charLength - this.charReceived :
                buffer.length;

    // add the new bytes to the char buffer
    buffer.copy(this.charBuffer, this.charReceived, offset, i);
    this.charReceived += (i - offset);
    offset = i;

    if (this.charReceived < this.charLength) {
      // still not enough chars in this buffer? wait for more ...
      return '';
    }

    // get the character that was split
    charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);

    // lead surrogate (D800-DBFF) is also the incomplete character
    var charCode = charStr.charCodeAt(charStr.length - 1);
    if (charCode >= 0xD800 && charCode <= 0xDBFF) {
      this.charLength += this.surrogateSize;
      charStr = '';
      continue;
    }
    this.charReceived = this.charLength = 0;

    // if there are no more bytes in this buffer, just emit our char
    if (i == buffer.length) return charStr;

    // otherwise cut off the characters end from the beginning of this buffer
    buffer = buffer.slice(i, buffer.length);
    break;
  }

  var lenIncomplete = this.detectIncompleteChar(buffer);

  var end = buffer.length;
  if (this.charLength) {
    // buffer the incomplete character bytes we got
    buffer.copy(this.charBuffer, 0, buffer.length - lenIncomplete, end);
    this.charReceived = lenIncomplete;
    end -= lenIncomplete;
  }

  charStr += buffer.toString(this.encoding, 0, end);

  var end = charStr.length - 1;
  var charCode = charStr.charCodeAt(end);
  // lead surrogate (D800-DBFF) is also the incomplete character
  if (charCode >= 0xD800 && charCode <= 0xDBFF) {
    var size = this.surrogateSize;
    this.charLength += size;
    this.charReceived += size;
    this.charBuffer.copy(this.charBuffer, size, 0, size);
    this.charBuffer.write(charStr.charAt(charStr.length - 1), this.encoding);
    return charStr.substring(0, end);
  }

  // or just emit the charStr
  return charStr;
};

StringDecoder.prototype.detectIncompleteChar = function(buffer) {
  // determine how many bytes we have to check at the end of this buffer
  var i = (buffer.length >= 3) ? 3 : buffer.length;

  // Figure out if one of the last i bytes of our buffer announces an
  // incomplete char.
  for (; i > 0; i--) {
    var c = buffer[buffer.length - i];

    // See http://en.wikipedia.org/wiki/UTF-8#Description

    // 110XXXXX
    if (i == 1 && c >> 5 == 0x06) {
      this.charLength = 2;
      break;
    }

    // 1110XXXX
    if (i <= 2 && c >> 4 == 0x0E) {
      this.charLength = 3;
      break;
    }

    // 11110XXX
    if (i <= 3 && c >> 3 == 0x1E) {
      this.charLength = 4;
      break;
    }
  }

  return i;
};

StringDecoder.prototype.end = function(buffer) {
  var res = '';
  if (buffer && buffer.length)
    res = this.write(buffer);

  if (this.charReceived) {
    var cr = this.charReceived;
    var buf = this.charBuffer;
    var enc = this.encoding;
    res += buf.slice(0, cr).toString(enc);
  }

  return res;
};

function passThroughWrite(buffer) {
  return buffer.toString(this.encoding);
}

function utf16DetectIncompleteChar(buffer) {
  var incomplete = this.charReceived = buffer.length % 2;
  this.charLength = incomplete ? 2 : 0;
  return incomplete;
}

function base64DetectIncompleteChar(buffer) {
  var incomplete = this.charReceived = buffer.length % 3;
  this.charLength = incomplete ? 3 : 0;
  return incomplete;
}

},{"buffer":11}],11:[function(_dereq_,module,exports){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */

var base64 = _dereq_('base64-js')
var ieee754 = _dereq_('ieee754')

exports.Buffer = Buffer
exports.SlowBuffer = Buffer
exports.INSPECT_MAX_BYTES = 50
Buffer.poolSize = 8192

/**
 * If `Buffer._useTypedArrays`:
 *   === true    Use Uint8Array implementation (fastest)
 *   === false   Use Object implementation (compatible down to IE6)
 */
Buffer._useTypedArrays = (function () {
  // Detect if browser supports Typed Arrays. Supported browsers are IE 10+, Firefox 4+,
  // Chrome 7+, Safari 5.1+, Opera 11.6+, iOS 4.2+. If the browser does not support adding
  // properties to `Uint8Array` instances, then that's the same as no `Uint8Array` support
  // because we need to be able to add all the node Buffer API methods. This is an issue
  // in Firefox 4-29. Now fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=695438
  try {
    var buf = new ArrayBuffer(0)
    var arr = new Uint8Array(buf)
    arr.foo = function () { return 42 }
    return 42 === arr.foo() &&
        typeof arr.subarray === 'function' // Chrome 9-10 lack `subarray`
  } catch (e) {
    return false
  }
})()

/**
 * Class: Buffer
 * =============
 *
 * The Buffer constructor returns instances of `Uint8Array` that are augmented
 * with function properties for all the node `Buffer` API functions. We use
 * `Uint8Array` so that square bracket notation works as expected -- it returns
 * a single octet.
 *
 * By augmenting the instances, we can avoid modifying the `Uint8Array`
 * prototype.
 */
function Buffer (subject, encoding, noZero) {
  if (!(this instanceof Buffer))
    return new Buffer(subject, encoding, noZero)

  var type = typeof subject

  // Workaround: node's base64 implementation allows for non-padded strings
  // while base64-js does not.
  if (encoding === 'base64' && type === 'string') {
    subject = stringtrim(subject)
    while (subject.length % 4 !== 0) {
      subject = subject + '='
    }
  }

  // Find the length
  var length
  if (type === 'number')
    length = coerce(subject)
  else if (type === 'string')
    length = Buffer.byteLength(subject, encoding)
  else if (type === 'object')
    length = coerce(subject.length) // assume that object is array-like
  else
    throw new Error('First argument needs to be a number, array or string.')

  var buf
  if (Buffer._useTypedArrays) {
    // Preferred: Return an augmented `Uint8Array` instance for best performance
    buf = Buffer._augment(new Uint8Array(length))
  } else {
    // Fallback: Return THIS instance of Buffer (created by `new`)
    buf = this
    buf.length = length
    buf._isBuffer = true
  }

  var i
  if (Buffer._useTypedArrays && typeof subject.byteLength === 'number') {
    // Speed optimization -- use set if we're copying from a typed array
    buf._set(subject)
  } else if (isArrayish(subject)) {
    // Treat array-ish objects as a byte array
    for (i = 0; i < length; i++) {
      if (Buffer.isBuffer(subject))
        buf[i] = subject.readUInt8(i)
      else
        buf[i] = subject[i]
    }
  } else if (type === 'string') {
    buf.write(subject, 0, encoding)
  } else if (type === 'number' && !Buffer._useTypedArrays && !noZero) {
    for (i = 0; i < length; i++) {
      buf[i] = 0
    }
  }

  return buf
}

// STATIC METHODS
// ==============

Buffer.isEncoding = function (encoding) {
  switch (String(encoding).toLowerCase()) {
    case 'hex':
    case 'utf8':
    case 'utf-8':
    case 'ascii':
    case 'binary':
    case 'base64':
    case 'raw':
    case 'ucs2':
    case 'ucs-2':
    case 'utf16le':
    case 'utf-16le':
      return true
    default:
      return false
  }
}

Buffer.isBuffer = function (b) {
  return !!(b !== null && b !== undefined && b._isBuffer)
}

Buffer.byteLength = function (str, encoding) {
  var ret
  str = str + ''
  switch (encoding || 'utf8') {
    case 'hex':
      ret = str.length / 2
      break
    case 'utf8':
    case 'utf-8':
      ret = utf8ToBytes(str).length
      break
    case 'ascii':
    case 'binary':
    case 'raw':
      ret = str.length
      break
    case 'base64':
      ret = base64ToBytes(str).length
      break
    case 'ucs2':
    case 'ucs-2':
    case 'utf16le':
    case 'utf-16le':
      ret = str.length * 2
      break
    default:
      throw new Error('Unknown encoding')
  }
  return ret
}

Buffer.concat = function (list, totalLength) {
  assert(isArray(list), 'Usage: Buffer.concat(list, [totalLength])\n' +
      'list should be an Array.')

  if (list.length === 0) {
    return new Buffer(0)
  } else if (list.length === 1) {
    return list[0]
  }

  var i
  if (typeof totalLength !== 'number') {
    totalLength = 0
    for (i = 0; i < list.length; i++) {
      totalLength += list[i].length
    }
  }

  var buf = new Buffer(totalLength)
  var pos = 0
  for (i = 0; i < list.length; i++) {
    var item = list[i]
    item.copy(buf, pos)
    pos += item.length
  }
  return buf
}

// BUFFER INSTANCE METHODS
// =======================

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
  assert(strLen % 2 === 0, 'Invalid hex string')

  if (length > strLen / 2) {
    length = strLen / 2
  }
  for (var i = 0; i < length; i++) {
    var byte = parseInt(string.substr(i * 2, 2), 16)
    assert(!isNaN(byte), 'Invalid hex string')
    buf[offset + i] = byte
  }
  Buffer._charsWritten = i * 2
  return i
}

function _utf8Write (buf, string, offset, length) {
  var charsWritten = Buffer._charsWritten =
    blitBuffer(utf8ToBytes(string), buf, offset, length)
  return charsWritten
}

function _asciiWrite (buf, string, offset, length) {
  var charsWritten = Buffer._charsWritten =
    blitBuffer(asciiToBytes(string), buf, offset, length)
  return charsWritten
}

function _binaryWrite (buf, string, offset, length) {
  return _asciiWrite(buf, string, offset, length)
}

function _base64Write (buf, string, offset, length) {
  var charsWritten = Buffer._charsWritten =
    blitBuffer(base64ToBytes(string), buf, offset, length)
  return charsWritten
}

function _utf16leWrite (buf, string, offset, length) {
  var charsWritten = Buffer._charsWritten =
    blitBuffer(utf16leToBytes(string), buf, offset, length)
  return charsWritten
}

Buffer.prototype.write = function (string, offset, length, encoding) {
  // Support both (string, offset, length, encoding)
  // and the legacy (string, encoding, offset, length)
  if (isFinite(offset)) {
    if (!isFinite(length)) {
      encoding = length
      length = undefined
    }
  } else {  // legacy
    var swap = encoding
    encoding = offset
    offset = length
    length = swap
  }

  offset = Number(offset) || 0
  var remaining = this.length - offset
  if (!length) {
    length = remaining
  } else {
    length = Number(length)
    if (length > remaining) {
      length = remaining
    }
  }
  encoding = String(encoding || 'utf8').toLowerCase()

  var ret
  switch (encoding) {
    case 'hex':
      ret = _hexWrite(this, string, offset, length)
      break
    case 'utf8':
    case 'utf-8':
      ret = _utf8Write(this, string, offset, length)
      break
    case 'ascii':
      ret = _asciiWrite(this, string, offset, length)
      break
    case 'binary':
      ret = _binaryWrite(this, string, offset, length)
      break
    case 'base64':
      ret = _base64Write(this, string, offset, length)
      break
    case 'ucs2':
    case 'ucs-2':
    case 'utf16le':
    case 'utf-16le':
      ret = _utf16leWrite(this, string, offset, length)
      break
    default:
      throw new Error('Unknown encoding')
  }
  return ret
}

Buffer.prototype.toString = function (encoding, start, end) {
  var self = this

  encoding = String(encoding || 'utf8').toLowerCase()
  start = Number(start) || 0
  end = (end !== undefined)
    ? Number(end)
    : end = self.length

  // Fastpath empty strings
  if (end === start)
    return ''

  var ret
  switch (encoding) {
    case 'hex':
      ret = _hexSlice(self, start, end)
      break
    case 'utf8':
    case 'utf-8':
      ret = _utf8Slice(self, start, end)
      break
    case 'ascii':
      ret = _asciiSlice(self, start, end)
      break
    case 'binary':
      ret = _binarySlice(self, start, end)
      break
    case 'base64':
      ret = _base64Slice(self, start, end)
      break
    case 'ucs2':
    case 'ucs-2':
    case 'utf16le':
    case 'utf-16le':
      ret = _utf16leSlice(self, start, end)
      break
    default:
      throw new Error('Unknown encoding')
  }
  return ret
}

Buffer.prototype.toJSON = function () {
  return {
    type: 'Buffer',
    data: Array.prototype.slice.call(this._arr || this, 0)
  }
}

// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
Buffer.prototype.copy = function (target, target_start, start, end) {
  var source = this

  if (!start) start = 0
  if (!end && end !== 0) end = this.length
  if (!target_start) target_start = 0

  // Copy 0 bytes; we're done
  if (end === start) return
  if (target.length === 0 || source.length === 0) return

  // Fatal error conditions
  assert(end >= start, 'sourceEnd < sourceStart')
  assert(target_start >= 0 && target_start < target.length,
      'targetStart out of bounds')
  assert(start >= 0 && start < source.length, 'sourceStart out of bounds')
  assert(end >= 0 && end <= source.length, 'sourceEnd out of bounds')

  // Are we oob?
  if (end > this.length)
    end = this.length
  if (target.length - target_start < end - start)
    end = target.length - target_start + start

  var len = end - start

  if (len < 100 || !Buffer._useTypedArrays) {
    for (var i = 0; i < len; i++)
      target[i + target_start] = this[i + start]
  } else {
    target._set(this.subarray(start, start + len), target_start)
  }
}

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) {
  var res = ''
  var tmp = ''
  end = Math.min(buf.length, end)

  for (var i = start; i < end; i++) {
    if (buf[i] <= 0x7F) {
      res += decodeUtf8Char(tmp) + String.fromCharCode(buf[i])
      tmp = ''
    } else {
      tmp += '%' + buf[i].toString(16)
    }
  }

  return res + decodeUtf8Char(tmp)
}

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])
  return ret
}

function _binarySlice (buf, start, end) {
  return _asciiSlice(buf, start, end)
}

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 (start, end) {
  var len = this.length
  start = clamp(start, len, 0)
  end = clamp(end, len, len)

  if (Buffer._useTypedArrays) {
    return Buffer._augment(this.subarray(start, end))
  } else {
    var sliceLen = end - start
    var newBuf = new Buffer(sliceLen, undefined, true)
    for (var i = 0; i < sliceLen; i++) {
      newBuf[i] = this[i + start]
    }
    return newBuf
  }
}

// `get` will be removed in Node 0.13+
Buffer.prototype.get = function (offset) {
  console.log('.get() is deprecated. Access using array indexes instead.')
  return this.readUInt8(offset)
}

// `set` will be removed in Node 0.13+
Buffer.prototype.set = function (v, offset) {
  console.log('.set() is deprecated. Access using array indexes instead.')
  return this.writeUInt8(v, offset)
}

Buffer.prototype.readUInt8 = function (offset, noAssert) {
  if (!noAssert) {
    assert(offset !== undefined && offset !== null, 'missing offset')
    assert(offset < this.length, 'Trying to read beyond buffer length')
  }

  if (offset >= this.length)
    return

  return this[offset]
}

function _readUInt16 (buf, offset, littleEndian, noAssert) {
  if (!noAssert) {
    assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
    assert(offset !== undefined && offset !== null, 'missing offset')
    assert(offset + 1 < buf.length, 'Trying to read beyond buffer length')
  }

  var len = buf.length
  if (offset >= len)
    return

  var val
  if (littleEndian) {
    val = buf[offset]
    if (offset + 1 < len)
      val |= buf[offset + 1] << 8
  } else {
    val = buf[offset] << 8
    if (offset + 1 < len)
      val |= buf[offset + 1]
  }
  return val
}

Buffer.prototype.readUInt16LE = function (offset, noAssert) {
  return _readUInt16(this, offset, true, noAssert)
}

Buffer.prototype.readUInt16BE = function (offset, noAssert) {
  return _readUInt16(this, offset, false, noAssert)
}

function _readUInt32 (buf, offset, littleEndian, noAssert) {
  if (!noAssert) {
    assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
    assert(offset !== undefined && offset !== null, 'missing offset')
    assert(offset + 3 < buf.length, 'Trying to read beyond buffer length')
  }

  var len = buf.length
  if (offset >= len)
    return

  var val
  if (littleEndian) {
    if (offset + 2 < len)
      val = buf[offset + 2] << 16
    if (offset + 1 < len)
      val |= buf[offset + 1] << 8
    val |= buf[offset]
    if (offset + 3 < len)
      val = val + (buf[offset + 3] << 24 >>> 0)
  } else {
    if (offset + 1 < len)
      val = buf[offset + 1] << 16
    if (offset + 2 < len)
      val |= buf[offset + 2] << 8
    if (offset + 3 < len)
      val |= buf[offset + 3]
    val = val + (buf[offset] << 24 >>> 0)
  }
  return val
}

Buffer.prototype.readUInt32LE = function (offset, noAssert) {
  return _readUInt32(this, offset, true, noAssert)
}

Buffer.prototype.readUInt32BE = function (offset, noAssert) {
  return _readUInt32(this, offset, false, noAssert)
}

Buffer.prototype.readInt8 = function (offset, noAssert) {
  if (!noAssert) {
    assert(offset !== undefined && offset !== null,
        'missing offset')
    assert(offset < this.length, 'Trying to read beyond buffer length')
  }

  if (offset >= this.length)
    return

  var neg = this[offset] & 0x80
  if (neg)
    return (0xff - this[offset] + 1) * -1
  else
    return this[offset]
}

function _readInt16 (buf, offset, littleEndian, noAssert) {
  if (!noAssert) {
    assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
    assert(offset !== undefined && offset !== null, 'missing offset')
    assert(offset + 1 < buf.length, 'Trying to read beyond buffer length')
  }

  var len = buf.length
  if (offset >= len)
    return

  var val = _readUInt16(buf, offset, littleEndian, true)
  var neg = val & 0x8000
  if (neg)
    return (0xffff - val + 1) * -1
  else
    return val
}

Buffer.prototype.readInt16LE = function (offset, noAssert) {
  return _readInt16(this, offset, true, noAssert)
}

Buffer.prototype.readInt16BE = function (offset, noAssert) {
  return _readInt16(this, offset, false, noAssert)
}

function _readInt32 (buf, offset, littleEndian, noAssert) {
  if (!noAssert) {
    assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
    assert(offset !== undefined && offset !== null, 'missing offset')
    assert(offset + 3 < buf.length, 'Trying to read beyond buffer length')
  }

  var len = buf.length
  if (offset >= len)
    return

  var val = _readUInt32(buf, offset, littleEndian, true)
  var neg = val & 0x80000000
  if (neg)
    return (0xffffffff - val + 1) * -1
  else
    return val
}

Buffer.prototype.readInt32LE = function (offset, noAssert) {
  return _readInt32(this, offset, true, noAssert)
}

Buffer.prototype.readInt32BE = function (offset, noAssert) {
  return _readInt32(this, offset, false, noAssert)
}

function _readFloat (buf, offset, littleEndian, noAssert) {
  if (!noAssert) {
    assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
    assert(offset + 3 < buf.length, 'Trying to read beyond buffer length')
  }

  return ieee754.read(buf, offset, littleEndian, 23, 4)
}

Buffer.prototype.readFloatLE = function (offset, noAssert) {
  return _readFloat(this, offset, true, noAssert)
}

Buffer.prototype.readFloatBE = function (offset, noAssert) {
  return _readFloat(this, offset, false, noAssert)
}

function _readDouble (buf, offset, littleEndian, noAssert) {
  if (!noAssert) {
    assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
    assert(offset + 7 < buf.length, 'Trying to read beyond buffer length')
  }

  return ieee754.read(buf, offset, littleEndian, 52, 8)
}

Buffer.prototype.readDoubleLE = function (offset, noAssert) {
  return _readDouble(this, offset, true, noAssert)
}

Buffer.prototype.readDoubleBE = function (offset, noAssert) {
  return _readDouble(this, offset, false, noAssert)
}

Buffer.prototype.writeUInt8 = function (value, offset, noAssert) {
  if (!noAssert) {
    assert(value !== undefined && value !== null, 'missing value')
    assert(offset !== undefined && offset !== null, 'missing offset')
    assert(offset < this.length, 'trying to write beyond buffer length')
    verifuint(value, 0xff)
  }

  if (offset >= this.length) return

  this[offset] = value
}

function _writeUInt16 (buf, value, offset, littleEndian, noAssert) {
  if (!noAssert) {
    assert(value !== undefined && value !== null, 'missing value')
    assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
    assert(offset !== undefined && offset !== null, 'missing offset')
    assert(offset + 1 < buf.length, 'trying to write beyond buffer length')
    verifuint(value, 0xffff)
  }

  var len = buf.length
  if (offset >= len)
    return

  for (var i = 0, j = Math.min(len - offset, 2); i < j; i++) {
    buf[offset + i] =
        (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
            (littleEndian ? i : 1 - i) * 8
  }
}

Buffer.prototype.writeUInt16LE = function (value, offset, noAssert) {
  _writeUInt16(this, value, offset, true, noAssert)
}

Buffer.prototype.writeUInt16BE = function (value, offset, noAssert) {
  _writeUInt16(this, value, offset, false, noAssert)
}

function _writeUInt32 (buf, value, offset, littleEndian, noAssert) {
  if (!noAssert) {
    assert(value !== undefined && value !== null, 'missing value')
    assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
    assert(offset !== undefined && offset !== null, 'missing offset')
    assert(offset + 3 < buf.length, 'trying to write beyond buffer length')
    verifuint(value, 0xffffffff)
  }

  var len = buf.length
  if (offset >= len)
    return

  for (var i = 0, j = Math.min(len - offset, 4); i < j; i++) {
    buf[offset + i] =
        (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  }
}

Buffer.prototype.writeUInt32LE = function (value, offset, noAssert) {
  _writeUInt32(this, value, offset, true, noAssert)
}

Buffer.prototype.writeUInt32BE = function (value, offset, noAssert) {
  _writeUInt32(this, value, offset, false, noAssert)
}

Buffer.prototype.writeInt8 = function (value, offset, noAssert) {
  if (!noAssert) {
    assert(value !== undefined && value !== null, 'missing value')
    assert(offset !== undefined && offset !== null, 'missing offset')
    assert(offset < this.length, 'Trying to write beyond buffer length')
    verifsint(value, 0x7f, -0x80)
  }

  if (offset >= this.length)
    return

  if (value >= 0)
    this.writeUInt8(value, offset, noAssert)
  else
    this.writeUInt8(0xff + value + 1, offset, noAssert)
}

function _writeInt16 (buf, value, offset, littleEndian, noAssert) {
  if (!noAssert) {
    assert(value !== undefined && value !== null, 'missing value')
    assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
    assert(offset !== undefined && offset !== null, 'missing offset')
    assert(offset + 1 < buf.length, 'Trying to write beyond buffer length')
    verifsint(value, 0x7fff, -0x8000)
  }

  var len = buf.length
  if (offset >= len)
    return

  if (value >= 0)
    _writeUInt16(buf, value, offset, littleEndian, noAssert)
  else
    _writeUInt16(buf, 0xffff + value + 1, offset, littleEndian, noAssert)
}

Buffer.prototype.writeInt16LE = function (value, offset, noAssert) {
  _writeInt16(this, value, offset, true, noAssert)
}

Buffer.prototype.writeInt16BE = function (value, offset, noAssert) {
  _writeInt16(this, value, offset, false, noAssert)
}

function _writeInt32 (buf, value, offset, littleEndian, noAssert) {
  if (!noAssert) {
    assert(value !== undefined && value !== null, 'missing value')
    assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
    assert(offset !== undefined && offset !== null, 'missing offset')
    assert(offset + 3 < buf.length, 'Trying to write beyond buffer length')
    verifsint(value, 0x7fffffff, -0x80000000)
  }

  var len = buf.length
  if (offset >= len)
    return

  if (value >= 0)
    _writeUInt32(buf, value, offset, littleEndian, noAssert)
  else
    _writeUInt32(buf, 0xffffffff + value + 1, offset, littleEndian, noAssert)
}

Buffer.prototype.writeInt32LE = function (value, offset, noAssert) {
  _writeInt32(this, value, offset, true, noAssert)
}

Buffer.prototype.writeInt32BE = function (value, offset, noAssert) {
  _writeInt32(this, value, offset, false, noAssert)
}

function _writeFloat (buf, value, offset, littleEndian, noAssert) {
  if (!noAssert) {
    assert(value !== undefined && value !== null, 'missing value')
    assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
    assert(offset !== undefined && offset !== null, 'missing offset')
    assert(offset + 3 < buf.length, 'Trying to write beyond buffer length')
    verifIEEE754(value, 3.4028234663852886e+38, -3.4028234663852886e+38)
  }

  var len = buf.length
  if (offset >= len)
    return

  ieee754.write(buf, value, offset, littleEndian, 23, 4)
}

Buffer.prototype.writeFloatLE = function (value, offset, noAssert) {
  _writeFloat(this, value, offset, true, noAssert)
}

Buffer.prototype.writeFloatBE = function (value, offset, noAssert) {
  _writeFloat(this, value, offset, false, noAssert)
}

function _writeDouble (buf, value, offset, littleEndian, noAssert) {
  if (!noAssert) {
    assert(value !== undefined && value !== null, 'missing value')
    assert(typeof littleEndian === 'boolean', 'missing or invalid endian')
    assert(offset !== undefined && offset !== null, 'missing offset')
    assert(offset + 7 < buf.length,
        'Trying to write beyond buffer length')
    verifIEEE754(value, 1.7976931348623157E+308, -1.7976931348623157E+308)
  }

  var len = buf.length
  if (offset >= len)
    return

  ieee754.write(buf, value, offset, littleEndian, 52, 8)
}

Buffer.prototype.writeDoubleLE = function (value, offset, noAssert) {
  _writeDouble(this, value, offset, true, noAssert)
}

Buffer.prototype.writeDoubleBE = function (value, offset, noAssert) {
  _writeDouble(this, value, offset, false, noAssert)
}

// fill(value, start=0, end=buffer.length)
Buffer.prototype.fill = function (value, start, end) {
  if (!value) value = 0
  if (!start) start = 0
  if (!end) end = this.length

  if (typeof value === 'string') {
    value = value.charCodeAt(0)
  }

  assert(typeof value === 'number' && !isNaN(value), 'value is not a number')
  assert(end >= start, 'end < start')

  // Fill 0 bytes; we're done
  if (end === start) return
  if (this.length === 0) return

  assert(start >= 0 && start < this.length, 'start out of bounds')
  assert(end >= 0 && end <= this.length, 'end out of bounds')

  for (var i = start; i < end; i++) {
    this[i] = value
  }
}

Buffer.prototype.inspect = function () {
  var out = []
  var len = this.length
  for (var i = 0; i < len; i++) {
    out[i] = toHex(this[i])
    if (i === exports.INSPECT_MAX_BYTES) {
      out[i + 1] = '...'
      break
    }
  }
  return '<Buffer ' + out.join(' ') + '>'
}

/**
 * Creates a new `ArrayBuffer` with the *copied* memory of the buffer instance.
 * Added in Node 0.12. Only available in browsers that support ArrayBuffer.
 */
Buffer.prototype.toArrayBuffer = function () {
  if (typeof Uint8Array !== 'undefined') {
    if (Buffer._useTypedArrays) {
      return (new Buffer(this)).buffer
    } else {
      var buf = new Uint8Array(this.length)
      for (var i = 0, len = buf.length; i < len; i += 1)
        buf[i] = this[i]
      return buf.buffer
    }
  } else {
    throw new Error('Buffer.toArrayBuffer not supported in this browser')
  }
}

// HELPER FUNCTIONS
// ================

function stringtrim (str) {
  if (str.trim) return str.trim()
  return str.replace(/^\s+|\s+$/g, '')
}

var BP = Buffer.prototype

/**
 * Augment a Uint8Array *instance* (not the Uint8Array class!) with Buffer methods
 */
Buffer._augment = function (arr) {
  arr._isBuffer = true

  // save reference to original Uint8Array get/set methods before overwriting
  arr._get = arr.get
  arr._set = arr.set

  // deprecated, will be removed in node 0.13+
  arr.get = BP.get
  arr.set = BP.set

  arr.write = BP.write
  arr.toString = BP.toString
  arr.toLocaleString = BP.toString
  arr.toJSON = BP.toJSON
  arr.copy = BP.copy
  arr.slice = BP.slice
  arr.readUInt8 = BP.readUInt8
  arr.readUInt16LE = BP.readUInt16LE
  arr.readUInt16BE = BP.readUInt16BE
  arr.readUInt32LE = BP.readUInt32LE
  arr.readUInt32BE = BP.readUInt32BE
  arr.readInt8 = BP.readInt8
  arr.readInt16LE = BP.readInt16LE
  arr.readInt16BE = BP.readInt16BE
  arr.readInt32LE = BP.readInt32LE
  arr.readInt32BE = BP.readInt32BE
  arr.readFloatLE = BP.readFloatLE
  arr.readFloatBE = BP.readFloatBE
  arr.readDoubleLE = BP.readDoubleLE
  arr.readDoubleBE = BP.readDoubleBE
  arr.writeUInt8 = BP.writeUInt8
  arr.writeUInt16LE = BP.writeUInt16LE
  arr.writeUInt16BE = BP.writeUInt16BE
  arr.writeUInt32LE = BP.writeUInt32LE
  arr.writeUInt32BE = BP.writeUInt32BE
  arr.writeInt8 = BP.writeInt8
  arr.writeInt16LE = BP.writeInt16LE
  arr.writeInt16BE = BP.writeInt16BE
  arr.writeInt32LE = BP.writeInt32LE
  arr.writeInt32BE = BP.writeInt32BE
  arr.writeFloatLE = BP.writeFloatLE
  arr.writeFloatBE = BP.writeFloatBE
  arr.writeDoubleLE = BP.writeDoubleLE
  arr.writeDoubleBE = BP.writeDoubleBE
  arr.fill = BP.fill
  arr.inspect = BP.inspect
  arr.toArrayBuffer = BP.toArrayBuffer

  return arr
}

// slice(start, end)
function clamp (index, len, defaultValue) {
  if (typeof index !== 'number') return defaultValue
  index = ~~index;  // Coerce to integer.
  if (index >= len) return len
  if (index >= 0) return index
  index += len
  if (index >= 0) return index
  return 0
}

function coerce (length) {
  // Coerce length to a number (possibly NaN), round up
  // in case it's fractional (e.g. 123.456) then do a
  // double negate to coerce a NaN to 0. Easy, right?
  length = ~~Math.ceil(+length)
  return length < 0 ? 0 : length
}

function isArray (subject) {
  return (Array.isArray || function (subject) {
    return Object.prototype.toString.call(subject) === '[object Array]'
  })(subject)
}

function isArrayish (subject) {
  return isArray(subject) || Buffer.isBuffer(subject) ||
      subject && typeof subject === 'object' &&
      typeof subject.length === 'number'
}

function toHex (n) {
  if (n < 16) return '0' + n.toString(16)
  return n.toString(16)
}

function utf8ToBytes (str) {
  var byteArray = []
  for (var i = 0; i < str.length; i++) {
    var b = str.charCodeAt(i)
    if (b <= 0x7F)
      byteArray.push(str.charCodeAt(i))
    else {
      var start = i
      if (b >= 0xD800 && b <= 0xDFFF) i++
      var h = encodeURIComponent(str.slice(start, i+1)).substr(1).split('%')
      for (var j = 0; j < h.length; j++)
        byteArray.push(parseInt(h[j], 16))
    }
  }
  return byteArray
}

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) {
  var c, hi, lo
  var byteArray = []
  for (var i = 0; i < str.length; i++) {
    c = str.charCodeAt(i)
    hi = c >> 8
    lo = c % 256
    byteArray.push(lo)
    byteArray.push(hi)
  }

  return byteArray
}

function base64ToBytes (str) {
  return base64.toByteArray(str)
}

function blitBuffer (src, dst, offset, length) {
  var pos
  for (var i = 0; i < length; i++) {
    if ((i + offset >= dst.length) || (i >= src.length))
      break
    dst[i + offset] = src[i]
  }
  return i
}

function decodeUtf8Char (str) {
  try {
    return decodeURIComponent(str)
  } catch (err) {
    return String.fromCharCode(0xFFFD) // UTF 8 invalid char
  }
}

/*
 * We have to make sure that the value is a valid integer. This means that it
 * is non-negative. It has no fractional component and that it does not
 * exceed the maximum allowed value.
 */
function verifuint (value, max) {
  assert(typeof value === 'number', 'cannot write a non-number as a number')
  assert(value >= 0, 'specified a negative value for writing an unsigned value')
  assert(value <= max, 'value is larger than maximum value for type')
  assert(Math.floor(value) === value, 'value has a fractional component')
}

function verifsint (value, max, min) {
  assert(typeof value === 'number', 'cannot write a non-number as a number')
  assert(value <= max, 'value larger than maximum allowed value')
  assert(value >= min, 'value smaller than minimum allowed value')
  assert(Math.floor(value) === value, 'value has a fractional component')
}

function verifIEEE754 (value, max, min) {
  assert(typeof value === 'number', 'cannot write a non-number as a number')
  assert(value <= max, 'value larger than maximum allowed value')
  assert(value >= min, 'value smaller than minimum allowed value')
}

function assert (test, message) {
  if (!test) throw new Error(message || 'Failed assertion')
}

},{"base64-js":4,"ieee754":17}],12:[function(_dereq_,module,exports){
(function (process){
/**
 * This is the web browser implementation of `debug()`.
 *
 * Expose `debug()` as the module.
 */

exports = module.exports = _dereq_('./debug');
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chrome
               && 'undefined' != typeof chrome.storage
                  ? chrome.storage.local
                  : localstorage();

/**
 * Colors.
 */

exports.colors = [
  'lightseagreen',
  'forestgreen',
  'goldenrod',
  'dodgerblue',
  'darkorchid',
  'crimson'
];

/**
 * Currently only WebKit-based Web Inspectors, Firefox >= v31,
 * and the Firebug extension (any Firefox version) are known
 * to support "%c" CSS customizations.
 *
 * TODO: add a `localStorage` variable to explicitly enable/disable colors
 */

function useColors() {
  // NB: In an Electron preload script, document will be defined but not fully
  // initialized. Since we know we're in Chrome, we'll just detect this case
  // explicitly
  if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {
    return true;
  }

  // is webkit? http://stackoverflow.com/a/16459606/376773
  // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
  return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
    // is firebug? http://stackoverflow.com/a/398120/376773
    (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
    // is firefox >= v31?
    // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
    (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
    // double check webkit in userAgent just in case we are in a worker
    (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
}

/**
 * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
 */

exports.formatters.j = function(v) {
  try {
    return JSON.stringify(v);
  } catch (err) {
    return '[UnexpectedJSONParseError]: ' + err.message;
  }
};


/**
 * Colorize log arguments if enabled.
 *
 * @api public
 */

function formatArgs(args) {
  var useColors = this.useColors;

  args[0] = (useColors ? '%c' : '')
    + this.namespace
    + (useColors ? ' %c' : ' ')
    + args[0]
    + (useColors ? '%c ' : ' ')
    + '+' + exports.humanize(this.diff);

  if (!useColors) return;

  var c = 'color: ' + this.color;
  args.splice(1, 0, c, 'color: inherit')

  // the final "%c" is somewhat tricky, because there could be other
  // arguments passed either before or after the %c, so we need to
  // figure out the correct index to insert the CSS into
  var index = 0;
  var lastC = 0;
  args[0].replace(/%[a-zA-Z%]/g, function(match) {
    if ('%%' === match) return;
    index++;
    if ('%c' === match) {
      // we only are interested in the *last* %c
      // (the user may have provided their own)
      lastC = index;
    }
  });

  args.splice(lastC, 0, c);
}

/**
 * Invokes `console.log()` when available.
 * No-op when `console.log` is not a "function".
 *
 * @api public
 */

function log() {
  // this hackery is required for IE8/9, where
  // the `console.log` function doesn't have 'apply'
  return 'object' === typeof console
    && console.log
    && Function.prototype.apply.call(console.log, console, arguments);
}

/**
 * Save `namespaces`.
 *
 * @param {String} namespaces
 * @api private
 */

function save(namespaces) {
  try {
    if (null == namespaces) {
      exports.storage.removeItem('debug');
    } else {
      exports.storage.debug = namespaces;
    }
  } catch(e) {}
}

/**
 * Load `namespaces`.
 *
 * @return {String} returns the previously persisted debug modes
 * @api private
 */

function load() {
  var r;
  try {
    r = exports.storage.debug;
  } catch(e) {}

  // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
  if (!r && typeof process !== 'undefined' && 'env' in process) {
    r = process.env.DEBUG;
  }

  return r;
}

/**
 * Enable namespaces listed in `localStorage.debug` initially.
 */

exports.enable(load());

/**
 * Localstorage attempts to return the localstorage.
 *
 * This is necessary because safari throws
 * when a user disables cookies/localstorage
 * and you attempt to access it.
 *
 * @return {LocalStorage}
 * @api private
 */

function localstorage() {
  try {
    return window.localStorage;
  } catch (e) {}
}

}).call(this,_dereq_("g5I+bs"))
},{"./debug":13,"g5I+bs":30}],13:[function(_dereq_,module,exports){

/**
 * This is the common logic for both the Node.js and web browser
 * implementations of `debug()`.
 *
 * Expose `debug()` as the module.
 */

exports = module.exports = createDebug.debug = createDebug['default'] = createDebug;
exports.coerce = coerce;
exports.disable = disable;
exports.enable = enable;
exports.enabled = enabled;
exports.humanize = _dereq_('ms');

/**
 * The currently active debug mode names, and names to skip.
 */

exports.names = [];
exports.skips = [];

/**
 * Map of special "%n" handling functions, for the debug "format" argument.
 *
 * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
 */

exports.formatters = {};

/**
 * Previous log timestamp.
 */

var prevTime;

/**
 * Select a color.
 * @param {String} namespace
 * @return {Number}
 * @api private
 */

function selectColor(namespace) {
  var hash = 0, i;

  for (i in namespace) {
    hash  = ((hash << 5) - hash) + namespace.charCodeAt(i);
    hash |= 0; // Convert to 32bit integer
  }

  return exports.colors[Math.abs(hash) % exports.colors.length];
}

/**
 * Create a debugger with the given `namespace`.
 *
 * @param {String} namespace
 * @return {Function}
 * @api public
 */

function createDebug(namespace) {

  function debug() {
    // disabled?
    if (!debug.enabled) return;

    var self = debug;

    // set `diff` timestamp
    var curr = +new Date();
    var ms = curr - (prevTime || curr);
    self.diff = ms;
    self.prev = prevTime;
    self.curr = curr;
    prevTime = curr;

    // turn the `arguments` into a proper Array
    var args = new Array(arguments.length);
    for (var i = 0; i < args.length; i++) {
      args[i] = arguments[i];
    }

    args[0] = exports.coerce(args[0]);

    if ('string' !== typeof args[0]) {
      // anything else let's inspect with %O
      args.unshift('%O');
    }

    // apply any `formatters` transformations
    var index = 0;
    args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
      // if we encounter an escaped % then don't increase the array index
      if (match === '%%') return match;
      index++;
      var formatter = exports.formatters[format];
      if ('function' === typeof formatter) {
        var val = args[index];
        match = formatter.call(self, val);

        // now we need to remove `args[index]` since it's inlined in the `format`
        args.splice(index, 1);
        index--;
      }
      return match;
    });

    // apply env-specific formatting (colors, etc.)
    exports.formatArgs.call(self, args);

    var logFn = debug.log || exports.log || console.log.bind(console);
    logFn.apply(self, args);
  }

  debug.namespace = namespace;
  debug.enabled = exports.enabled(namespace);
  debug.useColors = exports.useColors();
  debug.color = selectColor(namespace);

  // env-specific initialization logic for debug instances
  if ('function' === typeof exports.init) {
    exports.init(debug);
  }

  return debug;
}

/**
 * Enables a debug mode by namespaces. This can include modes
 * separated by a colon and wildcards.
 *
 * @param {String} namespaces
 * @api public
 */

function enable(namespaces) {
  exports.save(namespaces);

  exports.names = [];
  exports.skips = [];

  var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
  var len = split.length;

  for (var i = 0; i < len; i++) {
    if (!split[i]) continue; // ignore empty strings
    namespaces = split[i].replace(/\*/g, '.*?');
    if (namespaces[0] === '-') {
      exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
    } else {
      exports.names.push(new RegExp('^' + namespaces + '$'));
    }
  }
}

/**
 * Disable debug output.
 *
 * @api public
 */

function disable() {
  exports.enable('');
}

/**
 * Returns true if the given mode name is enabled, false otherwise.
 *
 * @param {String} name
 * @return {Boolean}
 * @api public
 */

function enabled(name) {
  var i, len;
  for (i = 0, len = exports.skips.length; i < len; i++) {
    if (exports.skips[i].test(name)) {
      return false;
    }
  }
  for (i = 0, len = exports.names.length; i < len; i++) {
    if (exports.names[i].test(name)) {
      return true;
    }
  }
  return false;
}

/**
 * Coerce `val`.
 *
 * @param {Mixed} val
 * @return {Mixed}
 * @api private
 */

function coerce(val) {
  if (val instanceof Error) return val.stack || val.message;
  return val;
}

},{"ms":21}],14:[function(_dereq_,module,exports){
(function (process,global){
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
 * @version   2.3.0
 */

(function() {
    "use strict";
    function lib$es6$promise$utils$$objectOrFunction(x) {
      return typeof x === 'function' || (typeof x === 'object' && x !== null);
    }

    function lib$es6$promise$utils$$isFunction(x) {
      return typeof x === 'function';
    }

    function lib$es6$promise$utils$$isMaybeThenable(x) {
      return typeof x === 'object' && x !== null;
    }

    var lib$es6$promise$utils$$_isArray;
    if (!Array.isArray) {
      lib$es6$promise$utils$$_isArray = function (x) {
        return Object.prototype.toString.call(x) === '[object Array]';
      };
    } else {
      lib$es6$promise$utils$$_isArray = Array.isArray;
    }

    var lib$es6$promise$utils$$isArray = lib$es6$promise$utils$$_isArray;
    var lib$es6$promise$asap$$len = 0;
    var lib$es6$promise$asap$$toString = {}.toString;
    var lib$es6$promise$asap$$vertxNext;
    var lib$es6$promise$asap$$customSchedulerFn;

    var lib$es6$promise$asap$$asap = function asap(callback, arg) {
      lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len] = callback;
      lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len + 1] = arg;
      lib$es6$promise$asap$$len += 2;
      if (lib$es6$promise$asap$$len === 2) {
        // If len is 2, that means that we need to schedule an async flush.
        // If additional callbacks are queued before the queue is flushed, they
        // will be processed by this flush that we are scheduling.
        if (lib$es6$promise$asap$$customSchedulerFn) {
          lib$es6$promise$asap$$customSchedulerFn(lib$es6$promise$asap$$flush);
        } else {
          lib$es6$promise$asap$$scheduleFlush();
        }
      }
    }

    function lib$es6$promise$asap$$setScheduler(scheduleFn) {
      lib$es6$promise$asap$$customSchedulerFn = scheduleFn;
    }

    function lib$es6$promise$asap$$setAsap(asapFn) {
      lib$es6$promise$asap$$asap = asapFn;
    }

    var lib$es6$promise$asap$$browserWindow = (typeof window !== 'undefined') ? window : undefined;
    var lib$es6$promise$asap$$browserGlobal = lib$es6$promise$asap$$browserWindow || {};
    var lib$es6$promise$asap$$BrowserMutationObserver = lib$es6$promise$asap$$browserGlobal.MutationObserver || lib$es6$promise$asap$$browserGlobal.WebKitMutationObserver;
    var lib$es6$promise$asap$$isNode = typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';

    // test for web worker but not in IE10
    var lib$es6$promise$asap$$isWorker = typeof Uint8ClampedArray !== 'undefined' &&
      typeof importScripts !== 'undefined' &&
      typeof MessageChannel !== 'undefined';

    // node
    function lib$es6$promise$asap$$useNextTick() {
      var nextTick = process.nextTick;
      // node version 0.10.x displays a deprecation warning when nextTick is used recursively
      // setImmediate should be used instead instead
      var version = process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);
      if (Array.isArray(version) && version[1] === '0' && version[2] === '10') {
        nextTick = setImmediate;
      }
      return function() {
        nextTick(lib$es6$promise$asap$$flush);
      };
    }

    // vertx
    function lib$es6$promise$asap$$useVertxTimer() {
      return function() {
        lib$es6$promise$asap$$vertxNext(lib$es6$promise$asap$$flush);
      };
    }

    function lib$es6$promise$asap$$useMutationObserver() {
      var iterations = 0;
      var observer = new lib$es6$promise$asap$$BrowserMutationObserver(lib$es6$promise$asap$$flush);
      var node = document.createTextNode('');
      observer.observe(node, { characterData: true });

      return function() {
        node.data = (iterations = ++iterations % 2);
      };
    }

    // web worker
    function lib$es6$promise$asap$$useMessageChannel() {
      var channel = new MessageChannel();
      channel.port1.onmessage = lib$es6$promise$asap$$flush;
      return function () {
        channel.port2.postMessage(0);
      };
    }

    function lib$es6$promise$asap$$useSetTimeout() {
      return function() {
        setTimeout(lib$es6$promise$asap$$flush, 1);
      };
    }

    var lib$es6$promise$asap$$queue = new Array(1000);
    function lib$es6$promise$asap$$flush() {
      for (var i = 0; i < lib$es6$promise$asap$$len; i+=2) {
        var callback = lib$es6$promise$asap$$queue[i];
        var arg = lib$es6$promise$asap$$queue[i+1];

        callback(arg);

        lib$es6$promise$asap$$queue[i] = undefined;
        lib$es6$promise$asap$$queue[i+1] = undefined;
      }

      lib$es6$promise$asap$$len = 0;
    }

    function lib$es6$promise$asap$$attemptVertex() {
      try {
        var r = _dereq_;
        var vertx = r('vertx');
        lib$es6$promise$asap$$vertxNext = vertx.runOnLoop || vertx.runOnContext;
        return lib$es6$promise$asap$$useVertxTimer();
      } catch(e) {
        return lib$es6$promise$asap$$useSetTimeout();
      }
    }

    var lib$es6$promise$asap$$scheduleFlush;
    // Decide what async method to use to triggering processing of queued callbacks:
    if (lib$es6$promise$asap$$isNode) {
      lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useNextTick();
    } else if (lib$es6$promise$asap$$BrowserMutationObserver) {
      lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useMutationObserver();
    } else if (lib$es6$promise$asap$$isWorker) {
      lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useMessageChannel();
    } else if (lib$es6$promise$asap$$browserWindow === undefined && typeof _dereq_ === 'function') {
      lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$attemptVertex();
    } else {
      lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useSetTimeout();
    }

    function lib$es6$promise$$internal$$noop() {}

    var lib$es6$promise$$internal$$PENDING   = void 0;
    var lib$es6$promise$$internal$$FULFILLED = 1;
    var lib$es6$promise$$internal$$REJECTED  = 2;

    var lib$es6$promise$$internal$$GET_THEN_ERROR = new lib$es6$promise$$internal$$ErrorObject();

    function lib$es6$promise$$internal$$selfFullfillment() {
      return new TypeError("You cannot resolve a promise with itself");
    }

    function lib$es6$promise$$internal$$cannotReturnOwn() {
      return new TypeError('A promises callback cannot return that same promise.');
    }

    function lib$es6$promise$$internal$$getThen(promise) {
      try {
        return promise.then;
      } catch(error) {
        lib$es6$promise$$internal$$GET_THEN_ERROR.error = error;
        return lib$es6$promise$$internal$$GET_THEN_ERROR;
      }
    }

    function lib$es6$promise$$internal$$tryThen(then, value, fulfillmentHandler, rejectionHandler) {
      try {
        then.call(value, fulfillmentHandler, rejectionHandler);
      } catch(e) {
        return e;
      }
    }

    function lib$es6$promise$$internal$$handleForeignThenable(promise, thenable, then) {
       lib$es6$promise$asap$$asap(function(promise) {
        var sealed = false;
        var error = lib$es6$promise$$internal$$tryThen(then, thenable, function(value) {
          if (sealed) { return; }
          sealed = true;
          if (thenable !== value) {
            lib$es6$promise$$internal$$resolve(promise, value);
          } else {
            lib$es6$promise$$internal$$fulfill(promise, value);
          }
        }, function(reason) {
          if (sealed) { return; }
          sealed = true;

          lib$es6$promise$$internal$$reject(promise, reason);
        }, 'Settle: ' + (promise._label || ' unknown promise'));

        if (!sealed && error) {
          sealed = true;
          lib$es6$promise$$internal$$reject(promise, error);
        }
      }, promise);
    }

    function lib$es6$promise$$internal$$handleOwnThenable(promise, thenable) {
      if (thenable._state === lib$es6$promise$$internal$$FULFILLED) {
        lib$es6$promise$$internal$$fulfill(promise, thenable._result);
      } else if (thenable._state === lib$es6$promise$$internal$$REJECTED) {
        lib$es6$promise$$internal$$reject(promise, thenable._result);
      } else {
        lib$es6$promise$$internal$$subscribe(thenable, undefined, function(value) {
          lib$es6$promise$$internal$$resolve(promise, value);
        }, function(reason) {
          lib$es6$promise$$internal$$reject(promise, reason);
        });
      }
    }

    function lib$es6$promise$$internal$$handleMaybeThenable(promise, maybeThenable) {
      if (maybeThenable.constructor === promise.constructor) {
        lib$es6$promise$$internal$$handleOwnThenable(promise, maybeThenable);
      } else {
        var then = lib$es6$promise$$internal$$getThen(maybeThenable);

        if (then === lib$es6$promise$$internal$$GET_THEN_ERROR) {
          lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$GET_THEN_ERROR.error);
        } else if (then === undefined) {
          lib$es6$promise$$internal$$fulfill(promise, maybeThenable);
        } else if (lib$es6$promise$utils$$isFunction(then)) {
          lib$es6$promise$$internal$$handleForeignThenable(promise, maybeThenable, then);
        } else {
          lib$es6$promise$$internal$$fulfill(promise, maybeThenable);
        }
      }
    }

    function lib$es6$promise$$internal$$resolve(promise, value) {
      if (promise === value) {
        lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$selfFullfillment());
      } else if (lib$es6$promise$utils$$objectOrFunction(value)) {
        lib$es6$promise$$internal$$handleMaybeThenable(promise, value);
      } else {
        lib$es6$promise$$internal$$fulfill(promise, value);
      }
    }

    function lib$es6$promise$$internal$$publishRejection(promise) {
      if (promise._onerror) {
        promise._onerror(promise._result);
      }

      lib$es6$promise$$internal$$publish(promise);
    }

    function lib$es6$promise$$internal$$fulfill(promise, value) {
      if (promise._state !== lib$es6$promise$$internal$$PENDING) { return; }

      promise._result = value;
      promise._state = lib$es6$promise$$internal$$FULFILLED;

      if (promise._subscribers.length !== 0) {
        lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, promise);
      }
    }

    function lib$es6$promise$$internal$$reject(promise, reason) {
      if (promise._state !== lib$es6$promise$$internal$$PENDING) { return; }
      promise._state = lib$es6$promise$$internal$$REJECTED;
      promise._result = reason;

      lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publishRejection, promise);
    }

    function lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection) {
      var subscribers = parent._subscribers;
      var length = subscribers.length;

      parent._onerror = null;

      subscribers[length] = child;
      subscribers[length + lib$es6$promise$$internal$$FULFILLED] = onFulfillment;
      subscribers[length + lib$es6$promise$$internal$$REJECTED]  = onRejection;

      if (length === 0 && parent._state) {
        lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, parent);
      }
    }

    function lib$es6$promise$$internal$$publish(promise) {
      var subscribers = promise._subscribers;
      var settled = promise._state;

      if (subscribers.length === 0) { return; }

      var child, callback, detail = promise._result;

      for (var i = 0; i < subscribers.length; i += 3) {
        child = subscribers[i];
        callback = subscribers[i + settled];

        if (child) {
          lib$es6$promise$$internal$$invokeCallback(settled, child, callback, detail);
        } else {
          callback(detail);
        }
      }

      promise._subscribers.length = 0;
    }

    function lib$es6$promise$$internal$$ErrorObject() {
      this.error = null;
    }

    var lib$es6$promise$$internal$$TRY_CATCH_ERROR = new lib$es6$promise$$internal$$ErrorObject();

    function lib$es6$promise$$internal$$tryCatch(callback, detail) {
      try {
        return callback(detail);
      } catch(e) {
        lib$es6$promise$$internal$$TRY_CATCH_ERROR.error = e;
        return lib$es6$promise$$internal$$TRY_CATCH_ERROR;
      }
    }

    function lib$es6$promise$$internal$$invokeCallback(settled, promise, callback, detail) {
      var hasCallback = lib$es6$promise$utils$$isFunction(callback),
          value, error, succeeded, failed;

      if (hasCallback) {
        value = lib$es6$promise$$internal$$tryCatch(callback, detail);

        if (value === lib$es6$promise$$internal$$TRY_CATCH_ERROR) {
          failed = true;
          error = value.error;
          value = null;
        } else {
          succeeded = true;
        }

        if (promise === value) {
          lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$cannotReturnOwn());
          return;
        }

      } else {
        value = detail;
        succeeded = true;
      }

      if (promise._state !== lib$es6$promise$$internal$$PENDING) {
        // noop
      } else if (hasCallback && succeeded) {
        lib$es6$promise$$internal$$resolve(promise, value);
      } else if (failed) {
        lib$es6$promise$$internal$$reject(promise, error);
      } else if (settled === lib$es6$promise$$internal$$FULFILLED) {
        lib$es6$promise$$internal$$fulfill(promise, value);
      } else if (settled === lib$es6$promise$$internal$$REJECTED) {
        lib$es6$promise$$internal$$reject(promise, value);
      }
    }

    function lib$es6$promise$$internal$$initializePromise(promise, resolver) {
      try {
        resolver(function resolvePromise(value){
          lib$es6$promise$$internal$$resolve(promise, value);
        }, function rejectPromise(reason) {
          lib$es6$promise$$internal$$reject(promise, reason);
        });
      } catch(e) {
        lib$es6$promise$$internal$$reject(promise, e);
      }
    }

    function lib$es6$promise$enumerator$$Enumerator(Constructor, input) {
      var enumerator = this;

      enumerator._instanceConstructor = Constructor;
      enumerator.promise = new Constructor(lib$es6$promise$$internal$$noop);

      if (enumerator._validateInput(input)) {
        enumerator._input     = input;
        enumerator.length     = input.length;
        enumerator._remaining = input.length;

        enumerator._init();

        if (enumerator.length === 0) {
          lib$es6$promise$$internal$$fulfill(enumerator.promise, enumerator._result);
        } else {
          enumerator.length = enumerator.length || 0;
          enumerator._enumerate();
          if (enumerator._remaining === 0) {
            lib$es6$promise$$internal$$fulfill(enumerator.promise, enumerator._result);
          }
        }
      } else {
        lib$es6$promise$$internal$$reject(enumerator.promise, enumerator._validationError());
      }
    }

    lib$es6$promise$enumerator$$Enumerator.prototype._validateInput = function(input) {
      return lib$es6$promise$utils$$isArray(input);
    };

    lib$es6$promise$enumerator$$Enumerator.prototype._validationError = function() {
      return new Error('Array Methods must be provided an Array');
    };

    lib$es6$promise$enumerator$$Enumerator.prototype._init = function() {
      this._result = new Array(this.length);
    };

    var lib$es6$promise$enumerator$$default = lib$es6$promise$enumerator$$Enumerator;

    lib$es6$promise$enumerator$$Enumerator.prototype._enumerate = function() {
      var enumerator = this;

      var length  = enumerator.length;
      var promise = enumerator.promise;
      var input   = enumerator._input;

      for (var i = 0; promise._state === lib$es6$promise$$internal$$PENDING && i < length; i++) {
        enumerator._eachEntry(input[i], i);
      }
    };

    lib$es6$promise$enumerator$$Enumerator.prototype._eachEntry = function(entry, i) {
      var enumerator = this;
      var c = enumerator._instanceConstructor;

      if (lib$es6$promise$utils$$isMaybeThenable(entry)) {
        if (entry.constructor === c && entry._state !== lib$es6$promise$$internal$$PENDING) {
          entry._onerror = null;
          enumerator._settledAt(entry._state, i, entry._result);
        } else {
          enumerator._willSettleAt(c.resolve(entry), i);
        }
      } else {
        enumerator._remaining--;
        enumerator._result[i] = entry;
      }
    };

    lib$es6$promise$enumerator$$Enumerator.prototype._settledAt = function(state, i, value) {
      var enumerator = this;
      var promise = enumerator.promise;

      if (promise._state === lib$es6$promise$$internal$$PENDING) {
        enumerator._remaining--;

        if (state === lib$es6$promise$$internal$$REJECTED) {
          lib$es6$promise$$internal$$reject(promise, value);
        } else {
          enumerator._result[i] = value;
        }
      }

      if (enumerator._remaining === 0) {
        lib$es6$promise$$internal$$fulfill(promise, enumerator._result);
      }
    };

    lib$es6$promise$enumerator$$Enumerator.prototype._willSettleAt = function(promise, i) {
      var enumerator = this;

      lib$es6$promise$$internal$$subscribe(promise, undefined, function(value) {
        enumerator._settledAt(lib$es6$promise$$internal$$FULFILLED, i, value);
      }, function(reason) {
        enumerator._settledAt(lib$es6$promise$$internal$$REJECTED, i, reason);
      });
    };
    function lib$es6$promise$promise$all$$all(entries) {
      return new lib$es6$promise$enumerator$$default(this, entries).promise;
    }
    var lib$es6$promise$promise$all$$default = lib$es6$promise$promise$all$$all;
    function lib$es6$promise$promise$race$$race(entries) {
      /*jshint validthis:true */
      var Constructor = this;

      var promise = new Constructor(lib$es6$promise$$internal$$noop);

      if (!lib$es6$promise$utils$$isArray(entries)) {
        lib$es6$promise$$internal$$reject(promise, new TypeError('You must pass an array to race.'));
        return promise;
      }

      var length = entries.length;

      function onFulfillment(value) {
        lib$es6$promise$$internal$$resolve(promise, value);
      }

      function onRejection(reason) {
        lib$es6$promise$$internal$$reject(promise, reason);
      }

      for (var i = 0; promise._state === lib$es6$promise$$internal$$PENDING && i < length; i++) {
        lib$es6$promise$$internal$$subscribe(Constructor.resolve(entries[i]), undefined, onFulfillment, onRejection);
      }

      return promise;
    }
    var lib$es6$promise$promise$race$$default = lib$es6$promise$promise$race$$race;
    function lib$es6$promise$promise$resolve$$resolve(object) {
      /*jshint validthis:true */
      var Constructor = this;

      if (object && typeof object === 'object' && object.constructor === Constructor) {
        return object;
      }

      var promise = new Constructor(lib$es6$promise$$internal$$noop);
      lib$es6$promise$$internal$$resolve(promise, object);
      return promise;
    }
    var lib$es6$promise$promise$resolve$$default = lib$es6$promise$promise$resolve$$resolve;
    function lib$es6$promise$promise$reject$$reject(reason) {
      /*jshint validthis:true */
      var Constructor = this;
      var promise = new Constructor(lib$es6$promise$$internal$$noop);
      lib$es6$promise$$internal$$reject(promise, reason);
      return promise;
    }
    var lib$es6$promise$promise$reject$$default = lib$es6$promise$promise$reject$$reject;

    var lib$es6$promise$promise$$counter = 0;

    function lib$es6$promise$promise$$needsResolver() {
      throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');
    }

    function lib$es6$promise$promise$$needsNew() {
      throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
    }

    var lib$es6$promise$promise$$default = lib$es6$promise$promise$$Promise;
    /**
      Promise objects represent the eventual result of an asynchronous operation. The
      primary way of interacting with a promise is through its `then` method, which
      registers callbacks to receive either a promise's eventual value or the reason
      why the promise cannot be fulfilled.

      Terminology
      -----------

      - `promise` is an object or function with a `then` method whose behavior conforms to this specification.
      - `thenable` is an object or function that defines a `then` method.
      - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).
      - `exception` is a value that is thrown using the throw statement.
      - `reason` is a value that indicates why a promise was rejected.
      - `settled` the final resting state of a promise, fulfilled or rejected.

      A promise can be in one of three states: pending, fulfilled, or rejected.

      Promises that are fulfilled have a fulfillment value and are in the fulfilled
      state.  Promises that are rejected have a rejection reason and are in the
      rejected state.  A fulfillment value is never a thenable.

      Promises can also be said to *resolve* a value.  If this value is also a
      promise, then the original promise's settled state will match the value's
      settled state.  So a promise that *resolves* a promise that rejects will
      itself reject, and a promise that *resolves* a promise that fulfills will
      itself fulfill.


      Basic Usage:
      ------------

      ```js
      var promise = new Promise(function(resolve, reject) {
        // on success
        resolve(value);

        // on failure
        reject(reason);
      });

      promise.then(function(value) {
        // on fulfillment
      }, function(reason) {
        // on rejection
      });
      ```

      Advanced Usage:
      ---------------

      Promises shine when abstracting away asynchronous interactions such as
      `XMLHttpRequest`s.

      ```js
      function getJSON(url) {
        return new Promise(function(resolve, reject){
          var xhr = new XMLHttpRequest();

          xhr.open('GET', url);
          xhr.onreadystatechange = handler;
          xhr.responseType = 'json';
          xhr.setRequestHeader('Accept', 'application/json');
          xhr.send();

          function handler() {
            if (this.readyState === this.DONE) {
              if (this.status === 200) {
                resolve(this.response);
              } else {
                reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));
              }
            }
          };
        });
      }

      getJSON('/posts.json').then(function(json) {
        // on fulfillment
      }, function(reason) {
        // on rejection
      });
      ```

      Unlike callbacks, promises are great composable primitives.

      ```js
      Promise.all([
        getJSON('/posts'),
        getJSON('/comments')
      ]).then(function(values){
        values[0] // => postsJSON
        values[1] // => commentsJSON

        return values;
      });
      ```

      @class Promise
      @param {function} resolver
      Useful for tooling.
      @constructor
    */
    function lib$es6$promise$promise$$Promise(resolver) {
      this._id = lib$es6$promise$promise$$counter++;
      this._state = undefined;
      this._result = undefined;
      this._subscribers = [];

      if (lib$es6$promise$$internal$$noop !== resolver) {
        if (!lib$es6$promise$utils$$isFunction(resolver)) {
          lib$es6$promise$promise$$needsResolver();
        }

        if (!(this instanceof lib$es6$promise$promise$$Promise)) {
          lib$es6$promise$promise$$needsNew();
        }

        lib$es6$promise$$internal$$initializePromise(this, resolver);
      }
    }

    lib$es6$promise$promise$$Promise.all = lib$es6$promise$promise$all$$default;
    lib$es6$promise$promise$$Promise.race = lib$es6$promise$promise$race$$default;
    lib$es6$promise$promise$$Promise.resolve = lib$es6$promise$promise$resolve$$default;
    lib$es6$promise$promise$$Promise.reject = lib$es6$promise$promise$reject$$default;
    lib$es6$promise$promise$$Promise._setScheduler = lib$es6$promise$asap$$setScheduler;
    lib$es6$promise$promise$$Promise._setAsap = lib$es6$promise$asap$$setAsap;
    lib$es6$promise$promise$$Promise._asap = lib$es6$promise$asap$$asap;

    lib$es6$promise$promise$$Promise.prototype = {
      constructor: lib$es6$promise$promise$$Promise,

    /**
      The primary way of interacting with a promise is through its `then` method,
      which registers callbacks to receive either a promise's eventual value or the
      reason why the promise cannot be fulfilled.

      ```js
      findUser().then(function(user){
        // user is available
      }, function(reason){
        // user is unavailable, and you are given the reason why
      });
      ```

      Chaining
      --------

      The return value of `then` is itself a promise.  This second, 'downstream'
      promise is resolved with the return value of the first promise's fulfillment
      or rejection handler, or rejected if the handler throws an exception.

      ```js
      findUser().then(function (user) {
        return user.name;
      }, function (reason) {
        return 'default name';
      }).then(function (userName) {
        // If `findUser` fulfilled, `userName` will be the user's name, otherwise it
        // will be `'default name'`
      });

      findUser().then(function (user) {
        throw new Error('Found user, but still unhappy');
      }, function (reason) {
        throw new Error('`findUser` rejected and we're unhappy');
      }).then(function (value) {
        // never reached
      }, function (reason) {
        // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.
        // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.
      });
      ```
      If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.

      ```js
      findUser().then(function (user) {
        throw new PedagogicalException('Upstream error');
      }).then(function (value) {
        // never reached
      }).then(function (value) {
        // never reached
      }, function (reason) {
        // The `PedgagocialException` is propagated all the way down to here
      });
      ```

      Assimilation
      ------------

      Sometimes the value you want to propagate to a downstream promise can only be
      retrieved asynchronously. This can be achieved by returning a promise in the
      fulfillment or rejection handler. The downstream promise will then be pending
      until the returned promise is settled. This is called *assimilation*.

      ```js
      findUser().then(function (user) {
        return findCommentsByAuthor(user);
      }).then(function (comments) {
        // The user's comments are now available
      });
      ```

      If the assimliated promise rejects, then the downstream promise will also reject.

      ```js
      findUser().then(function (user) {
        return findCommentsByAuthor(user);
      }).then(function (comments) {
        // If `findCommentsByAuthor` fulfills, we'll have the value here
      }, function (reason) {
        // If `findCommentsByAuthor` rejects, we'll have the reason here
      });
      ```

      Simple Example
      --------------

      Synchronous Example

      ```javascript
      var result;

      try {
        result = findResult();
        // success
      } catch(reason) {
        // failure
      }
      ```

      Errback Example

      ```js
      findResult(function(result, err){
        if (err) {
          // failure
        } else {
          // success
        }
      });
      ```

      Promise Example;

      ```javascript
      findResult().then(function(result){
        // success
      }, function(reason){
        // failure
      });
      ```

      Advanced Example
      --------------

      Synchronous Example

      ```javascript
      var author, books;

      try {
        author = findAuthor();
        books  = findBooksByAuthor(author);
        // success
      } catch(reason) {
        // failure
      }
      ```

      Errback Example

      ```js

      function foundBooks(books) {

      }

      function failure(reason) {

      }

      findAuthor(function(author, err){
        if (err) {
          failure(err);
          // failure
        } else {
          try {
            findBoooksByAuthor(author, function(books, err) {
              if (err) {
                failure(err);
              } else {
                try {
                  foundBooks(books);
                } catch(reason) {
                  failure(reason);
                }
              }
            });
          } catch(error) {
            failure(err);
          }
          // success
        }
      });
      ```

      Promise Example;

      ```javascript
      findAuthor().
        then(findBooksByAuthor).
        then(function(books){
          // found books
      }).catch(function(reason){
        // something went wrong
      });
      ```

      @method then
      @param {Function} onFulfilled
      @param {Function} onRejected
      Useful for tooling.
      @return {Promise}
    */
      then: function(onFulfillment, onRejection) {
        var parent = this;
        var state = parent._state;

        if (state === lib$es6$promise$$internal$$FULFILLED && !onFulfillment || state === lib$es6$promise$$internal$$REJECTED && !onRejection) {
          return this;
        }

        var child = new this.constructor(lib$es6$promise$$internal$$noop);
        var result = parent._result;

        if (state) {
          var callback = arguments[state - 1];
          lib$es6$promise$asap$$asap(function(){
            lib$es6$promise$$internal$$invokeCallback(state, child, callback, result);
          });
        } else {
          lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection);
        }

        return child;
      },

    /**
      `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same
      as the catch block of a try/catch statement.

      ```js
      function findAuthor(){
        throw new Error('couldn't find that author');
      }

      // synchronous
      try {
        findAuthor();
      } catch(reason) {
        // something went wrong
      }

      // async with promises
      findAuthor().catch(function(reason){
        // something went wrong
      });
      ```

      @method catch
      @param {Function} onRejection
      Useful for tooling.
      @return {Promise}
    */
      'catch': function(onRejection) {
        return this.then(null, onRejection);
      }
    };
    function lib$es6$promise$polyfill$$polyfill() {
      var local;

      if (typeof global !== 'undefined') {
          local = global;
      } else if (typeof self !== 'undefined') {
          local = self;
      } else {
          try {
              local = Function('return this')();
          } catch (e) {
              throw new Error('polyfill failed because global object is unavailable in this environment');
          }
      }

      var P = local.Promise;

      if (P && Object.prototype.toString.call(P.resolve()) === '[object Promise]' && !P.cast) {
        return;
      }

      local.Promise = lib$es6$promise$promise$$default;
    }
    var lib$es6$promise$polyfill$$default = lib$es6$promise$polyfill$$polyfill;

    var lib$es6$promise$umd$$ES6Promise = {
      'Promise': lib$es6$promise$promise$$default,
      'polyfill': lib$es6$promise$polyfill$$default
    };

    /* global define:true module:true window: true */
    if (typeof define === 'function' && define['amd']) {
      define(function() { return lib$es6$promise$umd$$ES6Promise; });
    } else if (typeof module !== 'undefined' && module['exports']) {
      module['exports'] = lib$es6$promise$umd$$ES6Promise;
    } else if (typeof this !== 'undefined') {
      this['ES6Promise'] = lib$es6$promise$umd$$ES6Promise;
    }

    lib$es6$promise$polyfill$$default();
}).call(this);


}).call(this,_dereq_("g5I+bs"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"g5I+bs":30}],15:[function(_dereq_,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

function EventEmitter() {
  this._events = this._events || {};
  this._maxListeners = this._maxListeners || undefined;
}
module.exports = EventEmitter;

// Backwards-compat with node 0.10.x
EventEmitter.EventEmitter = EventEmitter;

EventEmitter.prototype._events = undefined;
EventEmitter.prototype._maxListeners = undefined;

// By default EventEmitters will print a warning if more than 10 listeners are
// added to it. This is a useful default which helps finding memory leaks.
EventEmitter.defaultMaxListeners = 10;

// Obviously not all Emitters should be limited to 10. This function allows
// that to be increased. Set to zero for unlimited.
EventEmitter.prototype.setMaxListeners = function(n) {
  if (!isNumber(n) || n < 0 || isNaN(n))
    throw TypeError('n must be a positive number');
  this._maxListeners = n;
  return this;
};

EventEmitter.prototype.emit = function(type) {
  var er, handler, len, args, i, listeners;

  if (!this._events)
    this._events = {};

  // If there is no 'error' event listener then throw.
  if (type === 'error') {
    if (!this._events.error ||
        (isObject(this._events.error) && !this._events.error.length)) {
      er = arguments[1];
      if (er instanceof Error) {
        throw er; // Unhandled 'error' event
      }
      throw TypeError('Uncaught, unspecified "error" event.');
    }
  }

  handler = this._events[type];

  if (isUndefined(handler))
    return false;

  if (isFunction(handler)) {
    switch (arguments.length) {
      // fast cases
      case 1:
        handler.call(this);
        break;
      case 2:
        handler.call(this, arguments[1]);
        break;
      case 3:
        handler.call(this, arguments[1], arguments[2]);
        break;
      // slower
      default:
        len = arguments.length;
        args = new Array(len - 1);
        for (i = 1; i < len; i++)
          args[i - 1] = arguments[i];
        handler.apply(this, args);
    }
  } else if (isObject(handler)) {
    len = arguments.length;
    args = new Array(len - 1);
    for (i = 1; i < len; i++)
      args[i - 1] = arguments[i];

    listeners = handler.slice();
    len = listeners.length;
    for (i = 0; i < len; i++)
      listeners[i].apply(this, args);
  }

  return true;
};

EventEmitter.prototype.addListener = function(type, listener) {
  var m;

  if (!isFunction(listener))
    throw TypeError('listener must be a function');

  if (!this._events)
    this._events = {};

  // To avoid recursion in the case that type === "newListener"! Before
  // adding it to the listeners, first emit "newListener".
  if (this._events.newListener)
    this.emit('newListener', type,
              isFunction(listener.listener) ?
              listener.listener : listener);

  if (!this._events[type])
    // Optimize the case of one listener. Don't need the extra array object.
    this._events[type] = listener;
  else if (isObject(this._events[type]))
    // If we've already got an array, just append.
    this._events[type].push(listener);
  else
    // Adding the second element, need to change to array.
    this._events[type] = [this._events[type], listener];

  // Check for listener leak
  if (isObject(this._events[type]) && !this._events[type].warned) {
    var m;
    if (!isUndefined(this._maxListeners)) {
      m = this._maxListeners;
    } else {
      m = EventEmitter.defaultMaxListeners;
    }

    if (m && m > 0 && this._events[type].length > m) {
      this._events[type].warned = true;
      console.error('(node) warning: possible EventEmitter memory ' +
                    'leak detected. %d listeners added. ' +
                    'Use emitter.setMaxListeners() to increase limit.',
                    this._events[type].length);
      if (typeof console.trace === 'function') {
        // not supported in IE 10
        console.trace();
      }
    }
  }

  return this;
};

EventEmitter.prototype.on = EventEmitter.prototype.addListener;

EventEmitter.prototype.once = function(type, listener) {
  if (!isFunction(listener))
    throw TypeError('listener must be a function');

  var fired = false;

  function g() {
    this.removeListener(type, g);

    if (!fired) {
      fired = true;
      listener.apply(this, arguments);
    }
  }

  g.listener = listener;
  this.on(type, g);

  return this;
};

// emits a 'removeListener' event iff the listener was removed
EventEmitter.prototype.removeListener = function(type, listener) {
  var list, position, length, i;

  if (!isFunction(listener))
    throw TypeError('listener must be a function');

  if (!this._events || !this._events[type])
    return this;

  list = this._events[type];
  length = list.length;
  position = -1;

  if (list === listener ||
      (isFunction(list.listener) && list.listener === listener)) {
    delete this._events[type];
    if (this._events.removeListener)
      this.emit('removeListener', type, listener);

  } else if (isObject(list)) {
    for (i = length; i-- > 0;) {
      if (list[i] === listener ||
          (list[i].listener && list[i].listener === listener)) {
        position = i;
        break;
      }
    }

    if (position < 0)
      return this;

    if (list.length === 1) {
      list.length = 0;
      delete this._events[type];
    } else {
      list.splice(position, 1);
    }

    if (this._events.removeListener)
      this.emit('removeListener', type, listener);
  }

  return this;
};

EventEmitter.prototype.removeAllListeners = function(type) {
  var key, listeners;

  if (!this._events)
    return this;

  // not listening for removeListener, no need to emit
  if (!this._events.removeListener) {
    if (arguments.length === 0)
      this._events = {};
    else if (this._events[type])
      delete this._events[type];
    return this;
  }

  // emit removeListener for all listeners on all events
  if (arguments.length === 0) {
    for (key in this._events) {
      if (key === 'removeListener') continue;
      this.removeAllListeners(key);
    }
    this.removeAllListeners('removeListener');
    this._events = {};
    return this;
  }

  listeners = this._events[type];

  if (isFunction(listeners)) {
    this.removeListener(type, listeners);
  } else {
    // LIFO order
    while (listeners.length)
      this.removeListener(type, listeners[listeners.length - 1]);
  }
  delete this._events[type];

  return this;
};

EventEmitter.prototype.listeners = function(type) {
  var ret;
  if (!this._events || !this._events[type])
    ret = [];
  else if (isFunction(this._events[type]))
    ret = [this._events[type]];
  else
    ret = this._events[type].slice();
  return ret;
};

EventEmitter.listenerCount = function(emitter, type) {
  var ret;
  if (!emitter._events || !emitter._events[type])
    ret = 0;
  else if (isFunction(emitter._events[type]))
    ret = 1;
  else
    ret = emitter._events[type].length;
  return ret;
};

function isFunction(arg) {
  return typeof arg === 'function';
}

function isNumber(arg) {
  return typeof arg === 'number';
}

function isObject(arg) {
  return typeof arg === 'object' && arg !== null;
}

function isUndefined(arg) {
  return arg === void 0;
}

},{}],16:[function(_dereq_,module,exports){
var http = _dereq_('http');

var https = module.exports;

for (var key in http) {
    if (http.hasOwnProperty(key)) https[key] = http[key];
};

https.request = function (params, cb) {
    if (!params) params = {};
    params.scheme = 'https';
    params.protocol = 'https:';
    return http.request.call(this, params, cb);
}

},{"http":6}],17:[function(_dereq_,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
}

},{}],18:[function(_dereq_,module,exports){
if (typeof Object.create === 'function') {
  // implementation from standard node.js 'util' module
  module.exports = function inherits(ctor, superCtor) {
    ctor.super_ = superCtor
    ctor.prototype = Object.create(superCtor.prototype, {
      constructor: {
        value: ctor,
        enumerable: false,
        writable: true,
        configurable: true
      }
    });
  };
} else {
  // old school shim for old browsers
  module.exports = function inherits(ctor, superCtor) {
    ctor.super_ = superCtor
    var TempCtor = function () {}
    TempCtor.prototype = superCtor.prototype
    ctor.prototype = new TempCtor()
    ctor.prototype.constructor = ctor
  }
}

},{}],19:[function(_dereq_,module,exports){
// Ignore module for browserify (see package.json)
},{}],20:[function(_dereq_,module,exports){
(function (process,global,__dirname){
/**
 * A JavaScript implementation of the JSON-LD API.
 *
 * @author Dave Longley
 *
 * @license BSD 3-Clause License
 * Copyright (c) 2011-2015 Digital Bazaar, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 *
 * Neither the name of the Digital Bazaar, Inc. nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
(function() {

// determine if in-browser or using node.js
var _nodejs = (
  typeof process !== 'undefined' && process.versions && process.versions.node);
var _browser = !_nodejs &&
  (typeof window !== 'undefined' || typeof self !== 'undefined');
if(_browser) {
  if(typeof global === 'undefined') {
    if(typeof window !== 'undefined') {
      global = window;
    } else if(typeof self !== 'undefined') {
      global = self;
    } else if(typeof $ !== 'undefined') {
      global = $;
    }
  }
}

// attaches jsonld API to the given object
var wrapper = function(jsonld) {

/* Core API */

/**
 * Performs JSON-LD compaction.
 *
 * @param input the JSON-LD input to compact.
 * @param ctx the context to compact with.
 * @param [options] options to use:
 *          [base] the base IRI to use.
 *          [compactArrays] true to compact arrays to single values when
 *            appropriate, false not to (default: true).
 *          [graph] true to always output a top-level graph (default: false).
 *          [expandContext] a context to expand with.
 *          [skipExpansion] true to assume the input is expanded and skip
 *            expansion, false not to, defaults to false.
 *          [documentLoader(url, callback(err, remoteDoc))] the document loader.
 * @param callback(err, compacted, ctx) called once the operation completes.
 */
jsonld.compact = function(input, ctx, options, callback) {
  if(arguments.length < 2) {
    return jsonld.nextTick(function() {
      callback(new TypeError('Could not compact, too few arguments.'));
    });
  }

  // get arguments
  if(typeof options === 'function') {
    callback = options;
    options = {};
  }
  options = options || {};

  if(ctx === null) {
    return jsonld.nextTick(function() {
      callback(new JsonLdError(
        'The compaction context must not be null.',
        'jsonld.CompactError', {code: 'invalid local context'}));
    });
  }

  // nothing to compact
  if(input === null) {
    return jsonld.nextTick(function() {
      callback(null, null);
    });
  }

  // set default options
  if(!('base' in options)) {
    options.base = (typeof input === 'string') ? input : '';
  }
  if(!('compactArrays' in options)) {
    options.compactArrays = true;
  }
  if(!('graph' in options)) {
    options.graph = false;
  }
  if(!('skipExpansion' in options)) {
    options.skipExpansion = false;
  }
  if(!('documentLoader' in options)) {
    options.documentLoader = jsonld.loadDocument;
  }
  if(!('link' in options)) {
    options.link = false;
  }
  if(options.link) {
    // force skip expansion when linking, "link" is not part of the public
    // API, it should only be called from framing
    options.skipExpansion = true;
  }

  var expand = function(input, options, callback) {
    if(options.skipExpansion) {
      return jsonld.nextTick(function() {
        callback(null, input);
      });
    }
    jsonld.expand(input, options, callback);
  };

  // expand input then do compaction
  expand(input, options, function(err, expanded) {
    if(err) {
      return callback(new JsonLdError(
        'Could not expand input before compaction.',
        'jsonld.CompactError', {cause: err}));
    }

    // process context
    var activeCtx = _getInitialContext(options);
    jsonld.processContext(activeCtx, ctx, options, function(err, activeCtx) {
      if(err) {
        return callback(new JsonLdError(
          'Could not process context before compaction.',
          'jsonld.CompactError', {cause: err}));
      }

      var compacted;
      try {
        // do compaction
        compacted = new Processor().compact(activeCtx, null, expanded, options);
      } catch(ex) {
        return callback(ex);
      }

      cleanup(null, compacted, activeCtx, options);
    });
  });

  // performs clean up after compaction
  function cleanup(err, compacted, activeCtx, options) {
    if(err) {
      return callback(err);
    }

    if(options.compactArrays && !options.graph && _isArray(compacted)) {
      if(compacted.length === 1) {
        // simplify to a single item
        compacted = compacted[0];
      } else if(compacted.length === 0) {
        // simplify to an empty object
        compacted = {};
      }
    } else if(options.graph && _isObject(compacted)) {
      // always use array if graph option is on
      compacted = [compacted];
    }

    // follow @context key
    if(_isObject(ctx) && '@context' in ctx) {
      ctx = ctx['@context'];
    }

    // build output context
    ctx = _clone(ctx);
    if(!_isArray(ctx)) {
      ctx = [ctx];
    }
    // remove empty contexts
    var tmp = ctx;
    ctx = [];
    for(var i = 0; i < tmp.length; ++i) {
      if(!_isObject(tmp[i]) || Object.keys(tmp[i]).length > 0) {
        ctx.push(tmp[i]);
      }
    }

    // remove array if only one context
    var hasContext = (ctx.length > 0);
    if(ctx.length === 1) {
      ctx = ctx[0];
    }

    // add context and/or @graph
    if(_isArray(compacted)) {
      // use '@graph' keyword
      var kwgraph = _compactIri(activeCtx, '@graph');
      var graph = compacted;
      compacted = {};
      if(hasContext) {
        compacted['@context'] = ctx;
      }
      compacted[kwgraph] = graph;
    } else if(_isObject(compacted) && hasContext) {
      // reorder keys so @context is first
      var graph = compacted;
      compacted = {'@context': ctx};
      for(var key in graph) {
        compacted[key] = graph[key];
      }
    }

    callback(null, compacted, activeCtx);
  }
};

/**
 * Performs JSON-LD expansion.
 *
 * @param input the JSON-LD input to expand.
 * @param [options] the options to use:
 *          [base] the base IRI to use.
 *          [expandContext] a context to expand with.
 *          [keepFreeFloatingNodes] true to keep free-floating nodes,
 *            false not to, defaults to false.
 *          [documentLoader(url, callback(err, remoteDoc))] the document loader.
 * @param callback(err, expanded) called once the operation completes.
 */
jsonld.expand = function(input, options, callback) {
  if(arguments.length < 1) {
    return jsonld.nextTick(function() {
      callback(new TypeError('Could not expand, too few arguments.'));
    });
  }

  // get arguments
  if(typeof options === 'function') {
    callback = options;
    options = {};
  }
  options = options || {};

  // set default options
  if(!('documentLoader' in options)) {
    options.documentLoader = jsonld.loadDocument;
  }
  if(!('keepFreeFloatingNodes' in options)) {
    options.keepFreeFloatingNodes = false;
  }

  jsonld.nextTick(function() {
    // if input is a string, attempt to dereference remote document
    if(typeof input === 'string') {
      var done = function(err, remoteDoc) {
        if(err) {
          return callback(err);
        }
        try {
          if(!remoteDoc.document) {
            throw new JsonLdError(
              'No remote document found at the given URL.',
              'jsonld.NullRemoteDocument');
          }
          if(typeof remoteDoc.document === 'string') {
            remoteDoc.document = JSON.parse(remoteDoc.document);
          }
        } catch(ex) {
          return callback(new JsonLdError(
            'Could not retrieve a JSON-LD document from the URL. URL ' +
            'dereferencing not implemented.', 'jsonld.LoadDocumentError', {
              code: 'loading document failed',
              cause: ex,
              remoteDoc: remoteDoc
          }));
        }
        expand(remoteDoc);
      };
      var promise = options.documentLoader(input, done);
      if(promise && 'then' in promise) {
        promise.then(done.bind(null, null), done);
      }
      return;
    }
    // nothing to load
    expand({contextUrl: null, documentUrl: null, document: input});
  });

  function expand(remoteDoc) {
    // set default base
    if(!('base' in options)) {
      options.base = remoteDoc.documentUrl || '';
    }
    // build meta-object and retrieve all @context URLs
    var input = {
      document: _clone(remoteDoc.document),
      remoteContext: {'@context': remoteDoc.contextUrl}
    };
    if('expandContext' in options) {
      var expandContext = _clone(options.expandContext);
      if(typeof expandContext === 'object' && '@context' in expandContext) {
        input.expandContext = expandContext;
      } else {
        input.expandContext = {'@context': expandContext};
      }
    }
    _retrieveContextUrls(input, options, function(err, input) {
      if(err) {
        return callback(err);
      }

      var expanded;
      try {
        var processor = new Processor();
        var activeCtx = _getInitialContext(options);
        var document = input.document;
        var remoteContext = input.remoteContext['@context'];

        // process optional expandContext
        if(input.expandContext) {
          activeCtx = processor.processContext(
            activeCtx, input.expandContext['@context'], options);
        }

        // process remote context from HTTP Link Header
        if(remoteContext) {
          activeCtx = processor.processContext(
            activeCtx, remoteContext, options);
        }

        // expand document
        expanded = processor.expand(
          activeCtx, null, document, options, false);

        // optimize away @graph with no other properties
        if(_isObject(expanded) && ('@graph' in expanded) &&
          Object.keys(expanded).length === 1) {
          expanded = expanded['@graph'];
        } else if(expanded === null) {
          expanded = [];
        }

        // normalize to an array
        if(!_isArray(expanded)) {
          expanded = [expanded];
        }
      } catch(ex) {
        return callback(ex);
      }
      callback(null, expanded);
    });
  }
};

/**
 * Performs JSON-LD flattening.
 *
 * @param input the JSON-LD to flatten.
 * @param ctx the context to use to compact the flattened output, or null.
 * @param [options] the options to use:
 *          [base] the base IRI to use.
 *          [expandContext] a context to expand with.
 *          [documentLoader(url, callback(err, remoteDoc))] the document loader.
 * @param callback(err, flattened) called once the operation completes.
 */
jsonld.flatten = function(input, ctx, options, callback) {
  if(arguments.length < 1) {
    return jsonld.nextTick(function() {
      callback(new TypeError('Could not flatten, too few arguments.'));
    });
  }

  // get arguments
  if(typeof options === 'function') {
    callback = options;
    options = {};
  } else if(typeof ctx === 'function') {
    callback = ctx;
    ctx = null;
    options = {};
  }
  options = options || {};

  // set default options
  if(!('base' in options)) {
    options.base = (typeof input === 'string') ? input : '';
  }
  if(!('documentLoader' in options)) {
    options.documentLoader = jsonld.loadDocument;
  }

  // expand input
  jsonld.expand(input, options, function(err, _input) {
    if(err) {
      return callback(new JsonLdError(
        'Could not expand input before flattening.',
        'jsonld.FlattenError', {cause: err}));
    }

    var flattened;
    try {
      // do flattening
      flattened = new Processor().flatten(_input);
    } catch(ex) {
      return callback(ex);
    }

    if(ctx === null) {
      return callback(null, flattened);
    }

    // compact result (force @graph option to true, skip expansion)
    options.graph = true;
    options.skipExpansion = true;
    jsonld.compact(flattened, ctx, options, function(err, compacted) {
      if(err) {
        return callback(new JsonLdError(
          'Could not compact flattened output.',
          'jsonld.FlattenError', {cause: err}));
      }
      callback(null, compacted);
    });
  });
};

/**
 * Performs JSON-LD framing.
 *
 * @param input the JSON-LD input to frame.
 * @param frame the JSON-LD frame to use.
 * @param [options] the framing options.
 *          [base] the base IRI to use.
 *          [expandContext] a context to expand with.
 *          [embed] default @embed flag: '@last', '@always', '@never', '@link'
 *            (default: '@last').
 *          [explicit] default @explicit flag (default: false).
 *          [requireAll] default @requireAll flag (default: true).
 *          [omitDefault] default @omitDefault flag (default: false).
 *          [documentLoader(url, callback(err, remoteDoc))] the document loader.
 * @param callback(err, framed) called once the operation completes.
 */
jsonld.frame = function(input, frame, options, callback) {
  if(arguments.length < 2) {
    return jsonld.nextTick(function() {
      callback(new TypeError('Could not frame, too few arguments.'));
    });
  }

  // get arguments
  if(typeof options === 'function') {
    callback = options;
    options = {};
  }
  options = options || {};

  // set default options
  if(!('base' in options)) {
    options.base = (typeof input === 'string') ? input : '';
  }
  if(!('documentLoader' in options)) {
    options.documentLoader = jsonld.loadDocument;
  }
  if(!('embed' in options)) {
    options.embed = '@last';
  }
  options.explicit = options.explicit || false;
  if(!('requireAll' in options)) {
    options.requireAll = true;
  }
  options.omitDefault = options.omitDefault || false;

  jsonld.nextTick(function() {
    // if frame is a string, attempt to dereference remote document
    if(typeof frame === 'string') {
      var done = function(err, remoteDoc) {
        if(err) {
          return callback(err);
        }
        try {
          if(!remoteDoc.document) {
            throw new JsonLdError(
              'No remote document found at the given URL.',
              'jsonld.NullRemoteDocument');
          }
          if(typeof remoteDoc.document === 'string') {
            remoteDoc.document = JSON.parse(remoteDoc.document);
          }
        } catch(ex) {
          return callback(new JsonLdError(
            'Could not retrieve a JSON-LD document from the URL. URL ' +
            'dereferencing not implemented.', 'jsonld.LoadDocumentError', {
              code: 'loading document failed',
              cause: ex,
              remoteDoc: remoteDoc
          }));
        }
        doFrame(remoteDoc);
      };
      var promise = options.documentLoader(frame, done);
      if(promise && 'then' in promise) {
        promise.then(done.bind(null, null), done);
      }
      return;
    }
    // nothing to load
    doFrame({contextUrl: null, documentUrl: null, document: frame});
  });

  function doFrame(remoteFrame) {
    // preserve frame context and add any Link header context
    var frame = remoteFrame.document;
    var ctx;
    if(frame) {
      ctx = frame['@context'];
      if(remoteFrame.contextUrl) {
        if(!ctx) {
          ctx = remoteFrame.contextUrl;
        } else if(_isArray(ctx)) {
          ctx.push(remoteFrame.contextUrl);
        } else {
          ctx = [ctx, remoteFrame.contextUrl];
        }
        frame['@context'] = ctx;
      } else {
        ctx = ctx || {};
      }
    } else {
      ctx = {};
    }

    // expand input
    jsonld.expand(input, options, function(err, expanded) {
      if(err) {
        return callback(new JsonLdError(
          'Could not expand input before framing.',
          'jsonld.FrameError', {cause: err}));
      }

      // expand frame
      var opts = _clone(options);
      opts.isFrame = true;
      opts.keepFreeFloatingNodes = true;
      jsonld.expand(frame, opts, function(err, expandedFrame) {
        if(err) {
          return callback(new JsonLdError(
            'Could not expand frame before framing.',
            'jsonld.FrameError', {cause: err}));
        }

        var framed;
        try {
          // do framing
          framed = new Processor().frame(expanded, expandedFrame, opts);
        } catch(ex) {
          return callback(ex);
        }

        // compact result (force @graph option to true, skip expansion,
        // check for linked embeds)
        opts.graph = true;
        opts.skipExpansion = true;
        opts.link = {};
        jsonld.compact(framed, ctx, opts, function(err, compacted, ctx) {
          if(err) {
            return callback(new JsonLdError(
              'Could not compact framed output.',
              'jsonld.FrameError', {cause: err}));
          }
          // get graph alias
          var graph = _compactIri(ctx, '@graph');
          // remove @preserve from results
          opts.link = {};
          compacted[graph] = _removePreserve(ctx, compacted[graph], opts);
          callback(null, compacted);
        });
      });
    });
  }
};

/**
 * **Experimental**
 *
 * Links a JSON-LD document's nodes in memory.
 *
 * @param input the JSON-LD document to link.
 * @param ctx the JSON-LD context to apply.
 * @param [options] the options to use:
 *          [base] the base IRI to use.
 *          [expandContext] a context to expand with.
 *          [documentLoader(url, callback(err, remoteDoc))] the document loader.
 * @param callback(err, linked) called once the operation completes.
 */
jsonld.link = function(input, ctx, options, callback) {
  // API matches running frame with a wildcard frame and embed: '@link'
  // get arguments
  var frame = {};
  if(ctx) {
    frame['@context'] = ctx;
  }
  frame['@embed'] = '@link';
  jsonld.frame(input, frame, options, callback);
};

/**
 * **Deprecated**
 *
 * Performs JSON-LD objectification.
 *
 * @param input the JSON-LD document to objectify.
 * @param ctx the JSON-LD context to apply.
 * @param [options] the options to use:
 *          [base] the base IRI to use.
 *          [expandContext] a context to expand with.
 *          [documentLoader(url, callback(err, remoteDoc))] the document loader.
 * @param callback(err, linked) called once the operation completes.
 */
jsonld.objectify = function(input, ctx, options, callback) {
  if(typeof options === 'function') {
    callback = options;
    options = {};
  }
  options = options || {};

  // set default options
  if(!('base' in options)) {
    options.base = (typeof input === 'string') ? input : '';
  }
  if(!('documentLoader' in options)) {
    options.documentLoader = jsonld.loadDocument;
  }

  // expand input
  jsonld.expand(input, options, function(err, _input) {
    if(err) {
      return callback(new JsonLdError(
        'Could not expand input before linking.',
        'jsonld.LinkError', {cause: err}));
    }

    var flattened;
    try {
      // flatten the graph
      flattened = new Processor().flatten(_input);
    } catch(ex) {
      return callback(ex);
    }

    // compact result (force @graph option to true, skip expansion)
    options.graph = true;
    options.skipExpansion = true;
    jsonld.compact(flattened, ctx, options, function(err, compacted, ctx) {
      if(err) {
        return callback(new JsonLdError(
          'Could not compact flattened output before linking.',
          'jsonld.LinkError', {cause: err}));
      }
      // get graph alias
      var graph = _compactIri(ctx, '@graph');
      var top = compacted[graph][0];

      var recurse = function(subject) {
        // can't replace just a string
        if(!_isObject(subject) && !_isArray(subject)) {
          return;
        }

        // bottom out recursion on re-visit
        if(_isObject(subject)) {
          if(recurse.visited[subject['@id']]) {
            return;
          }
          recurse.visited[subject['@id']] = true;
        }

        // each array element *or* object key
        for(var k in subject) {
          var obj = subject[k];
          var isid = (jsonld.getContextValue(ctx, k, '@type') === '@id');

          // can't replace a non-object or non-array unless it's an @id
          if(!_isArray(obj) && !_isObject(obj) && !isid) {
            continue;
          }

          if(_isString(obj) && isid) {
            subject[k] = obj = top[obj];
            recurse(obj);
          } else if(_isArray(obj)) {
            for(var i = 0; i < obj.length; ++i) {
              if(_isString(obj[i]) && isid) {
                obj[i] = top[obj[i]];
              } else if(_isObject(obj[i]) && '@id' in obj[i]) {
                obj[i] = top[obj[i]['@id']];
              }
              recurse(obj[i]);
            }
          } else if(_isObject(obj)) {
            var sid = obj['@id'];
            subject[k] = obj = top[sid];
            recurse(obj);
          }
        }
      };
      recurse.visited = {};
      recurse(top);

      compacted.of_type = {};
      for(var s in top) {
        if(!('@type' in top[s])) {
          continue;
        }
        var types = top[s]['@type'];
        if(!_isArray(types)) {
          types = [types];
        }
        for(var t = 0; t < types.length; ++t) {
          if(!(types[t] in compacted.of_type)) {
            compacted.of_type[types[t]] = [];
          }
          compacted.of_type[types[t]].push(top[s]);
        }
      }
      callback(null, compacted);
    });
  });
};

/**
 * Performs RDF dataset normalization on the given input. The input is JSON-LD
 * unless the 'inputFormat' option is used. The output is an RDF dataset
 * unless the 'format' option is used.
 *
 * @param input the input to normalize as JSON-LD or as a format specified by
 *          the 'inputFormat' option.
 * @param [options] the options to use:
 *          [algorithm] the normalization algorithm to use, `URDNA2015` or
 *            `URGNA2012` (default: `URGNA2012`).
 *          [base] the base IRI to use.
 *          [expandContext] a context to expand with.
 *          [inputFormat] the format if input is not JSON-LD:
 *            'application/nquads' for N-Quads.
 *          [format] the format if output is a string:
 *            'application/nquads' for N-Quads.
 *          [documentLoader(url, callback(err, remoteDoc))] the document loader.
 * @param callback(err, normalized) called once the operation completes.
 */
jsonld.normalize = function(input, options, callback) {
  if(arguments.length < 1) {
    return jsonld.nextTick(function() {
      callback(new TypeError('Could not normalize, too few arguments.'));
    });
  }

  // get arguments
  if(typeof options === 'function') {
    callback = options;
    options = {};
  }
  options = options || {};

  // set default options
  if(!('algorithm' in options)) {
    options.algorithm = 'URGNA2012';
  }
  if(!('base' in options)) {
    options.base = (typeof input === 'string') ? input : '';
  }
  if(!('documentLoader' in options)) {
    options.documentLoader = jsonld.loadDocument;
  }

  if('inputFormat' in options) {
    if(options.inputFormat !== 'application/nquads') {
      return callback(new JsonLdError(
        'Unknown normalization input format.',
        'jsonld.NormalizeError'));
    }
    var parsedInput = _parseNQuads(input);
    // do normalization
    new Processor().normalize(parsedInput, options, callback);
  } else {
    // convert to RDF dataset then do normalization
    var opts = _clone(options);
    delete opts.format;
    opts.produceGeneralizedRdf = false;
    jsonld.toRDF(input, opts, function(err, dataset) {
      if(err) {
        return callback(new JsonLdError(
          'Could not convert input to RDF dataset before normalization.',
          'jsonld.NormalizeError', {cause: err}));
      }
      // do normalization
      new Processor().normalize(dataset, options, callback);
    });
  }
};

/**
 * Converts an RDF dataset to JSON-LD.
 *
 * @param dataset a serialized string of RDF in a format specified by the
 *          format option or an RDF dataset to convert.
 * @param [options] the options to use:
 *          [format] the format if dataset param must first be parsed:
 *            'application/nquads' for N-Quads (default).
 *          [rdfParser] a custom RDF-parser to use to parse the dataset.
 *          [useRdfType] true to use rdf:type, false to use @type
 *            (default: false).
 *          [useNativeTypes] true to convert XSD types into native types
 *            (boolean, integer, double), false not to (default: false).
 * @param callback(err, output) called once the operation completes.
 */
jsonld.fromRDF = function(dataset, options, callback) {
  if(arguments.length < 1) {
    return jsonld.nextTick(function() {
      callback(new TypeError('Could not convert from RDF, too few arguments.'));
    });
  }

  // get arguments
  if(typeof options === 'function') {
    callback = options;
    options = {};
  }
  options = options || {};

  // set default options
  if(!('useRdfType' in options)) {
    options.useRdfType = false;
  }
  if(!('useNativeTypes' in options)) {
    options.useNativeTypes = false;
  }

  if(!('format' in options) && _isString(dataset)) {
    // set default format to nquads
    if(!('format' in options)) {
      options.format = 'application/nquads';
    }
  }

  jsonld.nextTick(function() {
    // handle special format
    var rdfParser;
    if(options.format) {
      // check supported formats
      rdfParser = options.rdfParser || _rdfParsers[options.format];
      if(!rdfParser) {
        return callback(new JsonLdError(
          'Unknown input format.',
          'jsonld.UnknownFormat', {format: options.format}));
      }
    } else {
      // no-op parser, assume dataset already parsed
      rdfParser = function() {
        return dataset;
      };
    }

    var callbackCalled = false;
    try {
      // rdf parser may be async or sync, always pass callback
      dataset = rdfParser(dataset, function(err, dataset) {
        callbackCalled = true;
        if(err) {
          return callback(err);
        }
        fromRDF(dataset, options, callback);
      });
    } catch(e) {
      if(!callbackCalled) {
        return callback(e);
      }
      throw e;
    }
    // handle synchronous or promise-based parser
    if(dataset) {
      // if dataset is actually a promise
      if('then' in dataset) {
        return dataset.then(function(dataset) {
          fromRDF(dataset, options, callback);
        }, callback);
      }
      // parser is synchronous
      fromRDF(dataset, options, callback);
    }

    function fromRDF(dataset, options, callback) {
      // convert from RDF
      new Processor().fromRDF(dataset, options, callback);
    }
  });
};

/**
 * Outputs the RDF dataset found in the given JSON-LD object.
 *
 * @param input the JSON-LD input.
 * @param [options] the options to use:
 *          [base] the base IRI to use.
 *          [expandContext] a context to expand with.
 *          [format] the format to use to output a string:
 *            'application/nquads' for N-Quads.
 *          [produceGeneralizedRdf] true to output generalized RDF, false
 *            to produce only standard RDF (default: false).
 *          [documentLoader(url, callback(err, remoteDoc))] the document loader.
 * @param callback(err, dataset) called once the operation completes.
 */
jsonld.toRDF = function(input, options, callback) {
  if(arguments.length < 1) {
    return jsonld.nextTick(function() {
      callback(new TypeError('Could not convert to RDF, too few arguments.'));
    });
  }

  // get arguments
  if(typeof options === 'function') {
    callback = options;
    options = {};
  }
  options = options || {};

  // set default options
  if(!('base' in options)) {
    options.base = (typeof input === 'string') ? input : '';
  }
  if(!('documentLoader' in options)) {
    options.documentLoader = jsonld.loadDocument;
  }

  // expand input
  jsonld.expand(input, options, function(err, expanded) {
    if(err) {
      return callback(new JsonLdError(
        'Could not expand input before serialization to RDF.',
        'jsonld.RdfError', {cause: err}));
    }

    var dataset;
    try {
      // output RDF dataset
      dataset = Processor.prototype.toRDF(expanded, options);
      if(options.format) {
        if(options.format === 'application/nquads') {
          return callback(null, _toNQuads(dataset));
        }
        throw new JsonLdError(
          'Unknown output format.',
          'jsonld.UnknownFormat', {format: options.format});
      }
    } catch(ex) {
      return callback(ex);
    }
    callback(null, dataset);
  });
};

/**
 * **Experimental**
 *
 * Recursively flattens the nodes in the given JSON-LD input into a map of
 * node ID => node.
 *
 * @param input the JSON-LD input.
 * @param [options] the options to use:
 *          [base] the base IRI to use.
 *          [expandContext] a context to expand with.
 *          [issuer] a jsonld.IdentifierIssuer to use to label blank nodes.
 *          [namer] (deprecated)
 *          [documentLoader(url, callback(err, remoteDoc))] the document loader.
 * @param callback(err, nodeMap) called once the operation completes.
 */
jsonld.createNodeMap = function(input, options, callback) {
  if(arguments.length < 1) {
    return jsonld.nextTick(function() {
      callback(new TypeError('Could not create node map, too few arguments.'));
    });
  }

  // get arguments
  if(typeof options === 'function') {
    callback = options;
    options = {};
  }
  options = options || {};

  // set default options
  if(!('base' in options)) {
    options.base = (typeof input === 'string') ? input : '';
  }
  if(!('documentLoader' in options)) {
    options.documentLoader = jsonld.loadDocument;
  }

  // expand input
  jsonld.expand(input, options, function(err, _input) {
    if(err) {
      return callback(new JsonLdError(
        'Could not expand input before creating node map.',
        'jsonld.CreateNodeMapError', {cause: err}));
    }

    var nodeMap;
    try {
      nodeMap = new Processor().createNodeMap(_input, options);
    } catch(ex) {
      return callback(ex);
    }

    callback(null, nodeMap);
  });
};

/**
 * **Experimental**
 *
 * Merges two or more JSON-LD documents into a single flattened document.
 *
 * @param docs the JSON-LD documents to merge together.
 * @param ctx the context to use to compact the merged result, or null.
 * @param [options] the options to use:
 *          [base] the base IRI to use.
 *          [expandContext] a context to expand with.
 *          [issuer] a jsonld.IdentifierIssuer to use to label blank nodes.
 *          [namer] (deprecated).
 *          [mergeNodes] true to merge properties for nodes with the same ID,
 *            false to ignore new properties for nodes with the same ID once
 *            the ID has been defined; note that this may not prevent merging
 *            new properties where a node is in the `object` position
 *            (default: true).
 *          [documentLoader(url, callback(err, remoteDoc))] the document loader.
 * @param callback(err, merged) called once the operation completes.
 */
jsonld.merge = function(docs, ctx, options, callback) {
  if(arguments.length < 1) {
    return jsonld.nextTick(function() {
      callback(new TypeError('Could not merge, too few arguments.'));
    });
  }
  if(!_isArray(docs)) {
    return jsonld.nextTick(function() {
      callback(new TypeError('Could not merge, "docs" must be an array.'));
    });
  }

  // get arguments
  if(typeof options === 'function') {
    callback = options;
    options = {};
  } else if(typeof ctx === 'function') {
    callback = ctx;
    ctx = null;
    options = {};
  }
  options = options || {};

  // expand all documents
  var expanded = [];
  var error = null;
  var count = docs.length;
  for(var i = 0; i < docs.length; ++i) {
    var opts = {};
    for(var key in options) {
      opts[key] = options[key];
    }
    jsonld.expand(docs[i], opts, expandComplete);
  }

  function expandComplete(err, _input) {
    if(error) {
      return;
    }
    if(err) {
      error = err;
      return callback(new JsonLdError(
        'Could not expand input before flattening.',
        'jsonld.FlattenError', {cause: err}));
    }
    expanded.push(_input);
    if(--count === 0) {
      merge(expanded);
    }
  }

  function merge(expanded) {
    var mergeNodes = true;
    if('mergeNodes' in options) {
      mergeNodes = options.mergeNodes;
    }

    var issuer = options.namer || options.issuer || new IdentifierIssuer('_:b');
    var graphs = {'@default': {}};

    var defaultGraph;
    try {
      for(var i = 0; i < expanded.length; ++i) {
        // uniquely relabel blank nodes
        var doc = expanded[i];
        doc = jsonld.relabelBlankNodes(doc, {
          issuer: new IdentifierIssuer('_:b' + i + '-')
        });

        // add nodes to the shared node map graphs if merging nodes, to a
        // separate graph set if not
        var _graphs = (mergeNodes || i === 0) ? graphs : {'@default': {}};
        _createNodeMap(doc, _graphs, '@default', issuer);

        if(_graphs !== graphs) {
          // merge document graphs but don't merge existing nodes
          for(var graphName in _graphs) {
            var _nodeMap = _graphs[graphName];
            if(!(graphName in graphs)) {
              graphs[graphName] = _nodeMap;
              continue;
            }
            var nodeMap = graphs[graphName];
            for(var key in _nodeMap) {
              if(!(key in nodeMap)) {
                nodeMap[key] = _nodeMap[key];
              }
            }
          }
        }
      }

      // add all non-default graphs to default graph
      defaultGraph = _mergeNodeMaps(graphs);
    } catch(ex) {
      return callback(ex);
    }

    // produce flattened output
    var flattened = [];
    var keys = Object.keys(defaultGraph).sort();
    for(var ki = 0; ki < keys.length; ++ki) {
      var node = defaultGraph[keys[ki]];
      // only add full subjects to top-level
      if(!_isSubjectReference(node)) {
        flattened.push(node);
      }
    }

    if(ctx === null) {
      return callback(null, flattened);
    }

    // compact result (force @graph option to true, skip expansion)
    options.graph = true;
    options.skipExpansion = true;
    jsonld.compact(flattened, ctx, options, function(err, compacted) {
      if(err) {
        return callback(new JsonLdError(
          'Could not compact merged output.',
          'jsonld.MergeError', {cause: err}));
      }
      callback(null, compacted);
    });
  }
};

/**
 * Relabels all blank nodes in the given JSON-LD input.
 *
 * @param input the JSON-LD input.
 * @param [options] the options to use:
 *          [issuer] a jsonld.IdentifierIssuer to use to label blank nodes.
 *          [namer] (deprecated).
 */
jsonld.relabelBlankNodes = function(input, options) {
  options = options || {};
  var issuer = options.namer || options.issuer || new IdentifierIssuer('_:b');
  return _labelBlankNodes(issuer, input);
};

/**
 * Prepends a base IRI to the given relative IRI.
 *
 * @param base the base IRI.
 * @param iri the relative IRI.
 *
 * @return the absolute IRI.
 */
jsonld.prependBase = function(base, iri) {
  return _prependBase(base, iri);
};

/**
 * The default document loader for external documents. If the environment
 * is node.js, a callback-continuation-style document loader is used; otherwise,
 * a promises-style document loader is used.
 *
 * @param url the URL to load.
 * @param callback(err, remoteDoc) called once the operation completes,
 *          if using a non-promises API.
 *
 * @return a promise, if using a promises API.
 */
jsonld.documentLoader = function(url, callback) {
  var err = new JsonLdError(
    'Could not retrieve a JSON-LD document from the URL. URL ' +
    'dereferencing not implemented.', 'jsonld.LoadDocumentError',
    {code: 'loading document failed'});
  if(_nodejs) {
    return callback(err, {contextUrl: null, documentUrl: url, document: null});
  }
  return jsonld.promisify(function(callback) {
    callback(err);
  });
};

/**
 * Deprecated default document loader. Use or override jsonld.documentLoader
 * instead.
 */
jsonld.loadDocument = function(url, callback) {
  var promise = jsonld.documentLoader(url, callback);
  if(promise && 'then' in promise) {
    promise.then(callback.bind(null, null), callback);
  }
};

/* Promises API */

/**
 * Creates a new promises API object.
 *
 * @param [options] the options to use:
 *          [api] an object to attach the API to.
 *          [version] 'json-ld-1.0' to output a standard JSON-LD 1.0 promises
 *            API, 'jsonld.js' to output the same with augmented proprietary
 *            methods (default: 'jsonld.js')
 *
 * @return the promises API object.
 */
jsonld.promises = function(options) {
  options = options || {};
  var slice = Array.prototype.slice;
  var promisify = jsonld.promisify;

  // handle 'api' option as version, set defaults
  var api = options.api || {};
  var version = options.version || 'jsonld.js';
  if(typeof options.api === 'string') {
    if(!options.version) {
      version = options.api;
    }
    api = {};
  }

  // The Web IDL test harness will check the number of parameters defined in
  // the functions below. The number of parameters must exactly match the
  // required (non-optional) parameters of the JsonLdProcessor interface as
  // defined here:
  // https://www.w3.org/TR/json-ld-api/#the-jsonldprocessor-interface

  api.expand = function(input) {
    if(arguments.length < 1) {
      throw new TypeError('Could not expand, too few arguments.');
    }
    return promisify.apply(null, [jsonld.expand].concat(slice.call(arguments)));
  };
  api.compact = function(input, ctx) {
    if(arguments.length < 2) {
      throw new TypeError('Could not compact, too few arguments.');
    }
    var compact = function(input, ctx, options, callback) {
      if(typeof options === 'function') {
        callback = options;
        options = {};
      }
      options = options || {};
      // ensure only one value is returned in callback
      jsonld.compact(input, ctx, options, function(err, compacted) {
        callback(err, compacted);
      });
    };
    return promisify.apply(null, [compact].concat(slice.call(arguments)));
  };
  api.flatten = function(input) {
    if(arguments.length < 1) {
      throw new TypeError('Could not flatten, too few arguments.');
    }
    return promisify.apply(
      null, [jsonld.flatten].concat(slice.call(arguments)));
  };
  api.frame = function(input, frame) {
    if(arguments.length < 2) {
      throw new TypeError('Could not frame, too few arguments.');
    }
    return promisify.apply(null, [jsonld.frame].concat(slice.call(arguments)));
  };
  api.fromRDF = function(dataset) {
    if(arguments.length < 1) {
      throw new TypeError('Could not convert from RDF, too few arguments.');
    }
    return promisify.apply(
      null, [jsonld.fromRDF].concat(slice.call(arguments)));
  };
  api.toRDF = function(input) {
    if(arguments.length < 1) {
      throw new TypeError('Could not convert to RDF, too few arguments.');
    }
    return promisify.apply(null, [jsonld.toRDF].concat(slice.call(arguments)));
  };
  api.normalize = function(input) {
    if(arguments.length < 1) {
      throw new TypeError('Could not normalize, too few arguments.');
    }
    return promisify.apply(
      null, [jsonld.normalize].concat(slice.call(arguments)));
  };

  if(version === 'jsonld.js') {
    api.link = function(input, ctx) {
      if(arguments.length < 2) {
        throw new TypeError('Could not link, too few arguments.');
      }
      return promisify.apply(
        null, [jsonld.link].concat(slice.call(arguments)));
    };
    api.objectify = function(input) {
      return promisify.apply(
        null, [jsonld.objectify].concat(slice.call(arguments)));
    };
    api.createNodeMap = function(input) {
      return promisify.apply(
        null, [jsonld.createNodeMap].concat(slice.call(arguments)));
    };
    api.merge = function(input) {
      return promisify.apply(
        null, [jsonld.merge].concat(slice.call(arguments)));
    };
  }

  try {
    jsonld.Promise = global.Promise || _dereq_('es6-promise').Promise;
  } catch(e) {
    var f = function() {
      throw new Error('Unable to find a Promise implementation.');
    };
    for(var method in api) {
      api[method] = f;
    }
  }

  return api;
};

/**
 * Converts a node.js async op into a promise w/boxed resolved value(s).
 *
 * @param op the operation to convert.
 *
 * @return the promise.
 */
jsonld.promisify = function(op) {
  if(!jsonld.Promise) {
    try {
      jsonld.Promise = global.Promise || _dereq_('es6-promise').Promise;
    } catch(e) {
      throw new Error('Unable to find a Promise implementation.');
    }
  }
  var args = Array.prototype.slice.call(arguments, 1);
  return new jsonld.Promise(function(resolve, reject) {
    op.apply(null, args.concat(function(err, value) {
      if(!err) {
        resolve(value);
      } else {
        reject(err);
      }
    }));
  });
};

// extend jsonld.promises w/jsonld.js methods
jsonld.promises({api: jsonld.promises});

/* WebIDL API */

function JsonLdProcessor() {}
JsonLdProcessor.prototype = jsonld.promises({version: 'json-ld-1.0'});
JsonLdProcessor.prototype.toString = function() {
  if(this instanceof JsonLdProcessor) {
    return '[object JsonLdProcessor]';
  }
  return '[object JsonLdProcessorPrototype]';
};
jsonld.JsonLdProcessor = JsonLdProcessor;

// IE8 has Object.defineProperty but it only
// works on DOM nodes -- so feature detection
// requires try/catch :-(
var canDefineProperty = !!Object.defineProperty;
if(canDefineProperty) {
  try {
    Object.defineProperty({}, 'x', {});
  } catch(e) {
    canDefineProperty = false;
  }
}

if(canDefineProperty) {
  Object.defineProperty(JsonLdProcessor, 'prototype', {
    writable: false,
    enumerable: false
  });
  Object.defineProperty(JsonLdProcessor.prototype, 'constructor', {
    writable: true,
    enumerable: false,
    configurable: true,
    value: JsonLdProcessor
  });
}

// setup browser global JsonLdProcessor
if(_browser && typeof global.JsonLdProcessor === 'undefined') {
  if(canDefineProperty) {
    Object.defineProperty(global, 'JsonLdProcessor', {
      writable: true,
      enumerable: false,
      configurable: true,
      value: JsonLdProcessor
    });
  } else {
    global.JsonLdProcessor = JsonLdProcessor;
  }
}

/* Utility API */

// define setImmediate and nextTick
//// nextTick implementation with browser-compatible fallback ////
// from https://github.com/caolan/async/blob/master/lib/async.js

// capture the global reference to guard against fakeTimer mocks
var _setImmediate = typeof setImmediate === 'function' && setImmediate;

var _delay = _setImmediate ? function(fn) {
  // not a direct alias (for IE10 compatibility)
  _setImmediate(fn);
} : function(fn) {
  setTimeout(fn, 0);
};

if(typeof process === 'object' && typeof process.nextTick === 'function') {
  jsonld.nextTick = process.nextTick;
} else {
  jsonld.nextTick = _delay;
}
jsonld.setImmediate = _setImmediate ? _delay : jsonld.nextTick;

/**
 * Parses a link header. The results will be key'd by the value of "rel".
 *
 * Link: <http://json-ld.org/contexts/person.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"
 *
 * Parses as: {
 *   'http://www.w3.org/ns/json-ld#context': {
 *     target: http://json-ld.org/contexts/person.jsonld,
 *     type: 'application/ld+json'
 *   }
 * }
 *
 * If there is more than one "rel" with the same IRI, then entries in the
 * resulting map for that "rel" will be arrays.
 *
 * @param header the link header to parse.
 */
jsonld.parseLinkHeader = function(header) {
  var rval = {};
  // split on unbracketed/unquoted commas
  var entries = header.match(/(?:<[^>]*?>|"[^"]*?"|[^,])+/g);
  var rLinkHeader = /\s*<([^>]*?)>\s*(?:;\s*(.*))?/;
  for(var i = 0; i < entries.length; ++i) {
    var match = entries[i].match(rLinkHeader);
    if(!match) {
      continue;
    }
    var result = {target: match[1]};
    var params = match[2];
    var rParams = /(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g;
    while(match = rParams.exec(params)) {
      result[match[1]] = (match[2] === undefined) ? match[3] : match[2];
    }
    var rel = result['rel'] || '';
    if(_isArray(rval[rel])) {
      rval[rel].push(result);
    } else if(rel in rval) {
      rval[rel] = [rval[rel], result];
    } else {
      rval[rel] = result;
    }
  }
  return rval;
};

/**
 * Creates a simple queue for requesting documents.
 */
jsonld.RequestQueue = function() {
  this._requests = {};
};
jsonld.RequestQueue.prototype.wrapLoader = function(loader) {
  this._loader = loader;
  this._usePromise = (loader.length === 1);
  return this.add.bind(this);
};
jsonld.RequestQueue.prototype.add = function(url, callback) {
  var self = this;

  // callback must be given if not using promises
  if(!callback && !self._usePromise) {
    throw new Error('callback must be specified.');
  }

  // Promise-based API
  if(self._usePromise) {
    return new jsonld.Promise(function(resolve, reject) {
      var load = self._requests[url];
      if(!load) {
        // load URL then remove from queue
        load = self._requests[url] = self._loader(url)
          .then(function(remoteDoc) {
            delete self._requests[url];
            return remoteDoc;
          }).catch(function(err) {
            delete self._requests[url];
            throw err;
          });
      }
      // resolve/reject promise once URL has been loaded
      load.then(function(remoteDoc) {
        resolve(remoteDoc);
      }).catch(function(err) {
        reject(err);
      });
    });
  }

  // callback-based API
  if(url in self._requests) {
    self._requests[url].push(callback);
  } else {
    self._requests[url] = [callback];
    self._loader(url, function(err, remoteDoc) {
      var callbacks = self._requests[url];
      delete self._requests[url];
      for(var i = 0; i < callbacks.length; ++i) {
        callbacks[i](err, remoteDoc);
      }
    });
  }
};

/**
 * Creates a simple document cache that retains documents for a short
 * period of time.
 *
 * FIXME: Implement simple HTTP caching instead.
 *
 * @param size the maximum size of the cache.
 */
jsonld.DocumentCache = function(size) {
  this.order = [];
  this.cache = {};
  this.size = size || 50;
  this.expires = 30 * 1000;
};
jsonld.DocumentCache.prototype.get = function(url) {
  if(url in this.cache) {
    var entry = this.cache[url];
    if(entry.expires >= +new Date()) {
      return entry.ctx;
    }
    delete this.cache[url];
    this.order.splice(this.order.indexOf(url), 1);
  }
  return null;
};
jsonld.DocumentCache.prototype.set = function(url, ctx) {
  if(this.order.length === this.size) {
    delete this.cache[this.order.shift()];
  }
  this.order.push(url);
  this.cache[url] = {ctx: ctx, expires: (+new Date() + this.expires)};
};

/**
 * Creates an active context cache.
 *
 * @param size the maximum size of the cache.
 */
jsonld.ActiveContextCache = function(size) {
  this.order = [];
  this.cache = {};
  this.size = size || 100;
};
jsonld.ActiveContextCache.prototype.get = function(activeCtx, localCtx) {
  var key1 = JSON.stringify(activeCtx);
  var key2 = JSON.stringify(localCtx);
  var level1 = this.cache[key1];
  if(level1 && key2 in level1) {
    return level1[key2];
  }
  return null;
};
jsonld.ActiveContextCache.prototype.set = function(
  activeCtx, localCtx, result) {
  if(this.order.length === this.size) {
    var entry = this.order.shift();
    delete this.cache[entry.activeCtx][entry.localCtx];
  }
  var key1 = JSON.stringify(activeCtx);
  var key2 = JSON.stringify(localCtx);
  this.order.push({activeCtx: key1, localCtx: key2});
  if(!(key1 in this.cache)) {
    this.cache[key1] = {};
  }
  this.cache[key1][key2] = _clone(result);
};

/**
 * Default JSON-LD cache.
 */
jsonld.cache = {
  activeCtx: new jsonld.ActiveContextCache()
};

/**
 * Document loaders.
 */
jsonld.documentLoaders = {};

/**
 * Creates a built-in jquery document loader.
 *
 * @param $ the jquery instance to use.
 * @param options the options to use:
 *          secure: require all URLs to use HTTPS.
 *          usePromise: true to use a promises API, false for a
 *            callback-continuation-style API; defaults to true if Promise
 *            is globally defined, false if not.
 *
 * @return the jquery document loader.
 */
jsonld.documentLoaders.jquery = function($, options) {
  options = options || {};
  var queue = new jsonld.RequestQueue();

  // use option or, by default, use Promise when its defined
  var usePromise = ('usePromise' in options ?
    options.usePromise : (typeof Promise !== 'undefined'));
  if(usePromise) {
    return queue.wrapLoader(function(url) {
      return jsonld.promisify(loader, url);
    });
  }
  return queue.wrapLoader(loader);

  function loader(url, callback) {
    if(url.indexOf('http:') !== 0 && url.indexOf('https:') !== 0) {
      return callback(new JsonLdError(
        'URL could not be dereferenced; only "http" and "https" URLs are ' +
        'supported.',
        'jsonld.InvalidUrl', {code: 'loading document failed', url: url}),
        {contextUrl: null, documentUrl: url, document: null});
    }
    if(options.secure && url.indexOf('https') !== 0) {
      return callback(new JsonLdError(
        'URL could not be dereferenced; secure mode is enabled and ' +
        'the URL\'s scheme is not "https".',
        'jsonld.InvalidUrl', {code: 'loading document failed', url: url}),
        {contextUrl: null, documentUrl: url, document: null});
    }
    $.ajax({
      url: url,
      accepts: {
        json: 'application/ld+json, application/json'
      },
      // ensure Accept header is very specific for JSON-LD/JSON
      headers: {
        'Accept': 'application/ld+json, application/json'
      },
      dataType: 'json',
      crossDomain: true,
      success: function(data, textStatus, jqXHR) {
        var doc = {contextUrl: null, documentUrl: url, document: data};

        // handle Link Header
        var contentType = jqXHR.getResponseHeader('Content-Type');
        var linkHeader = jqXHR.getResponseHeader('Link');
        if(linkHeader && contentType !== 'application/ld+json') {
          // only 1 related link header permitted
          linkHeader = jsonld.parseLinkHeader(linkHeader)[LINK_HEADER_REL];
          if(_isArray(linkHeader)) {
            return callback(new JsonLdError(
              'URL could not be dereferenced, it has more than one ' +
              'associated HTTP Link Header.',
              'jsonld.InvalidUrl',
              {code: 'multiple context link headers', url: url}), doc);
          }
          if(linkHeader) {
            doc.contextUrl = linkHeader.target;
          }
        }

        callback(null, doc);
      },
      error: function(jqXHR, textStatus, err) {
        callback(new JsonLdError(
          'URL could not be dereferenced, an error occurred.',
          'jsonld.LoadDocumentError',
          {code: 'loading document failed', url: url, cause: err}),
          {contextUrl: null, documentUrl: url, document: null});
      }
    });
  }
};

/**
 * Creates a built-in node document loader.
 *
 * @param options the options to use:
 *          secure: require all URLs to use HTTPS.
 *          strictSSL: true to require SSL certificates to be valid,
 *            false not to (default: true).
 *          maxRedirects: the maximum number of redirects to permit, none by
 *            default.
 *          request: the object which will make the request, default is
 *            provided by `https://www.npmjs.com/package/request`.
 *          headers: an array of headers which will be passed as request
 *            headers for the requested document. Accept is not allowed.
 *          usePromise: true to use a promises API, false for a
 *            callback-continuation-style API; false by default.
 *
 * @return the node document loader.
 */
jsonld.documentLoaders.node = function(options) {
  options = options || {};
  var strictSSL = ('strictSSL' in options) ? options.strictSSL : true;
  var maxRedirects = ('maxRedirects' in options) ? options.maxRedirects : -1;
  var request = ('request' in options) ? options.request : _dereq_('request');
  var acceptHeader = 'application/ld+json, application/json';
  var http = _dereq_('http');
  // TODO: disable cache until HTTP caching implemented
  //var cache = new jsonld.DocumentCache();

  var queue = new jsonld.RequestQueue();
  if(options.usePromise) {
    return queue.wrapLoader(function(url) {
      return jsonld.promisify(loadDocument, url, []);
    });
  }
  var headers = options.headers || {};
  if('Accept' in headers || 'accept' in headers) {
    throw new RangeError(
      'Accept header may not be specified as an option; only "' +
      acceptHeader + '" is supported.');
  }
  return queue.wrapLoader(function(url, callback) {
    loadDocument(url, [], callback);
  });

  function loadDocument(url, redirects, callback) {
    if(url.indexOf('http:') !== 0 && url.indexOf('https:') !== 0) {
      return callback(new JsonLdError(
        'URL could not be dereferenced; only "http" and "https" URLs are ' +
        'supported.',
        'jsonld.InvalidUrl', {code: 'loading document failed', url: url}),
        {contextUrl: null, documentUrl: url, document: null});
    }
    if(options.secure && url.indexOf('https') !== 0) {
      return callback(new JsonLdError(
        'URL could not be dereferenced; secure mode is enabled and ' +
        'the URL\'s scheme is not "https".',
        'jsonld.InvalidUrl', {code: 'loading document failed', url: url}),
        {contextUrl: null, documentUrl: url, document: null});
    }
    // TODO: disable cache until HTTP caching implemented
    var doc = null;//cache.get(url);
    if(doc !== null) {
      return callback(null, doc);
    }
    var headers = {'Accept': acceptHeader};
    for(var k in options.headers) { headers[k] = options.headers[k]; }
    request({
      url: url,
      headers: headers,
      strictSSL: strictSSL,
      followRedirect: false
    }, handleResponse);

    function handleResponse(err, res, body) {
      doc = {contextUrl: null, documentUrl: url, document: body || null};

      // handle error
      if(err) {
        return callback(new JsonLdError(
          'URL could not be dereferenced, an error occurred.',
          'jsonld.LoadDocumentError',
          {code: 'loading document failed', url: url, cause: err}), doc);
      }
      var statusText = http.STATUS_CODES[res.statusCode];
      if(res.statusCode >= 400) {
        return callback(new JsonLdError(
          'URL could not be dereferenced: ' + statusText,
          'jsonld.InvalidUrl', {
            code: 'loading document failed',
            url: url,
            httpStatusCode: res.statusCode
          }), doc);
      }

      // handle Link Header
      if(res.headers.link &&
        res.headers['content-type'] !== 'application/ld+json') {
        // only 1 related link header permitted
        var linkHeader = jsonld.parseLinkHeader(
          res.headers.link)[LINK_HEADER_REL];
        if(_isArray(linkHeader)) {
          return callback(new JsonLdError(
            'URL could not be dereferenced, it has more than one associated ' +
            'HTTP Link Header.',
            'jsonld.InvalidUrl',
            {code: 'multiple context link headers', url: url}), doc);
        }
        if(linkHeader) {
          doc.contextUrl = linkHeader.target;
        }
      }

      // handle redirect
      if(res.statusCode >= 300 && res.statusCode < 400 &&
        res.headers.location) {
        if(redirects.length === maxRedirects) {
          return callback(new JsonLdError(
            'URL could not be dereferenced; there were too many redirects.',
            'jsonld.TooManyRedirects', {
              code: 'loading document failed',
              url: url,
              httpStatusCode: res.statusCode,
              redirects: redirects
            }), doc);
        }
        if(redirects.indexOf(url) !== -1) {
          return callback(new JsonLdError(
            'URL could not be dereferenced; infinite redirection was detected.',
            'jsonld.InfiniteRedirectDetected', {
              code: 'recursive context inclusion',
              url: url,
              httpStatusCode: res.statusCode,
              redirects: redirects
            }), doc);
        }
        redirects.push(url);
        return loadDocument(res.headers.location, redirects, callback);
      }
      // cache for each redirected URL
      redirects.push(url);
      // TODO: disable cache until HTTP caching implemented
      /*for(var i = 0; i < redirects.length; ++i) {
        cache.set(
          redirects[i],
          {contextUrl: null, documentUrl: redirects[i], document: body});
      }*/
      callback(err, doc);
    }
  }
};

/**
 * Creates a built-in XMLHttpRequest document loader.
 *
 * @param options the options to use:
 *          secure: require all URLs to use HTTPS.
 *          usePromise: true to use a promises API, false for a
 *            callback-continuation-style API; defaults to true if Promise
 *            is globally defined, false if not.
 *          [xhr]: the XMLHttpRequest API to use.
 *
 * @return the XMLHttpRequest document loader.
 */
jsonld.documentLoaders.xhr = function(options) {
  options = options || {};
  var rlink = /(^|(\r\n))link:/i;
  var queue = new jsonld.RequestQueue();

  // use option or, by default, use Promise when its defined
  var usePromise = ('usePromise' in options ?
    options.usePromise : (typeof Promise !== 'undefined'));
  if(usePromise) {
    return queue.wrapLoader(function(url) {
      return jsonld.promisify(loader, url);
    });
  }
  return queue.wrapLoader(loader);

  function loader(url, callback) {
    if(url.indexOf('http:') !== 0 && url.indexOf('https:') !== 0) {
      return callback(new JsonLdError(
        'URL could not be dereferenced; only "http" and "https" URLs are ' +
        'supported.',
        'jsonld.InvalidUrl', {code: 'loading document failed', url: url}),
        {contextUrl: null, documentUrl: url, document: null});
    }
    if(options.secure && url.indexOf('https') !== 0) {
      return callback(new JsonLdError(
        'URL could not be dereferenced; secure mode is enabled and ' +
        'the URL\'s scheme is not "https".',
        'jsonld.InvalidUrl', {code: 'loading document failed', url: url}),
        {contextUrl: null, documentUrl: url, document: null});
    }
    var xhr = options.xhr || XMLHttpRequest;
    var req = new xhr();
    req.onload = function() {
      if(req.status >= 400) {
        return callback(new JsonLdError(
          'URL could not be dereferenced: ' + req.statusText,
          'jsonld.LoadDocumentError', {
            code: 'loading document failed',
            url: url,
            httpStatusCode: req.status
          }), {contextUrl: null, documentUrl: url, document: null});
      }

      var doc = {contextUrl: null, documentUrl: url, document: req.response};

      // handle Link Header (avoid unsafe header warning by existence testing)
      var contentType = req.getResponseHeader('Content-Type');
      var linkHeader;
      if(rlink.test(req.getAllResponseHeaders())) {
        linkHeader = req.getResponseHeader('Link');
      }
      if(linkHeader && contentType !== 'application/ld+json') {
        // only 1 related link header permitted
        linkHeader = jsonld.parseLinkHeader(linkHeader)[LINK_HEADER_REL];
        if(_isArray(linkHeader)) {
          return callback(new JsonLdError(
            'URL could not be dereferenced, it has more than one ' +
            'associated HTTP Link Header.',
            'jsonld.InvalidUrl',
            {code: 'multiple context link headers', url: url}), doc);
        }
        if(linkHeader) {
          doc.contextUrl = linkHeader.target;
        }
      }

      callback(null, doc);
    };
    req.onerror = function() {
      callback(new JsonLdError(
        'URL could not be dereferenced, an error occurred.',
        'jsonld.LoadDocumentError',
        {code: 'loading document failed', url: url}),
        {contextUrl: null, documentUrl: url, document: null});
    };
    req.open('GET', url, true);
    req.setRequestHeader('Accept', 'application/ld+json, application/json');
    req.send();
  }
};

/**
 * Assigns the default document loader for external document URLs to a built-in
 * default. Supported types currently include: 'jquery' and 'node'.
 *
 * To use the jquery document loader, the first parameter must be a reference
 * to the main jquery object.
 *
 * @param type the type to set.
 * @param [params] the parameters required to use the document loader.
 */
jsonld.useDocumentLoader = function(type) {
  if(!(type in jsonld.documentLoaders)) {
    throw new JsonLdError(
      'Unknown document loader type: "' + type + '"',
      'jsonld.UnknownDocumentLoader',
      {type: type});
  }

  // set document loader
  jsonld.documentLoader = jsonld.documentLoaders[type].apply(
    jsonld, Array.prototype.slice.call(arguments, 1));
};

/**
 * Processes a local context, resolving any URLs as necessary, and returns a
 * new active context in its callback.
 *
 * @param activeCtx the current active context.
 * @param localCtx the local context to process.
 * @param [options] the options to use:
 *          [documentLoader(url, callback(err, remoteDoc))] the document loader.
 * @param callback(err, ctx) called once the operation completes.
 */
jsonld.processContext = function(activeCtx, localCtx) {
  // get arguments
  var options = {};
  var callbackArg = 2;
  if(arguments.length > 3) {
    options = arguments[2] || {};
    callbackArg += 1;
  }
  var callback = arguments[callbackArg];

  // set default options
  if(!('base' in options)) {
    options.base = '';
  }
  if(!('documentLoader' in options)) {
    options.documentLoader = jsonld.loadDocument;
  }

  // return initial context early for null context
  if(localCtx === null) {
    return callback(null, _getInitialContext(options));
  }

  // retrieve URLs in localCtx
  localCtx = _clone(localCtx);
  if(!(_isObject(localCtx) && '@context' in localCtx)) {
    localCtx = {'@context': localCtx};
  }
  _retrieveContextUrls(localCtx, options, function(err, ctx) {
    if(err) {
      return callback(err);
    }
    try {
      // process context
      ctx = new Processor().processContext(activeCtx, ctx, options);
    } catch(ex) {
      return callback(ex);
    }
    callback(null, ctx);
  });
};

/**
 * Returns true if the given subject has the given property.
 *
 * @param subject the subject to check.
 * @param property the property to look for.
 *
 * @return true if the subject has the given property, false if not.
 */
jsonld.hasProperty = function(subject, property) {
  var rval = false;
  if(property in subject) {
    var value = subject[property];
    rval = (!_isArray(value) || value.length > 0);
  }
  return rval;
};

/**
 * Determines if the given value is a property of the given subject.
 *
 * @param subject the subject to check.
 * @param property the property to check.
 * @param value the value to check.
 *
 * @return true if the value exists, false if not.
 */
jsonld.hasValue = function(subject, property, value) {
  var rval = false;
  if(jsonld.hasProperty(subject, property)) {
    var val = subject[property];
    var isList = _isList(val);
    if(_isArray(val) || isList) {
      if(isList) {
        val = val['@list'];
      }
      for(var i = 0; i < val.length; ++i) {
        if(jsonld.compareValues(value, val[i])) {
          rval = true;
          break;
        }
      }
    } else if(!_isArray(value)) {
      // avoid matching the set of values with an array value parameter
      rval = jsonld.compareValues(value, val);
    }
  }
  return rval;
};

/**
 * Adds a value to a subject. If the value is an array, all values in the
 * array will be added.
 *
 * @param subject the subject to add the value to.
 * @param property the property that relates the value to the subject.
 * @param value the value to add.
 * @param [options] the options to use:
 *        [propertyIsArray] true if the property is always an array, false
 *          if not (default: false).
 *        [allowDuplicate] true to allow duplicates, false not to (uses a
 *          simple shallow comparison of subject ID or value) (default: true).
 */
jsonld.addValue = function(subject, property, value, options) {
  options = options || {};
  if(!('propertyIsArray' in options)) {
    options.propertyIsArray = false;
  }
  if(!('allowDuplicate' in options)) {
    options.allowDuplicate = true;
  }

  if(_isArray(value)) {
    if(value.length === 0 && options.propertyIsArray &&
      !(property in subject)) {
      subject[property] = [];
    }
    for(var i = 0; i < value.length; ++i) {
      jsonld.addValue(subject, property, value[i], options);
    }
  } else if(property in subject) {
    // check if subject already has value if duplicates not allowed
    var hasValue = (!options.allowDuplicate &&
      jsonld.hasValue(subject, property, value));

    // make property an array if value not present or always an array
    if(!_isArray(subject[property]) &&
      (!hasValue || options.propertyIsArray)) {
      subject[property] = [subject[property]];
    }

    // add new value
    if(!hasValue) {
      subject[property].push(value);
    }
  } else {
    // add new value as set or single value
    subject[property] = options.propertyIsArray ? [value] : value;
  }
};

/**
 * Gets all of the values for a subject's property as an array.
 *
 * @param subject the subject.
 * @param property the property.
 *
 * @return all of the values for a subject's property as an array.
 */
jsonld.getValues = function(subject, property) {
  var rval = subject[property] || [];
  if(!_isArray(rval)) {
    rval = [rval];
  }
  return rval;
};

/**
 * Removes a property from a subject.
 *
 * @param subject the subject.
 * @param property the property.
 */
jsonld.removeProperty = function(subject, property) {
  delete subject[property];
};

/**
 * Removes a value from a subject.
 *
 * @param subject the subject.
 * @param property the property that relates the value to the subject.
 * @param value the value to remove.
 * @param [options] the options to use:
 *          [propertyIsArray] true if the property is always an array, false
 *            if not (default: false).
 */
jsonld.removeValue = function(subject, property, value, options) {
  options = options || {};
  if(!('propertyIsArray' in options)) {
    options.propertyIsArray = false;
  }

  // filter out value
  var values = jsonld.getValues(subject, property).filter(function(e) {
    return !jsonld.compareValues(e, value);
  });

  if(values.length === 0) {
    jsonld.removeProperty(subject, property);
  } else if(values.length === 1 && !options.propertyIsArray) {
    subject[property] = values[0];
  } else {
    subject[property] = values;
  }
};

/**
 * Compares two JSON-LD values for equality. Two JSON-LD values will be
 * considered equal if:
 *
 * 1. They are both primitives of the same type and value.
 * 2. They are both @values with the same @value, @type, @language,
 *   and @index, OR
 * 3. They both have @ids they are the same.
 *
 * @param v1 the first value.
 * @param v2 the second value.
 *
 * @return true if v1 and v2 are considered equal, false if not.
 */
jsonld.compareValues = function(v1, v2) {
  // 1. equal primitives
  if(v1 === v2) {
    return true;
  }

  // 2. equal @values
  if(_isValue(v1) && _isValue(v2) &&
    v1['@value'] === v2['@value'] &&
    v1['@type'] === v2['@type'] &&
    v1['@language'] === v2['@language'] &&
    v1['@index'] === v2['@index']) {
    return true;
  }

  // 3. equal @ids
  if(_isObject(v1) && ('@id' in v1) && _isObject(v2) && ('@id' in v2)) {
    return v1['@id'] === v2['@id'];
  }

  return false;
};

/**
 * Gets the value for the given active context key and type, null if none is
 * set.
 *
 * @param ctx the active context.
 * @param key the context key.
 * @param [type] the type of value to get (eg: '@id', '@type'), if not
 *          specified gets the entire entry for a key, null if not found.
 *
 * @return the value.
 */
jsonld.getContextValue = function(ctx, key, type) {
  var rval = null;

  // return null for invalid key
  if(key === null) {
    return rval;
  }

  // get default language
  if(type === '@language' && (type in ctx)) {
    rval = ctx[type];
  }

  // get specific entry information
  if(ctx.mappings[key]) {
    var entry = ctx.mappings[key];

    if(_isUndefined(type)) {
      // return whole entry
      rval = entry;
    } else if(type in entry) {
      // return entry value for type
      rval = entry[type];
    }
  }

  return rval;
};

/** Registered RDF dataset parsers hashed by content-type. */
var _rdfParsers = {};

/**
 * Registers an RDF dataset parser by content-type, for use with
 * jsonld.fromRDF. An RDF dataset parser will always be given two parameters,
 * a string of input and a callback. An RDF dataset parser can be synchronous
 * or asynchronous.
 *
 * If the parser function returns undefined or null then it will be assumed to
 * be asynchronous w/a continuation-passing style and the callback parameter
 * given to the parser MUST be invoked.
 *
 * If it returns a Promise, then it will be assumed to be asynchronous, but the
 * callback parameter MUST NOT be invoked. It should instead be ignored.
 *
 * If it returns an RDF dataset, it will be assumed to be synchronous and the
 * callback parameter MUST NOT be invoked. It should instead be ignored.
 *
 * @param contentType the content-type for the parser.
 * @param parser(input, callback(err, dataset)) the parser function (takes a
 *          string as a parameter and either returns null/undefined and uses
 *          the given callback, returns a Promise, or returns an RDF dataset).
 */
jsonld.registerRDFParser = function(contentType, parser) {
  _rdfParsers[contentType] = parser;
};

/**
 * Unregisters an RDF dataset parser by content-type.
 *
 * @param contentType the content-type for the parser.
 */
jsonld.unregisterRDFParser = function(contentType) {
  delete _rdfParsers[contentType];
};

if(_nodejs) {
  // needed for serialization of XML literals
  if(typeof XMLSerializer === 'undefined') {
    var XMLSerializer = null;
  }
  if(typeof Node === 'undefined') {
    var Node = {
      ELEMENT_NODE: 1,
      ATTRIBUTE_NODE: 2,
      TEXT_NODE: 3,
      CDATA_SECTION_NODE: 4,
      ENTITY_REFERENCE_NODE: 5,
      ENTITY_NODE: 6,
      PROCESSING_INSTRUCTION_NODE: 7,
      COMMENT_NODE: 8,
      DOCUMENT_NODE: 9,
      DOCUMENT_TYPE_NODE: 10,
      DOCUMENT_FRAGMENT_NODE: 11,
      NOTATION_NODE:12
    };
  }
}

// constants
var XSD_BOOLEAN = 'http://www.w3.org/2001/XMLSchema#boolean';
var XSD_DOUBLE = 'http://www.w3.org/2001/XMLSchema#double';
var XSD_INTEGER = 'http://www.w3.org/2001/XMLSchema#integer';
var XSD_STRING = 'http://www.w3.org/2001/XMLSchema#string';

var RDF = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
var RDF_LIST = RDF + 'List';
var RDF_FIRST = RDF + 'first';
var RDF_REST = RDF + 'rest';
var RDF_NIL = RDF + 'nil';
var RDF_TYPE = RDF + 'type';
var RDF_PLAIN_LITERAL = RDF + 'PlainLiteral';
var RDF_XML_LITERAL = RDF + 'XMLLiteral';
var RDF_OBJECT = RDF + 'object';
var RDF_LANGSTRING = RDF + 'langString';

var LINK_HEADER_REL = 'http://www.w3.org/ns/json-ld#context';
var MAX_CONTEXT_URLS = 10;

/**
 * A JSON-LD Error.
 *
 * @param msg the error message.
 * @param type the error type.
 * @param details the error details.
 */
var JsonLdError = function(msg, type, details) {
  if(_nodejs) {
    Error.call(this);
    Error.captureStackTrace(this, this.constructor);
  } else if(typeof Error !== 'undefined') {
    this.stack = (new Error()).stack;
  }
  this.name = type || 'jsonld.Error';
  this.message = msg || 'An unspecified JSON-LD error occurred.';
  this.details = details || {};
};
if(_nodejs) {
  _dereq_('util').inherits(JsonLdError, Error);
} else if(typeof Error !== 'undefined') {
  JsonLdError.prototype = new Error();
}

/**
 * Constructs a new JSON-LD Processor.
 */
var Processor = function() {};

/**
 * Recursively compacts an element using the given active context. All values
 * must be in expanded form before this method is called.
 *
 * @param activeCtx the active context to use.
 * @param activeProperty the compacted property associated with the element
 *          to compact, null for none.
 * @param element the element to compact.
 * @param options the compaction options.
 *
 * @return the compacted value.
 */
Processor.prototype.compact = function(
  activeCtx, activeProperty, element, options) {
  // recursively compact array
  if(_isArray(element)) {
    var rval = [];
    for(var i = 0; i < element.length; ++i) {
      // compact, dropping any null values
      var compacted = this.compact(
        activeCtx, activeProperty, element[i], options);
      if(compacted !== null) {
        rval.push(compacted);
      }
    }
    if(options.compactArrays && rval.length === 1) {
      // use single element if no container is specified
      var container = jsonld.getContextValue(
        activeCtx, activeProperty, '@container');
      if(container === null) {
        rval = rval[0];
      }
    }
    return rval;
  }

  // recursively compact object
  if(_isObject(element)) {
    if(options.link && '@id' in element && element['@id'] in options.link) {
      // check for a linked element to reuse
      var linked = options.link[element['@id']];
      for(var i = 0; i < linked.length; ++i) {
        if(linked[i].expanded === element) {
          return linked[i].compacted;
        }
      }
    }

    // do value compaction on @values and subject references
    if(_isValue(element) || _isSubjectReference(element)) {
      var rval = _compactValue(activeCtx, activeProperty, element);
      if(options.link && _isSubjectReference(element)) {
        // store linked element
        if(!(element['@id'] in options.link)) {
          options.link[element['@id']] = [];
        }
        options.link[element['@id']].push({expanded: element, compacted: rval});
      }
      return rval;
    }

    // FIXME: avoid misuse of active property as an expanded property?
    var insideReverse = (activeProperty === '@reverse');

    var rval = {};

    if(options.link && '@id' in element) {
      // store linked element
      if(!(element['@id'] in options.link)) {
        options.link[element['@id']] = [];
      }
      options.link[element['@id']].push({expanded: element, compacted: rval});
    }

    // process element keys in order
    var keys = Object.keys(element).sort();
    for(var ki = 0; ki < keys.length; ++ki) {
      var expandedProperty = keys[ki];
      var expandedValue = element[expandedProperty];

      // compact @id and @type(s)
      if(expandedProperty === '@id' || expandedProperty === '@type') {
        var compactedValue;

        // compact single @id
        if(_isString(expandedValue)) {
          compactedValue = _compactIri(
            activeCtx, expandedValue, null,
            {vocab: (expandedProperty === '@type')});
        } else {
          // expanded value must be a @type array
          compactedValue = [];
          for(var vi = 0; vi < expandedValue.length; ++vi) {
            compactedValue.push(_compactIri(
              activeCtx, expandedValue[vi], null, {vocab: true}));
          }
        }

        // use keyword alias and add value
        var alias = _compactIri(activeCtx, expandedProperty);
        var isArray = (_isArray(compactedValue) && expandedValue.length === 0);
        jsonld.addValue(
          rval, alias, compactedValue, {propertyIsArray: isArray});
        continue;
      }

      // handle @reverse
      if(expandedProperty === '@reverse') {
        // recursively compact expanded value
        var compactedValue = this.compact(
          activeCtx, '@reverse', expandedValue, options);

        // handle double-reversed properties
        for(var compactedProperty in compactedValue) {
          if(activeCtx.mappings[compactedProperty] &&
            activeCtx.mappings[compactedProperty].reverse) {
            var value = compactedValue[compactedProperty];
            var container = jsonld.getContextValue(
              activeCtx, compactedProperty, '@container');
            var useArray = (container === '@set' || !options.compactArrays);
            jsonld.addValue(
              rval, compactedProperty, value, {propertyIsArray: useArray});
            delete compactedValue[compactedProperty];
          }
        }

        if(Object.keys(compactedValue).length > 0) {
          // use keyword alias and add value
          var alias = _compactIri(activeCtx, expandedProperty);
          jsonld.addValue(rval, alias, compactedValue);
        }

        continue;
      }

      // handle @index property
      if(expandedProperty === '@index') {
        // drop @index if inside an @index container
        var container = jsonld.getContextValue(
          activeCtx, activeProperty, '@container');
        if(container === '@index') {
          continue;
        }

        // use keyword alias and add value
        var alias = _compactIri(activeCtx, expandedProperty);
        jsonld.addValue(rval, alias, expandedValue);
        continue;
      }

      // skip array processing for keywords that aren't @graph or @list
      if(expandedProperty !== '@graph' && expandedProperty !== '@list' &&
        _isKeyword(expandedProperty)) {
        // use keyword alias and add value as is
        var alias = _compactIri(activeCtx, expandedProperty);
        jsonld.addValue(rval, alias, expandedValue);
        continue;
      }

      // Note: expanded value must be an array due to expansion algorithm.

      // preserve empty arrays
      if(expandedValue.length === 0) {
        var itemActiveProperty = _compactIri(
          activeCtx, expandedProperty, expandedValue, {vocab: true},
          insideReverse);
        jsonld.addValue(
          rval, itemActiveProperty, expandedValue, {propertyIsArray: true});
      }

      // recusively process array values
      for(var vi = 0; vi < expandedValue.length; ++vi) {
        var expandedItem = expandedValue[vi];

        // compact property and get container type
        var itemActiveProperty = _compactIri(
          activeCtx, expandedProperty, expandedItem, {vocab: true},
          insideReverse);
        var container = jsonld.getContextValue(
          activeCtx, itemActiveProperty, '@container');

        // get @list value if appropriate
        var isList = _isList(expandedItem);
        var list = null;
        if(isList) {
          list = expandedItem['@list'];
        }

        // recursively compact expanded item
        var compactedItem = this.compact(
          activeCtx, itemActiveProperty, isList ? list : expandedItem, options);

        // handle @list
        if(isList) {
          // ensure @list value is an array
          if(!_isArray(compactedItem)) {
            compactedItem = [compactedItem];
          }

          if(container !== '@list') {
            // wrap using @list alias
            var wrapper = {};
            wrapper[_compactIri(activeCtx, '@list')] = compactedItem;
            compactedItem = wrapper;

            // include @index from expanded @list, if any
            if('@index' in expandedItem) {
              compactedItem[_compactIri(activeCtx, '@index')] =
                expandedItem['@index'];
            }
          } else if(itemActiveProperty in rval) {
            // can't use @list container for more than 1 list
            throw new JsonLdError(
              'JSON-LD compact error; property has a "@list" @container ' +
              'rule but there is more than a single @list that matches ' +
              'the compacted term in the document. Compaction might mix ' +
              'unwanted items into the list.',
              'jsonld.SyntaxError', {code: 'compaction to list of lists'});
          }
        }

        // handle language and index maps
        if(container === '@language' || container === '@index') {
          // get or create the map object
          var mapObject;
          if(itemActiveProperty in rval) {
            mapObject = rval[itemActiveProperty];
          } else {
            rval[itemActiveProperty] = mapObject = {};
          }

          // if container is a language map, simplify compacted value to
          // a simple string
          if(container === '@language' && _isValue(compactedItem)) {
            compactedItem = compactedItem['@value'];
          }

          // add compact value to map object using key from expanded value
          // based on the container type
          jsonld.addValue(mapObject, expandedItem[container], compactedItem);
        } else {
          // use an array if: compactArrays flag is false,
          // @container is @set or @list , value is an empty
          // array, or key is @graph
          var isArray = (!options.compactArrays || container === '@set' ||
            container === '@list' ||
            (_isArray(compactedItem) && compactedItem.length === 0) ||
            expandedProperty === '@list' || expandedProperty === '@graph');

          // add compact value
          jsonld.addValue(
            rval, itemActiveProperty, compactedItem,
            {propertyIsArray: isArray});
        }
      }
    }

    return rval;
  }

  // only primitives remain which are already compact
  return element;
};

/**
 * Recursively expands an element using the given context. Any context in
 * the element will be removed. All context URLs must have been retrieved
 * before calling this method.
 *
 * @param activeCtx the context to use.
 * @param activeProperty the property for the element, null for none.
 * @param element the element to expand.
 * @param options the expansion options.
 * @param insideList true if the element is a list, false if not.
 *
 * @return the expanded value.
 */
Processor.prototype.expand = function(
  activeCtx, activeProperty, element, options, insideList) {
  var self = this;

  // nothing to expand
  if(element === null || element === undefined) {
    return null;
  }

  if(!_isArray(element) && !_isObject(element)) {
    // drop free-floating scalars that are not in lists
    if(!insideList && (activeProperty === null ||
      _expandIri(activeCtx, activeProperty, {vocab: true}) === '@graph')) {
      return null;
    }

    // expand element according to value expansion rules
    return _expandValue(activeCtx, activeProperty, element);
  }

  // recursively expand array
  if(_isArray(element)) {
    var rval = [];
    var container = jsonld.getContextValue(
      activeCtx, activeProperty, '@container');
    insideList = insideList || container === '@list';
    for(var i = 0; i < element.length; ++i) {
      // expand element
      var e = self.expand(activeCtx, activeProperty, element[i], options);
      if(insideList && (_isArray(e) || _isList(e))) {
        // lists of lists are illegal
        throw new JsonLdError(
          'Invalid JSON-LD syntax; lists of lists are not permitted.',
          'jsonld.SyntaxError', {code: 'list of lists'});
      }
      // drop null values
      if(e !== null) {
        if(_isArray(e)) {
          rval = rval.concat(e);
        } else {
          rval.push(e);
        }
      }
    }
    return rval;
  }

  // recursively expand object:

  // if element has a context, process it
  if('@context' in element) {
    activeCtx = self.processContext(activeCtx, element['@context'], options);
  }

  // expand the active property
  var expandedActiveProperty = _expandIri(
    activeCtx, activeProperty, {vocab: true});

  var rval = {};
  var keys = Object.keys(element).sort();
  for(var ki = 0; ki < keys.length; ++ki) {
    var key = keys[ki];
    var value = element[key];
    var expandedValue;

    // skip @context
    if(key === '@context') {
      continue;
    }

    // expand property
    var expandedProperty = _expandIri(activeCtx, key, {vocab: true});

    // drop non-absolute IRI keys that aren't keywords
    if(expandedProperty === null ||
      !(_isAbsoluteIri(expandedProperty) || _isKeyword(expandedProperty))) {
      continue;
    }

    if(_isKeyword(expandedProperty)) {
      if(expandedActiveProperty === '@reverse') {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; a keyword cannot be used as a @reverse ' +
          'property.', 'jsonld.SyntaxError',
          {code: 'invalid reverse property map', value: value});
      }
      if(expandedProperty in rval) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; colliding keywords detected.',
          'jsonld.SyntaxError',
          {code: 'colliding keywords', keyword: expandedProperty});
      }
    }

    // syntax error if @id is not a string
    if(expandedProperty === '@id' && !_isString(value)) {
      if(!options.isFrame) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; "@id" value must a string.',
          'jsonld.SyntaxError', {code: 'invalid @id value', value: value});
      }
      if(!_isObject(value)) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; "@id" value must be a string or an ' +
          'object.', 'jsonld.SyntaxError',
          {code: 'invalid @id value', value: value});
      }
    }

    if(expandedProperty === '@type') {
      _validateTypeValue(value);
    }

    // @graph must be an array or an object
    if(expandedProperty === '@graph' &&
      !(_isObject(value) || _isArray(value))) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; "@graph" value must not be an ' +
        'object or an array.',
        'jsonld.SyntaxError', {code: 'invalid @graph value', value: value});
    }

    // @value must not be an object or an array
    if(expandedProperty === '@value' &&
      (_isObject(value) || _isArray(value))) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; "@value" value must not be an ' +
        'object or an array.',
        'jsonld.SyntaxError',
        {code: 'invalid value object value', value: value});
    }

    // @language must be a string
    if(expandedProperty === '@language') {
      if(value === null) {
        // drop null @language values, they expand as if they didn't exist
        continue;
      }
      if(!_isString(value)) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; "@language" value must be a string.',
          'jsonld.SyntaxError',
          {code: 'invalid language-tagged string', value: value});
      }
      // ensure language value is lowercase
      value = value.toLowerCase();
    }

    // @index must be a string
    if(expandedProperty === '@index') {
      if(!_isString(value)) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; "@index" value must be a string.',
          'jsonld.SyntaxError',
          {code: 'invalid @index value', value: value});
      }
    }

    // @reverse must be an object
    if(expandedProperty === '@reverse') {
      if(!_isObject(value)) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; "@reverse" value must be an object.',
          'jsonld.SyntaxError', {code: 'invalid @reverse value', value: value});
      }

      expandedValue = self.expand(activeCtx, '@reverse', value, options);

      // properties double-reversed
      if('@reverse' in expandedValue) {
        for(var property in expandedValue['@reverse']) {
          jsonld.addValue(
            rval, property, expandedValue['@reverse'][property],
            {propertyIsArray: true});
        }
      }

      // FIXME: can this be merged with code below to simplify?
      // merge in all reversed properties
      var reverseMap = rval['@reverse'] || null;
      for(var property in expandedValue) {
        if(property === '@reverse') {
          continue;
        }
        if(reverseMap === null) {
          reverseMap = rval['@reverse'] = {};
        }
        jsonld.addValue(reverseMap, property, [], {propertyIsArray: true});
        var items = expandedValue[property];
        for(var ii = 0; ii < items.length; ++ii) {
          var item = items[ii];
          if(_isValue(item) || _isList(item)) {
            throw new JsonLdError(
              'Invalid JSON-LD syntax; "@reverse" value must not be a ' +
              '@value or an @list.', 'jsonld.SyntaxError',
              {code: 'invalid reverse property value', value: expandedValue});
          }
          jsonld.addValue(
            reverseMap, property, item, {propertyIsArray: true});
        }
      }

      continue;
    }

    var container = jsonld.getContextValue(activeCtx, key, '@container');

    if(container === '@language' && _isObject(value)) {
      // handle language map container (skip if value is not an object)
      expandedValue = _expandLanguageMap(value);
    } else if(container === '@index' && _isObject(value)) {
      // handle index container (skip if value is not an object)
      expandedValue = (function _expandIndexMap(activeProperty) {
        var rval = [];
        var keys = Object.keys(value).sort();
        for(var ki = 0; ki < keys.length; ++ki) {
          var key = keys[ki];
          var val = value[key];
          if(!_isArray(val)) {
            val = [val];
          }
          val = self.expand(activeCtx, activeProperty, val, options, false);
          for(var vi = 0; vi < val.length; ++vi) {
            var item = val[vi];
            if(!('@index' in item)) {
              item['@index'] = key;
            }
            rval.push(item);
          }
        }
        return rval;
      })(key);
    } else {
      // recurse into @list or @set
      var isList = (expandedProperty === '@list');
      if(isList || expandedProperty === '@set') {
        var nextActiveProperty = activeProperty;
        if(isList && expandedActiveProperty === '@graph') {
          nextActiveProperty = null;
        }
        expandedValue = self.expand(
          activeCtx, nextActiveProperty, value, options, isList);
        if(isList && _isList(expandedValue)) {
          throw new JsonLdError(
            'Invalid JSON-LD syntax; lists of lists are not permitted.',
            'jsonld.SyntaxError', {code: 'list of lists'});
        }
      } else {
        // recursively expand value with key as new active property
        expandedValue = self.expand(activeCtx, key, value, options, false);
      }
    }

    // drop null values if property is not @value
    if(expandedValue === null && expandedProperty !== '@value') {
      continue;
    }

    // convert expanded value to @list if container specifies it
    if(expandedProperty !== '@list' && !_isList(expandedValue) &&
      container === '@list') {
      // ensure expanded value is an array
      expandedValue = (_isArray(expandedValue) ?
        expandedValue : [expandedValue]);
      expandedValue = {'@list': expandedValue};
    }

    // FIXME: can this be merged with code above to simplify?
    // merge in reverse properties
    if(activeCtx.mappings[key] && activeCtx.mappings[key].reverse) {
      var reverseMap = rval['@reverse'] = rval['@reverse'] || {};
      if(!_isArray(expandedValue)) {
        expandedValue = [expandedValue];
      }
      for(var ii = 0; ii < expandedValue.length; ++ii) {
        var item = expandedValue[ii];
        if(_isValue(item) || _isList(item)) {
          throw new JsonLdError(
            'Invalid JSON-LD syntax; "@reverse" value must not be a ' +
            '@value or an @list.', 'jsonld.SyntaxError',
            {code: 'invalid reverse property value', value: expandedValue});
        }
        jsonld.addValue(
          reverseMap, expandedProperty, item, {propertyIsArray: true});
      }
      continue;
    }

    // add value for property
    // use an array except for certain keywords
    var useArray =
      ['@index', '@id', '@type', '@value', '@language'].indexOf(
        expandedProperty) === -1;
    jsonld.addValue(
      rval, expandedProperty, expandedValue, {propertyIsArray: useArray});
  }

  // get property count on expanded output
  keys = Object.keys(rval);
  var count = keys.length;

  if('@value' in rval) {
    // @value must only have @language or @type
    if('@type' in rval && '@language' in rval) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; an element containing "@value" may not ' +
        'contain both "@type" and "@language".',
        'jsonld.SyntaxError', {code: 'invalid value object', element: rval});
    }
    var validCount = count - 1;
    if('@type' in rval) {
      validCount -= 1;
    }
    if('@index' in rval) {
      validCount -= 1;
    }
    if('@language' in rval) {
      validCount -= 1;
    }
    if(validCount !== 0) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; an element containing "@value" may only ' +
        'have an "@index" property and at most one other property ' +
        'which can be "@type" or "@language".',
        'jsonld.SyntaxError', {code: 'invalid value object', element: rval});
    }
    // drop null @values
    if(rval['@value'] === null) {
      rval = null;
    } else if('@language' in rval && !_isString(rval['@value'])) {
      // if @language is present, @value must be a string
      throw new JsonLdError(
        'Invalid JSON-LD syntax; only strings may be language-tagged.',
        'jsonld.SyntaxError',
        {code: 'invalid language-tagged value', element: rval});
    } else if('@type' in rval && (!_isAbsoluteIri(rval['@type']) ||
      rval['@type'].indexOf('_:') === 0)) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; an element containing "@value" and "@type" ' +
        'must have an absolute IRI for the value of "@type".',
        'jsonld.SyntaxError', {code: 'invalid typed value', element: rval});
    }
  } else if('@type' in rval && !_isArray(rval['@type'])) {
    // convert @type to an array
    rval['@type'] = [rval['@type']];
  } else if('@set' in rval || '@list' in rval) {
    // handle @set and @list
    if(count > 1 && !(count === 2 && '@index' in rval)) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; if an element has the property "@set" ' +
        'or "@list", then it can have at most one other property that is ' +
        '"@index".', 'jsonld.SyntaxError',
        {code: 'invalid set or list object', element: rval});
    }
    // optimize away @set
    if('@set' in rval) {
      rval = rval['@set'];
      keys = Object.keys(rval);
      count = keys.length;
    }
  } else if(count === 1 && '@language' in rval) {
    // drop objects with only @language
    rval = null;
  }

  // drop certain top-level objects that do not occur in lists
  if(_isObject(rval) &&
    !options.keepFreeFloatingNodes && !insideList &&
    (activeProperty === null || expandedActiveProperty === '@graph')) {
    // drop empty object, top-level @value/@list, or object with only @id
    if(count === 0 || '@value' in rval || '@list' in rval ||
      (count === 1 && '@id' in rval)) {
      rval = null;
    }
  }

  return rval;
};

/**
 * Creates a JSON-LD node map (node ID => node).
 *
 * @param input the expanded JSON-LD to create a node map of.
 * @param [options] the options to use:
 *          [issuer] a jsonld.IdentifierIssuer to use to label blank nodes.
 *          [namer] (deprecated).
 *
 * @return the node map.
 */
Processor.prototype.createNodeMap = function(input, options) {
  options = options || {};

  // produce a map of all subjects and name each bnode
  var issuer = options.namer || options.issuer || new IdentifierIssuer('_:b');
  var graphs = {'@default': {}};
  _createNodeMap(input, graphs, '@default', issuer);

  // add all non-default graphs to default graph
  return _mergeNodeMaps(graphs);
};

/**
 * Performs JSON-LD flattening.
 *
 * @param input the expanded JSON-LD to flatten.
 *
 * @return the flattened output.
 */
Processor.prototype.flatten = function(input) {
  var defaultGraph = this.createNodeMap(input);

  // produce flattened output
  var flattened = [];
  var keys = Object.keys(defaultGraph).sort();
  for(var ki = 0; ki < keys.length; ++ki) {
    var node = defaultGraph[keys[ki]];
    // only add full subjects to top-level
    if(!_isSubjectReference(node)) {
      flattened.push(node);
    }
  }
  return flattened;
};

/**
 * Performs JSON-LD framing.
 *
 * @param input the expanded JSON-LD to frame.
 * @param frame the expanded JSON-LD frame to use.
 * @param options the framing options.
 *
 * @return the framed output.
 */
Processor.prototype.frame = function(input, frame, options) {
  // create framing state
  var state = {
    options: options,
    graphs: {'@default': {}, '@merged': {}},
    subjectStack: [],
    link: {}
  };

  // produce a map of all graphs and name each bnode
  // FIXME: currently uses subjects from @merged graph only
  var issuer = new IdentifierIssuer('_:b');
  _createNodeMap(input, state.graphs, '@merged', issuer);
  state.subjects = state.graphs['@merged'];

  // frame the subjects
  var framed = [];
  _frame(state, Object.keys(state.subjects).sort(), frame, framed, null);
  return framed;
};

/**
 * Performs normalization on the given RDF dataset.
 *
 * @param dataset the RDF dataset to normalize.
 * @param options the normalization options.
 * @param callback(err, normalized) called once the operation completes.
 */
Processor.prototype.normalize = function(dataset, options, callback) {
  if(options.algorithm === 'URDNA2015') {
    return new URDNA2015(options).main(dataset, callback);
  }
  if(options.algorithm === 'URGNA2012') {
    return new URGNA2012(options).main(dataset, callback);
  }
  callback(new Error(
    'Invalid RDF Dataset Normalization algorithm: ' + options.algorithm));
};

/**
 * Converts an RDF dataset to JSON-LD.
 *
 * @param dataset the RDF dataset.
 * @param options the RDF serialization options.
 * @param callback(err, output) called once the operation completes.
 */
Processor.prototype.fromRDF = function(dataset, options, callback) {
  var defaultGraph = {};
  var graphMap = {'@default': defaultGraph};
  var referencedOnce = {};

  for(var name in dataset) {
    var graph = dataset[name];
    if(!(name in graphMap)) {
      graphMap[name] = {};
    }
    if(name !== '@default' && !(name in defaultGraph)) {
      defaultGraph[name] = {'@id': name};
    }
    var nodeMap = graphMap[name];
    for(var ti = 0; ti < graph.length; ++ti) {
      var triple = graph[ti];

      // get subject, predicate, object
      var s = triple.subject.value;
      var p = triple.predicate.value;
      var o = triple.object;

      if(!(s in nodeMap)) {
        nodeMap[s] = {'@id': s};
      }
      var node = nodeMap[s];

      var objectIsId = (o.termType === 'NamedNode' || o.termType === "BlankNode" || o.type === 'IRI' || o.type === 'blank node');
      if(objectIsId && !(o.value in nodeMap)) {
        nodeMap[o.value] = {'@id': o.value};
      }

      if(p === RDF_TYPE && !options.useRdfType && objectIsId) {
        jsonld.addValue(node, '@type', o.value, {propertyIsArray: true});
        continue;
      }

      var value = _RDFToObject(o, options.useNativeTypes);
      jsonld.addValue(node, p, value, {propertyIsArray: true});

      // object may be an RDF list/partial list node but we can't know easily
      // until all triples are read
      if(objectIsId) {
        if(o.value === RDF_NIL) {
          // track rdf:nil uniquely per graph
          var object = nodeMap[o.value];
          if(!('usages' in object)) {
            object.usages = [];
          }
          object.usages.push({
            node: node,
            property: p,
            value: value
          });
        } else if(o.value in referencedOnce) {
          // object referenced more than once
          referencedOnce[o.value] = false;
        } else {
          // keep track of single reference
          referencedOnce[o.value] = {
            node: node,
            property: p,
            value: value
          };
        }
      }
    }
  }

  // convert linked lists to @list arrays
  for(var name in graphMap) {
    var graphObject = graphMap[name];

    // no @lists to be converted, continue
    if(!(RDF_NIL in graphObject)) {
      continue;
    }

    // iterate backwards through each RDF list
    var nil = graphObject[RDF_NIL];
    for(var i = 0; i < nil.usages.length; ++i) {
      var usage = nil.usages[i];
      var node = usage.node;
      var property = usage.property;
      var head = usage.value;
      var list = [];
      var listNodes = [];

      // ensure node is a well-formed list node; it must:
      // 1. Be referenced only once.
      // 2. Have an array for rdf:first that has 1 item.
      // 3. Have an array for rdf:rest that has 1 item.
      // 4. Have no keys other than: @id, rdf:first, rdf:rest, and,
      //   optionally, @type where the value is rdf:List.
      var nodeKeyCount = Object.keys(node).length;
      while(property === RDF_REST &&
        _isObject(referencedOnce[node['@id']]) &&
        _isArray(node[RDF_FIRST]) && node[RDF_FIRST].length === 1 &&
        _isArray(node[RDF_REST]) && node[RDF_REST].length === 1 &&
        (nodeKeyCount === 3 || (nodeKeyCount === 4 && _isArray(node['@type']) &&
          node['@type'].length === 1 && node['@type'][0] === RDF_LIST))) {
        list.push(node[RDF_FIRST][0]);
        listNodes.push(node['@id']);

        // get next node, moving backwards through list
        usage = referencedOnce[node['@id']];
        node = usage.node;
        property = usage.property;
        head = usage.value;
        nodeKeyCount = Object.keys(node).length;

        // if node is not a blank node, then list head found
        if(node['@id'].indexOf('_:') !== 0) {
          break;
        }
      }

      // the list is nested in another list
      if(property === RDF_FIRST) {
        // empty list
        if(node['@id'] === RDF_NIL) {
          // can't convert rdf:nil to a @list object because it would
          // result in a list of lists which isn't supported
          continue;
        }

        // preserve list head
        head = graphObject[head['@id']][RDF_REST][0];
        list.pop();
        listNodes.pop();
      }

      // transform list into @list object
      delete head['@id'];
      head['@list'] = list.reverse();
      for(var j = 0; j < listNodes.length; ++j) {
        delete graphObject[listNodes[j]];
      }
    }

    delete nil.usages;
  }

  var result = [];
  var subjects = Object.keys(defaultGraph).sort();
  for(var i = 0; i < subjects.length; ++i) {
    var subject = subjects[i];
    var node = defaultGraph[subject];
    if(subject in graphMap) {
      var graph = node['@graph'] = [];
      var graphObject = graphMap[subject];
      var subjects_ = Object.keys(graphObject).sort();
      for(var si = 0; si < subjects_.length; ++si) {
        var node_ = graphObject[subjects_[si]];
        // only add full subjects to top-level
        if(!_isSubjectReference(node_)) {
          graph.push(node_);
        }
      }
    }
    // only add full subjects to top-level
    if(!_isSubjectReference(node)) {
      result.push(node);
    }
  }

  callback(null, result);
};

/**
 * Outputs an RDF dataset for the expanded JSON-LD input.
 *
 * @param input the expanded JSON-LD input.
 * @param options the RDF serialization options.
 *
 * @return the RDF dataset.
 */
Processor.prototype.toRDF = function(input, options) {
  // create node map for default graph (and any named graphs)
  var issuer = new IdentifierIssuer('_:b');
  var nodeMap = {'@default': {}};
  _createNodeMap(input, nodeMap, '@default', issuer);

  var dataset = {};
  var graphNames = Object.keys(nodeMap).sort();
  for(var i = 0; i < graphNames.length; ++i) {
    var graphName = graphNames[i];
    // skip relative IRIs
    if(graphName === '@default' || _isAbsoluteIri(graphName)) {
      dataset[graphName] = _graphToRDF(nodeMap[graphName], issuer, options);
    }
  }
  return dataset;
};

/**
 * Processes a local context and returns a new active context.
 *
 * @param activeCtx the current active context.
 * @param localCtx the local context to process.
 * @param options the context processing options.
 *
 * @return the new active context.
 */
Processor.prototype.processContext = function(activeCtx, localCtx, options) {
  // normalize local context to an array of @context objects
  if(_isObject(localCtx) && '@context' in localCtx &&
    _isArray(localCtx['@context'])) {
    localCtx = localCtx['@context'];
  }
  var ctxs = _isArray(localCtx) ? localCtx : [localCtx];

  // no contexts in array, clone existing context
  if(ctxs.length === 0) {
    return activeCtx.clone();
  }

  // process each context in order, update active context
  // on each iteration to ensure proper caching
  var rval = activeCtx;
  for(var i = 0; i < ctxs.length; ++i) {
    var ctx = ctxs[i];

    // reset to initial context
    if(ctx === null) {
      rval = activeCtx = _getInitialContext(options);
      continue;
    }

    // dereference @context key if present
    if(_isObject(ctx) && '@context' in ctx) {
      ctx = ctx['@context'];
    }

    // context must be an object by now, all URLs retrieved before this call
    if(!_isObject(ctx)) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; @context must be an object.',
        'jsonld.SyntaxError', {code: 'invalid local context', context: ctx});
    }

    // get context from cache if available
    if(jsonld.cache.activeCtx) {
      var cached = jsonld.cache.activeCtx.get(activeCtx, ctx);
      if(cached) {
        rval = activeCtx = cached;
        continue;
      }
    }

    // update active context and clone new one before updating
    activeCtx = rval;
    rval = rval.clone();

    // define context mappings for keys in local context
    var defined = {};

    // handle @base
    if('@base' in ctx) {
      var base = ctx['@base'];

      // clear base
      if(base === null) {
        base = null;
      } else if(!_isString(base)) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; the value of "@base" in a ' +
          '@context must be a string or null.',
          'jsonld.SyntaxError', {code: 'invalid base IRI', context: ctx});
      } else if(base !== '' && !_isAbsoluteIri(base)) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; the value of "@base" in a ' +
          '@context must be an absolute IRI or the empty string.',
          'jsonld.SyntaxError', {code: 'invalid base IRI', context: ctx});
      }

      if(base !== null) {
        base = jsonld.url.parse(base || '');
      }
      rval['@base'] = base;
      defined['@base'] = true;
    }

    // handle @vocab
    if('@vocab' in ctx) {
      var value = ctx['@vocab'];
      if(value === null) {
        delete rval['@vocab'];
      } else if(!_isString(value)) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; the value of "@vocab" in a ' +
          '@context must be a string or null.',
          'jsonld.SyntaxError', {code: 'invalid vocab mapping', context: ctx});
      } else if(!_isAbsoluteIri(value)) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; the value of "@vocab" in a ' +
          '@context must be an absolute IRI.',
          'jsonld.SyntaxError', {code: 'invalid vocab mapping', context: ctx});
      } else {
        rval['@vocab'] = value;
      }
      defined['@vocab'] = true;
    }

    // handle @language
    if('@language' in ctx) {
      var value = ctx['@language'];
      if(value === null) {
        delete rval['@language'];
      } else if(!_isString(value)) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; the value of "@language" in a ' +
          '@context must be a string or null.',
          'jsonld.SyntaxError',
          {code: 'invalid default language', context: ctx});
      } else {
        rval['@language'] = value.toLowerCase();
      }
      defined['@language'] = true;
    }

    // process all other keys
    for(var key in ctx) {
      _createTermDefinition(rval, ctx, key, defined);
    }

    // cache result
    if(jsonld.cache.activeCtx) {
      jsonld.cache.activeCtx.set(activeCtx, ctx, rval);
    }
  }

  return rval;
};

/**
 * Expands a language map.
 *
 * @param languageMap the language map to expand.
 *
 * @return the expanded language map.
 */
function _expandLanguageMap(languageMap) {
  var rval = [];
  var keys = Object.keys(languageMap).sort();
  for(var ki = 0; ki < keys.length; ++ki) {
    var key = keys[ki];
    var val = languageMap[key];
    if(!_isArray(val)) {
      val = [val];
    }
    for(var vi = 0; vi < val.length; ++vi) {
      var item = val[vi];
      if(item === null) {
          // null values are allowed (8.5) but ignored (3.1)
          continue;
      }
      if(!_isString(item)) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; language map values must be strings.',
          'jsonld.SyntaxError',
          {code: 'invalid language map value', languageMap: languageMap});
      }
      rval.push({
        '@value': item,
        '@language': key.toLowerCase()
      });
    }
  }
  return rval;
}

/**
 * Labels the blank nodes in the given value using the given IdentifierIssuer.
 *
 * @param issuer the IdentifierIssuer to use.
 * @param element the element with blank nodes to rename.
 *
 * @return the element.
 */
function _labelBlankNodes(issuer, element) {
  if(_isArray(element)) {
    for(var i = 0; i < element.length; ++i) {
      element[i] = _labelBlankNodes(issuer, element[i]);
    }
  } else if(_isList(element)) {
    element['@list'] = _labelBlankNodes(issuer, element['@list']);
  } else if(_isObject(element)) {
    // relabel blank node
    if(_isBlankNode(element)) {
      element['@id'] = issuer.getId(element['@id']);
    }

    // recursively apply to all keys
    var keys = Object.keys(element).sort();
    for(var ki = 0; ki < keys.length; ++ki) {
      var key = keys[ki];
      if(key !== '@id') {
        element[key] = _labelBlankNodes(issuer, element[key]);
      }
    }
  }

  return element;
}

/**
 * Expands the given value by using the coercion and keyword rules in the
 * given context.
 *
 * @param activeCtx the active context to use.
 * @param activeProperty the active property the value is associated with.
 * @param value the value to expand.
 *
 * @return the expanded value.
 */
function _expandValue(activeCtx, activeProperty, value) {
  // nothing to expand
  if(value === null || value === undefined) {
    return null;
  }

  // special-case expand @id and @type (skips '@id' expansion)
  var expandedProperty = _expandIri(activeCtx, activeProperty, {vocab: true});
  if(expandedProperty === '@id') {
    return _expandIri(activeCtx, value, {base: true});
  } else if(expandedProperty === '@type') {
    return _expandIri(activeCtx, value, {vocab: true, base: true});
  }

  // get type definition from context
  var type = jsonld.getContextValue(activeCtx, activeProperty, '@type');

  // do @id expansion (automatic for @graph)
  if(type === '@id' || (expandedProperty === '@graph' && _isString(value))) {
    return {'@id': _expandIri(activeCtx, value, {base: true})};
  }
  // do @id expansion w/vocab
  if(type === '@vocab') {
    return {'@id': _expandIri(activeCtx, value, {vocab: true, base: true})};
  }

  // do not expand keyword values
  if(_isKeyword(expandedProperty)) {
    return value;
  }

  var rval = {};

  if(type !== null) {
    // other type
    rval['@type'] = type;
  } else if(_isString(value)) {
    // check for language tagging for strings
    var language = jsonld.getContextValue(
      activeCtx, activeProperty, '@language');
    if(language !== null) {
      rval['@language'] = language;
    }
  }
  // do conversion of values that aren't basic JSON types to strings
  if(['boolean', 'number', 'string'].indexOf(typeof value) === -1) {
    value = value.toString();
  }
  rval['@value'] = value;

  return rval;
}

/**
 * Creates an array of RDF triples for the given graph.
 *
 * @param graph the graph to create RDF triples for.
 * @param issuer a IdentifierIssuer for assigning blank node names.
 * @param options the RDF serialization options.
 *
 * @return the array of RDF triples for the given graph.
 */
function _graphToRDF(graph, issuer, options) {
  var rval = [];

  var ids = Object.keys(graph).sort();
  for(var i = 0; i < ids.length; ++i) {
    var id = ids[i];
    var node = graph[id];
    var properties = Object.keys(node).sort();
    for(var pi = 0; pi < properties.length; ++pi) {
      var property = properties[pi];
      var items = node[property];
      if(property === '@type') {
        property = RDF_TYPE;
      } else if(_isKeyword(property)) {
        continue;
      }

      for(var ii = 0; ii < items.length; ++ii) {
        var item = items[ii];

        // RDF subject
        var subject = {};
        subject.type = (id.indexOf('_:') === 0) ? 'blank node' : 'IRI';
        subject.value = id;

        // skip relative IRI subjects
        if(!_isAbsoluteIri(id)) {
          continue;
        }

        // RDF predicate
        var predicate = {};
        predicate.type = (property.indexOf('_:') === 0) ? 'blank node' : 'IRI';
        predicate.value = property;

        // skip relative IRI predicates
        if(!_isAbsoluteIri(property)) {
          continue;
        }

        // skip blank node predicates unless producing generalized RDF
        if(predicate.type === 'blank node' && !options.produceGeneralizedRdf) {
          continue;
        }

        // convert @list to triples
        if(_isList(item)) {
          _listToRDF(item['@list'], issuer, subject, predicate, rval);
        } else {
          // convert value or node object to triple
          var object = _objectToRDF(item);
          // skip null objects (they are relative IRIs)
          if(object) {
            rval.push({subject: subject, predicate: predicate, object: object});
          }
        }
      }
    }
  }

  return rval;
}

/**
 * Converts a @list value into linked list of blank node RDF triples
 * (an RDF collection).
 *
 * @param list the @list value.
 * @param issuer a IdentifierIssuer for assigning blank node names.
 * @param subject the subject for the head of the list.
 * @param predicate the predicate for the head of the list.
 * @param triples the array of triples to append to.
 */
function _listToRDF(list, issuer, subject, predicate, triples) {
  var first = {type: 'IRI', value: RDF_FIRST};
  var rest = {type: 'IRI', value: RDF_REST};
  var nil = {type: 'IRI', value: RDF_NIL};

  for(var i = 0; i < list.length; ++i) {
    var item = list[i];

    var blankNode = {type: 'blank node', value: issuer.getId()};
    triples.push({subject: subject, predicate: predicate, object: blankNode});

    subject = blankNode;
    predicate = first;
    var object = _objectToRDF(item);

    // skip null objects (they are relative IRIs)
    if(object) {
      triples.push({subject: subject, predicate: predicate, object: object});
    }

    predicate = rest;
  }

  triples.push({subject: subject, predicate: predicate, object: nil});
}

/**
 * Converts a JSON-LD value object to an RDF literal or a JSON-LD string or
 * node object to an RDF resource.
 *
 * @param item the JSON-LD value or node object.
 *
 * @return the RDF literal or RDF resource.
 */
function _objectToRDF(item) {
  var object = {};

  // convert value object to RDF
  if(_isValue(item)) {
    object.type = 'literal';
    var value = item['@value'];
    var datatype = item['@type'] || null;

    // convert to XSD datatypes as appropriate
    if(_isBoolean(value)) {
      object.value = value.toString();
      object.datatype = datatype || XSD_BOOLEAN;
    } else if(_isDouble(value) || datatype === XSD_DOUBLE) {
      if(!_isDouble(value)) {
        value = parseFloat(value);
      }
      // canonical double representation
      object.value = value.toExponential(15).replace(/(\d)0*e\+?/, '$1E');
      object.datatype = datatype || XSD_DOUBLE;
    } else if(_isNumber(value)) {
      object.value = value.toFixed(0);
      object.datatype = datatype || XSD_INTEGER;
    } else if('@language' in item) {
      object.value = value;
      object.datatype = datatype || RDF_LANGSTRING;
      object.language = item['@language'];
    } else {
      object.value = value;
      object.datatype = datatype || XSD_STRING;
    }
  } else {
    // convert string/node object to RDF
    var id = _isObject(item) ? item['@id'] : item;
    object.type = (id.indexOf('_:') === 0) ? 'blank node' : 'IRI';
    object.value = id;
  }

  // skip relative IRIs
  if(object.type === 'IRI' && !_isAbsoluteIri(object.value)) {
    return null;
  }

  return object;
}

/**
 * Converts an RDF triple object to a JSON-LD object.
 *
 * @param o the RDF triple object to convert.
 * @param useNativeTypes true to output native types, false not to.
 *
 * @return the JSON-LD object.
 */
function _RDFToObject(o, useNativeTypes) {
  // convert IRI/blank node object to JSON-LD
  if(o.type === 'IRI' || o.type === 'blank node') {
    return {'@id': o.value};
  }

  // convert literal to JSON-LD
  var rval = {'@value': o.value};

  // add language
  if(o.language) {
    rval['@language'] = o.language;
  } else {
    var type = o.datatype;
    if(!type) {
      type = XSD_STRING;
    }
    // use native types for certain xsd types
    if(useNativeTypes) {
      if(type === XSD_BOOLEAN) {
        if(rval['@value'] === 'true') {
          rval['@value'] = true;
        } else if(rval['@value'] === 'false') {
          rval['@value'] = false;
        }
      } else if(_isNumeric(rval['@value'])) {
        if(type === XSD_INTEGER) {
          var i = parseInt(rval['@value'], 10);
          if(i.toFixed(0) === rval['@value']) {
            rval['@value'] = i;
          }
        } else if(type === XSD_DOUBLE) {
          rval['@value'] = parseFloat(rval['@value']);
        }
      }
      // do not add native type
      if([XSD_BOOLEAN, XSD_INTEGER, XSD_DOUBLE, XSD_STRING]
        .indexOf(type) === -1) {
        rval['@type'] = type;
      }
    } else if(type !== XSD_STRING) {
      rval['@type'] = type;
    }
  }

  return rval;
}

/**
 * Compares two RDF triples for equality.
 *
 * @param t1 the first triple.
 * @param t2 the second triple.
 *
 * @return true if the triples are the same, false if not.
 */
function _compareRDFTriples(t1, t2) {
  var attrs = ['subject', 'predicate', 'object'];
  for(var i = 0; i < attrs.length; ++i) {
    var attr = attrs[i];
    if(t1[attr].type !== t2[attr].type || t1[attr].value !== t2[attr].value) {
      return false;
    }
  }
  if(t1.object.language !== t2.object.language) {
    return false;
  }
  if(t1.object.datatype !== t2.object.datatype) {
    return false;
  }
  return true;
}

/////////////////////////////// DEFINE URDNA2015 //////////////////////////////

var URDNA2015 = (function() {

var POSITIONS = {'subject': 's', 'object': 'o', 'name': 'g'};

var Normalize = function(options) {
  options = options || {};
  this.name = 'URDNA2015';
  this.options = options;
  this.blankNodeInfo = {};
  this.hashToBlankNodes = {};
  this.canonicalIssuer = new IdentifierIssuer('_:c14n');
  this.quads = [];
  this.schedule = {};
  if('maxCallStackDepth' in options) {
    this.schedule.MAX_DEPTH = options.maxCallStackDepth;
  } else {
    this.schedule.MAX_DEPTH = 500;
  }
  if('maxTotalCallStackDepth' in options) {
    this.schedule.MAX_TOTAL_DEPTH = options.maxCallStackDepth;
  } else {
    this.schedule.MAX_TOTAL_DEPTH = 0xFFFFFFFF;
  }
  this.schedule.depth = 0;
  this.schedule.totalDepth = 0;
  if('timeSlice' in options) {
    this.schedule.timeSlice = options.timeSlice;
  } else {
    // milliseconds
    this.schedule.timeSlice = 10;
  }
};

// do some work in a time slice, but in serial
Normalize.prototype.doWork = function(fn, callback) {
  var schedule = this.schedule;

  if(schedule.totalDepth >= schedule.MAX_TOTAL_DEPTH) {
    return callback(new Error(
      'Maximum total call stack depth exceeded; normalization aborting.'));
  }

  (function work() {
    if(schedule.depth === schedule.MAX_DEPTH) {
      // stack too deep, run on next tick
      schedule.depth = 0;
      schedule.running = false;
      return jsonld.nextTick(work);
    }

    // if not yet running, force run
    var now = new Date().getTime();
    if(!schedule.running) {
      schedule.start = new Date().getTime();
      schedule.deadline = schedule.start + schedule.timeSlice;
    }

    // TODO: should also include an estimate of expectedWorkTime
    if(now < schedule.deadline) {
      schedule.running = true;
      schedule.depth++;
      schedule.totalDepth++;
      return fn(function(err, result) {
        schedule.depth--;
        schedule.totalDepth--;
        callback(err, result);
      });
    }

    // not enough time left in this slice, run after letting browser
    // do some other things
    schedule.depth = 0;
    schedule.running = false;
    jsonld.setImmediate(work);
  })();
};

// asynchronously loop
Normalize.prototype.forEach = function(iterable, fn, callback) {
  var self = this;
  var iterator;
  var idx = 0;
  var length;
  if(_isArray(iterable)) {
    length = iterable.length;
    iterator = function() {
      if(idx === length) {
        return false;
      }
      iterator.value = iterable[idx++];
      iterator.key = idx;
      return true;
    };
  } else {
    var keys = Object.keys(iterable);
    length = keys.length;
    iterator = function() {
      if(idx === length) {
        return false;
      }
      iterator.key = keys[idx++];
      iterator.value = iterable[iterator.key];
      return true;
    };
  }

  (function iterate(err, result) {
    if(err) {
      return callback(err);
    }
    if(iterator()) {
      return self.doWork(function() {
        fn(iterator.value, iterator.key, iterate);
      });
    }
    callback();
  })();
};

// asynchronous waterfall
Normalize.prototype.waterfall = function(fns, callback) {
  var self = this;
  self.forEach(fns, function(fn, idx, callback) {
    self.doWork(fn, callback);
  }, callback);
};

// asynchronous while
Normalize.prototype.whilst = function(condition, fn, callback) {
  var self = this;
  (function loop(err) {
    if(err) {
      return callback(err);
    }
    if(!condition()) {
      return callback();
    }
    self.doWork(fn, loop);
  })();
};

// 4.4) Normalization Algorithm
Normalize.prototype.main = function(dataset, callback) {
  var self = this;
  self.schedule.start = new Date().getTime();
  var result;

  // handle invalid output format
  if(self.options.format) {
    if(self.options.format !== 'application/nquads') {
      return callback(new JsonLdError(
        'Unknown output format.',
        'jsonld.UnknownFormat', {format: self.options.format}));
    }
  }

  // 1) Create the normalization state.

  // Note: Optimize by generating non-normalized blank node map concurrently.
  var nonNormalized = {};

  self.waterfall([
    function(callback) {
      // 2) For every quad in input dataset:
      self.forEach(dataset, function(triples, graphName, callback) {
        if(graphName === '@default') {
          graphName = null;
        }
        self.forEach(triples, function(quad, idx, callback) {
          if(graphName !== null) {
            if(graphName.indexOf('_:') === 0) {
              quad.name = {type: 'blank node', value: graphName};
            } else {
              quad.name = {type: 'IRI', value: graphName};
            }
          }
          self.quads.push(quad);

          // 2.1) For each blank node that occurs in the quad, add a reference
          // to the quad using the blank node identifier in the blank node to
          // quads map, creating a new entry if necessary.
          self.forEachComponent(quad, function(component) {
            if(component.type !== 'blank node') {
              return;
            }
            var id = component.value;
            if(id in self.blankNodeInfo) {
              self.blankNodeInfo[id].quads.push(quad);
            } else {
              nonNormalized[id] = true;
              self.blankNodeInfo[id] = {quads: [quad]};
            }
          });
          callback();
        }, callback);
      }, callback);
    },
    function(callback) {
      // 3) Create a list of non-normalized blank node identifiers
      // non-normalized identifiers and populate it using the keys from the
      // blank node to quads map.
      // Note: We use a map here and it was generated during step 2.

      // 4) Initialize simple, a boolean flag, to true.
      var simple = true;

      // 5) While simple is true, issue canonical identifiers for blank nodes:
      self.whilst(function() { return simple; }, function(callback) {
        // 5.1) Set simple to false.
        simple = false;

        // 5.2) Clear hash to blank nodes map.
        self.hashToBlankNodes = {};

        self.waterfall([
          function(callback) {
            // 5.3) For each blank node identifier identifier in non-normalized
            // identifiers:
            self.forEach(nonNormalized, function(value, id, callback) {
              // 5.3.1) Create a hash, hash, according to the Hash First Degree
              // Quads algorithm.
              self.hashFirstDegreeQuads(id, function(err, hash) {
                if(err) {
                  return callback(err);
                }
                // 5.3.2) Add hash and identifier to hash to blank nodes map,
                // creating a new entry if necessary.
                if(hash in self.hashToBlankNodes) {
                  self.hashToBlankNodes[hash].push(id);
                } else {
                  self.hashToBlankNodes[hash] = [id];
                }
                callback();
              });
            }, callback);
          },
          function(callback) {
            // 5.4) For each hash to identifier list mapping in hash to blank
            // nodes map, lexicographically-sorted by hash:
            var hashes = Object.keys(self.hashToBlankNodes).sort();
            self.forEach(hashes, function(hash, i, callback) {
              // 5.4.1) If the length of identifier list is greater than 1,
              // continue to the next mapping.
              var idList = self.hashToBlankNodes[hash];
              if(idList.length > 1) {
                return callback();
              }

              // 5.4.2) Use the Issue Identifier algorithm, passing canonical
              // issuer and the single blank node identifier in identifier
              // list, identifier, to issue a canonical replacement identifier
              // for identifier.
              // TODO: consider changing `getId` to `issue`
              var id = idList[0];
              self.canonicalIssuer.getId(id);

              // 5.4.3) Remove identifier from non-normalized identifiers.
              delete nonNormalized[id];

              // 5.4.4) Remove hash from the hash to blank nodes map.
              delete self.hashToBlankNodes[hash];

              // 5.4.5) Set simple to true.
              simple = true;
              callback();
            }, callback);
          }
        ], callback);
      }, callback);
    },
    function(callback) {
      // 6) For each hash to identifier list mapping in hash to blank nodes map,
      // lexicographically-sorted by hash:
      var hashes = Object.keys(self.hashToBlankNodes).sort();
      self.forEach(hashes, function(hash, idx, callback) {
        // 6.1) Create hash path list where each item will be a result of
        // running the Hash N-Degree Quads algorithm.
        var hashPathList = [];

        // 6.2) For each blank node identifier identifier in identifier list:
        var idList = self.hashToBlankNodes[hash];
        self.waterfall([
          function(callback) {
            self.forEach(idList, function(id, idx, callback) {
              // 6.2.1) If a canonical identifier has already been issued for
              // identifier, continue to the next identifier.
              if(self.canonicalIssuer.hasId(id)) {
                return callback();
              }

              // 6.2.2) Create temporary issuer, an identifier issuer
              // initialized with the prefix _:b.
              var issuer = new IdentifierIssuer('_:b');

              // 6.2.3) Use the Issue Identifier algorithm, passing temporary
              // issuer and identifier, to issue a new temporary blank node
              // identifier for identifier.
              issuer.getId(id);

              // 6.2.4) Run the Hash N-Degree Quads algorithm, passing
              // temporary issuer, and append the result to the hash path list.
              self.hashNDegreeQuads(id, issuer, function(err, result) {
                if(err) {
                  return callback(err);
                }
                hashPathList.push(result);
                callback();
              });
            }, callback);
          },
          function(callback) {
            // 6.3) For each result in the hash path list,
            // lexicographically-sorted by the hash in result:
            hashPathList.sort(function(a, b) {
              return (a.hash < b.hash) ? -1 : ((a.hash > b.hash) ? 1 : 0);
            });
            self.forEach(hashPathList, function(result, idx, callback) {
              // 6.3.1) For each blank node identifier, existing identifier,
              // that was issued a temporary identifier by identifier issuer
              // in result, issue a canonical identifier, in the same order,
              // using the Issue Identifier algorithm, passing canonical
              // issuer and existing identifier.
              for(var existing in result.issuer.existing) {
                self.canonicalIssuer.getId(existing);
              }
              callback();
            }, callback);
          }
        ], callback);
      }, callback);
    }, function(callback) {
      /* Note: At this point all blank nodes in the set of RDF quads have been
      assigned canonical identifiers, which have been stored in the canonical
      issuer. Here each quad is updated by assigning each of its blank nodes
      its new identifier. */

      // 7) For each quad, quad, in input dataset:
      var normalized = [];
      self.waterfall([
        function(callback) {
          self.forEach(self.quads, function(quad, idx, callback) {
            // 7.1) Create a copy, quad copy, of quad and replace any existing
            // blank node identifiers using the canonical identifiers
            // previously issued by canonical issuer.
            // Note: We optimize away the copy here.
            self.forEachComponent(quad, function(component) {
              if(component.type === 'blank node' &&
                component.value.indexOf(self.canonicalIssuer.prefix) !== 0) {
                component.value = self.canonicalIssuer.getId(component.value);
              }
            });
            // 7.2) Add quad copy to the normalized dataset.
            normalized.push(_toNQuad(quad));
            callback();
          }, callback);
        },
        function(callback) {
          // sort normalized output
          normalized.sort();

          // 8) Return the normalized dataset.
          if(self.options.format === 'application/nquads') {
            result = normalized.join('');
            return callback();
          }

          result = _parseNQuads(normalized.join(''));
          callback();
        }
      ], callback);
    }
  ], function(err) {
    callback(err, result);
  });
};

// 4.6) Hash First Degree Quads
Normalize.prototype.hashFirstDegreeQuads = function(id, callback) {
  var self = this;

  // return cached hash
  var info = self.blankNodeInfo[id];
  if('hash' in info) {
    return callback(null, info.hash);
  }

  // 1) Initialize nquads to an empty list. It will be used to store quads in
  // N-Quads format.
  var nquads = [];

  // 2) Get the list of quads quads associated with the reference blank node
  // identifier in the blank node to quads map.
  var quads = info.quads;

  // 3) For each quad quad in quads:
  self.forEach(quads, function(quad, idx, callback) {
    // 3.1) Serialize the quad in N-Quads format with the following special
    // rule:

    // 3.1.1) If any component in quad is an blank node, then serialize it
    // using a special identifier as follows:
    var copy = {predicate: quad.predicate};
    self.forEachComponent(quad, function(component, key) {
      // 3.1.2) If the blank node's existing blank node identifier matches the
      // reference blank node identifier then use the blank node identifier _:a,
      // otherwise, use the blank node identifier _:z.
      copy[key] = self.modifyFirstDegreeComponent(id, component, key);
    });
    nquads.push(_toNQuad(copy));
    callback();
  }, function(err) {
    if(err) {
      return callback(err);
    }
    // 4) Sort nquads in lexicographical order.
    nquads.sort();

    // 5) Return the hash that results from passing the sorted, joined nquads
    // through the hash algorithm.
    info.hash = NormalizeHash.hashNQuads(self.name, nquads);
    callback(null, info.hash);
  });
};

// helper for modifying component during Hash First Degree Quads
Normalize.prototype.modifyFirstDegreeComponent = function(id, component) {
  if(component.type !== 'blank node') {
    return component;
  }
  component = _clone(component);
  component.value = (component.value === id ? '_:a' : '_:z');
  return component;
};

// 4.7) Hash Related Blank Node
Normalize.prototype.hashRelatedBlankNode = function(
  related, quad, issuer, position, callback) {
  var self = this;

  // 1) Set the identifier to use for related, preferring first the canonical
  // identifier for related if issued, second the identifier issued by issuer
  // if issued, and last, if necessary, the result of the Hash First Degree
  // Quads algorithm, passing related.
  var id;
  self.waterfall([
    function(callback) {
      if(self.canonicalIssuer.hasId(related)) {
        id = self.canonicalIssuer.getId(related);
        return callback();
      }
      if(issuer.hasId(related)) {
        id = issuer.getId(related);
        return callback();
      }
      self.hashFirstDegreeQuads(related, function(err, hash) {
        if(err) {
          return callback(err);
        }
        id = hash;
        callback();
      });
    }
  ], function(err) {
    if(err) {
      return callback(err);
    }

    // 2) Initialize a string input to the value of position.
    // Note: We use a hash object instead.
    var md = new NormalizeHash(self.name);
    md.update(position);

    // 3) If position is not g, append <, the value of the predicate in quad,
    // and > to input.
    if(position !== 'g') {
      md.update(self.getRelatedPredicate(quad));
    }

    // 4) Append identifier to input.
    md.update(id);

    // 5) Return the hash that results from passing input through the hash
    // algorithm.
    return callback(null, md.digest());
  });
};

// helper for getting a related predicate
Normalize.prototype.getRelatedPredicate = function(quad) {
  return '<' + quad.predicate.value + '>';
};

// 4.8) Hash N-Degree Quads
Normalize.prototype.hashNDegreeQuads = function(id, issuer, callback) {
  var self = this;

  // 1) Create a hash to related blank nodes map for storing hashes that
  // identify related blank nodes.
  // Note: 2) and 3) handled within `createHashToRelated`
  var hashToRelated;
  var md = new NormalizeHash(self.name);
  self.waterfall([
    function(callback) {
      self.createHashToRelated(id, issuer, function(err, result) {
        if(err) {
          return callback(err);
        }
        hashToRelated = result;
        callback();
      });
    },
    function(callback) {
      // 4) Create an empty string, data to hash.
      // Note: We created a hash object `md` above instead.

      // 5) For each related hash to blank node list mapping in hash to related
      // blank nodes map, sorted lexicographically by related hash:
      var hashes = Object.keys(hashToRelated).sort();
      self.forEach(hashes, function(hash, idx, callback) {
        // 5.1) Append the related hash to the data to hash.
        md.update(hash);

        // 5.2) Create a string chosen path.
        var chosenPath = '';

        // 5.3) Create an unset chosen issuer variable.
        var chosenIssuer;

        // 5.4) For each permutation of blank node list:
        var permutator = new Permutator(hashToRelated[hash]);
        self.whilst(
          function() { return permutator.hasNext(); },
          function(nextPermutation) {
          var permutation = permutator.next();

          // 5.4.1) Create a copy of issuer, issuer copy.
          var issuerCopy = issuer.clone();

          // 5.4.2) Create a string path.
          var path = '';

          // 5.4.3) Create a recursion list, to store blank node identifiers
          // that must be recursively processed by this algorithm.
          var recursionList = [];

          self.waterfall([
            function(callback) {
              // 5.4.4) For each related in permutation:
              self.forEach(permutation, function(related, idx, callback) {
                // 5.4.4.1) If a canonical identifier has been issued for
                // related, append it to path.
                if(self.canonicalIssuer.hasId(related)) {
                  path += self.canonicalIssuer.getId(related);
                } else {
                  // 5.4.4.2) Otherwise:
                  // 5.4.4.2.1) If issuer copy has not issued an identifier for
                  // related, append related to recursion list.
                  if(!issuerCopy.hasId(related)) {
                    recursionList.push(related);
                  }
                  // 5.4.4.2.2) Use the Issue Identifier algorithm, passing
                  // issuer copy and related and append the result to path.
                  path += issuerCopy.getId(related);
                }

                // 5.4.4.3) If chosen path is not empty and the length of path
                // is greater than or equal to the length of chosen path and
                // path is lexicographically greater than chosen path, then
                // skip to the next permutation.
                if(chosenPath.length !== 0 &&
                  path.length >= chosenPath.length && path > chosenPath) {
                  // FIXME: may cause inaccurate total depth calculation
                  return nextPermutation();
                }
                callback();
              }, callback);
            },
            function(callback) {
              // 5.4.5) For each related in recursion list:
              self.forEach(recursionList, function(related, idx, callback) {
                // 5.4.5.1) Set result to the result of recursively executing
                // the Hash N-Degree Quads algorithm, passing related for
                // identifier and issuer copy for path identifier issuer.
                self.hashNDegreeQuads(
                  related, issuerCopy, function(err, result) {
                  if(err) {
                    return callback(err);
                  }

                  // 5.4.5.2) Use the Issue Identifier algorithm, passing issuer
                  // copy and related and append the result to path.
                  path += issuerCopy.getId(related);

                  // 5.4.5.3) Append <, the hash in result, and > to path.
                  path += '<' + result.hash + '>';

                  // 5.4.5.4) Set issuer copy to the identifier issuer in
                  // result.
                  issuerCopy = result.issuer;

                  // 5.4.5.5) If chosen path is not empty and the length of path
                  // is greater than or equal to the length of chosen path and
                  // path is lexicographically greater than chosen path, then
                  // skip to the next permutation.
                  if(chosenPath.length !== 0 &&
                    path.length >= chosenPath.length && path > chosenPath) {
                    // FIXME: may cause inaccurate total depth calculation
                    return nextPermutation();
                  }
                  callback();
                });
              }, callback);
            },
            function(callback) {
              // 5.4.6) If chosen path is empty or path is lexicographically
              // less than chosen path, set chosen path to path and chosen
              // issuer to issuer copy.
              if(chosenPath.length === 0 || path < chosenPath) {
                chosenPath = path;
                chosenIssuer = issuerCopy;
              }
              callback();
            }
          ], nextPermutation);
        }, function(err) {
          if(err) {
            return callback(err);
          }

          // 5.5) Append chosen path to data to hash.
          md.update(chosenPath);

          // 5.6) Replace issuer, by reference, with chosen issuer.
          issuer = chosenIssuer;
          callback();
        });
      }, callback);
    }
  ], function(err) {
    // 6) Return issuer and the hash that results from passing data to hash
    // through the hash algorithm.
    callback(err, {hash: md.digest(), issuer: issuer});
  });
};

// helper for creating hash to related blank nodes map
Normalize.prototype.createHashToRelated = function(id, issuer, callback) {
  var self = this;

  // 1) Create a hash to related blank nodes map for storing hashes that
  // identify related blank nodes.
  var hashToRelated = {};

  // 2) Get a reference, quads, to the list of quads in the blank node to
  // quads map for the key identifier.
  var quads = self.blankNodeInfo[id].quads;

  // 3) For each quad in quads:
  self.forEach(quads, function(quad, idx, callback) {
    // 3.1) For each component in quad, if component is the subject, object,
    // and graph name and it is a blank node that is not identified by
    // identifier:
    self.forEach(quad, function(component, key, callback) {
      if(key === 'predicate' ||
        !(component.type === 'blank node' && component.value !== id)) {
        return callback();
      }
      // 3.1.1) Set hash to the result of the Hash Related Blank Node
      // algorithm, passing the blank node identifier for component as
      // related, quad, path identifier issuer as issuer, and position as
      // either s, o, or g based on whether component is a subject, object,
      // graph name, respectively.
      var related = component.value;
      var position = POSITIONS[key];
      self.hashRelatedBlankNode(
        related, quad, issuer, position, function(err, hash) {
        if(err) {
          return callback(err);
        }
        // 3.1.2) Add a mapping of hash to the blank node identifier for
        // component to hash to related blank nodes map, adding an entry as
        // necessary.
        if(hash in hashToRelated) {
          hashToRelated[hash].push(related);
        } else {
          hashToRelated[hash] = [related];
        }
        callback();
      });
    }, callback);
  }, function(err) {
    callback(err, hashToRelated);
  });
};

// helper that iterates over quad components (skips predicate)
Normalize.prototype.forEachComponent = function(quad, op) {
  for(var key in quad) {
    // skip `predicate`
    if(key === 'predicate') {
      continue;
    }
    op(quad[key], key, quad);
  }
};

return Normalize;

})(); // end of define URDNA2015

/////////////////////////////// DEFINE URGNA2012 //////////////////////////////

var URGNA2012 = (function() {

var Normalize = function(options) {
  URDNA2015.call(this, options);
  this.name = 'URGNA2012';
};
Normalize.prototype = new URDNA2015();

// helper for modifying component during Hash First Degree Quads
Normalize.prototype.modifyFirstDegreeComponent = function(id, component, key) {
  if(component.type !== 'blank node') {
    return component;
  }
  component = _clone(component);
  if(key === 'name') {
    component.value = '_:g';
  } else {
    component.value = (component.value === id ? '_:a' : '_:z');
  }
  return component;
};

// helper for getting a related predicate
Normalize.prototype.getRelatedPredicate = function(quad) {
  return quad.predicate.value;
};

// helper for creating hash to related blank nodes map
Normalize.prototype.createHashToRelated = function(id, issuer, callback) {
  var self = this;

  // 1) Create a hash to related blank nodes map for storing hashes that
  // identify related blank nodes.
  var hashToRelated = {};

  // 2) Get a reference, quads, to the list of quads in the blank node to
  // quads map for the key identifier.
  var quads = self.blankNodeInfo[id].quads;

  // 3) For each quad in quads:
  self.forEach(quads, function(quad, idx, callback) {
    // 3.1) If the quad's subject is a blank node that does not match
    // identifier, set hash to the result of the Hash Related Blank Node
    // algorithm, passing the blank node identifier for subject as related,
    // quad, path identifier issuer as issuer, and p as position.
    var position;
    var related;
    if(quad.subject.type === 'blank node' && quad.subject.value !== id) {
      related = quad.subject.value;
      position = 'p';
    } else if(quad.object.type === 'blank node' && quad.object.value !== id) {
      // 3.2) Otherwise, if quad's object is a blank node that does not match
      // identifier, to the result of the Hash Related Blank Node algorithm,
      // passing the blank node identifier for object as related, quad, path
      // identifier issuer as issuer, and r as position.
      related = quad.object.value;
      position = 'r';
    } else {
      // 3.3) Otherwise, continue to the next quad.
      return callback();
    }
    // 3.4) Add a mapping of hash to the blank node identifier for the
    // component that matched (subject or object) to hash to related blank
    // nodes map, adding an entry as necessary.
    self.hashRelatedBlankNode(
      related, quad, issuer, position, function(err, hash) {
      if(hash in hashToRelated) {
        hashToRelated[hash].push(related);
      } else {
        hashToRelated[hash] = [related];
      }
      callback();
    });
  }, function(err) {
    callback(err, hashToRelated);
  });
};

return Normalize;

})(); // end of define URGNA2012

/**
 * Recursively flattens the subjects in the given JSON-LD expanded input
 * into a node map.
 *
 * @param input the JSON-LD expanded input.
 * @param graphs a map of graph name to subject map.
 * @param graph the name of the current graph.
 * @param issuer the blank node identifier issuer.
 * @param name the name assigned to the current input if it is a bnode.
 * @param list the list to append to, null for none.
 */
function _createNodeMap(input, graphs, graph, issuer, name, list) {
  // recurse through array
  if(_isArray(input)) {
    for(var i = 0; i < input.length; ++i) {
      _createNodeMap(input[i], graphs, graph, issuer, undefined, list);
    }
    return;
  }

  // add non-object to list
  if(!_isObject(input)) {
    if(list) {
      list.push(input);
    }
    return;
  }

  // add values to list
  if(_isValue(input)) {
    if('@type' in input) {
      var type = input['@type'];
      // rename @type blank node
      if(type.indexOf('_:') === 0) {
        input['@type'] = type = issuer.getId(type);
      }
    }
    if(list) {
      list.push(input);
    }
    return;
  }

  // Note: At this point, input must be a subject.

  // spec requires @type to be named first, so assign names early
  if('@type' in input) {
    var types = input['@type'];
    for(var i = 0; i < types.length; ++i) {
      var type = types[i];
      if(type.indexOf('_:') === 0) {
        issuer.getId(type);
      }
    }
  }

  // get name for subject
  if(_isUndefined(name)) {
    name = _isBlankNode(input) ? issuer.getId(input['@id']) : input['@id'];
  }

  // add subject reference to list
  if(list) {
    list.push({'@id': name});
  }

  // create new subject or merge into existing one
  var subjects = graphs[graph];
  var subject = subjects[name] = subjects[name] || {};
  subject['@id'] = name;
  var properties = Object.keys(input).sort();
  for(var pi = 0; pi < properties.length; ++pi) {
    var property = properties[pi];

    // skip @id
    if(property === '@id') {
      continue;
    }

    // handle reverse properties
    if(property === '@reverse') {
      var referencedNode = {'@id': name};
      var reverseMap = input['@reverse'];
      for(var reverseProperty in reverseMap) {
        var items = reverseMap[reverseProperty];
        for(var ii = 0; ii < items.length; ++ii) {
          var item = items[ii];
          var itemName = item['@id'];
          if(_isBlankNode(item)) {
            itemName = issuer.getId(itemName);
          }
          _createNodeMap(item, graphs, graph, issuer, itemName);
          jsonld.addValue(
            subjects[itemName], reverseProperty, referencedNode,
            {propertyIsArray: true, allowDuplicate: false});
        }
      }
      continue;
    }

    // recurse into graph
    if(property === '@graph') {
      // add graph subjects map entry
      if(!(name in graphs)) {
        graphs[name] = {};
      }
      var g = (graph === '@merged') ? graph : name;
      _createNodeMap(input[property], graphs, g, issuer);
      continue;
    }

    // copy non-@type keywords
    if(property !== '@type' && _isKeyword(property)) {
      if(property === '@index' && property in subject &&
        (input[property] !== subject[property] ||
        input[property]['@id'] !== subject[property]['@id'])) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; conflicting @index property detected.',
          'jsonld.SyntaxError',
          {code: 'conflicting indexes', subject: subject});
      }
      subject[property] = input[property];
      continue;
    }

    // iterate over objects
    var objects = input[property];

    // if property is a bnode, assign it a new id
    if(property.indexOf('_:') === 0) {
      property = issuer.getId(property);
    }

    // ensure property is added for empty arrays
    if(objects.length === 0) {
      jsonld.addValue(subject, property, [], {propertyIsArray: true});
      continue;
    }
    for(var oi = 0; oi < objects.length; ++oi) {
      var o = objects[oi];

      if(property === '@type') {
        // rename @type blank nodes
        o = (o.indexOf('_:') === 0) ? issuer.getId(o) : o;
      }

      // handle embedded subject or subject reference
      if(_isSubject(o) || _isSubjectReference(o)) {
        // relabel blank node @id
        var id = _isBlankNode(o) ? issuer.getId(o['@id']) : o['@id'];

        // add reference and recurse
        jsonld.addValue(
          subject, property, {'@id': id},
          {propertyIsArray: true, allowDuplicate: false});
        _createNodeMap(o, graphs, graph, issuer, id);
      } else if(_isList(o)) {
        // handle @list
        var _list = [];
        _createNodeMap(o['@list'], graphs, graph, issuer, name, _list);
        o = {'@list': _list};
        jsonld.addValue(
          subject, property, o,
          {propertyIsArray: true, allowDuplicate: false});
      } else {
        // handle @value
        _createNodeMap(o, graphs, graph, issuer, name);
        jsonld.addValue(
          subject, property, o, {propertyIsArray: true, allowDuplicate: false});
      }
    }
  }
}

function _mergeNodeMaps(graphs) {
  // add all non-default graphs to default graph
  var defaultGraph = graphs['@default'];
  var graphNames = Object.keys(graphs).sort();
  for(var i = 0; i < graphNames.length; ++i) {
    var graphName = graphNames[i];
    if(graphName === '@default') {
      continue;
    }
    var nodeMap = graphs[graphName];
    var subject = defaultGraph[graphName];
    if(!subject) {
      defaultGraph[graphName] = subject = {
        '@id': graphName,
        '@graph': []
      };
    } else if(!('@graph' in subject)) {
      subject['@graph'] = [];
    }
    var graph = subject['@graph'];
    var ids = Object.keys(nodeMap).sort();
    for(var ii = 0; ii < ids.length; ++ii) {
      var node = nodeMap[ids[ii]];
      // only add full subjects
      if(!_isSubjectReference(node)) {
        graph.push(node);
      }
    }
  }
  return defaultGraph;
}

/**
 * Frames subjects according to the given frame.
 *
 * @param state the current framing state.
 * @param subjects the subjects to filter.
 * @param frame the frame.
 * @param parent the parent subject or top-level array.
 * @param property the parent property, initialized to null.
 */
function _frame(state, subjects, frame, parent, property) {
  // validate the frame
  _validateFrame(frame);
  frame = frame[0];

  // get flags for current frame
  var options = state.options;
  var flags = {
    embed: _getFrameFlag(frame, options, 'embed'),
    explicit: _getFrameFlag(frame, options, 'explicit'),
    requireAll: _getFrameFlag(frame, options, 'requireAll')
  };

  // filter out subjects that match the frame
  var matches = _filterSubjects(state, subjects, frame, flags);

  // add matches to output
  var ids = Object.keys(matches).sort();
  for(var idx = 0; idx < ids.length; ++idx) {
    var id = ids[idx];
    var subject = matches[id];

    if(flags.embed === '@link' && id in state.link) {
      // TODO: may want to also match an existing linked subject against
      // the current frame ... so different frames could produce different
      // subjects that are only shared in-memory when the frames are the same

      // add existing linked subject
      _addFrameOutput(parent, property, state.link[id]);
      continue;
    }

    /* Note: In order to treat each top-level match as a compartmentalized
    result, clear the unique embedded subjects map when the property is null,
    which only occurs at the top-level. */
    if(property === null) {
      state.uniqueEmbeds = {};
    }

    // start output for subject
    var output = {};
    output['@id'] = id;
    state.link[id] = output;

    // if embed is @never or if a circular reference would be created by an
    // embed, the subject cannot be embedded, just add the reference;
    // note that a circular reference won't occur when the embed flag is
    // `@link` as the above check will short-circuit before reaching this point
    if(flags.embed === '@never' ||
      _createsCircularReference(subject, state.subjectStack)) {
      _addFrameOutput(parent, property, output);
      continue;
    }

    // if only the last match should be embedded
    if(flags.embed === '@last') {
      // remove any existing embed
      if(id in state.uniqueEmbeds) {
        _removeEmbed(state, id);
      }
      state.uniqueEmbeds[id] = {parent: parent, property: property};
    }

    // push matching subject onto stack to enable circular embed checks
    state.subjectStack.push(subject);

    // iterate over subject properties
    var props = Object.keys(subject).sort();
    for(var i = 0; i < props.length; i++) {
      var prop = props[i];

      // copy keywords to output
      if(_isKeyword(prop)) {
        output[prop] = _clone(subject[prop]);
        continue;
      }

      // explicit is on and property isn't in the frame, skip processing
      if(flags.explicit && !(prop in frame)) {
        continue;
      }

      // add objects
      var objects = subject[prop];
      for(var oi = 0; oi < objects.length; ++oi) {
        var o = objects[oi];

        // recurse into list
        if(_isList(o)) {
          // add empty list
          var list = {'@list': []};
          _addFrameOutput(output, prop, list);

          // add list objects
          var src = o['@list'];
          for(var n in src) {
            o = src[n];
            if(_isSubjectReference(o)) {
              var subframe = (prop in frame ?
                frame[prop][0]['@list'] : _createImplicitFrame(flags));
              // recurse into subject reference
              _frame(state, [o['@id']], subframe, list, '@list');
            } else {
              // include other values automatically
              _addFrameOutput(list, '@list', _clone(o));
            }
          }
          continue;
        }

        if(_isSubjectReference(o)) {
          // recurse into subject reference
          var subframe = (prop in frame ?
            frame[prop] : _createImplicitFrame(flags));
          _frame(state, [o['@id']], subframe, output, prop);
        } else {
          // include other values automatically
          _addFrameOutput(output, prop, _clone(o));
        }
      }
    }

    // handle defaults
    var props = Object.keys(frame).sort();
    for(var i = 0; i < props.length; ++i) {
      var prop = props[i];

      // skip keywords
      if(_isKeyword(prop)) {
        continue;
      }

      // if omit default is off, then include default values for properties
      // that appear in the next frame but are not in the matching subject
      var next = frame[prop][0];
      var omitDefaultOn = _getFrameFlag(next, options, 'omitDefault');
      if(!omitDefaultOn && !(prop in output)) {
        var preserve = '@null';
        if('@default' in next) {
          preserve = _clone(next['@default']);
        }
        if(!_isArray(preserve)) {
          preserve = [preserve];
        }
        output[prop] = [{'@preserve': preserve}];
      }
    }

    // add output to parent
    _addFrameOutput(parent, property, output);

    // pop matching subject from circular ref-checking stack
    state.subjectStack.pop();
  }
}

/**
 * Creates an implicit frame when recursing through subject matches. If
 * a frame doesn't have an explicit frame for a particular property, then
 * a wildcard child frame will be created that uses the same flags that the
 * parent frame used.
 *
 * @param flags the current framing flags.
 *
 * @return the implicit frame.
 */
function _createImplicitFrame(flags) {
  var frame = {};
  for(var key in flags) {
    if(flags[key] !== undefined) {
      frame['@' + key] = [flags[key]];
    }
  }
  return [frame];
}

/**
 * Checks the current subject stack to see if embedding the given subject
 * would cause a circular reference.
 *
 * @param subjectToEmbed the subject to embed.
 * @param subjectStack the current stack of subjects.
 *
 * @return true if a circular reference would be created, false if not.
 */
function _createsCircularReference(subjectToEmbed, subjectStack) {
  for(var i = subjectStack.length - 1; i >= 0; --i) {
    if(subjectStack[i]['@id'] === subjectToEmbed['@id']) {
      return true;
    }
  }
  return false;
}

/**
 * Gets the frame flag value for the given flag name.
 *
 * @param frame the frame.
 * @param options the framing options.
 * @param name the flag name.
 *
 * @return the flag value.
 */
function _getFrameFlag(frame, options, name) {
  var flag = '@' + name;
  var rval = (flag in frame ? frame[flag][0] : options[name]);
  if(name === 'embed') {
    // default is "@last"
    // backwards-compatibility support for "embed" maps:
    // true => "@last"
    // false => "@never"
    if(rval === true) {
      rval = '@last';
    } else if(rval === false) {
      rval = '@never';
    } else if(rval !== '@always' && rval !== '@never' && rval !== '@link') {
      rval = '@last';
    }
  }
  return rval;
}

/**
 * Validates a JSON-LD frame, throwing an exception if the frame is invalid.
 *
 * @param frame the frame to validate.
 */
function _validateFrame(frame) {
  if(!_isArray(frame) || frame.length !== 1 || !_isObject(frame[0])) {
    throw new JsonLdError(
      'Invalid JSON-LD syntax; a JSON-LD frame must be a single object.',
      'jsonld.SyntaxError', {frame: frame});
  }
}

/**
 * Returns a map of all of the subjects that match a parsed frame.
 *
 * @param state the current framing state.
 * @param subjects the set of subjects to filter.
 * @param frame the parsed frame.
 * @param flags the frame flags.
 *
 * @return all of the matched subjects.
 */
function _filterSubjects(state, subjects, frame, flags) {
  // filter subjects in @id order
  var rval = {};
  for(var i = 0; i < subjects.length; ++i) {
    var id = subjects[i];
    var subject = state.subjects[id];
    if(_filterSubject(subject, frame, flags)) {
      rval[id] = subject;
    }
  }
  return rval;
}

/**
 * Returns true if the given subject matches the given frame.
 *
 * @param subject the subject to check.
 * @param frame the frame to check.
 * @param flags the frame flags.
 *
 * @return true if the subject matches, false if not.
 */
function _filterSubject(subject, frame, flags) {
  // check @type (object value means 'any' type, fall through to ducktyping)
  if('@type' in frame &&
    !(frame['@type'].length === 1 && _isObject(frame['@type'][0]))) {
    var types = frame['@type'];
    for(var i = 0; i < types.length; ++i) {
      // any matching @type is a match
      if(jsonld.hasValue(subject, '@type', types[i])) {
        return true;
      }
    }
    return false;
  }

  // check ducktype
  var wildcard = true;
  var matchesSome = false;
  for(var key in frame) {
    if(_isKeyword(key)) {
      // skip non-@id and non-@type
      if(key !== '@id' && key !== '@type') {
        continue;
      }
      wildcard = false;

      // check @id for a specific @id value
      if(key === '@id' && _isString(frame[key])) {
        if(subject[key] !== frame[key]) {
          return false;
        }
        matchesSome = true;
        continue;
      }
    }

    wildcard = false;

    if(key in subject) {
      // frame[key] === [] means do not match if property is present
      if(_isArray(frame[key]) && frame[key].length === 0 &&
        subject[key] !== undefined) {
        return false;
      }
      matchesSome = true;
      continue;
    }

    // all properties must match to be a duck unless a @default is specified
    var hasDefault = (_isArray(frame[key]) && _isObject(frame[key][0]) &&
      '@default' in frame[key][0]);
    if(flags.requireAll && !hasDefault) {
      return false;
    }
  }

  // return true if wildcard or subject matches some properties
  return wildcard || matchesSome;
}

/**
 * Removes an existing embed.
 *
 * @param state the current framing state.
 * @param id the @id of the embed to remove.
 */
function _removeEmbed(state, id) {
  // get existing embed
  var embeds = state.uniqueEmbeds;
  var embed = embeds[id];
  var parent = embed.parent;
  var property = embed.property;

  // create reference to replace embed
  var subject = {'@id': id};

  // remove existing embed
  if(_isArray(parent)) {
    // replace subject with reference
    for(var i = 0; i < parent.length; ++i) {
      if(jsonld.compareValues(parent[i], subject)) {
        parent[i] = subject;
        break;
      }
    }
  } else {
    // replace subject with reference
    var useArray = _isArray(parent[property]);
    jsonld.removeValue(parent, property, subject, {propertyIsArray: useArray});
    jsonld.addValue(parent, property, subject, {propertyIsArray: useArray});
  }

  // recursively remove dependent dangling embeds
  var removeDependents = function(id) {
    // get embed keys as a separate array to enable deleting keys in map
    var ids = Object.keys(embeds);
    for(var i = 0; i < ids.length; ++i) {
      var next = ids[i];
      if(next in embeds && _isObject(embeds[next].parent) &&
        embeds[next].parent['@id'] === id) {
        delete embeds[next];
        removeDependents(next);
      }
    }
  };
  removeDependents(id);
}

/**
 * Adds framing output to the given parent.
 *
 * @param parent the parent to add to.
 * @param property the parent property.
 * @param output the output to add.
 */
function _addFrameOutput(parent, property, output) {
  if(_isObject(parent)) {
    jsonld.addValue(parent, property, output, {propertyIsArray: true});
  } else {
    parent.push(output);
  }
}

/**
 * Removes the @preserve keywords as the last step of the framing algorithm.
 *
 * @param ctx the active context used to compact the input.
 * @param input the framed, compacted output.
 * @param options the compaction options used.
 *
 * @return the resulting output.
 */
function _removePreserve(ctx, input, options) {
  // recurse through arrays
  if(_isArray(input)) {
    var output = [];
    for(var i = 0; i < input.length; ++i) {
      var result = _removePreserve(ctx, input[i], options);
      // drop nulls from arrays
      if(result !== null) {
        output.push(result);
      }
    }
    input = output;
  } else if(_isObject(input)) {
    // remove @preserve
    if('@preserve' in input) {
      if(input['@preserve'] === '@null') {
        return null;
      }
      return input['@preserve'];
    }

    // skip @values
    if(_isValue(input)) {
      return input;
    }

    // recurse through @lists
    if(_isList(input)) {
      input['@list'] = _removePreserve(ctx, input['@list'], options);
      return input;
    }

    // handle in-memory linked nodes
    var idAlias = _compactIri(ctx, '@id');
    if(idAlias in input) {
      var id = input[idAlias];
      if(id in options.link) {
        var idx = options.link[id].indexOf(input);
        if(idx === -1) {
          // prevent circular visitation
          options.link[id].push(input);
        } else {
          // already visited
          return options.link[id][idx];
        }
      } else {
        // prevent circular visitation
        options.link[id] = [input];
      }
    }

    // recurse through properties
    for(var prop in input) {
      var result = _removePreserve(ctx, input[prop], options);
      var container = jsonld.getContextValue(ctx, prop, '@container');
      if(options.compactArrays && _isArray(result) && result.length === 1 &&
        container === null) {
        result = result[0];
      }
      input[prop] = result;
    }
  }
  return input;
}

/**
 * Compares two strings first based on length and then lexicographically.
 *
 * @param a the first string.
 * @param b the second string.
 *
 * @return -1 if a < b, 1 if a > b, 0 if a == b.
 */
function _compareShortestLeast(a, b) {
  if(a.length < b.length) {
    return -1;
  }
  if(b.length < a.length) {
    return 1;
  }
  if(a === b) {
    return 0;
  }
  return (a < b) ? -1 : 1;
}

/**
 * Picks the preferred compaction term from the given inverse context entry.
 *
 * @param activeCtx the active context.
 * @param iri the IRI to pick the term for.
 * @param value the value to pick the term for.
 * @param containers the preferred containers.
 * @param typeOrLanguage either '@type' or '@language'.
 * @param typeOrLanguageValue the preferred value for '@type' or '@language'.
 *
 * @return the preferred term.
 */
function _selectTerm(
  activeCtx, iri, value, containers, typeOrLanguage, typeOrLanguageValue) {
  if(typeOrLanguageValue === null) {
    typeOrLanguageValue = '@null';
  }

  // preferences for the value of @type or @language
  var prefs = [];

  // determine prefs for @id based on whether or not value compacts to a term
  if((typeOrLanguageValue === '@id' || typeOrLanguageValue === '@reverse') &&
    _isSubjectReference(value)) {
    // prefer @reverse first
    if(typeOrLanguageValue === '@reverse') {
      prefs.push('@reverse');
    }
    // try to compact value to a term
    var term = _compactIri(activeCtx, value['@id'], null, {vocab: true});
    if(term in activeCtx.mappings &&
      activeCtx.mappings[term] &&
      activeCtx.mappings[term]['@id'] === value['@id']) {
      // prefer @vocab
      prefs.push.apply(prefs, ['@vocab', '@id']);
    } else {
      // prefer @id
      prefs.push.apply(prefs, ['@id', '@vocab']);
    }
  } else {
    prefs.push(typeOrLanguageValue);
  }
  prefs.push('@none');

  var containerMap = activeCtx.inverse[iri];
  for(var ci = 0; ci < containers.length; ++ci) {
    // if container not available in the map, continue
    var container = containers[ci];
    if(!(container in containerMap)) {
      continue;
    }

    var typeOrLanguageValueMap = containerMap[container][typeOrLanguage];
    for(var pi = 0; pi < prefs.length; ++pi) {
      // if type/language option not available in the map, continue
      var pref = prefs[pi];
      if(!(pref in typeOrLanguageValueMap)) {
        continue;
      }

      // select term
      return typeOrLanguageValueMap[pref];
    }
  }

  return null;
}

/**
 * Compacts an IRI or keyword into a term or prefix if it can be. If the
 * IRI has an associated value it may be passed.
 *
 * @param activeCtx the active context to use.
 * @param iri the IRI to compact.
 * @param value the value to check or null.
 * @param relativeTo options for how to compact IRIs:
 *          vocab: true to split after @vocab, false not to.
 * @param reverse true if a reverse property is being compacted, false if not.
 *
 * @return the compacted term, prefix, keyword alias, or the original IRI.
 */
function _compactIri(activeCtx, iri, value, relativeTo, reverse) {
  // can't compact null
  if(iri === null) {
    return iri;
  }

  // default value and parent to null
  if(_isUndefined(value)) {
    value = null;
  }
  // default reverse to false
  if(_isUndefined(reverse)) {
    reverse = false;
  }
  relativeTo = relativeTo || {};

  var inverseCtx = activeCtx.getInverse();

  // if term is a keyword, it can only be compacted to a simple alias
  if(_isKeyword(iri)) {
    if(iri in inverseCtx) {
      return inverseCtx[iri]['@none']['@type']['@none'];
    }
    return iri;
  }

  // use inverse context to pick a term if iri is relative to vocab
  if(relativeTo.vocab && iri in inverseCtx) {
    var defaultLanguage = activeCtx['@language'] || '@none';

    // prefer @index if available in value
    var containers = [];
    if(_isObject(value) && '@index' in value) {
      containers.push('@index');
    }

    // defaults for term selection based on type/language
    var typeOrLanguage = '@language';
    var typeOrLanguageValue = '@null';

    if(reverse) {
      typeOrLanguage = '@type';
      typeOrLanguageValue = '@reverse';
      containers.push('@set');
    } else if(_isList(value)) {
      // choose the most specific term that works for all elements in @list
      // only select @list containers if @index is NOT in value
      if(!('@index' in value)) {
        containers.push('@list');
      }
      var list = value['@list'];
      var commonLanguage = (list.length === 0) ? defaultLanguage : null;
      var commonType = null;
      for(var i = 0; i < list.length; ++i) {
        var item = list[i];
        var itemLanguage = '@none';
        var itemType = '@none';
        if(_isValue(item)) {
          if('@language' in item) {
            itemLanguage = item['@language'];
          } else if('@type' in item) {
            itemType = item['@type'];
          } else {
            // plain literal
            itemLanguage = '@null';
          }
        } else {
          itemType = '@id';
        }
        if(commonLanguage === null) {
          commonLanguage = itemLanguage;
        } else if(itemLanguage !== commonLanguage && _isValue(item)) {
          commonLanguage = '@none';
        }
        if(commonType === null) {
          commonType = itemType;
        } else if(itemType !== commonType) {
          commonType = '@none';
        }
        // there are different languages and types in the list, so choose
        // the most generic term, no need to keep iterating the list
        if(commonLanguage === '@none' && commonType === '@none') {
          break;
        }
      }
      commonLanguage = commonLanguage || '@none';
      commonType = commonType || '@none';
      if(commonType !== '@none') {
        typeOrLanguage = '@type';
        typeOrLanguageValue = commonType;
      } else {
        typeOrLanguageValue = commonLanguage;
      }
    } else {
      if(_isValue(value)) {
        if('@language' in value && !('@index' in value)) {
          containers.push('@language');
          typeOrLanguageValue = value['@language'];
        } else if('@type' in value) {
          typeOrLanguage = '@type';
          typeOrLanguageValue = value['@type'];
        }
      } else {
        typeOrLanguage = '@type';
        typeOrLanguageValue = '@id';
      }
      containers.push('@set');
    }

    // do term selection
    containers.push('@none');
    var term = _selectTerm(
      activeCtx, iri, value, containers, typeOrLanguage, typeOrLanguageValue);
    if(term !== null) {
      return term;
    }
  }

  // no term match, use @vocab if available
  if(relativeTo.vocab) {
    if('@vocab' in activeCtx) {
      // determine if vocab is a prefix of the iri
      var vocab = activeCtx['@vocab'];
      if(iri.indexOf(vocab) === 0 && iri !== vocab) {
        // use suffix as relative iri if it is not a term in the active context
        var suffix = iri.substr(vocab.length);
        if(!(suffix in activeCtx.mappings)) {
          return suffix;
        }
      }
    }
  }

  // no term or @vocab match, check for possible CURIEs
  var choice = null;
  var idx = 0;
  var partialMatches = [];
  var iriMap = activeCtx.fastCurieMap;
  // check for partial matches of against `iri`, which means look until
  // iri.length - 1, not full length
  var maxPartialLength = iri.length - 1;
  for(; idx < maxPartialLength && iri[idx] in iriMap; ++idx) {
    iriMap = iriMap[iri[idx]];
    if('' in iriMap) {
      partialMatches.push(iriMap[''][0]);
    }
  }
  // check partial matches in reverse order to prefer longest ones first
  for(var i = partialMatches.length - 1; i >= 0; --i) {
    var entry = partialMatches[i];
    var terms = entry.terms;
    for(var ti = 0; ti < terms.length; ++ti) {
      // a CURIE is usable if:
      // 1. it has no mapping, OR
      // 2. value is null, which means we're not compacting an @value, AND
      //   the mapping matches the IRI
      var curie = terms[ti] + ':' + iri.substr(entry.iri.length);
      var isUsableCurie = (!(curie in activeCtx.mappings) ||
        (value === null && activeCtx.mappings[curie]['@id'] === iri));

      // select curie if it is shorter or the same length but lexicographically
      // less than the current choice
      if(isUsableCurie && (choice === null ||
        _compareShortestLeast(curie, choice) < 0)) {
        choice = curie;
      }
    }
  }

  // return chosen curie
  if(choice !== null) {
    return choice;
  }

  // compact IRI relative to base
  if(!relativeTo.vocab) {
    return _removeBase(activeCtx['@base'], iri);
  }

  // return IRI as is
  return iri;
}

/**
 * Performs value compaction on an object with '@value' or '@id' as the only
 * property.
 *
 * @param activeCtx the active context.
 * @param activeProperty the active property that points to the value.
 * @param value the value to compact.
 *
 * @return the compaction result.
 */
function _compactValue(activeCtx, activeProperty, value) {
  // value is a @value
  if(_isValue(value)) {
    // get context rules
    var type = jsonld.getContextValue(activeCtx, activeProperty, '@type');
    var language = jsonld.getContextValue(
      activeCtx, activeProperty, '@language');
    var container = jsonld.getContextValue(
      activeCtx, activeProperty, '@container');

    // whether or not the value has an @index that must be preserved
    var preserveIndex = (('@index' in value) &&
      container !== '@index');

    // if there's no @index to preserve ...
    if(!preserveIndex) {
      // matching @type or @language specified in context, compact value
      if(value['@type'] === type || value['@language'] === language) {
        return value['@value'];
      }
    }

    // return just the value of @value if all are true:
    // 1. @value is the only key or @index isn't being preserved
    // 2. there is no default language or @value is not a string or
    //   the key has a mapping with a null @language
    var keyCount = Object.keys(value).length;
    var isValueOnlyKey = (keyCount === 1 ||
      (keyCount === 2 && ('@index' in value) && !preserveIndex));
    var hasDefaultLanguage = ('@language' in activeCtx);
    var isValueString = _isString(value['@value']);
    var hasNullMapping = (activeCtx.mappings[activeProperty] &&
      activeCtx.mappings[activeProperty]['@language'] === null);
    if(isValueOnlyKey &&
      (!hasDefaultLanguage || !isValueString || hasNullMapping)) {
      return value['@value'];
    }

    var rval = {};

    // preserve @index
    if(preserveIndex) {
      rval[_compactIri(activeCtx, '@index')] = value['@index'];
    }

    if('@type' in value) {
      // compact @type IRI
      rval[_compactIri(activeCtx, '@type')] = _compactIri(
        activeCtx, value['@type'], null, {vocab: true});
    } else if('@language' in value) {
      // alias @language
      rval[_compactIri(activeCtx, '@language')] = value['@language'];
    }

    // alias @value
    rval[_compactIri(activeCtx, '@value')] = value['@value'];

    return rval;
  }

  // value is a subject reference
  var expandedProperty = _expandIri(activeCtx, activeProperty, {vocab: true});
  var type = jsonld.getContextValue(activeCtx, activeProperty, '@type');
  var compacted = _compactIri(
    activeCtx, value['@id'], null, {vocab: type === '@vocab'});

  // compact to scalar
  if(type === '@id' || type === '@vocab' || expandedProperty === '@graph') {
    return compacted;
  }

  var rval = {};
  rval[_compactIri(activeCtx, '@id')] = compacted;
  return rval;
}

/**
 * Creates a term definition during context processing.
 *
 * @param activeCtx the current active context.
 * @param localCtx the local context being processed.
 * @param term the term in the local context to define the mapping for.
 * @param defined a map of defining/defined keys to detect cycles and prevent
 *          double definitions.
 */
function _createTermDefinition(activeCtx, localCtx, term, defined) {
  if(term in defined) {
    // term already defined
    if(defined[term]) {
      return;
    }
    // cycle detected
    throw new JsonLdError(
      'Cyclical context definition detected.',
      'jsonld.CyclicalContext',
      {code: 'cyclic IRI mapping', context: localCtx, term: term});
  }

  // now defining term
  defined[term] = false;

  if(_isKeyword(term)) {
    throw new JsonLdError(
      'Invalid JSON-LD syntax; keywords cannot be overridden.',
      'jsonld.SyntaxError',
      {code: 'keyword redefinition', context: localCtx, term: term});
  }

  if(term === '') {
    throw new JsonLdError(
      'Invalid JSON-LD syntax; a term cannot be an empty string.',
      'jsonld.SyntaxError',
      {code: 'invalid term definition', context: localCtx});
  }

  // remove old mapping
  if(activeCtx.mappings[term]) {
    delete activeCtx.mappings[term];
  }

  // get context term value
  var value = localCtx[term];

  // clear context entry
  if(value === null || (_isObject(value) && value['@id'] === null)) {
    activeCtx.mappings[term] = null;
    defined[term] = true;
    return;
  }

  // convert short-hand value to object w/@id
  if(_isString(value)) {
    value = {'@id': value};
  }

  if(!_isObject(value)) {
    throw new JsonLdError(
      'Invalid JSON-LD syntax; @context property values must be ' +
      'strings or objects.',
      'jsonld.SyntaxError',
      {code: 'invalid term definition', context: localCtx});
  }

  // create new mapping
  var mapping = activeCtx.mappings[term] = {};
  mapping.reverse = false;

  if('@reverse' in value) {
    if('@id' in value) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; a @reverse term definition must not ' +
        'contain @id.', 'jsonld.SyntaxError',
        {code: 'invalid reverse property', context: localCtx});
    }
    var reverse = value['@reverse'];
    if(!_isString(reverse)) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; a @context @reverse value must be a string.',
        'jsonld.SyntaxError', {code: 'invalid IRI mapping', context: localCtx});
    }

    // expand and add @id mapping
    var id = _expandIri(
      activeCtx, reverse, {vocab: true, base: false}, localCtx, defined);
    if(!_isAbsoluteIri(id)) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; a @context @reverse value must be an ' +
        'absolute IRI or a blank node identifier.',
        'jsonld.SyntaxError', {code: 'invalid IRI mapping', context: localCtx});
    }
    mapping['@id'] = id;
    mapping.reverse = true;
  } else if('@id' in value) {
    var id = value['@id'];
    if(!_isString(id)) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; a @context @id value must be an array ' +
        'of strings or a string.',
        'jsonld.SyntaxError', {code: 'invalid IRI mapping', context: localCtx});
    }
    if(id !== term) {
      // expand and add @id mapping
      id = _expandIri(
        activeCtx, id, {vocab: true, base: false}, localCtx, defined);
      if(!_isAbsoluteIri(id) && !_isKeyword(id)) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; a @context @id value must be an ' +
          'absolute IRI, a blank node identifier, or a keyword.',
          'jsonld.SyntaxError',
          {code: 'invalid IRI mapping', context: localCtx});
      }
      mapping['@id'] = id;
    }
  }

  // always compute whether term has a colon as an optimization for
  // _compactIri
  var colon = term.indexOf(':');
  mapping._termHasColon = (colon !== -1);

  if(!('@id' in mapping)) {
    // see if the term has a prefix
    if(mapping._termHasColon) {
      var prefix = term.substr(0, colon);
      if(prefix in localCtx) {
        // define parent prefix
        _createTermDefinition(activeCtx, localCtx, prefix, defined);
      }

      if(activeCtx.mappings[prefix]) {
        // set @id based on prefix parent
        var suffix = term.substr(colon + 1);
        mapping['@id'] = activeCtx.mappings[prefix]['@id'] + suffix;
      } else {
        // term is an absolute IRI
        mapping['@id'] = term;
      }
    } else {
      // non-IRIs *must* define @ids if @vocab is not available
      if(!('@vocab' in activeCtx)) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; @context terms must define an @id.',
          'jsonld.SyntaxError',
          {code: 'invalid IRI mapping', context: localCtx, term: term});
      }
      // prepend vocab to term
      mapping['@id'] = activeCtx['@vocab'] + term;
    }
  }

  // IRI mapping now defined
  defined[term] = true;

  if('@type' in value) {
    var type = value['@type'];
    if(!_isString(type)) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; an @context @type values must be a string.',
        'jsonld.SyntaxError',
        {code: 'invalid type mapping', context: localCtx});
    }

    if(type !== '@id' && type !== '@vocab') {
      // expand @type to full IRI
      type = _expandIri(
        activeCtx, type, {vocab: true, base: false}, localCtx, defined);
      if(!_isAbsoluteIri(type)) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; an @context @type value must be an ' +
          'absolute IRI.',
          'jsonld.SyntaxError',
          {code: 'invalid type mapping', context: localCtx});
      }
      if(type.indexOf('_:') === 0) {
        throw new JsonLdError(
          'Invalid JSON-LD syntax; an @context @type values must be an IRI, ' +
          'not a blank node identifier.',
          'jsonld.SyntaxError',
          {code: 'invalid type mapping', context: localCtx});
      }
    }

    // add @type to mapping
    mapping['@type'] = type;
  }

  if('@container' in value) {
    var container = value['@container'];
    if(container !== '@list' && container !== '@set' &&
      container !== '@index' && container !== '@language') {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; @context @container value must be ' +
        'one of the following: @list, @set, @index, or @language.',
        'jsonld.SyntaxError',
        {code: 'invalid container mapping', context: localCtx});
    }
    if(mapping.reverse && container !== '@index' && container !== '@set' &&
      container !== null) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; @context @container value for a @reverse ' +
        'type definition must be @index or @set.', 'jsonld.SyntaxError',
        {code: 'invalid reverse property', context: localCtx});
    }

    // add @container to mapping
    mapping['@container'] = container;
  }

  if('@language' in value && !('@type' in value)) {
    var language = value['@language'];
    if(language !== null && !_isString(language)) {
      throw new JsonLdError(
        'Invalid JSON-LD syntax; @context @language value must be ' +
        'a string or null.', 'jsonld.SyntaxError',
        {code: 'invalid language mapping', context: localCtx});
    }

    // add @language to mapping
    if(language !== null) {
      language = language.toLowerCase();
    }
    mapping['@language'] = language;
  }

  // disallow aliasing @context and @preserve
  var id = mapping['@id'];
  if(id === '@context' || id === '@preserve') {
    throw new JsonLdError(
      'Invalid JSON-LD syntax; @context and @preserve cannot be aliased.',
      'jsonld.SyntaxError', {code: 'invalid keyword alias', context: localCtx});
  }
}

/**
 * Expands a string to a full IRI. The string may be a term, a prefix, a
 * relative IRI, or an absolute IRI. The associated absolute IRI will be
 * returned.
 *
 * @param activeCtx the current active context.
 * @param value the string to expand.
 * @param relativeTo options for how to resolve relative IRIs:
 *          base: true to resolve against the base IRI, false not to.
 *          vocab: true to concatenate after @vocab, false not to.
 * @param localCtx the local context being processed (only given if called
 *          during context processing).
 * @param defined a map for tracking cycles in context definitions (only given
 *          if called during context processing).
 *
 * @return the expanded value.
 */
function _expandIri(activeCtx, value, relativeTo, localCtx, defined) {
  // already expanded
  if(value === null || _isKeyword(value)) {
    return value;
  }

  // ensure value is interpreted as a string
  value = String(value);

  // define term dependency if not defined
  if(localCtx && value in localCtx && defined[value] !== true) {
    _createTermDefinition(activeCtx, localCtx, value, defined);
  }

  relativeTo = relativeTo || {};
  if(relativeTo.vocab) {
    var mapping = activeCtx.mappings[value];

    // value is explicitly ignored with a null mapping
    if(mapping === null) {
      return null;
    }

    if(mapping) {
      // value is a term
      return mapping['@id'];
    }
  }

  // split value into prefix:suffix
  var colon = value.indexOf(':');
  if(colon !== -1) {
    var prefix = value.substr(0, colon);
    var suffix = value.substr(colon + 1);

    // do not expand blank nodes (prefix of '_') or already-absolute
    // IRIs (suffix of '//')
    if(prefix === '_' || suffix.indexOf('//') === 0) {
      return value;
    }

    // prefix dependency not defined, define it
    if(localCtx && prefix in localCtx) {
      _createTermDefinition(activeCtx, localCtx, prefix, defined);
    }

    // use mapping if prefix is defined
    var mapping = activeCtx.mappings[prefix];
    if(mapping) {
      return mapping['@id'] + suffix;
    }

    // already absolute IRI
    return value;
  }

  // prepend vocab
  if(relativeTo.vocab && '@vocab' in activeCtx) {
    return activeCtx['@vocab'] + value;
  }

  // prepend base
  var rval = value;
  if(relativeTo.base) {
    rval = jsonld.prependBase(activeCtx['@base'], rval);
  }

  return rval;
}

function _prependBase(base, iri) {
  // skip IRI processing
  if(base === null) {
    return iri;
  }
  // already an absolute IRI
  if(iri.indexOf(':') !== -1) {
    return iri;
  }

  // parse base if it is a string
  if(_isString(base)) {
    base = jsonld.url.parse(base || '');
  }

  // parse given IRI
  var rel = jsonld.url.parse(iri);

  // per RFC3986 5.2.2
  var transform = {
    protocol: base.protocol || ''
  };

  if(rel.authority !== null) {
    transform.authority = rel.authority;
    transform.path = rel.path;
    transform.query = rel.query;
  } else {
    transform.authority = base.authority;

    if(rel.path === '') {
      transform.path = base.path;
      if(rel.query !== null) {
        transform.query = rel.query;
      } else {
        transform.query = base.query;
      }
    } else {
      if(rel.path.indexOf('/') === 0) {
        // IRI represents an absolute path
        transform.path = rel.path;
      } else {
        // merge paths
        var path = base.path;

        // append relative path to the end of the last directory from base
        if(rel.path !== '') {
          path = path.substr(0, path.lastIndexOf('/') + 1);
          if(path.length > 0 && path.substr(-1) !== '/') {
            path += '/';
          }
          path += rel.path;
        }

        transform.path = path;
      }
      transform.query = rel.query;
    }
  }

  // remove slashes and dots in path
  transform.path = _removeDotSegments(transform.path, !!transform.authority);

  // construct URL
  var rval = transform.protocol;
  if(transform.authority !== null) {
    rval += '//' + transform.authority;
  }
  rval += transform.path;
  if(transform.query !== null) {
    rval += '?' + transform.query;
  }
  if(rel.fragment !== null) {
    rval += '#' + rel.fragment;
  }

  // handle empty base
  if(rval === '') {
    rval = './';
  }

  return rval;
}

/**
 * Removes a base IRI from the given absolute IRI.
 *
 * @param base the base IRI.
 * @param iri the absolute IRI.
 *
 * @return the relative IRI if relative to base, otherwise the absolute IRI.
 */
function _removeBase(base, iri) {
  // skip IRI processing
  if(base === null) {
    return iri;
  }

  if(_isString(base)) {
    base = jsonld.url.parse(base || '');
  }

  // establish base root
  var root = '';
  if(base.href !== '') {
    root += (base.protocol || '') + '//' + (base.authority || '');
  } else if(iri.indexOf('//')) {
    // support network-path reference with empty base
    root += '//';
  }

  // IRI not relative to base
  if(iri.indexOf(root) !== 0) {
    return iri;
  }

  // remove root from IRI and parse remainder
  var rel = jsonld.url.parse(iri.substr(root.length));

  // remove path segments that match (do not remove last segment unless there
  // is a hash or query)
  var baseSegments = base.normalizedPath.split('/');
  var iriSegments = rel.normalizedPath.split('/');
  var last = (rel.fragment || rel.query) ? 0 : 1;
  while(baseSegments.length > 0 && iriSegments.length > last) {
    if(baseSegments[0] !== iriSegments[0]) {
      break;
    }
    baseSegments.shift();
    iriSegments.shift();
  }

  // use '../' for each non-matching base segment
  var rval = '';
  if(baseSegments.length > 0) {
    // don't count the last segment (if it ends with '/' last path doesn't
    // count and if it doesn't end with '/' it isn't a path)
    baseSegments.pop();
    for(var i = 0; i < baseSegments.length; ++i) {
      rval += '../';
    }
  }

  // prepend remaining segments
  rval += iriSegments.join('/');

  // add query and hash
  if(rel.query !== null) {
    rval += '?' + rel.query;
  }
  if(rel.fragment !== null) {
    rval += '#' + rel.fragment;
  }

  // handle empty base
  if(rval === '') {
    rval = './';
  }

  return rval;
}

/**
 * Gets the initial context.
 *
 * @param options the options to use:
 *          [base] the document base IRI.
 *
 * @return the initial context.
 */
function _getInitialContext(options) {
  var base = jsonld.url.parse(options.base || '');
  return {
    '@base': base,
    mappings: {},
    inverse: null,
    getInverse: _createInverseContext,
    clone: _cloneActiveContext
  };

  /**
   * Generates an inverse context for use in the compaction algorithm, if
   * not already generated for the given active context.
   *
   * @return the inverse context.
   */
  function _createInverseContext() {
    var activeCtx = this;

    // lazily create inverse
    if(activeCtx.inverse) {
      return activeCtx.inverse;
    }
    var inverse = activeCtx.inverse = {};

    // variables for building fast CURIE map
    var fastCurieMap = activeCtx.fastCurieMap = {};
    var irisToTerms = {};

    // handle default language
    var defaultLanguage = activeCtx['@language'] || '@none';

    // create term selections for each mapping in the context, ordered by
    // shortest and then lexicographically least
    var mappings = activeCtx.mappings;
    var terms = Object.keys(mappings).sort(_compareShortestLeast);
    for(var i = 0; i < terms.length; ++i) {
      var term = terms[i];
      var mapping = mappings[term];
      if(mapping === null) {
        continue;
      }

      var container = mapping['@container'] || '@none';

      // iterate over every IRI in the mapping
      var ids = mapping['@id'];
      if(!_isArray(ids)) {
        ids = [ids];
      }
      for(var ii = 0; ii < ids.length; ++ii) {
        var iri = ids[ii];
        var entry = inverse[iri];
        var isKeyword = _isKeyword(iri);

        if(!entry) {
          // initialize entry
          inverse[iri] = entry = {};

          if(!isKeyword && !mapping._termHasColon) {
            // init IRI to term map and fast CURIE prefixes
            irisToTerms[iri] = [term];
            var fastCurieEntry = {iri: iri, terms: irisToTerms[iri]};
            if(iri[0] in fastCurieMap) {
              fastCurieMap[iri[0]].push(fastCurieEntry);
            } else {
              fastCurieMap[iri[0]] = [fastCurieEntry];
            }
          }
        } else if(!isKeyword && !mapping._termHasColon) {
          // add IRI to term match
          irisToTerms[iri].push(term);
        }

        // add new entry
        if(!entry[container]) {
          entry[container] = {
            '@language': {},
            '@type': {}
          };
        }
        entry = entry[container];

        if(mapping.reverse) {
          // term is preferred for values using @reverse
          _addPreferredTerm(mapping, term, entry['@type'], '@reverse');
        } else if('@type' in mapping) {
          // term is preferred for values using specific type
          _addPreferredTerm(mapping, term, entry['@type'], mapping['@type']);
        } else if('@language' in mapping) {
          // term is preferred for values using specific language
          var language = mapping['@language'] || '@null';
          _addPreferredTerm(mapping, term, entry['@language'], language);
        } else {
          // term is preferred for values w/default language or no type and
          // no language
          // add an entry for the default language
          _addPreferredTerm(mapping, term, entry['@language'], defaultLanguage);

          // add entries for no type and no language
          _addPreferredTerm(mapping, term, entry['@type'], '@none');
          _addPreferredTerm(mapping, term, entry['@language'], '@none');
        }
      }
    }

    // build fast CURIE map
    for(var key in fastCurieMap) {
      _buildIriMap(fastCurieMap, key, 1);
    }

    return inverse;
  }

  /**
   * Runs a recursive algorithm to build a lookup map for quickly finding
   * potential CURIEs.
   *
   * @param iriMap the map to build.
   * @param key the current key in the map to work on.
   * @param idx the index into the IRI to compare.
   */
  function _buildIriMap(iriMap, key, idx) {
    var entries = iriMap[key];
    var next = iriMap[key] = {};

    var iri;
    var letter;
    for(var i = 0; i < entries.length; ++i) {
      iri = entries[i].iri;
      if(idx >= iri.length) {
        letter = '';
      } else {
        letter = iri[idx];
      }
      if(letter in next) {
        next[letter].push(entries[i]);
      } else {
        next[letter] = [entries[i]];
      }
    }

    for(var key in next) {
      if(key === '') {
        continue;
      }
      _buildIriMap(next, key, idx + 1);
    }
  }

  /**
   * Adds the term for the given entry if not already added.
   *
   * @param mapping the term mapping.
   * @param term the term to add.
   * @param entry the inverse context typeOrLanguage entry to add to.
   * @param typeOrLanguageValue the key in the entry to add to.
   */
  function _addPreferredTerm(mapping, term, entry, typeOrLanguageValue) {
    if(!(typeOrLanguageValue in entry)) {
      entry[typeOrLanguageValue] = term;
    }
  }

  /**
   * Clones an active context, creating a child active context.
   *
   * @return a clone (child) of the active context.
   */
  function _cloneActiveContext() {
    var child = {};
    child['@base'] = this['@base'];
    child.mappings = _clone(this.mappings);
    child.clone = this.clone;
    child.inverse = null;
    child.getInverse = this.getInverse;
    if('@language' in this) {
      child['@language'] = this['@language'];
    }
    if('@vocab' in this) {
      child['@vocab'] = this['@vocab'];
    }
    return child;
  }
}

/**
 * Returns whether or not the given value is a keyword.
 *
 * @param v the value to check.
 *
 * @return true if the value is a keyword, false if not.
 */
function _isKeyword(v) {
  if(!_isString(v)) {
    return false;
  }
  switch(v) {
  case '@base':
  case '@context':
  case '@container':
  case '@default':
  case '@embed':
  case '@explicit':
  case '@graph':
  case '@id':
  case '@index':
  case '@language':
  case '@list':
  case '@omitDefault':
  case '@preserve':
  case '@requireAll':
  case '@reverse':
  case '@set':
  case '@type':
  case '@value':
  case '@vocab':
    return true;
  }
  return false;
}

/**
 * Returns true if the given value is an Object.
 *
 * @param v the value to check.
 *
 * @return true if the value is an Object, false if not.
 */
function _isObject(v) {
  return (Object.prototype.toString.call(v) === '[object Object]');
}

/**
 * Returns true if the given value is an empty Object.
 *
 * @param v the value to check.
 *
 * @return true if the value is an empty Object, false if not.
 */
function _isEmptyObject(v) {
  return _isObject(v) && Object.keys(v).length === 0;
}

/**
 * Returns true if the given value is an Array.
 *
 * @param v the value to check.
 *
 * @return true if the value is an Array, false if not.
 */
function _isArray(v) {
  return Array.isArray(v);
}

/**
 * Throws an exception if the given value is not a valid @type value.
 *
 * @param v the value to check.
 */
function _validateTypeValue(v) {
  // can be a string or an empty object
  if(_isString(v) || _isEmptyObject(v)) {
    return;
  }

  // must be an array
  var isValid = false;
  if(_isArray(v)) {
    // must contain only strings
    isValid = true;
    for(var i = 0; i < v.length; ++i) {
      if(!(_isString(v[i]))) {
        isValid = false;
        break;
      }
    }
  }

  if(!isValid) {
    throw new JsonLdError(
      'Invalid JSON-LD syntax; "@type" value must a string, an array of ' +
      'strings, or an empty object.', 'jsonld.SyntaxError',
      {code: 'invalid type value', value: v});
  }
}

/**
 * Returns true if the given value is a String.
 *
 * @param v the value to check.
 *
 * @return true if the value is a String, false if not.
 */
function _isString(v) {
  return (typeof v === 'string' ||
    Object.prototype.toString.call(v) === '[object String]');
}

/**
 * Returns true if the given value is a Number.
 *
 * @param v the value to check.
 *
 * @return true if the value is a Number, false if not.
 */
function _isNumber(v) {
  return (typeof v === 'number' ||
    Object.prototype.toString.call(v) === '[object Number]');
}

/**
 * Returns true if the given value is a double.
 *
 * @param v the value to check.
 *
 * @return true if the value is a double, false if not.
 */
function _isDouble(v) {
  return _isNumber(v) && String(v).indexOf('.') !== -1;
}

/**
 * Returns true if the given value is numeric.
 *
 * @param v the value to check.
 *
 * @return true if the value is numeric, false if not.
 */
function _isNumeric(v) {
  return !isNaN(parseFloat(v)) && isFinite(v);
}

/**
 * Returns true if the given value is a Boolean.
 *
 * @param v the value to check.
 *
 * @return true if the value is a Boolean, false if not.
 */
function _isBoolean(v) {
  return (typeof v === 'boolean' ||
    Object.prototype.toString.call(v) === '[object Boolean]');
}

/**
 * Returns true if the given value is undefined.
 *
 * @param v the value to check.
 *
 * @return true if the value is undefined, false if not.
 */
function _isUndefined(v) {
  return (typeof v === 'undefined');
}

/**
 * Returns true if the given value is a subject with properties.
 *
 * @param v the value to check.
 *
 * @return true if the value is a subject with properties, false if not.
 */
function _isSubject(v) {
  // Note: A value is a subject if all of these hold true:
  // 1. It is an Object.
  // 2. It is not a @value, @set, or @list.
  // 3. It has more than 1 key OR any existing key is not @id.
  var rval = false;
  if(_isObject(v) &&
    !(('@value' in v) || ('@set' in v) || ('@list' in v))) {
    var keyCount = Object.keys(v).length;
    rval = (keyCount > 1 || !('@id' in v));
  }
  return rval;
}

/**
 * Returns true if the given value is a subject reference.
 *
 * @param v the value to check.
 *
 * @return true if the value is a subject reference, false if not.
 */
function _isSubjectReference(v) {
  // Note: A value is a subject reference if all of these hold true:
  // 1. It is an Object.
  // 2. It has a single key: @id.
  return (_isObject(v) && Object.keys(v).length === 1 && ('@id' in v));
}

/**
 * Returns true if the given value is a @value.
 *
 * @param v the value to check.
 *
 * @return true if the value is a @value, false if not.
 */
function _isValue(v) {
  // Note: A value is a @value if all of these hold true:
  // 1. It is an Object.
  // 2. It has the @value property.
  return _isObject(v) && ('@value' in v);
}

/**
 * Returns true if the given value is a @list.
 *
 * @param v the value to check.
 *
 * @return true if the value is a @list, false if not.
 */
function _isList(v) {
  // Note: A value is a @list if all of these hold true:
  // 1. It is an Object.
  // 2. It has the @list property.
  return _isObject(v) && ('@list' in v);
}

/**
 * Returns true if the given value is a blank node.
 *
 * @param v the value to check.
 *
 * @return true if the value is a blank node, false if not.
 */
function _isBlankNode(v) {
  // Note: A value is a blank node if all of these hold true:
  // 1. It is an Object.
  // 2. If it has an @id key its value begins with '_:'.
  // 3. It has no keys OR is not a @value, @set, or @list.
  var rval = false;
  if(_isObject(v)) {
    if('@id' in v) {
      rval = (v['@id'].indexOf('_:') === 0);
    } else {
      rval = (Object.keys(v).length === 0 ||
        !(('@value' in v) || ('@set' in v) || ('@list' in v)));
    }
  }
  return rval;
}

/**
 * Returns true if the given value is an absolute IRI, false if not.
 *
 * @param v the value to check.
 *
 * @return true if the value is an absolute IRI, false if not.
 */
function _isAbsoluteIri(v) {
  return _isString(v) && v.indexOf(':') !== -1;
}

/**
 * Clones an object, array, or string/number. If a typed JavaScript object
 * is given, such as a Date, it will be converted to a string.
 *
 * @param value the value to clone.
 *
 * @return the cloned value.
 */
function _clone(value) {
  if(value && typeof value === 'object') {
    var rval;
    if(_isArray(value)) {
      rval = [];
      for(var i = 0; i < value.length; ++i) {
        rval[i] = _clone(value[i]);
      }
    } else if(_isObject(value)) {
      rval = {};
      for(var key in value) {
        rval[key] = _clone(value[key]);
      }
    } else {
      rval = value.toString();
    }
    return rval;
  }
  return value;
}

/**
 * Finds all @context URLs in the given JSON-LD input.
 *
 * @param input the JSON-LD input.
 * @param urls a map of URLs (url => false/@contexts).
 * @param replace true to replace the URLs in the given input with the
 *           @contexts from the urls map, false not to.
 * @param base the base IRI to use to resolve relative IRIs.
 *
 * @return true if new URLs to retrieve were found, false if not.
 */
function _findContextUrls(input, urls, replace, base) {
  var count = Object.keys(urls).length;
  if(_isArray(input)) {
    for(var i = 0; i < input.length; ++i) {
      _findContextUrls(input[i], urls, replace, base);
    }
    return (count < Object.keys(urls).length);
  } else if(_isObject(input)) {
    for(var key in input) {
      if(key !== '@context') {
        _findContextUrls(input[key], urls, replace, base);
        continue;
      }

      // get @context
      var ctx = input[key];

      // array @context
      if(_isArray(ctx)) {
        var length = ctx.length;
        for(var i = 0; i < length; ++i) {
          var _ctx = ctx[i];
          if(_isString(_ctx)) {
            _ctx = jsonld.prependBase(base, _ctx);
            // replace w/@context if requested
            if(replace) {
              _ctx = urls[_ctx];
              if(_isArray(_ctx)) {
                // add flattened context
                Array.prototype.splice.apply(ctx, [i, 1].concat(_ctx));
                i += _ctx.length - 1;
                length = ctx.length;
              } else {
                ctx[i] = _ctx;
              }
            } else if(!(_ctx in urls)) {
              // @context URL found
              urls[_ctx] = false;
            }
          }
        }
      } else if(_isString(ctx)) {
        // string @context
        ctx = jsonld.prependBase(base, ctx);
        // replace w/@context if requested
        if(replace) {
          input[key] = urls[ctx];
        } else if(!(ctx in urls)) {
          // @context URL found
          urls[ctx] = false;
        }
      }
    }
    return (count < Object.keys(urls).length);
  }
  return false;
}

/**
 * Retrieves external @context URLs using the given document loader. Every
 * instance of @context in the input that refers to a URL will be replaced
 * with the JSON @context found at that URL.
 *
 * @param input the JSON-LD input with possible contexts.
 * @param options the options to use:
 *          documentLoader(url, callback(err, remoteDoc)) the document loader.
 * @param callback(err, input) called once the operation completes.
 */
function _retrieveContextUrls(input, options, callback) {
  // if any error occurs during URL resolution, quit
  var error = null;

  // recursive document loader
  var documentLoader = options.documentLoader;
  var retrieve = function(input, cycles, documentLoader, base, callback) {
    if(Object.keys(cycles).length > MAX_CONTEXT_URLS) {
      error = new JsonLdError(
        'Maximum number of @context URLs exceeded.',
        'jsonld.ContextUrlError',
        {code: 'loading remote context failed', max: MAX_CONTEXT_URLS});
      return callback(error);
    }

    // for tracking the URLs to retrieve
    var urls = {};

    // finished will be called once the URL queue is empty
    var finished = function() {
      // replace all URLs in the input
      _findContextUrls(input, urls, true, base);
      callback(null, input);
    };

    // find all URLs in the given input
    if(!_findContextUrls(input, urls, false, base)) {
      // no new URLs in input
      return finished();
    }

    // queue all unretrieved URLs
    var queue = [];
    for(var url in urls) {
      if(urls[url] === false) {
        queue.push(url);
      }
    }

    // retrieve URLs in queue
    var count = queue.length;
    for(var i = 0; i < queue.length; ++i) {
      (function(url) {
        // check for context URL cycle
        if(url in cycles) {
          error = new JsonLdError(
            'Cyclical @context URLs detected.',
            'jsonld.ContextUrlError',
            {code: 'recursive context inclusion', url: url});
          return callback(error);
        }
        var _cycles = _clone(cycles);
        _cycles[url] = true;
        var done = function(err, remoteDoc) {
          // short-circuit if there was an error with another URL
          if(error) {
            return;
          }

          var ctx = remoteDoc ? remoteDoc.document : null;

          // parse string context as JSON
          if(!err && _isString(ctx)) {
            try {
              ctx = JSON.parse(ctx);
            } catch(ex) {
              err = ex;
            }
          }

          // ensure ctx is an object
          if(err) {
            err = new JsonLdError(
              'Dereferencing a URL did not result in a valid JSON-LD object. ' +
              'Possible causes are an inaccessible URL perhaps due to ' +
              'a same-origin policy (ensure the server uses CORS if you are ' +
              'using client-side JavaScript), too many redirects, a ' +
              'non-JSON response, or more than one HTTP Link Header was ' +
              'provided for a remote context.',
              'jsonld.InvalidUrl',
              {code: 'loading remote context failed', url: url, cause: err});
          } else if(!_isObject(ctx)) {
            err = new JsonLdError(
              'Dereferencing a URL did not result in a JSON object. The ' +
              'response was valid JSON, but it was not a JSON object.',
              'jsonld.InvalidUrl',
              {code: 'invalid remote context', url: url, cause: err});
          }
          if(err) {
            error = err;
            return callback(error);
          }

          // use empty context if no @context key is present
          if(!('@context' in ctx)) {
            ctx = {'@context': {}};
          } else {
            ctx = {'@context': ctx['@context']};
          }

          // append context URL to context if given
          if(remoteDoc.contextUrl) {
            if(!_isArray(ctx['@context'])) {
              ctx['@context'] = [ctx['@context']];
            }
            ctx['@context'].push(remoteDoc.contextUrl);
          }

          // recurse
          retrieve(ctx, _cycles, documentLoader, url, function(err, ctx) {
            if(err) {
              return callback(err);
            }
            urls[url] = ctx['@context'];
            count -= 1;
            if(count === 0) {
              finished();
            }
          });
        };
        var promise = documentLoader(url, done);
        if(promise && 'then' in promise) {
          promise.then(done.bind(null, null), done);
        }
      }(queue[i]));
    }
  };
  retrieve(input, {}, documentLoader, options.base, callback);
}

// define js 1.8.5 Object.keys method if not present
if(!Object.keys) {
  Object.keys = function(o) {
    if(o !== Object(o)) {
      throw new TypeError('Object.keys called on non-object');
    }
    var rval = [];
    for(var p in o) {
      if(Object.prototype.hasOwnProperty.call(o, p)) {
        rval.push(p);
      }
    }
    return rval;
  };
}

/**
 * Parses RDF in the form of N-Quads.
 *
 * @param input the N-Quads input to parse.
 *
 * @return an RDF dataset.
 */
function _parseNQuads(input) {
  // define partial regexes
  var iri = '(?:<([^:]+:[^>]*)>)';
  var bnode = '(_:(?:[A-Za-z0-9]+))';
  var plain = '"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"';
  var datatype = '(?:\\^\\^' + iri + ')';
  var language = '(?:@([a-z]+(?:-[a-z0-9]+)*))';
  var literal = '(?:' + plain + '(?:' + datatype + '|' + language + ')?)';
  var comment = '(?:#.*)?';
  var ws = '[ \\t]+';
  var wso = '[ \\t]*';
  var eoln = /(?:\r\n)|(?:\n)|(?:\r)/g;
  var empty = new RegExp('^' + wso + comment + '$');

  // define quad part regexes
  var subject = '(?:' + iri + '|' + bnode + ')' + ws;
  var property = iri + ws;
  var object = '(?:' + iri + '|' + bnode + '|' + literal + ')' + wso;
  var graphName = '(?:\\.|(?:(?:' + iri + '|' + bnode + ')' + wso + '\\.))';

  // full quad regex
  var quad = new RegExp(
    '^' + wso + subject + property + object + graphName + wso + comment + '$');

  // build RDF dataset
  var dataset = {};

  // split N-Quad input into lines
  var lines = input.split(eoln);
  var lineNumber = 0;
  for(var li = 0; li < lines.length; ++li) {
    var line = lines[li];
    lineNumber++;

    // skip empty lines
    if(empty.test(line)) {
      continue;
    }

    // parse quad
    var match = line.match(quad);
    if(match === null) {
      throw new JsonLdError(
        'Error while parsing N-Quads; invalid quad.',
        'jsonld.ParseError', {line: lineNumber});
    }

    // create RDF triple
    var triple = {};

    // get subject
    if(!_isUndefined(match[1])) {
      triple.subject = {type: 'IRI', value: match[1]};
    } else {
      triple.subject = {type: 'blank node', value: match[2]};
    }

    // get predicate
    triple.predicate = {type: 'IRI', value: match[3]};

    // get object
    if(!_isUndefined(match[4])) {
      triple.object = {type: 'IRI', value: match[4]};
    } else if(!_isUndefined(match[5])) {
      triple.object = {type: 'blank node', value: match[5]};
    } else {
      triple.object = {type: 'literal'};
      if(!_isUndefined(match[7])) {
        triple.object.datatype = match[7];
      } else if(!_isUndefined(match[8])) {
        triple.object.datatype = RDF_LANGSTRING;
        triple.object.language = match[8];
      } else {
        triple.object.datatype = XSD_STRING;
      }
      var unescaped = match[6]
        .replace(/\\"/g, '"')
        .replace(/\\t/g, '\t')
        .replace(/\\n/g, '\n')
        .replace(/\\r/g, '\r')
        .replace(/\\\\/g, '\\');
      triple.object.value = unescaped;
    }

    // get graph name ('@default' is used for the default graph)
    var name = '@default';
    if(!_isUndefined(match[9])) {
      name = match[9];
    } else if(!_isUndefined(match[10])) {
      name = match[10];
    }

    // initialize graph in dataset
    if(!(name in dataset)) {
      dataset[name] = [triple];
    } else {
      // add triple if unique to its graph
      var unique = true;
      var triples = dataset[name];
      for(var ti = 0; unique && ti < triples.length; ++ti) {
        if(_compareRDFTriples(triples[ti], triple)) {
          unique = false;
        }
      }
      if(unique) {
        triples.push(triple);
      }
    }
  }

  return dataset;
}

// register the N-Quads RDF parser
jsonld.registerRDFParser('application/nquads', _parseNQuads);

/**
 * Converts an RDF dataset to N-Quads.
 *
 * @param dataset the RDF dataset to convert.
 *
 * @return the N-Quads string.
 */
function _toNQuads(dataset) {
  var quads = [];
  for(var graphName in dataset) {
    var triples = dataset[graphName];
    for(var ti = 0; ti < triples.length; ++ti) {
      var triple = triples[ti];
      if(graphName === '@default') {
        graphName = null;
      }
      quads.push(_toNQuad(triple, graphName));
    }
  }
  return quads.sort().join('');
}

/**
 * Converts an RDF triple and graph name to an N-Quad string (a single quad).
 *
 * @param triple the RDF triple or quad to convert (a triple or quad may be
 *          passed, if a triple is passed then `graphName` should be given
 *          to specify the name of the graph the triple is in, `null` for
 *          the default graph).
 * @param graphName the name of the graph containing the triple, null for
 *          the default graph.
 *
 * @return the N-Quad string.
 */
function _toNQuad(triple, graphName) {
  var s = triple.subject;
  var p = triple.predicate;
  var o = triple.object;
  var g = graphName || null;
  if('name' in triple && triple.name) {
    g = triple.name.value;
  }

  var quad = '';

  // subject is an IRI
  if(s.type === 'IRI') {
    quad += '<' + s.value + '>';
  } else {
    quad += s.value;
  }
  quad += ' ';

  // predicate is an IRI
  if(p.type === 'IRI') {
    quad += '<' + p.value + '>';
  } else {
    quad += p.value;
  }
  quad += ' ';

  // object is IRI, bnode, or literal
  if(o.type === 'IRI') {
    quad += '<' + o.value + '>';
  } else if(o.type === 'blank node') {
    quad += o.value;
  } else {
    var escaped = o.value
      .replace(/\\/g, '\\\\')
      .replace(/\t/g, '\\t')
      .replace(/\n/g, '\\n')
      .replace(/\r/g, '\\r')
      .replace(/\"/g, '\\"');
    quad += '"' + escaped + '"';
    if(o.datatype === RDF_LANGSTRING) {
      if(o.language) {
        quad += '@' + o.language;
      }
    } else if(o.datatype !== XSD_STRING) {
      quad += '^^<' + o.datatype + '>';
    }
  }

  // graph
  if(g !== null && g !== undefined) {
    if(g.indexOf('_:') !== 0) {
      quad += ' <' + g + '>';
    } else {
      quad += ' ' + g;
    }
  }

  quad += ' .\n';
  return quad;
}

/**
 * Parses the RDF dataset found via the data object from the RDFa API.
 *
 * @param data the RDFa API data object.
 *
 * @return the RDF dataset.
 */
function _parseRdfaApiData(data) {
  var dataset = {};
  dataset['@default'] = [];

  var subjects = data.getSubjects();
  for(var si = 0; si < subjects.length; ++si) {
    var subject = subjects[si];
    if(subject === null) {
      continue;
    }

    // get all related triples
    var triples = data.getSubjectTriples(subject);
    if(triples === null) {
      continue;
    }
    var predicates = triples.predicates;
    for(var predicate in predicates) {
      // iterate over objects
      var objects = predicates[predicate].objects;
      for(var oi = 0; oi < objects.length; ++oi) {
        var object = objects[oi];

        // create RDF triple
        var triple = {};

        // add subject
        if(subject.indexOf('_:') === 0) {
          triple.subject = {type: 'blank node', value: subject};
        } else {
          triple.subject = {type: 'IRI', value: subject};
        }

        // add predicate
        if(predicate.indexOf('_:') === 0) {
          triple.predicate = {type: 'blank node', value: predicate};
        } else {
          triple.predicate = {type: 'IRI', value: predicate};
        }

        // serialize XML literal
        var value = object.value;
        if(object.type === RDF_XML_LITERAL) {
          // initialize XMLSerializer
          if(!XMLSerializer) {
            _defineXMLSerializer();
          }
          var serializer = new XMLSerializer();
          value = '';
          for(var x = 0; x < object.value.length; x++) {
            if(object.value[x].nodeType === Node.ELEMENT_NODE) {
              value += serializer.serializeToString(object.value[x]);
            } else if(object.value[x].nodeType === Node.TEXT_NODE) {
              value += object.value[x].nodeValue;
            }
          }
        }

        // add object
        triple.object = {};

        // object is an IRI
        if(object.type === RDF_OBJECT) {
          if(object.value.indexOf('_:') === 0) {
            triple.object.type = 'blank node';
          } else {
            triple.object.type = 'IRI';
          }
        } else {
          // object is a literal
          triple.object.type = 'literal';
          if(object.type === RDF_PLAIN_LITERAL) {
            if(object.language) {
              triple.object.datatype = RDF_LANGSTRING;
              triple.object.language = object.language;
            } else {
              triple.object.datatype = XSD_STRING;
            }
          } else {
            triple.object.datatype = object.type;
          }
        }
        triple.object.value = value;

        // add triple to dataset in default graph
        dataset['@default'].push(triple);
      }
    }
  }

  return dataset;
}

// register the RDFa API RDF parser
jsonld.registerRDFParser('rdfa-api', _parseRdfaApiData);

/**
 * Creates a new IdentifierIssuer. A IdentifierIssuer issues unique
 * identifiers, keeping track of any previously issued identifiers.
 *
 * @param prefix the prefix to use ('<prefix><counter>').
 */
function IdentifierIssuer(prefix) {
  this.prefix = prefix;
  this.counter = 0;
  this.existing = {};
}
jsonld.IdentifierIssuer = IdentifierIssuer;
// backwards-compability
jsonld.UniqueNamer = IdentifierIssuer;

/**
 * Copies this IdentifierIssuer.
 *
 * @return a copy of this IdentifierIssuer.
 */
IdentifierIssuer.prototype.clone = function() {
  var copy = new IdentifierIssuer(this.prefix);
  copy.counter = this.counter;
  copy.existing = _clone(this.existing);
  return copy;
};

/**
 * Gets the new identifier for the given old identifier, where if no old
 * identifier is given a new identifier will be generated.
 *
 * @param [old] the old identifier to get the new identifier for.
 *
 * @return the new identifier.
 */
IdentifierIssuer.prototype.getId = function(old) {
  // return existing old identifier
  if(old && old in this.existing) {
    return this.existing[old];
  }

  // get next identifier
  var identifier = this.prefix + this.counter;
  this.counter += 1;

  // save mapping
  if(old) {
    this.existing[old] = identifier;
  }

  return identifier;
};
// alias
IdentifierIssuer.prototype.getName = IdentifierIssuer.prototype.getName;

/**
 * Returns true if the given old identifer has already been assigned a new
 * identifier.
 *
 * @param old the old identifier to check.
 *
 * @return true if the old identifier has been assigned a new identifier, false
 *   if not.
 */
IdentifierIssuer.prototype.hasId = function(old) {
  return (old in this.existing);
};
// alias
IdentifierIssuer.prototype.isNamed = IdentifierIssuer.prototype.hasId;

/**
 * A Permutator iterates over all possible permutations of the given array
 * of elements.
 *
 * @param list the array of elements to iterate over.
 */
var Permutator = function(list) {
  // original array
  this.list = list.sort();
  // indicates whether there are more permutations
  this.done = false;
  // directional info for permutation algorithm
  this.left = {};
  for(var i = 0; i < list.length; ++i) {
    this.left[list[i]] = true;
  }
};

/**
 * Returns true if there is another permutation.
 *
 * @return true if there is another permutation, false if not.
 */
Permutator.prototype.hasNext = function() {
  return !this.done;
};

/**
 * Gets the next permutation. Call hasNext() to ensure there is another one
 * first.
 *
 * @return the next permutation.
 */
Permutator.prototype.next = function() {
  // copy current permutation
  var rval = this.list.slice();

  /* Calculate the next permutation using the Steinhaus-Johnson-Trotter
   permutation algorithm. */

  // get largest mobile element k
  // (mobile: element is greater than the one it is looking at)
  var k = null;
  var pos = 0;
  var length = this.list.length;
  for(var i = 0; i < length; ++i) {
    var element = this.list[i];
    var left = this.left[element];
    if((k === null || element > k) &&
      ((left && i > 0 && element > this.list[i - 1]) ||
      (!left && i < (length - 1) && element > this.list[i + 1]))) {
      k = element;
      pos = i;
    }
  }

  // no more permutations
  if(k === null) {
    this.done = true;
  } else {
    // swap k and the element it is looking at
    var swap = this.left[k] ? pos - 1 : pos + 1;
    this.list[pos] = this.list[swap];
    this.list[swap] = k;

    // reverse the direction of all elements larger than k
    for(var i = 0; i < length; ++i) {
      if(this.list[i] > k) {
        this.left[this.list[i]] = !this.left[this.list[i]];
      }
    }
  }

  return rval;
};

//////////////////////// DEFINE NORMALIZATION HASH API ////////////////////////

/**
 * Creates a new NormalizeHash for use by the given normalization algorithm.
 *
 * @param algorithm the RDF Dataset Normalization algorithm to use:
 *          'URDNA2015' or 'URGNA2012'.
 */
var NormalizeHash = function(algorithm) {
  if(!(this instanceof NormalizeHash)) {
    return new NormalizeHash(algorithm);
  }
  if(['URDNA2015', 'URGNA2012'].indexOf(algorithm) === -1) {
    throw new Error(
      'Invalid RDF Dataset Normalization algorithm: ' + algorithm);
  }
  NormalizeHash._init.call(this, algorithm);
};
NormalizeHash.hashNQuads = function(algorithm, nquads) {
  var md = new NormalizeHash(algorithm);
  for(var i = 0; i < nquads.length; ++i) {
    md.update(nquads[i]);
  }
  return md.digest();
};

// switch definition of NormalizeHash based on environment
(function(_nodejs) {

if(_nodejs) {
  // define NormalizeHash using native crypto lib
  var crypto = _dereq_('crypto');
  NormalizeHash._init = function(algorithm) {
    if(algorithm === 'URDNA2015') {
      algorithm = 'sha256';
    } else {
      // assume URGNA2012
      algorithm = 'sha1';
    }
    this.md = crypto.createHash(algorithm);
  };
  NormalizeHash.prototype.update = function(msg) {
    return this.md.update(msg, 'utf8');
  };
  NormalizeHash.prototype.digest = function() {
    return this.md.digest('hex');
  };
  return;
}

// define NormalizeHash using JavaScript
NormalizeHash._init = function(algorithm) {
  if(algorithm === 'URDNA2015') {
    algorithm = new sha256.Algorithm();
  } else {
    // assume URGNA2012
    algorithm = new sha1.Algorithm();
  }
  this.md = new MessageDigest(algorithm);
};
NormalizeHash.prototype.update = function(msg) {
  return this.md.update(msg);
};
NormalizeHash.prototype.digest = function() {
  return this.md.digest().toHex();
};

/////////////////////////// DEFINE MESSAGE DIGEST API /////////////////////////

/**
 * Creates a new MessageDigest.
 *
 * @param algorithm the algorithm to use.
 */
var MessageDigest = function(algorithm) {
  if(!(this instanceof MessageDigest)) {
    return new MessageDigest(algorithm);
  }

  this._algorithm = algorithm;

  // create shared padding as needed
  if(!MessageDigest._padding ||
    MessageDigest._padding.length < this._algorithm.blockSize) {
    MessageDigest._padding = String.fromCharCode(128);
    var c = String.fromCharCode(0x00);
    var n = 64;
    while(n > 0) {
      if(n & 1) {
        MessageDigest._padding += c;
      }
      n >>>= 1;
      if(n > 0) {
        c += c;
      }
    }
  }

  // start digest automatically for first time
  this.start();
};

/**
 * Starts the digest.
 *
 * @return this digest object.
 */
MessageDigest.prototype.start = function() {
  // up to 56-bit message length for convenience
  this.messageLength = 0;

  // full message length
  this.fullMessageLength = [];
  var int32s = this._algorithm.messageLengthSize / 4;
  for(var i = 0; i < int32s; ++i) {
    this.fullMessageLength.push(0);
  }

  // input buffer
  this._input = new MessageDigest.ByteBuffer();

  // get starting state
  this.state = this._algorithm.start();

  return this;
};

/**
 * Updates the digest with the given message input. The input must be
 * a string of characters.
 *
 * @param msg the message input to update with (ByteBuffer or string).
 *
 * @return this digest object.
 */
MessageDigest.prototype.update = function(msg) {
  // encode message as a UTF-8 encoded binary string
  msg = new MessageDigest.ByteBuffer(unescape(encodeURIComponent(msg)));

  // update message length
  this.messageLength += msg.length();
  var len = msg.length();
  len = [(len / 0x100000000) >>> 0, len >>> 0];
  for(var i = this.fullMessageLength.length - 1; i >= 0; --i) {
    this.fullMessageLength[i] += len[1];
    len[1] = len[0] + ((this.fullMessageLength[i] / 0x100000000) >>> 0);
    this.fullMessageLength[i] = this.fullMessageLength[i] >>> 0;
    len[0] = ((len[1] / 0x100000000) >>> 0);
  }

  // add bytes to input buffer
  this._input.putBytes(msg.bytes());

  // digest blocks
  while(this._input.length() >= this._algorithm.blockSize) {
    this.state = this._algorithm.digest(this.state, this._input);
  }

  // compact input buffer every 2K or if empty
  if(this._input.read > 2048 || this._input.length() === 0) {
    this._input.compact();
  }

  return this;
};

/**
 * Produces the digest.
 *
 * @return a byte buffer containing the digest value.
 */
MessageDigest.prototype.digest = function() {
  /* Note: Here we copy the remaining bytes in the input buffer and add the
  appropriate padding. Then we do the final update on a copy of the state so
  that if the user wants to get intermediate digests they can do so. */

  /* Determine the number of bytes that must be added to the message to
  ensure its length is appropriately congruent. In other words, the data to
  be digested must be a multiple of `blockSize`. This data includes the
  message, some padding, and the length of the message. Since the length of
  the message will be encoded as `messageLengthSize` bytes, that means that
  the last segment of the data must have `blockSize` - `messageLengthSize`
  bytes of message and padding. Therefore, the length of the message plus the
  padding must be congruent to X mod `blockSize` because
  `blockSize` - `messageLengthSize` = X.

  For example, SHA-1 is congruent to 448 mod 512 and SHA-512 is congruent to
  896 mod 1024. SHA-1 uses a `blockSize` of 64 bytes (512 bits) and a
  `messageLengthSize` of 8 bytes (64 bits). SHA-512 uses a `blockSize` of
  128 bytes (1024 bits) and a `messageLengthSize` of 16 bytes (128 bits).

  In order to fill up the message length it must be filled with padding that
  begins with 1 bit followed by all 0 bits. Padding must *always* be present,
  so if the message length is already congruent, then `blockSize` padding bits
  must be added. */

  // create final block
  var finalBlock = new MessageDigest.ByteBuffer();
  finalBlock.putBytes(this._input.bytes());

  // compute remaining size to be digested (include message length size)
  var remaining = (
    this.fullMessageLength[this.fullMessageLength.length - 1] +
    this._algorithm.messageLengthSize);

  // add padding for overflow blockSize - overflow
  // _padding starts with 1 byte with first bit is set (byte value 128), then
  // there may be up to (blockSize - 1) other pad bytes
  var overflow = remaining & (this._algorithm.blockSize - 1);
  finalBlock.putBytes(MessageDigest._padding.substr(
    0, this._algorithm.blockSize - overflow));

  // serialize message length in bits in big-endian order; since length
  // is stored in bytes we multiply by 8 (left shift by 3 and merge in
  // remainder from )
  var messageLength = new MessageDigest.ByteBuffer();
  for(var i = 0; i < this.fullMessageLength.length; ++i) {
    messageLength.putInt32((this.fullMessageLength[i] << 3) |
      (this.fullMessageLength[i + 1] >>> 28));
  }

  // write the length of the message (algorithm-specific)
  this._algorithm.writeMessageLength(finalBlock, messageLength);

  // digest final block
  var state = this._algorithm.digest(this.state.copy(), finalBlock);

  // write state to buffer
  var rval = new MessageDigest.ByteBuffer();
  state.write(rval);
  return rval;
};

/**
 * Creates a simple byte buffer for message digest operations.
 *
 * @param data the data to put in the buffer.
 */
MessageDigest.ByteBuffer = function(data) {
  if(typeof data === 'string') {
    this.data = data;
  } else {
    this.data = '';
  }
  this.read = 0;
};

/**
 * Puts a 32-bit integer into this buffer in big-endian order.
 *
 * @param i the 32-bit integer.
 */
MessageDigest.ByteBuffer.prototype.putInt32 = function(i) {
  this.data += (
    String.fromCharCode(i >> 24 & 0xFF) +
    String.fromCharCode(i >> 16 & 0xFF) +
    String.fromCharCode(i >> 8 & 0xFF) +
    String.fromCharCode(i & 0xFF));
};

/**
 * Gets a 32-bit integer from this buffer in big-endian order and
 * advances the read pointer by 4.
 *
 * @return the word.
 */
MessageDigest.ByteBuffer.prototype.getInt32 = function() {
  var rval = (
    this.data.charCodeAt(this.read) << 24 ^
    this.data.charCodeAt(this.read + 1) << 16 ^
    this.data.charCodeAt(this.read + 2) << 8 ^
    this.data.charCodeAt(this.read + 3));
  this.read += 4;
  return rval;
};

/**
 * Puts the given bytes into this buffer.
 *
 * @param bytes the bytes as a binary-encoded string.
 */
MessageDigest.ByteBuffer.prototype.putBytes = function(bytes) {
  this.data += bytes;
};

/**
 * Gets the bytes in this buffer.
 *
 * @return a string full of UTF-8 encoded characters.
 */
MessageDigest.ByteBuffer.prototype.bytes = function() {
  return this.data.slice(this.read);
};

/**
 * Gets the number of bytes in this buffer.
 *
 * @return the number of bytes in this buffer.
 */
MessageDigest.ByteBuffer.prototype.length = function() {
  return this.data.length - this.read;
};

/**
 * Compacts this buffer.
 */
MessageDigest.ByteBuffer.prototype.compact = function() {
  this.data = this.data.slice(this.read);
  this.read = 0;
};

/**
 * Converts this buffer to a hexadecimal string.
 *
 * @return a hexadecimal string.
 */
MessageDigest.ByteBuffer.prototype.toHex = function() {
  var rval = '';
  for(var i = this.read; i < this.data.length; ++i) {
    var b = this.data.charCodeAt(i);
    if(b < 16) {
      rval += '0';
    }
    rval += b.toString(16);
  }
  return rval;
};

///////////////////////////// DEFINE SHA-1 ALGORITHM //////////////////////////

var sha1 = {
  // used for word storage
  _w: null
};

sha1.Algorithm = function() {
  this.name = 'sha1',
  this.blockSize = 64;
  this.digestLength = 20;
  this.messageLengthSize = 8;
};

sha1.Algorithm.prototype.start = function() {
  if(!sha1._w) {
    sha1._w = new Array(80);
  }
  return sha1._createState();
};

sha1.Algorithm.prototype.writeMessageLength = function(
  finalBlock, messageLength) {
  // message length is in bits and in big-endian order; simply append
  finalBlock.putBytes(messageLength.bytes());
};

sha1.Algorithm.prototype.digest = function(s, input) {
  // consume 512 bit (64 byte) chunks
  var t, a, b, c, d, e, f, i;
  var len = input.length();
  var _w = sha1._w;
  while(len >= 64) {
    // initialize hash value for this chunk
    a = s.h0;
    b = s.h1;
    c = s.h2;
    d = s.h3;
    e = s.h4;

    // the _w array will be populated with sixteen 32-bit big-endian words
    // and then extended into 80 32-bit words according to SHA-1 algorithm
    // and for 32-79 using Max Locktyukhin's optimization

    // round 1
    for(i = 0; i < 16; ++i) {
      t = input.getInt32();
      _w[i] = t;
      f = d ^ (b & (c ^ d));
      t = ((a << 5) | (a >>> 27)) + f + e + 0x5A827999 + t;
      e = d;
      d = c;
      c = (b << 30) | (b >>> 2);
      b = a;
      a = t;
    }
    for(; i < 20; ++i) {
      t = (_w[i - 3] ^ _w[i - 8] ^ _w[i - 14] ^ _w[i - 16]);
      t = (t << 1) | (t >>> 31);
      _w[i] = t;
      f = d ^ (b & (c ^ d));
      t = ((a << 5) | (a >>> 27)) + f + e + 0x5A827999 + t;
      e = d;
      d = c;
      c = (b << 30) | (b >>> 2);
      b = a;
      a = t;
    }
    // round 2
    for(; i < 32; ++i) {
      t = (_w[i - 3] ^ _w[i - 8] ^ _w[i - 14] ^ _w[i - 16]);
      t = (t << 1) | (t >>> 31);
      _w[i] = t;
      f = b ^ c ^ d;
      t = ((a << 5) | (a >>> 27)) + f + e + 0x6ED9EBA1 + t;
      e = d;
      d = c;
      c = (b << 30) | (b >>> 2);
      b = a;
      a = t;
    }
    for(; i < 40; ++i) {
      t = (_w[i - 6] ^ _w[i - 16] ^ _w[i - 28] ^ _w[i - 32]);
      t = (t << 2) | (t >>> 30);
      _w[i] = t;
      f = b ^ c ^ d;
      t = ((a << 5) | (a >>> 27)) + f + e + 0x6ED9EBA1 + t;
      e = d;
      d = c;
      c = (b << 30) | (b >>> 2);
      b = a;
      a = t;
    }
    // round 3
    for(; i < 60; ++i) {
      t = (_w[i - 6] ^ _w[i - 16] ^ _w[i - 28] ^ _w[i - 32]);
      t = (t << 2) | (t >>> 30);
      _w[i] = t;
      f = (b & c) | (d & (b ^ c));
      t = ((a << 5) | (a >>> 27)) + f + e + 0x8F1BBCDC + t;
      e = d;
      d = c;
      c = (b << 30) | (b >>> 2);
      b = a;
      a = t;
    }
    // round 4
    for(; i < 80; ++i) {
      t = (_w[i - 6] ^ _w[i - 16] ^ _w[i - 28] ^ _w[i - 32]);
      t = (t << 2) | (t >>> 30);
      _w[i] = t;
      f = b ^ c ^ d;
      t = ((a << 5) | (a >>> 27)) + f + e + 0xCA62C1D6 + t;
      e = d;
      d = c;
      c = (b << 30) | (b >>> 2);
      b = a;
      a = t;
    }

    // update hash state
    s.h0 = (s.h0 + a) | 0;
    s.h1 = (s.h1 + b) | 0;
    s.h2 = (s.h2 + c) | 0;
    s.h3 = (s.h3 + d) | 0;
    s.h4 = (s.h4 + e) | 0;

    len -= 64;
  }

  return s;
};

sha1._createState = function() {
  var state = {
    h0: 0x67452301,
    h1: 0xEFCDAB89,
    h2: 0x98BADCFE,
    h3: 0x10325476,
    h4: 0xC3D2E1F0
  };
  state.copy = function() {
    var rval = sha1._createState();
    rval.h0 = state.h0;
    rval.h1 = state.h1;
    rval.h2 = state.h2;
    rval.h3 = state.h3;
    rval.h4 = state.h4;
    return rval;
  };
  state.write = function(buffer) {
    buffer.putInt32(state.h0);
    buffer.putInt32(state.h1);
    buffer.putInt32(state.h2);
    buffer.putInt32(state.h3);
    buffer.putInt32(state.h4);
  };
  return state;
};

//////////////////////////// DEFINE SHA-256 ALGORITHM /////////////////////////

var sha256 = {
  // shared state
  _k: null,
  _w: null
};

sha256.Algorithm = function() {
  this.name = 'sha256',
  this.blockSize = 64;
  this.digestLength = 32;
  this.messageLengthSize = 8;
};

sha256.Algorithm.prototype.start = function() {
  if(!sha256._k) {
    sha256._init();
  }
  return sha256._createState();
};

sha256.Algorithm.prototype.writeMessageLength = function(
  finalBlock, messageLength) {
  // message length is in bits and in big-endian order; simply append
  finalBlock.putBytes(messageLength.bytes());
};

sha256.Algorithm.prototype.digest = function(s, input) {
  // consume 512 bit (64 byte) chunks
  var t1, t2, s0, s1, ch, maj, i, a, b, c, d, e, f, g, h;
  var len = input.length();
  var _k = sha256._k;
  var _w = sha256._w;
  while(len >= 64) {
    // the w array will be populated with sixteen 32-bit big-endian words
    // and then extended into 64 32-bit words according to SHA-256
    for(i = 0; i < 16; ++i) {
      _w[i] = input.getInt32();
    }
    for(; i < 64; ++i) {
      // XOR word 2 words ago rot right 17, rot right 19, shft right 10
      t1 = _w[i - 2];
      t1 =
        ((t1 >>> 17) | (t1 << 15)) ^
        ((t1 >>> 19) | (t1 << 13)) ^
        (t1 >>> 10);
      // XOR word 15 words ago rot right 7, rot right 18, shft right 3
      t2 = _w[i - 15];
      t2 =
        ((t2 >>> 7) | (t2 << 25)) ^
        ((t2 >>> 18) | (t2 << 14)) ^
        (t2 >>> 3);
      // sum(t1, word 7 ago, t2, word 16 ago) modulo 2^32
      _w[i] = (t1 + _w[i - 7] + t2 + _w[i - 16]) | 0;
    }

    // initialize hash value for this chunk
    a = s.h0;
    b = s.h1;
    c = s.h2;
    d = s.h3;
    e = s.h4;
    f = s.h5;
    g = s.h6;
    h = s.h7;

    // round function
    for(i = 0; i < 64; ++i) {
      // Sum1(e)
      s1 =
        ((e >>> 6) | (e << 26)) ^
        ((e >>> 11) | (e << 21)) ^
        ((e >>> 25) | (e << 7));
      // Ch(e, f, g) (optimized the same way as SHA-1)
      ch = g ^ (e & (f ^ g));
      // Sum0(a)
      s0 =
        ((a >>> 2) | (a << 30)) ^
        ((a >>> 13) | (a << 19)) ^
        ((a >>> 22) | (a << 10));
      // Maj(a, b, c) (optimized the same way as SHA-1)
      maj = (a & b) | (c & (a ^ b));

      // main algorithm
      t1 = h + s1 + ch + _k[i] + _w[i];
      t2 = s0 + maj;
      h = g;
      g = f;
      f = e;
      e = (d + t1) | 0;
      d = c;
      c = b;
      b = a;
      a = (t1 + t2) | 0;
    }

    // update hash state
    s.h0 = (s.h0 + a) | 0;
    s.h1 = (s.h1 + b) | 0;
    s.h2 = (s.h2 + c) | 0;
    s.h3 = (s.h3 + d) | 0;
    s.h4 = (s.h4 + e) | 0;
    s.h5 = (s.h5 + f) | 0;
    s.h6 = (s.h6 + g) | 0;
    s.h7 = (s.h7 + h) | 0;
    len -= 64;
  }

  return s;
};

sha256._createState = function() {
  var state = {
    h0: 0x6A09E667,
    h1: 0xBB67AE85,
    h2: 0x3C6EF372,
    h3: 0xA54FF53A,
    h4: 0x510E527F,
    h5: 0x9B05688C,
    h6: 0x1F83D9AB,
    h7: 0x5BE0CD19
  };
  state.copy = function() {
    var rval = sha256._createState();
    rval.h0 = state.h0;
    rval.h1 = state.h1;
    rval.h2 = state.h2;
    rval.h3 = state.h3;
    rval.h4 = state.h4;
    rval.h5 = state.h5;
    rval.h6 = state.h6;
    rval.h7 = state.h7;
    return rval;
  };
  state.write = function(buffer) {
    buffer.putInt32(state.h0);
    buffer.putInt32(state.h1);
    buffer.putInt32(state.h2);
    buffer.putInt32(state.h3);
    buffer.putInt32(state.h4);
    buffer.putInt32(state.h5);
    buffer.putInt32(state.h6);
    buffer.putInt32(state.h7);
  };
  return state;
};

sha256._init = function() {
  // create K table for SHA-256
  sha256._k = [
    0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
    0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
    0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,
    0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
    0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,
    0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
    0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,
    0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
    0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,
    0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
    0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,
    0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
    0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,
    0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
    0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,
    0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2];

  // used for word storage
  sha256._w = new Array(64);
};

})(_nodejs); // end definition of NormalizeHash

if(!XMLSerializer) {

var _defineXMLSerializer = function() {
  XMLSerializer = _dereq_('xmldom').XMLSerializer;
};

} // end _defineXMLSerializer

// define URL parser
// parseUri 1.2.2
// (c) Steven Levithan <stevenlevithan.com>
// MIT License
// with local jsonld.js modifications
jsonld.url = {};
jsonld.url.parsers = {
  simple: {
    // RFC 3986 basic parts
    keys: ['href','scheme','authority','path','query','fragment'],
    regex: /^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/
  },
  full: {
    keys: ['href','protocol','scheme','authority','auth','user','password','hostname','port','path','directory','file','query','fragment'],
    regex: /^(([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/
  }
};
jsonld.url.parse = function(str, parser) {
  var parsed = {};
  var o = jsonld.url.parsers[parser || 'full'];
  var m = o.regex.exec(str);
  var i = o.keys.length;
  while(i--) {
    parsed[o.keys[i]] = (m[i] === undefined) ? null : m[i];
  }
  parsed.normalizedPath = _removeDotSegments(parsed.path, !!parsed.authority);
  return parsed;
};

/**
 * Removes dot segments from a URL path.
 *
 * @param path the path to remove dot segments from.
 * @param hasAuthority true if the URL has an authority, false if not.
 */
function _removeDotSegments(path, hasAuthority) {
  var rval = '';

  if(path.indexOf('/') === 0) {
    rval = '/';
  }

  // RFC 3986 5.2.4 (reworked)
  var input = path.split('/');
  var output = [];
  while(input.length > 0) {
    if(input[0] === '.' || (input[0] === '' && input.length > 1)) {
      input.shift();
      continue;
    }
    if(input[0] === '..') {
      input.shift();
      if(hasAuthority ||
        (output.length > 0 && output[output.length - 1] !== '..')) {
        output.pop();
      } else {
        // leading relative URL '..'
        output.push('..');
      }
      continue;
    }
    output.push(input.shift());
  }

  return rval + output.join('/');
}

if(_nodejs) {
  // use node document loader by default
  jsonld.useDocumentLoader('node');
} else if(typeof XMLHttpRequest !== 'undefined') {
  // use xhr document loader by default
  jsonld.useDocumentLoader('xhr');
}

if(_nodejs) {
  jsonld.use = function(extension) {
    switch(extension) {
      // TODO: Deprecated as of 0.4.0. Remove at some point.
      default:
        throw new JsonLdError(
          'Unknown extension.',
          'jsonld.UnknownExtension', {extension: extension});
    }
  };

  // expose version
  var _module = {exports: {}, filename: __dirname};
  _dereq_('pkginfo')(_module, 'version');
  jsonld.version = _module.exports.version;
}

// end of jsonld API factory
return jsonld;
};

// external APIs:

// used to generate a new jsonld API instance
var factory = function() {
  return wrapper(function() {
    return factory();
  });
};

if(!_nodejs && (typeof define === 'function' && define.amd)) {
  // export AMD API
  define([], function() {
    // now that module is defined, wrap main jsonld API instance
    wrapper(factory);
    return factory;
  });
} else {
  // wrap the main jsonld API instance
  wrapper(factory);

  if(typeof _dereq_ === 'function' &&
    typeof module !== 'undefined' && module.exports) {
    // export CommonJS/nodejs API
    module.exports = factory;
  }

  if(_browser) {
    // export simple browser API
    if(typeof jsonld === 'undefined') {
      jsonld = jsonldjs = factory;
    } else {
      jsonldjs = factory;
    }
  }
}

return factory;

})();

}).call(this,_dereq_("g5I+bs"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},"/node_modules/jsonld/js")
},{"crypto":19,"es6-promise":14,"g5I+bs":30,"http":19,"pkginfo":19,"request":19,"util":19,"xmldom":19}],21:[function(_dereq_,module,exports){
/**
 * Helpers.
 */

var s = 1000;
var m = s * 60;
var h = m * 60;
var d = h * 24;
var y = d * 365.25;

/**
 * Parse or format the given `val`.
 *
 * Options:
 *
 *  - `long` verbose formatting [false]
 *
 * @param {String|Number} val
 * @param {Object} [options]
 * @throws {Error} throw an error if val is not a non-empty string or a number
 * @return {String|Number}
 * @api public
 */

module.exports = function(val, options) {
  options = options || {};
  var type = typeof val;
  if (type === 'string' && val.length > 0) {
    return parse(val);
  } else if (type === 'number' && isNaN(val) === false) {
    return options.long ? fmtLong(val) : fmtShort(val);
  }
  throw new Error(
    'val is not a non-empty string or a valid number. val=' +
      JSON.stringify(val)
  );
};

/**
 * Parse the given `str` and return milliseconds.
 *
 * @param {String} str
 * @return {Number}
 * @api private
 */

function parse(str) {
  str = String(str);
  if (str.length > 100) {
    return;
  }
  var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(
    str
  );
  if (!match) {
    return;
  }
  var n = parseFloat(match[1]);
  var type = (match[2] || 'ms').toLowerCase();
  switch (type) {
    case 'years':
    case 'year':
    case 'yrs':
    case 'yr':
    case 'y':
      return n * y;
    case 'days':
    case 'day':
    case 'd':
      return n * d;
    case 'hours':
    case 'hour':
    case 'hrs':
    case 'hr':
    case 'h':
      return n * h;
    case 'minutes':
    case 'minute':
    case 'mins':
    case 'min':
    case 'm':
      return n * m;
    case 'seconds':
    case 'second':
    case 'secs':
    case 'sec':
    case 's':
      return n * s;
    case 'milliseconds':
    case 'millisecond':
    case 'msecs':
    case 'msec':
    case 'ms':
      return n;
    default:
      return undefined;
  }
}

/**
 * Short format for `ms`.
 *
 * @param {Number} ms
 * @return {String}
 * @api private
 */

function fmtShort(ms) {
  if (ms >= d) {
    return Math.round(ms / d) + 'd';
  }
  if (ms >= h) {
    return Math.round(ms / h) + 'h';
  }
  if (ms >= m) {
    return Math.round(ms / m) + 'm';
  }
  if (ms >= s) {
    return Math.round(ms / s) + 's';
  }
  return ms + 'ms';
}

/**
 * Long format for `ms`.
 *
 * @param {Number} ms
 * @return {String}
 * @api private
 */

function fmtLong(ms) {
  return plural(ms, d, 'day') ||
    plural(ms, h, 'hour') ||
    plural(ms, m, 'minute') ||
    plural(ms, s, 'second') ||
    ms + ' ms';
}

/**
 * Pluralization helper.
 */

function plural(ms, n, name) {
  if (ms < n) {
    return;
  }
  if (ms < n * 1.5) {
    return Math.floor(ms / n) + ' ' + name;
  }
  return Math.ceil(ms / n) + ' ' + name + 's';
}

},{}],22:[function(_dereq_,module,exports){
// Replace local require by a lazy loader
var globalRequire = _dereq_;
_dereq_ = function () {};

// Expose submodules
var exports = module.exports = {
  Lexer:        _dereq_('./lib/N3Lexer'),
  Parser:       _dereq_('./lib/N3Parser'),
  Writer:       _dereq_('./lib/N3Writer'),
  Store:        _dereq_('./lib/N3Store'),
  StreamParser: _dereq_('./lib/N3StreamParser'),
  StreamWriter: _dereq_('./lib/N3StreamWriter'),
  Util:         _dereq_('./lib/N3Util'),
};

// Load submodules on first access
Object.keys(exports).forEach(function (submodule) {
  Object.defineProperty(exports, submodule, {
    configurable: true,
    enumerable: true,
    get: function () {
      delete exports[submodule];
      return exports[submodule] = globalRequire('./lib/N3' + submodule);
    },
  });
});

},{"./lib/N3Lexer":23,"./lib/N3Parser":24,"./lib/N3Store":25,"./lib/N3StreamParser":26,"./lib/N3StreamWriter":27,"./lib/N3Util":28,"./lib/N3Writer":29}],23:[function(_dereq_,module,exports){
// **N3Lexer** tokenizes N3 documents.
var fromCharCode = String.fromCharCode;
var immediately = typeof setImmediate === 'function' ? setImmediate :
                  function setImmediate(func) { setTimeout(func, 0); };

// Regular expression and replacement string to escape N3 strings.
// Note how we catch invalid unicode sequences separately (they will trigger an error).
var escapeSequence = /\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\[uU]|\\(.)/g;
var escapeReplacements = { '\\': '\\', "'": "'", '"': '"',
                           'n': '\n', 'r': '\r', 't': '\t', 'f': '\f', 'b': '\b',
                           '_': '_', '~': '~', '.': '.', '-': '-', '!': '!', '$': '$', '&': '&',
                           '(': '(', ')': ')', '*': '*', '+': '+', ',': ',', ';': ';', '=': '=',
                           '/': '/', '?': '?', '#': '#', '@': '@', '%': '%' };
var illegalIriChars = /[\x00-\x20<>\\"\{\}\|\^\`]/;

// ## Constructor
function N3Lexer(options) {
  if (!(this instanceof N3Lexer))
    return new N3Lexer(options);

  // In line mode (N-Triples or N-Quads), only simple features may be parsed
  if (options && options.lineMode) {
    // Don't tokenize special literals
    this._tripleQuotedString = this._number = this._boolean = /$0^/;
    // Swap the tokenize method for a restricted version
    var self = this;
    this._tokenize = this.tokenize;
    this.tokenize = function (input, callback) {
      this._tokenize(input, function (error, token) {
        if (!error && /^(?:IRI|prefixed|literal|langcode|type|\.|eof)$/.test(token.type))
          callback && callback(error, token);
        else
          callback && callback(error || self._syntaxError(token.type, callback = null));
      });
    };
  }
}

N3Lexer.prototype = {
  // ## Regular expressions
  // It's slightly faster to have these as properties than as in-scope variables.

  _iri: /^<((?:[^>\\]|\\[uU])+)>/, // IRI with escape sequences; needs sanity check after unescaping
  _unescapedIri: /^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>/, // IRI without escape sequences; no unescaping
  _unescapedString: /^"[^"\\]+"(?=[^"\\])/, // non-empty string without escape sequences
  _singleQuotedString: /^"[^"\\]*(?:\\.[^"\\]*)*"(?=[^"\\])|^'[^'\\]*(?:\\.[^'\\]*)*'(?=[^'\\])/,
  _tripleQuotedString: /^""("[^"\\]*(?:(?:\\.|"(?!""))[^"\\]*)*")""|^''('[^'\\]*(?:(?:\\.|'(?!''))[^'\\]*)*')''/,
  _langcode: /^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,
  _prefix: /^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,
  _prefixed: /^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?=\.?[,;\s#()\[\]\{\}"'<])/,
  _blank: /^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=\.?[,;:\s#()\[\]\{\}"'<])/,
  _number: /^[\-+]?(?:\d+\.?\d*([eE](?:[\-\+])?\d+)|\d*\.?\d+)(?=[.,;:\s#()\[\]\{\}"'<])/,
  _boolean: /^(?:true|false)(?=[.,;:\s#()\[\]\{\}"'<])/,
  _keyword: /^@[a-z]+(?=[\s#<:])/,
  _sparqlKeyword: /^(?:PREFIX|BASE|GRAPH)(?=[\s#<:])/i,
  _shortPredicates: /^a(?=\s+|<)/,
  _newline: /^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,
  _whitespace: /^[ \t]+/,
  _endOfFile: /^(?:#[^\n\r]*)?$/,

  // ## Private methods

  // ### `_tokenizeToEnd` tokenizes as for as possible, emitting tokens through the callback.
  _tokenizeToEnd: function (callback, inputFinished) {
    // Continue parsing as far as possible; the loop will return eventually.
    var input = this._input;
    while (true) {
      // Count and skip whitespace lines.
      var whiteSpaceMatch;
      while (whiteSpaceMatch = this._newline.exec(input))
        input = input.substr(whiteSpaceMatch[0].length, input.length), this._line++;
      // Skip whitespace on current line.
      if (whiteSpaceMatch = this._whitespace.exec(input))
        input = input.substr(whiteSpaceMatch[0].length, input.length);

      // Stop for now if we're at the end.
      if (this._endOfFile.test(input)) {
        // If the input is finished, emit EOF.
        if (inputFinished)
          callback(input = null, { line: this._line, type: 'eof', value: '', prefix: '' });
        return this._input = input;
      }

      // Look for specific token types based on the first character.
      var line = this._line, type = '', value = '', prefix = '',
          firstChar = input[0], match = null, matchLength = 0, unescaped, inconclusive = false;
      switch (firstChar) {
      case '^':
        // Try to match a type.
        if (input.length === 1) break;
        else if (input[1] !== '^') return reportSyntaxError(this);
        this._prevTokenType = '^';
        // Move to type IRI or prefixed name.
        input = input.substr(2);
        if (input[0] !== '<') {
          inconclusive = true;
          break;
        }
        // Fall through in case the type is an IRI.

      case '<':
        // Try to find a full IRI without escape sequences.
        if (match = this._unescapedIri.exec(input))
          type = 'IRI', value = match[1];
        // Try to find a full IRI with escape sequences.
        else if (match = this._iri.exec(input)) {
          unescaped = this._unescape(match[1]);
          if (unescaped === null || illegalIriChars.test(unescaped))
            return reportSyntaxError(this);
          type = 'IRI', value = unescaped;
        }
        break;

      case '_':
        // Try to find a blank node. Since it can contain (but not end with) a dot,
        // we always need a non-dot character before deciding it is a prefixed name.
        // Therefore, try inserting a space if we're at the end of the input.
        if ((match = this._blank.exec(input)) ||
            inputFinished && (match = this._blank.exec(input + ' ')))
          type = 'prefixed', prefix = '_', value = match[1];
        break;

      case '"':
      case "'":
        // Try to find a non-empty double-quoted literal without escape sequences.
        if (match = this._unescapedString.exec(input))
          type = 'literal', value = match[0];
        // Try to find any other literal wrapped in a pair of single or double quotes.
        else if (match = this._singleQuotedString.exec(input)) {
          unescaped = this._unescape(match[0]);
          if (unescaped === null)
            return reportSyntaxError(this);
          type = 'literal', value = unescaped.replace(/^'|'$/g, '"');
        }
        // Try to find a literal wrapped in three pairs of single or double quotes.
        else if (match = this._tripleQuotedString.exec(input)) {
          unescaped = match[1] || match[2];
          // Count the newlines and advance line counter.
          this._line += unescaped.split(/\r\n|\r|\n/).length - 1;
          unescaped = this._unescape(unescaped);
          if (unescaped === null)
            return reportSyntaxError(this);
          type = 'literal', value = unescaped.replace(/^'|'$/g, '"');
        }
        break;

      case '@':
        // Try to find a language code.
        if (this._prevTokenType === 'literal' && (match = this._langcode.exec(input)))
          type = 'langcode', value = match[1];
        // Try to find a keyword.
        else if (match = this._keyword.exec(input))
          type = match[0];
        break;

      case '.':
        // Try to find a dot as punctuation.
        if (input.length === 1 ? inputFinished : (input[1] < '0' || input[1] > '9')) {
          type = '.';
          matchLength = 1;
          break;
        }
        // Fall through to numerical case (could be a decimal dot).

      case '0':
      case '1':
      case '2':
      case '3':
      case '4':
      case '5':
      case '6':
      case '7':
      case '8':
      case '9':
      case '+':
      case '-':
        // Try to find a number.
        if (match = this._number.exec(input)) {
          type = 'literal';
          value = '"' + match[0] + '"^^http://www.w3.org/2001/XMLSchema#' +
                  (match[1] ? 'double' : (/^[+\-]?\d+$/.test(match[0]) ? 'integer' : 'decimal'));
        }
        break;

      case 'B':
      case 'b':
      case 'p':
      case 'P':
      case 'G':
      case 'g':
        // Try to find a SPARQL-style keyword.
        if (match = this._sparqlKeyword.exec(input))
          type = match[0].toUpperCase();
        else
          inconclusive = true;
        break;

      case 'f':
      case 't':
        // Try to match a boolean.
        if (match = this._boolean.exec(input))
          type = 'literal', value = '"' + match[0] + '"^^http://www.w3.org/2001/XMLSchema#boolean';
        else
          inconclusive = true;
        break;

      case 'a':
        // Try to find an abbreviated predicate.
        if (match = this._shortPredicates.exec(input))
          type = 'abbreviation', value = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type';
        else
          inconclusive = true;
        break;

      case ',':
      case ';':
      case '[':
      case ']':
      case '(':
      case ')':
      case '{':
      case '}':
        // The next token is punctuation
        matchLength = 1;
        type = firstChar;
        break;

      default:
        inconclusive = true;
      }

      // Some first characters do not allow an immediate decision, so inspect more.
      if (inconclusive) {
        // Try to find a prefix.
        if ((this._prevTokenType === '@prefix' || this._prevTokenType === 'PREFIX') &&
            (match = this._prefix.exec(input)))
          type = 'prefix', value = match[1] || '';
        // Try to find a prefixed name. Since it can contain (but not end with) a dot,
        // we always need a non-dot character before deciding it is a prefixed name.
        // Therefore, try inserting a space if we're at the end of the input.
        else if ((match = this._prefixed.exec(input)) ||
                 inputFinished && (match = this._prefixed.exec(input + ' ')))
          type = 'prefixed', prefix = match[1] || '', value = this._unescape(match[2]);
      }

      // A type token is special: it can only be emitted after an IRI or prefixed name is read.
      if (this._prevTokenType === '^')
        type = (type === 'IRI' || type === 'prefixed') ? 'type' : '';

      // What if nothing of the above was found?
      if (!type) {
        // We could be in streaming mode, and then we just wait for more input to arrive.
        // Otherwise, a syntax error has occurred in the input.
        // One exception: error on an unaccounted linebreak (= not inside a triple-quoted literal).
        if (inputFinished || (!/^'''|^"""/.test(input) && /\n|\r/.test(input)))
          return reportSyntaxError(this);
        else
          return this._input = input;
      }

      // Emit the parsed token.
      callback(null, { line: line, type: type, value: value, prefix: prefix });
      this._prevTokenType = type;

      // Advance to next part to tokenize.
      input = input.substr(matchLength || match[0].length, input.length);
    }

    // Signals the syntax error through the callback
    function reportSyntaxError(self) { callback(self._syntaxError(/^\S*/.exec(input)[0])); }
  },

  // ### `_unescape` replaces N3 escape codes by their corresponding characters.
  _unescape: function (item) {
    try {
      return item.replace(escapeSequence, function (sequence, unicode4, unicode8, escapedChar) {
        var charCode;
        if (unicode4) {
          charCode = parseInt(unicode4, 16);
          if (isNaN(charCode)) throw new Error(); // can never happen (regex), but helps performance
          return fromCharCode(charCode);
        }
        else if (unicode8) {
          charCode = parseInt(unicode8, 16);
          if (isNaN(charCode)) throw new Error(); // can never happen (regex), but helps performance
          if (charCode <= 0xFFFF) return fromCharCode(charCode);
          return fromCharCode(0xD800 + ((charCode -= 0x10000) / 0x400), 0xDC00 + (charCode & 0x3FF));
        }
        else {
          var replacement = escapeReplacements[escapedChar];
          if (!replacement)
            throw new Error();
          return replacement;
        }
      });
    }
    catch (error) { return null; }
  },

  // ### `_syntaxError` creates a syntax error for the given issue
  _syntaxError: function (issue) {
    this._input = null;
    return new Error('Syntax error: unexpected "' + issue + '" on line ' + this._line + '.');
  },


  // ## Public methods

  // ### `tokenize` starts the transformation of an N3 document into an array of tokens.
  // The input can be a string or a stream.
  tokenize: function (input, callback) {
    var self = this;
    this._line = 1;

    // If the input is a string, continuously emit tokens through the callback until the end.
    if (typeof input === 'string') {
      this._input = input;
      immediately(function () { self._tokenizeToEnd(callback, true); });
    }
    // Otherwise, the input will be streamed.
    else {
      this._input = '';

      // If no input was given, it will be streamed through `addChunk` and ended with `end`
      if (!input || typeof input === 'function') {
        this.addChunk = addChunk;
        this.end = end;
        if (!callback)
          callback = input;
      }
      // Otherwise, the input itself must be a stream
      else {
        if (typeof input.setEncoding === 'function')
          input.setEncoding('utf8');
        input.on('data', addChunk);
        input.on('end', end);
      }
    }

    // Adds the data chunk to the buffer and parses as far as possible
    function addChunk(data) {
      if (self._input !== null) {
        self._input += data;
        self._tokenizeToEnd(callback, false);
      }
    }

    // Parses until the end
    function end() {
      if (self._input !== null)
        self._tokenizeToEnd(callback, true);
    }
  },
};

// ## Exports

// Export the `N3Lexer` class as a whole.
module.exports = N3Lexer;

},{}],24:[function(_dereq_,module,exports){
// **N3Parser** parses N3 documents.
var N3Lexer = _dereq_('./N3Lexer');

var RDF_PREFIX = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
    RDF_NIL    = RDF_PREFIX + 'nil',
    RDF_FIRST  = RDF_PREFIX + 'first',
    RDF_REST   = RDF_PREFIX + 'rest';

var absoluteIRI = /^[a-z][a-z0-9+.-]*:/i,
    schemeAuthority = /^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i,
    dotSegments = /(?:^|\/)\.\.?(?:$|[\/#?])/;

// The next ID for new blank nodes
var blankNodePrefix = 0, blankNodeCount = 0;

// ## Constructor
function N3Parser(options) {
  if (!(this instanceof N3Parser))
    return new N3Parser(options);
  this._tripleStack = [];
  this._graph = null;

  // Set the document IRI.
  options = options || {};
  this._setBase(options.documentIRI);

  // Set supported features depending on the format.
  var format = (typeof options.format === 'string') && options.format.match(/\w*$/)[0].toLowerCase(),
      isTurtle = format === 'turtle', isTriG = format === 'trig',
      isNTriples = /triple/.test(format), isNQuads = /quad/.test(format),
      isLineMode = isNTriples || isNQuads;
  if (!(this._supportsNamedGraphs = !isTurtle))
    this._readPredicateOrNamedGraph = this._readPredicate;
  this._supportsQuads = !(isTurtle || isTriG || isNTriples);
  // Disable relative IRIs in N-Triples or N-Quads mode
  if (isLineMode) {
    this._base = '';
    this._resolveIRI = function (token) {
      this._error('Disallowed relative IRI', token);
      return this._callback = noop, this._subject = null;
    };
  }
  this._blankNodePrefix = typeof options.blankNodePrefix !== 'string' ? '' :
                            '_:' + options.blankNodePrefix.replace(/^_:/, '');
  this._lexer = options.lexer || new N3Lexer({ lineMode: isLineMode });
}

// ## Private class methods

// ### `_resetBlankNodeIds` restarts blank node identification.
N3Parser._resetBlankNodeIds = function () {
  blankNodePrefix = blankNodeCount = 0;
};

N3Parser.prototype = {
  // ## Private methods

  // ### `_setBase` sets the base IRI to resolve relative IRIs.
  _setBase: function (baseIRI) {
    if (!baseIRI)
      baseIRI = null;
    else if (baseIRI.indexOf('#') >= 0)
      throw new Error('Invalid base IRI ' + baseIRI);
    // Set base IRI and its components
    if (this._base = baseIRI) {
      this._basePath   = baseIRI.replace(/[^\/?]*(?:\?.*)?$/, '');
      baseIRI = baseIRI.match(schemeAuthority);
      this._baseRoot   = baseIRI[0];
      this._baseScheme = baseIRI[1];
    }
  },

  // ### `_readInTopContext` reads a token when in the top context.
  _readInTopContext: function (token) {
    switch (token.type) {
    // If an EOF token arrives in the top context, signal that we're done.
    case 'eof':
      if (this._graph !== null)
        return this._error('Unclosed graph', token);
      delete this._prefixes._;
      return this._callback(null, null, this._prefixes);
    // It could be a prefix declaration.
    case '@prefix':
      this._sparqlStyle = false;
      return this._readPrefix;
    case 'PREFIX':
      this._sparqlStyle = true;
      return this._readPrefix;
    // It could be a base declaration.
    case '@base':
      this._sparqlStyle = false;
      return this._readBaseIRI;
    case 'BASE':
      this._sparqlStyle = true;
      return this._readBaseIRI;
    // It could be a graph.
    case '{':
      if (this._supportsNamedGraphs) {
        this._graph = '';
        this._subject = null;
        return this._readSubject;
      }
    case 'GRAPH':
      if (this._supportsNamedGraphs)
        return this._readNamedGraphLabel;
    // Otherwise, the next token must be a subject.
    default:
      return this._readSubject(token);
    }
  },

  // ### `_readSubject` reads a triple's subject.
  _readSubject: function (token) {
    this._predicate = null;
    switch (token.type) {
    case 'IRI':
      if (this._base === null || absoluteIRI.test(token.value))
        this._subject = token.value;
      else
        this._subject = this._resolveIRI(token);
      break;
    case 'prefixed':
      var prefix = this._prefixes[token.prefix];
      if (prefix === undefined)
        return this._error('Undefined prefix "' + token.prefix + ':"', token);
      this._subject = prefix + token.value;
      break;
    case '[':
      // Start a new triple with a new blank node as subject.
      this._subject = '_:b' + blankNodeCount++;
      this._tripleStack.push({ subject: this._subject, predicate: null, object: null, type: 'blank' });
      return this._readBlankNodeHead;
    case '(':
      // Start a new list
      this._tripleStack.push({ subject: RDF_NIL, predicate: null, object: null, type: 'list' });
      this._subject = null;
      return this._readListItem;
    case '}':
      return this._readPunctuation(token);
    default:
      return this._error('Expected subject but got ' + token.type, token);
    }
    // The next token must be a predicate,
    // or, if the subject was actually a graph IRI, a named graph.
    return this._readPredicateOrNamedGraph;
  },

  // ### `_readPredicate` reads a triple's predicate.
  _readPredicate: function (token) {
    var type = token.type;
    switch (type) {
    case 'IRI':
    case 'abbreviation':
      if (this._base === null || absoluteIRI.test(token.value))
        this._predicate = token.value;
      else
        this._predicate = this._resolveIRI(token);
      break;
    case 'prefixed':
      if (token.prefix === '_')
        return this._error('Disallowed blank node as predicate', token);
      var prefix = this._prefixes[token.prefix];
      if (prefix === undefined)
        return this._error('Undefined prefix "' + token.prefix + ':"', token);
      this._predicate = prefix + token.value;
      break;
    case '.':
    case ']':
    case '}':
      // Expected predicate didn't come, must have been trailing semicolon.
      if (this._predicate === null)
        return this._error('Unexpected ' + type, token);
      this._subject = null;
      return type === ']' ? this._readBlankNodeTail(token) : this._readPunctuation(token);
    case ';':
      // Extra semicolons can be safely ignored
      return this._readPredicate;
    default:
      return this._error('Expected predicate to follow "' + this._subject + '"', token);
    }
    // The next token must be an object.
    return this._readObject;
  },

  // ### `_readObject` reads a triple's object.
  _readObject: function (token) {
    switch (token.type) {
    case 'IRI':
      if (this._base === null || absoluteIRI.test(token.value))
        this._object = token.value;
      else
        this._object = this._resolveIRI(token);
      break;
    case 'prefixed':
      var prefix = this._prefixes[token.prefix];
      if (prefix === undefined)
        return this._error('Undefined prefix "' + token.prefix + ':"', token);
      this._object = prefix + token.value;
      break;
    case 'literal':
      this._object = token.value;
      return this._readDataTypeOrLang;
    case '[':
      // Start a new triple with a new blank node as subject.
      var blank = '_:b' + blankNodeCount++;
      this._tripleStack.push({ subject: this._subject, predicate: this._predicate, object: blank, type: 'blank' });
      this._subject = blank;
      return this._readBlankNodeHead;
    case '(':
      // Start a new list
      this._tripleStack.push({ subject: this._subject, predicate: this._predicate, object: RDF_NIL, type: 'list' });
      this._subject = null;
      return this._readListItem;
    default:
      return this._error('Expected object to follow "' + this._predicate + '"', token);
    }
    return this._getTripleEndReader();
  },

  // ### `_readPredicateOrNamedGraph` reads a triple's predicate, or a named graph.
  _readPredicateOrNamedGraph: function (token) {
    return token.type === '{' ? this._readGraph(token) : this._readPredicate(token);
  },

  // ### `_readGraph` reads a graph.
  _readGraph: function (token) {
    if (token.type !== '{')
      return this._error('Expected graph but got ' + token.type, token);
    // The "subject" we read is actually the GRAPH's label
    this._graph = this._subject, this._subject = null;
    return this._readSubject;
  },

  // ### `_readBlankNodeHead` reads the head of a blank node.
  _readBlankNodeHead: function (token) {
    if (token.type === ']') {
      this._subject = null;
      return this._readBlankNodeTail(token);
    }
    else {
      this._predicate = null;
      return this._readPredicate(token);
    }
  },

  // ### `_readBlankNodeTail` reads the end of a blank node.
  _readBlankNodeTail: function (token) {
    if (token.type !== ']')
      return this._readBlankNodePunctuation(token);

    // Store blank node triple.
    if (this._subject !== null)
      this._callback(null, { subject:   this._subject,
                             predicate: this._predicate,
                             object:    this._object,
                             graph:     this._graph || '' });

    // Restore parent triple that contains the blank node.
    var triple = this._tripleStack.pop();
    this._subject = triple.subject;
    // Was the blank node the object?
    if (triple.object !== null) {
      // Restore predicate and object as well, and continue by reading punctuation.
      this._predicate = triple.predicate;
      this._object = triple.object;
      return this._getTripleEndReader();
    }
    // The blank node was the subject, so continue reading the predicate.
    // If the blank node didn't contain any predicates, it could also be the label of a named graph.
    return this._predicate !== null ? this._readPredicate : this._readPredicateOrNamedGraph;
  },

  // ### `_readDataTypeOrLang` reads an _optional_ data type or language.
  _readDataTypeOrLang: function (token) {
    switch (token.type) {
    case 'type':
      var value;
      if (token.prefix === '') {
        if (this._base === null || absoluteIRI.test(token.value))
          value = token.value;
        else
          value = this._resolveIRI(token);
      }
      else {
        var prefix = this._prefixes[token.prefix];
        if (prefix === undefined)
          return this._error('Undefined prefix "' + token.prefix + ':"', token);
        value = prefix + token.value;
      }
      this._object += '^^' + value;
      return this._getTripleEndReader();
    case 'langcode':
      this._object += '@' + token.value.toLowerCase();
      return this._getTripleEndReader();
    default:
      return this._getTripleEndReader().call(this, token);
    }
  },

  // ### `_readListItem` reads items from a list.
  _readListItem: function (token) {
    var item = null,                  // The actual list item.
        itemHead = null,              // The head of the rdf:first predicate.
        prevItemHead = this._subject, // The head of the previous rdf:first predicate.
        stack = this._tripleStack,    // The stack of triples part of recursion (lists, blanks, etc.).
        parentTriple = stack[stack.length - 1], // The triple containing the current list.
        next = this._readListItem;    // The next function to execute.

    switch (token.type) {
    case 'IRI':
      if (this._base === null || absoluteIRI.test(token.value))
        item = token.value;
      else
        item = this._resolveIRI(token);
      break;
    case 'prefixed':
      var prefix = this._prefixes[token.prefix];
      if (prefix === undefined)
        return this._error('Undefined prefix "' + token.prefix + ':"', token);
      item = prefix + token.value;
      break;
    case 'literal':
      item = token.value;
      next = this._readDataTypeOrLang;
      break;
    case '[':
      // Stack the current list triple and start a new triple with a blank node as subject.
      itemHead = '_:b' + blankNodeCount++;
      item     = '_:b' + blankNodeCount++;
      stack.push({ subject: itemHead, predicate: RDF_FIRST, object: item, type: 'blank' });
      this._subject = item;
      next = this._readBlankNodeHead;
      break;
    case '(':
      // Stack the current list triple and start a new list
      itemHead = '_:b' + blankNodeCount++;
      stack.push({ subject: itemHead, predicate: RDF_FIRST, object: RDF_NIL, type: 'list' });
      this._subject = null;
      next = this._readListItem;
      break;
    case ')':
      // Restore the parent triple.
      stack.pop();
      // If this list is contained within a parent list, return the membership triple here.
      // This will be `<parent list element> rdf:first <this list>.`.
      if (stack.length !== 0 && stack[stack.length - 1].type === 'list')
        this._callback(null, { subject:   parentTriple.subject,
                               predicate: parentTriple.predicate,
                               object:    parentTriple.object,
                               graph:     this._graph || '' });
      // Restore the parent triple's subject.
      this._subject = parentTriple.subject;
      // Was this list in the parent triple's subject?
      if (parentTriple.predicate === null) {
        // The next token is the predicate.
        next = this._readPredicate;
        // Skip writing the list tail if this was an empty list.
        if (parentTriple.subject === RDF_NIL)
          return next;
      }
      // The list was in the parent triple's object.
      else {
        // Restore the parent triple's predicate and object as well.
        this._predicate = parentTriple.predicate;
        this._object = parentTriple.object;
        next = this._getTripleEndReader();
        // Skip writing the list tail if this was an empty list.
        if (parentTriple.object === RDF_NIL)
          return next;
      }
      // Close the list by making the item head nil.
      itemHead = RDF_NIL;
      break;
    default:
      return this._error('Expected list item instead of "' + token.type + '"', token);
    }

     // Create a new blank node if no item head was assigned yet.
    if (itemHead === null)
      this._subject = itemHead = '_:b' + blankNodeCount++;

    // Is this the first element of the list?
    if (prevItemHead === null) {
      // This list is either the object or the subject.
      if (parentTriple.object === RDF_NIL)
        parentTriple.object = itemHead;
      else
        parentTriple.subject = itemHead;
    }
    else {
      // The rest of the list is in the current head.
      this._callback(null, { subject:   prevItemHead,
                             predicate: RDF_REST,
                             object:    itemHead,
                             graph:     this._graph || '' });
    }
    // Add the item's value.
    if (item !== null)
      this._callback(null, { subject:   itemHead,
                             predicate: RDF_FIRST,
                             object:    item,
                             graph:     this._graph || '' });
    return next;
  },

  // ### `_readPunctuation` reads punctuation between triples or triple parts.
  _readPunctuation: function (token) {
    var next, subject = this._subject, graph = this._graph;
    switch (token.type) {
    // A closing brace ends a graph
    case '}':
      if (this._graph === null)
        return this._error('Unexpected graph closing', token);
      this._graph = null;
    // A dot just ends the statement, without sharing anything with the next.
    case '.':
      this._subject = null;
      next = this._readInTopContext;
      break;
    // Semicolon means the subject is shared; predicate and object are different.
    case ';':
      next = this._readPredicate;
      break;
    // Comma means both the subject and predicate are shared; the object is different.
    case ',':
      next = this._readObject;
      break;
    // An IRI means this is a quad (only allowed if not already inside a graph).
    case 'IRI':
      if (this._supportsQuads && this._graph === null) {
        if (this._base === null || absoluteIRI.test(token.value))
          graph = token.value;
        else
          graph = this._resolveIRI(token);
        subject = this._subject;
        next = this._readQuadPunctuation;
        break;
      }
    // An prefixed name means this is a quad (only allowed if not already inside a graph).
    case 'prefixed':
      if (this._supportsQuads && this._graph === null) {
        var prefix = this._prefixes[token.prefix];
        if (prefix === undefined)
          return this._error('Undefined prefix "' + token.prefix + ':"', token);
        graph = prefix + token.value;
        next = this._readQuadPunctuation;
        break;
      }
    default:
      return this._error('Expected punctuation to follow "' + this._object + '"', token);
    }
    // A triple has been completed now, so return it.
    if (subject !== null)
      this._callback(null, { subject:   subject,
                             predicate: this._predicate,
                             object:    this._object,
                             graph:     graph || '' });
    return next;
  },

    // ### `_readBlankNodePunctuation` reads punctuation in a blank node
  _readBlankNodePunctuation: function (token) {
    var next;
    switch (token.type) {
    // Semicolon means the subject is shared; predicate and object are different.
    case ';':
      next = this._readPredicate;
      break;
    // Comma means both the subject and predicate are shared; the object is different.
    case ',':
      next = this._readObject;
      break;
    default:
      return this._error('Expected punctuation to follow "' + this._object + '"', token);
    }
    // A triple has been completed now, so return it.
    this._callback(null, { subject:   this._subject,
                           predicate: this._predicate,
                           object:    this._object,
                           graph:     this._graph || '' });
    return next;
  },

  // ### `_readQuadPunctuation` reads punctuation after a quad.
  _readQuadPunctuation: function (token) {
    if (token.type !== '.')
      return this._error('Expected dot to follow quad', token);
    return this._readInTopContext;
  },

  // ### `_readPrefix` reads the prefix of a prefix declaration.
  _readPrefix: function (token) {
    if (token.type !== 'prefix')
      return this._error('Expected prefix to follow @prefix', token);
    this._prefix = token.value;
    return this._readPrefixIRI;
  },

  // ### `_readPrefixIRI` reads the IRI of a prefix declaration.
  _readPrefixIRI: function (token) {
    if (token.type !== 'IRI')
      return this._error('Expected IRI to follow prefix "' + this._prefix + ':"', token);
    var prefixIRI;
    if (this._base === null || absoluteIRI.test(token.value))
      prefixIRI = token.value;
    else
      prefixIRI = this._resolveIRI(token);
    this._prefixes[this._prefix] = prefixIRI;
    this._prefixCallback(this._prefix, prefixIRI);
    return this._readDeclarationPunctuation;
  },

  // ### `_readBaseIRI` reads the IRI of a base declaration.
  _readBaseIRI: function (token) {
    if (token.type !== 'IRI')
      return this._error('Expected IRI to follow base declaration', token);
    try {
      this._setBase(this._base === null ||
                    absoluteIRI.test(token.value) ? token.value : this._resolveIRI(token));
    }
    catch (error) { this._error(error.message, token); }
    return this._readDeclarationPunctuation;
  },

  // ### `_readNamedGraphLabel` reads the label of a named graph.
  _readNamedGraphLabel: function (token) {
    switch (token.type) {
    case 'IRI':
    case 'prefixed':
      return this._readSubject(token), this._readGraph;
    case '[':
      return this._readNamedGraphBlankLabel;
    default:
      return this._error('Invalid graph label', token);
    }
  },

  // ### `_readNamedGraphLabel` reads a blank node label of a named graph.
  _readNamedGraphBlankLabel: function (token) {
    if (token.type !== ']')
      return this._error('Invalid graph label', token);
    this._subject = '_:b' + blankNodeCount++;
    return this._readGraph;
  },

  // ### `_readDeclarationPunctuation` reads the punctuation of a declaration.
  _readDeclarationPunctuation: function (token) {
    // SPARQL-style declarations don't have punctuation.
    if (this._sparqlStyle)
      return this._readInTopContext(token);

    if (token.type !== '.')
      return this._error('Expected declaration to end with a dot', token);
    return this._readInTopContext;
  },

  // ### `_getTripleEndReader` gets the next reader function at the end of a triple.
  _getTripleEndReader: function () {
    var stack = this._tripleStack;
    if (stack.length === 0)
      return this._readPunctuation;

    switch (stack[stack.length - 1].type) {
    case 'blank':
      return this._readBlankNodeTail;
    case 'list':
      return this._readListItem;
    }
  },

  // ### `_error` emits an error message through the callback.
  _error: function (message, token) {
    this._callback(new Error(message + ' at line ' + token.line + '.'));
  },

  // ### `_resolveIRI` resolves a relative IRI token against the base path,
  // assuming that a base path has been set and that the IRI is indeed relative.
  _resolveIRI: function (token) {
    var iri = token.value;
    switch (iri[0]) {
    // An empty relative IRI indicates the base IRI
    case undefined: return this._base;
    // Resolve relative fragment IRIs against the base IRI
    case '#': return this._base + iri;
    // Resolve relative query string IRIs by replacing the query string
    case '?': return this._base.replace(/(?:\?.*)?$/, iri);
    // Resolve root-relative IRIs at the root of the base IRI
    case '/':
      // Resolve scheme-relative IRIs to the scheme
      return (iri[1] === '/' ? this._baseScheme : this._baseRoot) + this._removeDotSegments(iri);
    // Resolve all other IRIs at the base IRI's path
    default:
      return this._removeDotSegments(this._basePath + iri);
    }
  },

  // ### `_removeDotSegments` resolves './' and '../' path segments in an IRI as per RFC3986.
  _removeDotSegments: function (iri) {
    // Don't modify the IRI if it does not contain any dot segments
    if (!dotSegments.test(iri))
      return iri;

    // Start with an imaginary slash before the IRI in order to resolve trailing './' and '../'
    var result = '', length = iri.length, i = -1, pathStart = -1, segmentStart = 0, next = '/';

    while (i < length) {
      switch (next) {
      // The path starts with the first slash after the authority
      case ':':
        if (pathStart < 0) {
          // Skip two slashes before the authority
          if (iri[++i] === '/' && iri[++i] === '/')
            // Skip to slash after the authority
            while ((pathStart = i + 1) < length && iri[pathStart] !== '/')
              i = pathStart;
        }
        break;
      // Don't modify a query string or fragment
      case '?':
      case '#':
        i = length;
        break;
      // Handle '/.' or '/..' path segments
      case '/':
        if (iri[i + 1] === '.') {
          next = iri[++i + 1];
          switch (next) {
          // Remove a '/.' segment
          case '/':
            result += iri.substring(segmentStart, i - 1);
            segmentStart = i + 1;
            break;
          // Remove a trailing '/.' segment
          case undefined:
          case '?':
          case '#':
            return result + iri.substring(segmentStart, i) + iri.substr(i + 1);
          // Remove a '/..' segment
          case '.':
            next = iri[++i + 1];
            if (next === undefined || next === '/' || next === '?' || next === '#') {
              result += iri.substring(segmentStart, i - 2);
              // Try to remove the parent path from result
              if ((segmentStart = result.lastIndexOf('/')) >= pathStart)
                result = result.substr(0, segmentStart);
              // Remove a trailing '/..' segment
              if (next !== '/')
                return result + '/' + iri.substr(i + 1);
              segmentStart = i + 1;
            }
          }
        }
      }
      next = iri[++i];
    }
    return result + iri.substring(segmentStart);
  },

  // ## Public methods

  // ### `parse` parses the N3 input and emits each parsed triple through the callback.
  parse: function (input, tripleCallback, prefixCallback) {
    // The read callback is the next function to be executed when a token arrives.
    // We start reading in the top context.
    this._readCallback = this._readInTopContext;
    this._prefixes = Object.create(null);
    this._prefixes._ = this._blankNodePrefix || '_:b' + blankNodePrefix++ + '_';

    // If the input argument is not given, shift parameters
    if (typeof input === 'function')
      prefixCallback = tripleCallback, tripleCallback = input, input = null;

    // Set the triple and prefix callbacks.
    this._callback = tripleCallback || noop;
    this._prefixCallback = prefixCallback || noop;

    // Execute the read callback when a token arrives.
    var self = this;
    this._lexer.tokenize(input, function (error, token) {
      if (error !== null)
        self._callback(error), self._callback = noop;
      else if (self._readCallback !== undefined)
        self._readCallback = self._readCallback(token);
    });

    // If no input was given, it can be added with `addChunk` and ended with `end`
    if (!input) {
      this.addChunk = this._lexer.addChunk;
      this.end = this._lexer.end;
    }
  },
};

// The empty function
function noop() {}

// ## Exports

// Export the `N3Parser` class as a whole.
module.exports = N3Parser;

},{"./N3Lexer":23}],25:[function(_dereq_,module,exports){
// **N3Store** objects store N3 triples by graph in memory.

var expandPrefixedName = _dereq_('./N3Util').expandPrefixedName;

// ## Constructor
function N3Store(triples, options) {
  if (!(this instanceof N3Store))
    return new N3Store(triples, options);

  // The number of triples is initially zero.
  this._size = 0;
  // `_graphs` contains subject, predicate, and object indexes per graph.
  this._graphs = Object.create(null);
  // `_entities` maps entities such as `http://xmlns.com/foaf/0.1/name` to numbers.
  // This saves memory, since only the numbers have to be stored in `_graphs`.
  this._entities = Object.create(null);
  this._entities['><'] = 0; // Dummy entry, so the first actual key is non-zero
  this._entityCount = 0;
  // `_blankNodeIndex` is the index of the last created blank node that was automatically named
  this._blankNodeIndex = 0;

  // Shift parameters if `triples` is not given
  if (!options && triples && !triples[0])
    options = triples, triples = null;

  // Add triples and prefixes if passed
  this._prefixes = Object.create(null);
  if (options && options.prefixes)
    this.addPrefixes(options.prefixes);
  if (triples)
    this.addTriples(triples);
}

N3Store.prototype = {
  // ## Public properties

  // ### `size` returns the number of triples in the store.
  get size() {
    // Return the triple count if if was cached.
    var size = this._size;
    if (size !== null)
      return size;

    // Calculate the number of triples by counting to the deepest level.
    var graphs = this._graphs, subjects, subject;
    for (var graphKey in graphs)
      for (var subjectKey in (subjects = graphs[graphKey].subjects))
        for (var predicateKey in (subject = subjects[subjectKey]))
          size += Object.keys(subject[predicateKey]).length;
    return this._size = size;
  },

  // ## Private methods

  // ### `_addToIndex` adds a triple to a three-layered index.
  _addToIndex: function (index0, key0, key1, key2) {
    // Create layers as necessary.
    var index1 = index0[key0] || (index0[key0] = {});
    var index2 = index1[key1] || (index1[key1] = {});
    // Setting the key to _any_ value signalizes the presence of the triple.
    index2[key2] = null;
  },

  // ### `_removeFromIndex` removes a triple from a three-layered index.
  _removeFromIndex: function (index0, key0, key1, key2) {
    // Remove the triple from the index.
    var index1 = index0[key0], index2 = index1[key1], key;
    delete index2[key2];

    // Remove intermediary index layers if they are empty.
    for (key in index2) return;
    delete index1[key1];
    for (key in index1) return;
    delete index0[key0];
  },

  // ### `_findInIndex` finds a set of triples in a three-layered index.
  // The index base is `index0` and the keys at each level are `key0`, `key1`, and `key2`.
  // Any of these keys can be `null`, which is interpreted as a wildcard.
  // `name0`, `name1`, and `name2` are the names of the keys at each level,
  // used when reconstructing the resulting triple
  // (for instance: _subject_, _predicate_, and _object_).
  // Finally, `graph` will be the graph of the created triples.
  _findInIndex: function (index0, key0, key1, key2, name0, name1, name2, graph) {
    var results = [], entityKeys = Object.keys(this._entities), tmp, index1, index2;

    // If a key is specified, use only that part of index 0.
    if (key0) (tmp = index0, index0 = {})[key0] = tmp[key0];
    for (var value0 in index0) {
      var entity0 = entityKeys[value0];

      if (index1 = index0[value0]) {
        // If a key is specified, use only that part of index 1.
        if (key1) (tmp = index1, index1 = {})[key1] = tmp[key1];
        for (var value1 in index1) {
          var entity1 = entityKeys[value1];

          if (index2 = index1[value1]) {
            // If a key is specified, use only that part of index 2, if it exists.
            var values = key2 ? (key2 in index2 ? [key2] : []) : Object.keys(index2);
            // Create triples for all items found in index 2.
            for (var l = values.length - 1; l >= 0; l--) {
              var result = { subject: '', predicate: '', object: '', graph: graph };
              result[name0] = entity0;
              result[name1] = entity1;
              result[name2] = entityKeys[values[l]];
              results.push(result);
            }
          }
        }
      }
    }
    return results;
  },

  // ### `_countInIndex` counts matching triples in a three-layered index.
  // The index base is `index0` and the keys at each level are `key0`, `key1`, and `key2`.
  // Any of these keys can be `null`, which is interpreted as a wildcard.
  _countInIndex: function (index0, key0, key1, key2) {
    var count = 0, tmp, index1, index2;

    // If a key is specified, count only that part of index 0.
    if (key0) (tmp = index0, index0 = {})[key0] = tmp[key0];
    for (var value0 in index0) {
      if (index1 = index0[value0]) {
        // If a key is specified, count only that part of index 1.
        if (key1) (tmp = index1, index1 = {})[key1] = tmp[key1];
        for (var value1 in index1) {
          if (index2 = index1[value1]) {
            // If a key is specified, count the triple if it exists.
            if (key2) (key2 in index2) && count++;
            // Otherwise, count all triples.
            else count += Object.keys(index2).length;
          }
        }
      }
    }
    return count;
  },

  // ## Public methods

  // ### `addTriple` adds a new N3 triple to the store.
  addTriple: function (subject, predicate, object, graph) {
    // Shift arguments if a triple object is given instead of components
    if (!predicate)
      graph = subject.graph, object = subject.object,
        predicate = subject.predicate, subject = subject.subject;

    // Find the graph that will contain the triple.
    graph = graph || '';
    var graphItem = this._graphs[graph];
    // Create the graph if it doesn't exist yet.
    if (!graphItem) {
      graphItem = this._graphs[graph] = { subjects: {}, predicates: {}, objects: {} };
      // Freezing a graph helps subsequent `add` performance,
      // and properties will never be modified anyway.
      Object.freeze(graphItem);
    }

    // Since entities can often be long IRIs, we avoid storing them in every index.
    // Instead, we have a separate index that maps entities to numbers,
    // which are then used as keys in the other indexes.
    var entities = this._entities;
    subject   = entities[subject]   || (entities[subject]   = ++this._entityCount);
    predicate = entities[predicate] || (entities[predicate] = ++this._entityCount);
    object    = entities[object]    || (entities[object]    = ++this._entityCount);

    this._addToIndex(graphItem.subjects,   subject,   predicate, object);
    this._addToIndex(graphItem.predicates, predicate, object,    subject);
    this._addToIndex(graphItem.objects,    object,    subject,   predicate);

    // The cached triple count is now invalid.
    this._size = null;
  },

  // ### `addTriples` adds multiple N3 triples to the store.
  addTriples: function (triples) {
    for (var i = triples.length - 1; i >= 0; i--)
      this.addTriple(triples[i]);
  },

  // ### `addPrefix` adds support for querying with the given prefix
  addPrefix: function (prefix, iri) {
    this._prefixes[prefix] = iri;
  },

  // ### `addPrefixes` adds support for querying with the given prefixes
  addPrefixes: function (prefixes) {
    for (var prefix in prefixes)
      this.addPrefix(prefix, prefixes[prefix]);
  },

  // ### `removeTriple` removes an N3 triple from the store if it exists.
  removeTriple: function (subject, predicate, object, graph) {
    // Shift arguments if a triple object is given instead of components.
    if (!predicate)
      graph = subject.graph, object = subject.object,
        predicate = subject.predicate, subject = subject.subject;
    graph = graph || '';

    // Find internal identifiers for all components.
    var graphItem, entities = this._entities, graphs = this._graphs;
    if (!(subject     = entities[subject]))   return;
    if (!(predicate   = entities[predicate])) return;
    if (!(object      = entities[object]))    return;
    if (!(graphItem   = graphs[graph]))       return;

    // Verify that the triple exists.
    var subjects, predicates;
    if (!(subjects   = graphItem.subjects[subject])) return;
    if (!(predicates = subjects[predicate])) return;
    if (!(object in predicates)) return;

    // Remove it from all indexes.
    this._removeFromIndex(graphItem.subjects,   subject,   predicate, object);
    this._removeFromIndex(graphItem.predicates, predicate, object,    subject);
    this._removeFromIndex(graphItem.objects,    object,    subject,   predicate);
    if (this._size !== null) this._size--;

    // Remove the graph if it is empty.
    for (subject in graphItem.subjects) return;
    delete graphs[graph];
  },

  // ### `removeTriples` removes multiple N3 triples from the store.
  removeTriples: function (triples) {
    for (var i = triples.length - 1; i >= 0; i--)
      this.removeTriple(triples[i]);
  },

  // ### `find` finds a set of triples matching a pattern, expanding prefixes as necessary.
  // Setting `subject`, `predicate`, or `object` to `null` means an _anything_ wildcard.
  // Setting `graph` to `null` means the default graph.
  find: function (subject, predicate, object, graph) {
    var prefixes = this._prefixes;
    return this.findByIRI(
      expandPrefixedName(subject,   prefixes),
      expandPrefixedName(predicate, prefixes),
      expandPrefixedName(object,    prefixes),
      expandPrefixedName(graph,     prefixes)
    );
  },

  // ### `findByIRI` finds a set of triples matching a pattern.
  // Setting `subject`, `predicate`, or `object` to a falsy value means an _anything_ wildcard.
  // Setting `graph` to a falsy value means the default graph.
  findByIRI: function (subject, predicate, object, graph) {
    graph = graph || '';
    var graphItem = this._graphs[graph], entities = this._entities;

    // If the specified graph contain no triples, there are no results.
    if (!graphItem) return [];

    // Translate IRIs to internal index keys.
    // Optimization: if the entity doesn't exist, no triples with it exist.
    if (subject   && !(subject   = entities[subject]))   return [];
    if (predicate && !(predicate = entities[predicate])) return [];
    if (object    && !(object    = entities[object]))    return [];

    // Choose the optimal index, based on what fields are present
    if (subject) {
      if (object)
        // If subject and object are given, the object index will be the fastest.
        return this._findInIndex(graphItem.objects, object, subject, predicate,
                                 'object', 'subject', 'predicate', graph);
      else
        // If only subject and possibly predicate are given, the subject index will be the fastest.
        return this._findInIndex(graphItem.subjects, subject, predicate, null,
                                 'subject', 'predicate', 'object', graph);
    }
    else if (predicate)
      // If only predicate and possibly object are given, the predicate index will be the fastest.
      return this._findInIndex(graphItem.predicates, predicate, object, null,
                               'predicate', 'object', 'subject', graph);
    else if (object)
      // If only object is given, the object index will be the fastest.
      return this._findInIndex(graphItem.objects, object, null, null,
                               'object', 'subject', 'predicate', graph);
    else
      // If nothing is given, iterate subjects and predicates first
      return this._findInIndex(graphItem.subjects, null, null, null,
                               'subject', 'predicate', 'object', graph);
  },

  // ### `count` returns the number of triples matching a pattern, expanding prefixes as necessary.
  // Setting `subject`, `predicate`, or `object` to `null` means an _anything_ wildcard.
  // Setting `graph` to `null` means the default graph.
  count: function (subject, predicate, object, graph) {
    var prefixes = this._prefixes;
    return this.countByIRI(
      expandPrefixedName(subject,   prefixes),
      expandPrefixedName(predicate, prefixes),
      expandPrefixedName(object,    prefixes),
      expandPrefixedName(graph,     prefixes)
    );
  },

  // ### `countByIRI` returns the number of triples matching a pattern.
  // Setting `subject`, `predicate`, or `object` to `null` means an _anything_ wildcard.
  // Setting `graph` to `null` means the default graph.
  countByIRI: function (subject, predicate, object, graph) {
    graph = graph || '';
    var graphItem = this._graphs[graph], entities = this._entities;

    // If the specified graph contain no triples, there are no results.
    if (!graphItem) return 0;

    // Translate IRIs to internal index keys.
    // Optimization: if the entity doesn't exist, no triples with it exist.
    if (subject   && !(subject   = entities[subject]))   return 0;
    if (predicate && !(predicate = entities[predicate])) return 0;
    if (object    && !(object    = entities[object]))    return 0;

    // Choose the optimal index, based on what fields are present
    if (subject) {
      if (object)
        // If subject and object are given, the object index will be the fastest.
        return this._countInIndex(graphItem.objects, object, subject, predicate);
      else
        // If only subject and possibly predicate are given, the subject index will be the fastest.
        return this._countInIndex(graphItem.subjects, subject, predicate, object);
    }
    else if (predicate) {
      // If only predicate and possibly object are given, the predicate index will be the fastest.
      return this._countInIndex(graphItem.predicates, predicate, object, subject);
    }
    else {
      // If only object is possibly given, the object index will be the fastest.
      return this._countInIndex(graphItem.objects, object, subject, predicate);
    }
  },

  // ### `createBlankNode` creates a new blank node, returning its name.
  createBlankNode: function (suggestedName) {
    var name, index;
    // Generate a name based on the suggested name
    if (suggestedName) {
      name = suggestedName = '_:' + suggestedName, index = 1;
      while (this._entities[name])
        name = suggestedName + index++;
    }
    // Generate a generic blank node name
    else {
      do { name = '_:b' + this._blankNodeIndex++; }
      while (this._entities[name]);
    }
    // Add the blank node to the entities, avoiding the generation of duplicates
    this._entities[name] = ++this._entityCount;
    return name;
  },
};

// ## Exports

// Export the `N3Store` class as a whole.
module.exports = N3Store;

},{"./N3Util":28}],26:[function(_dereq_,module,exports){
// **N3StreamParser** parses an N3 stream into a triple stream
var Transform = _dereq_('stream').Transform,
    util = _dereq_('util'),
    N3Parser = _dereq_('./N3Parser.js');

// ## Constructor
function N3StreamParser(options) {
  if (!(this instanceof N3StreamParser))
    return new N3StreamParser(options);

  // Initialize Transform base class
  Transform.call(this, { decodeStrings: true });
  this._readableState.objectMode = true;

  // Set up parser
  var self = this, parser = new N3Parser(options);
  parser.parse(
    // Handle triples by pushing them down the pipeline
    function (error, triple) {
      triple && self.push(triple) ||
      error  && self.emit('error', error);
    },
    // Emit prefixes through the `prefix` event
    this.emit.bind(this, 'prefix'));

  // Implement Transform methods on top of parser
  this._transform = function (chunk, encoding, done) { parser.addChunk(chunk); done(); };
  this._flush = function (done) { parser.end(); done(); };
}
util.inherits(N3StreamParser, Transform);

// ## Exports
// Export the `N3StreamParser` class as a whole.
module.exports = N3StreamParser;

},{"./N3Parser.js":24,"stream":69,"util":78}],27:[function(_dereq_,module,exports){
// **N3StreamWriter** serializes a triple stream into an N3 stream
var Transform = _dereq_('stream').Transform,
    util = _dereq_('util'),
    N3Writer = _dereq_('./N3Writer.js');

// ## Constructor
function N3StreamWriter(options) {
  if (!(this instanceof N3StreamWriter))
    return new N3StreamWriter(options);

  // Initialize Transform base class
  Transform.call(this, { encoding: 'utf8' });
  this._writableState.objectMode = true;

  // Set up writer with a dummy stream object
  var self = this;
  var writer = new N3Writer({
    write: function (chunk, encoding, callback) { self.push(chunk); callback && callback(); },
    end: function (callback) { self.push(null); callback && callback(); },
  }, options);

  // Implement Transform methods on top of writer
  this._transform = function (triple, encoding, done) { writer.addTriple(triple, done); };
  this._flush = function (done) { writer.end(done); };
}
util.inherits(N3StreamWriter, Transform);

// ## Exports
// Export the `N3StreamWriter` class as a whole.
module.exports = N3StreamWriter;

},{"./N3Writer.js":29,"stream":69,"util":78}],28:[function(_dereq_,module,exports){
// **N3Util** provides N3 utility functions

var Xsd = 'http://www.w3.org/2001/XMLSchema#';
var XsdString  = Xsd + 'string';
var XsdInteger = Xsd + 'integer';
var XsdDecimal = Xsd + 'decimal';
var XsdBoolean = Xsd + 'boolean';
var RdfLangString = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#langString';

var N3Util = {
  // Tests whether the given entity (triple object) represents an IRI in the N3 library
  isIRI: function (entity) {
    if (!entity)
      return entity;
    var firstChar = entity[0];
    return firstChar !== '"' && firstChar !== '_';
  },

  // Tests whether the given entity (triple object) represents a literal in the N3 library
  isLiteral: function (entity) {
    return entity && entity[0] === '"';
  },

  // Tests whether the given entity (triple object) represents a blank node in the N3 library
  isBlank: function (entity) {
    return entity && entity.substr(0, 2) === '_:';
  },

  // Gets the string value of a literal in the N3 library
  getLiteralValue: function (literal) {
    var match = /^"([^]*)"/.exec(literal);
    if (!match)
      throw new Error(literal + ' is not a literal');
    return match[1];
  },

  // Gets the type of a literal in the N3 library
  getLiteralType: function (literal) {
    var match = /^"[^]*"(?:\^\^([^"]+)|(@)[^@"]+)?$/.exec(literal);
    if (!match)
      throw new Error(literal + ' is not a literal');
    return match[1] || (match[2] ? RdfLangString : XsdString);
  },

  // Gets the language of a literal in the N3 library
  getLiteralLanguage: function (literal) {
    var match = /^"[^]*"(?:@([^@"]+)|\^\^[^"]+)?$/.exec(literal);
    if (!match)
      throw new Error(literal + ' is not a literal');
    return match[1] ? match[1].toLowerCase() : '';
  },

  // Tests whether the given entity (triple object) represents a prefixed name
  isPrefixedName: function (entity) {
    return entity && /^[^:\/"']*:[^:\/"']+$/.test(entity);
  },

  // Expands the prefixed name to a full IRI (also when it occurs as a literal's type)
  expandPrefixedName: function (prefixedName, prefixes) {
    var match = /(?:^|"\^\^)([^:\/#"'\^_]*):[^\/]*$/.exec(prefixedName), prefix, base, index;
    if (match)
      prefix = match[1], base = prefixes[prefix], index = match.index;
    if (base === undefined)
      return prefixedName;

    // The match index is non-zero when expanding a literal's type.
    return index === 0 ? base + prefixedName.substr(prefix.length + 1)
                       : prefixedName.substr(0, index + 3) +
                         base + prefixedName.substr(index + prefix.length + 4);
  },

  // Creates an IRI in N3.js representation
  createIRI: function (iri) {
    return iri && iri[0] === '"' ? N3Util.getLiteralValue(iri) : iri;
  },

  // Creates a literal in N3.js representation
  createLiteral: function (value, modifier) {
    if (!modifier) {
      switch (typeof value) {
      case 'boolean':
        modifier = XsdBoolean;
        break;
      case 'number':
        if (isFinite(value)) {
          modifier = value % 1 === 0 ? XsdInteger : XsdDecimal;
          break;
        }
      default:
        return '"' + value + '"';
      }
    }
    return '"' + value +
           (/^[a-z]+(-[a-z0-9]+)*$/i.test(modifier) ? '"@'  + modifier.toLowerCase()
                                                    : '"^^' + modifier);
  },
};

// Add the N3Util functions to the given object or its prototype
function addN3Util(parent, toPrototype) {
  for (var name in N3Util)
    if (!toPrototype)
      parent[name] = N3Util[name];
    else
      parent.prototype[name] = applyToThis(N3Util[name]);

  return parent;
}

// Returns a function that applies `f` to the `this` object
function applyToThis(f) {
  return function (a) { return f(this, a); };
}

// Expose N3Util, attaching all functions to it
module.exports = addN3Util(addN3Util);

},{}],29:[function(_dereq_,module,exports){
// **N3Writer** writes N3 documents.

// Matches a literal as represented in memory by the N3 library
var N3LiteralMatcher = /^"([^]*)"(?:\^\^(.+)|@([\-a-z]+))?$/i;

// rdf:type predicate (for 'a' abbreviation)
var RDF_PREFIX = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
    RDF_TYPE   = RDF_PREFIX + 'type';

// Characters in literals that require escaping
var escape    = /["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,
    escapeAll = /["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,
    escapeReplacements = { '\\': '\\\\', '"': '\\"', '\t': '\\t',
                           '\n': '\\n', '\r': '\\r', '\b': '\\b', '\f': '\\f' };

// ## Constructor
function N3Writer(outputStream, options) {
  if (!(this instanceof N3Writer))
    return new N3Writer(outputStream, options);

  // Shift arguments if the first argument is not a stream
  if (outputStream && typeof outputStream.write !== 'function')
    options = outputStream, outputStream = null;
  options = options || {};

  // If no output stream given, send the output as string through the end callback
  if (!outputStream) {
    var output = '';
    this._outputStream = {
      write: function (chunk, encoding, done) { output += chunk; done && done(); },
      end:   function (done) { done && done(null, output); },
    };
    this._endStream = true;
  }
  else {
    this._outputStream = outputStream;
    this._endStream = options.end === undefined ? true : !!options.end;
  }

  // Initialize writer, depending on the format
  this._subject = null;
  if (!(/triple|quad/i).test(options.format)) {
    this._graph = '';
    this._prefixIRIs = Object.create(null);
    options.prefixes && this.addPrefixes(options.prefixes);
  }
  else {
    this._writeTriple = this._writeTripleLine;
  }
}

N3Writer.prototype = {
  // ## Private methods

  // ### `_write` writes the argument to the output stream
  _write: function (string, callback) {
    this._outputStream.write(string, 'utf8', callback);
  },

    // ### `_writeTriple` writes the triple to the output stream
  _writeTriple: function (subject, predicate, object, graph, done) {
    try {
      // Write the graph's label if it has changed
      if (this._graph !== graph) {
        // Close the previous graph and start the new one
        this._write((this._subject === null ? '' : (this._graph ? '\n}\n' : '.\n')) +
                    (graph ? this._encodeIriOrBlankNode(graph) + ' {\n' : ''));
        this._subject = null;
        // Don't treat identical blank nodes as repeating graphs
        this._graph = graph[0] !== '[' ? graph : ']';
      }
      // Don't repeat the subject if it's the same
      if (this._subject === subject) {
        // Don't repeat the predicate if it's the same
        if (this._predicate === predicate)
          this._write(', ' + this._encodeObject(object), done);
        // Same subject, different predicate
        else
          this._write(';\n    ' +
                      this._encodePredicate(this._predicate = predicate) + ' ' +
                      this._encodeObject(object), done);
      }
      // Different subject; write the whole triple
      else
        this._write((this._subject === null ? '' : '.\n') +
                    this._encodeSubject(this._subject = subject) + ' ' +
                    this._encodePredicate(this._predicate = predicate) + ' ' +
                    this._encodeObject(object), done);
    }
    catch (error) { done && done(error); }
  },

  // ### `_writeTripleLine` writes the triple or quad to the output stream as a single line
  _writeTripleLine: function (subject, predicate, object, graph, done) {
    // Don't use prefixes
    delete this._prefixMatch;
    // Write the triple
    try {
      this._write(this._encodeIriOrBlankNode(subject) + ' ' +
                  this._encodeIriOrBlankNode(predicate) + ' ' +
                  this._encodeObject(object) +
                  (graph ? ' ' + this._encodeIriOrBlankNode(graph) + '.\n' : '.\n'), done);
    }
    catch (error) { done && done(error); }
  },

  // ### `_encodeIriOrBlankNode` represents an IRI or blank node
  _encodeIriOrBlankNode: function (entity) {
    // A blank node or list is represented as-is
    var firstChar = entity[0];
    if (firstChar === '[' || firstChar === '(' || firstChar === '_' && entity[1] === ':')
      return entity;
    // Escape special characters
    if (escape.test(entity))
      entity = entity.replace(escapeAll, characterReplacer);
    // Try to represent the IRI as prefixed name
    var prefixMatch = this._prefixRegex.exec(entity);
    return !prefixMatch ? '<' + entity + '>' :
           (!prefixMatch[1] ? entity : this._prefixIRIs[prefixMatch[1]] + prefixMatch[2]);
  },

  // ### `_encodeLiteral` represents a literal
  _encodeLiteral: function (value, type, language) {
    // Escape special characters
    if (escape.test(value))
      value = value.replace(escapeAll, characterReplacer);
    // Write the literal, possibly with type or language
    if (language)
      return '"' + value + '"@' + language;
    else if (type)
      return '"' + value + '"^^' + this._encodeIriOrBlankNode(type);
    else
      return '"' + value + '"';
  },

  // ### `_encodeSubject` represents a subject
  _encodeSubject: function (subject) {
    if (subject[0] === '"')
      throw new Error('A literal as subject is not allowed: ' + subject);
    // Don't treat identical blank nodes as repeating subjects
    if (subject[0] === '[')
      this._subject = ']';
    return this._encodeIriOrBlankNode(subject);
  },

  // ### `_encodePredicate` represents a predicate
  _encodePredicate: function (predicate) {
    if (predicate[0] === '"')
      throw new Error('A literal as predicate is not allowed: ' + predicate);
    return predicate === RDF_TYPE ? 'a' : this._encodeIriOrBlankNode(predicate);
  },

  // ### `_encodeObject` represents an object
  _encodeObject: function (object) {
    // Represent an IRI or blank node
    if (object[0] !== '"')
      return this._encodeIriOrBlankNode(object);
    // Represent a literal
    var match = N3LiteralMatcher.exec(object);
    if (!match) throw new Error('Invalid literal: ' + object);
    return this._encodeLiteral(match[1], match[2], match[3]);
  },

  // ### `_blockedWrite` replaces `_write` after the writer has been closed
  _blockedWrite: function () {
    throw new Error('Cannot write because the writer has been closed.');
  },

  // ### `addTriple` adds the triple to the output stream
  addTriple: function (subject, predicate, object, graph, done) {
    // The triple was given as a triple object, so shift parameters
    if (object === undefined)
      this._writeTriple(subject.subject, subject.predicate, subject.object,
                        subject.graph || '', predicate);
    // The optional `graph` parameter was not provided
    else if (typeof graph !== 'string')
      this._writeTriple(subject, predicate, object, '', graph);
    // The `graph` parameter was provided
    else
      this._writeTriple(subject, predicate, object, graph, done);
  },

  // ### `addTriples` adds the triples to the output stream
  addTriples: function (triples) {
    for (var i = 0; i < triples.length; i++)
      this.addTriple(triples[i]);
  },

  // ### `addPrefix` adds the prefix to the output stream
  addPrefix: function (prefix, iri, done) {
    var prefixes = {};
    prefixes[prefix] = iri;
    this.addPrefixes(prefixes, done);
  },

  // ### `addPrefixes` adds the prefixes to the output stream
  addPrefixes: function (prefixes, done) {
    // Add all useful prefixes
    var prefixIRIs = this._prefixIRIs, hasPrefixes = false;
    for (var prefix in prefixes) {
      // Verify whether the prefix can be used and does not exist yet
      var iri = prefixes[prefix];
      if (/[#\/]$/.test(iri) && prefixIRIs[iri] !== (prefix += ':')) {
        hasPrefixes = true;
        prefixIRIs[iri] = prefix;
        // Finish a possible pending triple
        if (this._subject !== null) {
          this._write(this._graph ? '\n}\n' : '.\n');
          this._subject = null, this._graph = '';
        }
        // Write prefix
        this._write('@prefix ' + prefix + ' <' + iri + '>.\n');
      }
    }
    // Recreate the prefix matcher
    if (hasPrefixes) {
      var IRIlist = '', prefixList = '';
      for (var prefixIRI in prefixIRIs) {
        IRIlist += IRIlist ? '|' + prefixIRI : prefixIRI;
        prefixList += (prefixList ? '|' : '') + prefixIRIs[prefixIRI];
      }
      IRIlist = IRIlist.replace(/[\]\/\(\)\*\+\?\.\\\$]/g, '\\$&');
      this._prefixRegex = new RegExp('^(?:' + prefixList + ')[^\/]*$|' +
                                     '^(' + IRIlist + ')([a-zA-Z][\\-_a-zA-Z0-9]*)$');
    }
    // End a prefix block with a newline
    this._write(hasPrefixes ? '\n' : '', done);
  },

  // ### `blank` creates a blank node with the given content
  blank: function (predicate, object) {
    var children = predicate, child, length;
    // Empty blank node
    if (predicate === undefined)
      children = [];
    // Blank node passed as blank("predicate", "object")
    else if (typeof predicate === 'string')
      children = [{ predicate: predicate, object: object }];
    // Blank node passed as blank({ predicate: predicate, object: object })
    else if (!('length' in predicate))
      children = [predicate];

    switch (length = children.length) {
    // Generate an empty blank node
    case 0:
      return '[]';
    // Generate a non-nested one-triple blank node
    case 1:
      child = children[0];
      if (child.object[0] !== '[')
        return '[ ' + this._encodePredicate(child.predicate) + ' ' +
                      this._encodeObject(child.object) + ' ]';
    // Generate a multi-triple or nested blank node
    default:
      var contents = '[';
      // Write all triples in order
      for (var i = 0; i < length; i++) {
        child = children[i];
        // Write only the object is the predicate is the same as the previous
        if (child.predicate === predicate)
          contents += ', ' + this._encodeObject(child.object);
        // Otherwise, write the predicate and the object
        else {
          contents += (i ? ';\n  ' : '\n  ') +
                      this._encodePredicate(child.predicate) + ' ' +
                      this._encodeObject(child.object);
          predicate = child.predicate;
        }
      }
      return contents + '\n]';
    }
  },

  // ### `list` creates a list node with the given content
  list: function (elements) {
    var length = elements && elements.length || 0, contents = new Array(length);
    for (var i = 0; i < length; i++)
      contents[i] = this._encodeObject(elements[i]);
    return '(' + contents.join(' ') + ')';
  },

  // ### `_prefixRegex` matches a prefixed name or IRI that begins with one of the added prefixes
  _prefixRegex: /$0^/,

  // ### `end` signals the end of the output stream
  end: function (done) {
    // Finish a possible pending triple
    if (this._subject !== null) {
      this._write(this._graph ? '\n}\n' : '.\n');
      this._subject = null;
    }
    // Disallow further writing
    this._write = this._blockedWrite;

    // Try to end the underlying stream, ensuring done is called exactly one time
    var singleDone = done && function (error, result) { singleDone = null, done(error, result); };
    if (this._endStream) {
      try { return this._outputStream.end(singleDone); }
      catch (error) { /* error closing stream */ }
    }
    singleDone && singleDone();
  },
};

// Replaces a character by its escaped version
function characterReplacer(character) {
  // Replace a single character by its escaped version
  var result = escapeReplacements[character];
  if (result === undefined) {
    // Replace a single character with its 4-bit unicode escape sequence
    if (character.length === 1) {
      result = character.charCodeAt(0).toString(16);
      result = '\\u0000'.substr(0, 6 - result.length) + result;
    }
    // Replace a surrogate pair with its 8-bit unicode escape sequence
    else {
      result = ((character.charCodeAt(0) - 0xD800) * 0x400 +
                 character.charCodeAt(1) + 0x2400).toString(16);
      result = '\\U00000000'.substr(0, 10 - result.length) + result;
    }
  }
  return result;
}

// ## Exports

// Export the `N3Writer` class as a whole.
module.exports = N3Writer;

},{}],30:[function(_dereq_,module,exports){
// shim for using process in browser

var process = module.exports = {};

process.nextTick = (function () {
    var canSetImmediate = typeof window !== 'undefined'
    && window.setImmediate;
    var canPost = typeof window !== 'undefined'
    && window.postMessage && window.addEventListener
    ;

    if (canSetImmediate) {
        return function (f) { return window.setImmediate(f) };
    }

    if (canPost) {
        var queue = [];
        window.addEventListener('message', function (ev) {
            var source = ev.source;
            if ((source === window || source === null) && ev.data === 'process-tick') {
                ev.stopPropagation();
                if (queue.length > 0) {
                    var fn = queue.shift();
                    fn();
                }
            }
        }, true);

        return function nextTick(fn) {
            queue.push(fn);
            window.postMessage('process-tick', '*');
        };
    }

    return function nextTick(fn) {
        setTimeout(fn, 0);
    };
})();

process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];

function noop() {}

process.on = noop;
process.addListener = noop;
process.once = noop;
process.off = noop;
process.removeListener = noop;
process.removeAllListeners = noop;
process.emit = noop;

process.binding = function (name) {
    throw new Error('process.binding is not supported');
}

// TODO(shtylman)
process.cwd = function () { return '/' };
process.chdir = function (dir) {
    throw new Error('process.chdir is not supported');
};

},{}],31:[function(_dereq_,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

'use strict';

// If obj.hasOwnProperty has been overridden, then calling
// obj.hasOwnProperty(prop) will break.
// See: https://github.com/joyent/node/issues/1707
function hasOwnProperty(obj, prop) {
  return Object.prototype.hasOwnProperty.call(obj, prop);
}

module.exports = function(qs, sep, eq, options) {
  sep = sep || '&';
  eq = eq || '=';
  var obj = {};

  if (typeof qs !== 'string' || qs.length === 0) {
    return obj;
  }

  var regexp = /\+/g;
  qs = qs.split(sep);

  var maxKeys = 1000;
  if (options && typeof options.maxKeys === 'number') {
    maxKeys = options.maxKeys;
  }

  var len = qs.length;
  // maxKeys <= 0 means that we should not limit keys count
  if (maxKeys > 0 && len > maxKeys) {
    len = maxKeys;
  }

  for (var i = 0; i < len; ++i) {
    var x = qs[i].replace(regexp, '%20'),
        idx = x.indexOf(eq),
        kstr, vstr, k, v;

    if (idx >= 0) {
      kstr = x.substr(0, idx);
      vstr = x.substr(idx + 1);
    } else {
      kstr = x;
      vstr = '';
    }

    k = decodeURIComponent(kstr);
    v = decodeURIComponent(vstr);

    if (!hasOwnProperty(obj, k)) {
      obj[k] = v;
    } else if (isArray(obj[k])) {
      obj[k].push(v);
    } else {
      obj[k] = [obj[k], v];
    }
  }

  return obj;
};

var isArray = Array.isArray || function (xs) {
  return Object.prototype.toString.call(xs) === '[object Array]';
};

},{}],32:[function(_dereq_,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

'use strict';

var stringifyPrimitive = function(v) {
  switch (typeof v) {
    case 'string':
      return v;

    case 'boolean':
      return v ? 'true' : 'false';

    case 'number':
      return isFinite(v) ? v : '';

    default:
      return '';
  }
};

module.exports = function(obj, sep, eq, name) {
  sep = sep || '&';
  eq = eq || '=';
  if (obj === null) {
    obj = undefined;
  }

  if (typeof obj === 'object') {
    return map(objectKeys(obj), function(k) {
      var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;
      if (isArray(obj[k])) {
        return obj[k].map(function(v) {
          return ks + encodeURIComponent(stringifyPrimitive(v));
        }).join(sep);
      } else {
        return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
      }
    }).join(sep);

  }

  if (!name) return '';
  return encodeURIComponent(stringifyPrimitive(name)) + eq +
         encodeURIComponent(stringifyPrimitive(obj));
};

var isArray = Array.isArray || function (xs) {
  return Object.prototype.toString.call(xs) === '[object Array]';
};

function map (xs, f) {
  if (xs.map) return xs.map(f);
  var res = [];
  for (var i = 0; i < xs.length; i++) {
    res.push(f(xs[i], i));
  }
  return res;
}

var objectKeys = Object.keys || function (obj) {
  var res = [];
  for (var key in obj) {
    if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);
  }
  return res;
};

},{}],33:[function(_dereq_,module,exports){
'use strict';

exports.decode = exports.parse = _dereq_('./decode');
exports.encode = exports.stringify = _dereq_('./encode');

},{"./decode":31,"./encode":32}],34:[function(_dereq_,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"); } }

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; }

var ClassOrder = _dereq_('./class-order');
var Node = _dereq_('./node');

var BlankNode = function (_Node) {
  _inherits(BlankNode, _Node);

  function BlankNode(id) {
    _classCallCheck(this, BlankNode);

    var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(BlankNode).call(this));

    _this.termType = BlankNode.termType;
    _this.id = BlankNode.nextId++;
    _this.value = id || _this.id.toString();
    return _this;
  }

  _createClass(BlankNode, [{
    key: 'compareTerm',
    value: function compareTerm(other) {
      if (this.classOrder < other.classOrder) {
        return -1;
      }
      if (this.classOrder > other.classOrder) {
        return +1;
      }
      if (this.id < other.id) {
        return -1;
      }
      if (this.id > other.id) {
        return +1;
      }
      return 0;
    }
  }, {
    key: 'copy',
    value: function copy(formula) {
      // depends on the formula
      var bnodeNew = new BlankNode();
      formula.copyTo(this, bnodeNew);
      return bnodeNew;
    }
  }, {
    key: 'toCanonical',
    value: function toCanonical() {
      return '_:' + this.value;
    }
  }, {
    key: 'toString',
    value: function toString() {
      return BlankNode.NTAnonymousNodePrefix + this.id;
    }
  }]);

  return BlankNode;
}(Node);

BlankNode.nextId = 0;
BlankNode.termType = 'BlankNode';
BlankNode.NTAnonymousNodePrefix = '_:n';
BlankNode.prototype.classOrder = ClassOrder['BlankNode'];
BlankNode.prototype.isBlank = 1;
BlankNode.prototype.isVar = 1;

module.exports = BlankNode;
},{"./class-order":35,"./node":51}],35:[function(_dereq_,module,exports){
'use strict';

var ClassOrder = {
  'Literal': 1,
  'Collection': 3,
  'Graph': 4,
  'NamedNode': 5,
  'BlankNode': 6,
  'Variable': 7
};

module.exports = ClassOrder;
},{}],36:[function(_dereq_,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"); } }

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; }

var BlankNode = _dereq_('./blank-node');
var ClassOrder = _dereq_('./class-order');
var Node = _dereq_('./node');

var Collection = function (_Node) {
  _inherits(Collection, _Node);

  function Collection(initial) {
    _classCallCheck(this, Collection);

    var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Collection).call(this));

    _this.termType = Collection.termType;
    _this.id = BlankNode.nextId++;
    _this.elements = [];
    _this.closed = false;
    if (initial && initial.length > 0) {
      initial.forEach(function (element) {
        _this.elements.push(Node.fromValue(element));
      });
    }
    return _this;
  }

  _createClass(Collection, [{
    key: 'append',
    value: function append(element) {
      return this.elements.push(element);
    }
  }, {
    key: 'close',
    value: function close() {
      this.closed = true;
      return this.closed;
    }
  }, {
    key: 'shift',
    value: function shift() {
      return this.elements.shift();
    }
  }, {
    key: 'substitute',
    value: function substitute(bindings) {
      var elementsCopy = this.elements.map(function (ea) {
        ea.substitute(bindings);
      });
      return new Collection(elementsCopy);
    }
  }, {
    key: 'toNT',
    value: function toNT() {
      return BlankNode.NTAnonymousNodePrefix + this.id;
    }
  }, {
    key: 'toString',
    value: function toString() {
      return '(' + this.elements.join(' ') + ')';
    }
  }, {
    key: 'unshift',
    value: function unshift(element) {
      return this.elements.unshift(element);
    }
  }]);

  return Collection;
}(Node);

Collection.termType = 'Collection';
Collection.prototype.classOrder = ClassOrder['Collection'];
Collection.prototype.compareTerm = BlankNode.prototype.compareTerm;
Collection.prototype.isVar = 0;

module.exports = Collection;
},{"./blank-node":34,"./class-order":35,"./node":51}],37:[function(_dereq_,module,exports){
'use strict';

module.exports.convertToJson = convertToJson;
module.exports.convertToNQuads = convertToNQuads;

var asyncLib = _dereq_('async'); // @@ Goal: remove this dependency
var jsonld = _dereq_('jsonld');
var N3 = _dereq_('n3'); // @@ Goal: remove this dependency

function convertToJson(n3String, jsonCallback) {
  var jsonString;
  var n3Parser = N3.Parser();
  var n3Writer = N3.Writer({
    format: 'N-Quads'
  });
  asyncLib.waterfall([function (callback) {
    n3Parser.parse(n3String, callback);
  }, function (triple, prefix, callback) {
    if (triple !== null) {
      n3Writer.addTriple(triple);
    }
    if (typeof callback === 'function') {
      n3Writer.end(callback);
    }
  }, function (result, callback) {
    try {
      jsonld.fromRDF(result, {
        format: 'application/nquads'
      }, callback);
    } catch (err) {
      callback(err);
    }
  }, function (json, callback) {
    jsonString = JSON.stringify(json);
    jsonCallback(null, jsonString);
  }], function (err, result) {
    jsonCallback(err, jsonString);
  });
}

function convertToNQuads(n3String, nquadCallback) {
  var nquadString;
  var n3Parser = N3.Parser();
  var n3Writer = N3.Writer({
    format: 'N-Quads'
  });
  asyncLib.waterfall([function (callback) {
    n3Parser.parse(n3String, callback);
  }, function (triple, prefix, callback) {
    if (triple !== null) {
      n3Writer.addTriple(triple);
    }
    if (typeof callback === 'function') {
      n3Writer.end(callback);
    }
  }, function (result, callback) {
    nquadString = result;
    nquadCallback(null, nquadString);
  }], function (err, result) {
    nquadCallback(err, nquadString);
  });
}
},{"async":3,"jsonld":20,"n3":22}],38:[function(_dereq_,module,exports){
'use strict';

var _indexedFormula = _dereq_('./indexed-formula');

var _indexedFormula2 = _interopRequireDefault(_indexedFormula);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var BlankNode = _dereq_('./blank-node');
var Collection = _dereq_('./collection');
var DefaultGraph = _dereq_('./default-graph');
var Fetcher = _dereq_('./fetcher');

var Literal = _dereq_('./literal');
var NamedNode = _dereq_('./named-node');
var Statement = _dereq_('./statement');
var Variable = _dereq_('./variable');

function blankNode(value) {
  return new BlankNode(value);
}
function collection(elements) {
  return new Collection(elements);
}
function defaultGraph() {
  return new DefaultGraph();
}
function fetcher(store, timeout, async) {
  return new Fetcher(store, timeout, async);
}
function graph() {
  return new _indexedFormula2.default();
}
function lit(val, lang, dt) {
  return new Literal('' + val, lang, dt);
}
function literal(value, languageOrDatatype) {
  if (typeof languageOrDatatype === 'string') {
    if (languageOrDatatype.indexOf(':') === -1) {
      return new Literal(value, languageOrDatatype);
    } else {
      return new Literal(value, null, namedNode(languageOrDatatype));
    }
  } else {
    return new Literal(value, null, languageOrDatatype);
  }
}
function namedNode(value) {
  return new NamedNode(value);
}
function quad(subject, predicate, object, graph) {
  graph = graph || new DefaultGraph();
  return new Statement(subject, predicate, object, graph);
}
function st(subject, predicate, object, graph) {
  return new Statement(subject, predicate, object, graph);
}
function triple(subject, predicate, object) {
  return quad(subject, predicate, object);
}
function variable(name) {
  return new Variable(name);
}

// rdfjs spec factory methods
module.exports.blankNode = blankNode;
module.exports.defaultGraph = defaultGraph;
module.exports.graph = graph;
module.exports.literal = literal;
module.exports.namedNode = namedNode;
module.exports.quad = quad;
module.exports.triple = triple;
module.exports.variable = variable;

// rdflib only
module.exports.collection = collection;
module.exports.fetcher = fetcher;
module.exports.lit = lit;
module.exports.st = st;
},{"./blank-node":34,"./collection":36,"./default-graph":39,"./fetcher":41,"./indexed-formula":44,"./literal":46,"./named-node":49,"./statement":61,"./variable":66}],39:[function(_dereq_,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"); } }

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; }

var Node = _dereq_('./node');

var DefaultGraph = function (_Node) {
  _inherits(DefaultGraph, _Node);

  function DefaultGraph() {
    _classCallCheck(this, DefaultGraph);

    var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(DefaultGraph).call(this));

    _this.termType = 'DefaultGraph';
    _this.value = '';
    return _this;
  }

  _createClass(DefaultGraph, [{
    key: 'toCanonical',
    value: function toCanonical() {
      return this.value;
    }
  }]);

  return DefaultGraph;
}(Node);

module.exports = DefaultGraph;
},{"./node":51}],40:[function(_dereq_,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"); } }

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; }

var Node = _dereq_('./node');

/**
 * Singleton subclass of an empty Collection.
 */

var Empty = function (_Node) {
  _inherits(Empty, _Node);

  function Empty() {
    _classCallCheck(this, Empty);

    var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Empty).call(this));

    _this.termType = Empty.termType;
    return _this;
  }

  _createClass(Empty, [{
    key: 'toString',
    value: function toString() {
      return '()';
    }
  }]);

  return Empty;
}(Node);

Empty.termType = 'empty';

module.exports = Empty;
},{"./node":51}],41:[function(_dereq_,module,exports){
'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

/* global $SolidTestEnvironment */
/**
 *
 * Project: rdflib.js
 *
 * File: fetcher.js
 *
 * Description: contains functions for requesting/fetching/retracting
 *  This implements quite a lot of the web architecture.
 * A fetcher is bound to a specific knowledge base graph, into which
 * it loads stuff and into which it writes its metadata
 * @@ The metadata should be optionally a separate graph
 *
 * - implements semantics of HTTP headers, Internet Content Types
 * - selects parsers for rdf/xml, n3, rdfa, grddl
 *
 * Dependencies:
 *
 * needs: util.js uri.js term.js rdfparser.js rdfa.js n3parser.js
 *      identity.js sparql.js jsonparser.js
 *
 * Independent of jQuery
 */

/**
 * Things to test: callbacks on request, refresh, retract
 *   loading from HTTP, HTTPS, FTP, FILE, others?
 * To do:
 * Firing up a mail client for mid:  (message:) URLs
 */
var log = _dereq_('./log');
var N3Parser = _dereq_('./n3parser');
var NamedNode = _dereq_('./named-node');
var Namespace = _dereq_('./namespace');
var rdfParse = _dereq_('./parse');
var parseRDFaDOM = _dereq_('./rdfaparser').parseRDFaDOM;
var RDFParser = _dereq_('./rdfxmlparser');
var Uri = _dereq_('./uri');
var Util = _dereq_('./util');
var serialize = _dereq_('./serialize');

var Parsable = {
  'text/n3': true,
  'text/turtle': true,
  'application/rdf+xml': true,
  'application/xhtml+xml': true,
  'text/html': true,
  'application/ld+json': true
};

var Fetcher = function Fetcher(store, timeout, async) {
  this.store = store;
  this.thisURI = 'http://dig.csail.mit.edu/2005/ajar/ajaw/rdf/sources.js' + '#SourceFetcher'; // -- Kenny
  this.timeout = timeout || 30000;
  this.async = async != null ? async : true;
  this.appNode = this.store.bnode(); // Denoting this session
  this.store.fetcher = this; // Bi-linked
  this.requested = {};
  // this.requested[uri] states:
  //   undefined     no record of web access or records reset
  //   true          has been requested, XHR in progress
  //   'done'        received, Ok
  //   403           HTTP status unauthorized
  //   404           Ressource does not exist. Can be created etc.
  //   'redirected'  In attempt to counter CORS problems retried.
  //   other strings mean various other erros, such as parse errros.
  //
  this.redirectedTo = {}; // Wehn 'redireced'
  this.fetchCallbacks = {}; // fetchCallbacks[uri].push(callback)

  this.nonexistant = {}; // keep track of explict 404s -> we can overwrite etc
  this.lookedUp = {};
  this.handlers = [];
  this.mediatypes = {};
  var sf = this;
  var kb = this.store;
  var ns = {}; // Convenience namespaces needed in this module:
  // These are delibertely not exported as the user application should
  // make its own list and not rely on the prefixes used here,
  // and not be tempted to add to them, and them clash with those of another
  // application.
  ns.link = Namespace('http://www.w3.org/2007/ont/link#');
  ns.http = Namespace('http://www.w3.org/2007/ont/http#');
  ns.httph = Namespace('http://www.w3.org/2007/ont/httph#');
  ns.rdf = Namespace('http://www.w3.org/1999/02/22-rdf-syntax-ns#');
  ns.rdfs = Namespace('http://www.w3.org/2000/01/rdf-schema#');
  ns.dc = Namespace('http://purl.org/dc/elements/1.1/');

  sf.mediatypes['image/*'] = {
    'q': 0.9
  };

  sf.mediatypes['*/*'] = { // Must allow access to random content
    'q': 0.1
  };

  Fetcher.crossSiteProxy = function (uri) {
    if (Fetcher.crossSiteProxyTemplate) {
      return Fetcher.crossSiteProxyTemplate.replace('{uri}', encodeURIComponent(uri));
    } else {
      return undefined;
    }
  };

  Fetcher.RDFXMLHandler = function (args) {
    if (args) {
      this.dom = args[0];
    }
    this.handlerFactory = function (xhr) {
      xhr.handle = function (cb) {
        // sf.addStatus(xhr.req, 'parsing soon as RDF/XML...')
        var kb = sf.store;
        if (!this.dom) this.dom = Util.parseXML(xhr.responseText);
        var root = this.dom.documentElement;
        if (root.nodeName === 'parsererror') {
          // @@ Mozilla only See issue/issue110
          sf.failFetch(xhr, 'Badly formed XML in ' + xhr.resource.uri); // have to fail the request
          throw new Error('Badly formed XML in ' + xhr.resource.uri); // @@ Add details
        }
        var parser = new RDFParser(kb);
        try {
          parser.parse(this.dom, xhr.original.uri, xhr.original);
        } catch (e) {
          sf.addStatus(xhr.req, 'Syntax error parsing RDF/XML! ' + e);
          console.log('Syntax error parsing RDF/XML! ' + e);
        }
        if (!xhr.options.noMeta) {
          kb.add(xhr.original, ns.rdf('type'), ns.link('RDFDocument'), sf.appNode);
        }
        cb();
      };
    };
  };
  Fetcher.RDFXMLHandler.toString = function () {
    return 'RDFXMLHandler';
  };
  Fetcher.RDFXMLHandler.register = function (sf) {
    sf.mediatypes['application/rdf+xml'] = {
      'q': 0.9
    };
  };
  Fetcher.RDFXMLHandler.pattern = new RegExp('application/rdf\\+xml');

  // This would much better use on-board XSLT engine. @@
  /*  deprocated 2016-02-17  timbl
  Fetcher.doGRDDL = function(kb, doc, xslturi, xmluri) {
      sf.requestURI('http://www.w3.org/2005/08/' + 'online_xslt/xslt?' + 'xslfile=' + escape(xslturi) + '&xmlfile=' + escape(xmluri), doc)
  }
  */
  Fetcher.XHTMLHandler = function (args) {
    if (args) {
      this.dom = args[0];
    }
    this.handlerFactory = function (xhr) {
      xhr.handle = function (cb) {
        var relation, reverse;
        if (!this.dom) {
          this.dom = Util.parseXML(xhr.responseText);
        }
        var kb = sf.store;

        // dc:title
        var title = this.dom.getElementsByTagName('title');
        if (title.length > 0) {
          kb.add(xhr.resource, ns.dc('title'), kb.literal(title[0].textContent), xhr.resource);
          // log.info("Inferring title of " + xhr.resource)
        }

        // link rel
        var links = this.dom.getElementsByTagName('link');
        for (var x = links.length - 1; x >= 0; x--) {
          // @@ rev
          relation = links[x].getAttribute('rel');
          reverse = false;
          if (!relation) {
            relation = links[x].getAttribute('rev');
            reverse = true;
          }
          if (relation) {
            sf.linkData(xhr, relation, links[x].getAttribute('href'), xhr.resource, reverse);
          }
        }

        // Data Islands

        var scripts = this.dom.getElementsByTagName('script');
        for (var i = 0; i < scripts.length; i++) {
          var contentType = scripts[i].getAttribute('type');
          if (Parsable[contentType]) {
            rdfParse(scripts[i].textContent, kb, xhr.original.uri, contentType);
          }
        }

        if (!xhr.options.noMeta) {
          kb.add(xhr.resource, ns.rdf('type'), ns.link('WebPage'), sf.appNode);
        }

        if (!xhr.options.noRDFa && parseRDFaDOM) {
          // enable by default
          try {
            parseRDFaDOM(this.dom, kb, xhr.original.uri);
          } catch (e) {
            var msg = 'Error trying to parse ' + xhr.resource + ' as RDFa:\n' + e + ':\n' + e.stack;
            // dump(msg+"\n")
            sf.failFetch(xhr, msg);
            return;
          }
        }
        cb(); // Fire done callbacks
      };
    };
  };
  Fetcher.XHTMLHandler.toString = function () {
    return 'XHTMLHandler';
  };
  Fetcher.XHTMLHandler.register = function (sf) {
    sf.mediatypes['application/xhtml+xml'] = {};
  };
  Fetcher.XHTMLHandler.pattern = new RegExp('application/xhtml');

  Fetcher.XMLHandler = function () {
    this.handlerFactory = function (xhr) {
      xhr.handle = function (cb) {
        var dom = Util.parseXML(xhr.responseText);

        // XML Semantics defined by root element namespace
        // figure out the root element
        for (var c = 0; c < dom.childNodes.length; c++) {
          // is this node an element?
          if (dom.childNodes[c].nodeType === 1) {
            // We've found the first element, it's the root
            var ns = dom.childNodes[c].namespaceURI;

            // Is it RDF/XML?
            if (ns && ns === ns['rdf']) {
              sf.addStatus(xhr.req, 'Has XML root element in the RDF namespace, so assume RDF/XML.');
              sf.switchHandler('RDFXMLHandler', xhr, cb, [dom]);
              return;
            }
            // it isn't RDF/XML or we can't tell
            // Are there any GRDDL transforms for this namespace?
            // @@ assumes ns documents have already been loaded
            /*
            var xforms = kb.each(kb.sym(ns), kb.sym("http://www.w3.org/2003/g/data-view#namespaceTransformation"))
            for (var i = 0; i < xforms.length; i++) {
                var xform = xforms[i]
                // log.info(xhr.resource.uri + " namespace " + ns + " has GRDDL ns transform" + xform.uri)
                 Fetcher.doGRDDL(kb, xhr.resource, xform.uri, xhr.resource.uri)
            }
            */
            break;
          }
        }

        // Or it could be XHTML?
        // Maybe it has an XHTML DOCTYPE?
        if (dom.doctype) {
          // log.info("We found a DOCTYPE in " + xhr.resource)
          if (dom.doctype.name === 'html' && dom.doctype.publicId.match(/^-\/\/W3C\/\/DTD XHTML/) && dom.doctype.systemId.match(/http:\/\/www.w3.org\/TR\/xhtml/)) {
            sf.addStatus(xhr.req, 'Has XHTML DOCTYPE. Switching to XHTML Handler.\n');
            sf.switchHandler('XHTMLHandler', xhr, cb);
            return;
          }
        }

        // Or what about an XHTML namespace?
        var html = dom.getElementsByTagName('html')[0];
        if (html) {
          var xmlns = html.getAttribute('xmlns');
          if (xmlns && xmlns.match(/^http:\/\/www.w3.org\/1999\/xhtml/)) {
            sf.addStatus(xhr.req, 'Has a default namespace for ' + 'XHTML. Switching to XHTMLHandler.\n');
            sf.switchHandler('XHTMLHandler', xhr, cb);
            return;
          }
        }

        // At this point we should check the namespace document (cache it!) and
        // look for a GRDDL transform
        // @@  Get namespace document <n>, parse it, look for  <n> grddl:namespaceTransform ?y
        // Apply ?y to   dom
        // We give up. What dialect is this?
        sf.failFetch(xhr, 'Unsupported dialect of XML: not RDF or XHTML namespace, etc.\n' + xhr.responseText.slice(0, 80));
      };
    };
  };

  Fetcher.XMLHandler.toString = function () {
    return 'XMLHandler';
  };
  Fetcher.XMLHandler.register = function (sf) {
    sf.mediatypes['text/xml'] = {
      'q': 0.5
    };
    sf.mediatypes['application/xml'] = {
      'q': 0.5
    };
  };
  Fetcher.XMLHandler.pattern = new RegExp('(text|application)/(.*)xml');

  Fetcher.HTMLHandler = function () {
    this.handlerFactory = function (xhr) {
      xhr.handle = function (cb) {
        var rt = xhr.responseText;
        // We only handle XHTML so we have to figure out if this is XML
        // log.info("Sniffing HTML " + xhr.resource + " for XHTML.")

        if (rt.match(/\s*<\?xml\s+version\s*=[^<>]+\?>/)) {
          sf.addStatus(xhr.req, "Has an XML declaration. We'll assume " + "it's XHTML as the content-type was text/html.\n");
          sf.switchHandler('XHTMLHandler', xhr, cb);
          return;
        }

        // DOCTYPE
        // There is probably a smarter way to do this
        if (rt.match(/.*<!DOCTYPE\s+html[^<]+-\/\/W3C\/\/DTD XHTML[^<]+http:\/\/www.w3.org\/TR\/xhtml[^<]+>/)) {
          sf.addStatus(xhr.req, 'Has XHTML DOCTYPE. Switching to XHTMLHandler.\n');
          sf.switchHandler('XHTMLHandler', xhr, cb);
          return;
        }

        // xmlns
        if (rt.match(/[^(<html)]*<html\s+[^<]*xmlns=['"]http:\/\/www.w3.org\/1999\/xhtml["'][^<]*>/)) {
          sf.addStatus(xhr.req, 'Has default namespace for XHTML, so switching to XHTMLHandler.\n');
          sf.switchHandler('XHTMLHandler', xhr, cb);
          return;
        }

        // dc:title	                       //no need to escape '/' here
        var titleMatch = new RegExp('<title>([\\s\\S]+?)</title>', 'im').exec(rt);
        if (titleMatch) {
          var kb = sf.store;
          kb.add(xhr.resource, ns.dc('title'), kb.literal(titleMatch[1]), xhr.resource); // think about xml:lang later
          kb.add(xhr.resource, ns.rdf('type'), ns.link('WebPage'), sf.appNode);
          cb(); // doneFetch, not failed
          return;
        }
        sf.addStatus(xhr.req, 'non-XML HTML document, not parsed for data.');
        sf.doneFetch(xhr);
        // sf.failFetch(xhr, "Sorry, can't yet parse non-XML HTML")
      };
    };
  };

  Fetcher.HTMLHandler.toString = function () {
    return 'HTMLHandler';
  };
  Fetcher.HTMLHandler.register = function (sf) {
    sf.mediatypes['text/html'] = {
      'q': 0.9
    };
  };
  Fetcher.HTMLHandler.pattern = new RegExp('text/html');

  Fetcher.TextHandler = function () {
    this.handlerFactory = function (xhr) {
      xhr.handle = function (cb) {
        // We only speak dialects of XML right now. Is this XML?
        var rt = xhr.responseText;

        // Look for an XML declaration
        if (rt.match(/\s*<\?xml\s+version\s*=[^<>]+\?>/)) {
          sf.addStatus(xhr.req, 'Warning: ' + xhr.resource + " has an XML declaration. We'll assume " + "it's XML but its content-type wasn't XML.\n");
          sf.switchHandler('XMLHandler', xhr, cb);
          return;
        }

        // Look for an XML declaration
        if (rt.slice(0, 500).match(/xmlns:/)) {
          sf.addStatus(xhr.req, "May have an XML namespace. We'll assume " + "it's XML but its content-type wasn't XML.\n");
          sf.switchHandler('XMLHandler', xhr, cb);
          return;
        }

        // We give up finding semantics - this is not an error, just no data
        sf.addStatus(xhr.req, 'Plain text document, no known RDF semantics.');
        sf.doneFetch(xhr);
        //                sf.failFetch(xhr, "unparseable - text/plain not visibly XML")
        //                dump(xhr.resource + " unparseable - text/plain not visibly XML, starts:\n" + rt.slice(0, 500)+"\n")
      };
    };
  };

  Fetcher.TextHandler.toString = function () {
    return 'TextHandler';
  };
  Fetcher.TextHandler.register = function (sf) {
    sf.mediatypes['text/plain'] = {
      'q': 0.5
    };
  };
  Fetcher.TextHandler.pattern = new RegExp('text/plain');

  Fetcher.N3Handler = function () {
    this.handlerFactory = function (xhr) {
      xhr.handle = function (cb) {
        // Parse the text of this non-XML file

        // console.log('web.js: Parsing as N3 ' + xhr.resource.uri + ' base: ' + xhr.original.uri) // @@@@ comment me out
        // sf.addStatus(xhr.req, "N3 not parsed yet...")
        var p = N3Parser(kb, kb, xhr.original.uri, xhr.original.uri, null, null, '', null);
        //                p.loadBuf(xhr.responseText)
        try {
          p.loadBuf(xhr.responseText);
        } catch (e) {
          var msg = 'Error trying to parse ' + xhr.resource + ' as Notation3:\n' + e + ':\n' + e.stack;
          // dump(msg+"\n")
          sf.failFetch(xhr, msg);
          return;
        }

        sf.addStatus(xhr.req, 'N3 parsed: ' + p.statementCount + ' triples in ' + p.lines + ' lines.');
        sf.store.add(xhr.original, ns.rdf('type'), ns.link('RDFDocument'), sf.appNode);
        // var args = [xhr.original.uri] // Other args needed ever?
        sf.doneFetch(xhr);
      };
    };
  };

  Fetcher.N3Handler.toString = function () {
    return 'N3Handler';
  };
  Fetcher.N3Handler.register = function (sf) {
    sf.mediatypes['text/n3'] = {
      'q': '1.0'
    }; // as per 2008 spec
    /*
    sf.mediatypes['application/x-turtle'] = {
      'q': 1.0
    } // pre 2008
    */
    sf.mediatypes['text/turtle'] = {
      'q': 1.0
    }; // post 2008
  };
  Fetcher.N3Handler.pattern = new RegExp('(application|text)/(x-)?(rdf\\+)?(n3|turtle)');

  Util.callbackify(this, ['request', 'recv', 'headers', 'load', 'fail', 'refresh', 'retract', 'done']);

  this.addHandler = function (handler) {
    sf.handlers.push(handler);
    handler.register(sf);
  };

  this.switchHandler = function (name, xhr, cb, args) {
    var Handler = null;
    for (var i = 0; i < this.handlers.length; i++) {
      if ('' + this.handlers[i] === name) {
        Handler = this.handlers[i];
      }
    }
    if (!Handler) {
      throw new Error('web.js: switchHandler: name=' + name + ' , this.handlers =' + this.handlers + '\n' + 'switchHandler: switching to ' + Handler + '; sf=' + sf + '; typeof Fetcher=' + (typeof Fetcher === 'undefined' ? 'undefined' : _typeof(Fetcher)) + ';\n\t Fetcher.HTMLHandler=' + Fetcher.HTMLHandler + '\n' + '\n\tsf.handlers=' + sf.handlers + '\n');
    }
    new Handler(args).handlerFactory(xhr);
    xhr.handle(cb);
  };

  this.addStatus = function (req, status) {
    // <Debug about="parsePerformance">
    var now = new Date();
    status = '[' + now.getHours() + ':' + now.getMinutes() + ':' + now.getSeconds() + '.' + now.getMilliseconds() + '] ' + status;
    // </Debug>
    var kb = this.store;
    var s = kb.the(req, ns.link('status'));
    if (s && s.append) {
      s.append(kb.literal(status));
    } else {
      log.warn('web.js: No list to add to: ' + s + ',' + status); // @@@
    }
  };

  // Record errors in the system on failure
  // Returns xhr so can just do return this.failfetch(...)
  this.failFetch = function (xhr, status) {
    this.addStatus(xhr.req, status);
    if (!xhr.options.noMeta) {
      kb.add(xhr.original, ns.link('error'), status);
    }
    if (!xhr.resource.sameTerm(xhr.original)) {
      console.log('@@ Recording failure original ' + xhr.original + '( as ' + xhr.resource + ') : ' + xhr.status);
    } else {
      console.log('@@ Recording failure for ' + xhr.original + ': ' + xhr.status);
    }
    this.requested[Uri.docpart(xhr.original.uri)] = xhr.status; // changed 2015 was false
    while (this.fetchCallbacks[xhr.original.uri] && this.fetchCallbacks[xhr.original.uri].length) {
      this.fetchCallbacks[xhr.original.uri].shift()(false, 'Fetch of <' + xhr.original.uri + '> failed: ' + status, xhr);
    }
    delete this.fetchCallbacks[xhr.original.uri];
    this.fireCallbacks('fail', [xhr.original.uri, status]);
    xhr.abort();
    return xhr;
  };

  // in the why part of the quad distinguish between HTML and HTTP header
  // Reverse is set iif the link was rev= as opposed to rel=
  this.linkData = function (xhr, rel, uri, why, reverse) {
    if (!uri) return;
    var predicate;
    // See http://www.w3.org/TR/powder-dr/#httplink for describedby 2008-12-10
    var obj = kb.sym(Uri.join(uri, xhr.original.uri));
    if (rel === 'alternate' || rel === 'seeAlso' || rel === 'meta' || rel === 'describedby') {
      if (obj.uri === xhr.original.uri) return;
      predicate = ns.rdfs('seeAlso');
    } else if (rel === 'type') {
      predicate = kb.sym('http://www.w3.org/1999/02/22-rdf-syntax-ns#type');
    } else {
      // See https://www.iana.org/assignments/link-relations/link-relations.xml
      // Alas not yet in RDF yet for each predicate
      /// encode space in e.g. rel="shortcut icon"
      predicate = kb.sym(Uri.join(encodeURIComponent(rel), 'http://www.iana.org/assignments/link-relations/'));
    }
    if (reverse) {
      kb.add(obj, predicate, xhr.original, why);
    } else {
      kb.add(xhr.original, predicate, obj, why);
    }
  };

  this.parseLinkHeader = function (xhr, thisReq) {
    var link;
    try {
      link = xhr.getResponseHeader('link'); // May crash from CORS error
    } catch (e) {}
    if (link) {
      var linkexp = /<[^>]*>\s*(\s*;\s*[^\(\)<>@,;:"\/\[\]\?={} \t]+=(([^\(\)<>@,;:"\/\[\]\?={} \t]+)|("[^"]*")))*(,|$)/g;
      var paramexp = /[^\(\)<>@,;:"\/\[\]\?={} \t]+=(([^\(\)<>@,;:"\/\[\]\?={} \t]+)|("[^"]*"))/g;

      var matches = link.match(linkexp);
      for (var i = 0; i < matches.length; i++) {
        var split = matches[i].split('>');
        var href = split[0].substring(1);
        var ps = split[1];
        var s = ps.match(paramexp);
        for (var j = 0; j < s.length; j++) {
          var p = s[j];
          var paramsplit = p.split('=');
          // var name = paramsplit[0]
          var rel = paramsplit[1].replace(/["']/g, ''); // '"
          this.linkData(xhr, rel, href, thisReq);
        }
      }
    }
  };

  this.doneFetch = function (xhr) {
    this.addStatus(xhr.req, 'Done.');
    this.requested[xhr.original.uri] = 'done'; // Kenny
    while (this.fetchCallbacks[xhr.original.uri] && this.fetchCallbacks[xhr.original.uri].length) {
      this.fetchCallbacks[xhr.original.uri].shift()(true, undefined, xhr);
    }
    delete this.fetchCallbacks[xhr.original.uri];
    this.fireCallbacks('done', [xhr.original.uri]);
  };
  var handlerList = [Fetcher.RDFXMLHandler, Fetcher.XHTMLHandler, Fetcher.XMLHandler, Fetcher.HTMLHandler, Fetcher.TextHandler, Fetcher.N3Handler];
  handlerList.map(this.addHandler);

  /** Note two nodes are now smushed
   **
   ** If only one was flagged as looked up, then
   ** the new node is looked up again, which
   ** will make sure all the URIs are dereferenced
   */
  this.nowKnownAs = function (was, now) {
    if (this.lookedUp[was.uri]) {
      if (!this.lookedUp[now.uri]) this.lookUpThing(now, was); //  @@@@  Transfer userCallback
    } else if (this.lookedUp[now.uri]) {
      if (!this.lookedUp[was.uri]) this.lookUpThing(was, now);
    }
  };

  // Returns promise of XHR
  //
  //  Writes back to the web what we have in the store for this uri
  this.putBack = function (uri) {
    var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];

    uri = uri.uri || uri; // Accept object or string
    var doc = new NamedNode(uri).doc(); // strip off #
    options.data = serialize(doc, this.store, doc.uri, options.contentType || 'text/turtle');
    return this.webOperation('PUT', uri, options);
  };

  // Returns promise of XHR
  //
  this.webOperation = function (method, uri) {
    var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];

    uri = uri.uri || uri;
    uri = this.proxyIfNecessary(uri);
    var fetcher = this;
    return new Promise(function (resolve, reject) {
      var xhr = Util.XMLHTTPFactory();
      xhr.options = options;
      xhr.original = fetcher.store.sym(uri);
      if (!options.noMeta && typeof tabulator !== 'undefined') {
        fetcher.saveRequestMetadata(xhr, fetcher.store, uri);
      }
      xhr.onreadystatechange = function () {
        if (xhr.readyState === 4) {
          // NOte a 404 can be not afailure
          var ok = !xhr.status || xhr.status >= 200 && xhr.status < 300;
          if (!options.noMeta && typeof tabulator !== 'undefined') {
            fetcher.saveResponseMetadata(xhr, fetcher.store);
          }
          if (ok) {
            resolve(xhr);
          } else {
            reject(xhr.status + ' ' + xhr.statusText);
          }
        }
      };
      xhr.open(method, uri, true);
      xhr.setRequestHeader('Content-type', options.contentType || 'text/turtle');
      xhr.send(options.data ? options.data : undefined);
    });
  };

  this.webCopy = function (here, there, content_type) {
    var fetcher = this;
    here = here.uri || here;
    return new Promise(function (resolve, reject) {
      fetcher.webOperation('GET', here).then(function (xhr) {
        fetcher.webOperation('PUT', // @@@ change to binary from text
        there, { data: xhr.responseText, contentType: content_type }).then(function (xhr) {
          resolve(xhr);
        }).catch(function (e) {
          reject(e);
        });
      }).catch(function (e) {
        reject(e);
      });
    });
  };

  // Looks up something.
  //
  // Looks up all the URIs a things has.
  //
  // Parameters:
  //
  //  term:       canonical term for the thing whose URI is to be dereferenced
  //  rterm:      the resource which refered to this (for tracking bad links)
  //  options:    (old: force paraemter) or dictionary of options:
  //      force:      Load the data even if loaded before
  //  oneDone:   is called as callback(ok, errorbody, xhr) for each one
  //  allDone:   is called as callback(ok, errorbody) for all of them
  // Returns      the number of URIs fetched
  //
  this.lookUpThing = function (term, rterm, options, oneDone, allDone) {
    var uris = kb.uris(term); // Get all URIs
    var success = true;
    var errors = '';
    var outstanding = {};
    var force;
    if (options === false || options === true) {
      // Old signature
      force = options;
      options = { force: force };
    } else {
      if (options === undefined) options = {};
      force = !!options.force;
    }

    if (typeof uris !== 'undefined') {
      for (var i = 0; i < uris.length; i++) {
        var u = uris[i];
        outstanding[u] = true;
        this.lookedUp[u] = true;
        var sf = this;

        var requestOne = function requestOne(u1) {
          sf.requestURI(Uri.docpart(u1), rterm, options, function (ok, body, xhr) {
            if (ok) {
              if (oneDone) oneDone(true, u1);
            } else {
              if (oneDone) oneDone(false, body);
              success = false;
              errors += body + '\n';
            }
            delete outstanding[u];
            if (Object.keys(outstanding).length > 0) {
              return;
            }
            if (allDone) {
              allDone(success, errors);
            }
          });
        };
        requestOne(u);
      }
    }
    return uris.length;
  };

  /* Promise-based load function
  **
  ** NamedNode -> Promise of xhr
  ** uri string -> Promise of xhr
  ** Array of the above -> Promise of array of xhr
  **
  ** @@ todo: If p1 is array then sequence or parallel fetch of all
  */
  this.load = function (uri, options) {
    var fetcher = this;
    if (uri instanceof Array) {
      var ps = uri.map(function (x) {
        return fetcher.load(x);
      });
      return Promise.all(ps);
    }
    uri = uri.uri || uri; // NamedNode or URI string
    return new Promise(function (resolve, reject) {
      fetcher.nowOrWhenFetched(uri, options, function (ok, message, xhr) {
        if (ok) {
          resolve(xhr);
        } else {
          reject(message);
        }
      });
    });
  };

  /*  Ask for a doc to be loaded if necessary then call back
  **
  ** Changed 2013-08-20:  Added (ok, errormessage) params to callback
  **
  ** Calling methods:
  **   nowOrWhenFetched (uri, userCallback)
  **   nowOrWhenFetched (uri, options, userCallback)
  **   nowOrWhenFetched (uri, referringTerm, userCallback, options)  <-- old
  **   nowOrWhenFetched (uri, referringTerm, userCallback) <-- old
  **
  **  Options include:
  **   referringTerm    The docuemnt in which this link was found.
  **                    this is valuable when finding the source of bad URIs
  **   force            boolean.  Never mind whether you have tried before,
  **                    load this from scratch.
  **   forceContentType Override the incoming header to force the data to be
  **                    treaed as this content-type.
  **/
  this.nowOrWhenFetched = function (uri, p2, userCallback, options) {
    uri = uri.uri || uri; // allow symbol object or string to be passed
    if (typeof p2 === 'function') {
      options = {};
      userCallback = p2;
    } else if (typeof p2 === 'undefined') {// original calling signature
      // referingTerm = undefined
    } else if (p2 instanceof NamedNode) {
      // referingTerm = p2
      options = { referingTerm: p2 };
    } else {
      options = p2;
    }

    this.requestURI(uri, p2, options || {}, userCallback);
  };

  this.get = this.nowOrWhenFetched;

  // Look up response header
  //
  // Returns: a list of header values found in a stored HTTP response
  //      or [] if response was found but no header found
  //      or undefined if no response is available.
  //
  this.getHeader = function (doc, header) {
    var kb = this.store;
    var requests = kb.each(undefined, ns.link('requestedURI'), doc.uri);
    for (var r = 0; r < requests.length; r++) {
      var request = requests[r];
      if (request !== undefined) {
        var response = kb.any(request, ns.link('response'));
        if (request !== undefined) {
          var results = kb.each(response, ns.httph(header.toLowerCase()));
          if (results.length) {
            return results.map(function (v) {
              return v.value;
            });
          }
          return [];
        }
      }
    }
    return undefined;
  };

  this.proxyIfNecessary = function (uri) {
    if (typeof tabulator !== 'undefined' && tabulator.isExtension) return uri; // Extenstion does not need proxy

    if (typeof $SolidTestEnvironment !== 'undefined' && $SolidTestEnvironment.localSiteMap) {
      // nested dictionaries of URI parts from origin down
      var hostpath = uri.split('/').slice(2); // the bit after the //
      var lookup = function lookup(parts, index) {
        var z = index[parts.shift()];
        if (!z) return null;
        if (typeof z === 'string') {
          return z + parts.join('/');
        }
        if (!parts) return null;
        return lookup(parts, z);
      };
      var y = lookup(hostpath, $SolidTestEnvironment.localSiteMap);
      if (y) {
        return y;
      }
    }
    // browser does 2014 on as https browser script not trusted
    // If the web app origin is https: then the mixed content rules
    // prevent it loading insecure http: stuff so we need proxy.
    if (Fetcher.crossSiteProxyTemplate && typeof document !== 'undefined' && document.location && ('' + document.location).slice(0, 6) === 'https:' && // origin is secure
    uri.slice(0, 5) === 'http:') {
      // requested data is not
      return Fetcher.crossSiteProxyTemplate.replace('{uri}', encodeURIComponent(uri));
    }
    return uri;
  };

  this.saveRequestMetadata = function (xhr, kb, docuri) {
    var request = kb.bnode();
    xhr.resource = kb.sym(docuri);

    xhr.req = request;
    if (!xhr.options.noMeta) {
      // Store no triples but do mind the bnode for req
      var now = new Date();
      var timeNow = '[' + now.getHours() + ':' + now.getMinutes() + ':' + now.getSeconds() + '] ';
      kb.add(request, ns.rdfs('label'), kb.literal(timeNow + ' Request for ' + docuri), this.appNode);
      kb.add(request, ns.link('requestedURI'), kb.literal(docuri), this.appNode);
      if (xhr.original && xhr.original.uri !== docuri) {
        kb.add(request, ns.link('orginalURI'), kb.literal(xhr.original.uri), this.appNode);
      }
      kb.add(request, ns.link('status'), kb.collection(), this.appNode);
    }
    return request;
  };

  this.saveResponseMetadata = function (xhr, kb) {
    var response = kb.bnode();

    if (xhr.req) kb.add(xhr.req, ns.link('response'), response);
    kb.add(response, ns.http('status'), kb.literal(xhr.status), response);
    kb.add(response, ns.http('statusText'), kb.literal(xhr.statusText), response);

    xhr.headers = {};
    if (Uri.protocol(xhr.resource.uri) === 'http' || Uri.protocol(xhr.resource.uri) === 'https') {
      xhr.headers = Util.getHTTPHeaders(xhr);
      for (var h in xhr.headers) {
        // trim below for Safari - adds a CR!
        var value = xhr.headers[h].trim();
        var h2 = h.toLowerCase();
        kb.add(response, ns.httph(h2), value, response);
        if (h2 === 'content-type') {
          // Convert to RDF type
          kb.add(xhr.resource, ns.rdf('type'), Util.mediaTypeClass(value), response);
        }
      }
    }
    return response;
  };

  /** Requests a document URI and arranges to load the document.
   ** Parameters:
   **	    term:  term for the thing whose URI is to be dereferenced
   **      rterm:  the resource which refered to this (for tracking bad links)
   **      options:
   **              force:  Load the data even if loaded before
   **              withCredentials:   flag for XHR/CORS etc
   **      userCallback:  Called with (true) or (false, errorbody, {status: 400}) after load is done or failed
   ** Return value:
   **	    The xhr object for the HTTP access
   **      null if the protocol is not a look-up protocol,
   **              or URI has already been loaded
   */
  this.requestURI = function (docuri, rterm, options, userCallback) {
    // sources_request_new
    // Various calling conventions
    docuri = docuri.uri || docuri; // NamedNode or string
    docuri = docuri.split('#')[0];
    if (typeof options === 'boolean') {
      options = { 'force': options }; // Ols dignature
    }
    if (typeof options === 'undefined') options = {};

    var force = !!options.force;
    var kb = this.store;
    var args = arguments;
    var baseURI = options.baseURI || docuri; // Preseve though proxying etc
    options.userCallback = userCallback;

    var pcol = Uri.protocol(docuri);
    if (pcol === 'tel' || pcol === 'mailto' || pcol === 'urn') {
      // "No look-up operation on these, but they are not errors?"
      console.log('Unsupported protocol in: ' + docuri);
      return userCallback(false, 'Unsupported protocol', { 'status': 900 }) || undefined;
    }
    var docterm = kb.sym(docuri);

    var sta = this.getState(docuri);
    if (!force) {
      if (sta === 'fetched') {
        return userCallback ? userCallback(true) : undefined;
      }
      if (sta === 'failed') {
        return userCallback ? userCallback(false, 'Previously failed. ' + this.requested[docuri], { 'status': this.requested[docuri] }) : undefined; // An xhr standin
      }
      // if (sta === 'requested') return userCallback? userCallback(false, "Sorry already requested - pending already.", {'status': 999 }) : undefined
    } else {
      delete this.nonexistant[docuri];
    }
    // @@ Should allow concurrent requests

    // If it is 'failed', then shoulkd we try again?  I think so so an old error doens't get stuck
    // if (sta === 'unrequested')

    this.fireCallbacks('request', args); // Kenny: fire 'request' callbacks here
    // dump( "web.js: Requesting uri: " + docuri + "\n" )

    if (userCallback) {
      if (!this.fetchCallbacks[docuri]) {
        this.fetchCallbacks[docuri] = [userCallback];
      } else {
        this.fetchCallbacks[docuri].push(userCallback);
      }
    }

    if (this.requested[docuri] === true) {
      return; // Don't ask again - wait for existing call
    } else {
      this.requested[docuri] = true;
    }

    if (!options.noMeta && rterm && rterm.uri) {
      kb.add(docterm.uri, ns.link('requestedBy'), rterm.uri, this.appNode);
    }

    var xhr = Util.XMLHTTPFactory();
    var req = xhr.req = kb.bnode();
    xhr.original = kb.sym(baseURI);
    // console.log('XHR original: ' + xhr.original)
    xhr.options = options;
    xhr.resource = docterm; // This might be proxified
    var sf = this;

    var now = new Date();
    var timeNow = '[' + now.getHours() + ':' + now.getMinutes() + ':' + now.getSeconds() + '] ';
    if (!options.noMeta) {
      kb.add(req, ns.rdfs('label'), kb.literal(timeNow + ' Request for ' + docuri), this.appNode);
      kb.add(req, ns.link('requestedURI'), kb.literal(docuri), this.appNode);
      kb.add(req, ns.link('status'), kb.collection(), this.appNode);
    }

    var checkCredentialsRetry = function checkCredentialsRetry() {
      if (!xhr.withCredentials) return false; // not dealt with

      if (xhr.retriedWithCredentials) {
        return true;
      }
      xhr.retriedWithCredentials = true; // protect against called twice
      console.log('web: Retrying with no credentials for ' + xhr.resource);
      xhr.abort();
      delete sf.requested[docuri]; // forget the original request happened
      var newopt = {};
      for (var opt in options) {
        // transfer baseURI etc
        if (options.hasOwnProperty(opt)) {
          newopt[opt] = options[opt];
        }
      }
      newopt.withCredentials = false;
      sf.addStatus(xhr.req, 'Abort: Will retry with credentials SUPPRESSED to see if that helps');
      sf.requestURI(docuri, rterm, newopt, xhr.userCallback); // userCallback already registered (with where?)
      return true;
    };

    var onerrorFactory = function onerrorFactory(xhr) {
      return function (event) {
        xhr.onErrorWasCalled = true; // debugging and may need it
        if (typeof document !== 'undefined') {
          // Mashup situation, not node etc
          if (Fetcher.crossSiteProxyTemplate && document.location && !xhr.proxyUsed) {
            var hostpart = Uri.hostpart;
            var here = '' + document.location;
            var uri = xhr.resource.uri;
            if (hostpart(here) && hostpart(uri) && hostpart(here) !== hostpart(uri)) {
              // If cross-site
              if (xhr.status === 401 || xhr.status === 403 || xhr.status === 404) {
                onreadystatechangeFactory(xhr)();
              } else {
                // IT IS A PAIN THAT NO PROPER ERROR REPORTING
                if (checkCredentialsRetry(xhr)) {
                  // If credentials flag set, retry without,
                  return;
                }
                // If it wasn't, or we already tried that
                var newURI = Fetcher.crossSiteProxy(uri);
                console.log('web: Direct failed so trying proxy ' + newURI);
                sf.addStatus(xhr.req, 'BLOCKED -> Cross-site Proxy to <' + newURI + '>');
                if (xhr.aborted) return;

                var kb = sf.store;
                var oldreq = xhr.req;
                if (!xhr.options.noMeta) {
                  kb.add(oldreq, ns.http('redirectedTo'), kb.sym(newURI), oldreq);
                }
                xhr.abort();
                xhr.aborted = true;

                sf.addStatus(oldreq, 'redirected to new request'); // why
                // the callback throws an exception when called from xhr.onerror (so removed)
                // sf.fireCallbacks('done', args) // Are these args right? @@@   Not done yet! done means success
                sf.requested[xhr.resource.uri] = 'redirected';
                sf.redirectedTo[xhr.resource.uri] = newURI;

                if (sf.fetchCallbacks[xhr.resource.uri]) {
                  if (!sf.fetchCallbacks[newURI]) {
                    sf.fetchCallbacks[newURI] = [];
                  }
                  sf.fetchCallbacks[newURI] === sf.fetchCallbacks[newURI].concat(sf.fetchCallbacks[xhr.resource.uri]);
                  delete sf.fetchCallbacks[xhr.resource.uri];
                }

                var xhr2 = sf.requestURI(newURI, xhr.resource, xhr.options, xhr.userCallback);
                if (xhr2) {
                  xhr2.proxyUsed = true; // only try the proxy once
                  xhr2.original = xhr.original;
                  console.log('Proxying but original still ' + xhr2.original);
                }
                if (xhr2 && xhr2.req) {
                  if (!xhr.options.noMeta) {
                    kb.add(xhr.req, kb.sym('http://www.w3.org/2007/ont/link#redirectedRequest'), xhr2.req, sf.appNode);
                  }
                  return;
                }
              }
            }
            xhr.CORS_status = 999;
            // xhr.status = 999     forbidden - read-only
          }
        } // mashu
      }; // function of event
    }; // onerrorFactory

    // Set up callbacks
    var onreadystatechangeFactory = function onreadystatechangeFactory(xhr) {
      return function () {
        var handleResponse = function handleResponse() {
          if (xhr.handleResponseDone) return;
          xhr.handleResponseDone = true;
          var handler = null;
          var thisReq = xhr.req; // Might have changes by redirect
          sf.fireCallbacks('recv', args);
          var kb = sf.store;
          sf.saveResponseMetadata(xhr, kb);
          sf.fireCallbacks('headers', [{ uri: docuri, headers: xhr.headers }]);

          // Check for masked errors.
          // For "security reasons" theboraser hides errors such as CORS errors from
          // the calling code (2015). oneror() used to be called but is not now.
          //
          if (xhr.status === 0) {
            console.log('Masked error - status 0 for ' + xhr.resource.uri);
            if (checkCredentialsRetry(xhr)) {
              // retry is could be credentials flag CORS issue
              return;
            }
            xhr.CORS_status = 900; // unknown masked error
            return;
          }
          if (xhr.status >= 400) {
            // For extra dignostics, keep the reply
            //  @@@ 401 should cause  a retry with credential son
            // @@@ cache the credentials flag by host ????
            if (xhr.status === 404) {
              kb.fetcher.nonexistant[xhr.resource.uri] = true;
            }
            if (xhr.responseText.length > 10) {
              var response2 = kb.bnode();
              kb.add(response2, ns.http('content'), kb.literal(xhr.responseText), response2);
              if (xhr.statusText) {
                kb.add(response2, ns.http('statusText'), kb.literal(xhr.statusText), response2);
              }
              // dump("HTTP >= 400 responseText:\n"+xhr.responseText+"\n"); // @@@@
            }
            sf.failFetch(xhr, 'HTTP error for ' + xhr.resource + ': ' + xhr.status + ' ' + xhr.statusText);
            return;
          }

          var loc = xhr.headers['content-location'];
          if (loc) {
            loc = Uri.join(loc, docuri);
          }

          // deduce some things from the HTTP transaction
          var addType = function addType(cla) {
            // add type to all redirected resources too
            var prev = thisReq;
            if (loc) {
              var docURI = kb.any(prev, ns.link('requestedURI'));
              if (docURI !== loc) {
                kb.add(kb.sym(loc), ns.rdf('type'), cla, sf.appNode);
              }
            }
            for (;;) {
              var doc = kb.any(prev, ns.link('requestedURI'));
              if (doc && doc.value) {
                kb.add(kb.sym(doc.value), ns.rdf('type'), cla, sf.appNode);
              } // convert Literal
              prev = kb.any(undefined, kb.sym('http://www.w3.org/2007/ont/link#redirectedRequest'), prev);
              if (!prev) break;
              var response = kb.any(prev, kb.sym('http://www.w3.org/2007/ont/link#response'));
              if (!response) break;
              var redirection = kb.any(response, kb.sym('http://www.w3.org/2007/ont/http#status'));
              if (!redirection) break;
              if (redirection !== '301' && redirection !== '302') break;
            }
          };
          // This is a minimal set to allow the use of damaged servers if necessary
          var extensionToContentType = {
            'rdf': 'application/rdf+xml', 'owl': 'application/rdf+xml',
            'n3': 'text/n3', 'ttl': 'text/turtle', 'nt': 'text/n3', 'acl': 'text/n3',
            'html': 'text/html',
            'xml': 'text/xml'
          };
          var guess;
          if (xhr.status === 200) {
            addType(ns.link('Document'));
            var ct = xhr.headers['content-type'];
            if (options.forceContentType) {
              xhr.headers['content-type'] = options.forceContentType;
            }
            if (!ct || ct.indexOf('application/octet-stream') >= 0) {
              guess = extensionToContentType[xhr.resource.uri.split('.').pop()];
              if (guess) {
                xhr.headers['content-type'] = guess;
              }
            }
            if (ct) {
              if (ct.indexOf('image/') === 0 || ct.indexOf('application/pdf') === 0) addType(kb.sym('http://purl.org/dc/terms/Image'));
            }
            if (options.clearPreviousData) {
              // Before we parse new data clear old but only on 200
              kb.removeDocument(xhr.resource);
            }
          }
          // application/octet-stream; charset=utf-8

          if (Uri.protocol(xhr.resource.uri) === 'file' || Uri.protocol(xhr.resource.uri) === 'chrome') {
            if (options.forceContentType) {
              xhr.headers['content-type'] = options.forceContentType;
            } else {
              guess = extensionToContentType[xhr.resource.uri.split('.').pop()];
              if (guess) {
                xhr.headers['content-type'] = guess;
              } else {
                xhr.headers['content-type'] = 'text/xml';
              }
            }
          }

          // If we have alread got the thing at this location, abort
          if (loc) {
            var udoc = Uri.join(xhr.resource.uri, loc);
            if (!force && udoc !== xhr.resource.uri && sf.requested[udoc] && sf.requested[udoc] === 'done') {
              // we have already fetched this in fact.
              // should we smush too?
              // log.info("HTTP headers indicate we have already" + " retrieved " + xhr.resource + " as " + udoc + ". Aborting.")
              sf.doneFetch(xhr);
              xhr.abort();
              return;
            }
            sf.requested[udoc] = true;
          }

          for (var x = 0; x < sf.handlers.length; x++) {
            if (xhr.headers['content-type'] && xhr.headers['content-type'].match(sf.handlers[x].pattern)) {
              handler = new sf.handlers[x]();
              break;
            }
          }

          sf.parseLinkHeader(xhr, thisReq);

          if (handler) {
            try {
              handler.handlerFactory(xhr);
            } catch (e) {
              // Try to avoid silent errors
              sf.failFetch(xhr, 'Exception handling content-type ' + xhr.headers['content-type'] + ' was: ' + e);
            }
          } else {
            sf.doneFetch(xhr); //  Not a problem, we just don't extract data.
            /*
            // sf.failFetch(xhr, "Unhandled content type: " + xhr.headers['content-type']+
            //        ", readyState = "+xhr.readyState)
            */
            return;
          }
        };

        // DONE: 4
        // HEADERS_RECEIVED: 2
        // LOADING: 3
        // OPENED: 1
        // UNSENT: 0

        // log.debug("web.js: XHR " + xhr.resource.uri + ' readyState='+xhr.readyState); // @@@@ comment me out

        switch (xhr.readyState) {
          case 0:
            var uri = xhr.resource.uri;
            var newURI;
            if (this.crossSiteProxyTemplate && typeof document !== 'undefined' && document.location) {
              // In mashup situation
              var hostpart = Uri.hostpart;
              var here = '' + document.location;
              if (hostpart(here) && hostpart(uri) && hostpart(here) !== hostpart(uri)) {
                newURI = this.crossSiteProxyTemplate.replace('{uri}', encodeURIComponent(uri));
                sf.addStatus(xhr.req, 'BLOCKED -> Cross-site Proxy to <' + newURI + '>');
                if (xhr.aborted) return;

                var kb = sf.store;
                var oldreq = xhr.req;
                kb.add(oldreq, ns.http('redirectedTo'), kb.sym(newURI), oldreq);

                // //////////// Change the request node to a new one:  @@@@@@@@@@@@ Duplicate?
                var newreq = xhr.req = kb.bnode(); // Make NEW reqest for everything else
                kb.add(oldreq, ns.http('redirectedRequest'), newreq, xhr.req);

                var now = new Date();
                var timeNow = '[' + now.getHours() + ':' + now.getMinutes() + ':' + now.getSeconds() + '] ';
                kb.add(newreq, ns.rdfs('label'), kb.literal(timeNow + ' Request for ' + newURI), this.appNode);
                kb.add(newreq, ns.link('status'), kb.collection(), this.appNode);
                kb.add(newreq, ns.link('requestedURI'), kb.literal(newURI), this.appNode);

                var response = kb.bnode();
                kb.add(oldreq, ns.link('response'), response);
                // kb.add(response, ns.http('status'), kb.literal(xhr.status), response)
                // if (xhr.statusText) kb.add(response, ns.http('statusText'), kb.literal(xhr.statusText), response)

                xhr.abort();
                xhr.aborted = true;
                xhr.redirected = true;

                sf.addStatus(oldreq, 'redirected XHR'); // why

                if (sf.fetchCallbacks[xhr.resource.uri]) {
                  if (!sf.fetchCallbacks[newURI]) {
                    sf.fetchCallbacks[newURI] = [];
                  }
                  sf.fetchCallbacks[newURI] === sf.fetchCallbacks[newURI].concat(sf.fetchCallbacks[xhr.resource.uri]);
                  delete sf.fetchCallbacks[xhr.resource.uri];
                }

                sf.fireCallbacks('redirected', args); // Are these args right? @@@
                sf.requested[xhr.resource.uri] = 'redirected';

                var xhr2 = sf.requestURI(newURI, xhr.resource, xhr.options || {}, xhr.userCallback);
                if (xhr2 && xhr2.req) {
                  kb.add(xhr.req, kb.sym('http://www.w3.org/2007/ont/link#redirectedRequest'), xhr2.req, sf.appNode);
                  return;
                }
              }
            }
            sf.failFetch(xhr, 'HTTP Blocked. (ReadyState 0) Cross-site violation for <' + docuri + '>');

            break;

          case 3:
            // Intermediate state -- 3 may OR MAY NOT be called, selon browser.
            // handleResponse();   // In general it you can't do it yet as the headers are in but not the data
            break;
          case 4:
            // Final state for this XHR but may be redirected
            handleResponse();
            // Now handle
            if (xhr.handle && xhr.responseText !== undefined) {
              // can be validly zero length
              if (sf.requested[xhr.resource.uri] === 'redirected') {
                break;
              }
              sf.fireCallbacks('load', args);
              xhr.handle(function () {
                sf.doneFetch(xhr);
              });
            } else {
              if (xhr.redirected) {
                sf.addStatus(xhr.req, 'Aborted and redirected to new request.');
              } else {
                sf.addStatus(xhr.req, 'Fetch over. No data handled. Aborted = ' + xhr.aborted);
              }
              // sf.failFetch(xhr, "HTTP failed unusually. (no handler set) (x-site violation? no net?) for <"+
              //    docuri+">")
            }
            break;
        } // switch
      };
    };

    // Map the URI to a localhost proxy if we are running on localhost
    // This is used for working offline, e.g. on planes.
    // Is the script istelf is running in localhost, then access all data in a localhost mirror.
    // Do not remove without checking with TimBL
    var uri2 = docuri;
    if (typeof tabulator !== 'undefined' && tabulator.preferences.get('offlineModeUsingLocalhost')) {
      if (uri2.slice(0, 7) === 'http://' && uri2.slice(7, 17) !== 'localhost/') {
        uri2 = 'http://localhost/' + uri2.slice(7);
        log.warn('Localhost kludge for offline use: actually getting <' + uri2 + '>');
      } else {
        // log.warn("Localhost kludge NOT USED <" + uri2 + ">")
      }
    } else {}
      // log.warn("Localhost kludge OFF offline use: actually getting <" + uri2 + ">")

      // 2014 probelm:
      // XMLHttpRequest cannot load http://www.w3.org/People/Berners-Lee/card.
      // A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true.
      // @ Many ontology files under http: and need CORS wildcard -> can't have withCredentials

    var withCredentials = uri2.slice(0, 6) === 'https:'; // @@ Kludge -- need for webid which typically is served from https
    if (options.withCredentials !== undefined) {
      withCredentials = options.withCredentials;
    }
    var actualProxyURI = this.proxyIfNecessary(uri2);

    // Setup the request
    // var xhr
    // xhr = Util.XMLHTTPFactory()
    xhr.onerror = onerrorFactory(xhr);
    xhr.onreadystatechange = onreadystatechangeFactory(xhr);
    xhr.timeout = sf.timeout;
    xhr.withCredentials = withCredentials;
    xhr.actualProxyURI = actualProxyURI;

    xhr.req = req;
    xhr.options = options;
    xhr.options = options;
    xhr.resource = docterm;
    xhr.requestedURI = uri2;

    xhr.ontimeout = function () {
      sf.failFetch(xhr, 'requestTimeout');
    };
    try {
      xhr.open('GET', actualProxyURI, this.async);
    } catch (er) {
      return this.failFetch(xhr, 'XHR open for GET failed for <' + uri2 + '>:\n\t' + er);
    }
    if (force) {
      // must happen after open
      xhr.setRequestHeader('Cache-control', 'no-cache');
    }

    // Set redirect callback and request headers -- alas Firefox Extension Only
    if (typeof tabulator !== 'undefined' && tabulator.isExtension && xhr.channel && (Uri.protocol(xhr.resource.uri) === 'http' || Uri.protocol(xhr.resource.uri) === 'https')) {
      try {
        xhr.channel.notificationCallbacks = {
          getInterface: function getInterface(iid) {
            if (iid.equals(Components.interfaces.nsIChannelEventSink)) {
              return {
                onChannelRedirect: function onChannelRedirect(oldC, newC, flags) {
                  if (xhr.aborted) return;
                  var kb = sf.store;
                  var newURI = newC.URI.spec;
                  var oldreq = xhr.req;
                  if (!xhr.options.noMeta) {
                    sf.addStatus(xhr.req, 'Redirected: ' + xhr.status + ' to <' + newURI + '>');
                    kb.add(oldreq, ns.http('redirectedTo'), kb.sym(newURI), xhr.req);

                    // //////////// Change the request node to a new one:  @@@@@@@@@@@@ Duplicate code?
                    var newreq = xhr.req = kb.bnode(); // Make NEW reqest for everything else
                    kb.add(oldreq, ns.http('redirectedRequest'), newreq, this.appNode);

                    var now = new Date();
                    var timeNow = '[' + now.getHours() + ':' + now.getMinutes() + ':' + now.getSeconds() + '] ';
                    kb.add(newreq, ns.rdfs('label'), kb.literal(timeNow + ' Request for ' + newURI), this.appNode);
                    kb.add(newreq, ns.link('status'), kb.collection(), this.appNode);
                    kb.add(newreq, ns.link('requestedURI'), kb.literal(newURI), this.appNode);
                    // /////////////

                    // // log.info('@@ sources onChannelRedirect'+
                    //               "Redirected: "+
                    //               xhr.status + " to <" + newURI + ">"); //@@
                    var response = kb.bnode();
                    // kb.add(response, ns.http('location'), newURI, response); Not on this response
                    kb.add(oldreq, ns.link('response'), response);
                    kb.add(response, ns.http('status'), kb.literal(xhr.status), response);
                    if (xhr.statusText) kb.add(response, ns.http('statusText'), kb.literal(xhr.statusText), response);
                  }
                  if (xhr.status - 0 !== 303) kb.HTTPRedirects[xhr.resource.uri] = newURI; // same document as
                  if (xhr.status - 0 === 301 && rterm) {
                    // 301 Moved
                    var badDoc = Uri.docpart(rterm.uri);
                    var msg = 'Warning: ' + xhr.resource + ' has moved to <' + newURI + '>.';
                    if (rterm) {
                      msg += ' Link in <' + badDoc + ' >should be changed';
                      kb.add(badDoc, kb.sym('http://www.w3.org/2007/ont/link#warning'), msg, sf.appNode);
                    }
                    // dump(msg+"\n")
                  }
                  xhr.abort();
                  xhr.aborted = true;

                  if (sf.fetchCallbacks[xhr.resource.uri]) {
                    if (!sf.fetchCallbacks[newURI]) {
                      sf.fetchCallbacks[newURI] = [];
                    }
                    sf.fetchCallbacks[newURI] === sf.fetchCallbacks[newURI].concat(sf.fetchCallbacks[xhr.resource.uri]);
                    delete sf.fetchCallbacks[xhr.resource.uri];
                  }

                  sf.addStatus(oldreq, 'redirected'); // why
                  sf.fireCallbacks('redirected', args); // Are these args right? @@@
                  sf.requested[xhr.resource.uri] = 'redirected';
                  sf.redirectedTo[xhr.resource.uri] = newURI;

                  var hash = newURI.indexOf('#');
                  if (hash >= 0) {
                    if (!xhr.options.noMeta) {
                      kb.add(xhr.resource, kb.sym('http://www.w3.org/2007/ont/link#warning'), 'Warning: ' + xhr.resource + ' HTTP redirects to' + newURI + ' which should not contain a "#" sign');
                    }
                    newURI = newURI.slice(0, hash);
                  }
                  var xhr2 = sf.requestURI(newURI, xhr.resource, xhr.options, xhr.userCallback);
                  if (xhr2 && xhr2.req && !options.noMeta) {
                    kb.add(xhr.req, kb.sym('http://www.w3.org/2007/ont/link#redirectedRequest'), xhr2.req, sf.appNode);
                  }
                  // else dump("No xhr.req available for redirect from "+xhr.resource+" to "+newURI+"\n")
                },

                // See https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIChannelEventSink
                asyncOnChannelRedirect: function asyncOnChannelRedirect(oldC, newC, flags, callback) {
                  if (xhr.aborted) return;
                  var kb = sf.store;
                  var newURI = newC.URI.spec;
                  var oldreq = xhr.req;
                  sf.addStatus(xhr.req, 'Redirected: ' + xhr.status + ' to <' + newURI + '>');
                  kb.add(oldreq, ns.http('redirectedTo'), kb.sym(newURI), xhr.req);

                  // //////////// Change the request node to a new one:  @@@@@@@@@@@@ Duplicate?
                  var newreq = xhr.req = kb.bnode(); // Make NEW reqest for everything else
                  // xhr.resource = docterm
                  // xhr.requestedURI = args[0]

                  // kb.add(kb.sym(newURI), ns.link("request"), req, this.appNode)
                  kb.add(oldreq, ns.http('redirectedRequest'), newreq, xhr.req);

                  var now = new Date();
                  var timeNow = '[' + now.getHours() + ':' + now.getMinutes() + ':' + now.getSeconds() + '] ';
                  kb.add(newreq, ns.rdfs('label'), kb.literal(timeNow + ' Request for ' + newURI), this.appNode);
                  kb.add(newreq, ns.link('status'), kb.collection(), this.appNode);
                  kb.add(newreq, ns.link('requestedURI'), kb.literal(newURI), this.appNode);
                  // /////////////

                  // // log.info('@@ sources onChannelRedirect'+
                  //               "Redirected: "+
                  //               xhr.status + " to <" + newURI + ">"); //@@
                  var response = kb.bnode();
                  // kb.add(response, ns.http('location'), newURI, response); Not on this response
                  kb.add(oldreq, ns.link('response'), response);
                  kb.add(response, ns.http('status'), kb.literal(xhr.status), response);
                  if (xhr.statusText) kb.add(response, ns.http('statusText'), kb.literal(xhr.statusText), response);

                  if (xhr.status - 0 !== 303) kb.HTTPRedirects[xhr.resource.uri] = newURI; // same document as
                  if (xhr.status - 0 === 301 && rterm) {
                    // 301 Moved
                    var badDoc = Uri.docpart(rterm.uri);
                    var msg = 'Warning: ' + xhr.resource + ' has moved to <' + newURI + '>.';
                    if (rterm) {
                      msg += ' Link in <' + badDoc + ' >should be changed';
                      kb.add(badDoc, kb.sym('http://www.w3.org/2007/ont/link#warning'), msg, sf.appNode);
                    }
                    // dump(msg+"\n")
                  }
                  xhr.abort();
                  xhr.aborted = true;

                  var hash = newURI.indexOf('#');
                  if (hash >= 0) {
                    var msg2 = 'Warning: ' + xhr.resource + ' HTTP redirects to' + newURI + ' which do not normally contain a "#" sign';
                    // dump(msg+"\n")
                    kb.add(xhr.resource, kb.sym('http://www.w3.org/2007/ont/link#warning'), msg2);
                    newURI = newURI.slice(0, hash);
                  }
                  /*
                  if (sf.fetchCallbacks[xhr.resource.uri]) {
                    if (!sf.fetchCallbacks[newURI]) {
                      sf.fetchCallbacks[newURI] = []
                    }
                    sf.fetchCallbacks[newURI] = sf.fetchCallbacks[newURI].concat(sf.fetchCallbacks[xhr.resource.uri])
                    delete sf.fetchCallbacks[xhr.resource.uri]
                  }
                  */
                  sf.requested[xhr.resource.uri] = 'redirected';
                  sf.redirectedTo[xhr.resource.uri] = newURI;

                  var xhr2 = sf.requestURI(newURI, xhr.resource, xhr.options, xhr.userCallback);
                  if (xhr2) {
                    // may be no XHR is other URI already loaded
                    xhr2.original = xhr.original; // use this for finding base
                    if (xhr2.req) {
                      kb.add(xhr.req, kb.sym('http://www.w3.org/2007/ont/link#redirectedRequest'), xhr2.req, sf.appNode);
                    }
                  }
                  // else dump("No xhr.req available for redirect from "+xhr.resource+" to "+newURI+"\n")
                } // asyncOnChannelRedirect
              };
            }
            return Components.results.NS_NOINTERFACE;
          }
        };
      } catch (err) {
        return sf.failFetch(xhr, "@@ Couldn't set callback for redirects: " + err);
      } // try
    } // if Firefox extension

    try {
      var acceptstring = '';
      for (var type in this.mediatypes) {
        // var attrstring = ''
        if (acceptstring !== '') {
          acceptstring += ', ';
        }
        acceptstring += type;
        for (var attr in this.mediatypes[type]) {
          acceptstring += ';' + attr + '=' + this.mediatypes[type][attr];
        }
      }
      xhr.setRequestHeader('Accept', acceptstring);
      this.addStatus(xhr.req, 'Accept: ' + acceptstring);

      // if (requester) { xhr.setRequestHeader('Referer',requester) }
    } catch (err) {
      throw new Error("Can't set Accept header: " + err);
    }

    // Fire
    try {
      xhr.send(null);
    } catch (er) {
      return this.failFetch(xhr, 'XHR send failed:' + er);
    }
    setTimeout(function () {
      if (xhr.readyState !== 4 && sf.isPending(xhr.resource.uri)) {
        sf.failFetch(xhr, 'requestTimeout');
      }
    }, this.timeout);
    this.addStatus(xhr.req, 'HTTP Request sent.');
    return xhr;
  }; // this.requestURI()

  this.objectRefresh = function (term) {
    var uris = kb.uris(term); // Get all URIs
    if (typeof uris !== 'undefined') {
      for (var i = 0; i < uris.length; i++) {
        this.refresh(this.store.sym(Uri.docpart(uris[i])));
        // what about rterm?
      }
    }
  };

  // deprecated -- use IndexedFormula.removeDocument(doc)
  this.unload = function (term) {
    this.store.removeMany(undefined, undefined, undefined, term);
    delete this.requested[term.uri]; // So it can be loaded again
  };

  this.refresh = function (term, userCallback) {
    // sources_refresh
    this.fireCallbacks('refresh', arguments);
    this.requestURI(term.uri, undefined, { force: true, clearPreviousData: true }, userCallback);
  };

  this.retract = function (term) {
    // sources_retract
    this.store.removeMany(undefined, undefined, undefined, term);
    if (term.uri) {
      delete this.requested[Uri.docpart(term.uri)];
    }
    this.fireCallbacks('retract', arguments);
  };

  this.getState = function (docuri) {
    if (typeof this.requested[docuri] === 'undefined') {
      return 'unrequested';
    } else if (this.requested[docuri] === true) {
      return 'requested';
    } else if (this.requested[docuri] === 'done') {
      return 'fetched';
    } else if (this.requested[docuri] === 'redirected') {
      return this.getState(this.redirectedTo[docuri]);
    } else {
      // An non-200 HTTP error status
      return 'failed';
    }
  };

  // doing anyStatementMatching is wasting time
  this.isPending = function (docuri) {
    // sources_pending
    // if it's not pending: false -> flailed 'done' -> done 'redirected' -> redirected
    return this.requested[docuri] === true;
  };
  // var updatesVia = new $rdf.UpdatesVia(this) // Subscribe to headers
  // @@@@@@@@ This is turned off because it causes a websocket to be set up for ANY fetch
  // whether we want to track it ot not. including ontologies loaed though the XSSproxy
}; // End of fetcher

module.exports = Fetcher;
},{"./log":47,"./n3parser":48,"./named-node":49,"./namespace":50,"./parse":52,"./rdfaparser":56,"./rdfxmlparser":57,"./serialize":58,"./uri":64,"./util":65}],42:[function(_dereq_,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"); } }

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; }

var BlankNode = _dereq_('./blank-node');
var ClassOrder = _dereq_('./class-order');
var Collection = _dereq_('./collection');
var Literal = _dereq_('./literal');
var log = _dereq_('./log');
var NamedNode = _dereq_('./named-node');
var Node = _dereq_('./node');
var Serializer = _dereq_('./serialize');
var Statement = _dereq_('./statement');
var Variable = _dereq_('./variable');

var Formula = function (_Node) {
  _inherits(Formula, _Node);

  function Formula(statements, constraints, initBindings, optional) {
    _classCallCheck(this, Formula);

    var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Formula).call(this));

    _this.termType = Formula.termType;
    _this.statements = statements || [];
    _this.constraints = constraints || [];
    _this.initBindings = initBindings || [];
    _this.optional = optional || [];
    return _this;
  }

  _createClass(Formula, [{
    key: 'add',
    value: function add(s, p, o, g) {
      return this.statements.push(new Statement(s, p, o, g));
    }
  }, {
    key: 'addStatement',
    value: function addStatement(st) {
      return this.statements.push(st);
    }
  }, {
    key: 'bnode',
    value: function bnode(id) {
      return new BlankNode(id);
    }
    /**
     * Finds the types in the list which have no *stored* subtypes
     * These are a set of classes which provide by themselves complete
     * information -- the other classes are redundant for those who
     * know the class DAG.
     */

  }, {
    key: 'bottomTypeURIs',
    value: function bottomTypeURIs(types) {
      var bots;
      var bottom;
      var elt;
      var i;
      var k;
      var len;
      var ref;
      var subs;
      var v;
      bots = [];
      for (k in types) {
        if (!types.hasOwnProperty(k)) continue;
        v = types[k];
        subs = this.each(void 0, this.sym('http://www.w3.org/2000/01/rdf-schema#subClassOf'), this.sym(k));
        bottom = true;
        i = 0;
        for (len = subs.length; i < len; i++) {
          elt = subs[i];
          ref = elt.uri;
          if (ref in types) {
            // the subclass is one we know
            bottom = false;
            break;
          }
        }
        if (bottom) {
          bots[k] = v;
        }
      }
      return bots;
    }
  }, {
    key: 'collection',
    value: function collection() {
      return new Collection();
    }
  }, {
    key: 'each',
    value: function each(s, p, o, g) {
      var elt, i, l, m, q;
      var len, len1, len2, len3;
      var results = [];
      var sts = this.statementsMatching(s, p, o, g, false);
      if (s == null) {
        for (i = 0, len = sts.length; i < len; i++) {
          elt = sts[i];
          results.push(elt.subject);
        }
      } else if (p == null) {
        for (l = 0, len1 = sts.length; l < len1; l++) {
          elt = sts[l];
          results.push(elt.predicate);
        }
      } else if (o == null) {
        for (m = 0, len2 = sts.length; m < len2; m++) {
          elt = sts[m];
          results.push(elt.object);
        }
      } else if (g == null) {
        for (q = 0, len3 = sts.length; q < len3; q++) {
          elt = sts[q];
          results.push(elt.why);
        }
      }
      return results;
    }
  }, {
    key: 'equals',
    value: function equals(other) {
      if (!other) {
        return false;
      }
      return this.hashString() === other.hashString();
    }
    /*
    For thisClass or any subclass, anything which has it is its type
    or is the object of something which has the type as its range, or subject
    of something which has the type as its domain
    We don't bother doing subproperty (yet?)as it doesn't seeem to be used much.
    Get all the Classes of which we can RDFS-infer the subject is a member
    @returns a hash of URIs
    */

    /**
     * For thisClass or any subclass, anything which has it is its type
     * or is the object of something which has the type as its range, or subject
     * of something which has the type as its domain
     * We don't bother doing subproperty (yet?)as it doesn't seeem to be used
     * much.
     * Get all the Classes of which we can RDFS-infer the subject is a member
     * @return a hash of URIs
     */

  }, {
    key: 'findMembersNT',
    value: function findMembersNT(thisClass) {
      var i;
      var l;
      var len;
      var len1;
      var len2;
      var len3;
      var len4;
      var m;
      var members;
      var pred;
      var q;
      var ref;
      var ref1;
      var ref2;
      var ref3;
      var ref4;
      var ref5;
      var seeds;
      var st;
      var t;
      var u;
      seeds = {};
      seeds[thisClass.toNT()] = true;
      members = {};
      ref = this.transitiveClosure(seeds, this.sym('http://www.w3.org/2000/01/rdf-schema#subClassOf'), true);
      for (t in ref) {
        if (!ref.hasOwnProperty(t)) continue;
        ref1 = this.statementsMatching(void 0, this.sym('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'), this.fromNT(t));
        for (i = 0, len = ref1.length; i < len; i++) {
          st = ref1[i];
          members[st.subject.toNT()] = st;
        }
        ref2 = this.each(void 0, this.sym('http://www.w3.org/2000/01/rdf-schema#domain'), this.fromNT(t));
        for (l = 0, len1 = ref2.length; l < len1; l++) {
          pred = ref2[l];
          ref3 = this.statementsMatching(void 0, pred);
          for (m = 0, len2 = ref3.length; m < len2; m++) {
            st = ref3[m];
            members[st.subject.toNT()] = st;
          }
        }
        ref4 = this.each(void 0, this.sym('http://www.w3.org/2000/01/rdf-schema#range'), this.fromNT(t));
        for (q = 0, len3 = ref4.length; q < len3; q++) {
          pred = ref4[q];
          ref5 = this.statementsMatching(void 0, pred);
          for (u = 0, len4 = ref5.length; u < len4; u++) {
            st = ref5[u];
            members[st.object.toNT()] = st;
          }
        }
      }
      return members;
    }
  }, {
    key: 'findMemberURIs',
    value: function findMemberURIs(subject) {
      return this.NTtoURI(this.findMembersNT(subject));
    }
    /**
     * Get all the Classes of which we can RDFS-infer the subject is a superclass
     * Returns a hash table where key is NT of type and value is statement why we
     * think so.
     * Does NOT return terms, returns URI strings.
     * We use NT representations in this version because they handle blank nodes.
     */

  }, {
    key: 'findSubClassesNT',
    value: function findSubClassesNT(subject) {
      var types = {};
      types[subject.toNT()] = true;
      return this.transitiveClosure(types, this.sym('http://www.w3.org/2000/01/rdf-schema#subClassOf'), true);
    }
    /**
     * Get all the Classes of which we can RDFS-infer the subject is a subclass
     * Returns a hash table where key is NT of type and value is statement why we
     * think so.
     * Does NOT return terms, returns URI strings.
     * We use NT representations in this version because they handle blank nodes.
     */

  }, {
    key: 'findSuperClassesNT',
    value: function findSuperClassesNT(subject) {
      var types = {};
      types[subject.toNT()] = true;
      return this.transitiveClosure(types, this.sym('http://www.w3.org/2000/01/rdf-schema#subClassOf'), false);
    }
    /**
     * Get all the Classes of which we can RDFS-infer the subject is a member
     * todo: This will loop is there is a class subclass loop (Sublass loops are
     * not illegal)
     * Returns a hash table where key is NT of type and value is statement why we
     * think so.
     * Does NOT return terms, returns URI strings.
     * We use NT representations in this version because they handle blank nodes.
     */

  }, {
    key: 'findTypesNT',
    value: function findTypesNT(subject) {
      var domain;
      var i;
      var l;
      var len;
      var len1;
      var len2;
      var len3;
      var m;
      var q;
      var range;
      var rdftype;
      var ref;
      var ref1;
      var ref2;
      var ref3;
      var st;
      var types;
      rdftype = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type';
      types = [];
      ref = this.statementsMatching(subject, void 0, void 0);
      for (i = 0, len = ref.length; i < len; i++) {
        st = ref[i];
        if (st.predicate.uri === rdftype) {
          types[st.object.toNT()] = st;
        } else {
          ref1 = this.each(st.predicate, this.sym('http://www.w3.org/2000/01/rdf-schema#domain'));
          for (l = 0, len1 = ref1.length; l < len1; l++) {
            range = ref1[l];
            types[range.toNT()] = st;
          }
        }
      }
      ref2 = this.statementsMatching(void 0, void 0, subject);
      for (m = 0, len2 = ref2.length; m < len2; m++) {
        st = ref2[m];
        ref3 = this.each(st.predicate, this.sym('http://www.w3.org/2000/01/rdf-schema#range'));
        for (q = 0, len3 = ref3.length; q < len3; q++) {
          domain = ref3[q];
          types[domain.toNT()] = st;
        }
      }
      return this.transitiveClosure(types, this.sym('http://www.w3.org/2000/01/rdf-schema#subClassOf'), false);
    }
  }, {
    key: 'findTypeURIs',
    value: function findTypeURIs(subject) {
      return this.NTtoURI(this.findTypesNT(subject));
    }
    // Trace the statements which connect directly, or through bnodes
    // Returns an array of statements
    // doc param may be null to search all documents in store

  }, {
    key: 'connectedStatements',
    value: function connectedStatements(subject, doc, excludePredicateURIs) {
      excludePredicateURIs = excludePredicateURIs || [];
      var todo = [subject];
      var done = [];
      var doneArcs = [];
      var result = [];
      var self = this;
      var follow = function follow(x) {
        var queue = function queue(x) {
          if (x.termType === 'BlankNode' && !done[x.value]) {
            done[x.value] = true;
            todo.push(x);
          }
        };
        var sts = self.statementsMatching(null, null, x, doc).concat(self.statementsMatching(x, null, null, doc));
        sts = sts.filter(function (st) {
          if (excludePredicateURIs[st.predicate.uri]) return false;
          var hash = st.toNT();
          if (doneArcs[hash]) return false;
          doneArcs[hash] = true;
          return true;
        });
        sts.forEach(function (st, i) {
          queue(st.subject);
          queue(st.object);
        });
        result = result.concat(sts);
      };
      while (todo.length) {
        follow(todo.shift());
      }
      // console.log('' + result.length + ' statements about ' + subject)
      return result;
    }
  }, {
    key: 'formula',
    value: function formula() {
      return new Formula();
    }
    /**
     * Transforms an NTriples string format into a Node.
     * The bnode bit should not be used on program-external values; designed
     * for internal work such as storing a bnode id in an HTML attribute.
     * This will only parse the strings generated by the vaious toNT() methods.
     */

  }, {
    key: 'fromNT',
    value: function fromNT(str) {
      var dt, k, lang, x;
      switch (str[0]) {
        case '<':
          return this.sym(str.slice(1, -1));
        case '"':
          lang = void 0;
          dt = void 0;
          k = str.lastIndexOf('"');
          if (k < str.length - 1) {
            if (str[k + 1] === '@') {
              lang = str.slice(k + 2);
            } else if (str.slice(k + 1, k + 3) === '^^') {
              dt = this.fromNT(str.slice(k + 3));
            } else {
              throw new Error("Can't convert string from NT: " + str);
            }
          }
          str = str.slice(1, k);
          str = str.replace(/\\"/g, '"');
          str = str.replace(/\\n/g, '\n');
          str = str.replace(/\\\\/g, '\\');
          return this.literal(str, lang, dt);
        case '_':
          x = new BlankNode();
          x.id = parseInt(str.slice(3), 10);
          BlankNode.nextId--;
          return x;
        case '?':
          return new Variable(str.slice(1));
      }
      throw new Error("Can't convert from NT: " + str);
    }
  }, {
    key: 'holds',
    value: function holds(s, p, o, g) {
      var i;
      if (arguments.length === 1) {
        if (!s) {
          return true;
        }
        if (s instanceof Array) {
          for (i = 0; i < s.length; i++) {
            if (!this.holds(s[i])) {
              return false;
            }
          }
          return true;
        } else if (s instanceof Statement) {
          return this.holds(s.subject, s.predicate, s.object, s.why);
        } else if (s.statements) {
          return this.holds(s.statements);
        }
      }

      var st = this.anyStatementMatching(s, p, o, g);
      return st != null;
    }
  }, {
    key: 'holdsStatement',
    value: function holdsStatement(st) {
      return this.holds(st.subject, st.predicate, st.object, st.why);
    }
  }, {
    key: 'list',
    value: function list(values) {
      var collection = new Collection();
      values.forEach(function (val) {
        collection.append(val);
      });
      return collection;
    }
  }, {
    key: 'literal',
    value: function literal(val, lang, dt) {
      return new Literal('' + val, lang, dt);
    }
    /**
     * transform a collection of NTriple URIs into their URI strings
     * @param t some iterable colletion of NTriple URI strings
     * @return a collection of the URIs as strings
     * todo: explain why it is important to go through NT
     */

  }, {
    key: 'NTtoURI',
    value: function NTtoURI(t) {
      var k, v;
      var uris = {};
      for (k in t) {
        if (!t.hasOwnProperty(k)) continue;
        v = t[k];
        if (k[0] === '<') {
          uris[k.slice(1, -1)] = v;
        }
      }
      return uris;
    }
  }, {
    key: 'serialize',
    value: function serialize(base, contentType, provenance) {
      var documentString;
      var sts;
      var sz;
      sz = Serializer(this);
      sz.suggestNamespaces(this.namespaces);
      sz.setBase(base);
      if (provenance) {
        sts = this.statementsMatching(void 0, void 0, void 0, provenance);
      } else {
        sts = this.statements;
      }
      switch (contentType != null ? contentType : 'text/n3') {
        case 'application/rdf+xml':
          documentString = sz.statementsToXML(sts);
          break;
        case 'text/n3':
        case 'text/turtle':
          documentString = sz.statementsToN3(sts);
          break;
        default:
          throw new Error('serialize: Content-type ' + contentType + ' not supported.');
      }
      return documentString;
    }
  }, {
    key: 'substitute',
    value: function substitute(bindings) {
      var statementsCopy = this.statements.map(function (ea) {
        return ea.substitute(bindings);
      });
      console.log('Formula subs statmnts:' + statementsCopy);
      var y = new Formula();
      y.add(statementsCopy);
      console.log('indexed-form subs formula:' + y);
      return y;
    }
  }, {
    key: 'sym',
    value: function sym(uri, name) {
      if (name) {
        throw new Error('This feature (kb.sym with 2 args) is removed. Do not assume prefix mappings.');
      }
      return new NamedNode(uri);
    }
  }, {
    key: 'the',
    value: function the(s, p, o, g) {
      var x = this.any(s, p, o, g);
      if (x == null) {
        log.error('No value found for the() {' + s + ' ' + p + ' ' + o + '}.');
      }
      return x;
    }
    /**
     * RDFS Inference
     * These are hand-written implementations of a backward-chaining reasoner
     * over the RDFS axioms.
     * @param seeds {Object} a hash of NTs of classes to start with
     * @param predicate The property to trace though
     * @param inverse trace inverse direction
     */

  }, {
    key: 'transitiveClosure',
    value: function transitiveClosure(seeds, predicate, inverse) {
      var elt, i, len, s, sups, t;
      var agenda = {};
      Object.assign(agenda, seeds); // make a copy
      var done = {}; // classes we have looked up
      while (true) {
        t = function () {
          for (var p in agenda) {
            if (!agenda.hasOwnProperty(p)) continue;
            return p;
          }
        }();
        if (t == null) {
          return done;
        }
        sups = inverse ? this.each(void 0, predicate, this.fromNT(t)) : this.each(this.fromNT(t), predicate);
        for (i = 0, len = sups.length; i < len; i++) {
          elt = sups[i];
          s = elt.toNT();
          if (s in done) {
            continue;
          }
          if (s in agenda) {
            continue;
          }
          agenda[s] = agenda[t];
        }
        done[t] = agenda[t];
        delete agenda[t];
      }
    }
    /**
     * Finds the types in the list which have no *stored* supertypes
     * We exclude the universal class, owl:Things and rdf:Resource, as it is
     * information-free.
     */

  }, {
    key: 'topTypeURIs',
    value: function topTypeURIs(types) {
      var i;
      var j;
      var k;
      var len;
      var n;
      var ref;
      var tops;
      var v;
      tops = [];
      for (k in types) {
        if (!types.hasOwnProperty(k)) continue;
        v = types[k];
        n = 0;
        ref = this.each(this.sym(k), this.sym('http://www.w3.org/2000/01/rdf-schema#subClassOf'));
        for (i = 0, len = ref.length; i < len; i++) {
          j = ref[i];
          if (j.uri !== 'http://www.w3.org/2000/01/rdf-schema#Resource') {
            n++;
            break;
          }
        }
        if (!n) {
          tops[k] = v;
        }
      }
      if (tops['http://www.w3.org/2000/01/rdf-schema#Resource']) {
        delete tops['http://www.w3.org/2000/01/rdf-schema#Resource'];
      }
      if (tops['http://www.w3.org/2002/07/owl#Thing']) {
        delete tops['http://www.w3.org/2002/07/owl#Thing'];
      }
      return tops;
    }
  }, {
    key: 'toString',
    value: function toString() {
      return '{' + this.statements.join('\n') + '}';
    }
  }, {
    key: 'whether',
    value: function whether(s, p, o, g) {
      return this.statementsMatching(s, p, o, g, false).length;
    }
  }]);

  return Formula;
}(Node);

Formula.termType = 'Graph';

Formula.prototype.classOrder = ClassOrder['Graph'];
Formula.prototype.isVar = 0;

Formula.prototype.ns = _dereq_('./namespace');
Formula.prototype.variable = function (name) {
  return new Variable(name);
};

module.exports = Formula;
},{"./blank-node":34,"./class-order":35,"./collection":36,"./literal":46,"./log":47,"./named-node":49,"./namespace":50,"./node":51,"./serialize":58,"./statement":61,"./variable":66}],43:[function(_dereq_,module,exports){
'use strict';

var _indexedFormula = _dereq_('./indexed-formula');

var _indexedFormula2 = _interopRequireDefault(_indexedFormula);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var $rdf = {
  BlankNode: _dereq_('./blank-node'),
  Collection: _dereq_('./collection'),
  convert: _dereq_('./convert'),
  DataFactory: _dereq_('./data-factory'),
  Empty: _dereq_('./empty'),
  Fetcher: _dereq_('./fetcher'),
  Formula: _dereq_('./formula'),
  IndexedFormula: _indexedFormula2.default,
  jsonParser: _dereq_('./jsonparser'),
  Literal: _dereq_('./literal'),
  log: _dereq_('./log'),
  N3Parser: _dereq_('./n3parser'),
  NamedNode: _dereq_('./named-node'),
  Namespace: _dereq_('./namespace'),
  Node: _dereq_('./node'),
  parse: _dereq_('./parse'),
  Query: _dereq_('./query').Query,
  queryToSPARQL: _dereq_('./query-to-sparql'),
  RDFaProcessor: _dereq_('./rdfaparser'),
  RDFParser: _dereq_('./rdfxmlparser'),
  serialize: _dereq_('./serialize'),
  Serializer: _dereq_('./serializer'),
  SPARQLToQuery: _dereq_('./sparql-to-query'),
  sparqlUpdateParser: _dereq_('./patch-parser'),
  Statement: _dereq_('./statement'),
  term: _dereq_('./node').fromValue,
  UpdateManager: _dereq_('./update-manager'),
  UpdatesSocket: _dereq_('./updates-via').UpdatesSocket,
  UpdatesVia: _dereq_('./updates-via').UpdatesVia,
  uri: _dereq_('./uri'),
  Util: _dereq_('./util'),
  Variable: _dereq_('./variable')
};

$rdf.NextId = $rdf.BlankNode.nextId;

$rdf.fromNT = $rdf.Formula.prototype.fromNT;
$rdf.fetcher = $rdf.DataFactory.fetcher;
$rdf.graph = $rdf.DataFactory.graph;
$rdf.lit = $rdf.DataFactory.lit;
$rdf.st = $rdf.DataFactory.st;
$rdf.sym = $rdf.DataFactory.namedNode;
$rdf.variable = $rdf.DataFactory.variable;

// RDFJS DataFactory interface
$rdf.blankNode = $rdf.DataFactory.blankNode;
$rdf.defaultGraph = $rdf.DataFactory.defaultGraph;
$rdf.literal = $rdf.DataFactory.literal;
$rdf.namedNode = $rdf.DataFactory.namedNode;
$rdf.quad = $rdf.DataFactory.quad;
$rdf.triple = $rdf.DataFactory.triple;

module.exports = $rdf;
},{"./blank-node":34,"./collection":36,"./convert":37,"./data-factory":38,"./empty":40,"./fetcher":41,"./formula":42,"./indexed-formula":44,"./jsonparser":45,"./literal":46,"./log":47,"./n3parser":48,"./named-node":49,"./namespace":50,"./node":51,"./parse":52,"./patch-parser":53,"./query":55,"./query-to-sparql":54,"./rdfaparser":56,"./rdfxmlparser":57,"./serialize":58,"./serializer":59,"./sparql-to-query":60,"./statement":61,"./update-manager":62,"./updates-via":63,"./uri":64,"./util":65,"./variable":66}],44:[function(_dereq_,module,exports){
'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

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"); } }

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; }

//  Identity management and indexing for RDF
//
// This file provides  IndexedFormula a formula (set of triples) which
// indexed by predicate, subject and object.
//
// It "smushes"  (merges into a single node) things which are identical
// according to owl:sameAs or an owl:InverseFunctionalProperty
// or an owl:FunctionalProperty
//
//
//  2005-10 Written Tim Berners-Lee
//  2007    Changed so as not to munge statements from documents when smushing
//
//
/* jsl:option explicit */
var ArrayIndexOf = _dereq_('./util').ArrayIndexOf;
var Formula = _dereq_('./formula');
// const log = require('./log')
var RDFArrayRemove = _dereq_('./util').RDFArrayRemove;
var Statement = _dereq_('./statement');
var Node = _dereq_('./node');
var Variable = _dereq_('./variable');

var owl_ns = 'http://www.w3.org/2002/07/owl#';
// var link_ns = 'http://www.w3.org/2007/ont/link#'

// Handle Functional Property
function handle_FP(formula, subj, pred, obj) {
  var o1 = formula.any(subj, pred, undefined);
  if (!o1) {
    return false; // First time with this value
  }
  // log.warn("Equating "+o1.uri+" and "+obj.uri + " because FP "+pred.uri);  //@@
  formula.equate(o1, obj);
  return true;
} // handle_FP

// Handle Inverse Functional Property
function handle_IFP(formula, subj, pred, obj) {
  var s1 = formula.any(undefined, pred, obj);
  if (!s1) {
    return false; // First time with this value
  }
  // log.warn("Equating "+s1.uri+" and "+subj.uri + " because IFP "+pred.uri);  //@@
  formula.equate(s1, subj);
  return true;
} // handle_IFP

function handleRDFType(formula, subj, pred, obj, why) {
  if (formula.typeCallback) {
    formula.typeCallback(formula, obj, why);
  }

  var x = formula.classActions[obj.hashString()];
  var done = false;
  if (x) {
    for (var i = 0; i < x.length; i++) {
      done = done || x[i](formula, subj, pred, obj, why);
    }
  }
  return done; // statement given is not needed if true
}

var IndexedFormula = function (_Formula) {
  _inherits(IndexedFormula, _Formula);

  // IN future - allow pass array of statements to constructor
  function IndexedFormula(features) {
    _classCallCheck(this, IndexedFormula);

    // this.statements = [] // As in Formula NO don't overwrite inherited
    // this.optional = []

    var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(IndexedFormula).call(this));

    _this.propertyActions = []; // Array of functions to call when getting statement with {s X o}
    // maps <uri> to [f(F,s,p,o),...]
    _this.classActions = []; // Array of functions to call when adding { s type X }
    _this.redirections = []; // redirect to lexically smaller equivalent symbol
    _this.aliases = []; // reverse mapping to redirection: aliases for this
    _this.HTTPRedirects = []; // redirections we got from HTTP
    _this.subjectIndex = []; // Array of statements with this X as subject
    _this.predicateIndex = []; // Array of statements with this X as subject
    _this.objectIndex = []; // Array of statements with this X as object
    _this.whyIndex = []; // Array of statements with X as provenance
    _this.index = [_this.subjectIndex, _this.predicateIndex, _this.objectIndex, _this.whyIndex];
    _this.namespaces = {}; // Dictionary of namespace prefixes
    _this.features = features || ['sameAs', 'InverseFunctionalProperty', 'FunctionalProperty'];
    _this.initPropertyActions(_this.features);
    return _this;
  }

  _createClass(IndexedFormula, [{
    key: 'substitute',
    value: function substitute(bindings) {
      var statementsCopy = this.statements.map(function (ea) {
        return ea.substitute(bindings);
      });
      // console.log('IndexedFormula subs statemnts:' + statementsCopy)
      var y = new IndexedFormula();
      y.add(statementsCopy);
      // console.log('indexed-form subs formula:' + y)
      return y;
    }
  }, {
    key: 'applyPatch',
    value: function applyPatch(patch, target, patchCallback) {
      // patchCallback(err)
      var Query = _dereq_('./query').Query;
      var targetKB = this;
      var ds;
      var binding = null;

      // /////////// Debug strings
      /*
      var bindingDebug = function (b) {
        var str = ''
        var v
        for (v in b) {
          if (b.hasOwnProperty(v)) {
            str += '    ' + v + ' -> ' + b[v]
          }
        }
        return str
      }
      */
      var doPatch = function doPatch(onDonePatch) {
        if (patch['delete']) {
          ds = patch['delete'];
          // console.log(bindingDebug(binding))
          // console.log('ds before substitute: ' + ds)
          if (binding) ds = ds.substitute(binding);
          // console.log('applyPatch: delete: ' + ds)
          ds = ds.statements;
          var bad = [];
          var ds2 = ds.map(function (st) {
            // Find the actual statemnts in the store
            var sts = targetKB.statementsMatching(st.subject, st.predicate, st.object, target);
            if (sts.length === 0) {
              // log.info("NOT FOUND deletable " + st)
              bad.push(st);
              return null;
            } else {
              // log.info("Found deletable " + st)
              return sts[0];
            }
          });
          if (bad.length) {
            // console.log('Could not find to delete ' + bad.length + 'statements')
            // console.log('despite ' + targetKB.statementsMatching(bad[0].subject, bad[0].predicate)[0])
            return patchCallback('Could not find to delete: ' + bad.join('\n or '));
          }
          ds2.map(function (st) {
            targetKB.remove(st);
          });
        }
        if (patch['insert']) {
          // log.info("doPatch insert "+patch['insert'])
          ds = patch['insert'];
          if (binding) ds = ds.substitute(binding);
          ds = ds.statements;
          ds.map(function (st) {
            st.why = target;
            targetKB.add(st.subject, st.predicate, st.object, st.why);
          });
        }
        onDonePatch();
      };
      if (patch.where) {
        // log.info("Processing WHERE: " + patch.where + '\n')
        var query = new Query('patch');
        query.pat = patch.where;
        query.pat.statements.map(function (st) {
          st.why = target;
        });

        var bindingsFound = [];

        targetKB.query(query, function onBinding(binding) {
          bindingsFound.push(binding);
          // console.log('   got a binding: ' + bindingDebug(binding))
        }, targetKB.fetcher, function onDone() {
          if (bindingsFound.length === 0) {
            return patchCallback('No match found to be patched:' + patch.where);
          }
          if (bindingsFound.length > 1) {
            return patchCallback('Patch ambiguous. No patch done.');
          }
          binding = bindingsFound[0];
          doPatch(patchCallback);
        });
      } else {
        doPatch(patchCallback);
      }
    }
  }, {
    key: 'declareExistential',
    value: function declareExistential(x) {
      if (!this._existentialVariables) this._existentialVariables = [];
      this._existentialVariables.push(x);
      return x;
    }
  }, {
    key: 'initPropertyActions',
    value: function initPropertyActions(features) {
      // If the predicate is #type, use handleRDFType to create a typeCallback on the object
      this.propertyActions['<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>'] = [handleRDFType];

      // Assumption: these terms are not redirected @@fixme
      if (ArrayIndexOf(features, 'sameAs') >= 0) {
        this.propertyActions['<http://www.w3.org/2002/07/owl#sameAs>'] = [function (formula, subj, pred, obj, why) {
          // log.warn("Equating "+subj.uri+" sameAs "+obj.uri);  //@@
          formula.equate(subj, obj);
          return true; // true if statement given is NOT needed in the store
        }]; // sameAs -> equate & don't add to index
      }
      if (ArrayIndexOf(features, 'InverseFunctionalProperty') >= 0) {
        this.classActions['<' + owl_ns + 'InverseFunctionalProperty>'] = [function (formula, subj, pred, obj, addFn) {
          // yes subj not pred!
          return formula.newPropertyAction(subj, handle_IFP);
        }]; // IFP -> handle_IFP, do add to index
      }
      if (ArrayIndexOf(features, 'FunctionalProperty') >= 0) {
        this.classActions['<' + owl_ns + 'FunctionalProperty>'] = [function (formula, subj, proj, obj, addFn) {
          return formula.newPropertyAction(subj, handle_FP);
        }]; // FP => handleFP, do add to index
      }
    }

    /**
     * Adds a triple to the store.
     * Returns the statement added
     * (would it be better to return the original formula for chaining?)
     */

  }, {
    key: 'add',
    value: function add(subj, pred, obj, why) {
      var i;
      if (arguments.length === 1) {
        if (subj instanceof Array) {
          for (i = 0; i < subj.length; i++) {
            this.add(subj[i]);
          }
        } else if (subj instanceof Statement) {
          this.add(subj.subject, subj.predicate, subj.object, subj.why);
        } else if (subj instanceof IndexedFormula) {
          this.add(subj.statements);
        }
        return this;
      }
      var actions;
      var st;
      if (!why) {
        // system generated
        why = this.fetcher ? this.fetcher.appNode : this.sym('chrome:theSession');
      }
      subj = Node.fromValue(subj);
      pred = Node.fromValue(pred);
      obj = Node.fromValue(obj);
      why = Node.fromValue(why);
      if (this.predicateCallback) {
        this.predicateCallback(this, pred, why);
      }
      // Action return true if the statement does not need to be added
      var predHash = this.canon(pred).hashString();
      actions = this.propertyActions[predHash]; // Predicate hash
      var done = false;
      if (actions) {
        // alert('type: '+typeof actions +' @@ actions='+actions)
        for (i = 0; i < actions.length; i++) {
          done = done || actions[i](this, subj, pred, obj, why);
        }
      }
      if (this.holds(subj, pred, obj, why)) {
        // Takes time but saves duplicates
        // console.log('rdflib: Ignoring dup! {' + subj + ' ' + pred + ' ' + obj + ' ' + why + '}')
        return null; // @@better to return self in all cases?
      }
      // If we are tracking provenance, every thing should be loaded into the store
      // if (done) return new Statement(subj, pred, obj, why)
      // Don't put it in the store
      // still return this statement for owl:sameAs input
      var hash = [this.canon(subj).hashString(), predHash, this.canon(obj).hashString(), this.canon(why).hashString()];
      st = new Statement(subj, pred, obj, why);
      for (i = 0; i < 4; i++) {
        var ix = this.index[i];
        var h = hash[i];
        if (!ix[h]) {
          ix[h] = [];
        }
        ix[h].push(st); // Set of things with this as subject, etc
      }

      // log.debug("ADDING    {"+subj+" "+pred+" "+obj+"} "+why)
      this.statements.push(st);
      return st;
    }
  }, {
    key: 'addAll',
    value: function addAll(statements) {
      var _this2 = this;

      statements.forEach(function (quad) {
        _this2.add(quad.subject, quad.predicate, quad.object, quad.graph);
      });
    }
  }, {
    key: 'any',
    value: function any(s, p, o, g) {
      var st = this.anyStatementMatching(s, p, o, g);
      if (st == null) {
        return void 0;
      } else if (s == null) {
        return st.subject;
      } else if (p == null) {
        return st.predicate;
      } else if (o == null) {
        return st.object;
      }
      return void 0;
    }
  }, {
    key: 'anyValue',
    value: function anyValue(s, p, o, g) {
      var y = this.any(s, p, o, g);
      return y ? y.value : void 0;
    }
  }, {
    key: 'anyStatementMatching',
    value: function anyStatementMatching(subj, pred, obj, why) {
      var x = this.statementsMatching(subj, pred, obj, why, true);
      if (!x || x.length === 0) {
        return undefined;
      }
      return x[0];
    }

    /**
     * Returns the symbol with canonical URI as smushed
     */

  }, {
    key: 'canon',
    value: function canon(term) {
      if (!term) {
        return term;
      }
      var y = this.redirections[term.hashString()];
      if (!y) {
        return term;
      }
      return y;
    }
  }, {
    key: 'check',
    value: function check() {
      this.checkStatementList(this.statements);
      for (var p = 0; p < 4; p++) {
        var ix = this.index[p];
        for (var key in ix) {
          if (ix.hasOwnProperty(key)) {
            this.checkStatementList(ix[key], p);
          }
        }
      }
    }

    /**
     * Self-consistency checking for diagnostis only
     * Is each statement properly indexed?
     */

  }, {
    key: 'checkStatementList',
    value: function checkStatementList(sts, from) {
      var names = ['subject', 'predicate', 'object', 'why'];
      var origin = ' found in ' + names[from] + ' index.';
      var st;
      for (var j = 0; j < sts.length; j++) {
        st = sts[j];
        var term = [st.subject, st.predicate, st.object, st.why];
        var arrayContains = function arrayContains(a, x) {
          for (var i = 0; i < a.length; i++) {
            if (a[i].subject.sameTerm(x.subject) && a[i].predicate.sameTerm(x.predicate) && a[i].object.sameTerm(x.object) && a[i].why.sameTerm(x.why)) {
              return true;
            }
          }
        };
        for (var p = 0; p < 4; p++) {
          var c = this.canon(term[p]);
          var h = c.hashString();
          if (!this.index[p][h]) {
            // throw new Error('No ' + name[p] + ' index for statement ' + st + '@' + st.why + origin)
          } else {
            if (!arrayContains(this.index[p][h], st)) {
              // throw new Error('Index for ' + name[p] + ' does not have statement ' + st + '@' + st.why + origin)
            }
          }
        }
        if (!arrayContains(this.statements, st)) {
          throw new Error('Statement list does not statement ' + st + '@' + st.why + origin);
        }
      }
    }
  }, {
    key: 'close',
    value: function close() {
      return this;
    }

    /**
     * replaces @template with @target and add appropriate triples (no triple
     * removed)
     * one-direction replication
     * @method copyTo
     */

  }, {
    key: 'copyTo',
    value: function copyTo(template, target, flags) {
      if (!flags) flags = [];
      var statList = this.statementsMatching(template);
      if (ArrayIndexOf(flags, 'two-direction') !== -1) {
        statList.concat(this.statementsMatching(undefined, undefined, template));
      }
      for (var i = 0; i < statList.length; i++) {
        var st = statList[i];
        switch (st.object.termType) {
          case 'NamedNode':
            this.add(target, st.predicate, st.object);
            break;
          case 'Literal':
          case 'BlankNode':
          case 'Collection':
            this.add(target, st.predicate, st.object.copy(this));
        }
        if (ArrayIndexOf(flags, 'delete') !== -1) {
          this.remove(st);
        }
      }
    }

    /**
     * simplify graph in store when we realize two identifiers are equivalent
     * We replace the bigger with the smaller.
     */

  }, {
    key: 'equate',
    value: function equate(u1, u2) {
      // log.warn("Equating "+u1+" and "+u2); // @@
      // @@JAMBO Must canonicalize the uris to prevent errors from a=b=c
      // 03-21-2010
      u1 = this.canon(u1);
      u2 = this.canon(u2);
      var d = u1.compareTerm(u2);
      if (!d) {
        return true; // No information in {a = a}
      }
      // var big
      // var small
      if (d < 0) {
        // u1 less than u2
        return this.replaceWith(u2, u1);
      } else {
        return this.replaceWith(u1, u2);
      }
    }
  }, {
    key: 'formula',
    value: function formula(features) {
      return new IndexedFormula(features);
    }

    /**
     * Returns the number of statements contained in this IndexedFormula.
     * (Getter proxy to this.statements).
     * Usage:
     *    ```
     *    var kb = rdf.graph()
     *    kb.length  // -> 0
     *    ```
     * @return {Number}
     */

  }, {
    key: 'match',


    /**
     * Returns any quads matching the given arguments.
     * Standard RDFJS Taskforce method for Source objects, implemented as an
     * alias to `statementsMatching()`
     * @method match
     * @param subject {Node|String|Object}
     * @param predicate {Node|String|Object}
     * @param object {Node|String|Object}
     * @param graph {NamedNode|String}
     */
    value: function match(subject, predicate, object, graph) {
      return this.statementsMatching(Node.fromValue(subject), Node.fromValue(predicate), Node.fromValue(object), Node.fromValue(graph));
    }

    /**
     * Find out whether a given URI is used as symbol in the formula
     */

  }, {
    key: 'mentionsURI',
    value: function mentionsURI(uri) {
      var hash = '<' + uri + '>';
      return !!this.subjectIndex[hash] || !!this.objectIndex[hash] || !!this.predicateIndex[hash];
    }

    // Existentials are BNodes - something exists without naming

  }, {
    key: 'newExistential',
    value: function newExistential(uri) {
      if (!uri) return this.bnode();
      var x = this.sym(uri);
      return this.declareExistential(x);
    }
  }, {
    key: 'newPropertyAction',
    value: function newPropertyAction(pred, action) {
      // log.debug("newPropertyAction:  "+pred)
      var hash = pred.hashString();
      if (!this.propertyActions[hash]) {
        this.propertyActions[hash] = [];
      }
      this.propertyActions[hash].push(action);
      // Now apply the function to to statements already in the store
      var toBeFixed = this.statementsMatching(undefined, pred, undefined);
      var done = false;
      for (var i = 0; i < toBeFixed.length; i++) {
        // NOT optimized - sort toBeFixed etc
        done = done || action(this, toBeFixed[i].subject, pred, toBeFixed[i].object);
      }
      return done;
    }

    // Universals are Variables

  }, {
    key: 'newUniversal',
    value: function newUniversal(uri) {
      var x = this.sym(uri);
      if (!this._universalVariables) this._universalVariables = [];
      this._universalVariables.push(x);
      return x;
    }

    // convenience function used by N3 parser

  }, {
    key: 'variable',
    value: function variable(name) {
      return new Variable(name);
    }

    /**
     * Find an unused id for a file being edited: return a symbol
     * (Note: Slow iff a lot of them -- could be O(log(k)) )
     */

  }, {
    key: 'nextSymbol',
    value: function nextSymbol(doc) {
      for (var i = 0;; i++) {
        var uri = doc.uri + '#n' + i;
        if (!this.mentionsURI(uri)) return this.sym(uri);
      }
    }
  }, {
    key: 'query',
    value: function query(myQuery, callback, fetcher, onDone) {
      var indexedFormulaQuery = _dereq_('./query').indexedFormulaQuery;
      return indexedFormulaQuery.call(this, myQuery, callback, fetcher, onDone);
    }

    /**
     * Finds a statement object and removes it
     */

  }, {
    key: 'remove',
    value: function remove(st) {
      if (st instanceof Array) {
        for (var i = 0; i < st.length; i++) {
          this.remove(st[i]);
        }
        return this;
      }
      if (st instanceof IndexedFormula) {
        return this.remove(st.statements);
      }
      var sts = this.statementsMatching(st.subject, st.predicate, st.object, st.why);
      if (!sts.length) {
        throw new Error('Statement to be removed is not on store: ' + st);
      }
      this.removeStatement(sts[0]);
      return this;
    }

    /**
     * Removes all statemnts in a doc
     */

  }, {
    key: 'removeDocument',
    value: function removeDocument(doc) {
      var sts = this.statementsMatching(undefined, undefined, undefined, doc).slice(); // Take a copy as this is the actual index
      for (var i = 0; i < sts.length; i++) {
        this.removeStatement(sts[i]);
      }
      return this;
    }

    /**
     * remove all statements matching args (within limit) *
     */

  }, {
    key: 'removeMany',
    value: function removeMany(subj, pred, obj, why, limit) {
      // log.debug("entering removeMany w/ subj,pred,obj,why,limit = " + subj +", "+ pred+", " + obj+", " + why+", " + limit)
      var sts = this.statementsMatching(subj, pred, obj, why, false);
      // This is a subtle bug that occcured in updateCenter.js too.
      // The fact is, this.statementsMatching returns this.whyIndex instead of a copy of it
      // but for perfromance consideration, it's better to just do that
      // so make a copy here.
      var statements = [];
      for (var i = 0; i < sts.length; i++) {
        statements.push(sts[i]);
      }if (limit) statements = statements.slice(0, limit);
      for (i = 0; i < statements.length; i++) {
        this.remove(statements[i]);
      }
    }
  }, {
    key: 'removeMatches',
    value: function removeMatches(subject, predicate, object, why) {
      this.removeStatements(this.statementsMatching(subject, predicate, object, why));
      return this;
    }

    /**
     * Remove a particular statement object from the store
     *
     * st    a statement which is already in the store and indexed.
     *      Make sure you only use this for these.
     *    Otherwise, you should use remove() above.
     */

  }, {
    key: 'removeStatement',
    value: function removeStatement(st) {
      // log.debug("entering remove w/ st=" + st)
      var term = [st.subject, st.predicate, st.object, st.why];
      for (var p = 0; p < 4; p++) {
        var c = this.canon(term[p]);
        var h = c.hashString();
        if (!this.index[p][h]) {
          // log.warn ("Statement removal: no index '+p+': "+st)
        } else {
          RDFArrayRemove(this.index[p][h], st);
        }
      }
      RDFArrayRemove(this.statements, st);
      return this;
    }
  }, {
    key: 'removeStatements',
    value: function removeStatements(sts) {
      for (var i = 0; i < sts.length; i++) {
        this.remove(sts[i]);
      }
      return this;
    }

    /**
     * Replace big with small, obsoleted with obsoleting.
     */

  }, {
    key: 'replaceWith',
    value: function replaceWith(big, small) {
      // log.debug("Replacing "+big+" with "+small) // @@
      var oldhash = big.hashString();
      var newhash = small.hashString();
      var moveIndex = function moveIndex(ix) {
        var oldlist = ix[oldhash];
        if (!oldlist) {
          return; // none to move
        }
        var newlist = ix[newhash];
        if (!newlist) {
          ix[newhash] = oldlist;
        } else {
          ix[newhash] = oldlist.concat(newlist);
        }
        delete ix[oldhash];
      };
      // the canonical one carries all the indexes
      for (var i = 0; i < 4; i++) {
        moveIndex(this.index[i]);
      }
      this.redirections[oldhash] = small;
      if (big.uri) {
        // @@JAMBO: must update redirections,aliases from sub-items, too.
        if (!this.aliases[newhash]) {
          this.aliases[newhash] = [];
        }
        this.aliases[newhash].push(big); // Back link
        if (this.aliases[oldhash]) {
          for (i = 0; i < this.aliases[oldhash].length; i++) {
            this.redirections[this.aliases[oldhash][i].hashString()] = small;
            this.aliases[newhash].push(this.aliases[oldhash][i]);
          }
        }
        this.add(small, this.sym('http://www.w3.org/2007/ont/link#uri'), big.uri);
        // If two things are equal, and one is requested, we should request the other.
        if (this.fetcher) {
          this.fetcher.nowKnownAs(big, small);
        }
      }
      moveIndex(this.classActions);
      moveIndex(this.propertyActions);
      // log.debug("Equate done. "+big+" to be known as "+small)
      return true; // true means the statement does not need to be put in
    }

    /**
     * Return all equivalent URIs by which this is known
     */

  }, {
    key: 'allAliases',
    value: function allAliases(x) {
      var a = this.aliases[this.canon(x).hashString()] || [];
      a.push(this.canon(x));
      return a;
    }

    /**
     * Compare by canonical URI as smushed
     */

  }, {
    key: 'sameThings',
    value: function sameThings(x, y) {
      if (x.sameTerm(y)) {
        return true;
      }
      var x1 = this.canon(x);
      //    alert('x1='+x1)
      if (!x1) return false;
      var y1 = this.canon(y);
      //    alert('y1='+y1); //@@
      if (!y1) return false;
      return x1.uri === y1.uri;
    }
  }, {
    key: 'setPrefixForURI',
    value: function setPrefixForURI(prefix, nsuri) {
      // TODO: This is a hack for our own issues, which ought to be fixed
      // post-release
      // See http://dig.csail.mit.edu/cgi-bin/roundup.cgi/$rdf/issue227
      if (prefix === 'tab' && this.namespaces['tab']) {
        return;
      } // There are files around with long badly generated prefixes like this
      if (prefix.slice(0, 2) === 'ns' || prefix.slice(0, 7) === 'default') {
        return;
      }
      this.namespaces[prefix] = nsuri;
    }

    /**
     * Return statements matching a pattern
     * ALL CONVENIENCE LOOKUP FUNCTIONS RELY ON THIS!
     */

  }, {
    key: 'statementsMatching',
    value: function statementsMatching(subj, pred, obj, why, justOne) {
      // log.debug("Matching {"+subj+" "+pred+" "+obj+"}")
      var pat = [subj, pred, obj, why];
      var pattern = [];
      var hash = [];
      var wild = []; // wildcards
      var given = []; // Not wild
      var p;
      var list;
      for (p = 0; p < 4; p++) {
        pattern[p] = this.canon(Node.fromValue(pat[p]));
        if (!pattern[p]) {
          wild.push(p);
        } else {
          given.push(p);
          hash[p] = pattern[p].hashString();
        }
      }
      if (given.length === 0) {
        return this.statements;
      }
      if (given.length === 1) {
        // Easy too, we have an index for that
        p = given[0];
        list = this.index[p][hash[p]];
        if (list && justOne) {
          if (list.length > 1) {
            list = list.slice(0, 1);
          }
        }
        list = list || [];
        return list;
      }
      // Now given.length is 2, 3 or 4.
      // We hope that the scale-free nature of the data will mean we tend to get
      // a short index in there somewhere!
      var best = 1e10; // really bad
      var best_i;
      var i;
      for (i = 0; i < given.length; i++) {
        p = given[i]; // Which part we are dealing with
        list = this.index[p][hash[p]];
        if (!list) {
          return []; // No occurrences
        }
        if (list.length < best) {
          best = list.length;
          best_i = i; // (not p!)
        }
      }
      // Ok, we have picked the shortest index but now we have to filter it
      var best_p = given[best_i];
      var possibles = this.index[best_p][hash[best_p]];
      var check = given.slice(0, best_i).concat(given.slice(best_i + 1)); // remove best_i
      var results = [];
      var parts = ['subject', 'predicate', 'object', 'why'];
      for (var j = 0; j < possibles.length; j++) {
        var st = possibles[j];

        for (i = 0; i < check.length; i++) {
          // for each position to be checked
          p = check[i];
          if (!this.canon(st[parts[p]]).sameTerm(pattern[p])) {
            st = null;
            break;
          }
        }
        if (st != null) {
          results.push(st);
          if (justOne) break;
        }
      }
      return results;
    }

    /**
     *  A list of all the URIs by which this thing is known
     */

  }, {
    key: 'uris',
    value: function uris(term) {
      var cterm = this.canon(term);
      var terms = this.aliases[cterm.hashString()];
      if (!cterm.uri) return [];
      var res = [cterm.uri];
      if (terms) {
        for (var i = 0; i < terms.length; i++) {
          res.push(terms[i].uri);
        }
      }
      return res;
    }
  }, {
    key: 'length',
    get: function get() {
      return this.statements.length;
    }
  }]);

  return IndexedFormula;
}(Formula);

exports.default = IndexedFormula;


IndexedFormula.handleRDFType = handleRDFType;
},{"./formula":42,"./node":51,"./query":55,"./statement":61,"./util":65,"./variable":66}],45:[function(_dereq_,module,exports){
'use strict';

var jsonParser = function () {
  return {
    parseJSON: function parseJSON(data, source, store) {
      var subject, predicate, object;
      var bnodes = {};
      var why = store.sym(source);
      for (var x in data) {
        if (x.indexOf('_:') === 0) {
          if (bnodes[x]) {
            subject = bnodes[x];
          } else {
            subject = store.bnode(x);
            bnodes[x] = subject;
          }
        } else {
          subject = store.sym(x);
        }
        var preds = data[x];
        for (var y in preds) {
          var objects = preds[y];
          predicate = store.sym(y);
          for (var z in objects) {
            var obj = objects[z];
            if (obj.type === 'uri') {
              object = store.sym(obj.value);
              store.add(subject, predicate, object, why);
            } else if (obj.type === 'BlankNode') {
              if (bnodes[obj.value]) {
                object = bnodes[obj.value];
              } else {
                object = store.bnode(obj.value);
                bnodes[obj.value] = object;
              }
              store.add(subject, predicate, object, why);
            } else if (obj.type === 'Literal') {
              // var datatype
              if (obj.datatype) {
                object = store.literal(obj.value, undefined, store.sym(obj.datatype));
              } else if (obj.lang) {
                object = store.literal(obj.value, obj.lang);
              } else {
                object = store.literal(obj.value);
              }
              store.add(subject, predicate, object, why);
            } else {
              throw new Error('error: unexpected termtype: ' + z.type);
            }
          }
        }
      }
    }
  };
}();

module.exports = jsonParser;
},{}],46:[function(_dereq_,module,exports){
'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

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"); } }

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; }

var ClassOrder = _dereq_('./class-order');
var NamedNode = _dereq_('./named-node');
var Node = _dereq_('./node');
var XSD = _dereq_('./xsd');

var Literal = function (_Node) {
  _inherits(Literal, _Node);

  function Literal(value, language, datatype) {
    _classCallCheck(this, Literal);

    var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Literal).call(this));

    _this.termType = Literal.termType;
    _this.value = value;
    if (language) {
      _this.lang = language;
      datatype = XSD.langString;
    }
    // If not specified, a literal has the implied XSD.string default datatype
    if (datatype) {
      _this.datatype = NamedNode.fromValue(datatype);
    }
    return _this;
  }

  _createClass(Literal, [{
    key: 'copy',
    value: function copy() {
      return new Literal(this.value, this.lang, this.datatype);
    }
  }, {
    key: 'equals',
    value: function equals(other) {
      if (!other) {
        return false;
      }
      return this.termType === other.termType && this.value === other.value && this.language === other.language && (!this.datatype && !other.datatype || this.datatype && this.datatype.equals(other.datatype));
    }
  }, {
    key: 'toNT',
    value: function toNT() {
      if (typeof this.value === 'number') {
        return this.toString();
      } else if (typeof this.value !== 'string') {
        throw new Error('Value of RDF literal is not string or number: ' + this.value);
      }
      var str = this.value;
      str = str.replace(/\\/g, '\\\\');
      str = str.replace(/\"/g, '\\"');
      str = str.replace(/\n/g, '\\n');
      str = '"' + str + '"';

      if (this.language) {
        str += '@' + this.language;
      } else if (!this.datatype.equals(XSD.string)) {
        // Only add datatype if it's not a string
        str += '^^' + this.datatype.toCanonical();
      }
      return str;
    }
  }, {
    key: 'toString',
    value: function toString() {
      return '' + this.value;
    }
    /**
     * @method fromBoolean
     * @static
     * @param value {Boolean}
     * @return {Literal}
     */

  }, {
    key: 'language',
    get: function get() {
      return this.lang;
    },
    set: function set(language) {
      this.lang = language || '';
    }
  }], [{
    key: 'fromBoolean',
    value: function fromBoolean(value) {
      var strValue = value ? '1' : '0';
      return new Literal(strValue, null, XSD.boolean);
    }
    /**
     * @method fromDate
     * @static
     * @param value {Date}
     * @return {Literal}
     */

  }, {
    key: 'fromDate',
    value: function fromDate(value) {
      if (!(value instanceof Date)) {
        throw new TypeError('Invalid argument to Literal.fromDate()');
      }
      var d2 = function d2(x) {
        return ('' + (100 + x)).slice(1, 3);
      };
      var date = '' + value.getUTCFullYear() + '-' + d2(value.getUTCMonth() + 1) + '-' + d2(value.getUTCDate()) + 'T' + d2(value.getUTCHours()) + ':' + d2(value.getUTCMinutes()) + ':' + d2(value.getUTCSeconds()) + 'Z';
      return new Literal(date, null, XSD.dateTime);
    }
    /**
     * @method fromNumber
     * @static
     * @param value {Number}
     * @return {Literal}
     */

  }, {
    key: 'fromNumber',
    value: function fromNumber(value) {
      if (typeof value !== 'number') {
        throw new TypeError('Invalid argument to Literal.fromNumber()');
      }
      var datatype = void 0;
      var strValue = value.toString();
      if (strValue.indexOf('e') < 0 && Math.abs(value) <= Number.MAX_SAFE_INTEGER) {
        datatype = Number.isInteger(value) ? XSD.integer : XSD.decimal;
      } else {
        datatype = XSD.double;
      }
      return new Literal(strValue, null, datatype);
    }
    /**
     * @method fromValue
     * @param value
     * @return {Literal}
     */

  }, {
    key: 'fromValue',
    value: function fromValue(value) {
      if (typeof value === 'undefined' || value === null) {
        return value;
      }
      if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value.termType) {
        // this is a Node instance
        return value;
      }
      switch (typeof value === 'undefined' ? 'undefined' : _typeof(value)) {
        case 'object':
          if (value instanceof Date) {
            return Literal.fromDate(value);
          }
        case 'boolean':
          return Literal.fromBoolean(value);
        case 'number':
          return Literal.fromNumber(value);
        case 'string':
          return new Literal(value);
      }
      throw new Error("Can't make literal from " + value + ' of type ' + (typeof value === 'undefined' ? 'undefined' : _typeof(value)));
    }
  }]);

  return Literal;
}(Node);

Literal.termType = 'Literal';
Literal.prototype.classOrder = ClassOrder['Literal'];
Literal.prototype.datatype = XSD.string;
Literal.prototype.lang = '';
Literal.prototype.isVar = 0;

module.exports = Literal;
},{"./class-order":35,"./named-node":49,"./node":51,"./xsd":67}],47:[function(_dereq_,module,exports){
"use strict";

/**
 * A Dummy log
 * @module log
 */
module.exports = {
  debug: function debug(x) {
    return;
  },
  warn: function warn(x) {
    return;
  },
  info: function info(x) {
    return;
  },
  error: function error(x) {
    return;
  },
  success: function success(x) {
    return;
  },
  msg: function msg(x) {
    return;
  }
};
},{}],48:[function(_dereq_,module,exports){
'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

/**
*
*  UTF-8 data encode / decode
*  http://www.webtoolkit.info/
*
**/
var Uri = _dereq_('./uri');
var ArrayIndexOf = _dereq_('./util').ArrayIndexOf;

var N3Parser = function () {

    function hexify(str) {
        // also used in parser
        return encodeURI(str);
    }

    var Utf8 = {
        // public method for url encoding
        encode: function encode(string) {
            string = string.replace(/\r\n/g, "\n");
            var utftext = "";

            for (var n = 0; n < string.length; n++) {

                var c = string.charCodeAt(n);

                if (c < 128) {
                    utftext += String.fromCharCode(c);
                } else if (c > 127 && c < 2048) {
                    utftext += String.fromCharCode(c >> 6 | 192);
                    utftext += String.fromCharCode(c & 63 | 128);
                } else {
                    utftext += String.fromCharCode(c >> 12 | 224);
                    utftext += String.fromCharCode(c >> 6 & 63 | 128);
                    utftext += String.fromCharCode(c & 63 | 128);
                }
            }

            return utftext;
        },
        // public method for url decoding
        decode: function decode(utftext) {
            var string = "";
            var i = 0;

            while (i < utftext.length) {

                var c = utftext.charCodeAt(i);
                if (c < 128) {
                    string += String.fromCharCode(c);
                    i++;
                } else if (c > 191 && c < 224) {
                    string += String.fromCharCode((c & 31) << 6 | utftext.charCodeAt(i + 1) & 63);
                    i += 2;
                } else {
                    string += String.fromCharCode((c & 15) << 12 | (utftext.charCodeAt(i + 1) & 63) << 6 | utftext.charCodeAt(i + 2) & 63);
                    i += 3;
                }
            }
            return string;
        }
    }; // Things we need to define to make converted pythn code work in js
    // environment of $rdf

    var RDFSink_forSomeSym = "http://www.w3.org/2000/10/swap/log#forSome";
    var RDFSink_forAllSym = "http://www.w3.org/2000/10/swap/log#forAll";
    var Logic_NS = "http://www.w3.org/2000/10/swap/log#";

    //  pyjs seems to reference runtime library which I didn't find

    var pyjslib_Tuple = function pyjslib_Tuple(theList) {
        return theList;
    };

    var pyjslib_List = function pyjslib_List(theList) {
        return theList;
    };

    var pyjslib_Dict = function pyjslib_Dict(listOfPairs) {
        if (listOfPairs.length > 0) throw "missing.js: oops nnonempty dict not imp";
        return [];
    };

    var pyjslib_len = function pyjslib_len(s) {
        return s.length;
    };

    var pyjslib_slice = function pyjslib_slice(str, i, j) {
        if (typeof str.slice == 'undefined') throw '@@ mising.js: No .slice function for ' + str + ' of type ' + (typeof str === 'undefined' ? 'undefined' : _typeof(str));
        if (typeof j == 'undefined' || j == null) return str.slice(i);
        return str.slice(i, j); // @ exactly the same spec?
    };
    var StopIteration = Error('dummy error stop iteration');

    var pyjslib_Iterator = function pyjslib_Iterator(theList) {
        this.last = 0;
        this.li = theList;
        this.next = function () {
            if (this.last == this.li.length) throw StopIteration;
            return this.li[this.last++];
        };
        return this;
    };

    var ord = function ord(str) {
        return str.charCodeAt(0);
    };

    var string_find = function string_find(str, s) {
        return str.indexOf(s);
    };

    var assertFudge = function assertFudge(condition, desc) {
        if (condition) return;
        if (desc) throw "python Assertion failed: " + desc;
        throw "(python) Assertion failed.";
    };

    var stringFromCharCode = function stringFromCharCode(uesc) {
        return String.fromCharCode(uesc);
    };

    String.prototype.encode = function (encoding) {
        if (encoding != 'utf-8') throw "UTF8_converter: can only do utf-8";
        return Utf8.encode(this);
    };
    String.prototype.decode = function (encoding) {
        if (encoding != 'utf-8') throw "UTF8_converter: can only do utf-8";
        //return Utf8.decode(this);
        return this;
    };

    var uripath_join = function uripath_join(base, given) {
        return Uri.join(given, base); // sad but true
    };

    var becauseSubexpression = null; // No reason needed
    var diag_tracking = 0;
    var diag_chatty_flag = 0;
    var diag_progress = function diag_progress(str) {} /*$rdf.log.debug(str);*/

    // why_BecauseOfData = function(doc, reason) { return doc };


    ;var RDF_type_URI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type";
    var DAML_sameAs_URI = "http://www.w3.org/2002/07/owl#sameAs";

    /*
    function SyntaxError(details) {
        return new __SyntaxError(details);
    }
    */

    function __SyntaxError(details) {
        this.details = details;
    }

    /*
    
    $Id: n3parser.js 14561 2008-02-23 06:37:26Z kennyluck $
    
    HAND EDITED FOR CONVERSION TO JAVASCRIPT
    
    This module implements a Nptation3 parser, and the final
    part of a notation3 serializer.
    
    See also:
    
    Notation 3
    http://www.w3.org/DesignIssues/Notation3
    
    Closed World Machine - and RDF Processor
    http://www.w3.org/2000/10/swap/cwm
    
    To DO: See also "@@" in comments
    
    - Clean up interfaces
    ______________________________________________
    
    Module originally by Dan Connolly, includeing notation3
    parser and RDF generator. TimBL added RDF stream model
    and N3 generation, replaced stream model with use
    of common store/formula API.  Yosi Scharf developped
    the module, including tests and test harness.
    
    */

    var ADDED_HASH = "#";
    var LOG_implies_URI = "http://www.w3.org/2000/10/swap/log#implies";
    var INTEGER_DATATYPE = "http://www.w3.org/2001/XMLSchema#integer";
    var FLOAT_DATATYPE = "http://www.w3.org/2001/XMLSchema#double";
    var DECIMAL_DATATYPE = "http://www.w3.org/2001/XMLSchema#decimal";
    var DATE_DATATYPE = "http://www.w3.org/2001/XMLSchema#date";
    var DATETIME_DATATYPE = "http://www.w3.org/2001/XMLSchema#dateTime";
    var BOOLEAN_DATATYPE = "http://www.w3.org/2001/XMLSchema#boolean";
    var option_noregen = 0;
    var _notQNameChars = "\t\r\n !\"#$%&'()*.,+/;<=>?@[\\]^`{|}~";
    var _notNameChars = _notQNameChars + ":";
    var _rdfns = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
    var N3CommentCharacter = "#";
    var eol = new RegExp("^[ \\t]*(#[^\\n]*)?\\r?\\n", 'g');
    var eof = new RegExp("^[ \\t]*(#[^\\n]*)?$", 'g');
    var ws = new RegExp("^[ \\t]*", 'g');
    var signed_integer = new RegExp("^[-+]?[0-9]+", 'g');
    var number_syntax = new RegExp("^([-+]?[0-9]+)(\\.[0-9]+)?(e[-+]?[0-9]+)?", 'g');
    var datetime_syntax = new RegExp('^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9](T[0-9][0-9]:[0-9][0-9](:[0-9][0-9](\\.[0-9]*)?)?)?Z?');

    var digitstring = new RegExp("^[0-9]+", 'g');
    var interesting = new RegExp("[\\\\\\r\\n\\\"]", 'g');
    var langcode = new RegExp("^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", 'g');
    function SinkParser(store, openFormula, thisDoc, baseURI, genPrefix, metaURI, flags, why) {
        return new __SinkParser(store, openFormula, thisDoc, baseURI, genPrefix, metaURI, flags, why);
    }
    function __SinkParser(store, openFormula, thisDoc, baseURI, genPrefix, metaURI, flags, why) {
        if (typeof openFormula == 'undefined') openFormula = null;
        if (typeof thisDoc == 'undefined') thisDoc = "";
        if (typeof baseURI == 'undefined') baseURI = null;
        if (typeof genPrefix == 'undefined') genPrefix = "";
        if (typeof metaURI == 'undefined') metaURI = null;
        if (typeof flags == 'undefined') flags = "";
        if (typeof why == 'undefined') why = null;
        /*
        note: namespace names should *not* end in #;
        the # will get added during qname processing */

        this._bindings = new pyjslib_Dict([]);
        this._flags = flags;
        if (thisDoc != "") {
            assertFudge(thisDoc.indexOf(":") >= 0, "Document URI not absolute: " + thisDoc);
            this._bindings[""] = thisDoc + "#";
        }
        this._store = store;
        if (genPrefix) {
            store.setGenPrefix(genPrefix);
        }
        this._thisDoc = thisDoc;
        this.source = store.sym(thisDoc);
        this.lines = 0;
        this.statementCount = 0;
        this.startOfLine = 0;
        this.previousLine = 0;
        this._genPrefix = genPrefix;
        this.keywords = new pyjslib_List(["a", "this", "bind", "has", "is", "of", "true", "false"]);
        this.keywordsSet = 0;
        this._anonymousNodes = new pyjslib_Dict([]);
        this._variables = new pyjslib_Dict([]);
        this._parentVariables = new pyjslib_Dict([]);
        this._reason = why;
        this._reason2 = null;
        if (diag_tracking) {
            this._reason2 = why_BecauseOfData(store.sym(thisDoc), this._reason);
        }
        if (baseURI) {
            this._baseURI = baseURI;
        } else {
            if (thisDoc) {
                this._baseURI = thisDoc;
            } else {
                this._baseURI = null;
            }
        }
        assertFudge(!this._baseURI || this._baseURI.indexOf(":") >= 0);
        if (!this._genPrefix) {
            if (this._thisDoc) {
                this._genPrefix = this._thisDoc + "#_g";
            } else {
                this._genPrefix = RDFSink_uniqueURI();
            }
        }
        if (openFormula == null) {
            if (this._thisDoc) {
                this._formula = store.formula(thisDoc + "#_formula");
            } else {
                this._formula = store.formula();
            }
        } else {
            this._formula = openFormula;
        }
        this._context = this._formula;
        this._parentContext = null;
    }
    __SinkParser.prototype.here = function (i) {
        return this._genPrefix + "_L" + this.lines + "C" + (i - this.startOfLine + 1);
    };
    __SinkParser.prototype.formula = function () {
        return this._formula;
    };
    __SinkParser.prototype.loadStream = function (stream) {
        return this.loadBuf(stream.read());
    };
    __SinkParser.prototype.loadBuf = function (buf) {
        /*
        Parses a buffer and returns its top level formula*/

        this.startDoc();
        this.feed(buf);
        return this.endDoc();
    };
    __SinkParser.prototype.feed = function (octets) {
        /*
        Feed an octet stream tothe parser
         if BadSyntax is raised, the string
        passed in the exception object is the
        remainder after any statements have been parsed.
        So if there is more data to feed to the
        parser, it should be straightforward to recover.*/

        var str = octets.decode("utf-8");
        var i = 0;
        while (i >= 0) {
            var j = this.skipSpace(str, i);
            if (j < 0) {
                return;
            }
            var i = this.directiveOrStatement(str, j);
            if (i < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, j, "expected directive or statement");
            }
        }
    };
    __SinkParser.prototype.directiveOrStatement = function (str, h) {
        var i = this.skipSpace(str, h);
        if (i < 0) {
            return i;
        }
        var j = this.directive(str, i);
        if (j >= 0) {
            return this.checkDot(str, j);
        }
        var j = this.statement(str, i);
        if (j >= 0) {
            return this.checkDot(str, j);
        }
        return j;
    };
    __SinkParser.prototype.tok = function (tok, str, i) {
        /*
        Check for keyword.  Space must have been stripped on entry and
        we must not be at end of file.*/
        var whitespace = "\t\n\v\f\r ";
        if (pyjslib_slice(str, i, i + 1) == "@") {
            var i = i + 1;
        } else {
            if (ArrayIndexOf(this.keywords, tok) < 0) {
                return -1;
            }
        }
        var k = i + pyjslib_len(tok);
        if (pyjslib_slice(str, i, k) == tok && _notQNameChars.indexOf(str.charAt(k)) >= 0) {
            return k;
        } else {
            return -1;
        }
    };
    __SinkParser.prototype.directive = function (str, i) {
        var j = this.skipSpace(str, i);
        if (j < 0) {
            return j;
        }
        var res = new pyjslib_List([]);
        var j = this.tok("bind", str, i);
        if (j > 0) {
            throw BadSyntax(this._thisDoc, this.lines, str, i, "keyword bind is obsolete: use @prefix");
        }
        var j = this.tok("keywords", str, i);
        if (j > 0) {
            var i = this.commaSeparatedList(str, j, res, false);
            if (i < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, i, "'@keywords' needs comma separated list of words");
            }
            this.setKeywords(pyjslib_slice(res, null, null));
            if (diag_chatty_flag > 80) {
                diag_progress("Keywords ", this.keywords);
            }
            return i;
        }
        var j = this.tok("forAll", str, i);
        if (j > 0) {
            var i = this.commaSeparatedList(str, j, res, true);
            if (i < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, i, "Bad variable list after @forAll");
            }

            var __x = new pyjslib_Iterator(res);
            try {
                while (true) {
                    var x = __x.next();

                    if (ArrayIndexOf(this._variables, x) < 0 || ArrayIndexOf(this._parentVariables, x) >= 0) {
                        this._variables[x] = this._context.newUniversal(x);
                    }
                }
            } catch (e) {
                if (e != StopIteration) {
                    throw e;
                }
            }

            return i;
        }
        var j = this.tok("forSome", str, i);
        if (j > 0) {
            var i = this.commaSeparatedList(str, j, res, this.uri_ref2);
            if (i < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, i, "Bad variable list after @forSome");
            }

            var __x = new pyjslib_Iterator(res);
            try {
                while (true) {
                    var x = __x.next();

                    this._context.declareExistential(x);
                }
            } catch (e) {
                if (e != StopIteration) {
                    throw e;
                }
            }

            return i;
        }
        var j = this.tok("prefix", str, i);
        if (j >= 0) {
            var t = new pyjslib_List([]);
            var i = this.qname(str, j, t);
            if (i < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, j, "expected qname after @prefix");
            }
            var j = this.uri_ref2(str, i, t);
            if (j < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, i, "expected <uriref> after @prefix _qname_");
            }
            var ns = t[1].uri;
            if (this._baseURI) {
                var ns = uripath_join(this._baseURI, ns);
            } else {
                assertFudge(ns.indexOf(":") >= 0, "With no base URI, cannot handle relative URI for NS");
            }
            assertFudge(ns.indexOf(":") >= 0);
            this._bindings[t[0][0]] = ns;

            this.bind(t[0][0], hexify(ns));
            return j;
        }
        var j = this.tok("base", str, i);
        if (j >= 0) {
            var t = new pyjslib_List([]);
            var i = this.uri_ref2(str, j, t);
            if (i < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, j, "expected <uri> after @base ");
            }
            var ns = t[0].uri;
            if (this._baseURI) {
                var ns = uripath_join(this._baseURI, ns);
            } else {
                throw BadSyntax(this._thisDoc, this.lines, str, j, "With no previous base URI, cannot use relative URI in @base  <" + ns + ">");
            }
            assertFudge(ns.indexOf(":") >= 0);
            this._baseURI = ns;
            return i;
        }
        return -1;
    };
    __SinkParser.prototype.bind = function (qn, uri) {
        if (qn == "") {} else {
            this._store.setPrefixForURI(qn, uri);
        }
    };
    __SinkParser.prototype.setKeywords = function (k) {
        /*
        Takes a list of strings*/

        if (k == null) {
            this.keywordsSet = 0;
        } else {
            this.keywords = k;
            this.keywordsSet = 1;
        }
    };
    __SinkParser.prototype.startDoc = function () {};
    __SinkParser.prototype.endDoc = function () {
        /*
        Signal end of document and stop parsing. returns formula*/

        return this._formula;
    };
    __SinkParser.prototype.makeStatement = function (quad) {
        quad[0].add(quad[2], quad[1], quad[3], this.source);
        this.statementCount += 1;
    };
    __SinkParser.prototype.statement = function (str, i) {
        var r = new pyjslib_List([]);
        var i = this.object(str, i, r);
        if (i < 0) {
            return i;
        }
        var j = this.property_list(str, i, r[0]);
        if (j < 0) {
            throw BadSyntax(this._thisDoc, this.lines, str, i, "expected propertylist");
        }
        return j;
    };
    __SinkParser.prototype.subject = function (str, i, res) {
        return this.item(str, i, res);
    };
    __SinkParser.prototype.verb = function (str, i, res) {
        /*
        has _prop_
        is _prop_ of
        a
        =
        _prop_
        >- prop ->
        <- prop -<
        _operator_*/

        var j = this.skipSpace(str, i);
        if (j < 0) {
            return j;
        }
        var r = new pyjslib_List([]);
        var j = this.tok("has", str, i);
        if (j >= 0) {
            var i = this.prop(str, j, r);
            if (i < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, j, "expected property after 'has'");
            }
            res.push(new pyjslib_Tuple(["->", r[0]]));
            return i;
        }
        var j = this.tok("is", str, i);
        if (j >= 0) {
            var i = this.prop(str, j, r);
            if (i < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, j, "expected <property> after 'is'");
            }
            var j = this.skipSpace(str, i);
            if (j < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, i, "End of file found, expected property after 'is'");
                return j;
            }
            var i = j;
            var j = this.tok("of", str, i);
            if (j < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, i, "expected 'of' after 'is' <prop>");
            }
            res.push(new pyjslib_Tuple(["<-", r[0]]));
            return j;
        }
        var j = this.tok("a", str, i);
        if (j >= 0) {
            res.push(new pyjslib_Tuple(["->", this._store.sym(RDF_type_URI)]));
            return j;
        }
        if (pyjslib_slice(str, i, i + 2) == "<=") {
            res.push(new pyjslib_Tuple(["<-", this._store.sym(Logic_NS + "implies")]));
            return i + 2;
        }
        if (pyjslib_slice(str, i, i + 1) == "=") {
            if (pyjslib_slice(str, i + 1, i + 2) == ">") {
                res.push(new pyjslib_Tuple(["->", this._store.sym(Logic_NS + "implies")]));
                return i + 2;
            }
            res.push(new pyjslib_Tuple(["->", this._store.sym(DAML_sameAs_URI)]));
            return i + 1;
        }
        if (pyjslib_slice(str, i, i + 2) == ":=") {
            res.push(new pyjslib_Tuple(["->", Logic_NS + "becomes"]));
            return i + 2;
        }
        var j = this.prop(str, i, r);
        if (j >= 0) {
            res.push(new pyjslib_Tuple(["->", r[0]]));
            return j;
        }
        if (pyjslib_slice(str, i, i + 2) == ">-" || pyjslib_slice(str, i, i + 2) == "<-") {
            throw BadSyntax(this._thisDoc, this.lines, str, j, ">- ... -> syntax is obsolete.");
        }
        return -1;
    };
    __SinkParser.prototype.prop = function (str, i, res) {
        return this.item(str, i, res);
    };
    __SinkParser.prototype.item = function (str, i, res) {
        return this.path(str, i, res);
    };
    __SinkParser.prototype.blankNode = function (uri) {
        return this._context.bnode(uri, this._reason2);
    };
    __SinkParser.prototype.path = function (str, i, res) {
        /*
        Parse the path production.
        */

        var j = this.nodeOrLiteral(str, i, res);
        if (j < 0) {
            return j;
        }
        while ("!^.".indexOf(pyjslib_slice(str, j, j + 1)) >= 0) {
            var ch = pyjslib_slice(str, j, j + 1);
            if (ch == ".") {
                var ahead = pyjslib_slice(str, j + 1, j + 2);
                if (!ahead || _notNameChars.indexOf(ahead) >= 0 && ":?<[{(".indexOf(ahead) < 0) {
                    break;
                }
            }
            var subj = res.pop();
            var obj = this.blankNode(this.here(j));
            var j = this.node(str, j + 1, res);
            if (j < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, j, "EOF found in middle of path syntax");
            }
            var pred = res.pop();
            if (ch == "^") {
                this.makeStatement(new pyjslib_Tuple([this._context, pred, obj, subj]));
            } else {
                this.makeStatement(new pyjslib_Tuple([this._context, pred, subj, obj]));
            }
            res.push(obj);
        }
        return j;
    };
    __SinkParser.prototype.anonymousNode = function (ln) {
        /*
        Remember or generate a term for one of these _: anonymous nodes*/

        var term = this._anonymousNodes[ln];
        if (term) {
            return term;
        }
        var term = this._store.bnode(this._context, this._reason2);
        this._anonymousNodes[ln] = term;
        return term;
    };
    __SinkParser.prototype.node = function (str, i, res, subjectAlready) {
        if (typeof subjectAlready == 'undefined') subjectAlready = null;
        /*
        Parse the <node> production.
        Space is now skipped once at the beginning
        instead of in multipe calls to self.skipSpace().
        */

        var subj = subjectAlready;
        var j = this.skipSpace(str, i);
        if (j < 0) {
            return j;
        }
        var i = j;
        var ch = pyjslib_slice(str, i, i + 1);
        if (ch == "[") {
            var bnodeID = this.here(i);
            var j = this.skipSpace(str, i + 1);
            if (j < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, i, "EOF after '['");
            }
            if (pyjslib_slice(str, j, j + 1) == "=") {
                var i = j + 1;
                var objs = new pyjslib_List([]);
                var j = this.objectList(str, i, objs);

                if (j >= 0) {
                    var subj = objs[0];
                    if (pyjslib_len(objs) > 1) {

                        var __obj = new pyjslib_Iterator(objs);
                        try {
                            while (true) {
                                var obj = __obj.next();

                                this.makeStatement(new pyjslib_Tuple([this._context, this._store.sym(DAML_sameAs_URI), subj, obj]));
                            }
                        } catch (e) {
                            if (e != StopIteration) {
                                throw e;
                            }
                        }
                    }
                    var j = this.skipSpace(str, j);
                    if (j < 0) {
                        throw BadSyntax(this._thisDoc, this.lines, str, i, "EOF when objectList expected after [ = ");
                    }
                    if (pyjslib_slice(str, j, j + 1) == ";") {
                        var j = j + 1;
                    }
                } else {
                    throw BadSyntax(this._thisDoc, this.lines, str, i, "objectList expected after [= ");
                }
            }
            if (subj == null) {
                var subj = this.blankNode(bnodeID);
            }
            var i = this.property_list(str, j, subj);
            if (i < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, j, "property_list expected");
            }
            var j = this.skipSpace(str, i);
            if (j < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, i, "EOF when ']' expected after [ <propertyList>");
            }
            if (pyjslib_slice(str, j, j + 1) != "]") {
                throw BadSyntax(this._thisDoc, this.lines, str, j, "']' expected");
            }
            res.push(subj);
            return j + 1;
        }
        if (ch == "{") {
            var ch2 = pyjslib_slice(str, i + 1, i + 2);
            if (ch2 == "$") {
                i += 1;
                var j = i + 1;
                var mylist = new pyjslib_List([]);
                var first_run = true;
                while (1) {
                    var i = this.skipSpace(str, j);
                    if (i < 0) {
                        throw BadSyntax(this._thisDoc, this.lines, str, i, "needed '$}', found end.");
                    }
                    if (pyjslib_slice(str, i, i + 2) == "$}") {
                        var j = i + 2;
                        break;
                    }
                    if (!first_run) {
                        if (pyjslib_slice(str, i, i + 1) == ",") {
                            i += 1;
                        } else {
                            throw BadSyntax(this._thisDoc, this.lines, str, i, "expected: ','");
                        }
                    } else {
                        var first_run = false;
                    }
                    var item = new pyjslib_List([]);
                    var j = this.item(str, i, item);
                    if (j < 0) {
                        throw BadSyntax(this._thisDoc, this.lines, str, i, "expected item in set or '$}'");
                    }
                    mylist.push(item[0]);
                }
                res.push(this._store.newSet(mylist, this._context));
                return j;
            } else {
                var j = i + 1;
                var oldParentContext = this._parentContext;
                this._parentContext = this._context;
                var parentAnonymousNodes = this._anonymousNodes;
                var grandParentVariables = this._parentVariables;
                this._parentVariables = this._variables;
                this._anonymousNodes = new pyjslib_Dict([]);
                this._variables = this._variables.slice();
                var reason2 = this._reason2;
                this._reason2 = becauseSubexpression;
                if (subj == null) {
                    var subj = this._store.formula();
                }
                this._context = subj;
                while (1) {
                    var i = this.skipSpace(str, j);
                    if (i < 0) {
                        throw BadSyntax(this._thisDoc, this.lines, str, i, "needed '}', found end.");
                    }
                    if (pyjslib_slice(str, i, i + 1) == "}") {
                        var j = i + 1;
                        break;
                    }
                    var j = this.directiveOrStatement(str, i);
                    if (j < 0) {
                        throw BadSyntax(this._thisDoc, this.lines, str, i, "expected statement or '}'");
                    }
                }
                this._anonymousNodes = parentAnonymousNodes;
                this._variables = this._parentVariables;
                this._parentVariables = grandParentVariables;
                this._context = this._parentContext;
                this._reason2 = reason2;
                this._parentContext = oldParentContext;
                res.push(subj.close());
                return j;
            }
        }
        if (ch == "(") {
            var thing_type = this._store.list;
            var ch2 = pyjslib_slice(str, i + 1, i + 2);
            if (ch2 == "$") {
                var thing_type = this._store.newSet;
                i += 1;
            }
            var j = i + 1;
            var mylist = new pyjslib_List([]);
            while (1) {
                var i = this.skipSpace(str, j);
                if (i < 0) {
                    throw BadSyntax(this._thisDoc, this.lines, str, i, "needed ')', found end.");
                }
                if (pyjslib_slice(str, i, i + 1) == ")") {
                    var j = i + 1;
                    break;
                }
                var item = new pyjslib_List([]);
                var j = this.item(str, i, item);
                if (j < 0) {
                    throw BadSyntax(this._thisDoc, this.lines, str, i, "expected item in list or ')'");
                }
                mylist.push(item[0]);
            }
            res.push(thing_type(mylist, this._context));
            return j;
        }
        var j = this.tok("this", str, i);
        if (j >= 0) {
            throw BadSyntax(this._thisDoc, this.lines, str, i, "Keyword 'this' was ancient N3. Now use @forSome and @forAll keywords.");
            res.push(this._context);
            return j;
        }
        var j = this.tok("true", str, i);
        if (j >= 0) {
            res.push(true);
            return j;
        }
        var j = this.tok("false", str, i);
        if (j >= 0) {
            res.push(false);
            return j;
        }
        if (subj == null) {
            var j = this.uri_ref2(str, i, res);
            if (j >= 0) {
                return j;
            }
        }
        return -1;
    };
    __SinkParser.prototype.property_list = function (str, i, subj) {
        /*
        Parse property list
        Leaves the terminating punctuation in the buffer
        */

        while (1) {
            var j = this.skipSpace(str, i);
            if (j < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, i, "EOF found when expected verb in property list");
                return j;
            }
            if (pyjslib_slice(str, j, j + 2) == ":-") {
                var i = j + 2;
                var res = new pyjslib_List([]);
                var j = this.node(str, i, res, subj);
                if (j < 0) {
                    throw BadSyntax(this._thisDoc, this.lines, str, i, "bad {} or () or [] node after :- ");
                }
                var i = j;
                continue;
            }
            var i = j;
            var v = new pyjslib_List([]);
            var j = this.verb(str, i, v);
            if (j <= 0) {
                return i;
            }
            var objs = new pyjslib_List([]);
            var i = this.objectList(str, j, objs);
            if (i < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, j, "objectList expected");
            }

            var __obj = new pyjslib_Iterator(objs);
            try {
                while (true) {
                    var obj = __obj.next();

                    var pairFudge = v[0];
                    var dir = pairFudge[0];
                    var sym = pairFudge[1];
                    if (dir == "->") {
                        this.makeStatement(new pyjslib_Tuple([this._context, sym, subj, obj]));
                    } else {
                        this.makeStatement(new pyjslib_Tuple([this._context, sym, obj, subj]));
                    }
                }
            } catch (e) {
                if (e != StopIteration) {
                    throw e;
                }
            }

            var j = this.skipSpace(str, i);
            if (j < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, j, "EOF found in list of objects");
                return j;
            }
            if (pyjslib_slice(str, i, i + 1) != ";") {
                return i;
            }
            var i = i + 1;
        }
    };
    __SinkParser.prototype.commaSeparatedList = function (str, j, res, ofUris) {
        /*
        return value: -1 bad syntax; >1 new position in str
        res has things found appended
         Used to use a final value of the function to be called, e.g. this.bareWord
        but passing the function didn't work fo js converion pyjs
        */

        var i = this.skipSpace(str, j);
        if (i < 0) {
            throw BadSyntax(this._thisDoc, this.lines, str, i, "EOF found expecting comma sep list");
            return i;
        }
        if (str.charAt(i) == ".") {
            return j;
        }
        if (ofUris) {
            var i = this.uri_ref2(str, i, res);
        } else {
            var i = this.bareWord(str, i, res);
        }
        if (i < 0) {
            return -1;
        }
        while (1) {
            var j = this.skipSpace(str, i);
            if (j < 0) {
                return j;
            }
            var ch = pyjslib_slice(str, j, j + 1);
            if (ch != ",") {
                if (ch != ".") {
                    return -1;
                }
                return j;
            }
            if (ofUris) {
                var i = this.uri_ref2(str, j + 1, res);
            } else {
                var i = this.bareWord(str, j + 1, res);
            }
            if (i < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, i, "bad list content");
                return i;
            }
        }
    };
    __SinkParser.prototype.objectList = function (str, i, res) {
        var i = this.object(str, i, res);
        if (i < 0) {
            return -1;
        }
        while (1) {
            var j = this.skipSpace(str, i);
            if (j < 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, j, "EOF found after object");
                return j;
            }
            if (pyjslib_slice(str, j, j + 1) != ",") {
                return j;
            }
            var i = this.object(str, j + 1, res);
            if (i < 0) {
                return i;
            }
        }
    };
    __SinkParser.prototype.checkDot = function (str, i) {
        var j = this.skipSpace(str, i);
        if (j < 0) {
            return j;
        }
        if (pyjslib_slice(str, j, j + 1) == ".") {
            return j + 1;
        }
        if (pyjslib_slice(str, j, j + 1) == "}") {
            return j;
        }
        if (pyjslib_slice(str, j, j + 1) == "]") {
            return j;
        }
        throw BadSyntax(this._thisDoc, this.lines, str, j, "expected '.' or '}' or ']' at end of statement");
        return i;
    };
    __SinkParser.prototype.uri_ref2 = function (str, i, res) {
        /*
        Generate uri from n3 representation.
         Note that the RDF convention of directly concatenating
        NS and local name is now used though I prefer inserting a '#'
        to make the namesapces look more like what XML folks expect.
        */

        var qn = new pyjslib_List([]);
        var j = this.qname(str, i, qn);
        if (j >= 0) {
            var pairFudge = qn[0];
            var pfx = pairFudge[0];
            var ln = pairFudge[1];
            if (pfx == null) {
                assertFudge(0, "not used?");
                var ns = this._baseURI + ADDED_HASH;
            } else {
                var ns = this._bindings[pfx];
                if (!ns) {
                    if (pfx == "_") {
                        res.push(this.anonymousNode(ln));
                        return j;
                    }
                    throw BadSyntax(this._thisDoc, this.lines, str, i, "Prefix " + pfx + " not bound.");
                }
            }
            var symb = this._store.sym(ns + ln);
            if (ArrayIndexOf(this._variables, symb) >= 0) {
                res.push(this._variables[symb]);
            } else {
                res.push(symb);
            }
            return j;
        }
        var i = this.skipSpace(str, i);
        if (i < 0) {
            return -1;
        }
        if (str.charAt(i) == "?") {
            var v = new pyjslib_List([]);
            var j = this.variable(str, i, v);
            if (j > 0) {
                res.push(v[0]);
                return j;
            }
            return -1;
        } else if (str.charAt(i) == "<") {
            var i = i + 1;
            var st = i;
            while (i < pyjslib_len(str)) {
                if (str.charAt(i) == ">") {
                    var uref = pyjslib_slice(str, st, i);
                    if (this._baseURI) {
                        var uref = uripath_join(this._baseURI, uref);
                    } else {
                        assertFudge(uref.indexOf(":") >= 0, "With no base URI, cannot deal with relative URIs");
                    }
                    if (pyjslib_slice(str, i - 1, i) == "#" && !(pyjslib_slice(uref, -1, null) == "#")) {
                        var uref = uref + "#";
                    }
                    var symb = this._store.sym(uref);
                    if (ArrayIndexOf(this._variables, symb) >= 0) {
                        res.push(this._variables[symb]);
                    } else {
                        res.push(symb);
                    }
                    return i + 1;
                }
                var i = i + 1;
            }
            throw BadSyntax(this._thisDoc, this.lines, str, j, "unterminated URI reference");
        } else if (this.keywordsSet) {
            var v = new pyjslib_List([]);
            var j = this.bareWord(str, i, v);
            if (j < 0) {
                return -1;
            }
            if (ArrayIndexOf(this.keywords, v[0]) >= 0) {
                throw BadSyntax(this._thisDoc, this.lines, str, i, "Keyword \"" + v[0] + "\" not allowed here.");
            }
            res.push(this._store.sym(this._bindings[""] + v[0]));
            return j;
        } else {
            return -1;
        }
    };
    __SinkParser.prototype.skipSpace = function (str, i) {
        /*
        Skip white space, newlines and comments.
        return -1 if EOF, else position of first non-ws character*/

        var whitespace = ' \n\r\t\f\u000b            ​\u2028\u2029　';
        for (var j = i ? i : 0; j < str.length; j++) {
            var ch = str.charAt(j);
            // console.log("    skipspace j= "+j + " i= " + i + " n= " + str.length);
            // console.log(" skipspace ch <" + ch + ">");
            if (whitespace.indexOf(ch) < 0) {
                //not ws
                // console.log(" skipspace 2 ch <" + ch + ">");
                if (str.charAt(j) === '#') {
                    for (;; j++) {
                        // console.log("    skipspace2 j= "+j + " i= " + i + " n= " + str.length);
                        if (j === str.length) {
                            return -1; // EOF
                        }
                        if (str.charAt(j) === '\n') {
                            this.lines = this.lines + 1;
                            break;
                        }
                    };
                } else {
                    // Not hash - something interesting
                    // console.log(" skipspace 3 ch <" + ch + ">");
                    return j;
                }
            } else {
                // Whitespace
                // console.log(" skipspace 5 ch <" + ch + ">");
                if (str.charAt(j) === '\n') {
                    this.lines = this.lines + 1;
                }
            }
        } // next j
        return -1; // EOF
    };

    __SinkParser.prototype.variable = function (str, i, res) {
        /*
        ?abc -> variable(:abc)
        */

        var j = this.skipSpace(str, i);
        if (j < 0) {
            return -1;
        }
        if (pyjslib_slice(str, j, j + 1) != "?") {
            return -1;
        }
        var j = j + 1;
        var i = j;
        if ("0123456789-".indexOf(str.charAt(j)) >= 0) {
            throw BadSyntax(this._thisDoc, this.lines, str, j, "Varible name can't start with '" + str.charAt(j) + "s'");
            return -1;
        }
        while (i < pyjslib_len(str) && _notNameChars.indexOf(str.charAt(i)) < 0) {
            var i = i + 1;
        }
        if (this._parentContext == null) {
            throw BadSyntax(this._thisDoc, this.lines, str, j, "Can't use ?xxx syntax for variable in outermost level: " + pyjslib_slice(str, j - 1, i));
        }
        res.push(this._store.variable(pyjslib_slice(str, j, i)));
        return i;
    };
    __SinkParser.prototype.bareWord = function (str, i, res) {
        /*
        abc -> :abc
        */

        var j = this.skipSpace(str, i);
        if (j < 0) {
            return -1;
        }
        var ch = str.charAt(j);
        if ("0123456789-".indexOf(ch) >= 0) {
            return -1;
        }
        if (_notNameChars.indexOf(ch) >= 0) {
            return -1;
        }
        var i = j;
        while (i < pyjslib_len(str) && _notNameChars.indexOf(str.charAt(i)) < 0) {
            var i = i + 1;
        }
        res.push(pyjslib_slice(str, j, i));
        return i;
    };
    __SinkParser.prototype.qname = function (str, i, res) {
        /*
         xyz:def -> ('xyz', 'def')
        If not in keywords and keywordsSet: def -> ('', 'def')
        :def -> ('', 'def')
        */

        var i = this.skipSpace(str, i);
        if (i < 0) {
            return -1;
        }
        var c = str.charAt(i);
        if ("0123456789-+".indexOf(c) >= 0) {
            return -1;
        }
        if (_notNameChars.indexOf(c) < 0) {
            var ln = c;
            var i = i + 1;
            while (i < pyjslib_len(str)) {
                var c = str.charAt(i);
                if (_notNameChars.indexOf(c) < 0) {
                    var ln = ln + c;
                    var i = i + 1;
                } else {
                    break;
                }
            }
        } else {
            var ln = "";
        }
        if (i < pyjslib_len(str) && str.charAt(i) == ":") {
            var pfx = ln;
            var i = i + 1;
            var ln = "";
            while (i < pyjslib_len(str)) {
                var c = str.charAt(i);
                if (_notNameChars.indexOf(c) < 0) {
                    var ln = ln + c;
                    var i = i + 1;
                } else {
                    break;
                }
            }
            res.push(new pyjslib_Tuple([pfx, ln]));
            return i;
        } else {
            if (ln && this.keywordsSet && ArrayIndexOf(this.keywords, ln) < 0) {
                res.push(new pyjslib_Tuple(["", ln]));
                return i;
            }
            return -1;
        }
    };
    __SinkParser.prototype.object = function (str, i, res) {
        var j = this.subject(str, i, res);
        if (j >= 0) {
            return j;
        } else {
            var j = this.skipSpace(str, i);
            if (j < 0) {
                return -1;
            } else {
                var i = j;
            }
            if (str.charAt(i) == "\"") {
                if (pyjslib_slice(str, i, i + 3) == "\"\"\"") {
                    var delim = "\"\"\"";
                } else {
                    var delim = "\"";
                }
                var i = i + pyjslib_len(delim);
                var pairFudge = this.strconst(str, i, delim);
                var j = pairFudge[0];
                var s = pairFudge[1];
                res.push(this._store.literal(s));
                diag_progress("New string const ", s, j);
                return j;
            } else {
                return -1;
            }
        }
    };
    __SinkParser.prototype.nodeOrLiteral = function (str, i, res) {
        var j = this.node(str, i, res);
        if (j >= 0) {
            return j;
        } else {
            var j = this.skipSpace(str, i);
            if (j < 0) {
                return -1;
            } else {
                var i = j;
            }
            var ch = str.charAt(i);
            if ("-+0987654321".indexOf(ch) >= 0) {

                datetime_syntax.lastIndex = 0;
                var m = datetime_syntax.exec(str.slice(i));
                if (m != null) {
                    // j =  ( i + datetime_syntax.lastIndex ) ;
                    var val = m[0];
                    j = i + val.length;
                    if (val.indexOf("T") >= 0) {
                        res.push(this._store.literal(val, undefined, this._store.sym(DATETIME_DATATYPE)));
                    } else {
                        res.push(this._store.literal(val, undefined, this._store.sym(DATE_DATATYPE)));
                    }
                } else {
                    number_syntax.lastIndex = 0;
                    var m = number_syntax.exec(str.slice(i));
                    if (m == null) {
                        throw BadSyntax(this._thisDoc, this.lines, str, i, "Bad number or date syntax");
                    }
                    j = i + number_syntax.lastIndex;
                    var val = pyjslib_slice(str, i, j);
                    if (val.indexOf("e") >= 0) {
                        res.push(this._store.literal(parseFloat(val), undefined, this._store.sym(FLOAT_DATATYPE)));
                    } else if (pyjslib_slice(str, i, j).indexOf(".") >= 0) {
                        res.push(this._store.literal(parseFloat(val), undefined, this._store.sym(DECIMAL_DATATYPE)));
                    } else {
                        res.push(this._store.literal(parseInt(val), undefined, this._store.sym(INTEGER_DATATYPE)));
                    }
                };
                return j; // Where we have got up to
            }
            if (str.charAt(i) == "\"") {
                if (pyjslib_slice(str, i, i + 3) == "\"\"\"") {
                    var delim = "\"\"\"";
                } else {
                    var delim = "\"";
                }
                var i = i + pyjslib_len(delim);
                var dt = null;
                var pairFudge = this.strconst(str, i, delim);
                var j = pairFudge[0];
                var s = pairFudge[1];
                var lang = null;
                if (pyjslib_slice(str, j, j + 1) == "@") {
                    langcode.lastIndex = 0;

                    var m = langcode.exec(str.slice(j + 1));
                    if (m == null) {
                        throw BadSyntax(this._thisDoc, startline, str, i, "Bad language code syntax on string literal, after @");
                    }
                    var i = langcode.lastIndex + j + 1;

                    var lang = pyjslib_slice(str, j + 1, i);
                    var j = i;
                }
                if (pyjslib_slice(str, j, j + 2) == "^^") {
                    var res2 = new pyjslib_List([]);
                    var j = this.uri_ref2(str, j + 2, res2);
                    var dt = res2[0];
                }
                res.push(this._store.literal(s, lang, dt));
                return j;
            } else {
                return -1;
            }
        }
    };
    __SinkParser.prototype.strconst = function (str, i, delim) {
        /*
        parse an N3 string constant delimited by delim.
        return index, val
        */

        var j = i;
        var ustr = "";
        var startline = this.lines;
        while (j < pyjslib_len(str)) {
            var i = j + pyjslib_len(delim);
            if (pyjslib_slice(str, j, i) == delim) {
                return new pyjslib_Tuple([i, ustr]);
            }
            if (str.charAt(j) == "\"") {
                var ustr = ustr + "\"";
                var j = j + 1;
                continue;
            }
            interesting.lastIndex = 0;
            var m = interesting.exec(str.slice(j));
            if (!m) {
                throw BadSyntax(this._thisDoc, startline, str, j, "Closing quote missing in string at ^ in " + pyjslib_slice(str, j - 20, j) + "^" + pyjslib_slice(str, j, j + 20));
            }
            var i = j + interesting.lastIndex - 1;
            var ustr = ustr + pyjslib_slice(str, j, i);
            var ch = str.charAt(i);
            if (ch == "\"") {
                var j = i;
                continue;
            } else if (ch == "\r") {
                var j = i + 1;
                continue;
            } else if (ch == "\n") {
                if (delim == "\"") {
                    throw BadSyntax(this._thisDoc, startline, str, i, "newline found in string literal");
                }
                this.lines = this.lines + 1;
                var ustr = ustr + ch;
                var j = i + 1;
                this.previousLine = this.startOfLine;
                this.startOfLine = j;
            } else if (ch == "\\") {
                var j = i + 1;
                var ch = pyjslib_slice(str, j, j + 1);
                if (!ch) {
                    throw BadSyntax(this._thisDoc, startline, str, i, "unterminated string literal (2)");
                }
                var k = string_find("abfrtvn\\\"", ch);
                if (k >= 0) {
                    var uch = "\a\b\f\r\t\v\n\\\"".charAt(k);
                    var ustr = ustr + uch;
                    var j = j + 1;
                } else if (ch == "u") {
                    var pairFudge = this.uEscape(str, j + 1, startline);
                    var j = pairFudge[0];
                    var ch = pairFudge[1];
                    var ustr = ustr + ch;
                } else if (ch == "U") {
                    var pairFudge = this.UEscape(str, j + 1, startline);
                    var j = pairFudge[0];
                    var ch = pairFudge[1];
                    var ustr = ustr + ch;
                } else {
                    throw BadSyntax(this._thisDoc, this.lines, str, i, "bad escape");
                }
            }
        }
        throw BadSyntax(this._thisDoc, this.lines, str, i, "unterminated string literal");
    };
    __SinkParser.prototype.uEscape = function (str, i, startline) {
        var j = i;
        var count = 0;
        var value = 0;
        while (count < 4) {
            var chFudge = pyjslib_slice(str, j, j + 1);
            var ch = chFudge.toLowerCase();
            var j = j + 1;
            if (ch == "") {
                throw BadSyntax(this._thisDoc, startline, str, i, "unterminated string literal(3)");
            }
            var k = string_find("0123456789abcdef", ch);
            if (k < 0) {
                throw BadSyntax(this._thisDoc, startline, str, i, "bad string literal hex escape");
            }
            var value = value * 16 + k;
            var count = count + 1;
        }
        var uch = String.fromCharCode(value);
        return new pyjslib_Tuple([j, uch]);
    };
    __SinkParser.prototype.UEscape = function (str, i, startline) {
        var j = i;
        var count = 0;
        var value = '\\U';
        while (count < 8) {
            var chFudge = pyjslib_slice(str, j, j + 1);
            var ch = chFudge.toLowerCase();
            var j = j + 1;
            if (ch == "") {
                throw BadSyntax(this._thisDoc, startline, str, i, "unterminated string literal(3)");
            }
            var k = string_find("0123456789abcdef", ch);
            if (k < 0) {
                throw BadSyntax(this._thisDoc, startline, str, i, "bad string literal hex escape");
            }
            var value = value + ch;
            var count = count + 1;
        }
        var uch = stringFromCharCode("0x" + pyjslib_slice(value, 2, 10) - 0);
        return new pyjslib_Tuple([j, uch]);
    };
    function OLD_BadSyntax(uri, lines, str, i, why) {
        return new __OLD_BadSyntax(uri, lines, str, i, why);
    }
    function __OLD_BadSyntax(uri, lines, str, i, why) {
        this._str = str.encode("utf-8");
        this._str = str;
        this._i = i;
        this._why = why;
        this.lines = lines;
        this._uri = uri;
    }
    __OLD_BadSyntax.prototype.toString = function () {
        var str = this._str;
        var i = this._i;
        var st = 0;
        if (i > 60) {
            var pre = "...";
            var st = i - 60;
        } else {
            var pre = "";
        }
        if (pyjslib_len(str) - i > 60) {
            var post = "...";
        } else {
            var post = "";
        }
        return "Line %i of <%s>: Bad syntax (%s) at ^ in:\n\"%s%s^%s%s\"" % new pyjslib_Tuple([this.lines + 1, this._uri, this._why, pre, pyjslib_slice(str, st, i), pyjslib_slice(str, i, i + 60), post]);
    };
    function BadSyntax(uri, lines, str, i, why) {
        return "Line " + (lines + 1) + " of <" + uri + ">: Bad syntax: " + why + "\nat: \"" + pyjslib_slice(str, i, i + 30) + "\"";
    }

    function stripCR(str) {
        var res = "";

        var __ch = new pyjslib_Iterator(str);
        try {
            while (true) {
                var ch = __ch.next();

                if (ch != "\r") {
                    var res = res + ch;
                }
            }
        } catch (e) {
            if (e != StopIteration) {
                throw e;
            }
        }

        return res;
    }

    function dummyWrite(x) {}

    return SinkParser;
}();

module.exports = N3Parser;
},{"./uri":64,"./util":65}],49:[function(_dereq_,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"); } }

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; }

var ClassOrder = _dereq_('./class-order');
var Node = _dereq_('./node');

/**
 * @class NamedNode
 * @extends Node
 */

var NamedNode = function (_Node) {
  _inherits(NamedNode, _Node);

  /**
   * @constructor
   * @param iri {String}
   */
  function NamedNode(iri) {
    _classCallCheck(this, NamedNode);

    var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(NamedNode).call(this));

    _this.termType = NamedNode.termType;
    if (!iri.includes(':')) {
      throw new Error('NamedNode IRI "' + iri + '" must be absolute.');
    }
    if (iri.includes(' ')) {
      var message = 'Error: NamedNode IRI "' + iri + '" must not contain unencoded spaces.';
      throw new Error(message);
    }
    _this.value = iri;
    return _this;
  }
  /**
   * Returns an $rdf node for the containing directory, ending in slash.
   */


  _createClass(NamedNode, [{
    key: 'dir',
    value: function dir() {
      var str = this.uri.split('#')[0];
      var p = str.slice(0, -1).lastIndexOf('/');
      var q = str.indexOf('//');
      if (q >= 0 && p < q + 2 || p < 0) return null;
      return new NamedNode(str.slice(0, p + 1));
    }
    /**
     * Returns an NN for the whole web site, ending in slash.
     * Contrast with the "origin" which does NOT have a trailing slash
     */

  }, {
    key: 'site',
    value: function site() {
      var str = this.uri.split('#')[0];
      var p = str.indexOf('//');
      if (p < 0) throw new Error('This URI does not have a web site part (origin)');
      var q = str.indexOf('/', p + 2);
      if (q < 0) throw new Error('This URI does not have a web site part. (origin)');
      return new NamedNode(str.slice(0, q + 1));
    }
  }, {
    key: 'doc',
    value: function doc() {
      if (this.uri.indexOf('#') < 0) {
        return this;
      } else {
        return new NamedNode(this.uri.split('#')[0]);
      }
    }
  }, {
    key: 'toString',
    value: function toString() {
      return '<' + this.uri + '>';
    }

    /**
     * Legacy getter and setter alias, node.uri
     */

  }, {
    key: 'uri',
    get: function get() {
      return this.value;
    },
    set: function set(uri) {
      this.value = uri;
    }
  }], [{
    key: 'fromValue',
    value: function fromValue(value) {
      if (typeof value === 'undefined' || value === null) {
        return value;
      }
      var isNode = value && value.termType;
      if (isNode) {
        return value;
      }
      return new NamedNode(value);
    }
  }]);

  return NamedNode;
}(Node);

NamedNode.termType = 'NamedNode';
NamedNode.prototype.classOrder = ClassOrder['NamedNode'];
NamedNode.prototype.isVar = 0;

module.exports = NamedNode;
},{"./class-order":35,"./node":51}],50:[function(_dereq_,module,exports){
'use strict';

var NamedNode = _dereq_('./named-node');

function Namespace(nsuri) {
  return function (ln) {
    return new NamedNode(nsuri + (ln || ''));
  };
}

module.exports = Namespace;
},{"./named-node":49}],51:[function(_dereq_,module,exports){
'use strict';
/**
 * The superclass of all RDF Statement objects, that is
 * NamedNode, Literal, BlankNode, etc.
 * @class Node
 */

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 Node = function () {
  function Node() {
    _classCallCheck(this, Node);
  }

  _createClass(Node, [{
    key: 'substitute',
    value: function substitute(bindings) {
      console.log('@@@ node substitute' + this);
      return this;
    }
  }, {
    key: 'compareTerm',
    value: function compareTerm(other) {
      if (this.classOrder < other.classOrder) {
        return -1;
      }
      if (this.classOrder > other.classOrder) {
        return +1;
      }
      if (this.value < other.value) {
        return -1;
      }
      if (this.value > other.value) {
        return +1;
      }
      return 0;
    }
  }, {
    key: 'equals',
    value: function equals(other) {
      if (!other) {
        return false;
      }
      return this.termType === other.termType && this.value === other.value;
    }
  }, {
    key: 'hashString',
    value: function hashString() {
      return this.toCanonical();
    }
  }, {
    key: 'sameTerm',
    value: function sameTerm(other) {
      return this.equals(other);
    }
  }, {
    key: 'toCanonical',
    value: function toCanonical() {
      return this.toNT();
    }
  }, {
    key: 'toNT',
    value: function toNT() {
      return this.toString();
    }
  }, {
    key: 'toString',
    value: function toString() {
      throw new Error('Node.toString() is abstract - see the subclasses instead');
    }
  }]);

  return Node;
}();

module.exports = Node;

/**
 * Creates an RDF Node from a native javascript value.
 * RDF Nodes are returned unchanged, undefined returned as itself.
 * @method fromValue
 * @static
 * @param value {Node|Date|String|Number|Boolean|Undefined}
 * @return {Node|Collection}
 */
Node.fromValue = function fromValue(value) {
  var Collection = _dereq_('./collection');
  var Literal = _dereq_('./literal');
  var NamedNode = _dereq_('./named-node');
  if (typeof value === 'undefined' || value === null) {
    return value;
  }
  var isNode = value && value.termType;
  if (isNode) {
    // a Node subclass or a Collection
    return value;
  }
  if (Array.isArray(value)) {
    return new Collection(value);
  }
  return Literal.fromValue(value);
};
},{"./collection":36,"./literal":46,"./named-node":49}],52:[function(_dereq_,module,exports){
'use strict';

module.exports = parse;

var BlankNode = _dereq_('./blank-node');
var jsonld = _dereq_('jsonld');
var Literal = _dereq_('./literal');
var N3 = _dereq_('n3'); // @@ Goal: remove this dependency
var N3Parser = _dereq_('./n3parser');
var NamedNode = _dereq_('./named-node');
var parseRDFaDOM = _dereq_('./rdfaparser').parseRDFaDOM;
var RDFParser = _dereq_('./rdfxmlparser');
var sparqlUpdateParser = _dereq_('./patch-parser');
var Util = _dereq_('./util');

/**
 * Parse a string and put the result into the graph kb.
 * Normal method is sync.
 * Unfortunately jsdonld is currently written to need to be called async.
 * Hence the mess below with executeCallback.
 */
function parse(str, kb, base, contentType, callback) {
  contentType = contentType || 'text/turtle';
  try {
    if (contentType === 'text/n3' || contentType === 'text/turtle') {
      var p = N3Parser(kb, kb, base, base, null, null, '', null);
      p.loadBuf(str);
      executeCallback();
    } else if (contentType === 'application/rdf+xml') {
      var parser = new RDFParser(kb);
      parser.parse(Util.parseXML(str), base, kb.sym(base));
      executeCallback();
    } else if (contentType === 'application/xhtml+xml') {
      parseRDFaDOM(Util.parseXML(str, { contentType: 'application/xhtml+xml' }), kb, base);
      executeCallback();
    } else if (contentType === 'text/html') {
      parseRDFaDOM(Util.parseXML(str, { contentType: 'text/html' }), kb, base);
      executeCallback();
    } else if (contentType === 'application/sparql-update') {
      // @@ we handle a subset
      sparqlUpdateParser(str, kb, base);
      executeCallback();
    } else if (contentType === 'application/ld+json' || contentType === 'application/nquads' || contentType === 'application/n-quads') {
      var n3Parser = N3.Parser();
      var triples = [];
      if (contentType === 'application/ld+json') {
        var jsonDocument;
        try {
          jsonDocument = JSON.parse(str);
        } catch (parseErr) {
          callback(parseErr, null);
        }
        jsonld.toRDF(jsonDocument, { format: 'application/nquads' }, nquadCallback);
      } else {
        nquadCallback(null, str);
      }
    } else {
      throw new Error("Don't know how to parse " + contentType + ' yet');
    }
  } catch (e) {
    executeErrorCallback(e);
  }

  function executeCallback() {
    if (callback) {
      callback(null, kb);
    } else {
      return;
    }
  }

  function executeErrorCallback(e) {
    if (contentType !== 'application/ld+json' || contentType !== 'application/nquads' || contentType !== 'application/n-quads') {
      if (callback) {
        callback(e, kb);
      } else {
        throw new Error('Error trying to parse <' + base + '> as ' + contentType + ':\n' + e + ':\n' + e.stack);
      }
    }
  }
  /*
    function setJsonLdBase (doc, base) {
      if (doc instanceof Array) {
        return
      }
      if (!('@context' in doc)) {
        doc['@context'] = {}
      }
      doc['@context']['@base'] = base
    }
  */
  function nquadCallback(err, nquads) {
    if (err) {
      callback(err, kb);
    }
    try {
      n3Parser.parse(nquads, tripleCallback);
    } catch (err) {
      callback(err, kb);
    }
  }

  function tripleCallback(err, triple, prefixes) {
    if (err) {
      callback(err, kb);
    }
    if (triple) {
      triples.push(triple);
    } else {
      for (var i = 0; i < triples.length; i++) {
        addTriple(kb, triples[i]);
      }
      callback(null, kb);
    }
  }

  function addTriple(kb, triple) {
    var subject = createTerm(triple.subject);
    var predicate = createTerm(triple.predicate);
    var object = createTerm(triple.object);
    var why = null;
    if (triple.graph) {
      why = createTerm(triple.graph);
    }
    kb.add(subject, predicate, object, why);
  }

  function createTerm(termString) {
    var value;
    if (N3.Util.isLiteral(termString)) {
      value = N3.Util.getLiteralValue(termString);
      var language = N3.Util.getLiteralLanguage(termString);
      var datatype = new NamedNode(N3.Util.getLiteralType(termString));
      return new Literal(value, language, datatype);
    } else if (N3.Util.isIRI(termString)) {
      return new NamedNode(termString);
    } else if (N3.Util.isBlank(termString)) {
      value = termString.substring(2, termString.length);
      return new BlankNode(value);
    } else {
      return null;
    }
  }
}
},{"./blank-node":34,"./literal":46,"./n3parser":48,"./named-node":49,"./patch-parser":53,"./rdfaparser":56,"./rdfxmlparser":57,"./util":65,"jsonld":20,"n3":22}],53:[function(_dereq_,module,exports){
'use strict';

// Parse a simple SPARL-Update subset syntax for patches.
//
//  This parses
//   WHERE {xxx} DELETE {yyy} INSERT DATA {zzz}
// (not necessarily in that order)
// as though it were the n3
//   <#query> patch:where {xxx}; patch:delete {yyy}; patch:insert {zzz}.
module.exports = sparqlUpdateParser;

var N3Parser = _dereq_('./n3parser');
var Namespace = _dereq_('./namespace');

function sparqlUpdateParser(str, kb, base) {
  var i, j, k;
  var keywords = ['INSERT', 'DELETE', 'WHERE'];
  var SQNS = Namespace('http://www.w3.org/ns/pim/patch#');
  var p = N3Parser(kb, kb, base, base, null, null, '', null);
  var clauses = {};

  var badSyntax = function badSyntax(uri, lines, str, i, why) {
    return 'Line ' + (lines + 1) + ' of <' + uri + '>: Bad syntax:\n   ' + why + '\n   at: "' + str.slice(i, i + 30) + '"';
  };

  // var check = function (next, last, message) {
  //   if (next < 0) {
  //     throw badSyntax(p._thisDoc, p.lines, str, j, last, message)
  //   }
  //   return next
  // }
  i = 0;
  var query = kb.sym(base + '#query'); // Invent a URI for the query
  clauses['query'] = query; // A way of accessing it in its N3 model.

  while (true) {
    // console.log("A Now at i = " + i)
    j = p.skipSpace(str, i);
    if (j < 0) {
      return clauses;
    }
    // console.log("B After space at j= " + j)
    if (str[j] === ';') {
      i = p.skipSpace(str, j + 1);
      if (i < 0) {
        return clauses; // Allow end in a
      }
      j = i;
    }
    var found = false;
    for (k = 0; k < keywords.length; k++) {
      var key = keywords[k];
      if (str.slice(j, j + key.length) === key) {
        i = p.skipSpace(str, j + key.length);
        if (i < 0) {
          throw badSyntax(p._thisDoc, p.lines, str, j + key.length, 'found EOF, needed {...} after ' + key);
        }
        if ((key === 'INSERT' || key === 'DELETE') && str.slice(i, i + 4) === 'DATA') {
          // Some wanted 'DATA'. Whatever
          j = p.skipSpace(str, i + 4);
          if (j < 0) {
            throw badSyntax(p._thisDoc, p.lines, str, i + 4, 'needed {...} after INSERT DATA ' + key);
          }
          i = j;
        }
        var res2 = [];
        j = p.node(str, i, res2); // Parse all the complexity of the clause

        if (j < 0) {
          throw badSyntax(p._thisDoc, p.lines, str, i, 'bad syntax or EOF in {...} after ' + key);
        }
        clauses[key.toLowerCase()] = res2[0];
        kb.add(query, SQNS(key.toLowerCase()), res2[0]); // , kb.sym(base)
        // key is the keyword and res2 has the contents
        found = true;
        i = j;
      }
    }
    if (!found && str.slice(j, j + 7) === '@prefix') {
      i = p.directive(str, j);
      if (i < 0) {
        throw badSyntax(p._thisDoc, p.lines, str, i, 'bad syntax or EOF after @prefix ');
      }
      // console.log("P before dot i= " + i)
      i = p.checkDot(str, i);
      // console.log("Q after dot i= " + i)
      found = true;
    }
    if (!found) {
      // console.log("Bad syntax " + j)
      throw badSyntax(p._thisDoc, p.lines, str, j, "Unknown syntax at start of statememt: '" + str.slice(j).slice(0, 20) + "'");
    }
  } // while
  // return clauses
}
},{"./n3parser":48,"./namespace":50}],54:[function(_dereq_,module,exports){
'use strict';

var log = _dereq_('./log');

function queryToSPARQL(query) {
  var indent = 0;
  function getSelect(query) {
    var str = addIndent() + 'SELECT ';
    for (var i = 0; i < query.vars.length; i++) {
      str += query.vars[i] + ' ';
    }
    str += '\n';
    return str;
  }

  function getPattern(pat) {
    var str = '';
    var st = pat.statements;
    for (var x in st) {
      log.debug('Found statement: ' + st);
      str += addIndent() + st[x] + '\n';
    }
    return str;
  }

  function getConstraints(pat) {
    var str = '';
    for (var v in pat.constraints) {
      var foo = pat.constraints[v];
      str += addIndent() + 'FILTER ( ' + foo.describe(v) + ' ) ' + '\n';
    }
    return str;
  }

  function getOptionals(pat) {
    var str = '';
    for (var x = 0; x < pat.optional.length; x++) {
      // alert(pat.optional.termType)
      log.debug('Found optional query');
      str += addIndent() + 'OPTIONAL { ' + '\n';
      indent++;
      str += getPattern(pat.optional[x]);
      str += getConstraints(pat.optional[x]);
      str += getOptionals(pat.optional[x]);
      indent--;
      str += addIndent() + '}' + '\n';
    }
    return str;
  }

  function getWhere(pat) {
    var str = addIndent() + 'WHERE \n' + '{ \n';
    indent++;
    str += getPattern(pat);
    str += getConstraints(pat);
    str += getOptionals(pat);
    indent--;
    str += '}';
    return str;
  }

  function addIndent() {
    var str = '';
    for (var i = 0; i < indent; i++) {
      str += '    ';
    }
    return str;
  }

  function getSPARQL(query) {
    return getSelect(query) + getWhere(query.pat);
  }

  return getSPARQL(query);
}

module.exports = queryToSPARQL;
},{"./log":47}],55:[function(_dereq_,module,exports){
'use strict';

var _indexedFormula = _dereq_('./indexed-formula');

var _indexedFormula2 = _interopRequireDefault(_indexedFormula);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } // Matching a formula against another formula
// Assync as well as Synchronously
//
// W3C open source licence 2005.
//
// This builds on term.js, match.js (and identity.js?)
// to allow a query of a formula.
//
// Here we introduce for the first time a subclass of term: variable.
//
// SVN ID: $Id: query.js 25116 2008-11-15 16:13:48Z timbl $

//  Variable
//
// Compare with BlankNode.  They are similar, but a variable
// stands for something whose value is to be returned.
// Also, users name variables and want the same name back when stuff is printed
/* jsl:option explicit*/ // Turn on JavaScriptLint variable declaration checking

var log = _dereq_('./log');
var docpart = _dereq_('./uri').docpart;

/**
 * Query class, for tracking queries the user has in the UI.
 */

var Query = function Query(name, id) {
  _classCallCheck(this, Query);

  this.pat = new _indexedFormula2.default(); // The pattern to search for
  this.vars = []; // Used by UI code but not in query.js
  //    this.orderBy = [] // Not used yet
  this.name = name;
  this.id = id;
};

/**
 * This function will match a pattern to the current kb
 *
 * The callback function is called whenever a match is found
 * When fetcher is supplied this will be called to satisfy any resource requests
 * currently not in the kb. The fetcher function needs to be defined manualy and
 * should call $rdf.Util.AJAR_handleNewTerm to process the requested resource.
 *
 * @param	myQuery,	a knowledgebase containing a pattern to use as query
 * @param	callback, 	whenever the pattern in myQuery is met this is called with
 * 						the new bindings as parameter
 * @param	fetcher,	whenever a resource needs to be loaded this gets called  IGNORED OBSOLETE
 *                              f.fetecher is used as a Fetcher instance to do this.
 * @param       onDone          callback when
 */


function indexedFormulaQuery(myQuery, callback, fetcher, onDone) {
  // var kb = this
  // /////////// Debug strings
  var bindingDebug = function bindingDebug(b) {
    var str = '';
    var v;
    for (v in b) {
      if (b.hasOwnProperty(v)) {
        str += '    ' + v + ' -> ' + b[v];
      }
    }
    return str;
  };

  var bindingsDebug = function bindingsDebug(nbs) {
    var str = 'Bindings: ';
    var i;
    var n = nbs.length;
    for (i = 0; i < n; i++) {
      str += bindingDebug(nbs[i][0]) + ';\n\t';
    }
    return str;
  }; // bindingsDebug

  // Unification: see also
  //  http://www.w3.org/2000/10/swap/term.py
  // for similar things in python
  //
  // Unification finds all bindings such that when the binding is applied
  // to one term it is equal to the other.
  // Returns: a list of bindings, where a binding is an associative array
  //  mapping variuable to value.

  var unifyTerm = function unifyTerm(self, other, bindings, formula) {
    var actual = bindings[self];
    if (actual === undefined) {
      // Not mapped
      if (self.isVar) {
        /* if (self.isBlank)  //bnodes are existential variables
        {
                if (self.toString() == other.toString()) return [[ [], null]]
                else return []
        }*/
        var b = [];
        b[self] = other;
        return [[b, null]]; // Match
      }
      actual = self;
    }
    if (!actual.complexType) {
      if (formula.redirections[actual]) {
        actual = formula.redirections[actual];
      }
      if (formula.redirections[other]) {
        other = formula.redirections[other];
      }
      if (actual.sameTerm(other)) {
        return [[[], null]];
      }
      return [];
    }
    if (self instanceof Array) {
      if (!(other instanceof Array)) {
        return [];
      }
      return unifyContents(self, other, bindings);
    }
    throw new Error('query.js: oops - code not written yet');
    // return undefined;  // for lint - no jslint objects to unreachables
    //    return actual.unifyContents(other, bindings)
  }; // unifyTerm

  var unifyContents = function unifyContents(self, other, bindings, formula) {
    var nbs2;
    if (self.length !== other.length) {
      return []; // no way
    }
    if (!self.length) {
      return [[[], null]]; // Success
    }
    var nbs = unifyTerm(self[0], other[0], bindings, formula);
    if (nbs.length === 0) {
      return nbs;
    }
    var res = [];
    var i;
    var n = nbs.length;
    var nb;
    var j;
    var m;
    var v;
    var nb2;
    var bindings2;
    for (i = 0; i < n; i++) {
      // for each possibility from the first term
      nb = nbs[i][0]; // new bindings
      bindings2 = [];
      for (v in nb) {
        if (nb.hasOwnProperty(v)) {
          bindings2[v] = nb[v]; // copy
        }
      }
      for (v in bindings) {
        if (bindings.hasOwnProperty(v)) {
          bindings2[v] = bindings[v]; // copy
        }
      }
      nbs2 = unifyContents(self.slice(1), other.slice(1), bindings2, formula);
      m = nbs2.length;
      for (j = 0; j < m; j++) {
        nb2 = nbs2[j][0]; // @@@@ no idea whether this is used or right
        for (v in nb) {
          if (nb.hasOwnProperty(v)) {
            nb2[v] = nb[v];
          }
        }
        res.push([nb2, null]);
      }
    }
    return res;
  }; // unifyContents

  //  Matching
  //
  // Matching finds all bindings such that when the binding is applied
  // to one term it is equal to the other term.  We only match formulae.

  /** if x is not in the bindings array, return the var; otherwise, return the bindings **/
  var bind = function bind(x, binding) {
    var y = binding[x];
    if (y === undefined) {
      return x;
    }
    return y;
  };

  // When there are OPTIONAL clauses, we must return bindings without them if none of them
  // succeed. However, if any of them do succeed, we should not.  (This is what branchCount()
  // tracked. The problem currently is (2011/7) that when several optionals exist, and they
  // all match, multiple sets of bindings are returned, each with one optional filled in.)

  var union = function union(a, b) {
    var c = {};
    var x;
    for (x in a) {
      if (a.hasOwnProperty(x)) {
        c[x] = a[x];
      }
    }
    for (x in b) {
      if (b.hasOwnProperty(x)) {
        c[x] = b[x];
      }
    }
    return c;
  };

  var OptionalBranchJunction = function OptionalBranchJunction(originalCallback, trunkBindings) {
    this.trunkBindings = trunkBindings;
    this.originalCallback = originalCallback;
    this.branches = [];
    // this.results = []; // result[i] is an array of bindings for branch i
    // this.done = {};  // done[i] means all/any results are in for branch i
    // this.count = {}
    return this;
  };

  OptionalBranchJunction.prototype.checkAllDone = function () {
    var i;
    for (i = 0; i < this.branches.length; i++) {
      if (!this.branches[i].done) {
        return;
      }
    }
    log.debug('OPTIONAL BIDNINGS ALL DONE:');
    this.doCallBacks(this.branches.length - 1, this.trunkBindings);
  };
  // Recrursively generate the cross product of the bindings
  OptionalBranchJunction.prototype.doCallBacks = function (b, bindings) {
    var j;
    if (b < 0) {
      return this.originalCallback(bindings);
    }
    for (j = 0; j < this.branches[b].results.length; j++) {
      this.doCallBacks(b - 1, union(bindings, this.branches[b].results[j]));
    }
  };

  // A mandatory branch is the normal one, where callbacks
  // are made immediately and no junction is needed.
  // Might be useful for onFinsihed callback for query API.
  var MandatoryBranch = function MandatoryBranch(callback, onDone) {
    this.count = 0;
    this.success = false;
    this.done = false;
    // this.results = []
    this.callback = callback;
    this.onDone = onDone;
    // this.junction = junction
    // junction.branches.push(this)
    return this;
  };

  MandatoryBranch.prototype.reportMatch = function (bindings) {
    // log.error("@@@@ query.js 1"); // @@
    this.callback(bindings);
    this.success = true;
  };

  MandatoryBranch.prototype.reportDone = function () {
    this.done = true;
    log.info('Mandatory query branch finished.***');
    if (this.onDone !== undefined) {
      this.onDone();
    }
  };

  // An optional branch hoards its results.
  var OptionalBranch = function OptionalBranch(junction) {
    this.count = 0;
    this.done = false;
    this.results = [];
    this.junction = junction;
    junction.branches.push(this);
    return this;
  };

  OptionalBranch.prototype.reportMatch = function (bindings) {
    this.results.push(bindings);
  };

  OptionalBranch.prototype.reportDone = function () {
    log.debug('Optional branch finished - results.length = ' + this.results.length);
    if (this.results.length === 0) {
      // This is what optional means: if no hits,
      this.results.push({}); // mimic success, but with no bindings
      log.debug("Optional branch FAILED - that's OK.");
    }
    this.done = true;
    this.junction.checkAllDone();
  };

  /** prepare -- sets the index of the item to the possible matches
      * @param f - formula
      * @param item - an Statement, possibly w/ vars in it
      * @param bindings -
  * @returns true if the query fails -- there are no items that match **/
  var prepare = function prepare(f, item, bindings) {
    var t, terms, termIndex, i, ind;
    item.nvars = 0;
    item.index = null;
    // if (!f.statements) log.warn("@@@ prepare: f is "+f)
    //    log.debug("Prepare: f has "+ f.statements.length)
    // log.debug("Prepare: Kb size "+f.statements.length+" Preparing "+item)

    terms = [item.subject, item.predicate, item.object];
    ind = [f.subjectIndex, f.predicateIndex, f.objectIndex];
    for (i = 0; i < 3; i++) {
      // alert("Prepare "+terms[i]+" "+(terms[i] in bindings))
      if (terms[i].isVar && !(bindings[terms[i]] !== undefined)) {
        item.nvars++;
      } else {
        t = bind(terms[i], bindings); // returns the RDF binding if bound, otherwise itself
        // if (terms[i]!=bind(terms[i],bindings) alert("Term: "+terms[i]+"Binding: "+bind(terms[i], bindings))
        if (f.redirections[t.hashString()]) {
          t = f.redirections[t.hashString()]; // redirect
        }
        termIndex = ind[i][t.hashString()];

        if (!termIndex) {
          item.index = [];
          return false; // Query line cannot match
        }
        if (item.index === null || item.index.length > termIndex.length) {
          item.index = termIndex;
        }
      }
    }

    if (item.index === null) {
      // All 3 are variables?
      item.index = f.statements;
    }
    return true;
  }; // prepare

  /** sorting function -- negative if self is easier **/
  // We always prefer to start with a URI to be able to browse a graph
  // this is why we put off items with more variables till later.
  function easiestQuery(self, other) {
    if (self.nvars !== other.nvars) {
      return self.nvars - other.nvars;
    }
    return self.index.length - other.index.length;
  }

  var match_index = 0; // index
  /** matches a pattern formula against the knowledge base, e.g. to find matches for table-view
  *
  * @param f - knowledge base formula
  * @param g - pattern formula (may have vars)
  * @param bindingsSoFar  - bindings accumulated in matching to date
  * @param level - spaces to indent stuff also lets you know what level of recursion you're at
  * @param fetcher - function (term, requestedBy) - myFetcher / AJAR_handleNewTerm / the sort
  * @param localCallback - function(bindings, pattern, branch) called on sucess
  * @returns nothing
  *
  * Will fetch linked data from the web iff the knowledge base an associated source fetcher (f.fetcher)
  ***/
  var match = function match(f, g, bindingsSoFar, level, fetcher, localCallback, branch) {
    log.debug('Match begins, Branch count now: ' + branch.count + ' for ' + branch.pattern_debug);
    var sf = f.fetcher ? f.fetcher : null;
    // log.debug("match: f has "+f.statements.length+", g has "+g.statements.length)
    var pattern = g.statements;
    if (pattern.length === 0) {
      // when it's satisfied all the pattern triples
      log.debug('FOUND MATCH WITH BINDINGS:' + bindingDebug(bindingsSoFar));
      if (g.optional.length === 0) {
        branch.reportMatch(bindingsSoFar);
      } else {
        log.debug('OPTIONAL: ' + g.optional);
        var junction = new OptionalBranchJunction(callback, bindingsSoFar); // @@ won't work with nested optionals? nest callbacks
        var br = [];
        var b;
        for (b = 0; b < g.optional.length; b++) {
          br[b] = new OptionalBranch(junction); // Allocate branches to prevent premature ending
          br[b].pattern_debug = g.optional[b]; // for diagnotics only
        }
        for (b = 0; b < g.optional.length; b++) {
          br[b].count = br[b].count + 1; // Count how many matches we have yet to complete
          match(f, g.optional[b], bindingsSoFar, '', fetcher, callback, br[b]);
        }
      }
      branch.count--;
      log.debug('Match ends -- success , Branch count now: ' + branch.count + ' for ' + branch.pattern_debug);
      return; // Success
    }

    var item;
    var i;
    var n = pattern.length;
    // log.debug(level + "Match "+n+" left, bs so far:"+bindingDebug(bindingsSoFar))

    // Follow links from variables in query
    if (sf) {
      // Fetcher is used to fetch URIs, function first term is a URI term, second is the requester
      var id = 'match' + match_index++;
      var fetchResource = function fetchResource(requestedTerm, id) {
        var docuri = requestedTerm.uri.split('#')[0];
        sf.nowOrWhenFetched(docuri, undefined, function (err, body, xhr) {
          if (err) {
            console.log('Error following link to <' + requestedTerm.uri + '> in query: ' + body);
          }
          match(f, g, bindingsSoFar, level, fetcher, // match not match2 to look up any others necessary.
          localCallback, branch);
        });
        /*
        if( sf ) {
            sf.addCallback('done', function(uri) {
                if ((kb.canon(kb.sym(uri)).uri !== path) && (uri !== kb.canon(kb.sym(path)))) {
                    return true
                }
                return false
            })
        }
        fetcher(requestedTerm, id)
        */
      };
      for (i = 0; i < n; i++) {
        item = pattern[i]; // for each of the triples in the query
        if (bindingsSoFar[item.subject] !== undefined && bindingsSoFar[item.subject].uri && sf && sf.getState(docpart(bindingsSoFar[item.subject].uri)) === 'unrequested') {
          // fetch the subject info and return to id
          fetchResource(bindingsSoFar[item.subject], id);
          return; // only look up one per line this time, but we will come back again though match
        }
        if (bindingsSoFar[item.object] !== undefined && bindingsSoFar[item.object].uri && sf && sf.getState(docpart(bindingsSoFar[item.object].uri)) === 'unrequested') {
          fetchResource(bindingsSoFar[item.object], id);
          return;
        }
      }
    } // if sf
    match2(f, g, bindingsSoFar, level, fetcher, localCallback, branch);
    return;
  }; // match

  var constraintsSatisfied = function constraintsSatisfied(bindings, constraints) {
    var res = true;
    var x;
    var test;
    for (x in bindings) {
      if (bindings.hasOwnProperty(x)) {
        if (constraints[x]) {
          test = constraints[x].test;
          if (test && !test(bindings[x])) {
            res = false;
          }
        }
      }
    }
    return res;
  };

  /** match2 -- stuff after the fetch **/
  var match2 = function match2(f, g, bindingsSoFar, level, fetcher, callback, branch) {
    // post fetch
    var pattern = g.statements;
    var n = pattern.length;
    var i;
    var k;
    var nk;
    var v;
    var bindings2;
    var newBindings1;
    var item;
    for (i = 0; i < n; i++) {
      // For each statement left in the query, run prepare
      item = pattern[i];
      log.info('match2: item=' + item + ', bindingsSoFar=' + bindingDebug(bindingsSoFar));
      prepare(f, item, bindingsSoFar);
    }
    pattern.sort(easiestQuery);
    item = pattern[0];
    // log.debug("Sorted pattern:\n"+pattern)
    var rest = f.formula();
    rest.optional = g.optional;
    rest.constraints = g.constraints;
    rest.statements = pattern.slice(1); // No indexes: we will not query g.
    log.debug(level + 'match2 searching ' + item.index.length + ' for ' + item + '; bindings so far=' + bindingDebug(bindingsSoFar));
    // var results = []
    var c;
    var nc = item.index.length;
    var nbs1;
    var st;
    var onward = 0;
    // var x
    for (c = 0; c < nc; c++) {
      // For each candidate statement
      st = item.index[c]; // for each statement in the item's index, spawn a new match with that binding
      nbs1 = unifyContents([item.subject, item.predicate, item.object], [st.subject, st.predicate, st.object], bindingsSoFar, f);
      log.info(level + ' From first: ' + nbs1.length + ': ' + bindingsDebug(nbs1));
      nk = nbs1.length;
      // branch.count += nk
      // log.debug("Branch count bumped "+nk+" to: "+branch.count)
      for (k = 0; k < nk; k++) {
        // For each way that statement binds
        bindings2 = [];
        newBindings1 = nbs1[k][0];
        if (!constraintsSatisfied(newBindings1, g.constraints)) {
          // branch.count--
          log.debug('Branch count CS: ' + branch.count);
        } else {
          for (v in newBindings1) {
            if (newBindings1.hasOwnProperty(v)) {
              bindings2[v] = newBindings1[v]; // copy
            }
          }
          for (v in bindingsSoFar) {
            if (bindingsSoFar.hasOwnProperty(v)) {
              bindings2[v] = bindingsSoFar[v]; // copy
            }
          }

          branch.count++; // Count how many matches we have yet to complete
          onward++;
          match(f, rest, bindings2, level + '  ', fetcher, callback, branch); // call match
        }
      }
    }
    branch.count--;
    if (onward === 0) {
      log.debug('Match2 fails completely on ' + item);
    }
    log.debug('Match2 ends, Branch count: ' + branch.count + ' for ' + branch.pattern_debug);
    if (branch.count === 0) {
      log.debug('Branch finished.');
      branch.reportDone();
    }
  }; // match2
  // ////////////////////////// Body of query()  ///////////////////////
  /*
  if(!fetcher) {
      fetcher=function (x, requestedBy) {
          if (x === null) {
              return
          }
          $rdf.Util.AJAR_handleNewTerm(kb, x, requestedBy)
      }
  }
  */
  // prepare, oncallback: match1
  // match1: fetcher, oncallback: match2
  // match2, oncallback: populatetable
  //    log.debug("Query F length"+this.statements.length+" G="+myQuery)
  var f = this;
  log.debug('Query on ' + this.statements.length);
  // kb.remoteQuery(myQuery,'http://jena.hpl.hp.com:3040/backstage',callback)
  // return
  var trunck = new MandatoryBranch(callback, onDone);
  trunck.count++; // count one branch to complete at the moment
  setTimeout(function () {
    match(f, myQuery.pat, myQuery.pat.initBindings, '', fetcher, callback, trunck /* branch */);
  }, 0);

  return; // returns nothing; callback does the work
} // query

module.exports.Query = Query;
module.exports.indexedFormulaQuery = indexedFormulaQuery;
},{"./indexed-formula":44,"./log":47,"./uri":64}],56:[function(_dereq_,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"); } }

//  RDFa Parser for rdflib.js

// Originally by: Alex Milowski
// From https://github.com/alexmilowski/green-turtle
// Converted: timbl 2015-08-25 not yet working
// Added wrapper: csarven 2016-05-09 working

// RDFaProcessor.prototype = new Object() // Was URIResolver

// RDFaProcessor.prototype.constructor=RDFaProcessor

// options.base = base URI    not really an option, shopuld always be set.
//

var BlankNode = _dereq_('./blank-node');
var Literal = _dereq_('./literal');
var rdf = _dereq_('./data-factory');
var NamedNode = _dereq_('./named-node');
var Uri = _dereq_('./uri');
var Util = _dereq_('./util');

if (typeof Node === 'undefined') {
  //  @@@@@@ Global. Interface to xmldom.
  var Node = {
    ELEMENT_NODE: 1,
    ATTRIBUTE_NODE: 2,
    TEXT_NODE: 3,
    CDATA_SECTION_NODE: 4,
    ENTITY_REFERENCE_NODE: 5,
    ENTITY_NODE: 6,
    PROCESSING_INSTRUCTION_NODE: 7,
    COMMENT_NODE: 8,
    DOCUMENT_NODE: 9,
    DOCUMENT_TYPE_NODE: 10,
    DOCUMENT_FRAGMENT_NODE: 11,
    NOTATION_NODE: 12
  };
}

var RDFaProcessor = function () {
  function RDFaProcessor(kb, options) {
    _classCallCheck(this, RDFaProcessor);

    this.options = options || {};
    this.kb = kb;
    this.target = options.target || {
      graph: {
        subjects: {},
        prefixes: {},
        terms: {}
      }
    };
    // XXX: Added to track bnodes
    this.blankNodes = [];
    // XXX: Added for normalisation
    this.htmlOptions = {
      'selfClosing': 'br img input area base basefont col colgroup source wbr isindex link meta param hr'
    };
    this.theOne = '_:' + new Date().getTime();
    this.language = null;
    this.vocabulary = null;
    this.blankCounter = 0;
    this.langAttributes = [{ namespaceURI: 'http://www.w3.org/XML/1998/namespace', localName: 'lang' }];
    this.inXHTMLMode = false;
    this.absURIRE = /[\w\_\-]+:\S+/;
    this.finishedHandlers = [];
    this.init();
  }

  _createClass(RDFaProcessor, [{
    key: 'addTriple',
    value: function addTriple(origin, subject, predicate, object) {
      var su, ob, pr, or;
      if (typeof subject === 'undefined') {
        su = rdf.namedNode(this.options.base);
      } else {
        su = this.toRDFNodeObject(subject);
      }
      pr = this.toRDFNodeObject(predicate);
      ob = this.toRDFNodeObject(object);
      or = rdf.namedNode(this.options.base);
      // console.log('Adding { ' + su + ' ' + pr + ' ' + ob + ' ' + or + ' }')
      this.kb.add(su, pr, ob, or);
    }
  }, {
    key: 'ancestorPath',
    value: function ancestorPath(node) {
      var path = '';
      while (node && node.nodeType !== Node.DOCUMENT_NODE) {
        path = '/' + node.localName + path;
        node = node.parentNode;
      }
      return path;
    }
  }, {
    key: 'copyMappings',
    value: function copyMappings(mappings) {
      var newMappings = {};
      for (var k in mappings) {
        newMappings[k] = mappings[k];
      }
      return newMappings;
    }
  }, {
    key: 'copyProperties',
    value: function copyProperties() {}
  }, {
    key: 'deriveDateTimeType',
    value: function deriveDateTimeType(value) {
      for (var i = 0; i < RDFaProcessor.dateTimeTypes.length; i++) {
        // console.log("Checking "+value+" against "+RDFaProcessor.dateTimeTypes[i].type)
        var matched = RDFaProcessor.dateTimeTypes[i].pattern.exec(value);
        if (matched && matched[0].length === value.length) {
          // console.log("Matched!")
          return RDFaProcessor.dateTimeTypes[i].type;
        }
      }
      return null;
    }
  }, {
    key: 'init',
    value: function init() {}
  }, {
    key: 'newBlankNode',
    value: function newBlankNode() {
      this.blankCounter++;
      return '_:' + this.blankCounter;
    }
  }, {
    key: 'newSubjectOrigin',
    value: function newSubjectOrigin(origin, subject) {}
  }, {
    key: 'parseCURIE',
    value: function parseCURIE(value, prefixes, base) {
      var colon = value.indexOf(':');
      var uri;
      if (colon >= 0) {
        var prefix = value.substring(0, colon);
        if (prefix === '') {
          // default prefix
          uri = prefixes[''];
          return uri ? uri + value.substring(colon + 1) : null;
        } else if (prefix === '_') {
          // blank node
          return '_:' + value.substring(colon + 1);
        } else if (RDFaProcessor.NCNAME.test(prefix)) {
          uri = prefixes[prefix];
          if (uri) {
            return uri + value.substring(colon + 1);
          }
        }
      }
      return null;
    }
  }, {
    key: 'parseCURIEOrURI',
    value: function parseCURIEOrURI(value, prefixes, base) {
      var curie = this.parseCURIE(value, prefixes, base);
      if (curie) {
        return curie;
      }
      return this.resolveAndNormalize(base, value);
    }
  }, {
    key: 'parsePredicate',
    value: function parsePredicate(value, defaultVocabulary, terms, prefixes, base, ignoreTerms) {
      if (value === '') {
        return null;
      }
      var predicate = this.parseTermOrCURIEOrAbsURI(value, defaultVocabulary, ignoreTerms ? null : terms, prefixes, base);
      if (predicate && predicate.indexOf('_:') === 0) {
        return null;
      }
      return predicate;
    }
  }, {
    key: 'parsePrefixMappings',
    value: function parsePrefixMappings(str, target) {
      var values = this.tokenize(str);
      var prefix = null;
      // var uri = null
      for (var i = 0; i < values.length; i++) {
        if (values[i][values[i].length - 1] === ':') {
          prefix = values[i].substring(0, values[i].length - 1);
        } else if (prefix) {
          target[prefix] = this.options.base ? Uri.join(values[i], this.options.base) : values[i];
          prefix = null;
        }
      }
    }
  }, {
    key: 'parseSafeCURIEOrCURIEOrURI',
    value: function parseSafeCURIEOrCURIEOrURI(value, prefixes, base) {
      value = this.trim(value);
      if (value.charAt(0) === '[' && value.charAt(value.length - 1) === ']') {
        value = value.substring(1, value.length - 1);
        value = value.trim(value);
        if (value.length === 0) {
          return null;
        }
        if (value === '_:') {
          // the one node
          return this.theOne;
        }
        return this.parseCURIE(value, prefixes, base);
      } else {
        return this.parseCURIEOrURI(value, prefixes, base);
      }
    }
  }, {
    key: 'parseTermOrCURIEOrAbsURI',
    value: function parseTermOrCURIEOrAbsURI(value, defaultVocabulary, terms, prefixes, base) {
      // alert("Parsing "+value+" with default vocab "+defaultVocabulary)
      value = this.trim(value);
      var curie = this.parseCURIE(value, prefixes, base);
      if (curie) {
        return curie;
      } else if (terms) {
        if (defaultVocabulary && !this.absURIRE.exec(value)) {
          return defaultVocabulary + value;
        }
        var term = terms[value];
        if (term) {
          return term;
        }
        var lcvalue = value.toLowerCase();
        term = terms[lcvalue];
        if (term) {
          return term;
        }
      }
      if (this.absURIRE.exec(value)) {
        return this.resolveAndNormalize(base, value);
      }
      return null;
    }
  }, {
    key: 'parseTermOrCURIEOrURI',
    value: function parseTermOrCURIEOrURI(value, defaultVocabulary, terms, prefixes, base) {
      // alert("Parsing "+value+" with default vocab "+defaultVocabulary)
      value = this.trim(value);
      var curie = this.parseCURIE(value, prefixes, base);
      if (curie) {
        return curie;
      } else {
        var term = terms[value];
        if (term) {
          return term;
        }
        var lcvalue = value.toLowerCase();
        term = terms[lcvalue];
        if (term) {
          return term;
        }
        if (defaultVocabulary && !this.absURIRE.exec(value)) {
          return defaultVocabulary + value;
        }
      }
      return this.resolveAndNormalize(base, value);
    }
  }, {
    key: 'parseURI',
    value: function parseURI(uri) {
      return uri; // We just use strings as URIs, not objects now.
    }
  }, {
    key: 'process',
    value: function process(node, options) {
      /*
      if (!window.console) {
         window.console = { log: function() {} }
      }*/
      var base;
      if (node.nodeType === Node.DOCUMENT_NODE) {
        base = node.baseURI;
        node = node.documentElement;
        node.baseURI = base;
        this.setContext(node);
      } else if (node.parentNode.nodeType === Node.DOCUMENT_NODE) {
        this.setContext(node);
      }
      var queue = [];
      // Fix for Firefox that includes the hash in the base URI
      var removeHash = function removeHash(baseURI) {
        // Fix for undefined baseURI property
        if (!baseURI && options && options.baseURI) {
          return options.baseURI;
        }

        var hash = baseURI.indexOf('#');
        if (hash >= 0) {
          baseURI = baseURI.substring(0, hash);
        }
        if (options && options.baseURIMap) {
          baseURI = options.baseURIMap(baseURI);
        }
        return baseURI;
      };
      queue.push({ current: node,
        context: this.push(null, removeHash(node.baseURI))
      });
      while (queue.length > 0) {
        var item = queue.shift();
        if (item.parent) {
          // Sequence Step 14: list triple generation
          if (item.context.parent && item.context.parent.listMapping === item.listMapping) {
            // Skip a child context with exactly the same mapping
            continue;
          }
          // console.log("Generating lists for "+item.subject+", tag "+item.parent.localName)
          for (var _predicate in item.listMapping) {
            var list = item.listMapping[_predicate];
            if (list.length === 0) {
              this.addTriple(item.parent, item.subject, _predicate, { type: RDFaProcessor.objectURI, value: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#nil' });
              continue;
            }
            var bnodes = [];
            for (var _i = 0; _i < list.length; _i++) {
              bnodes.push(this.newBlankNode());
              // this.newSubject(item.parent,bnodes[i])
            }
            for (var _i2 = 0; _i2 < bnodes.length; _i2++) {
              this.addTriple(item.parent, bnodes[_i2], 'http://www.w3.org/1999/02/22-rdf-syntax-ns#first', list[_i2]);
              this.addTriple(item.parent, bnodes[_i2], 'http://www.w3.org/1999/02/22-rdf-syntax-ns#rest', { type: RDFaProcessor.objectURI, value: _i2 + 1 < bnodes.length ? bnodes[_i2 + 1] : 'http://www.w3.org/1999/02/22-rdf-syntax-ns#nil' });
            }
            this.addTriple(item.parent, item.subject, _predicate, { type: RDFaProcessor.objectURI, value: bnodes[0] });
          }
          continue;
        }
        var current = item.current;
        var context = item.context;
        // console.log("Tag: "+current.localName+", listMapping="+JSON.stringify(context.listMapping))
        // Sequence Step 1
        var skip = false;
        var newSubject = null;
        var currentObjectResource = null;
        var typedResource = null;
        var prefixes = context.prefixes;
        var prefixesCopied = false;
        var incomplete = [];
        var listMapping = context.listMapping;
        var listMappingDifferent = !context.parent;
        var language = context.language;
        var vocabulary = context.vocabulary;
        // TODO: the "base" element may be used for HTML+RDFa 1.1
        base = this.parseURI(removeHash(current.baseURI));
        current.item = null;
        // Sequence Step 2: set the default vocabulary
        var vocabAtt = current.getAttributeNode('vocab');
        if (vocabAtt) {
          var value = this.trim(vocabAtt.value);
          if (value.length > 0) {
            vocabulary = value;
            var baseSubject = base.spec;
            // this.newSubject(current,baseSubject)
            this.addTriple(current, baseSubject, 'http://www.w3.org/ns/rdfa#usesVocabulary', { type: RDFaProcessor.objectURI, value: vocabulary });
          } else {
            vocabulary = this.vocabulary;
          }
        }
        // Sequence Step 3: IRI mappings
        // handle xmlns attributes
        for (var i = 0; i < current.attributes.length; i++) {
          var att = current.attributes[i];
          // if (att.namespaceURI=="http://www.w3.org/2000/xmlns/") {
          if (att.nodeName.charAt(0) === 'x' && att.nodeName.indexOf('xmlns:') === 0) {
            if (!prefixesCopied) {
              prefixes = this.copyMappings(prefixes);
              prefixesCopied = true;
            }
            var prefix = att.nodeName.substring(6);
            // TODO: resolve relative?
            var ref = RDFaProcessor.trim(att.value);
            prefixes[prefix] = this.options.base ? Uri.join(ref, this.options.base) : ref;
          }
        }
        // Handle prefix mappings (@prefix)
        var prefixAtt = current.getAttributeNode('prefix');
        if (prefixAtt) {
          if (!prefixesCopied) {
            prefixes = this.copyMappings(prefixes);
            prefixesCopied = true;
          }
          this.parsePrefixMappings(prefixAtt.value, prefixes);
        }
        // Sequence Step 4: language
        var xmlLangAtt = null;
        for (var _i3 = 0; !xmlLangAtt && _i3 < this.langAttributes.length; _i3++) {
          xmlLangAtt = current.getAttributeNodeNS(this.langAttributes[_i3].namespaceURI, this.langAttributes[_i3].localName);
        }
        if (xmlLangAtt) {
          var _value = RDFaProcessor.trim(xmlLangAtt.value);
          if (_value.length > 0) {
            language = _value;
          } else {
            language = null;
          }
        }
        var relAtt = current.getAttributeNode('rel');
        var revAtt = current.getAttributeNode('rev');
        var typeofAtt = current.getAttributeNode('typeof');
        var propertyAtt = current.getAttributeNode('property');
        var datatypeAtt = current.getAttributeNode('datatype');
        var datetimeAtt = this.inHTMLMode ? current.getAttributeNode('datetime') : null;
        var contentAtt = current.getAttributeNode('content');
        var aboutAtt = current.getAttributeNode('about');
        var srcAtt = current.getAttributeNode('src');
        var resourceAtt = current.getAttributeNode('resource');
        var hrefAtt = current.getAttributeNode('href');
        var inlistAtt = current.getAttributeNode('inlist');
        var relAttPredicates = [];
        var predicate, values;
        if (relAtt) {
          values = this.tokenize(relAtt.value);
          for (var _i4 = 0; _i4 < values.length; _i4++) {
            predicate = this.parsePredicate(values[_i4], vocabulary, context.terms, prefixes, base, this.inHTMLMode && propertyAtt !== null);
            if (predicate) {
              relAttPredicates.push(predicate);
            }
          }
        }
        var revAttPredicates = [];
        if (revAtt) {
          values = this.tokenize(revAtt.value);
          for (var _i5 = 0; _i5 < values.length; _i5++) {
            predicate = this.parsePredicate(values[_i5], vocabulary, context.terms, prefixes, base, this.inHTMLMode && propertyAtt);
            if (predicate) {
              revAttPredicates.push(predicate);
            }
          }
        }
        // Section 3.1, bullet 7
        if (this.inHTMLMode && (relAtt || revAtt) && propertyAtt) {
          if (relAttPredicates.length === 0) {
            relAtt = null;
          }
          if (revAttPredicates.length === 0) {
            revAtt = null;
          }
        }
        if (relAtt || revAtt) {
          // Sequence Step 6: establish new subject and value
          if (aboutAtt) {
            newSubject = this.parseSafeCURIEOrCURIEOrURI(aboutAtt.value, prefixes, base);
          }
          if (typeofAtt) {
            typedResource = newSubject;
          }
          if (!newSubject) {
            if (current.parentNode.nodeType === Node.DOCUMENT_NODE) {
              newSubject = removeHash(current.baseURI);
            } else if (context.parentObject) {
              // TODO: Verify: If the xml:base has been set and the parentObject is the baseURI of the parent, then the subject needs to be the new base URI
              newSubject = removeHash(current.parentNode.baseURI) === context.parentObject ? removeHash(current.baseURI) : context.parentObject;
            }
          }
          if (resourceAtt) {
            currentObjectResource = this.parseSafeCURIEOrCURIEOrURI(resourceAtt.value, prefixes, base);
          }
          if (!currentObjectResource) {
            if (hrefAtt) {
              currentObjectResource = this.resolveAndNormalize(base, encodeURI(hrefAtt.value));
            } else if (srcAtt) {
              currentObjectResource = this.resolveAndNormalize(base, encodeURI(srcAtt.value));
            } else if (typeofAtt && !aboutAtt && !(this.inXHTMLMode && (current.localName === 'head' || current.localName === 'body'))) {
              currentObjectResource = this.newBlankNode();
            }
          }
          if (typeofAtt && !aboutAtt && this.inXHTMLMode && (current.localName === 'head' || current.localName === 'body')) {
            typedResource = newSubject;
          } else if (typeofAtt && !aboutAtt) {
            typedResource = currentObjectResource;
          }
        } else if (propertyAtt && !contentAtt && !datatypeAtt) {
          // Sequence Step 5.1: establish a new subject
          if (aboutAtt) {
            newSubject = this.parseSafeCURIEOrCURIEOrURI(aboutAtt.value, prefixes, base);
            if (typeofAtt) {
              typedResource = newSubject;
            }
          }
          if (!newSubject && current.parentNode.nodeType === Node.DOCUMENT_NODE) {
            newSubject = removeHash(current.baseURI);
            if (typeofAtt) {
              typedResource = newSubject;
            }
          } else if (!newSubject && context.parentObject) {
            // TODO: Verify: If the xml:base has been set and the parentObject is the baseURI of the parent, then the subject needs to be the new base URI
            newSubject = removeHash(current.parentNode.baseURI) === context.parentObject ? removeHash(current.baseURI) : context.parentObject;
          }
          if (typeofAtt && !typedResource) {
            if (resourceAtt) {
              typedResource = this.parseSafeCURIEOrCURIEOrURI(resourceAtt.value, prefixes, base);
            }
            if (!typedResource && hrefAtt) {
              typedResource = this.resolveAndNormalize(base, encodeURI(hrefAtt.value));
            }
            if (!typedResource && srcAtt) {
              typedResource = this.resolveAndNormalize(base, encodeURI(srcAtt.value));
            }
            if (!typedResource && (this.inXHTMLMode || this.inHTMLMode) && (current.localName === 'head' || current.localName === 'body')) {
              typedResource = newSubject;
            }
            if (!typedResource) {
              typedResource = this.newBlankNode();
            }
            currentObjectResource = typedResource;
          }
          // console.log(current.localName+", newSubject="+newSubject+", typedResource="+typedResource+", currentObjectResource="+currentObjectResource)
        } else {
          // Sequence Step 5.2: establish a new subject
          if (aboutAtt) {
            newSubject = this.parseSafeCURIEOrCURIEOrURI(aboutAtt.value, prefixes, base);
          }
          if (!newSubject && resourceAtt) {
            newSubject = this.parseSafeCURIEOrCURIEOrURI(resourceAtt.value, prefixes, base);
          }
          if (!newSubject && hrefAtt) {
            newSubject = this.resolveAndNormalize(base, encodeURI(hrefAtt.value));
          }
          if (!newSubject && srcAtt) {
            newSubject = this.resolveAndNormalize(base, encodeURI(srcAtt.value));
          }
          if (!newSubject) {
            if (current.parentNode.nodeType === Node.DOCUMENT_NODE) {
              newSubject = removeHash(current.baseURI);
            } else if ((this.inXHTMLMode || this.inHTMLMode) && (current.localName === 'head' || current.localName === 'body')) {
              newSubject = removeHash(current.parentNode.baseURI) === context.parentObject ? removeHash(current.baseURI) : context.parentObject;
            } else if (typeofAtt) {
              newSubject = this.newBlankNode();
            } else if (context.parentObject) {
              // TODO: Verify: If the xml:base has been set and the parentObject is the baseURI of the parent, then the subject needs to be the new base URI
              newSubject = removeHash(current.parentNode.baseURI) === context.parentObject ? removeHash(current.baseURI) : context.parentObject;
              if (!propertyAtt) {
                skip = true;
              }
            }
          }
          if (typeofAtt) {
            typedResource = newSubject;
          }
        }
        // console.log(current.tagName+": newSubject="+newSubject+", currentObjectResource="+currentObjectResource+", typedResource="+typedResource+", skip="+skip)
        // var rdfaData = null
        if (newSubject) {
          // this.newSubject(current,newSubject)
          if (aboutAtt || resourceAtt || typedResource) {
            var id = newSubject;
            if (typeofAtt && !aboutAtt && !resourceAtt && currentObjectResource) {
              id = currentObjectResource;
            }
            // console.log("Setting data attribute for "+current.localName+" for subject "+id)
            this.newSubjectOrigin(current, id);
          }
        }
        // Sequence Step 7: generate type triple
        if (typedResource) {
          values = this.tokenize(typeofAtt.value);
          for (var _i6 = 0; _i6 < values.length; _i6++) {
            var object = this.parseTermOrCURIEOrAbsURI(values[_i6], vocabulary, context.terms, prefixes, base);
            if (object) {
              this.addTriple(current, typedResource, RDFaProcessor.typeURI, { type: RDFaProcessor.objectURI, value: object });
            }
          }
        }
        // Sequence Step 8: new list mappings if there is a new subject
        // console.log("Step 8: newSubject="+newSubject+", context.parentObject="+context.parentObject)
        if (newSubject && newSubject !== context.parentObject) {
          // console.log("Generating new list mapping for "+newSubject)
          listMapping = {};
          listMappingDifferent = true;
        }
        // Sequence Step 9: generate object triple
        if (currentObjectResource) {
          if (relAtt && inlistAtt) {
            for (var _i7 = 0; _i7 < relAttPredicates.length; _i7++) {
              var _list = listMapping[relAttPredicates[_i7]];
              if (!_list) {
                _list = [];
                listMapping[relAttPredicates[_i7]] = _list;
              }
              _list.push({ type: RDFaProcessor.objectURI, value: currentObjectResource });
            }
          } else if (relAtt) {
            for (var _i8 = 0; _i8 < relAttPredicates.length; _i8++) {
              this.addTriple(current, newSubject, relAttPredicates[_i8], { type: RDFaProcessor.objectURI, value: currentObjectResource });
            }
          }
          if (revAtt) {
            for (var _i9 = 0; _i9 < revAttPredicates.length; _i9++) {
              this.addTriple(current, currentObjectResource, revAttPredicates[_i9], { type: RDFaProcessor.objectURI, value: newSubject });
            }
          }
        } else {
          // Sequence Step 10: incomplete triples
          if (newSubject && !currentObjectResource && (relAtt || revAtt)) {
            currentObjectResource = this.newBlankNode();
            // alert(current.tagName+": generated blank node, newSubject="+newSubject+" currentObjectResource="+currentObjectResource)
          }
          if (relAtt && inlistAtt) {
            for (var _i10 = 0; _i10 < relAttPredicates.length; _i10++) {
              var _list2 = listMapping[relAttPredicates[_i10]];
              if (!_list2) {
                _list2 = [];
                listMapping[predicate] = _list2;
              }
              // console.log("Adding incomplete list for "+predicate)
              incomplete.push({ predicate: relAttPredicates[_i10], list: _list2 });
            }
          } else if (relAtt) {
            for (var _i11 = 0; _i11 < relAttPredicates.length; _i11++) {
              incomplete.push({ predicate: relAttPredicates[_i11], forward: true });
            }
          }
          if (revAtt) {
            for (var _i12 = 0; _i12 < revAttPredicates.length; _i12++) {
              incomplete.push({ predicate: revAttPredicates[_i12], forward: false });
            }
          }
        }
        // Step 11: Current property values
        if (propertyAtt) {
          var datatype = null;
          var content = null;
          if (datatypeAtt) {
            datatype = datatypeAtt.value === '' ? RDFaProcessor.PlainLiteralURI : this.parseTermOrCURIEOrAbsURI(datatypeAtt.value, vocabulary, context.terms, prefixes, base);
            if (datetimeAtt && !contentAtt) {
              content = datetimeAtt.value;
            } else {
              content = datatype === RDFaProcessor.XMLLiteralURI || datatype === RDFaProcessor.HTMLLiteralURI ? null : contentAtt ? contentAtt.value : current.textContent;
            }
          } else if (contentAtt) {
            datatype = RDFaProcessor.PlainLiteralURI;
            content = contentAtt.value;
          } else if (datetimeAtt) {
            content = datetimeAtt.value;
            datatype = RDFaProcessor.deriveDateTimeType(content);
            if (!datatype) {
              datatype = RDFaProcessor.PlainLiteralURI;
            }
          } else if (!relAtt && !revAtt) {
            if (resourceAtt) {
              content = this.parseSafeCURIEOrCURIEOrURI(resourceAtt.value, prefixes, base);
            }
            if (!content && hrefAtt) {
              content = this.resolveAndNormalize(base, encodeURI(hrefAtt.value));
            } else if (!content && srcAtt) {
              content = this.resolveAndNormalize(base, encodeURI(srcAtt.value));
            }
            if (content) {
              datatype = RDFaProcessor.objectURI;
            }
          }
          if (!datatype) {
            if (typeofAtt && !aboutAtt) {
              datatype = RDFaProcessor.objectURI;
              content = typedResource;
            } else {
              content = current.textContent;
              if (this.inHTMLMode && current.localName === 'time') {
                datatype = RDFaProcessor.deriveDateTimeType(content);
              }
              if (!datatype) {
                datatype = RDFaProcessor.PlainLiteralURI;
              }
            }
          }
          values = this.tokenize(propertyAtt.value);
          for (var _i13 = 0; _i13 < values.length; _i13++) {
            var _predicate2 = this.parsePredicate(values[_i13], vocabulary, context.terms, prefixes, base);
            if (_predicate2) {
              if (inlistAtt) {
                var _list3 = listMapping[_predicate2];
                if (!_list3) {
                  _list3 = [];
                  listMapping[_predicate2] = _list3;
                }
                _list3.push(datatype === RDFaProcessor.XMLLiteralURI || datatype === RDFaProcessor.HTMLLiteralURI ? { type: datatype, value: current.childNodes } : { type: datatype ? datatype : RDFaProcessor.PlainLiteralURI, value: content, language: language });
              } else {
                if (datatype === RDFaProcessor.XMLLiteralURI || datatype === RDFaProcessor.HTMLLiteralURI) {
                  this.addTriple(current, newSubject, _predicate2, { type: datatype, value: current.childNodes });
                } else {
                  this.addTriple(current, newSubject, _predicate2, { type: datatype ? datatype : RDFaProcessor.PlainLiteralURI, value: content, language: language });
                  // console.log(newSubject+" "+predicate+"="+content)
                }
              }
            }
          }
        }
        // Sequence Step 12: complete incomplete triples with new subject
        if (newSubject && !skip) {
          for (var _i14 = 0; _i14 < context.incomplete.length; _i14++) {
            if (context.incomplete[_i14].list) {
              // console.log("Adding subject "+newSubject+" to list for "+context.incomplete[i].predicate)
              // TODO: it is unclear what to do here
              context.incomplete[_i14].list.push({ type: RDFaProcessor.objectURI, value: newSubject });
            } else if (context.incomplete[_i14].forward) {
              // console.log(current.tagName+": completing forward triple "+context.incomplete[i].predicate+" with object="+newSubject)
              this.addTriple(current, context.subject, context.incomplete[_i14].predicate, { type: RDFaProcessor.objectURI, value: newSubject });
            } else {
              // console.log(current.tagName+": completing reverse triple with object="+context.subject)
              this.addTriple(current, newSubject, context.incomplete[_i14].predicate, { type: RDFaProcessor.objectURI, value: context.subject });
            }
          }
        }
        var childContext = null;
        var listSubject = newSubject;
        if (skip) {
          // TODO: should subject be null?
          childContext = this.push(context, context.subject);
          // TODO: should the entObject be passed along?  If not, then intermediary children will keep properties from being associated with incomplete triples.
          // TODO: Verify: if the current baseURI has changed and the parentObject is the parent's base URI, then the baseURI should change
          childContext.parentObject = removeHash(current.parentNode.baseURI) === context.parentObject ? removeHash(current.baseURI) : context.parentObject;
          childContext.incomplete = context.incomplete;
          childContext.language = language;
          childContext.prefixes = prefixes;
          childContext.vocabulary = vocabulary;
        } else {
          childContext = this.push(context, newSubject);
          childContext.parentObject = currentObjectResource ? currentObjectResource : newSubject ? newSubject : context.subject;
          childContext.prefixes = prefixes;
          childContext.incomplete = incomplete;
          if (currentObjectResource) {
            // console.log("Generating new list mapping for "+currentObjectResource)
            listSubject = currentObjectResource;
            listMapping = {};
            listMappingDifferent = true;
          }
          childContext.listMapping = listMapping;
          childContext.language = language;
          childContext.vocabulary = vocabulary;
        }
        if (listMappingDifferent) {
          // console.log("Pushing list parent "+current.localName)
          queue.unshift({ parent: current, context: context, subject: listSubject, listMapping: listMapping });
        }
        for (var child = current.lastChild; child; child = child.previousSibling) {
          if (child.nodeType === Node.ELEMENT_NODE) {
            // console.log("Pushing child "+child.localName)
            child.baseURI = current.baseURI;
            queue.unshift({ current: child, context: childContext });
          }
        }
      }
      if (this.inHTMLMode) {
        this.copyProperties();
      }
      for (var _i15 = 0; _i15 < this.finishedHandlers.length; _i15++) {
        this.finishedHandlers[_i15](node);
      }
    }
  }, {
    key: 'push',
    value: function push(parent, subject) {
      return {
        parent: parent,
        subject: subject ? subject : parent ? parent.subject : null,
        parentObject: null,
        incomplete: [],
        listMapping: parent ? parent.listMapping : {},
        language: parent ? parent.language : this.language,
        prefixes: parent ? parent.prefixes : this.target.graph.prefixes,
        terms: parent ? parent.terms : this.target.graph.terms,
        vocabulary: parent ? parent.vocabulary : this.vocabulary
      };
    }
  }, {
    key: 'resolveAndNormalize',
    value: function resolveAndNormalize(base, uri) {
      // console.log("Joining " + uri + " to " + base + " making " +  Uri.join(uri, base))
      return Uri.join(uri, base); // @@ normalize?
    }
  }, {
    key: 'setContext',
    value: function setContext(node) {
      // We only recognized XHTML+RDFa 1.1 if the version is set propertyly
      if (node.localName === 'html' && node.getAttribute('version') === 'XHTML+RDFa 1.1') {
        this.setXHTMLContext();
      } else if (node.localName === 'html' || node.namespaceURI === 'http://www.w3.org/1999/xhtml') {
        if (typeof document !== 'undefined' && document.doctype) {
          if (document.doctype.publicId === '-//W3C//DTD XHTML+RDFa 1.0//EN' && document.doctype.systemId === 'http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd') {
            console.log('WARNING: RDF 1.0 is not supported.  Defaulting to HTML5 mode.');
            this.setHTMLContext();
          } else if (document.doctype.publicId === '-//W3C//DTD XHTML+RDFa 1.1//EN' && document.doctype.systemId === 'http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd') {
            this.setXHTMLContext();
          } else {
            this.setHTMLContext();
          }
        } else {
          this.setHTMLContext();
        }
      } else {
        this.setXMLContext();
      }
    }
  }, {
    key: 'setHTMLContext',
    value: function setHTMLContext() {
      this.setInitialContext();
      this.langAttributes = [{
        namespaceURI: 'http://www.w3.org/XML/1998/namespace',
        localName: 'lang'
      }, { namespaceURI: null, localName: 'lang' }];
      this.inXHTMLMode = false;
      this.inHTMLMode = true;
    }
  }, {
    key: 'setInitialContext',
    value: function setInitialContext() {
      this.vocabulary = null;
      // By default, the prefixes are terms are loaded to the RDFa 1.1. standard within the graph constructor
      this.langAttributes = [{
        namespaceURI: 'http://www.w3.org/XML/1998/namespace',
        localName: 'lang'
      }];
    }
  }, {
    key: 'setXHTMLContext',
    value: function setXHTMLContext() {
      this.setInitialContext();
      this.inXHTMLMode = true;
      this.inHTMLMode = false;
      this.langAttributes = [{
        namespaceURI: 'http://www.w3.org/XML/1998/namespace',
        localName: 'lang' }, { namespaceURI: null, localName: 'lang' }];
      // From http://www.w3.org/2011/rdfa-context/xhtml-rdfa-1.1
      this.target.graph.terms['alternate'] = 'http://www.w3.org/1999/xhtml/vocab#alternate';
      this.target.graph.terms['appendix'] = 'http://www.w3.org/1999/xhtml/vocab#appendix';
      this.target.graph.terms['bookmark'] = 'http://www.w3.org/1999/xhtml/vocab#bookmark';
      this.target.graph.terms['cite'] = 'http://www.w3.org/1999/xhtml/vocab#cite';
      this.target.graph.terms['chapter'] = 'http://www.w3.org/1999/xhtml/vocab#chapter';
      this.target.graph.terms['contents'] = 'http://www.w3.org/1999/xhtml/vocab#contents';
      this.target.graph.terms['copyright'] = 'http://www.w3.org/1999/xhtml/vocab#copyright';
      this.target.graph.terms['first'] = 'http://www.w3.org/1999/xhtml/vocab#first';
      this.target.graph.terms['glossary'] = 'http://www.w3.org/1999/xhtml/vocab#glossary';
      this.target.graph.terms['help'] = 'http://www.w3.org/1999/xhtml/vocab#help';
      this.target.graph.terms['icon'] = 'http://www.w3.org/1999/xhtml/vocab#icon';
      this.target.graph.terms['index'] = 'http://www.w3.org/1999/xhtml/vocab#index';
      this.target.graph.terms['last'] = 'http://www.w3.org/1999/xhtml/vocab#last';
      this.target.graph.terms['license'] = 'http://www.w3.org/1999/xhtml/vocab#license';
      this.target.graph.terms['meta'] = 'http://www.w3.org/1999/xhtml/vocab#meta';
      this.target.graph.terms['next'] = 'http://www.w3.org/1999/xhtml/vocab#next';
      this.target.graph.terms['prev'] = 'http://www.w3.org/1999/xhtml/vocab#prev';
      this.target.graph.terms['previous'] = 'http://www.w3.org/1999/xhtml/vocab#previous';
      this.target.graph.terms['section'] = 'http://www.w3.org/1999/xhtml/vocab#section';
      this.target.graph.terms['stylesheet'] = 'http://www.w3.org/1999/xhtml/vocab#stylesheet';
      this.target.graph.terms['subsection'] = 'http://www.w3.org/1999/xhtml/vocab#subsection';
      this.target.graph.terms['start'] = 'http://www.w3.org/1999/xhtml/vocab#start';
      this.target.graph.terms['top'] = 'http://www.w3.org/1999/xhtml/vocab#top';
      this.target.graph.terms['up'] = 'http://www.w3.org/1999/xhtml/vocab#up';
      this.target.graph.terms['p3pv1'] = 'http://www.w3.org/1999/xhtml/vocab#p3pv1';
      // other
      this.target.graph.terms['related'] = 'http://www.w3.org/1999/xhtml/vocab#related';
      this.target.graph.terms['role'] = 'http://www.w3.org/1999/xhtml/vocab#role';
      this.target.graph.terms['transformation'] = 'http://www.w3.org/1999/xhtml/vocab#transformation';
    }
  }, {
    key: 'setXMLContext',
    value: function setXMLContext() {
      this.setInitialContext();
      this.inXHTMLMode = false;
      this.inHTMLMode = false;
    }
  }, {
    key: 'tokenize',
    value: function tokenize(str) {
      return this.trim(str).split(/\s+/);
    }
  }, {
    key: 'toRDFNodeObject',
    value: function toRDFNodeObject(x) {
      if (typeof x === 'undefined') return undefined;
      if (typeof x === 'string') {
        if (x.substring(0, 2) === '_:') {
          if (typeof this.blankNodes[x.substring(2)] === 'undefined') {
            this.blankNodes[x.substring(2)] = new BlankNode(x.substring(2));
          }
          return this.blankNodes[x.substring(2)];
        }
        return rdf.namedNode(x);
      }
      switch (x.type) {
        case RDFaProcessor.objectURI:
          if (x.value.substring(0, 2) === '_:') {
            if (typeof this.blankNodes[x.value.substring(2)] === 'undefined') {
              this.blankNodes[x.value.substring(2)] = new BlankNode(x.value.substring(2));
            }
            return this.blankNodes[x.value.substring(2)];
          }
          return rdf.namedNode(x.value);
        case RDFaProcessor.PlainLiteralURI:
          return new Literal(x.value, x.language || '');
        case RDFaProcessor.XMLLiteralURI:
        case RDFaProcessor.HTMLLiteralURI:
          var string = '';
          Object.keys(x.value).forEach(function (i) {
            string += Util.domToString(x.value[i], this.htmlOptions);
          });
          return new Literal(string, '', new NamedNode(x.type));
        default:
          return new Literal(x.value, '', new NamedNode(x.type));
      }
    }
  }, {
    key: 'trim',
    value: function trim(str) {
      return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
    }
  }], [{
    key: 'parseRDFaDOM',
    value: function parseRDFaDOM(dom, kb, base) {
      var p = new RDFaProcessor(kb, { 'base': base });
      dom.baseURI = base;
      p.process(dom);
    }
  }]);

  return RDFaProcessor;
}();

RDFaProcessor.XMLLiteralURI = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral';
RDFaProcessor.HTMLLiteralURI = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML';
RDFaProcessor.PlainLiteralURI = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral';
RDFaProcessor.objectURI = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#object';
RDFaProcessor.typeURI = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type';
RDFaProcessor.nameChar = '[-A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�က0-F.0-9·̀-ͯ‿-⁀]';
RDFaProcessor.nameStartChar = '[A-Za-zÀ-ÖØ-öø-ÿĀ-ıĴ-ľŁ-ňŊ-žƀ-ǃǍ-ǰǴ-ǵǺ-ȗɐ-ʨʻ-ˁΆΈ-ΊΌΎ-ΡΣ-ώϐ-ϖϚϜϞϠϢ-ϳЁ-ЌЎ-яё-ќў-ҁҐ-ӄӇ-ӈӋ-ӌӐ-ӫӮ-ӵӸ-ӹԱ-Ֆՙա-ֆא-תװ-ײء-غف-يٱ-ڷں-ھۀ-ێې-ۓەۥ-ۦअ-हऽक़-ॡঅ-ঌএ-ঐও-নপ-রলশ-হড়-ঢ়য়-ৡৰ-ৱਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઋઍએ-ઑઓ-નપ-રલ-ળવ-હઽૠଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଶ-ହଽଡ଼-ଢ଼ୟ-ୡஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-வஷ-ஹఅ-ఌఎ-ఐఒ-నప-ళవ-హౠ-ౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹೞೠ-ೡഅ-ഌഎ-ഐഒ-നപ-ഹൠ-ൡก-ฮะา-ำเ-ๅກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ຮະາ-ຳຽເ-ໄཀ-ཇཉ-ཀྵႠ-Ⴥა-ჶᄀᄂ-ᄃᄅ-ᄇᄉᄋ-ᄌᄎ-ᄒᄼᄾᅀᅌᅎᅐᅔ-ᅕᅙᅟ-ᅡᅣᅥᅧᅩᅭ-ᅮᅲ-ᅳᅵᆞᆨᆫᆮ-ᆯᆷ-ᆸᆺᆼ-ᇂᇫᇰᇹḀ-ẛẠ-ỹἀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼΩK-Å℮ↀ-ↂぁ-ゔァ-ヺㄅ-ㄬ가-힣一-龥〇〡-〩_]';
RDFaProcessor.NCNAME = new RegExp('^' + RDFaProcessor.nameStartChar + RDFaProcessor.nameChar + '*$');

/*
RDFaProcessor.prototype.resolveAndNormalize = function(base,href) {
   var u = base.resolve(href)
   var parsed = this.parseURI(u)
   parsed.normalize()
   return parsed.spec
}
*/

RDFaProcessor.dateTimeTypes = [{ pattern: /-?P(?:[0-9]+Y)?(?:[0-9]+M)?(?:[0-9]+D)?(?:T(?:[0-9]+H)?(?:[0-9]+M)?(?:[0-9]+(?:\.[0-9]+)?S)?)?/,
  type: 'http://www.w3.org/2001/XMLSchema#duration' }, { pattern: /-?(?:[1-9][0-9][0-9][0-9]|0[1-9][0-9][0-9]|00[1-9][0-9]|000[1-9])-[0-9][0-9]-[0-9][0-9]T(?:[0-1][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9](?:\.[0-9]+)?(?:Z|[+\-][0-9][0-9]:[0-9][0-9])?/,
  type: 'http://www.w3.org/2001/XMLSchema#dateTime' }, { pattern: /-?(?:[1-9][0-9][0-9][0-9]|0[1-9][0-9][0-9]|00[1-9][0-9]|000[1-9])-[0-9][0-9]-[0-9][0-9](?:Z|[+\-][0-9][0-9]:[0-9][0-9])?/,
  type: 'http://www.w3.org/2001/XMLSchema#date' }, { pattern: /(?:[0-1][0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9](?:\.[0-9]+)?(?:Z|[+\-][0-9][0-9]:[0-9][0-9])?/,
  type: 'http://www.w3.org/2001/XMLSchema#time' }, { pattern: /-?(?:[1-9][0-9][0-9][0-9]|0[1-9][0-9][0-9]|00[1-9][0-9]|000[1-9])-[0-9][0-9]/,
  type: 'http://www.w3.org/2001/XMLSchema#gYearMonth' }, { pattern: /-?[1-9][0-9][0-9][0-9]|0[1-9][0-9][0-9]|00[1-9][0-9]|000[1-9]/,
  type: 'http://www.w3.org/2001/XMLSchema#gYear' }];

module.exports = RDFaProcessor;
},{"./blank-node":34,"./data-factory":38,"./literal":46,"./named-node":49,"./uri":64,"./util":65}],57:[function(_dereq_,module,exports){
'use strict';

/**
 * @fileoverview
 *  RDF/XML PARSER
 *
 * Version 0.1
 *  Parser believed to be in full positive RDF/XML parsing compliance
 *  with the possible exception of handling deprecated RDF attributes
 *  appropriately. Parser is believed to comply fully with other W3C
 *  and industry standards where appropriate (DOM, ECMAScript, &c.)
 *
 *  Author: David Sheets <dsheets@mit.edu>
 *
 * W3C® SOFTWARE NOTICE AND LICENSE
 * http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
 * This work (and included software, documentation such as READMEs, or
 * other related items) is being provided by the copyright holders under
 * the following license. By obtaining, using and/or copying this work,
 * you (the licensee) agree that you have read, understood, and will
 * comply with the following terms and conditions.
 *
 * Permission to copy, modify, and distribute this software and its
 * documentation, with or without modification, for any purpose and
 * without fee or royalty is hereby granted, provided that you include
 * the following on ALL copies of the software and documentation or
 * portions thereof, including modifications:
 *
 * 1. The full text of this NOTICE in a location viewable to users of
 * the redistributed or derivative work.
 * 2. Any pre-existing intellectual property disclaimers, notices, or terms and
 * conditions. If none exist, the W3C Software Short Notice should be
 * included (hypertext is preferred, text is permitted) within the body
 * of any redistributed or derivative code.
 * 3. Notice of any changes or modifications to the files, including the
 * date changes were made. (We recommend you provide URIs to the location
 * from which the code is derived.)
 *
 * THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT
 * HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
 * FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
 * DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
 * TRADEMARKS OR OTHER RIGHTS.
 *
 * COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL
 * OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
 * DOCUMENTATION.
 *
 * The name and trademarks of copyright holders may NOT be used in
 * advertising or publicity pertaining to the software without specific,
 * written prior permission. Title to copyright in this software and any
 * associated documentation will at all times remain with copyright
 * holders.
 */
/**
 * @class Class defining an RDFParser resource object tied to an RDFStore
 *
 * @author David Sheets <dsheets@mit.edu>
 * @version 0.1
 *
 * @constructor
 * @param {RDFStore} store An RDFStore object
 */
var uriUtil = _dereq_('./uri');

var RDFParser = function RDFParser(store) {
  var RDFParser = {};

  /** Standard namespaces that we know how to handle @final
   *  @member RDFParser
   */
  RDFParser.ns = { 'RDF': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'RDFS': 'http://www.w3.org/2000/01/rdf-schema#' };

  /** DOM Level 2 node type magic numbers @final
   *  @member RDFParser
   */
  RDFParser.nodeType = { 'ELEMENT': 1, 'ATTRIBUTE': 2, 'TEXT': 3,
    'CDATA_SECTION': 4, 'ENTITY_REFERENCE': 5,
    'ENTITY': 6, 'PROCESSING_INSTRUCTION': 7,
    'COMMENT': 8, 'DOCUMENT': 9, 'DOCUMENT_TYPE': 10,
    'DOCUMENT_FRAGMENT': 11, 'NOTATION': 12 };

  /**
   * Frame class for namespace and base URI lookups
   * Base lookups will always resolve because the parser knows
   * the default base.
   *
   * @private
   */

  this.frameFactory = function (parser, parent, element) {
    return { 'NODE': 1, 'ARC': 2, 'parent': parent, 'parser': parser, 'store': parser.store, 'element': element,
      'lastChild': 0, 'base': null, 'lang': null, 'node': null, 'nodeType': null, 'listIndex': 1, 'rdfid': null, 'datatype': null, 'collection': false, /** Terminate the frame and notify the store that we're done */
      'terminateFrame': function terminateFrame() {
        if (this.collection) {
          this.node.close();
        }
      }, /** Add a symbol of a certain type to the this frame */'addSymbol': function addSymbol(type, uri) {
        uri = uriUtil.join(uri, this.base);
        this.node = this.store.sym(uri);

        this.nodeType = type;
      }, /** Load any constructed triples into the store */'loadTriple': function loadTriple() {
        if (this.parent.parent.collection) {
          this.parent.parent.node.append(this.node);
        } else {
          this.store.add(this.parent.parent.node, this.parent.node, this.node, this.parser.why);
        }
        if (this.parent.rdfid != null) {
          // reify
          var triple = this.store.sym(uriUtil.join('#' + this.parent.rdfid, this.base));
          this.store.add(triple, this.store.sym(RDFParser.ns.RDF + 'type'), this.store.sym(RDFParser.ns.RDF + 'Statement'), this.parser.why);
          this.store.add(triple, this.store.sym(RDFParser.ns.RDF + 'subject'), this.parent.parent.node, this.parser.why);
          this.store.add(triple, this.store.sym(RDFParser.ns.RDF + 'predicate'), this.parent.node, this.parser.why);

          this.store.add(triple, this.store.sym(RDFParser.ns.RDF + 'object'), this.node, this.parser.why);
        }
      }, /** Check if it's OK to load a triple */'isTripleToLoad': function isTripleToLoad() {
        return this.parent != null && this.parent.parent != null && this.nodeType === this.NODE && this.parent.nodeType === this.ARC && this.parent.parent.nodeType === this.NODE;
      }, /** Add a symbolic node to this frame */'addNode': function addNode(uri) {
        this.addSymbol(this.NODE, uri);
        if (this.isTripleToLoad()) {
          this.loadTriple();
        }
      }, /** Add a collection node to this frame */'addCollection': function addCollection() {
        this.nodeType = this.NODE;
        this.node = this.store.collection();
        this.collection = true;
        if (this.isTripleToLoad()) {
          this.loadTriple();
        }
      }, /** Add a collection arc to this frame */'addCollectionArc': function addCollectionArc() {
        this.nodeType = this.ARC;
      }, /** Add a bnode to this frame */'addBNode': function addBNode(id) {
        if (id != null) {
          if (this.parser.bnodes[id] != null) {
            this.node = this.parser.bnodes[id];
          } else {
            this.node = this.parser.bnodes[id] = this.store.bnode();
          }
        } else {
          this.node = this.store.bnode();
        }
        this.nodeType = this.NODE;
        if (this.isTripleToLoad()) {
          this.loadTriple();
        }
      }, /** Add an arc or property to this frame */'addArc': function addArc(uri) {
        if (uri === RDFParser.ns.RDF + 'li') {
          uri = RDFParser.ns.RDF + '_' + this.parent.listIndex;
          this.parent.listIndex++;
        }

        this.addSymbol(this.ARC, uri);
      }, /** Add a literal to this frame */'addLiteral': function addLiteral(value) {
        if (this.parent.datatype) {
          this.node = this.store.literal(value, '', this.store.sym(this.parent.datatype));
        } else {
          this.node = this.store.literal(value, this.lang);
        }
        this.nodeType = this.NODE;
        if (this.isTripleToLoad()) {
          this.loadTriple();
        }
      }
    };
  };

  // from the OpenLayers source .. needed to get around IE problems.
  this.getAttributeNodeNS = function (node, uri, name) {
    var attributeNode = null;
    if (node.getAttributeNodeNS) {
      attributeNode = node.getAttributeNodeNS(uri, name);
    } else {
      var attributes = node.attributes;
      var potentialNode, fullName;
      for (var i = 0; i < attributes.length; ++i) {
        potentialNode = attributes[i];
        if (potentialNode.namespaceURI === uri) {
          fullName = potentialNode.prefix ? potentialNode.prefix + ':' + name : name;
          if (fullName === potentialNode.nodeName) {
            attributeNode = potentialNode;
            break;
          }
        }
      }
    }
    return attributeNode;
  };

  /** Our triple store reference @private */

  this.store = store; /** Our identified blank nodes @private */
  this.bnodes = {}; /** A context for context-aware stores @private */
  this.why = null; /** Reification flag */
  this.reify = false;

  /**
   * Build our initial scope frame and parse the DOM into triples
   * @param {DOMTree} document The DOM to parse
   * @param {String} base The base URL to use
   * @param {Object} why The context to which this resource belongs
   */

  this.parse = function (document, base, why) {
    var children = document.childNodes; // clean up for the next run
    this.cleanParser(); // figure out the root element
    var root;
    if (document.nodeType === RDFParser.nodeType.DOCUMENT) {
      for (var c = 0; c < children.length; c++) {
        if (children[c].nodeType === RDFParser.nodeType.ELEMENT) {
          root = children[c];
          break;
        }
      }
    } else if (document.nodeType === RDFParser.nodeType.ELEMENT) {
      root = document;
    } else {
      throw new Error("RDFParser: can't find root in " + base + '. Halting. ');
      // return false
    }
    this.why = why; // our topmost frame
    var f = this.frameFactory(this);
    this.base = base;
    f.base = base;
    f.lang = null; // was '' but can't have langs like that 2015 (!)
    this.parseDOM(this.buildFrame(f, root));
    return true;
  };

  this.parseDOM = function (frame) {
    // a DOM utility function used in parsing
    var rdfid;
    var elementURI = function (el) {
      var result = '';
      if (el.namespaceURI == null) {
        throw new Error('RDF/XML syntax error: No namespace for ' + el.localName + ' in ' + this.base);
      }
      if (el.namespaceURI) {
        result = result + el.namespaceURI;
      }
      if (el.localName) {
        result = result + el.localName;
      } else if (el.nodeName) {
        if (el.nodeName.indexOf(':') >= 0) result = result + el.nodeName.split(':')[1];else result = result + el.nodeName;
      }
      return result;
    }.bind(this);
    var dig = true; // if we'll dig down in the tree on the next iter
    while (frame.parent) {
      var dom = frame.element;
      var attrs = dom.attributes;
      if (dom.nodeType === RDFParser.nodeType.TEXT || dom.nodeType === RDFParser.nodeType.CDATA_SECTION) {
        // we have a literal
        if (frame.parent.nodeType === frame.NODE) {
          // must have had attributes, store as rdf:value
          frame.addArc(RDFParser.ns.RDF + 'value');
          frame = this.buildFrame(frame);
        }
        frame.addLiteral(dom.nodeValue);
      } else if (elementURI(dom) !== RDFParser.ns.RDF + 'RDF') {
        // not root
        if (frame.parent && frame.parent.collection) {
          // we're a collection element
          frame.addCollectionArc();
          frame = this.buildFrame(frame, frame.element);
          frame.parent.element = null;
        }
        if (!frame.parent || !frame.parent.nodeType || frame.parent.nodeType === frame.ARC) {
          // we need a node
          var about = this.getAttributeNodeNS(dom, RDFParser.ns.RDF, 'about');
          rdfid = this.getAttributeNodeNS(dom, RDFParser.ns.RDF, 'ID');
          if (about && rdfid) {
            throw new Error('RDFParser: ' + dom.nodeName + ' has both rdf:id and rdf:about.' + ' Halting. Only one of these' + ' properties may be specified on a' + ' node.');
          }
          if (!about && rdfid) {
            frame.addNode('#' + rdfid.nodeValue);
            dom.removeAttributeNode(rdfid);
          } else if (about == null && rdfid == null) {
            var bnid = this.getAttributeNodeNS(dom, RDFParser.ns.RDF, 'nodeID');
            if (bnid) {
              frame.addBNode(bnid.nodeValue);
              dom.removeAttributeNode(bnid);
            } else {
              frame.addBNode();
            }
          } else {
            frame.addNode(about.nodeValue);
            dom.removeAttributeNode(about);
          }
          // Typed nodes
          var rdftype = this.getAttributeNodeNS(dom, RDFParser.ns.RDF, 'type');
          if (RDFParser.ns.RDF + 'Description' !== elementURI(dom)) {
            rdftype = { 'nodeValue': elementURI(dom) };
          }
          if (rdftype != null) {
            this.store.add(frame.node, this.store.sym(RDFParser.ns.RDF + 'type'), this.store.sym(uriUtil.join(rdftype.nodeValue, frame.base)), this.why);
            if (rdftype.nodeName) {
              dom.removeAttributeNode(rdftype);
            }
          }
          // Property Attributes
          for (var x = attrs.length - 1; x >= 0; x--) {
            this.store.add(frame.node, this.store.sym(elementURI(attrs[x])), this.store.literal(attrs[x].nodeValue, frame.lang), this.why);
          }
        } else {
          // we should add an arc (or implicit bnode+arc)
          frame.addArc(elementURI(dom)); // save the arc's rdf:ID if it has one
          if (this.reify) {
            rdfid = this.getAttributeNodeNS(dom, RDFParser.ns.RDF, 'ID');
            if (rdfid) {
              frame.rdfid = rdfid.nodeValue;
              dom.removeAttributeNode(rdfid);
            }
          }
          var parsetype = this.getAttributeNodeNS(dom, RDFParser.ns.RDF, 'parseType');
          var datatype = this.getAttributeNodeNS(dom, RDFParser.ns.RDF, 'datatype');
          if (datatype) {
            frame.datatype = datatype.nodeValue;
            dom.removeAttributeNode(datatype);
          }
          if (parsetype) {
            var nv = parsetype.nodeValue;
            if (nv === 'Literal') {
              frame.datatype = RDFParser.ns.RDF + 'XMLLiteral'; // (this.buildFrame(frame)).addLiteral(dom)
              // should work but doesn't
              frame = this.buildFrame(frame);
              frame.addLiteral(dom);
              dig = false;
            } else if (nv === 'Resource') {
              frame = this.buildFrame(frame, frame.element);
              frame.parent.element = null;
              frame.addBNode();
            } else if (nv === 'Collection') {
              frame = this.buildFrame(frame, frame.element);
              frame.parent.element = null;
              frame.addCollection();
            }
            dom.removeAttributeNode(parsetype);
          }
          if (attrs.length !== 0) {
            var resource = this.getAttributeNodeNS(dom, RDFParser.ns.RDF, 'resource');
            var bnid2 = this.getAttributeNodeNS(dom, RDFParser.ns.RDF, 'nodeID');
            frame = this.buildFrame(frame);
            if (resource) {
              frame.addNode(resource.nodeValue);
              dom.removeAttributeNode(resource);
            } else {
              if (bnid2) {
                frame.addBNode(bnid2.nodeValue);
                dom.removeAttributeNode(bnid2);
              } else {
                frame.addBNode();
              }
            }
            for (var x1 = attrs.length - 1; x1 >= 0; x1--) {
              var f = this.buildFrame(frame);
              f.addArc(elementURI(attrs[x1]));
              if (elementURI(attrs[x1]) === RDFParser.ns.RDF + 'type') {
                this.buildFrame(f).addNode(attrs[x1].nodeValue);
              } else {
                this.buildFrame(f).addLiteral(attrs[x1].nodeValue);
              }
            }
          } else if (dom.childNodes.length === 0) {
            this.buildFrame(frame).addLiteral('');
          }
        }
      } // rdf:RDF
      // dig dug
      dom = frame.element;
      while (frame.parent) {
        var pframe = frame;
        while (dom == null) {
          frame = frame.parent;
          dom = frame.element;
        }
        var candidate = dom.childNodes && dom.childNodes[frame.lastChild];
        if (!candidate || !dig) {
          frame.terminateFrame();
          if (!(frame = frame.parent)) {
            break;
          } // done
          dom = frame.element;
          dig = true;
        } else if (candidate.nodeType !== RDFParser.nodeType.ELEMENT && candidate.nodeType !== RDFParser.nodeType.TEXT && candidate.nodeType !== RDFParser.nodeType.CDATA_SECTION || (candidate.nodeType === RDFParser.nodeType.TEXT || candidate.nodeType === RDFParser.nodeType.CDATA_SECTION) && dom.childNodes.length !== 1) {
          frame.lastChild++;
        } else {
          // not a leaf
          frame.lastChild++;
          frame = this.buildFrame(pframe, dom.childNodes[frame.lastChild - 1]);
          break;
        }
      }
    } // while
  };

  /**
   * Cleans out state from a previous parse run
   * @private
   */
  this.cleanParser = function () {
    this.bnodes = {};
    this.why = null;
  };

  /**
   * Builds scope frame
   * @private
   */
  this.buildFrame = function (parent, element) {
    var frame = this.frameFactory(this, parent, element);
    if (parent) {
      frame.base = parent.base;
      frame.lang = parent.lang;
    }
    if (!element || element.nodeType === RDFParser.nodeType.TEXT || element.nodeType === RDFParser.nodeType.CDATA_SECTION) {
      return frame;
    }
    var attrs = element.attributes;
    var base = element.getAttributeNode('xml:base');
    if (base != null) {
      frame.base = base.nodeValue;
      element.removeAttribute('xml:base');
    }
    var lang = element.getAttributeNode('xml:lang');
    if (lang != null) {
      frame.lang = lang.nodeValue;
      element.removeAttribute('xml:lang');
    }
    // remove all extraneous xml and xmlns attributes
    for (var x = attrs.length - 1; x >= 0; x--) {
      if (attrs[x].nodeName.substr(0, 3) === 'xml') {
        if (attrs[x].name.slice(0, 6) === 'xmlns:') {
          var uri = attrs[x].nodeValue; // alert('base for namespac attr:'+this.base)
          if (this.base) uri = uriUtil.join(uri, this.base);
          this.store.setPrefixForURI(attrs[x].name.slice(6), uri);
        }
        //		alert('rdfparser: xml atribute: '+attrs[x].name) //@@
        element.removeAttributeNode(attrs[x]);
      }
    }
    return frame;
  };
};

module.exports = RDFParser;
},{"./uri":64}],58:[function(_dereq_,module,exports){
'use strict';

module.exports = serialize;

var convert = _dereq_('./convert');
var Serializer = _dereq_('./serializer');

/**
 * Serialize to the appropriate format
 * @@ Currently NQuads and JSON/LD are deal with extrelemently inefficiently
 * through mutiple conversions.
 */
function serialize(target, kb, base, contentType, callback, options) {
  base = base || target.uri;
  options = options || {};
  contentType = contentType || 'text/turtle'; // text/n3 if complex?
  var documentString = null;
  try {
    var sz = Serializer(kb);
    if (options.flags) sz.setFlags(options.flags);
    var newSts = kb.statementsMatching(undefined, undefined, undefined, target);
    var n3String;
    sz.suggestNamespaces(kb.namespaces);
    sz.setBase(base);
    switch (contentType) {
      case 'application/rdf+xml':
        documentString = sz.statementsToXML(newSts);
        return executeCallback(null, documentString);
      case 'text/n3':
      case 'application/n3':
        // Legacy
        documentString = sz.statementsToN3(newSts);
        return executeCallback(null, documentString);
      case 'text/turtle':
      case 'application/x-turtle':
        // Legacy
        sz.setFlags('si'); // Suppress = for sameAs and => for implies
        documentString = sz.statementsToN3(newSts);
        return executeCallback(null, documentString);
      case 'application/n-triples':
        sz.setFlags('deinprstux'); // Suppress nice parts of N3 to make ntriples
        documentString = sz.statementsToNTriples(newSts);
        return executeCallback(null, documentString);
      case 'application/ld+json':
        sz.setFlags('deinprstux'); // Use adapters to connect to incmpatible parser
        n3String = sz.statementsToNTriples(newSts);
        // n3String = sz.statementsToN3(newSts)
        convert.convertToJson(n3String, callback);
        break;
      case 'application/n-quads':
      case 'application/nquads':
        // @@@ just outpout the quads? Does not work for collections
        sz.setFlags('deinprstux q'); // Suppress nice parts of N3 to make ntriples
        documentString = sz.statementsToNTriples(newSts); // q in flag means actually quads
        return executeCallback(null, documentString);
        // n3String = sz.statementsToN3(newSts)
        // documentString = convert.convertToNQuads(n3String, callback)
        break;
      default:
        throw new Error('Serialize: Content-type ' + contentType + ' not supported for data write.');
    }
  } catch (err) {
    if (callback) {
      return callback(err);
    }
    throw err; // Don't hide problems from caller in sync mode
  }

  function executeCallback(err, result) {
    if (callback) {
      callback(err, result);
      return;
    } else {
      return result;
    }
  }
}
},{"./convert":37,"./serializer":59}],59:[function(_dereq_,module,exports){
'use strict';

/*      Serialization of RDF Graphs
**
** Tim Berners-Lee 2006
** This is was http://dig.csail.mit.edu/2005/ajar/ajaw/js/rdf/serialize.js
** This is or was https://github.com/linkeddata/rdflib.js/blob/master/src/serializer.js
** Licence: MIT
*/
var NamedNode = _dereq_('./named-node');
var BlankNode = _dereq_('./blank-node');
var Uri = _dereq_('./uri');
var Util = _dereq_('./util');
var XSD = _dereq_('./xsd');

var Serializer = function () {
  var __Serializer = function __Serializer(store) {
    this.flags = '';
    this.base = null;

    this.prefixes = []; // suggested prefixes
    this.namespaces = []; // complementary indexes

    this.suggestPrefix('rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'); // XML code assumes this!
    this.suggestPrefix('xml', 'reserved:reservedForFutureUse'); // XML reserves xml: in the spec.

    this.namespacesUsed = []; // Count actually used and so needed in @prefixes
    this.keywords = ['a']; // The only one we generate at the moment
    this.prefixchars = 'abcdefghijklmnopqustuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
    this.incoming = null; // Array not calculated yet
    this.formulas = []; // remebering original formulae from hashes
    this.store = store;
  };

  __Serializer.prototype.setBase = function (base) {
    this.base = base;return this;
  };

  __Serializer.prototype.setFlags = function (flags) {
    this.flags = flags || '';return this;
  };

  __Serializer.prototype.toStr = function (x) {
    var s = x.toNT();
    if (x.termType === 'Graph') {
      this.formulas[s] = x; // remember as reverse does not work
    }
    return s;
  };

  __Serializer.prototype.fromStr = function (s) {
    if (s[0] === '{') {
      var x = this.formulas[s];
      if (!x) console.log('No formula object for ' + s);
      return x;
    }
    return this.store.fromNT(s);
  };
  /* Accumulate Namespaces
  **
  ** These are only hints.  If two overlap, only one gets used
  ** There is therefore no guarantee in general.
  */
  __Serializer.prototype.suggestPrefix = function (prefix, uri) {
    if (prefix.slice(0, 7) === 'default') return; // Try to weed these out
    if (prefix.slice(0, 2) === 'ns') return; //  From others inferior algos
    if (!prefix || !uri) return; // empty strings not suitable
    if (prefix in this.namespaces || uri in this.prefixes) return; // already used
    this.prefixes[uri] = prefix;
    this.namespaces[prefix] = uri;
  };

  // Takes a namespace -> prefix map
  __Serializer.prototype.suggestNamespaces = function (namespaces) {
    for (var px in namespaces) {
      this.suggestPrefix(px, namespaces[px]);
      return this;
    }
  };

  __Serializer.prototype.checkIntegrity = function () {
    var p, ns;
    for (p in this.namespaces) {
      if (this.prefixes[this.namespaces[p]] !== p) {
        throw new Error('Serializer integity error 1: ' + p + ', ' + this.namespaces[p] + ', ' + this.prefixes[this.namespaces[p]] + '!');
      }
    }
    for (ns in this.prefixes) {
      if (this.namespaces[this.prefixes[ns]] !== ns) {
        throw new Error('Serializer integity error 2: ' + ns + ', ' + this.prefixs[ns] + ', ' + this.namespaces[this.prefixes[ns]] + '!');
      }
    }
  };

  // Make up an unused prefix for a random namespace
  __Serializer.prototype.makeUpPrefix = function (uri) {
    var p = uri;
    function canUseMethod(pp) {
      if (!__Serializer.prototype.validPrefix.test(pp)) return false; // bad format
      if (pp === 'ns') return false; // boring
      if (pp in this.namespaces) return false; // already used
      this.prefixes[uri] = pp;
      this.namespaces[pp] = uri;
      return pp;
    }
    var canUse = canUseMethod.bind(this);

    if ('#/'.indexOf(p[p.length - 1]) >= 0) p = p.slice(0, -1);
    var slash = p.lastIndexOf('/');
    if (slash >= 0) p = p.slice(slash + 1);
    var i = 0;
    while (i < p.length) {
      if (this.prefixchars.indexOf(p[i])) {
        i++;
      } else {
        break;
      }
    }
    p = p.slice(0, i);

    if (p.length < 6 && canUse(p)) return p; // exact is best
    if (canUse(p.slice(0, 3))) return p.slice(0, 3);
    if (canUse(p.slice(0, 2))) return p.slice(0, 2);
    if (canUse(p.slice(0, 4))) return p.slice(0, 4);
    if (canUse(p.slice(0, 1))) return p.slice(0, 1);
    if (canUse(p.slice(0, 5))) return p.slice(0, 5);
    if (!__Serializer.prototype.validPrefix.test(p)) {
      p = 'n'; // Otherwise the loop below may never termimnate
    }
    for (var j = 0;; j++) {
      if (canUse(p.slice(0, 3) + j)) return p.slice(0, 3) + j;
    }
  };

  __Serializer.prototype.rootSubjects = function (sts) {
    var incoming = {};
    var subjects = {};
    var allBnodes = {};

    /* This scan is to find out which nodes will have to be the roots of trees
    ** in the serialized form. This will be any symbols, and any bnodes
    ** which hve more or less than one incoming arc, and any bnodes which have
    ** one incoming arc but it is an uninterrupted loop of such nodes back to itself.
    ** This should be kept linear time with repect to the number of statements.
    ** Note it does not use any indexing of the store.
    */
    for (var i = 0; i < sts.length; i++) {
      var st = sts[i];
      var checkMentions = function checkMentions(x) {
        if (!incoming.hasOwnProperty(x)) incoming[x] = [];
        incoming[x].push(st.subject); // List of things which will cause this to be printed
      };
      var st2 = [st.subject, st.predicate, st.object];
      st2.map(function (y) {
        if (y.termType === 'BlankNode') {
          allBnodes[y.toNT()] = true;
        } else if (y.termType === 'Collection') {
          y.elements.forEach(function (z) {
            checkMentions(z); // bnodes in collections important
          });
        }
      });
      checkMentions(sts[i].object);
      var ss = subjects[this.toStr(st.subject)]; // Statements with this as subject
      if (!ss) ss = [];
      ss.push(st);
      subjects[this.toStr(st.subject)] = ss; // Make hash. @@ too slow for formula?
    }

    var roots = [];
    for (var xNT in subjects) {
      if (!subjects.hasOwnProperty(xNT)) continue;
      var y = this.fromStr(xNT);
      if (y.termType !== 'BlankNode' || !incoming[y] || incoming[y].length !== 1) {
        roots.push(y);
        continue;
      }
    }
    this.incoming = incoming; // Keep for serializing @@ Bug for nested formulas

    // Now do the scan using existing roots
    var rootsHash = {};
    for (var k = 0; k < roots.length; k++) {
      rootsHash[roots[k].toNT()] = true;
    }
    return { 'roots': roots, 'subjects': subjects,
      'rootsHash': rootsHash, 'incoming': incoming };
  };

  // //////////////////////////////////////////////////////

  __Serializer.prototype.toN3 = function (f) {
    return this.statementsToN3(f.statements);
  };

  __Serializer.prototype._notQNameChars = '\t\r\n !"#$%&\'()*.,+/;<=>?@[\\]^`{|}~';
  __Serializer.prototype._notNameChars = __Serializer.prototype._notQNameChars + ':';

  __Serializer.prototype.explicitURI = function (uri) {
    if (this.flags.indexOf('r') < 0 && this.base) {
      uri = Uri.refTo(this.base, uri);
    } else if (this.flags.indexOf('u') >= 0) {
      // Unicode encoding NTriples style
      uri = backslashUify(uri);
    } else {
      uri = hexify(uri);
    }
    return '<' + uri + '>';
  };

  __Serializer.prototype.statementsToNTriples = function (sts) {
    var sorted = sts.slice();
    sorted.sort();
    var str = '';
    var rdfns = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
    var self = this;
    var kb = this.store;
    var termToNT = function termToNT(x) {
      if (x.termType !== 'Collection') {
        return self.atomicTermToN3(x);
      }
      var list = x.elements;
      var rest = kb.sym(rdfns + 'nill');
      for (var i = list.length - 1; i >= 0; i--) {
        var bnode = new BlankNode();
        str += termToNT(bnode) + ' ' + termToNT(kb.sym(rdfns + 'first')) + ' ' + termToNT(list[i]) + '.\n';
        str += termToNT(bnode) + ' ' + termToNT(kb.sym(rdfns + 'rest')) + ' ' + termToNT(rest) + '.\n';
        rest = bnode;
      }
      return self.atomicTermToN3(rest);
    };
    for (var i = 0; i < sorted.length; i++) {
      var st = sorted[i];
      var s = '';
      s += termToNT(st.subject) + ' ';
      s += termToNT(st.predicate) + ' ';
      s += termToNT(st.object) + ' ';
      if (this.flags.indexOf('q') >= 0) {
        // Do quads not nrtiples
        s += termToNT(st.why) + ' ';
      }
      s += '.\n';
      str += s;
    }
    return str;
  };

  __Serializer.prototype.statementsToN3 = function (sts) {
    var indent = 4;
    var width = 80;
    var kb = this.store;
    // A URI Map alows us to put the type statemnts at the top.
    var uriMap = { 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type': 'aaa:00' };
    var SPO = function SPO(x, y) {
      // Do limited canonicalization of bnodes
      return Util.heavyCompareSPO(x, y, kb, uriMap);
    };
    sts.sort(SPO);

    if (this.base && !this.defaultNamespace) {
      this.defaultNamespace = this.base + '#';
    }

    var predMap = {};
    if (this.flags.indexOf('s') < 0) {
      predMap['http://www.w3.org/2002/07/owl#sameAs'] = '=';
    }
    if (this.flags.indexOf('t') < 0) {
      predMap['http://www.w3.org/1999/02/22-rdf-syntax-ns#type'] = 'a';
    }
    if (this.flags.indexOf('i') < 0) {
      predMap['http://www.w3.org/2000/10/swap/log#implies'] = '=>';
    }
    // //////////////////////// Arrange the bits of text

    var spaces = function spaces(n) {
      var s = '';
      for (var i = 0; i < n; i++) {
        s += ' ';
      }return s;
    };

    var treeToLine = function treeToLine(tree) {
      var str = '';
      for (var i = 0; i < tree.length; i++) {
        var branch = tree[i];
        var s2 = typeof branch === 'string' ? branch : treeToLine(branch);
        // Note the space before the dot in case statement ends 123. which is in fact allowed but be conservative.
        if (i !== 0) {
          var ch = str.slice(-1) || ' ';
          if (s2 === ',' || s2 === ';') {
            // no gap
          } else if (s2 === '.' && !'0123456789.'.includes(ch)) {// no gap except after number
            // no gap
          } else {
            str += ' '; // separate from previous token
          }
        }
        str += s2;
      }
      return str;
    };

    // Convert a nested tree of lists and strings to a string
    var treeToString = function treeToString(tree, level) {
      var str = '';
      var lastLength = 100000;
      if (level === undefined) level = -1;
      for (var i = 0; i < tree.length; i++) {
        var branch = tree[i];
        if (typeof branch !== 'string') {
          var substr = treeToString(branch, level + 1);
          if (substr.length < 10 * (width - indent * level) && substr.indexOf('"""') < 0) {
            // Don't mess up multiline strings
            var line = treeToLine(branch);
            if (line.length < width - indent * level) {
              branch = line; //   Note! treat as string below
              substr = '';
            }
          }
          if (substr) lastLength = 10000;
          str += substr;
        }
        if (typeof branch === 'string') {
          if (branch.length === 1 && str.slice(-1) === '\n') {
            if (',.;'.indexOf(branch) >= 0) {
              str = str.slice(0, -1) + branch + '\n'; //  slip punct'n on end
              lastLength += 1;
              continue;
            }
          }
          if (lastLength < indent * level + 4 || // if new line not necessary
          lastLength + branch.length + 1 < width && ';.'.indexOf(str[str.length - 2]) < 0) {
            // or the string fits on last line
            str = str.slice(0, -1) + ' ' + branch + '\n'; // then continue on this line
            lastLength += branch.length + 1;
          } else {
            var _line = spaces(indent * level) + branch;
            str += _line + '\n';
            lastLength = _line.length;
            if (level < 0) {
              str += '\n'; // extra blank line
              lastLength = 100000; // don't touch
            }
          }
        }
      }
      return str;
    };

    // //////////////////////////////////////////// Structure for N3
    // Convert a set of statements into a nested tree of lists and strings
    function statementListToTreeMethod(statements) {
      var stats = this.rootSubjects(statements);
      var roots = stats.roots;
      var results = [];
      for (var i = 0; i < roots.length; i++) {
        var root = roots[i];
        results.push(subjectTree(root, stats));
      }
      return results;
    }
    var statementListToTree = statementListToTreeMethod.bind(this);

    // The tree for a subject
    function subjectTree(subject, stats) {
      if (subject.termType === 'BlankNode' && !stats.incoming[subject]) {
        return objectTree(subject, stats, true).concat(['.']); // Anonymous bnode subject
      }
      return [termToN3(subject, stats)].concat([propertyTree(subject, stats)]).concat(['.']);
    }
    // The property tree for a single subject or anonymous node
    function propertyTreeMethod(subject, stats) {
      var results = [];
      var lastPred = null;
      var sts = stats.subjects[this.toStr(subject)] || []; // relevant statements
      if (typeof sts === 'undefined') {
        throw new Error('Cant find statements for ' + subject);
      }

      var objects = [];
      for (var i = 0; i < sts.length; i++) {
        var st = sts[i];
        if (st.predicate.uri === lastPred) {
          objects.push(',');
        } else {
          if (lastPred) {
            results = results.concat([objects]).concat([';']);
            objects = [];
          }
          results.push(predMap[st.predicate.uri] ? predMap[st.predicate.uri] : termToN3(st.predicate, stats));
        }
        lastPred = st.predicate.uri;
        objects.push(objectTree(st.object, stats));
      }
      results = results.concat([objects]);
      return results;
    }
    var propertyTree = propertyTreeMethod.bind(this);

    function objectTreeMethod(obj, stats, force) {
      if (obj.termType === 'BlankNode' && (force || stats.rootsHash[obj.toNT()] === undefined)) {
        // if not a root
        if (stats.subjects[this.toStr(obj)]) {
          return ['[', propertyTree(obj, stats), ']'];
        } else {
          return '[]';
        }
      }
      return termToN3(obj, stats);
    }
    var objectTree = objectTreeMethod.bind(this);

    function termToN3Method(expr, stats) {
      //
      var i, res;
      switch (expr.termType) {
        case 'Graph':
          res = ['{'];
          res = res.concat(statementListToTree(expr.statements));
          return res.concat(['}']);

        case 'Collection':
          res = ['('];
          for (i = 0; i < expr.elements.length; i++) {
            res.push([objectTree(expr.elements[i], stats)]);
          }
          res.push(')');
          return res;

        default:
          return this.atomicTermToN3(expr);
      }
    }
    __Serializer.prototype.termToN3 = termToN3;
    var termToN3 = termToN3Method.bind(this);

    function prefixDirectivesMethod() {
      var str = '';
      if (this.defaultNamespace) {
        str += '@prefix : ' + this.explicitURI(this.defaultNamespace) + '.\n';
      }
      for (var ns in this.prefixes) {
        if (!this.prefixes.hasOwnProperty(ns)) continue;
        if (!this.namespacesUsed[ns]) continue;
        str += '@prefix ' + this.prefixes[ns] + ': ' + this.explicitURI(ns) + '.\n';
      }
      return str + '\n';
    }
    var prefixDirectives = prefixDirectivesMethod.bind(this);
    // Body of statementsToN3:
    var tree = statementListToTree(sts);
    return prefixDirectives() + treeToString(tree);
  };
  // //////////////////////////////////////////// Atomic Terms

  //  Deal with term level things and nesting with no bnode structure
  __Serializer.prototype.atomicTermToN3 = function atomicTermToN3(expr, stats) {
    switch (expr.termType) {
      case 'BlankNode':
      case 'Variable':
        return expr.toNT();
      case 'Literal':
        var val = expr.value.toString(); // should be a string already
        if (expr.datatype && this.flags.indexOf('x') < 0) {
          // Supress native numbers
          switch (expr.datatype.uri) {

            case 'http://www.w3.org/2001/XMLSchema#integer':
              return val;

            case 'http://www.w3.org/2001/XMLSchema#decimal':
              // In urtle must have dot
              if (val.indexOf('.') < 0) val += '.0';
              return val;

            case 'http://www.w3.org/2001/XMLSchema#double':
              // Must force use of 'e'
              if (val.indexOf('.') < 0) val += '.0';
              if (val.indexOf('e') < 0) val += 'e0';
              return val;

            case 'http://www.w3.org/2001/XMLSchema#boolean':
              return expr.value ? 'true' : 'false';
          }
        }
        var str = this.stringToN3(expr.value);
        if (expr.language) {
          str += '@' + expr.language;
        } else if (!expr.datatype.equals(XSD.string)) {
          str += '^^' + this.atomicTermToN3(expr.datatype, stats);
        }
        return str;
      case 'NamedNode':
        return this.symbolToN3(expr);
      default:
        throw new Error('Internal: atomicTermToN3 cannot handle ' + expr + ' of termType: ' + expr.termType);
    }
  };

  //  stringToN3:  String escaping for N3

  __Serializer.prototype.validPrefix = new RegExp(/^[a-zA-Z][a-zA-Z0-9]*$/);

  __Serializer.prototype.forbidden1 = new RegExp(/[\\"\b\f\r\v\t\n\u0080-\uffff]/gm);
  __Serializer.prototype.forbidden3 = new RegExp(/[\\"\b\f\r\v\u0080-\uffff]/gm);
  __Serializer.prototype.stringToN3 = function stringToN3(str, flags) {
    if (!flags) flags = 'e';
    var res = '';
    var i, j, k;
    var delim;
    var forbidden;
    if (str.length > 20 && // Long enough to make sense
    str.slice(-1) !== '"' && // corner case'
    flags.indexOf('n') < 0 && ( // Force single line
    str.indexOf('\n') > 0 || str.indexOf('"') > 0)) {
      delim = '"""';
      forbidden = __Serializer.prototype.forbidden3;
    } else {
      delim = '"';
      forbidden = __Serializer.prototype.forbidden1;
    }
    for (i = 0; i < str.length;) {
      forbidden.lastIndex = 0;
      var m = forbidden.exec(str.slice(i));
      if (m == null) break;
      j = i + forbidden.lastIndex - 1;
      res += str.slice(i, j);
      var ch = str[j];
      if (ch === '"' && delim === '"""' && str.slice(j, j + 3) !== '"""') {
        res += ch;
      } else {
        k = '\b\f\r\t\v\n\\"'.indexOf(ch); // No escaping of bell (7)?
        if (k >= 0) {
          res += '\\' + 'bfrtvn\\"'[k];
        } else {
          if (flags.indexOf('e') >= 0) {
            // Unicode escaping in strings not unix style
            res += '\\u' + ('000' + ch.charCodeAt(0).toString(16).toLowerCase()).slice(-4);
          } else {
            // no 'e' flag
            res += ch;
          }
        }
      }
      i = j + 1;
    }
    return delim + res + str.slice(i) + delim;
  };
  //  A single symbol, either in  <> or namespace notation

  __Serializer.prototype.symbolToN3 = function symbolToN3(x) {
    // c.f. symbolString() in notation3.py
    var uri = x.uri;
    var j = uri.indexOf('#');
    if (j < 0 && this.flags.indexOf('/') < 0) {
      j = uri.lastIndexOf('/');
    }
    if (j >= 0 && this.flags.indexOf('p') < 0 && (
    // Can split at namespace but only if http[s]: URI or file: or ws[s] (why not others?)
    uri.indexOf('http') === 0 || uri.indexOf('ws') === 0 || uri.indexOf('file') === 0)) {
      var canSplit = true;
      for (var k = j + 1; k < uri.length; k++) {
        if (__Serializer.prototype._notNameChars.indexOf(uri[k]) >= 0) {
          canSplit = false;
          break;
        }
      }
      /*
            if (uri.slice(0, j + 1) === this.base + '#') { // base-relative
              if (canSplit) {
                return ':' + uri.slice(j + 1) // assume deafult ns is local
              } else {
                return '<#' + uri.slice(j + 1) + '>'
              }
            }
      */
      if (canSplit) {
        var localid = uri.slice(j + 1);
        var namesp = uri.slice(0, j + 1);
        if (this.defaultNamespace && this.defaultNamespace === namesp && this.flags.indexOf('d') < 0) {
          // d -> suppress default
          if (this.flags.indexOf('k') >= 0 && this.keyords.indexOf(localid) < 0) {
            return localid;
          }
          return ':' + localid;
        }
        // this.checkIntegrity() //  @@@ Remove when not testing
        var prefix = this.prefixes[namesp];
        if (!prefix) prefix = this.makeUpPrefix(namesp);
        if (prefix) {
          this.namespacesUsed[namesp] = true;
          return prefix + ':' + localid;
        }
        // Fall though if can't do qname
      }
    }
    return this.explicitURI(uri);
  };
  // String escaping utilities

  function hexify(str) {
    // also used in parser
    return encodeURI(str);
  }

  function backslashUify(str) {
    var res = '';
    var k;
    for (var i = 0; i < str.length; i++) {
      k = str.charCodeAt(i);
      if (k > 65535) {
        res += '\\U' + ('00000000' + k.toString(16)).slice(-8); // convert to upper?
      } else if (k > 126) {
        res += '\\u' + ('0000' + k.toString(16)).slice(-4);
      } else {
        res += str[i];
      }
    }
    return res;
  }

  // /////////////////////////// Quad store serialization

  // @para. write  - a function taking a single string to be output
  //
  __Serializer.prototype.writeStore = function (write) {
    var kb = this.store;
    var fetcher = kb.fetcher;
    var session = fetcher && fetcher.appNode;

    // The core data

    var sources = this.store.index[3];
    for (var s in sources) {
      // -> assume we can use -> as short for log:semantics
      var source = kb.fromNT(s);
      if (session && source.sameTerm(session)) continue;
      write('\n' + this.atomicTermToN3(source) + ' ' + this.atomicTermToN3(kb.sym('http://www.w3.org/2000/10/swap/log#semantics')) + ' { ' + this.statementsToN3(kb.statementsMatching(undefined, undefined, undefined, source)) + ' }.\n');
    }

    // The metadata from HTTP interactions:

    kb.statementsMatching(undefined, kb.sym('http://www.w3.org/2007/ont/link#requestedURI')).map(function (st) {
      write('\n<' + st.object.value + '> log:metadata {\n');
      var sts = kb.statementsMatching(undefined, undefined, undefined, st.subject);
      write(this.statementsToN3(this.statementsToN3(sts)));
      write('}.\n');
    });

    // Inferences we have made ourselves not attributable to anyone else

    var metaSources = [];
    if (session) metaSources.push(session);
    var metadata = [];
    metaSources.map(function (source) {
      metadata = metadata.concat(kb.statementsMatching(undefined, undefined, undefined, source));
    });
    write(this.statementsToN3(metadata));
  };

  // ////////////////////////////////////////////// XML serialization

  __Serializer.prototype.statementsToXML = function (sts) {
    var indent = 4;
    var width = 80;

    var namespaceCounts = []; // which have been used
    namespaceCounts['http://www.w3.org/1999/02/22-rdf-syntax-ns#'] = true;

    var liPrefix = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#_'; // prefix for ordered list items

    // //////////////////////// Arrange the bits of XML text

    var spaces = function spaces(n) {
      var s = '';
      for (var i = 0; i < n; i++) {
        s += ' ';
      }return s;
    };

    var XMLtreeToLine = function XMLtreeToLine(tree) {
      var str = '';
      for (var i = 0; i < tree.length; i++) {
        var branch = tree[i];
        var s2 = typeof branch === 'string' ? branch : XMLtreeToLine(branch);
        str += s2;
      }
      return str;
    };

    // Convert a nested tree of lists and strings to a string
    var XMLtreeToString = function XMLtreeToString(tree, level) {
      var str = '';
      var line;
      var lastLength = 100000;
      if (!level) level = 0;
      for (var i = 0; i < tree.length; i++) {
        var branch = tree[i];
        if (typeof branch !== 'string') {
          var substr = XMLtreeToString(branch, level + 1);
          if (substr.length < 10 * (width - indent * level) && substr.indexOf('"""') < 0) {
            // Don't mess up multiline strings
            line = XMLtreeToLine(branch);
            if (line.length < width - indent * level) {
              branch = '   ' + line; //   @@ Hack: treat as string below
              substr = '';
            }
          }
          if (substr) lastLength = 10000;
          str += substr;
        }
        if (typeof branch === 'string') {
          if (lastLength < indent * level + 4) {
            // continue
            str = str.slice(0, -1) + ' ' + branch + '\n';
            lastLength += branch.length + 1;
          } else {
            line = spaces(indent * level) + branch;
            str += line + '\n';
            lastLength = line.length;
          }
        } else {// not string
        }
      }
      return str;
    };

    function statementListToXMLTreeMethod(statements) {
      this.suggestPrefix('rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#');
      var stats = this.rootSubjects(statements);
      var roots = stats.roots;
      var results = [];
      for (var i = 0; i < roots.length; i++) {
        var root = roots[i];
        results.push(subjectXMLTree(root, stats));
      }
      return results;
    }
    var statementListToXMLTree = statementListToXMLTreeMethod.bind(this);

    function escapeForXML(str) {
      if (typeof str === 'undefined') return '@@@undefined@@@@';
      return str.replace(/[&<"]/g, function (m) {
        switch (m[0]) {
          case '&':
            return '&amp;';
          case '<':
            return '&lt;';
          case '"':
            return '&quot;'; // '
        }
      });
    }

    function relURIMethod(term) {
      return escapeForXML(this.base ? Util.uri.refTo(this.base, term.uri) : term.uri);
    }
    var relURI = relURIMethod.bind(this);

    // The tree for a subject
    function subjectXMLTreeMethod(subject, stats) {
      var results = [];
      var type, t, st, pred;
      var sts = stats.subjects[this.toStr(subject)]; // relevant statements
      if (typeof sts === 'undefined') {
        // empty bnode
        return propertyXMLTree(subject, stats);
      }

      // Sort only on the predicate, leave the order at object
      // level undisturbed.  This leaves multilingual content in
      // the order of entry (for partner literals), which helps
      // readability.
      //
      // For the predicate sort, we attempt to split the uri
      // as a hint to the sequence
      sts.sort(function (a, b) {
        var ap = a.predicate.uri;
        var bp = b.predicate.uri;
        if (ap.substring(0, liPrefix.length) === liPrefix || bp.substring(0, liPrefix.length) === liPrefix) {
          // we're only interested in sorting list items
          return ap.localeCompare(bp);
        }

        var as = ap.substring(liPrefix.length);
        var bs = bp.substring(liPrefix.length);
        var an = parseInt(as, 10);
        var bn = parseInt(bs, 10);
        if (isNaN(an) || isNaN(bn) || an !== as || bn !== bs) {
          // we only care about integers
          return ap.localeCompare(bp);
        }

        return an - bn;
      });

      for (var i = 0; i < sts.length; i++) {
        st = sts[i];
        // look for a type
        if (st.predicate.uri === 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type' && !type && st.object.termType === 'symbol') {
          type = st.object;
          continue; // don't include it as a child element
        }

        // see whether predicate can be replaced with "li"
        pred = st.predicate;
        if (pred.uri.substr(0, liPrefix.length) === liPrefix) {
          var number = pred.uri.substr(liPrefix.length);
          // make sure these are actually numeric list items
          var intNumber = parseInt(number, 10);
          if (number === intNumber.toString()) {
            // was numeric; don't need to worry about ordering since we've already
            // sorted the statements
            pred = new NamedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#li');
          }
        }

        t = qname(pred);
        switch (st.object.termType) {
          case 'BlankNode':
            if (stats.incoming[st.object].length === 1) {
              // there should always be something in the incoming array for a bnode
              results = results.concat(['<' + t + ' rdf:parseType="Resource">', subjectXMLTree(st.object, stats), '</' + t + '>']);
            } else {
              results = results.concat(['<' + t + ' rdf:nodeID="' + st.object.toNT().slice(2) + '"/>']);
            }
            break;
          case 'NamedNode':
            results = results.concat(['<' + t + ' rdf:resource="' + relURI(st.object) + '"/>']);
            break;
          case 'Literal':
            results = results.concat(['<' + t + (st.object.datatype.equals(XSD.string) ? '' : ' rdf:datatype="' + escapeForXML(st.object.datatype.uri) + '"') + (st.object.language ? ' xml:lang="' + st.object.language + '"' : '') + '>' + escapeForXML(st.object.value) + '</' + t + '>']);
            break;
          case 'Collection':
            results = results.concat(['<' + t + ' rdf:parseType="Collection">', collectionXMLTree(st.object, stats), '</' + t + '>']);
            break;
          default:
            throw new Error("Can't serialize object of type " + st.object.termType + ' into XML');
        } // switch
      }

      var tag = type ? qname(type) : 'rdf:Description';

      var attrs = '';
      if (subject.termType === 'BlankNode') {
        if (!stats.incoming[subject] || stats.incoming[subject].length !== 1) {
          // not an anonymous bnode
          attrs = ' rdf:nodeID="' + subject.toNT().slice(2) + '"';
        }
      } else {
        attrs = ' rdf:about="' + relURI(subject) + '"';
      }

      return ['<' + tag + attrs + '>'].concat([results]).concat(['</' + tag + '>']);
    }

    var subjectXMLTree = subjectXMLTreeMethod.bind(this);

    function collectionXMLTree(subject, stats) {
      var res = [];
      for (var i = 0; i < subject.elements.length; i++) {
        res.push(subjectXMLTree(subject.elements[i], stats));
      }
      return res;
    }

    // The property tree for a single subject or anonymos node
    function propertyXMLTreeMethod(subject, stats) {
      var results = [];
      var sts = stats.subjects[this.toStr(subject)]; // relevant statements
      if (!sts) return results; // No relevant statements
      sts.sort();
      for (var i = 0; i < sts.length; i++) {
        var st = sts[i];
        switch (st.object.termType) {
          case 'BlankNode':
            if (stats.rootsHash[st.object.toNT()]) {
              // This bnode has been done as a root -- no content here @@ what bout first time
              results = results.concat(['<' + qname(st.predicate) + ' rdf:nodeID="' + st.object.toNT().slice(2) + '">', '</' + qname(st.predicate) + '>']);
            } else {
              results = results.concat(['<' + qname(st.predicate) + ' rdf:parseType="Resource">', propertyXMLTree(st.object, stats), '</' + qname(st.predicate) + '>']);
            }
            break;
          case 'NamedNode':
            results = results.concat(['<' + qname(st.predicate) + ' rdf:resource="' + relURI(st.object) + '"/>']);
            break;
          case 'Literal':
            results = results.concat(['<' + qname(st.predicate) + (st.object.datatype.equals(XSD.string) ? '' : ' rdf:datatype="' + escapeForXML(st.object.datatype.value) + '"') + (st.object.language ? ' xml:lang="' + st.object.language + '"' : '') + '>' + escapeForXML(st.object.value) + '</' + qname(st.predicate) + '>']);
            break;
          case 'Collection':
            results = results.concat(['<' + qname(st.predicate) + ' rdf:parseType="Collection">', collectionXMLTree(st.object, stats), '</' + qname(st.predicate) + '>']);
            break;
          default:
            throw new Error("Can't serialize object of type " + st.object.termType + ' into XML');
        } // switch
      }
      return results;
    }
    var propertyXMLTree = propertyXMLTreeMethod.bind(this);

    function qnameMethod(term) {
      var uri = term.uri;

      var j = uri.indexOf('#');
      if (j < 0 && this.flags.indexOf('/') < 0) {
        j = uri.lastIndexOf('/');
      }
      if (j < 0) throw new Error('Cannot make qname out of <' + uri + '>');

      for (var k = j + 1; k < uri.length; k++) {
        if (__Serializer.prototype._notNameChars.indexOf(uri[k]) >= 0) {
          throw new Error('Invalid character "' + uri[k] + '" cannot be in XML qname for URI: ' + uri);
        }
      }
      var localid = uri.slice(j + 1);
      var namesp = uri.slice(0, j + 1);
      if (this.defaultNamespace && this.defaultNamespace === namesp && this.flags.indexOf('d') < 0) {
        // d -> suppress default
        return localid;
      }
      var prefix = this.prefixes[namesp];
      if (!prefix) prefix = this.makeUpPrefix(namesp);
      namespaceCounts[namesp] = true;
      return prefix + ':' + localid;
    }
    var qname = qnameMethod.bind(this);

    // Body of toXML:

    var tree = statementListToXMLTree(sts);
    var str = '<rdf:RDF';
    if (this.defaultNamespace) {
      str += ' xmlns="' + escapeForXML(this.defaultNamespace) + '"';
    }
    for (var ns in namespaceCounts) {
      if (!namespaceCounts.hasOwnProperty(ns)) continue;
      // Rel uris in xml ns is not strictly allowed in the XMLNS spec but needed in practice often
      var ns2 = this.base && this.flags.includes('z') ? Util.uri.refTo(this.base, ns) : ns;
      str += '\n xmlns:' + this.prefixes[ns] + '="' + escapeForXML(ns2) + '"';
    }
    str += '>';

    var tree2 = [str, tree, '</rdf:RDF>']; // @@ namespace declrations
    return XMLtreeToString(tree2, -1);
  }; // End @@ body

  var Serializer = function Serializer(store) {
    return new __Serializer(store);
  };
  return Serializer;
}();

module.exports = Serializer;
},{"./blank-node":34,"./named-node":49,"./uri":64,"./util":65,"./xsd":67}],60:[function(_dereq_,module,exports){
'use strict';

// Converting between SPARQL queries and the $rdf query API
/*

function SQuery () {
  this.terms = []
  return this
}

STerm.prototype.toString = STerm.val
SQuery.prototype.add = function (str) {this.terms.push()}*/

var log = _dereq_('./log');
var Query = _dereq_('./query').Query;
// const Fetcher = require('./fetcher')

/**
 * @SPARQL: SPARQL text that is converted to a query object which is returned.
 * @testMode: testing flag. Prevents loading of sources.
 */
function SPARQLToQuery(SPARQL, testMode, kb) {
  // AJAR_ClearTable()
  var variableHash = [];
  function makeVar(name) {
    if (variableHash[name]) {
      return variableHash[name];
    }
    var newVar = kb.variable(name);
    variableHash[name] = newVar;
    return newVar;
  }

  // term type functions
  function isRealText(term) {
    return typeof term === 'string' && term.match(/[^ \n\t]/);
  }
  function isVar(term) {
    return typeof term === 'string' && term.match(/^[\?\$]/);
  }
  function fixSymbolBrackets(term) {
    if (typeof term === 'string') {
      return term.replace(/^&lt;/, '<').replace(/&gt;$/, '>');
    } else {
      return term;
    }
  }
  function isSymbol(term) {
    return typeof term === 'string' && term.match(/^<[^>]*>$/);
  }
  function isBnode(term) {
    return typeof term === 'string' && (term.match(/^_:/) || term.match(/^$/));
  }
  function isPrefix(term) {
    return typeof term === 'string' && term.match(/:$/);
  }
  function isPrefixedSymbol(term) {
    return typeof term === 'string' && term.match(/^:|^[^_][^:]*:/);
  }
  function getPrefix(term) {
    var a = term.split(':');
    return a[0];
  }
  function getSuffix(term) {
    var a = term.split(':');
    return a[1];
  }
  function removeBrackets(term) {
    if (isSymbol(term)) {
      return term.slice(1, term.length - 1);
    } else {
      return term;
    }
  }
  // takes a string and returns an array of strings and Literals in the place of literals
  function parseLiterals(str) {
    // var sin = (str.indexOf(/[ \n]\'/)==-1)?null:str.indexOf(/[ \n]\'/), doub = (str.indexOf(/[ \n]\"/)==-1)?null:str.indexOf(/[ \n]\"/)
    var sin = str.indexOf("'") === -1 ? null : str.indexOf("'");
    var doub = str.indexOf('"') === -1 ? null : str.indexOf('"');
    // alert("S: "+sin+" D: "+doub)
    if (!sin && !doub) {
      var a = new Array(1);
      a[0] = str;
      return a;
    }
    var res = new Array(2);
    var br;
    var ind;
    if (!sin || doub && doub < sin) {
      br = '"';
      ind = doub;
    } else if (!doub || sin && sin < doub) {
      br = "'";
      ind = sin;
    } else {
      log.error('SQARQL QUERY OOPS!');
      return res;
    }
    res[0] = str.slice(0, ind);
    var end = str.slice(ind + 1).indexOf(br);
    if (end === -1) {
      log.error('SPARQL parsing error: no matching parentheses in literal ' + str);
      return str;
    }
    // alert(str.slice(end + ind + 2).match(/^\^\^/))
    var end2;
    if (str.slice(end + ind + 2).match(/^\^\^/)) {
      end2 = str.slice(end + ind + 2).indexOf(' ');
      // alert(end2)
      res[1] = kb.literal(str.slice(ind + 1, ind + 1 + end), '', kb.sym(removeBrackets(str.slice(ind + 4 + end, ind + 2 + end + end2))));
      // alert(res[1].datatype.uri)
      res = res.concat(parseLiterals(str.slice(end + ind + 3 + end2)));
    } else if (str.slice(end + ind + 2).match(/^@/)) {
      end2 = str.slice(end + ind + 2).indexOf(' ');
      // alert(end2)
      res[1] = kb.literal(str.slice(ind + 1, ind + 1 + end), str.slice(ind + 3 + end, ind + 2 + end + end2), null);
      // alert(res[1].datatype.uri)
      res = res.concat(parseLiterals(str.slice(end + ind + 2 + end2)));
    } else {
      res[1] = kb.literal(str.slice(ind + 1, ind + 1 + end), '', null);
      log.info('Literal found: ' + res[1]);
      res = res.concat(parseLiterals(str.slice(end + ind + 2))); // finds any other literals
    }
    return res;
  }

  function spaceDelimit(str) {
    str = str.replace(/\(/g, ' ( ').replace(/\)/g, ' ) ').replace(/</g, ' <').replace(/>/g, '> ').replace(/{/g, ' { ').replace(/}/g, ' } ').replace(/[\t\n\r]/g, ' ').replace(/; /g, ' ; ').replace(/\. /g, ' . ').replace(/, /g, ' , ');
    log.info('New str into spaceDelimit: \n' + str);
    var res = [];
    var br = str.split(' ');
    for (var x in br) {
      if (isRealText(br[x])) {
        res = res.concat(br[x]);
      }
    }
    return res;
  }

  function replaceKeywords(input) {
    var strarr = input;
    for (var x = 0; x < strarr.length; x++) {
      if (strarr[x] === 'a') {
        strarr[x] = '<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>';
      }
      if (strarr[x] === 'is' && strarr[x + 2] === 'of') {
        strarr.splice(x, 1);
        strarr.splice(x + 1, 1);
        var s = strarr[x - 1];
        strarr[x - 1] = strarr[x + 1];
        strarr[x + 1] = s;
      }
    }
    return strarr;
  }

  function toTerms(input) {
    var res = [];
    for (var x = 0; x < input.length; x++) {
      if (typeof input[x] !== 'string') {
        res[x] = input[x];
        continue;
      }
      input[x] = fixSymbolBrackets(input[x]);
      if (isVar(input[x])) {
        res[x] = makeVar(input[x].slice(1));
      } else if (isBnode(input[x])) {
        log.info(input[x] + ' was identified as a bnode.');
        res[x] = kb.bnode();
      } else if (isSymbol(input[x])) {
        log.info(input[x] + ' was identified as a symbol.');
        res[x] = kb.sym(removeBrackets(input[x]));
      } else if (isPrefixedSymbol(input[x])) {
        log.info(input[x] + ' was identified as a prefixed symbol');
        if (prefixes[getPrefix(input[x])]) {
          res[x] = kb.sym(input[x] = prefixes[getPrefix(input[x])] + getSuffix(input[x]));
        } else {
          log.error('SPARQL error: ' + input[x] + ' with prefix ' + getPrefix(input[x]) + ' does not have a correct prefix entry.');
          res[x] = input[x];
        }
      } else {
        res[x] = input[x];
      }
    }
    return res;
  }

  function tokenize(str) {
    var token1 = parseLiterals(str);
    var token2 = [];
    for (var x in token1) {
      if (typeof token1[x] === 'string') {
        token2 = token2.concat(spaceDelimit(token1[x]));
      } else {
        token2 = token2.concat(token1[x]);
      }
    }
    token2 = replaceKeywords(token2);
    log.info('SPARQL Tokens: ' + token2);
    return token2;
  }

  // CASE-INSENSITIVE
  function arrayIndexOf(str, arr) {
    for (var i = 0; i < arr.length; i++) {
      if (typeof arr[i] !== 'string') {
        continue;
      }
      if (arr[i].toLowerCase() === str.toLowerCase()) {
        return i;
      }
    }
    // log.warn("No instance of "+str+" in array "+arr)
    return null;
  }

  // CASE-INSENSITIVE
  function arrayIndicesOf(str, arr) {
    var ind = [];
    for (var i = 0; i < arr.length; i++) {
      if (typeof arr[i] !== 'string') {
        continue;
      }
      if (arr[i].toLowerCase() === str.toLowerCase()) {
        ind.push(i);
      }
    }
    return ind;
  }

  function setVars(input, query) {
    log.info('SPARQL vars: ' + input);
    for (var x in input) {
      if (isVar(input[x])) {
        log.info('Added ' + input[x] + ' to query variables from SPARQL');
        var v = makeVar(input[x].slice(1));
        query.vars.push(v);
        v.label = input[x].slice(1);
      } else {
        log.warn('Incorrect SPARQL variable in SELECT: ' + input[x]);
      }
    }
  }

  function getPrefixDeclarations(input) {
    var prefInd = arrayIndicesOf('PREFIX', input);
    var res = [];
    for (var i in prefInd) {
      var a = input[prefInd[i] + 1];
      var b = input[prefInd[i] + 2];
      if (!isPrefix(a)) {
        log.error('Invalid SPARQL prefix: ' + a);
      } else if (!isSymbol(b)) {
        log.error('Invalid SPARQL symbol: ' + b);
      } else {
        log.info('Prefix found: ' + a + ' -> ' + b);
        var pref = getPrefix(a);
        var symbol = removeBrackets(b);
        res[pref] = symbol;
      }
    }
    return res;
  }

  function getMatchingBracket(arr, open, close) {
    log.info('Looking for a close bracket of type ' + close + ' in ' + arr);
    var index = 0;
    for (var i = 0; i < arr.length; i++) {
      if (arr[i] === open) {
        index++;
      }
      if (arr[i] === close) {
        index--;
      }
      if (index < 0) {
        return i;
      }
    }
    log.error('Statement had no close parenthesis in SPARQL query');
    return 0;
  }

  function constraintGreaterThan(value) {
    this.describe = function (varstr) {
      return varstr + ' > ' + value.toNT();
    };
    this.test = function (term) {
      if (term.value.match(/[0-9]+(\.[0-9]+)?([eE][+-]?[0-9]+)?/)) {
        return parseFloat(term.value) > parseFloat(value);
      } else {
        return term.toNT() > value.toNT();
      }
    };
    return this;
  }

  function constraintLessThan(value) {
    // this is not the recommended usage. Should only work on literal, numeric, dateTime
    this.describe = function (varstr) {
      return varstr + ' < ' + value.toNT();
    };
    this.test = function (term) {
      // this.describe = function (varstr) { return varstr + " < "+value }
      if (term.value.match(/[0-9]+(\.[0-9]+)?([eE][+-]?[0-9]+)?/)) {
        return parseFloat(term.value) < parseFloat(value);
      } else {
        return term.toNT() < value.toNT();
      }
    };
    return this;
  }
  // This should only work on literals but doesn't.
  function ConstraintEqualTo(value) {
    this.describe = function (varstr) {
      return varstr + ' = ' + value.toNT();
    };
    this.test = function (term) {
      return value.sameTerm(term);
    };
    return this;
  }

  // value must be a literal
  function ConstraintRegexp(value) {
    this.describe = function (varstr) {
      return "REGEXP( '" + value + "' , " + varstr + ' )';
    };
    this.test = function (term) {
      var str = value;
      // str = str.replace(/^//,"").replace(//$/,"")
      var rg = new RegExp(str);
      if (term.value) {
        return rg.test(term.value);
      } else {
        return false;
      }
    };
  }

  function setConstraint(input, pat) {
    if (input.length === 3 && input[0].termType === 'Variable' && (input[2].termType === 'NamedNode' || input[2].termType === 'Literal')) {
      if (input[1] === '=') {
        log.debug('Constraint added: ' + input);
        pat.constraints[input[0]] = new ConstraintEqualTo(input[2]);
      } else if (input[1] === '>') {
        log.debug('Constraint added: ' + input);
        pat.constraints[input[0]] = new ConstraintEqualTo(input[2]);
      } else if (input[1] === '<') {
        log.debug('Constraint added: ' + input);
        pat.constraints[input[0]] = new ConstraintEqualTo(input[2]);
      } else {
        log.warn("I don't know how to handle the constraint: " + input);
      }
    } else if (input.length === 6 && typeof input[0] === 'string' && input[0].toLowerCase() === 'regexp' && input[1] === '(' && input[5] === ')' && input[3] === ',' && input[4].termType === 'Variable' && input[2].termType === 'Literal') {
      log.debug('Constraint added: ' + input);
      pat.constraints[input[4]] = new ConstraintRegexp(input[2].value);
    }
    // log.warn("I don't know how to handle the constraint: "+input)
    // alert("length: "+input.length+" input 0 type: "+input[0].termType+" input 1: "+input[1]+" input[2] type: "+input[2].termType)
  }

  function setOptional(terms, pat) {
    log.debug('Optional query: ' + terms + ' not yet implemented.');
    var opt = kb.formula();
    setWhere(terms, opt);
    pat.optional.push(opt);
  }

  function setWhere(input, pat) {
    var terms = toTerms(input);
    var end;
    log.debug('WHERE: ' + terms);
    var opt;
    // var opt = arrayIndicesOf("OPTIONAL",terms)
    while (arrayIndexOf('OPTIONAL', terms)) {
      opt = arrayIndexOf('OPTIONAL', terms);
      log.debug('OPT: ' + opt + ' ' + terms[opt] + ' in ' + terms);
      if (terms[opt + 1] !== '{') {
        log.warn('Bad optional opening bracket in word ' + opt);
      }
      end = getMatchingBracket(terms.slice(opt + 2), '{', '}');
      if (end === -1) {
        log.error('No matching bracket in word ' + opt);
      } else {
        setOptional(terms.slice(opt + 2, opt + 2 + end), pat);
        // alert(pat.statements[0].toNT())
        opt = arrayIndexOf('OPTIONAL', terms);
        end = getMatchingBracket(terms.slice(opt + 2), '{', '}');
        terms.splice(opt, end + 3);
      }
    }
    log.debug('WHERE after optionals: ' + terms);
    while (arrayIndexOf('FILTER', terms)) {
      var filt = arrayIndexOf('FILTER', terms);
      if (terms[filt + 1] !== '(') {
        log.warn('Bad filter opening bracket in word ' + filt);
      }
      end = getMatchingBracket(terms.slice(filt + 2), '(', ')');
      if (end === -1) {
        log.error('No matching bracket in word ' + filt);
      } else {
        setConstraint(terms.slice(filt + 2, filt + 2 + end), pat);
        filt = arrayIndexOf('FILTER', terms);
        end = getMatchingBracket(terms.slice(filt + 2), '(', ')');
        terms.splice(filt, end + 3);
      }
    }
    log.debug('WHERE after filters and optionals: ' + terms);
    extractStatements(terms, pat);
  }

  function extractStatements(terms, formula) {
    var arrayZero = new Array(1);
    arrayZero[0] = -1; // this is just to add the beginning of the where to the periods index.
    var per = arrayZero.concat(arrayIndicesOf('.', terms));
    var stat = [];
    for (var x = 0; x < per.length - 1; x++) {
      stat[x] = terms.slice(per[x] + 1, per[x + 1]);
    }
    // Now it's in an array of statements
    for (x in stat) {
      // THIS MUST BE CHANGED FOR COMMA, SEMICOLON
      log.info('s+p+o ' + x + ' = ' + stat[x]);
      var subj = stat[x][0];
      stat[x].splice(0, 1);
      var sem = arrayZero.concat(arrayIndicesOf(';', stat[x]));
      sem.push(stat[x].length);
      var stat2 = [];
      for (var y = 0; y < sem.length - 1; y++) {
        stat2[y] = stat[x].slice(sem[y] + 1, sem[y + 1]);
      }
      for (x in stat2) {
        log.info('p+o ' + x + ' = ' + stat[x]);
        var pred = stat2[x][0];
        stat2[x].splice(0, 1);
        var com = arrayZero.concat(arrayIndicesOf(',', stat2[x]));
        com.push(stat2[x].length);
        var stat3 = [];
        for (y = 0; y < com.length - 1; y++) {
          stat3[y] = stat2[x].slice(com[y] + 1, com[y + 1]);
        }
        for (x in stat3) {
          var obj = stat3[x][0];
          log.info('Subj=' + subj + ' Pred=' + pred + ' Obj=' + obj);
          formula.add(subj, pred, obj);
        }
      }
    }
  }

  // ******************************* Body of SPARQLToQuery ***************************//
  log.info('SPARQL input: \n' + SPARQL);
  var q = new Query();
  var sp = tokenize(SPARQL); // first tokenize everything
  var prefixes = getPrefixDeclarations(sp);
  if (!prefixes.rdf) {
    prefixes.rdf = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
  }
  if (!prefixes.rdfs) {
    prefixes.rdfs = 'http://www.w3.org/2000/01/rdf-schema#';
  }
  var selectLoc = arrayIndexOf('SELECT', sp);
  var whereLoc = arrayIndexOf('WHERE', sp);
  if (selectLoc < 0 || whereLoc < 0 || selectLoc > whereLoc) {
    log.error('Invalid or nonexistent SELECT and WHERE tags in SPARQL query');
    return false;
  }
  setVars(sp.slice(selectLoc + 1, whereLoc), q);

  setWhere(sp.slice(whereLoc + 2, sp.length - 1), q.pat);

  if (testMode) {
    return q;
  }

  for (var x in q.pat.statements) {
    var st = q.pat.statements[x];
    if (st.subject.termType === 'NamedNode') {
      /* && sf.isPending(st.subject.uri) */ // This doesn't work.
      // sf.requestURI(st.subject.uri,"sparql:"+st.subject) Kenny: I remove these two
      if (kb.fetcher) {
        kb.fetcher.lookUpThing(st.subject, 'sparql:' + st.subject);
      }
    }
    if (st.object.termType === 'NamedNode') {
      /* && sf.isPending(st.object.uri) */
      // sf.requestURI(st.object.uri,"sparql:"+st.object)
      if (kb.fetcher) {
        kb.fetcher.lookUpThing(st.object, 'sparql:' + st.object);
      }
    }
  }
  // alert(q.pat)
  return q;
  // checkVars()
  // *******************************************************************//
}

module.exports = SPARQLToQuery;
},{"./log":47,"./query":55}],61:[function(_dereq_,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 Node = _dereq_('./node');

var Statement = function () {
  function Statement(subject, predicate, object, graph) {
    _classCallCheck(this, Statement);

    this.subject = Node.fromValue(subject);
    this.predicate = Node.fromValue(predicate);
    this.object = Node.fromValue(object);
    this.why = graph; // property currently used by rdflib
  }

  _createClass(Statement, [{
    key: 'equals',
    value: function equals(other) {
      return other.subject.equals(this.subject) && other.predicate.equals(this.predicate) && other.object.equals(this.object) && other.graph.equals(this.graph);
    }
  }, {
    key: 'substitute',
    value: function substitute(bindings) {
      var y = new Statement(this.subject.substitute(bindings), this.predicate.substitute(bindings), this.object.substitute(bindings), this.why.substitute(bindings)); // 2016
      console.log('@@@ statement substitute:' + y);
      return y;
    }
  }, {
    key: 'toCanonical',
    value: function toCanonical() {
      var terms = [this.subject.toCanonical(), this.predicate.toCanonical(), this.object.toCanonical()];
      if (this.graph && this.graph.termType !== 'DefaultGraph') {
        terms.push(this.graph.toCanonical());
      }
      return terms.join(' ') + ' .';
    }
  }, {
    key: 'toNT',
    value: function toNT() {
      return [this.subject.toNT(), this.predicate.toNT(), this.object.toNT()].join(' ') + ' .';
    }
  }, {
    key: 'toString',
    value: function toString() {
      return this.toNT();
    }
  }, {
    key: 'graph',
    get: function get() {
      return this.why;
    },
    set: function set(g) {
      this.why = g;
    }
  }]);

  return Statement;
}();

module.exports = Statement;
},{"./node":51}],62:[function(_dereq_,module,exports){
'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

var _indexedFormula = _dereq_('./indexed-formula');

var _indexedFormula2 = _interopRequireDefault(_indexedFormula);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

// Joe Presbrey <presbrey@mit.edu>
// 2007-07-15
// 2010-08-08 TimBL folded in Kenny's WEBDAV
// 2010-12-07 TimBL addred local file write code
var docpart = _dereq_('./uri').docpart;
var Fetcher = _dereq_('./fetcher');
var graph = _dereq_('./data-factory').graph;

var namedNode = _dereq_('./data-factory').namedNode;
var Namespace = _dereq_('./namespace');
var Serializer = _dereq_('./serializer');
var uriJoin = _dereq_('./uri').join;
var Util = _dereq_('./util');

var UpdateManager = function () {
  var sparql = function sparql(store) {
    this.store = store;
    if (store.updater) {
      throw new Error("You can't have two UpdateManagers for the same store");
    }
    if (!store.fetcher) {
      // The store must also/already have a fetcher
      new Fetcher(store);
    }
    store.updater = this;
    this.ifps = {};
    this.fps = {};
    this.ns = {};
    this.ns.link = Namespace('http://www.w3.org/2007/ont/link#');
    this.ns.http = Namespace('http://www.w3.org/2007/ont/http#');
    this.ns.httph = Namespace('http://www.w3.org/2007/ont/httph#');
    this.ns.ldp = Namespace('http://www.w3.org/ns/ldp#');
    this.ns.rdf = Namespace('http://www.w3.org/1999/02/22-rdf-syntax-ns#');
    this.ns.rdfs = Namespace('http://www.w3.org/2000/01/rdf-schema#');
    this.ns.rdf = Namespace('http://www.w3.org/1999/02/22-rdf-syntax-ns#');
    this.ns.owl = Namespace('http://www.w3.org/2002/07/owl#');

    this.patchControl = []; // index of objects fro coordinating incomng and outgoing patches
  };

  sparql.prototype.patchControlFor = function (doc) {
    if (!this.patchControl[doc.uri]) {
      this.patchControl[doc.uri] = [];
    }
    return this.patchControl[doc.uri];
  };

  // Returns The method string SPARQL or DAV or LOCALFILE or false if known, undefined if not known.
  //
  // Files have to have a specific annotaton that they are machine written, for safety.
  // We don't actually check for write access on files.
  //
  sparql.prototype.editable = function (uri, kb) {
    if (!uri) {
      return false; // Eg subject is bnode, no known doc to write to
    }
    if (!kb) {
      kb = this.store;
    }

    if (uri.slice(0, 8) === 'file:///') {
      if (kb.holds(kb.sym(uri), namedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'), namedNode('http://www.w3.org/2007/ont/link#MachineEditableDocument'))) {
        return 'LOCALFILE';
      }

      var sts = kb.statementsMatching(kb.sym(uri), undefined, undefined);

      console.log('sparql.editable: Not MachineEditableDocument file ' + uri + '\n');
      console.log(sts.map(function (x) {
        return x.toNT();
      }).join('\n'));
      return false;
      // @@ Would be nifty of course to see whether we actually have write acess first.
    }

    var request;
    var definitive = false;
    var requests = kb.each(undefined, this.ns.link('requestedURI'), docpart(uri));

    // Hack for the moment @@@@ 2016-02-12
    if (kb.holds(namedNode(uri), this.ns.rdf('type'), this.ns.ldp('Resource'))) {
      return 'SPARQL';
    }
    var i;
    var method;
    for (var r = 0; r < requests.length; r++) {
      request = requests[r];
      if (request !== undefined) {
        var response = kb.any(request, this.ns.link('response'));
        if (request !== undefined) {
          var acceptPatch = kb.each(response, this.ns.httph('accept-patch'));
          if (acceptPatch.length) {
            for (i = 0; i < acceptPatch.length; i++) {
              method = acceptPatch[i].value.trim();
              if (method.indexOf('application/sparql-update') >= 0) return 'SPARQL';
            }
          }
          var author_via = kb.each(response, this.ns.httph('ms-author-via'));
          if (author_via.length) {
            for (i = 0; i < author_via.length; i++) {
              method = author_via[i].value.trim();
              if (method.indexOf('SPARQL') >= 0) {
                return 'SPARQL';
              }
              if (method.indexOf('DAV') >= 0) {
                return 'DAV';
              }
            }
          }
          var status = kb.each(response, this.ns.http('status'));
          if (status.length) {
            for (i = 0; i < status.length; i++) {
              if (status[i] === 200 || status[i] === 404) {
                definitive = true;
                // return false // A definitive answer
              }
            }
          }
        } else {
          console.log('sparql.editable: No response for ' + uri + '\n');
        }
      }
    }
    if (requests.length === 0) {
      console.log('sparql.editable: No request for ' + uri + '\n');
    } else {
      if (definitive) {
        return false; // We have got a request and it did NOT say editable => not editable
      }
    }
    console.log('sparql.editable: inconclusive for ' + uri + '\n');
    return undefined; // We don't know (yet) as we haven't had a response (yet)
  };

  // /////////  The identification of bnodes

  sparql.prototype.anonymize = function (obj) {
    return obj.toNT().substr(0, 2) === '_:' && this._mentioned(obj) ? '?' + obj.toNT().substr(2) : obj.toNT();
  };

  sparql.prototype.anonymizeNT = function (stmt) {
    return this.anonymize(stmt.subject) + ' ' + this.anonymize(stmt.predicate) + ' ' + this.anonymize(stmt.object) + ' .';
  };

  // A list of all bnodes occuring in a statement
  sparql.prototype._statement_bnodes = function (st) {
    return [st.subject, st.predicate, st.object].filter(function (x) {
      return x.isBlank;
    });
  };

  // A list of all bnodes occuring in a list of statements
  sparql.prototype._statement_array_bnodes = function (sts) {
    var bnodes = [];
    for (var i = 0; i < sts.length; i++) {
      bnodes = bnodes.concat(this._statement_bnodes(sts[i]));
    }
    bnodes.sort(); // in place sort - result may have duplicates
    var bnodes2 = [];
    for (var j = 0; j < bnodes.length; j++) {
      if (j === 0 || !bnodes[j].sameTerm(bnodes[j - 1])) {
        bnodes2.push(bnodes[j]);
      }
    }
    return bnodes2;
  };

  sparql.prototype._cache_ifps = function () {
    // Make a cached list of [Inverse-]Functional properties
    // Call this once before calling context_statements
    this.ifps = {};
    var a = this.store.each(undefined, this.ns.rdf('type'), this.ns.owl('InverseFunctionalProperty'));
    for (var i = 0; i < a.length; i++) {
      this.ifps[a[i].uri] = true;
    }
    this.fps = {};
    a = this.store.each(undefined, this.ns.rdf('type'), this.ns.owl('FunctionalProperty'));
    for (i = 0; i < a.length; i++) {
      this.fps[a[i].uri] = true;
    }
  };

  // Returns a context to bind a given node, up to a given depth
  sparql.prototype._bnode_context2 = function (x, source, depth) {
    // Return a list of statements which indirectly identify a node
    //  Depth > 1 if try further indirection.
    //  Return array of statements (possibly empty), or null if failure
    var sts = this.store.statementsMatching(undefined, undefined, x, source); // incoming links
    var y;
    var res;
    for (var i = 0; i < sts.length; i++) {
      if (this.fps[sts[i].predicate.uri]) {
        y = sts[i].subject;
        if (!y.isBlank) {
          return [sts[i]];
        }
        if (depth) {
          res = this._bnode_context2(y, source, depth - 1);
          if (res) {
            return res.concat([sts[i]]);
          }
        }
      }
    }
    // outgoing links
    sts = this.store.statementsMatching(x, undefined, undefined, source);
    for (i = 0; i < sts.length; i++) {
      if (this.ifps[sts[i].predicate.uri]) {
        y = sts[i].object;
        if (!y.isBlank) {
          return [sts[i]];
        }
        if (depth) {
          res = this._bnode_context2(y, source, depth - 1);
          if (res) {
            return res.concat([sts[i]]);
          }
        }
      }
    }
    return null; // Failure
  };

  // Returns the smallest context to bind a given single bnode
  sparql.prototype._bnode_context_1 = function (x, source) {
    // Return a list of statements which indirectly identify a node
    //   Breadth-first
    var self = this;
    for (var depth = 0; depth < 3; depth++) {
      // Try simple first
      var con = this._bnode_context2(x, source, depth);
      if (con !== null) return con;
    }
    // If we can't guarantee unique with logic just send all info about node
    return this.store.connectedStatements(x, source); // was:
    // throw new Error('Unable to uniquely identify bnode: ' + x.toNT())
  };

  sparql.prototype._mentioned = function (x) {
    return this.store.statementsMatching(x).length !== 0 || // Don't pin fresh bnodes
    this.store.statementsMatching(undefined, x).length !== 0 || this.store.statementsMatching(undefined, undefined, x).length !== 0;
  };

  sparql.prototype._bnode_context = function (bnodes, doc) {
    var context = [];
    if (bnodes.length) {
      this._cache_ifps();
      for (var i = 0; i < bnodes.length; i++) {
        // Does this occur in old graph?
        var bnode = bnodes[i];
        if (!this._mentioned(bnode)) continue;
        context = context.concat(this._bnode_context_1(bnode, doc));
      }
    }
    return context;
  };

  /*  Weird code does not make sense -- some code corruption along the line -- st undefined -- weird
      sparql.prototype._bnode_context = function(bnodes) {
          var context = []
          if (bnodes.length) {
              if (this.store.statementsMatching(st.subject.isBlank?undefined:st.subject,
                                        st.predicate.isBlank?undefined:st.predicate,
                                        st.object.isBlank?undefined:st.object,
                                        st.why).length <= 1) {
                  context = context.concat(st)
              } else {
                  this._cache_ifps()
                  for (x in bnodes) {
                      context = context.concat(this._bnode_context_1(bnodes[x], st.why))
                  }
              }
          }
          return context
      }
  */
  // Returns the best context for a single statement
  sparql.prototype._statement_context = function (st) {
    var bnodes = this._statement_bnodes(st);
    return this._bnode_context(bnodes, st.why);
  };

  sparql.prototype._context_where = function (context) {
    var sparql = this;
    return !context || context.length === 0 ? '' : 'WHERE { ' + context.map(function (x) {
      return sparql.anonymizeNT(x);
    }).join('\n') + ' }\n';
  };

  sparql.prototype._fire = function (uri, query, callback) {
    if (!uri) {
      throw new Error('No URI given for remote editing operation: ' + query);
    }
    console.log('sparql: sending update to <' + uri + '>');
    var xhr = Util.XMLHTTPFactory();
    xhr.options = {};

    xhr.onreadystatechange = function () {
      // dump("SPARQL update ready state for <"+uri+"> readyState="+xhr.readyState+"\n"+query+"\n")
      if (xhr.readyState === 4) {
        var success = !xhr.status || xhr.status >= 200 && xhr.status < 300;
        if (!success) {
          console.log('sparql: update failed for <' + uri + '> status=' + xhr.status + ', ' + xhr.statusText + ', body length=' + xhr.responseText.length + '\n   for query: ' + query);
        } else {
          console.log('sparql: update Ok for <' + uri + '>');
        }
        callback(uri, success, xhr.responseText, xhr);
      }
    };

    xhr.open('PATCH', uri, true); // async=true
    xhr.setRequestHeader('Content-type', 'application/sparql-update');
    xhr.send(query);
  };

  // This does NOT update the statement.
  // It returns an object whcih includes
  //  function which can be used to change the object of the statement.
  //
  sparql.prototype.update_statement = function (statement) {
    if (statement && !statement.why) {
      return;
    }
    var sparql = this;
    var context = this._statement_context(statement);

    return {
      statement: statement ? [statement.subject, statement.predicate, statement.object, statement.why] : undefined,
      statementNT: statement ? this.anonymizeNT(statement) : undefined,
      where: sparql._context_where(context),

      set_object: function set_object(obj, callback) {
        var query = this.where;
        query += 'DELETE DATA { ' + this.statementNT + ' } ;\n';
        query += 'INSERT DATA { ' + this.anonymize(this.statement[0]) + ' ' + this.anonymize(this.statement[1]) + ' ' + this.anonymize(obj) + ' ' + ' . }\n';

        sparql._fire(this.statement[3].uri, query, callback);
      }
    };
  };

  sparql.prototype.insert_statement = function (st, callback) {
    var st0 = st instanceof Array ? st[0] : st;
    var query = this._context_where(this._statement_context(st0));

    if (st instanceof Array) {
      var stText = '';
      for (var i = 0; i < st.length; i++) {
        stText += st[i] + '\n';
      }query += 'INSERT DATA { ' + stText + ' }\n';
    } else {
      query += 'INSERT DATA { ' + this.anonymize(st.subject) + ' ' + this.anonymize(st.predicate) + ' ' + this.anonymize(st.object) + ' ' + ' . }\n';
    }

    this._fire(st0.why.uri, query, callback);
  };

  sparql.prototype.delete_statement = function (st, callback) {
    var st0 = st instanceof Array ? st[0] : st;
    var query = this._context_where(this._statement_context(st0));

    if (st instanceof Array) {
      var stText = '';
      for (var i = 0; i < st.length; i++) {
        stText += st[i] + '\n';
      }query += 'DELETE DATA { ' + stText + ' }\n';
    } else {
      query += 'DELETE DATA { ' + this.anonymize(st.subject) + ' ' + this.anonymize(st.predicate) + ' ' + this.anonymize(st.object) + ' ' + ' . }\n';
    }

    this._fire(st0.why.uri, query, callback);
  };

  //  Request a now or future action to refresh changes coming downstream
  //
  // This is designed to allow the system to re-request the server version,
  // when a websocket has pinged to say there are changes.
  // If thewebsocket, by contrast, has sent a patch, then this may not be necessary.
  // This may be called out of context so *this* cannot be used.

  sparql.prototype.requestDownstreamAction = function (doc, action) {
    var control = this.patchControlFor(doc);
    if (!control.pendingUpstream) {
      action(doc);
    } else {
      if (control.downstreamAction) {
        if (control.downstreamAction === action) {
          return;
        } else {
          throw new Error("Can't wait for > 1 differnt downstream actions");
        }
      } else {
        control.downstreamAction = action;
      }
    }
  };

  // We want to start counting websockt notifications
  // to distinguish the ones from others from our own.
  sparql.prototype.clearUpstreamCount = function (doc) {
    var control = this.patchControlFor(doc);
    control.upstreamCount = 0;
  };

  sparql.prototype.getUpdatesVia = function (doc) {
    var linkHeaders = this.store.fetcher.getHeader(doc, 'updates-via');
    if (!linkHeaders || !linkHeaders.length) return null;
    return linkHeaders[0].trim();
  };

  sparql.prototype.addDownstreamChangeListener = function (doc, listener) {
    var control = this.patchControlFor(doc);
    if (!control.downstreamChangeListeners) control.downstreamChangeListeners = [];
    control.downstreamChangeListeners.push(listener);
    var self = this;
    this.setRefreshHandler(doc, function (doc) {
      // a function not a method
      self.reloadAndSync(doc);
    });
  };

  sparql.prototype.reloadAndSync = function (doc) {
    var control = this.patchControlFor(doc);
    var updater = this;

    if (control.reloading) {
      console.log('   Already reloading - stop');
      return; // once only needed
    }
    control.reloading = true;
    var retryTimeout = 1000; // ms
    var tryReload = function tryReload() {
      console.log('try reload - timeout = ' + retryTimeout);
      updater.reload(updater.store, doc, function (ok, message, xhr) {
        control.reloading = false;
        if (ok) {
          if (control.downstreamChangeListeners) {
            for (var i = 0; i < control.downstreamChangeListeners.length; i++) {
              console.log('        Calling downstream listener ' + i);
              control.downstreamChangeListeners[i]();
            }
          }
        } else {
          if (xhr.status === 0) {
            console.log('Network error refreshing the data. Retrying in ' + retryTimeout / 1000);
            control.reloading = true;
            retryTimeout = retryTimeout * 2;
            setTimeout(tryReload, retryTimeout);
          } else {
            console.log('Error ' + xhr.status + 'refreshing the data:' + message + '. Stopped' + doc);
          }
        }
      });
    };
    tryReload();
  };

  // Set up websocket to listen on
  //
  // There is coordination between upstream changes and downstream ones
  // so that a reload is not done in the middle of an upsteeam patch.
  // If you usie this API then you get called when a change happens, and you
  // have to reload the file yourself, and then refresh the UI.
  // Alternative is addDownstreamChangeListener(), where you do not
  // have to do the reload yourslf. Do mot mix them.
  //
  //  kb contains the HTTP  metadata from prefvious operations
  //
  sparql.prototype.setRefreshHandler = function (doc, handler) {
    var wssURI = this.getUpdatesVia(doc); // relative
    // var kb = this.store
    var theHandler = handler;
    var self = this;
    var updater = this;
    var retryTimeout = 1500; // *2 will be 3 Seconds, 6, 12, etc
    var retries = 0;

    if (!wssURI) {
      console.log('Server doies not support live updates thoughUpdates-Via :-(');
      return false;
    }

    wssURI = uriJoin(wssURI, doc.uri);
    wssURI = wssURI.replace(/^http:/, 'ws:').replace(/^https:/, 'wss:');
    console.log('Web socket URI ' + wssURI);

    var openWebsocket = function openWebsocket() {
      // From https://github.com/solid/solid-spec#live-updates
      var socket;
      if (typeof WebSocket !== 'undefined') {
        socket = new WebSocket(wssURI);
      } else if (typeof Services !== 'undefined') {
        // Firefox add on http://stackoverflow.com/questions/24244886/is-websocket-supported-in-firefox-for-android-addons
        socket = Services.wm.getMostRecentWindow('navigator:browser').WebSocket(wssURI);
      } else if (typeof window !== 'undefined' && window.WebSocket) {
        socket = window.WebSocket(wssURI);
      } else {
        console.log('Live update disabled, as WebSocket not supported by platform :-(');
        return;
      }
      socket.onopen = function () {
        console.log('    websocket open');
        retryTimeout = 1500; // reset timeout to fast on success
        this.send('sub ' + doc.uri);
        if (retries) {
          console.log('Web socket has been down, better check for any news.');
          updater.requestDownstreamAction(doc, theHandler);
        }
      };
      var control = self.patchControlFor(doc);
      control.upstreamCount = 0;

      // https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent
      //
      // 1000	CLOSE_NORMAL	Normal closure; the connection successfully completed whatever purpose for which it was created.
      // 1001	CLOSE_GOING_AWAY	The endpoint is going away, either
      //                                  because of a server failure or because the browser is navigating away from the page that opened the connection.
      // 1002	CLOSE_PROTOCOL_ERROR	The endpoint is terminating the connection due to a protocol error.
      // 1003	CLOSE_UNSUPPORTED	The connection is being terminated because the endpoint
      //                                  received data of a type it cannot accept (for example, a text-only endpoint received binary data).
      // 1004                             Reserved. A meaning might be defined in the future.
      // 1005	CLOSE_NO_STATUS	Reserved.  Indicates that no status code was provided even though one was expected.
      // 1006	CLOSE_ABNORMAL	Reserved. Used to indicate that a connection was closed abnormally (
      //
      //
      socket.onclose = function (event) {
        console.log('*** Websocket closed with code ' + event.code + ", reason '" + event.reason + "' clean = " + event.clean);
        retryTimeout *= 2;
        retries += 1;
        console.log('Retrying in ' + retryTimeout + 'ms'); // (ask user?)
        setTimeout(function () {
          console.log('Trying websocket again');
          openWebsocket();
        }, retryTimeout);
      };
      socket.onmessage = function (msg) {
        if (msg.data && msg.data.slice(0, 3) === 'pub') {
          if ('upstreamCount' in control) {
            control.upstreamCount -= 1;
            if (control.upstreamCount >= 0) {
              console.log('just an echo: ' + control.upstreamCount);
              return; // Just an echo
            }
          }
          console.log('Assume a real downstream change: ' + control.upstreamCount + ' -> 0');
          control.upstreamCount = 0;
          self.requestDownstreamAction(doc, theHandler);
        }
      };
    }; // openWebsocket
    openWebsocket();

    return true;
  };

  // This high-level function updates the local store iff the web is changed successfully.
  //
  //  - deletions, insertions may be undefined or single statements or lists or formulae.
  //      (may contain bnodes which can be indirectly identified by a where clause)
  //
  //  - callback is called as callback(uri, success, errorbody)
  //
  sparql.prototype.update = function (deletions, insertions, callback) {
    try {
      var kb = this.store;
      var ds = !deletions ? [] : deletions instanceof _indexedFormula2.default ? deletions.statements : deletions instanceof Array ? deletions : [deletions];
      var is = !insertions ? [] : insertions instanceof _indexedFormula2.default ? insertions.statements : insertions instanceof Array ? insertions : [insertions];
      if (!(ds instanceof Array)) {
        throw new Error('Type Error ' + (typeof ds === 'undefined' ? 'undefined' : _typeof(ds)) + ': ' + ds);
      }
      if (!(is instanceof Array)) {
        throw new Error('Type Error ' + (typeof is === 'undefined' ? 'undefined' : _typeof(is)) + ': ' + is);
      }
      if (ds.length === 0 && is.length === 0) {
        return callback(null, true); // success -- nothing needed to be done.
      }
      var doc = ds.length ? ds[0].why : is[0].why;
      var control = this.patchControlFor(doc);
      var startTime = Date.now();

      var props = ['subject', 'predicate', 'object', 'why'];
      var verbs = ['insert', 'delete'];
      var clauses = { 'delete': ds, 'insert': is };
      verbs.map(function (verb) {
        clauses[verb].map(function (st) {
          if (!doc.sameTerm(st.why)) {
            throw new Error('update: destination ' + doc + ' inconsistent with delete quad ' + st.why);
          }
          props.map(function (prop) {
            if (typeof st[prop] === 'undefined') {
              throw new Error('update: undefined ' + prop + ' of statement.');
            }
          });
        });
      });

      var protocol = this.editable(doc.uri, kb);
      if (!protocol) {
        throw new Error("Can't make changes in uneditable " + doc);
      }
      var i;
      var newSts;
      var documentString;
      var sz;
      if (protocol.indexOf('SPARQL') >= 0) {
        var bnodes = [];
        if (ds.length) bnodes = this._statement_array_bnodes(ds);
        if (is.length) bnodes = bnodes.concat(this._statement_array_bnodes(is));
        var context = this._bnode_context(bnodes, doc);
        var whereClause = this._context_where(context);
        var query = '';
        if (whereClause.length) {
          // Is there a WHERE clause?
          if (ds.length) {
            query += 'DELETE { ';
            for (i = 0; i < ds.length; i++) {
              query += this.anonymizeNT(ds[i]) + '\n';
            }
            query += ' }\n';
          }
          if (is.length) {
            query += 'INSERT { ';
            for (i = 0; i < is.length; i++) {
              query += this.anonymizeNT(is[i]) + '\n';
            }
            query += ' }\n';
          }
          query += whereClause;
        } else {
          // no where clause
          if (ds.length) {
            query += 'DELETE DATA { ';
            for (i = 0; i < ds.length; i++) {
              query += this.anonymizeNT(ds[i]) + '\n';
            }
            query += ' } \n';
          }
          if (is.length) {
            if (ds.length) query += ' ; ';
            query += 'INSERT DATA { ';
            for (i = 0; i < is.length; i++) {
              query += this.anonymizeNT(is[i]) + '\n';
            }
            query += ' }\n';
          }
        }
        // Track pending upstream patches until they have fnished their callback
        control.pendingUpstream = control.pendingUpstream ? control.pendingUpstream + 1 : 1;
        if ('upstreamCount' in control) {
          control.upstreamCount += 1; // count changes we originated ourselves
          console.log('upstream count up to : ' + control.upstreamCount);
        }

        this._fire(doc.uri, query, function (uri, success, body, xhr) {
          xhr.elapsedTime_ms = Date.now() - startTime;
          console.log('    sparql: Return ' + (success ? 'success' : 'FAILURE ' + xhr.status) + ' elapsed ' + xhr.elapsedTime_ms + 'ms');
          if (success) {
            try {
              kb.remove(ds);
            } catch (e) {
              success = false;
              body = 'Remote Ok BUT error deleting ' + ds.length + ' from store!!! ' + e;
            } // Add in any case -- help recover from weirdness??
            for (var i = 0; i < is.length; i++) {
              kb.add(is[i].subject, is[i].predicate, is[i].object, doc);
            }
          }

          callback(uri, success, body, xhr);
          control.pendingUpstream -= 1;
          // When upstream patches have been sent, reload state if downstream waiting
          if (control.pendingUpstream === 0 && control.downstreamAction) {
            var downstreamAction = control.downstreamAction;
            delete control.downstreamAction;
            console.log('delayed downstream action:');
            downstreamAction(doc);
          }
        });
      } else if (protocol.indexOf('DAV') >= 0) {
        // The code below is derived from Kenny's UpdateCenter.js
        documentString;
        var request = kb.any(doc, this.ns.link('request'));
        if (!request) {
          throw new Error('No record of our HTTP GET request for document: ' + doc);
        } // should not happen
        var response = kb.any(request, this.ns.link('response'));
        if (!response) {
          return null; // throw "No record HTTP GET response for document: "+doc
        }
        var content_type = kb.the(response, this.ns.httph('content-type')).value;

        // prepare contents of revised document
        newSts = kb.statementsMatching(undefined, undefined, undefined, doc).slice(); // copy!
        for (i = 0; i < ds.length; i++) {
          Util.RDFArrayRemove(newSts, ds[i]);
        }
        for (i = 0; i < is.length; i++) {
          newSts.push(is[i]);
        }

        // serialize to te appropriate format
        sz = Serializer(kb);
        sz.suggestNamespaces(kb.namespaces);
        sz.setBase(doc.uri); // ?? beware of this - kenny (why? tim)
        switch (content_type) {
          case 'application/rdf+xml':
            documentString = sz.statementsToXML(newSts);
            break;
          case 'text/n3':
          case 'text/turtle':
          case 'application/x-turtle': // Legacy
          case 'application/n3':
            // Legacy
            documentString = sz.statementsToN3(newSts);
            break;
          default:
            throw new Error('Content-type ' + content_type + ' not supported for data write');
        }

        // Write the new version back

        var candidateTarget = kb.the(response, this.ns.httph('content-location'));
        var targetURI;
        if (candidateTarget) {
          targetURI = uriJoin(candidateTarget.value, targetURI);
        }
        var xhr = Util.XMLHTTPFactory();
        xhr.options = {};
        xhr.onreadystatechange = function () {
          if (xhr.readyState === 4) {
            // formula from sparqlUpdate.js, what about redirects?
            var success = !xhr.status || xhr.status >= 200 && xhr.status < 300;
            if (success) {
              for (var i = 0; i < ds.length; i++) {
                kb.remove(ds[i]);
              }
              for (i = 0; i < is.length; i++) {
                kb.add(is[i].subject, is[i].predicate, is[i].object, doc);
              }
            }
            callback(doc.uri, success, xhr.responseText);
          }
        };
        xhr.open('PUT', targetURI, true);
        // assume the server does PUT content-negotiation.
        xhr.setRequestHeader('Content-type', content_type); // OK?
        xhr.send(documentString);
      } else {
        if (protocol.indexOf('LOCALFILE') >= 0) {
          try {
            console.log('Writing back to local file\n');
            // See http://simon-jung.blogspot.com/2007/10/firefox-extension-file-io.html
            // prepare contents of revised document
            newSts = kb.statementsMatching(undefined, undefined, undefined, doc).slice(); // copy!
            for (i = 0; i < ds.length; i++) {
              Util.RDFArrayRemove(newSts, ds[i]);
            }
            for (i = 0; i < is.length; i++) {
              newSts.push(is[i]);
            }
            // serialize to the appropriate format
            documentString;
            sz = Serializer(kb);
            sz.suggestNamespaces(kb.namespaces);
            sz.setBase(doc.uri); // ?? beware of this - kenny (why? tim)
            var dot = doc.uri.lastIndexOf('.');
            if (dot < 1) {
              throw new Error('Rewriting file: No filename extension: ' + doc.uri);
            }
            var ext = doc.uri.slice(dot + 1);
            switch (ext) {
              case 'rdf':
              case 'owl': // Just my experence   ...@@ we should keep the format in which it was parsed
              case 'xml':
                documentString = sz.statementsToXML(newSts);
                break;
              case 'n3':
              case 'nt':
              case 'ttl':
                documentString = sz.statementsToN3(newSts);
                break;
              default:
                throw new Error('File extension .' + ext + ' not supported for data write');
            }
            // Write the new version back
            // create component for file writing
            console.log('Writing back: <<<' + documentString + '>>>');
            var filename = doc.uri.slice(7); // chop off   file://  leaving /path
            // console.log("Writeback: Filename: "+filename+"\n")
            var file = Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile);
            file.initWithPath(filename);
            if (!file.exists()) {
              throw new Error('Rewriting file <' + doc.uri + '> but it does not exist!');
            }
            // {
            // file.create( Components.interfaces.nsIFile.NORMAL_FILE_TYPE, 420)
            // }
            // create file output stream and use write/create/truncate mode
            // 0x02 writing, 0x08 create file, 0x20 truncate length if exist
            var stream = Components.classes['@mozilla.org/network/file-output-stream;1'].createInstance(Components.interfaces.nsIFileOutputStream);

            // Various JS systems object to 0666 in struct mode as dangerous
            stream.init(file, 0x02 | 0x08 | 0x20, parseInt('0666', 8), 0);

            // write data to file then close output stream
            stream.write(documentString, documentString.length);
            stream.close();

            for (i = 0; i < ds.length; i++) {
              kb.remove(ds[i]);
            }
            for (i = 0; i < is.length; i++) {
              kb.add(is[i].subject, is[i].predicate, is[i].object, doc);
            }
            callback(doc.uri, true, ''); // success!
          } catch (e) {
            callback(doc.uri, false, 'Exception trying to write back file <' + doc.uri + '>\n'
            // + tabulator.Util.stackString(e))
            );
          }
        } else {
          throw new Error("Unhandled edit method: '" + protocol + "' for " + doc);
        }
      }
    } catch (e) {
      callback(undefined, false, 'Exception in update: ' + e + '\n' + $rdf.Util.stackString(e));
    }
  }; // wnd update

  // This suitable for an inital creation of a document
  //
  // data:    string, or array of statements
  //
  sparql.prototype.put = function (doc, data, content_type, callback) {
    var documentString;
    var kb = this.store;

    if ((typeof data === 'undefined' ? 'undefined' : _typeof(data)) === _typeof('')) {
      documentString = data;
    } else {
      // serialize to te appropriate format
      var sz = Serializer(kb);
      sz.suggestNamespaces(kb.namespaces);
      sz.setBase(doc.uri);
      switch (content_type) {
        case 'application/rdf+xml':
          documentString = sz.statementsToXML(data);
          break;
        case 'text/n3':
        case 'text/turtle':
        case 'application/x-turtle': // Legacy
        case 'application/n3':
          // Legacy
          documentString = sz.statementsToN3(data);
          break;
        default:
          throw new Error('Content-type ' + content_type + ' not supported for data PUT');
      }
    }
    var xhr = Util.XMLHTTPFactory();
    xhr.options = {};
    xhr.onreadystatechange = function () {
      if (xhr.readyState === 4) {
        // formula from sparqlUpdate.js, what about redirects?
        var success = !xhr.status || xhr.status >= 200 && xhr.status < 300;
        if (success && typeof data !== 'string') {
          data.map(function (st) {
            kb.addStatement(st);
          });
          // kb.fetcher.requested[doc.uri] = true // as though fetched
        }
        if (success) {
          delete kb.fetcher.nonexistant[doc.uri];
          delete kb.fetcher.requested[doc.uri];
          // @@ later we can fake it has been requestd if put gives us the header sand we save them.
        }
        callback(doc.uri, success, xhr.responseText, xhr);
      }
    };
    xhr.open('PUT', doc.uri, true);
    xhr.setRequestHeader('Content-type', content_type);
    xhr.send(documentString);
  };

  // Reload a document.
  //
  // Fast and cheap, no metaata
  // Measure times for the document
  // Load it provisionally
  // Don't delete the statemenst before the load, or it will leave a broken document
  // in the meantime.

  sparql.prototype.reload = function (kb, doc, callback) {
    var startTime = Date.now();
    // force sets no-cache and
    kb.fetcher.nowOrWhenFetched(doc.uri, { force: true, noMeta: true, clearPreviousData: true }, function (ok, body, xhr) {
      if (!ok) {
        console.log('    ERROR reloading data: ' + body);
        callback(false, 'Error reloading data: ' + body, xhr);
      } else if (xhr.onErrorWasCalled || xhr.status !== 200) {
        console.log('    Non-HTTP error reloading data! onErrorWasCalled=' + xhr.onErrorWasCalled + ' status: ' + xhr.status);
        callback(false, 'Non-HTTP error reloading data: ' + body, xhr);
      } else {
        var elapsedTime_ms = Date.now() - startTime;
        if (!doc.reloadTime_total) doc.reloadTime_total = 0;
        if (!doc.reloadTime_count) doc.reloadTime_count = 0;
        doc.reloadTime_total += elapsedTime_ms;
        doc.reloadTime_count += 1;
        console.log('    Fetch took ' + elapsedTime_ms + 'ms, av. of ' + doc.reloadTime_count + ' = ' + doc.reloadTime_total / doc.reloadTime_count + 'ms.');
        callback(true);
      }
    });
  };

  sparql.prototype.oldReload = function (kb, doc, callback) {
    var g2 = graph(); // A separate store to hold the data as we load it
    var f2 = fetcher(g2);
    var startTime = Date.now();
    // force sets no-cache and
    f2.nowOrWhenFetched(doc.uri, { force: true, noMeta: true, clearPreviousData: true }, function (ok, body, xhr) {
      if (!ok) {
        console.log('    ERROR reloading data: ' + body);
        callback(false, 'Error reloading data: ' + body, xhr);
      } else if (xhr.onErrorWasCalled || xhr.status !== 200) {
        console.log('    Non-HTTP error reloading data! onErrorWasCalled=' + xhr.onErrorWasCalled + ' status: ' + xhr.status);
        callback(false, 'Non-HTTP error reloading data: ' + body, xhr);
      } else {
        var sts1 = kb.statementsMatching(undefined, undefined, undefined, doc).slice(); // Take a copy!!
        var sts2 = g2.statementsMatching(undefined, undefined, undefined, doc).slice();
        console.log('    replacing ' + sts1.length + ' with ' + sts2.length + ' out of total statements ' + kb.statements.length);
        kb.remove(sts1);
        kb.add(sts2);
        var elapsedTime_ms = Date.now() - startTime;
        if (sts2.length === 0) {
          console.log('????????????????? 0000000');
        }
        if (!doc.reloadTime_total) doc.reloadTime_total = 0;
        if (!doc.reloadTime_count) doc.reloadTime_count = 0;
        doc.reloadTime_total += elapsedTime_ms;
        doc.reloadTime_count += 1;
        console.log('    fetch took ' + elapsedTime_ms + 'ms, av. of ' + doc.reloadTime_count + ' = ' + doc.reloadTime_total / doc.reloadTime_count + 'ms.');
        callback(true);
      }
    });
  };
  return sparql;
}();

module.exports = UpdateManager;
},{"./data-factory":38,"./fetcher":41,"./indexed-formula":44,"./namespace":50,"./serializer":59,"./uri":64,"./util":65}],63:[function(_dereq_,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"); } }

/*
 * Updates-Via
 */
var namedNode = _dereq_('./data-factory').namedNode;

var UpdatesSocket = function () {
  function UpdatesSocket(parent, via) {
    _classCallCheck(this, UpdatesSocket);

    this.parent = parent;
    this.via = via;
    this.connected = false;
    this.pending = {};
    this.subscribed = {};
    this.socket = {};
    try {
      this.socket = new WebSocket(via);
      this.socket.onopen = this.onOpen;
      this.socket.onclose = this.onClose;
      this.socket.onmessage = this.onMessage;
      this.socket.onerror = this.onError;
    } catch (error) {
      this.onError(error);
    }
  }

  _createClass(UpdatesSocket, [{
    key: '_decode',
    value: function _decode(q) {
      var elt;
      var i;
      var k;
      var r;
      var ref;
      var ref1;
      var v;
      r = {};
      ref = function () {
        var j, len, ref, results;
        ref = q.split('&');
        results = [];
        for (j = 0, len = ref.length; j < len; j++) {
          elt = ref[j];
          results.push(elt.split('='));
        }
        return results;
      }();
      for (i in ref) {
        elt = ref[i];
        ref1 = [decodeURIComponent(elt[0]), decodeURIComponent(elt[1])];
        k = ref1[0];
        v = ref1[1];
        if (r[k] == null) {
          r[k] = [];
        }
        r[k].push(v);
      }
      return r;
    }
  }, {
    key: '_send',
    value: function _send(method, uri, data) {
      var base, message;
      message = [method, uri, data].join(' ');
      return typeof (base = this.socket).send === 'function' ? base.send(message) : void 0;
    }
  }, {
    key: '_subscribe',
    value: function _subscribe(uri) {
      this._send('sub', uri, '');
      this.subscribed[uri] = true;
      return this.subscribed[uri];
    }
  }, {
    key: 'onClose',
    value: function onClose(e) {
      var uri;
      this.connected = false;
      for (uri in this.subscribed) {
        this.pending[uri] = true;
      }
      this.subscribed = {};
      return this.subscribed;
    }
  }, {
    key: 'onError',
    value: function onError(e) {
      throw new Error('onError' + e);
    }
  }, {
    key: 'onMessage',
    value: function onMessage(e) {
      var base, message;
      message = e.data.split(' ');
      if (message[0] === 'ping') {
        return typeof (base = this.socket).send === 'function' ? base.send('pong ' + message.slice(1).join(' ')) : void 0;
      } else if (message[0] === 'pub') {
        return this.parent.onUpdate(message[1], this._decode(message[2]));
      }
    }
  }, {
    key: 'onOpen',
    value: function onOpen(e) {
      var results, uri;
      this.connected = true;
      results = [];
      for (uri in this.pending) {
        delete this.pending[uri];
        results.push(this._subscribe(uri));
      }
      return results;
    }
  }, {
    key: 'subscribe',
    value: function subscribe(uri) {
      if (this.connected) {
        return this._subscribe(uri);
      } else {
        this.pending[uri] = true;
        return this.pending[uri];
      }
    }
  }]);

  return UpdatesSocket;
}();

var UpdatesVia = function () {
  function UpdatesVia(fetcher) {
    _classCallCheck(this, UpdatesVia);

    this.fetcher = fetcher;
    this.graph = {};
    this.via = {};
    this.fetcher.addCallback('headers', this.onHeaders);
  }

  _createClass(UpdatesVia, [{
    key: 'onHeaders',
    value: function onHeaders(d) {
      var etag, uri, via;
      if (d.headers == null) {
        return true;
      }
      if (typeof WebSocket === 'undefined' || WebSocket === null) {
        return true;
      }
      etag = d.headers['etag'];
      via = d.headers['updates-via'];
      uri = d.uri;
      if (etag && via) {
        this.graph[uri] = {
          etag: etag,
          via: via
        };
        this.register(via, uri);
      }
      return true;
    }
  }, {
    key: 'onUpdate',
    value: function onUpdate(uri, d) {
      return this.fetcher.refresh(namedNode(uri));
    }
  }, {
    key: 'register',
    value: function register(via, uri) {
      if (this.via[via] == null) {
        this.via[via] = new UpdatesSocket(this, via);
      }
      return this.via[via].subscribe(uri);
    }
  }]);

  return UpdatesVia;
}();

module.exports.UpdatesSocket = UpdatesSocket;
module.exports.UpdatesVia = UpdatesVia;
},{"./data-factory":38}],64:[function(_dereq_,module,exports){
'use strict';

/*
 * Implements URI-specific functions
 *
 * See RFC 2386
 *
 * See also:
 *   http://www.w3.org/2005/10/ajaw/uri.js
 *   http://www.w3.org/2000/10/swap/uripath.py
 *
 */
var alert = alert || console.log;

module.exports.docpart = docpart;
module.exports.document = document;
module.exports.hostpart = hostpart;
module.exports.join = join;
module.exports.protocol = protocol;
module.exports.refTo = refTo;

var NamedNode = _dereq_('./named-node');

function docpart(uri) {
  var i;
  i = uri.indexOf('#');
  if (i < 0) {
    return uri;
  } else {
    return uri.slice(0, i);
  }
}

function document(x) {
  return new NamedNode(docpart(x.uri));
}

function hostpart(u) {
  var m = /[^\/]*\/\/([^\/]*)\//.exec(u);
  if (m) {
    return m[1];
  } else {
    return '';
  }
}

function join(given, base) {
  var baseColon, baseScheme, baseSingle;
  var colon, lastSlash, path;
  var baseHash = base.indexOf('#');
  if (baseHash > 0) {
    base = base.slice(0, baseHash);
  }
  if (given.length === 0) {
    return base;
  }
  if (given.indexOf('#') === 0) {
    return base + given;
  }
  colon = given.indexOf(':');
  if (colon >= 0) {
    return given;
  }
  baseColon = base.indexOf(':');
  if (base.length === 0) {
    return given;
  }
  if (baseColon < 0) {
    alert('Invalid base: ' + base + ' in join with given: ' + given);
    return given;
  }
  baseScheme = base.slice(0, +baseColon + 1 || 9e9);
  if (given.indexOf('//') === 0) {
    return baseScheme + given;
  }
  if (base.indexOf('//', baseColon) === baseColon + 1) {
    baseSingle = base.indexOf('/', baseColon + 3);
    if (baseSingle < 0) {
      if (base.length - baseColon - 3 > 0) {
        return base + '/' + given;
      } else {
        return baseScheme + given;
      }
    }
  } else {
    baseSingle = base.indexOf('/', baseColon + 1);
    if (baseSingle < 0) {
      if (base.length - baseColon - 1 > 0) {
        return base + '/' + given;
      } else {
        return baseScheme + given;
      }
    }
  }
  if (given.indexOf('/') === 0) {
    return base.slice(0, baseSingle) + given;
  }
  path = base.slice(baseSingle);
  lastSlash = path.lastIndexOf('/');
  if (lastSlash < 0) {
    return baseScheme + given;
  }
  if (lastSlash >= 0 && lastSlash < path.length - 1) {
    path = path.slice(0, +lastSlash + 1 || 9e9);
  }
  path += given;
  while (path.match(/[^\/]*\/\.\.\//)) {
    path = path.replace(/[^\/]*\/\.\.\//, '');
  }
  path = path.replace(/\.\//g, '');
  path = path.replace(/\/\.$/, '/');
  return base.slice(0, baseSingle) + path;
}

function protocol(uri) {
  var i;
  i = uri.indexOf(':');
  if (i < 0) {
    return null;
  } else {
    return uri.slice(0, i);
  }
}

function refTo(base, uri) {
  var c, i, k, l, len, len1, n, o, p, q, ref, ref1, s;
  var commonHost = new RegExp('^[-_a-zA-Z0-9.]+:(//[^/]*)?/[^/]*$');
  if (!base) {
    return uri;
  }
  if (base === uri) {
    return '';
  }
  for (i = o = 0, len = uri.length; o < len; i = ++o) {
    c = uri[i];
    if (c !== base[i]) {
      break;
    }
  }
  if (base.slice(0, i).match(commonHost)) {
    k = uri.indexOf('//');
    if (k < 0) {
      k = -2;
    }
    l = uri.indexOf('/', k + 2);
    if (uri[l + 1] !== '/' && base[l + 1] !== '/' && uri.slice(0, l) === base.slice(0, l)) {
      return uri.slice(l);
    }
  }
  if (uri[i] === '#' && base.length === i) {
    return uri.slice(i);
  }
  while (i > 0 && uri[i - 1] !== '/') {
    i--;
  }
  if (i < 3) {
    return uri;
  }
  if (base.indexOf('//', i - 2) > 0 || uri.indexOf('//', i - 2) > 0) {
    return uri;
  }
  if (base.indexOf(':', i) > 0) {
    return uri;
  }
  n = 0;
  ref = base.slice(i);
  for (p = 0, len1 = ref.length; p < len1; p++) {
    c = ref[p];
    if (c === '/') {
      n++;
    }
  }
  if (n === 0 && i < uri.length && uri[i] === '#') {
    return './' + uri.slice(i);
  }
  if (n === 0 && i === uri.length) {
    return './';
  }
  s = '';
  if (n > 0) {
    for (q = 1, ref1 = n; ref1 >= 1 ? q <= ref1 : q >= ref1; ref1 >= 1 ? ++q : --q) {
      s += '../';
    }
  }
  return s + uri.slice(i);
}
},{"./named-node":49}],65:[function(_dereq_,module,exports){
'use strict';

/**
 * Utility functions for $rdf
 * @module util
 */
var docpart = _dereq_('./uri').docpart;
var log = _dereq_('./log');
var NamedNode = _dereq_('./named-node');

module.exports.AJAR_handleNewTerm = ajarHandleNewTerm;
module.exports.ArrayIndexOf = arrayIndexOf;
module.exports.callbackify = callbackify;
module.exports.dtstamp = dtstamp;
module.exports.DOMParserFactory = domParser;
module.exports.domToString = domToString;
module.exports.dumpNode = dumpNode;
module.exports.getHTTPHeaders = getHTTPHeaders;
module.exports.heavyCompare = heavyCompare;
module.exports.heavyCompareSPO = heavyCompareSPO;
module.exports.output = output;
module.exports.parseXML = parseXML;
module.exports.RDFArrayRemove = rdfArrayRemove;
module.exports.stackString = stackString;
module.exports.string_startswith = stringStartsWith;
module.exports.string = {};
module.exports.string.template = stringTemplate;
module.exports.uri = _dereq_('./uri'); // TODO: Remove this mixed usage
// module.exports.variablesIn = variablesIn
module.exports.XMLHTTPFactory = xhr;
module.exports.log = log;

module.exports.mediaTypeClass = function (mediaType) {
  mediaType = mediaType.split(';')[0].trim(); // remove media type parameters
  return new NamedNode('http://www.w3.org/ns/iana/media-types/' + mediaType + '#Resource');
};

/**
 * Loads ontologies of the data we load (this is the callback from the kb to
 * the fetcher). Exports as `AJAR_handleNewTerm`
 */
function ajarHandleNewTerm(kb, p, requestedBy) {
  var sf = null;
  if (typeof kb.fetcher !== 'undefined') {
    sf = kb.fetcher;
  } else {
    return;
  }
  if (p.termType !== 'NamedNode') return;
  var docuri = docpart(p.uri);
  var fixuri;
  if (p.uri.indexOf('#') < 0) {
    // No hash
    // @@ major hack for dbpedia Categories, which spread indefinitely
    if (stringStartsWith(p.uri, 'http://dbpedia.org/resource/Category:')) return;

    /*
      if (string_startswith(p.uri, 'http://xmlns.com/foaf/0.1/')) {
      fixuri = "http://dig.csail.mit.edu/2005/ajar/ajaw/test/foaf"
      // should give HTTP 303 to ontology -- now is :-)
      } else
    */
    if (stringStartsWith(p.uri, 'http://purl.org/dc/elements/1.1/') || stringStartsWith(p.uri, 'http://purl.org/dc/terms/')) {
      fixuri = 'http://dublincore.org/2005/06/13/dcq';
      // dc fetched multiple times
    } else if (stringStartsWith(p.uri, 'http://xmlns.com/wot/0.1/')) {
      fixuri = 'http://xmlns.com/wot/0.1/index.rdf';
    } else if (stringStartsWith(p.uri, 'http://web.resource.org/cc/')) {
      //            log.warn("creative commons links to html instead of rdf. doesn't seem to content-negotiate.")
      fixuri = 'http://web.resource.org/cc/schema.rdf';
    }
  }
  if (fixuri) {
    docuri = fixuri;
  }
  if (sf && sf.getState(docuri) !== 'unrequested') return;

  if (fixuri) {
    // only give warning once: else happens too often
    log.warn('Assuming server still broken, faking redirect of <' + p.uri + '> to <' + docuri + '>');
  }
  sf.requestURI(docuri, requestedBy);
}

/**
 * Exports as `ArrayIndexOf`.
 */
function arrayIndexOf(arr, item, i) {
  i || (i = 0);
  var length = arr.length;
  if (i < 0) i = length + i;
  for (; i < length; i++) {
    if (arr[i] === item) {
      return i;
    }
  }
  return -1;
}

/**
 * Adds callback functionality to an object.
 * Callback functions are indexed by a 'hook' string.
 * They return true if they want to be called again.
 * @method callbackify
 * @param obj {Object}
 * @param callbacks {Array<Function>}
 */
function callbackify(obj, callbacks) {
  obj.callbacks = {};
  for (var x = callbacks.length - 1; x >= 0; x--) {
    obj.callbacks[callbacks[x]] = [];
  }

  obj.addHook = function (hook) {
    if (!obj.callbacks[hook]) {
      obj.callbacks[hook] = [];
    }
  };

  obj.addCallback = function (hook, func) {
    obj.callbacks[hook].push(func);
  };

  obj.removeCallback = function (hook, funcName) {
    for (var i = 0; i < obj.callbacks[hook].length; i++) {
      if (obj.callbacks[hook][i].name === funcName) {
        obj.callbacks[hook].splice(i, 1);
        return true;
      }
    }
    return false;
  };

  obj.insertCallback = function (hook, func) {
    obj.callbacks[hook].unshift(func);
  };

  obj.fireCallbacks = function (hook, args) {
    var newCallbacks = [];
    var replaceCallbacks = [];
    var len = obj.callbacks[hook].length;
    var x;
    // log.info('!@$ Firing '+hook+' call back with length'+len)
    for (x = len - 1; x >= 0; x--) {
      // log.info('@@ Firing '+hook+' callback '+ obj.callbacks[hook][x])
      if (obj.callbacks[hook][x].apply(obj, args)) {
        newCallbacks.push(obj.callbacks[hook][x]);
      }
    }

    for (x = newCallbacks.length - 1; x >= 0; x--) {
      replaceCallbacks.push(newCallbacks[x]);
    }

    for (x = len; x < obj.callbacks[hook].length; x++) {
      replaceCallbacks.push(obj.callbacks[hook][x]);
    }

    obj.callbacks[hook] = replaceCallbacks;
  };
}

/**
 * Returns a DOM parser based on current runtime environment.
 * Exports as `DOMParserFactory`
 */
function domParser() {
  if (tabulator && tabulator.isExtension) {
    return Components.classes['@mozilla.org/xmlextras/domparser;1'].getService(Components.interfaces.nsIDOMParser);
  } else if (window.DOMParser) {
    return new DOMParser();
  } else if (window.ActiveXObject) {
    return new ActiveXObject('Microsoft.XMLDOM');
  } else {
    return false;
  }
}

// From https://github.com/linkeddata/dokieli
function domToString(node, options) {
  options = options || {};
  var selfClosing = [];
  if ('selfClosing' in options) {
    options.selfClosing.split(' ').forEach(function (n) {
      selfClosing[n] = true;
    });
  }
  var skipAttributes = [];
  if ('skipAttributes' in options) {
    options.skipAttributes.split(' ').forEach(function (n) {
      skipAttributes[n] = true;
    });
  }
  return dumpNode(node, options, selfClosing, skipAttributes);
}

function dumpNode(node, options, selfClosing, skipAttributes) {
  var i;
  var out = '';
  var noEsc = [false];
  if (typeof node.nodeType === 'undefined') return out;
  if (node.nodeType === 1) {
    if (node.hasAttribute('class') && 'classWithChildText' in options && node.matches(options.classWithChildText.class)) {
      out += node.querySelector(options.classWithChildText.element).textContent;
    } else if (!('skipNodeWithClass' in options && node.matches('.' + options.skipNodeWithClass))) {
      var ename = node.nodeName.toLowerCase();
      out += '<' + ename;

      var attrList = [];
      for (i = node.attributes.length - 1; i >= 0; i--) {
        var atn = node.attributes[i];
        if (skipAttributes.length > 0 && skipAttributes[atn.name]) continue;
        if (/^\d+$/.test(atn.name)) continue;
        if (atn.name === 'class' && 'replaceClassItemWith' in options && atn.value.split(' ').indexOf(options.replaceClassItemWith.source) > -1) {
          var re = new RegExp(options.replaceClassItemWith.source, 'g');
          atn.value = atn.value.replace(re, options.replaceClassItemWith.target).trim();
        }
        if (!(atn.name === 'class' && 'skipClassWithValue' in options && options.skipClassWithValue === atn.value)) {
          attrList.push(atn.name + '=\'' + atn.value.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/'/g, '&quot;') + '\'');
        }
      }
      if (attrList.length > 0) {
        if ('sortAttributes' in options && options.sortAttributes) {
          attrList.sort(function (a, b) {
            return a.toLowerCase().localeCompare(b.toLowerCase());
          });
        }
        out += ' ' + attrList.join(' ');
      }
      if (selfClosing[ename]) {
        out += ' />';
      } else {
        out += '>';
        out += ename === 'html' ? '\n  ' : '';
        noEsc.push(ename === 'style' || ename === 'script');
        for (i = 0; i < node.childNodes.length; i++) {
          out += dumpNode(node.childNodes[i]);
        }noEsc.pop();
        out += ename === 'body' ? '</' + ename + '>' + '\n' : '</' + ename + '>';
      }
    }
  } else if (node.nodeType === 8) {
    // FIXME: If comments are not tabbed in source, a new line is not prepended
    out += '<!--' + node.nodeValue + '-->';
  } else if (node.nodeType === 3 || node.nodeType === 4) {
    // XXX: Remove new lines which were added after DOM ready
    var nl = node.nodeValue.replace(/\n+$/, '');
    out += noEsc[noEsc.length - 1] ? nl : nl.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  } else {
    console.log('Warning; Cannot handle serialising nodes of type: ' + node.nodeType);
    console.log(node);
  }
  return out;
}

function dtstamp() {
  var now = new Date();
  var year = now.getYear() + 1900;
  var month = now.getMonth() + 1;
  var day = now.getDate();
  var hour = now.getUTCHours();
  var minute = now.getUTCMinutes();
  var second = now.getSeconds();
  if (month < 10) month = '0' + month;
  if (day < 10) day = '0' + day;
  if (hour < 10) hour = '0' + hour;
  if (minute < 10) minute = '0' + minute;
  if (second < 10) second = '0' + second;
  return year + '-' + month + '-' + day + 'T' + hour + ':' + minute + ':' + second + 'Z';
}

/**
 * Returns a hashmap of HTTP headers and their values.
 * @@ Bug: Assumes that each header only occurs once.
 * Also note that a , in a header value is just the same as having two headers.
 */
function getHTTPHeaders(xhr) {
  var lines = xhr.getAllResponseHeaders().split('\n');
  var headers = {};
  var last;
  for (var x = 0; x < lines.length; x++) {
    if (lines[x].length > 0) {
      var pair = lines[x].split(': ');
      if (typeof pair[1] === 'undefined') {
        // continuation
        headers[last] += '\n' + pair[0];
      } else {
        last = pair[0].toLowerCase();
        headers[last] = pair[1];
      }
    }
  }
  return headers;
}

/**
 * Compares statements (heavy comparison for repeatable canonical ordering)
 */
function heavyCompare(x, y, g, uriMap) {
  var nonBlank = function nonBlank(x) {
    return x.termType === 'BlankNode' ? null : x;
  };
  var signature = function signature(x) {
    var lis = g.statementsMatching(x).map(function (st) {
      return '' + nonBlank(st.subject) + ' ' + nonBlank(st.predicate) + ' ' + nonBlank(st.object);
    }).concat(g.statementsMatching(undefined, undefined, x).map(function (st) {
      return '' + nonBlank(st.subject) + ' ' + nonBlank(st.predicate) + ' ' + nonBlank(st.object);
    }));
    lis.sort();
    return lis.join('\n');
  };
  if (x.termType === 'BlankNode' && y.termType === 'BlankNode') {
    if (x.compareTerm(y) === 0) return 0; // Same
    if (signature(x) > signature(y)) return +1;
    if (signature(x) < signature(y)) return -1;
    return x.compareTerm(y); // Too bad -- this order not canonical.
    // throw "different bnodes indistinquishable for sorting"
  } else {
    if (uriMap && x.uri && y.uri) {
      return (uriMap[x.uri] || x.uri).localeCompare(uriMap[y.uri] || y.uri);
    }
    return x.compareTerm(y);
  }
}

function heavyCompareSPO(x, y, g, uriMap) {
  return heavyCompare(x.subject, y.subject, g, uriMap) || heavyCompare(x.predicate, y.predicate, g, uriMap) || heavyCompare(x.object, y.object, g, uriMap);
}

/**
 * Defines a simple debugging function
 * @method output
 * @param o {String}
 */
function output(o) {
  var k = document.createElement('div');
  k.textContent = o;
  document.body.appendChild(k);
}

/**
 * Returns a DOM from parsex XML.
 */
function parseXML(str, options) {
  var dparser;
  options = options || {};
  if (typeof tabulator !== 'undefined' && tabulator.isExtension) {
    dparser = Components.classes['@mozilla.org/xmlextras/domparser;1'].getService(Components.interfaces.nsIDOMParser);
  } else if (typeof module !== 'undefined' && module && module.exports) {
    // Node.js
    // var libxmljs = require('libxmljs'); // Was jsdom before 2012-01 then libxmljs but that nonstandard
    // return libxmljs.parseXmlString(str)

    // var jsdom = require('jsdom');   2012-01 though 2015-08 no worky with new Node
    // var dom = jsdom.jsdom(str, undefined, {} );// html, level, options

    var DOMParser = _dereq_('xmldom').DOMParser; // 2015-08 on https://github.com/jindw/xmldom
    var dom = new DOMParser().parseFromString(str, options.contentType || 'application/xhtml+xml');
    return dom;
  } else {
    if (typeof window !== 'undefined' && window.DOMParser) {
      dparser = new window.DOMParser(); // seems to actually work
    } else {
      dparser = new DOMParser(); // Doc says this works
    }
  }
  return dparser.parseFromString(str, 'application/xml');
}

/**
 * Removes all statements equal to x from a
 * Exports as `RDFArrayRemove`
 */
function rdfArrayRemove(a, x) {
  for (var i = 0; i < a.length; i++) {
    // TODO: This used to be the following, which didnt always work..why
    // if(a[i] === x)
    if (a[i].subject.sameTerm(x.subject) && a[i].predicate.sameTerm(x.predicate) && a[i].object.sameTerm(x.object) && a[i].why.sameTerm(x.why)) {
      a.splice(i, 1);
      return;
    }
  }
  throw new Error('RDFArrayRemove: Array did not contain ' + x + ' ' + x.why);
}

function stringStartsWith(str, pref) {
  // missing library routines
  return str.slice(0, pref.length) === pref;
}

/**
 * C++, python style %s -> subs
 */
function stringTemplate(base, subs) {
  var baseA = base.split('%s');
  var result = '';
  for (var i = 0; i < subs.length; i++) {
    subs[i] += '';
    result += baseA[i] + subs[i];
  }
  return result + baseA.slice(subs.length).join();
}

// Stack dump on errors - to pass errors back

function stackString(e) {
  var str = '' + e + '\n';
  if (!e.stack) {
    return str + 'No stack available.\n';
  }
  var lines = e.stack.toString().split('\n');
  var toprint = [];
  for (var i = 0; i < lines.length; i++) {
    var line = lines[i];
    if (line.indexOf('ecmaunit.js') > -1) {
      // remove useless bit of traceback
      break;
    }
    if (line.charAt(0) == '(') {
      line = 'function' + line;
    }
    var chunks = line.split('@');
    toprint.push(chunks);
  }
  // toprint.reverse();  No - I prefer the latest at the top by the error message -tbl

  for (var i = 0; i < toprint.length; i++) {
    str += '  ' + toprint[i][1] + '\n    ' + toprint[i][0];
  }
  return str;
}

/**
 * Finds the variables in a graph (shallow).
 * Note: UNUSED.
 */
// function variablesIn (g) {
//   for (var i = 0; i < g.statements.length; i++) {
//     var st = g.statatements[i]
//     var vars = {}
//     if (st.subject instanceof $rdf.Variable) {
//       vars[st.subject.toNT()] = true
//     }
//     if (st.predicate instanceof $rdf.Variable) {
//       vars[st.predicate.toNT()] = true
//     }
//     if (st.object instanceof $rdf.Variable) {
//       vars[st.object.toNT()] = true
//     }
//   }
//   return vars
// }

/**
 * Returns an XMLHttpRequest object for the appropriate current runtime
 * environment. Exports as `XMLHTTPFactory`
 */
function xhr() {
  var XMLHttpRequest;
  // Running inside the Tabulator Firefox extension
  if (typeof tabulator !== 'undefined' && tabulator.isExtension) {
    // Cannot use XMLHttpRequest natively, must request it through SDK
    return Components.classes['@mozilla.org/xmlextras/xmlhttprequest;1'].createInstance().QueryInterface(Components.interfaces.nsIXMLHttpRequest);
  } else if (typeof window !== 'undefined' && 'XMLHttpRequest' in window) {
    // Running inside the browser
    XMLHttpRequest = window.XMLHttpRequest;
    return new XMLHttpRequest();
  } else if (typeof module !== 'undefined' && module && module.exports) {
    // Running in Node.js
    XMLHttpRequest = _dereq_('xmlhttprequest').XMLHttpRequest;
    return new XMLHttpRequest();
  } else if (window.ActiveXObject) {
    try {
      return new ActiveXObject('Msxml2.XMLHTTP');
    } catch (e) {
      return new ActiveXObject('Microsoft.XMLHTTP');
    }
  } else {
    return false;
  }
}
},{"./log":47,"./named-node":49,"./uri":64,"xmldom":79,"xmlhttprequest":82}],66:[function(_dereq_,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"); } }

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; }

var ClassOrder = _dereq_('./class-order');
var Node = _dereq_('./node');
var Uri = _dereq_('./uri');

/**
 * Variables are placeholders used in patterns to be matched.
 * In cwm they are symbols which are the formula's list of quantified variables.
 * In sparql they are not visibly URIs.  Here we compromise, by having
 * a common special base URI for variables. Their names are uris,
 * but the ? notation has an implicit base uri of 'varid:'
 * @class Variable
 */

var Variable = function (_Node) {
  _inherits(Variable, _Node);

  function Variable() {
    var name = arguments.length <= 0 || arguments[0] === undefined ? '' : arguments[0];

    _classCallCheck(this, Variable);

    var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Variable).call(this));

    _this.termType = Variable.termType;
    _this.value = name;
    _this.base = 'varid:';
    _this.uri = Uri.join(name, _this.base);
    return _this;
  }

  _createClass(Variable, [{
    key: 'equals',
    value: function equals(other) {
      if (!other) {
        return false;
      }
      return this.termType === other.termType && this.value === other.value;
    }
  }, {
    key: 'hashString',
    value: function hashString() {
      return this.toString();
    }
  }, {
    key: 'substitute',
    value: function substitute(bindings) {
      var ref;
      return (ref = bindings[this.toNT()]) != null ? ref : this;
    }
  }, {
    key: 'toString',
    value: function toString() {
      if (this.uri.slice(0, this.base.length) === this.base) {
        return '?' + this.uri.slice(this.base.length);
      }
      return '?' + this.uri;
    }
  }]);

  return Variable;
}(Node);

Variable.termType = 'Variable';
Variable.prototype.classOrder = ClassOrder['Variable'];
Variable.prototype.isVar = 1;

module.exports = Variable;
},{"./class-order":35,"./node":51,"./uri":64}],67:[function(_dereq_,module,exports){
'use strict';

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var NamedNode = _dereq_('./named-node');

var XSD = function XSD() {
  _classCallCheck(this, XSD);
};

XSD.boolean = new NamedNode('http://www.w3.org/2001/XMLSchema#boolean');
XSD.dateTime = new NamedNode('http://www.w3.org/2001/XMLSchema#dateTime');
XSD.decimal = new NamedNode('http://www.w3.org/2001/XMLSchema#decimal');
XSD.double = new NamedNode('http://www.w3.org/2001/XMLSchema#double');
XSD.integer = new NamedNode('http://www.w3.org/2001/XMLSchema#integer');
XSD.langString = new NamedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#langString');
XSD.string = new NamedNode('http://www.w3.org/2001/XMLSchema#string');

module.exports = XSD;
},{"./named-node":49}],68:[function(_dereq_,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

// a duplex stream is just a stream that is both readable and writable.
// Since JS doesn't have multiple prototypal inheritance, this class
// prototypally inherits from Readable, and then parasitically from
// Writable.

module.exports = Duplex;
var inherits = _dereq_('inherits');
var setImmediate = _dereq_('process/browser.js').nextTick;
var Readable = _dereq_('./readable.js');
var Writable = _dereq_('./writable.js');

inherits(Duplex, Readable);

Duplex.prototype.write = Writable.prototype.write;
Duplex.prototype.end = Writable.prototype.end;
Duplex.prototype._write = Writable.prototype._write;

function Duplex(options) {
  if (!(this instanceof Duplex))
    return new Duplex(options);

  Readable.call(this, options);
  Writable.call(this, options);

  if (options && options.readable === false)
    this.readable = false;

  if (options && options.writable === false)
    this.writable = false;

  this.allowHalfOpen = true;
  if (options && options.allowHalfOpen === false)
    this.allowHalfOpen = false;

  this.once('end', onend);
}

// the no-half-open enforcer
function onend() {
  // if we allow half-open state, or if the writable side ended,
  // then we're ok.
  if (this.allowHalfOpen || this._writableState.ended)
    return;

  // no more data can be written.
  // But allow more writes to happen in this tick.
  var self = this;
  setImmediate(function () {
    self.end();
  });
}

},{"./readable.js":72,"./writable.js":74,"inherits":18,"process/browser.js":70}],69:[function(_dereq_,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

module.exports = Stream;

var EE = _dereq_('events').EventEmitter;
var inherits = _dereq_('inherits');

inherits(Stream, EE);
Stream.Readable = _dereq_('./readable.js');
Stream.Writable = _dereq_('./writable.js');
Stream.Duplex = _dereq_('./duplex.js');
Stream.Transform = _dereq_('./transform.js');
Stream.PassThrough = _dereq_('./passthrough.js');

// Backwards-compat with node 0.4.x
Stream.Stream = Stream;



// old-style streams.  Note that the pipe method (the only relevant
// part of this class) is overridden in the Readable class.

function Stream() {
  EE.call(this);
}

Stream.prototype.pipe = function(dest, options) {
  var source = this;

  function ondata(chunk) {
    if (dest.writable) {
      if (false === dest.write(chunk) && source.pause) {
        source.pause();
      }
    }
  }

  source.on('data', ondata);

  function ondrain() {
    if (source.readable && source.resume) {
      source.resume();
    }
  }

  dest.on('drain', ondrain);

  // If the 'end' option is not supplied, dest.end() will be called when
  // source gets the 'end' or 'close' events.  Only dest.end() once.
  if (!dest._isStdio && (!options || options.end !== false)) {
    source.on('end', onend);
    source.on('close', onclose);
  }

  var didOnEnd = false;
  function onend() {
    if (didOnEnd) return;
    didOnEnd = true;

    dest.end();
  }


  function onclose() {
    if (didOnEnd) return;
    didOnEnd = true;

    if (typeof dest.destroy === 'function') dest.destroy();
  }

  // don't leave dangling pipes when there are errors.
  function onerror(er) {
    cleanup();
    if (EE.listenerCount(this, 'error') === 0) {
      throw er; // Unhandled stream error in pipe.
    }
  }

  source.on('error', onerror);
  dest.on('error', onerror);

  // remove all the event listeners that were added.
  function cleanup() {
    source.removeListener('data', ondata);
    dest.removeListener('drain', ondrain);

    source.removeListener('end', onend);
    source.removeListener('close', onclose);

    source.removeListener('error', onerror);
    dest.removeListener('error', onerror);

    source.removeListener('end', cleanup);
    source.removeListener('close', cleanup);

    dest.removeListener('close', cleanup);
  }

  source.on('end', cleanup);
  source.on('close', cleanup);

  dest.on('close', cleanup);

  dest.emit('pipe', source);

  // Allow for unix-like usage: A.pipe(B).pipe(C)
  return dest;
};

},{"./duplex.js":68,"./passthrough.js":71,"./readable.js":72,"./transform.js":73,"./writable.js":74,"events":15,"inherits":18}],70:[function(_dereq_,module,exports){
// shim for using process in browser

var process = module.exports = {};

process.nextTick = (function () {
    var canSetImmediate = typeof window !== 'undefined'
    && window.setImmediate;
    var canPost = typeof window !== 'undefined'
    && window.postMessage && window.addEventListener
    ;

    if (canSetImmediate) {
        return function (f) { return window.setImmediate(f) };
    }

    if (canPost) {
        var queue = [];
        window.addEventListener('message', function (ev) {
            var source = ev.source;
            if ((source === window || source === null) && ev.data === 'process-tick') {
                ev.stopPropagation();
                if (queue.length > 0) {
                    var fn = queue.shift();
                    fn();
                }
            }
        }, true);

        return function nextTick(fn) {
            queue.push(fn);
            window.postMessage('process-tick', '*');
        };
    }

    return function nextTick(fn) {
        setTimeout(fn, 0);
    };
})();

process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];

process.binding = function (name) {
    throw new Error('process.binding is not supported');
}

// TODO(shtylman)
process.cwd = function () { return '/' };
process.chdir = function (dir) {
    throw new Error('process.chdir is not supported');
};

},{}],71:[function(_dereq_,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

// a passthrough stream.
// basically just the most minimal sort of Transform stream.
// Every written chunk gets output as-is.

module.exports = PassThrough;

var Transform = _dereq_('./transform.js');
var inherits = _dereq_('inherits');
inherits(PassThrough, Transform);

function PassThrough(options) {
  if (!(this instanceof PassThrough))
    return new PassThrough(options);

  Transform.call(this, options);
}

PassThrough.prototype._transform = function(chunk, encoding, cb) {
  cb(null, chunk);
};

},{"./transform.js":73,"inherits":18}],72:[function(_dereq_,module,exports){
(function (process){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

module.exports = Readable;
Readable.ReadableState = ReadableState;

var EE = _dereq_('events').EventEmitter;
var Stream = _dereq_('./index.js');
var Buffer = _dereq_('buffer').Buffer;
var setImmediate = _dereq_('process/browser.js').nextTick;
var StringDecoder;

var inherits = _dereq_('inherits');
inherits(Readable, Stream);

function ReadableState(options, stream) {
  options = options || {};

  // the point at which it stops calling _read() to fill the buffer
  // Note: 0 is a valid value, means "don't call _read preemptively ever"
  var hwm = options.highWaterMark;
  this.highWaterMark = (hwm || hwm === 0) ? hwm : 16 * 1024;

  // cast to ints.
  this.highWaterMark = ~~this.highWaterMark;

  this.buffer = [];
  this.length = 0;
  this.pipes = null;
  this.pipesCount = 0;
  this.flowing = false;
  this.ended = false;
  this.endEmitted = false;
  this.reading = false;

  // In streams that never have any data, and do push(null) right away,
  // the consumer can miss the 'end' event if they do some I/O before
  // consuming the stream.  So, we don't emit('end') until some reading
  // happens.
  this.calledRead = false;

  // a flag to be able to tell if the onwrite cb is called immediately,
  // or on a later tick.  We set this to true at first, becuase any
  // actions that shouldn't happen until "later" should generally also
  // not happen before the first write call.
  this.sync = true;

  // whenever we return null, then we set a flag to say
  // that we're awaiting a 'readable' event emission.
  this.needReadable = false;
  this.emittedReadable = false;
  this.readableListening = false;


  // object stream flag. Used to make read(n) ignore n and to
  // make all the buffer merging and length checks go away
  this.objectMode = !!options.objectMode;

  // Crypto is kind of old and crusty.  Historically, its default string
  // encoding is 'binary' so we have to make this configurable.
  // Everything else in the universe uses 'utf8', though.
  this.defaultEncoding = options.defaultEncoding || 'utf8';

  // when piping, we only care about 'readable' events that happen
  // after read()ing all the bytes and not getting any pushback.
  this.ranOut = false;

  // the number of writers that are awaiting a drain event in .pipe()s
  this.awaitDrain = 0;

  // if true, a maybeReadMore has been scheduled
  this.readingMore = false;

  this.decoder = null;
  this.encoding = null;
  if (options.encoding) {
    if (!StringDecoder)
      StringDecoder = _dereq_('string_decoder').StringDecoder;
    this.decoder = new StringDecoder(options.encoding);
    this.encoding = options.encoding;
  }
}

function Readable(options) {
  if (!(this instanceof Readable))
    return new Readable(options);

  this._readableState = new ReadableState(options, this);

  // legacy
  this.readable = true;

  Stream.call(this);
}

// Manually shove something into the read() buffer.
// This returns true if the highWaterMark has not been hit yet,
// similar to how Writable.write() returns true if you should
// write() some more.
Readable.prototype.push = function(chunk, encoding) {
  var state = this._readableState;

  if (typeof chunk === 'string' && !state.objectMode) {
    encoding = encoding || state.defaultEncoding;
    if (encoding !== state.encoding) {
      chunk = new Buffer(chunk, encoding);
      encoding = '';
    }
  }

  return readableAddChunk(this, state, chunk, encoding, false);
};

// Unshift should *always* be something directly out of read()
Readable.prototype.unshift = function(chunk) {
  var state = this._readableState;
  return readableAddChunk(this, state, chunk, '', true);
};

function readableAddChunk(stream, state, chunk, encoding, addToFront) {
  var er = chunkInvalid(state, chunk);
  if (er) {
    stream.emit('error', er);
  } else if (chunk === null || chunk === undefined) {
    state.reading = false;
    if (!state.ended)
      onEofChunk(stream, state);
  } else if (state.objectMode || chunk && chunk.length > 0) {
    if (state.ended && !addToFront) {
      var e = new Error('stream.push() after EOF');
      stream.emit('error', e);
    } else if (state.endEmitted && addToFront) {
      var e = new Error('stream.unshift() after end event');
      stream.emit('error', e);
    } else {
      if (state.decoder && !addToFront && !encoding)
        chunk = state.decoder.write(chunk);

      // update the buffer info.
      state.length += state.objectMode ? 1 : chunk.length;
      if (addToFront) {
        state.buffer.unshift(chunk);
      } else {
        state.reading = false;
        state.buffer.push(chunk);
      }

      if (state.needReadable)
        emitReadable(stream);

      maybeReadMore(stream, state);
    }
  } else if (!addToFront) {
    state.reading = false;
  }

  return needMoreData(state);
}



// if it's past the high water mark, we can push in some more.
// Also, if we have no data yet, we can stand some
// more bytes.  This is to work around cases where hwm=0,
// such as the repl.  Also, if the push() triggered a
// readable event, and the user called read(largeNumber) such that
// needReadable was set, then we ought to push more, so that another
// 'readable' event will be triggered.
function needMoreData(state) {
  return !state.ended &&
         (state.needReadable ||
          state.length < state.highWaterMark ||
          state.length === 0);
}

// backwards compatibility.
Readable.prototype.setEncoding = function(enc) {
  if (!StringDecoder)
    StringDecoder = _dereq_('string_decoder').StringDecoder;
  this._readableState.decoder = new StringDecoder(enc);
  this._readableState.encoding = enc;
};

// Don't raise the hwm > 128MB
var MAX_HWM = 0x800000;
function roundUpToNextPowerOf2(n) {
  if (n >= MAX_HWM) {
    n = MAX_HWM;
  } else {
    // Get the next highest power of 2
    n--;
    for (var p = 1; p < 32; p <<= 1) n |= n >> p;
    n++;
  }
  return n;
}

function howMuchToRead(n, state) {
  if (state.length === 0 && state.ended)
    return 0;

  if (state.objectMode)
    return n === 0 ? 0 : 1;

  if (isNaN(n) || n === null) {
    // only flow one buffer at a time
    if (state.flowing && state.buffer.length)
      return state.buffer[0].length;
    else
      return state.length;
  }

  if (n <= 0)
    return 0;

  // If we're asking for more than the target buffer level,
  // then raise the water mark.  Bump up to the next highest
  // power of 2, to prevent increasing it excessively in tiny
  // amounts.
  if (n > state.highWaterMark)
    state.highWaterMark = roundUpToNextPowerOf2(n);

  // don't have that much.  return null, unless we've ended.
  if (n > state.length) {
    if (!state.ended) {
      state.needReadable = true;
      return 0;
    } else
      return state.length;
  }

  return n;
}

// you can override either this method, or the async _read(n) below.
Readable.prototype.read = function(n) {
  var state = this._readableState;
  state.calledRead = true;
  var nOrig = n;

  if (typeof n !== 'number' || n > 0)
    state.emittedReadable = false;

  // if we're doing read(0) to trigger a readable event, but we
  // already have a bunch of data in the buffer, then just trigger
  // the 'readable' event and move on.
  if (n === 0 &&
      state.needReadable &&
      (state.length >= state.highWaterMark || state.ended)) {
    emitReadable(this);
    return null;
  }

  n = howMuchToRead(n, state);

  // if we've ended, and we're now clear, then finish it up.
  if (n === 0 && state.ended) {
    if (state.length === 0)
      endReadable(this);
    return null;
  }

  // All the actual chunk generation logic needs to be
  // *below* the call to _read.  The reason is that in certain
  // synthetic stream cases, such as passthrough streams, _read
  // may be a completely synchronous operation which may change
  // the state of the read buffer, providing enough data when
  // before there was *not* enough.
  //
  // So, the steps are:
  // 1. Figure out what the state of things will be after we do
  // a read from the buffer.
  //
  // 2. If that resulting state will trigger a _read, then call _read.
  // Note that this may be asynchronous, or synchronous.  Yes, it is
  // deeply ugly to write APIs this way, but that still doesn't mean
  // that the Readable class should behave improperly, as streams are
  // designed to be sync/async agnostic.
  // Take note if the _read call is sync or async (ie, if the read call
  // has returned yet), so that we know whether or not it's safe to emit
  // 'readable' etc.
  //
  // 3. Actually pull the requested chunks out of the buffer and return.

  // if we need a readable event, then we need to do some reading.
  var doRead = state.needReadable;

  // if we currently have less than the highWaterMark, then also read some
  if (state.length - n <= state.highWaterMark)
    doRead = true;

  // however, if we've ended, then there's no point, and if we're already
  // reading, then it's unnecessary.
  if (state.ended || state.reading)
    doRead = false;

  if (doRead) {
    state.reading = true;
    state.sync = true;
    // if the length is currently zero, then we *need* a readable event.
    if (state.length === 0)
      state.needReadable = true;
    // call internal read method
    this._read(state.highWaterMark);
    state.sync = false;
  }

  // If _read called its callback synchronously, then `reading`
  // will be false, and we need to re-evaluate how much data we
  // can return to the user.
  if (doRead && !state.reading)
    n = howMuchToRead(nOrig, state);

  var ret;
  if (n > 0)
    ret = fromList(n, state);
  else
    ret = null;

  if (ret === null) {
    state.needReadable = true;
    n = 0;
  }

  state.length -= n;

  // If we have nothing in the buffer, then we want to know
  // as soon as we *do* get something into the buffer.
  if (state.length === 0 && !state.ended)
    state.needReadable = true;

  // If we happened to read() exactly the remaining amount in the
  // buffer, and the EOF has been seen at this point, then make sure
  // that we emit 'end' on the very next tick.
  if (state.ended && !state.endEmitted && state.length === 0)
    endReadable(this);

  return ret;
};

function chunkInvalid(state, chunk) {
  var er = null;
  if (!Buffer.isBuffer(chunk) &&
      'string' !== typeof chunk &&
      chunk !== null &&
      chunk !== undefined &&
      !state.objectMode &&
      !er) {
    er = new TypeError('Invalid non-string/buffer chunk');
  }
  return er;
}


function onEofChunk(stream, state) {
  if (state.decoder && !state.ended) {
    var chunk = state.decoder.end();
    if (chunk && chunk.length) {
      state.buffer.push(chunk);
      state.length += state.objectMode ? 1 : chunk.length;
    }
  }
  state.ended = true;

  // if we've ended and we have some data left, then emit
  // 'readable' now to make sure it gets picked up.
  if (state.length > 0)
    emitReadable(stream);
  else
    endReadable(stream);
}

// Don't emit readable right away in sync mode, because this can trigger
// another read() call => stack overflow.  This way, it might trigger
// a nextTick recursion warning, but that's not so bad.
function emitReadable(stream) {
  var state = stream._readableState;
  state.needReadable = false;
  if (state.emittedReadable)
    return;

  state.emittedReadable = true;
  if (state.sync)
    setImmediate(function() {
      emitReadable_(stream);
    });
  else
    emitReadable_(stream);
}

function emitReadable_(stream) {
  stream.emit('readable');
}


// at this point, the user has presumably seen the 'readable' event,
// and called read() to consume some data.  that may have triggered
// in turn another _read(n) call, in which case reading = true if
// it's in progress.
// However, if we're not ended, or reading, and the length < hwm,
// then go ahead and try to read some more preemptively.
function maybeReadMore(stream, state) {
  if (!state.readingMore) {
    state.readingMore = true;
    setImmediate(function() {
      maybeReadMore_(stream, state);
    });
  }
}

function maybeReadMore_(stream, state) {
  var len = state.length;
  while (!state.reading && !state.flowing && !state.ended &&
         state.length < state.highWaterMark) {
    stream.read(0);
    if (len === state.length)
      // didn't get any data, stop spinning.
      break;
    else
      len = state.length;
  }
  state.readingMore = false;
}

// abstract method.  to be overridden in specific implementation classes.
// call cb(er, data) where data is <= n in length.
// for virtual (non-string, non-buffer) streams, "length" is somewhat
// arbitrary, and perhaps not very meaningful.
Readable.prototype._read = function(n) {
  this.emit('error', new Error('not implemented'));
};

Readable.prototype.pipe = function(dest, pipeOpts) {
  var src = this;
  var state = this._readableState;

  switch (state.pipesCount) {
    case 0:
      state.pipes = dest;
      break;
    case 1:
      state.pipes = [state.pipes, dest];
      break;
    default:
      state.pipes.push(dest);
      break;
  }
  state.pipesCount += 1;

  var doEnd = (!pipeOpts || pipeOpts.end !== false) &&
              dest !== process.stdout &&
              dest !== process.stderr;

  var endFn = doEnd ? onend : cleanup;
  if (state.endEmitted)
    setImmediate(endFn);
  else
    src.once('end', endFn);

  dest.on('unpipe', onunpipe);
  function onunpipe(readable) {
    if (readable !== src) return;
    cleanup();
  }

  function onend() {
    dest.end();
  }

  // when the dest drains, it reduces the awaitDrain counter
  // on the source.  This would be more elegant with a .once()
  // handler in flow(), but adding and removing repeatedly is
  // too slow.
  var ondrain = pipeOnDrain(src);
  dest.on('drain', ondrain);

  function cleanup() {
    // cleanup event handlers once the pipe is broken
    dest.removeListener('close', onclose);
    dest.removeListener('finish', onfinish);
    dest.removeListener('drain', ondrain);
    dest.removeListener('error', onerror);
    dest.removeListener('unpipe', onunpipe);
    src.removeListener('end', onend);
    src.removeListener('end', cleanup);

    // if the reader is waiting for a drain event from this
    // specific writer, then it would cause it to never start
    // flowing again.
    // So, if this is awaiting a drain, then we just call it now.
    // If we don't know, then assume that we are waiting for one.
    if (!dest._writableState || dest._writableState.needDrain)
      ondrain();
  }

  // if the dest has an error, then stop piping into it.
  // however, don't suppress the throwing behavior for this.
  // check for listeners before emit removes one-time listeners.
  var errListeners = EE.listenerCount(dest, 'error');
  function onerror(er) {
    unpipe();
    if (errListeners === 0 && EE.listenerCount(dest, 'error') === 0)
      dest.emit('error', er);
  }
  dest.once('error', onerror);

  // Both close and finish should trigger unpipe, but only once.
  function onclose() {
    dest.removeListener('finish', onfinish);
    unpipe();
  }
  dest.once('close', onclose);
  function onfinish() {
    dest.removeListener('close', onclose);
    unpipe();
  }
  dest.once('finish', onfinish);

  function unpipe() {
    src.unpipe(dest);
  }

  // tell the dest that it's being piped to
  dest.emit('pipe', src);

  // start the flow if it hasn't been started already.
  if (!state.flowing) {
    // the handler that waits for readable events after all
    // the data gets sucked out in flow.
    // This would be easier to follow with a .once() handler
    // in flow(), but that is too slow.
    this.on('readable', pipeOnReadable);

    state.flowing = true;
    setImmediate(function() {
      flow(src);
    });
  }

  return dest;
};

function pipeOnDrain(src) {
  return function() {
    var dest = this;
    var state = src._readableState;
    state.awaitDrain--;
    if (state.awaitDrain === 0)
      flow(src);
  };
}

function flow(src) {
  var state = src._readableState;
  var chunk;
  state.awaitDrain = 0;

  function write(dest, i, list) {
    var written = dest.write(chunk);
    if (false === written) {
      state.awaitDrain++;
    }
  }

  while (state.pipesCount && null !== (chunk = src.read())) {

    if (state.pipesCount === 1)
      write(state.pipes, 0, null);
    else
      forEach(state.pipes, write);

    src.emit('data', chunk);

    // if anyone needs a drain, then we have to wait for that.
    if (state.awaitDrain > 0)
      return;
  }

  // if every destination was unpiped, either before entering this
  // function, or in the while loop, then stop flowing.
  //
  // NB: This is a pretty rare edge case.
  if (state.pipesCount === 0) {
    state.flowing = false;

    // if there were data event listeners added, then switch to old mode.
    if (EE.listenerCount(src, 'data') > 0)
      emitDataEvents(src);
    return;
  }

  // at this point, no one needed a drain, so we just ran out of data
  // on the next readable event, start it over again.
  state.ranOut = true;
}

function pipeOnReadable() {
  if (this._readableState.ranOut) {
    this._readableState.ranOut = false;
    flow(this);
  }
}


Readable.prototype.unpipe = function(dest) {
  var state = this._readableState;

  // if we're not piping anywhere, then do nothing.
  if (state.pipesCount === 0)
    return this;

  // just one destination.  most common case.
  if (state.pipesCount === 1) {
    // passed in one, but it's not the right one.
    if (dest && dest !== state.pipes)
      return this;

    if (!dest)
      dest = state.pipes;

    // got a match.
    state.pipes = null;
    state.pipesCount = 0;
    this.removeListener('readable', pipeOnReadable);
    state.flowing = false;
    if (dest)
      dest.emit('unpipe', this);
    return this;
  }

  // slow case. multiple pipe destinations.

  if (!dest) {
    // remove all.
    var dests = state.pipes;
    var len = state.pipesCount;
    state.pipes = null;
    state.pipesCount = 0;
    this.removeListener('readable', pipeOnReadable);
    state.flowing = false;

    for (var i = 0; i < len; i++)
      dests[i].emit('unpipe', this);
    return this;
  }

  // try to find the right one.
  var i = indexOf(state.pipes, dest);
  if (i === -1)
    return this;

  state.pipes.splice(i, 1);
  state.pipesCount -= 1;
  if (state.pipesCount === 1)
    state.pipes = state.pipes[0];

  dest.emit('unpipe', this);

  return this;
};

// set up data events if they are asked for
// Ensure readable listeners eventually get something
Readable.prototype.on = function(ev, fn) {
  var res = Stream.prototype.on.call(this, ev, fn);

  if (ev === 'data' && !this._readableState.flowing)
    emitDataEvents(this);

  if (ev === 'readable' && this.readable) {
    var state = this._readableState;
    if (!state.readableListening) {
      state.readableListening = true;
      state.emittedReadable = false;
      state.needReadable = true;
      if (!state.reading) {
        this.read(0);
      } else if (state.length) {
        emitReadable(this, state);
      }
    }
  }

  return res;
};
Readable.prototype.addListener = Readable.prototype.on;

// pause() and resume() are remnants of the legacy readable stream API
// If the user uses them, then switch into old mode.
Readable.prototype.resume = function() {
  emitDataEvents(this);
  this.read(0);
  this.emit('resume');
};

Readable.prototype.pause = function() {
  emitDataEvents(this, true);
  this.emit('pause');
};

function emitDataEvents(stream, startPaused) {
  var state = stream._readableState;

  if (state.flowing) {
    // https://github.com/isaacs/readable-stream/issues/16
    throw new Error('Cannot switch to old mode now.');
  }

  var paused = startPaused || false;
  var readable = false;

  // convert to an old-style stream.
  stream.readable = true;
  stream.pipe = Stream.prototype.pipe;
  stream.on = stream.addListener = Stream.prototype.on;

  stream.on('readable', function() {
    readable = true;

    var c;
    while (!paused && (null !== (c = stream.read())))
      stream.emit('data', c);

    if (c === null) {
      readable = false;
      stream._readableState.needReadable = true;
    }
  });

  stream.pause = function() {
    paused = true;
    this.emit('pause');
  };

  stream.resume = function() {
    paused = false;
    if (readable)
      setImmediate(function() {
        stream.emit('readable');
      });
    else
      this.read(0);
    this.emit('resume');
  };

  // now make it start, just in case it hadn't already.
  stream.emit('readable');
}

// wrap an old-style stream as the async data source.
// This is *not* part of the readable stream interface.
// It is an ugly unfortunate mess of history.
Readable.prototype.wrap = function(stream) {
  var state = this._readableState;
  var paused = false;

  var self = this;
  stream.on('end', function() {
    if (state.decoder && !state.ended) {
      var chunk = state.decoder.end();
      if (chunk && chunk.length)
        self.push(chunk);
    }

    self.push(null);
  });

  stream.on('data', function(chunk) {
    if (state.decoder)
      chunk = state.decoder.write(chunk);
    if (!chunk || !state.objectMode && !chunk.length)
      return;

    var ret = self.push(chunk);
    if (!ret) {
      paused = true;
      stream.pause();
    }
  });

  // proxy all the other methods.
  // important when wrapping filters and duplexes.
  for (var i in stream) {
    if (typeof stream[i] === 'function' &&
        typeof this[i] === 'undefined') {
      this[i] = function(method) { return function() {
        return stream[method].apply(stream, arguments);
      }}(i);
    }
  }

  // proxy certain important events.
  var events = ['error', 'close', 'destroy', 'pause', 'resume'];
  forEach(events, function(ev) {
    stream.on(ev, function (x) {
      return self.emit.apply(self, ev, x);
    });
  });

  // when we try to consume some more bytes, simply unpause the
  // underlying stream.
  self._read = function(n) {
    if (paused) {
      paused = false;
      stream.resume();
    }
  };

  return self;
};



// exposed for testing purposes only.
Readable._fromList = fromList;

// Pluck off n bytes from an array of buffers.
// Length is the combined lengths of all the buffers in the list.
function fromList(n, state) {
  var list = state.buffer;
  var length = state.length;
  var stringMode = !!state.decoder;
  var objectMode = !!state.objectMode;
  var ret;

  // nothing in the list, definitely empty.
  if (list.length === 0)
    return null;

  if (length === 0)
    ret = null;
  else if (objectMode)
    ret = list.shift();
  else if (!n || n >= length) {
    // read it all, truncate the array.
    if (stringMode)
      ret = list.join('');
    else
      ret = Buffer.concat(list, length);
    list.length = 0;
  } else {
    // read just some of it.
    if (n < list[0].length) {
      // just take a part of the first list item.
      // slice is the same for buffers and strings.
      var buf = list[0];
      ret = buf.slice(0, n);
      list[0] = buf.slice(n);
    } else if (n === list[0].length) {
      // first list is a perfect match
      ret = list.shift();
    } else {
      // complex case.
      // we have enough to cover it, but it spans past the first buffer.
      if (stringMode)
        ret = '';
      else
        ret = new Buffer(n);

      var c = 0;
      for (var i = 0, l = list.length; i < l && c < n; i++) {
        var buf = list[0];
        var cpy = Math.min(n - c, buf.length);

        if (stringMode)
          ret += buf.slice(0, cpy);
        else
          buf.copy(ret, c, 0, cpy);

        if (cpy < buf.length)
          list[0] = buf.slice(cpy);
        else
          list.shift();

        c += cpy;
      }
    }
  }

  return ret;
}

function endReadable(stream) {
  var state = stream._readableState;

  // If we get here before consuming all the bytes, then that is a
  // bug in node.  Should never happen.
  if (state.length > 0)
    throw new Error('endReadable called on non-empty stream');

  if (!state.endEmitted && state.calledRead) {
    state.ended = true;
    setImmediate(function() {
      // Check that we didn't get one last unshift.
      if (!state.endEmitted && state.length === 0) {
        state.endEmitted = true;
        stream.readable = false;
        stream.emit('end');
      }
    });
  }
}

function forEach (xs, f) {
  for (var i = 0, l = xs.length; i < l; i++) {
    f(xs[i], i);
  }
}

function indexOf (xs, x) {
  for (var i = 0, l = xs.length; i < l; i++) {
    if (xs[i] === x) return i;
  }
  return -1;
}

}).call(this,_dereq_("g5I+bs"))
},{"./index.js":69,"buffer":11,"events":15,"g5I+bs":30,"inherits":18,"process/browser.js":70,"string_decoder":10}],73:[function(_dereq_,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

// a transform stream is a readable/writable stream where you do
// something with the data.  Sometimes it's called a "filter",
// but that's not a great name for it, since that implies a thing where
// some bits pass through, and others are simply ignored.  (That would
// be a valid example of a transform, of course.)
//
// While the output is causally related to the input, it's not a
// necessarily symmetric or synchronous transformation.  For example,
// a zlib stream might take multiple plain-text writes(), and then
// emit a single compressed chunk some time in the future.
//
// Here's how this works:
//
// The Transform stream has all the aspects of the readable and writable
// stream classes.  When you write(chunk), that calls _write(chunk,cb)
// internally, and returns false if there's a lot of pending writes
// buffered up.  When you call read(), that calls _read(n) until
// there's enough pending readable data buffered up.
//
// In a transform stream, the written data is placed in a buffer.  When
// _read(n) is called, it transforms the queued up data, calling the
// buffered _write cb's as it consumes chunks.  If consuming a single
// written chunk would result in multiple output chunks, then the first
// outputted bit calls the readcb, and subsequent chunks just go into
// the read buffer, and will cause it to emit 'readable' if necessary.
//
// This way, back-pressure is actually determined by the reading side,
// since _read has to be called to start processing a new chunk.  However,
// a pathological inflate type of transform can cause excessive buffering
// here.  For example, imagine a stream where every byte of input is
// interpreted as an integer from 0-255, and then results in that many
// bytes of output.  Writing the 4 bytes {ff,ff,ff,ff} would result in
// 1kb of data being output.  In this case, you could write a very small
// amount of input, and end up with a very large amount of output.  In
// such a pathological inflating mechanism, there'd be no way to tell
// the system to stop doing the transform.  A single 4MB write could
// cause the system to run out of memory.
//
// However, even in such a pathological case, only a single written chunk
// would be consumed, and then the rest would wait (un-transformed) until
// the results of the previous transformed chunk were consumed.

module.exports = Transform;

var Duplex = _dereq_('./duplex.js');
var inherits = _dereq_('inherits');
inherits(Transform, Duplex);


function TransformState(options, stream) {
  this.afterTransform = function(er, data) {
    return afterTransform(stream, er, data);
  };

  this.needTransform = false;
  this.transforming = false;
  this.writecb = null;
  this.writechunk = null;
}

function afterTransform(stream, er, data) {
  var ts = stream._transformState;
  ts.transforming = false;

  var cb = ts.writecb;

  if (!cb)
    return stream.emit('error', new Error('no writecb in Transform class'));

  ts.writechunk = null;
  ts.writecb = null;

  if (data !== null && data !== undefined)
    stream.push(data);

  if (cb)
    cb(er);

  var rs = stream._readableState;
  rs.reading = false;
  if (rs.needReadable || rs.length < rs.highWaterMark) {
    stream._read(rs.highWaterMark);
  }
}


function Transform(options) {
  if (!(this instanceof Transform))
    return new Transform(options);

  Duplex.call(this, options);

  var ts = this._transformState = new TransformState(options, this);

  // when the writable side finishes, then flush out anything remaining.
  var stream = this;

  // start out asking for a readable event once data is transformed.
  this._readableState.needReadable = true;

  // we have implemented the _read method, and done the other things
  // that Readable wants before the first _read call, so unset the
  // sync guard flag.
  this._readableState.sync = false;

  this.once('finish', function() {
    if ('function' === typeof this._flush)
      this._flush(function(er) {
        done(stream, er);
      });
    else
      done(stream);
  });
}

Transform.prototype.push = function(chunk, encoding) {
  this._transformState.needTransform = false;
  return Duplex.prototype.push.call(this, chunk, encoding);
};

// This is the part where you do stuff!
// override this function in implementation classes.
// 'chunk' is an input chunk.
//
// Call `push(newChunk)` to pass along transformed output
// to the readable side.  You may call 'push' zero or more times.
//
// Call `cb(err)` when you are done with this chunk.  If you pass
// an error, then that'll put the hurt on the whole operation.  If you
// never call cb(), then you'll never get another chunk.
Transform.prototype._transform = function(chunk, encoding, cb) {
  throw new Error('not implemented');
};

Transform.prototype._write = function(chunk, encoding, cb) {
  var ts = this._transformState;
  ts.writecb = cb;
  ts.writechunk = chunk;
  ts.writeencoding = encoding;
  if (!ts.transforming) {
    var rs = this._readableState;
    if (ts.needTransform ||
        rs.needReadable ||
        rs.length < rs.highWaterMark)
      this._read(rs.highWaterMark);
  }
};

// Doesn't matter what the args are here.
// _transform does all the work.
// That we got here means that the readable side wants more data.
Transform.prototype._read = function(n) {
  var ts = this._transformState;

  if (ts.writechunk && ts.writecb && !ts.transforming) {
    ts.transforming = true;
    this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
  } else {
    // mark that we need a transform, so that any data that comes in
    // will get processed, now that we've asked for it.
    ts.needTransform = true;
  }
};


function done(stream, er) {
  if (er)
    return stream.emit('error', er);

  // if there's nothing in the write buffer, then that means
  // that nothing more will ever be provided
  var ws = stream._writableState;
  var rs = stream._readableState;
  var ts = stream._transformState;

  if (ws.length)
    throw new Error('calling transform done when ws.length != 0');

  if (ts.transforming)
    throw new Error('calling transform done when still transforming');

  return stream.push(null);
}

},{"./duplex.js":68,"inherits":18}],74:[function(_dereq_,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

// A bit simpler than readable streams.
// Implement an async ._write(chunk, cb), and it'll handle all
// the drain event emission and buffering.

module.exports = Writable;
Writable.WritableState = WritableState;

var isUint8Array = typeof Uint8Array !== 'undefined'
  ? function (x) { return x instanceof Uint8Array }
  : function (x) {
    return x && x.constructor && x.constructor.name === 'Uint8Array'
  }
;
var isArrayBuffer = typeof ArrayBuffer !== 'undefined'
  ? function (x) { return x instanceof ArrayBuffer }
  : function (x) {
    return x && x.constructor && x.constructor.name === 'ArrayBuffer'
  }
;

var inherits = _dereq_('inherits');
var Stream = _dereq_('./index.js');
var setImmediate = _dereq_('process/browser.js').nextTick;
var Buffer = _dereq_('buffer').Buffer;

inherits(Writable, Stream);

function WriteReq(chunk, encoding, cb) {
  this.chunk = chunk;
  this.encoding = encoding;
  this.callback = cb;
}

function WritableState(options, stream) {
  options = options || {};

  // the point at which write() starts returning false
  // Note: 0 is a valid value, means that we always return false if
  // the entire buffer is not flushed immediately on write()
  var hwm = options.highWaterMark;
  this.highWaterMark = (hwm || hwm === 0) ? hwm : 16 * 1024;

  // object stream flag to indicate whether or not this stream
  // contains buffers or objects.
  this.objectMode = !!options.objectMode;

  // cast to ints.
  this.highWaterMark = ~~this.highWaterMark;

  this.needDrain = false;
  // at the start of calling end()
  this.ending = false;
  // when end() has been called, and returned
  this.ended = false;
  // when 'finish' is emitted
  this.finished = false;

  // should we decode strings into buffers before passing to _write?
  // this is here so that some node-core streams can optimize string
  // handling at a lower level.
  var noDecode = options.decodeStrings === false;
  this.decodeStrings = !noDecode;

  // Crypto is kind of old and crusty.  Historically, its default string
  // encoding is 'binary' so we have to make this configurable.
  // Everything else in the universe uses 'utf8', though.
  this.defaultEncoding = options.defaultEncoding || 'utf8';

  // not an actual buffer we keep track of, but a measurement
  // of how much we're waiting to get pushed to some underlying
  // socket or file.
  this.length = 0;

  // a flag to see when we're in the middle of a write.
  this.writing = false;

  // a flag to be able to tell if the onwrite cb is called immediately,
  // or on a later tick.  We set this to true at first, becuase any
  // actions that shouldn't happen until "later" should generally also
  // not happen before the first write call.
  this.sync = true;

  // a flag to know if we're processing previously buffered items, which
  // may call the _write() callback in the same tick, so that we don't
  // end up in an overlapped onwrite situation.
  this.bufferProcessing = false;

  // the callback that's passed to _write(chunk,cb)
  this.onwrite = function(er) {
    onwrite(stream, er);
  };

  // the callback that the user supplies to write(chunk,encoding,cb)
  this.writecb = null;

  // the amount that is being written when _write is called.
  this.writelen = 0;

  this.buffer = [];
}

function Writable(options) {
  // Writable ctor is applied to Duplexes, though they're not
  // instanceof Writable, they're instanceof Readable.
  if (!(this instanceof Writable) && !(this instanceof Stream.Duplex))
    return new Writable(options);

  this._writableState = new WritableState(options, this);

  // legacy.
  this.writable = true;

  Stream.call(this);
}

// Otherwise people can pipe Writable streams, which is just wrong.
Writable.prototype.pipe = function() {
  this.emit('error', new Error('Cannot pipe. Not readable.'));
};


function writeAfterEnd(stream, state, cb) {
  var er = new Error('write after end');
  // TODO: defer error events consistently everywhere, not just the cb
  stream.emit('error', er);
  setImmediate(function() {
    cb(er);
  });
}

// If we get something that is not a buffer, string, null, or undefined,
// and we're not in objectMode, then that's an error.
// Otherwise stream chunks are all considered to be of length=1, and the
// watermarks determine how many objects to keep in the buffer, rather than
// how many bytes or characters.
function validChunk(stream, state, chunk, cb) {
  var valid = true;
  if (!Buffer.isBuffer(chunk) &&
      'string' !== typeof chunk &&
      chunk !== null &&
      chunk !== undefined &&
      !state.objectMode) {
    var er = new TypeError('Invalid non-string/buffer chunk');
    stream.emit('error', er);
    setImmediate(function() {
      cb(er);
    });
    valid = false;
  }
  return valid;
}

Writable.prototype.write = function(chunk, encoding, cb) {
  var state = this._writableState;
  var ret = false;

  if (typeof encoding === 'function') {
    cb = encoding;
    encoding = null;
  }

  if (!Buffer.isBuffer(chunk) && isUint8Array(chunk))
    chunk = new Buffer(chunk);
  if (isArrayBuffer(chunk) && typeof Uint8Array !== 'undefined')
    chunk = new Buffer(new Uint8Array(chunk));
  
  if (Buffer.isBuffer(chunk))
    encoding = 'buffer';
  else if (!encoding)
    encoding = state.defaultEncoding;

  if (typeof cb !== 'function')
    cb = function() {};

  if (state.ended)
    writeAfterEnd(this, state, cb);
  else if (validChunk(this, state, chunk, cb))
    ret = writeOrBuffer(this, state, chunk, encoding, cb);

  return ret;
};

function decodeChunk(state, chunk, encoding) {
  if (!state.objectMode &&
      state.decodeStrings !== false &&
      typeof chunk === 'string') {
    chunk = new Buffer(chunk, encoding);
  }
  return chunk;
}

// if we're already writing something, then just put this
// in the queue, and wait our turn.  Otherwise, call _write
// If we return false, then we need a drain event, so set that flag.
function writeOrBuffer(stream, state, chunk, encoding, cb) {
  chunk = decodeChunk(state, chunk, encoding);
  var len = state.objectMode ? 1 : chunk.length;

  state.length += len;

  var ret = state.length < state.highWaterMark;
  state.needDrain = !ret;

  if (state.writing)
    state.buffer.push(new WriteReq(chunk, encoding, cb));
  else
    doWrite(stream, state, len, chunk, encoding, cb);

  return ret;
}

function doWrite(stream, state, len, chunk, encoding, cb) {
  state.writelen = len;
  state.writecb = cb;
  state.writing = true;
  state.sync = true;
  stream._write(chunk, encoding, state.onwrite);
  state.sync = false;
}

function onwriteError(stream, state, sync, er, cb) {
  if (sync)
    setImmediate(function() {
      cb(er);
    });
  else
    cb(er);

  stream.emit('error', er);
}

function onwriteStateUpdate(state) {
  state.writing = false;
  state.writecb = null;
  state.length -= state.writelen;
  state.writelen = 0;
}

function onwrite(stream, er) {
  var state = stream._writableState;
  var sync = state.sync;
  var cb = state.writecb;

  onwriteStateUpdate(state);

  if (er)
    onwriteError(stream, state, sync, er, cb);
  else {
    // Check if we're actually ready to finish, but don't emit yet
    var finished = needFinish(stream, state);

    if (!finished && !state.bufferProcessing && state.buffer.length)
      clearBuffer(stream, state);

    if (sync) {
      setImmediate(function() {
        afterWrite(stream, state, finished, cb);
      });
    } else {
      afterWrite(stream, state, finished, cb);
    }
  }
}

function afterWrite(stream, state, finished, cb) {
  if (!finished)
    onwriteDrain(stream, state);
  cb();
  if (finished)
    finishMaybe(stream, state);
}

// Must force callback to be called on nextTick, so that we don't
// emit 'drain' before the write() consumer gets the 'false' return
// value, and has a chance to attach a 'drain' listener.
function onwriteDrain(stream, state) {
  if (state.length === 0 && state.needDrain) {
    state.needDrain = false;
    stream.emit('drain');
  }
}


// if there's something in the buffer waiting, then process it
function clearBuffer(stream, state) {
  state.bufferProcessing = true;

  for (var c = 0; c < state.buffer.length; c++) {
    var entry = state.buffer[c];
    var chunk = entry.chunk;
    var encoding = entry.encoding;
    var cb = entry.callback;
    var len = state.objectMode ? 1 : chunk.length;

    doWrite(stream, state, len, chunk, encoding, cb);

    // if we didn't call the onwrite immediately, then
    // it means that we need to wait until it does.
    // also, that means that the chunk and cb are currently
    // being processed, so move the buffer counter past them.
    if (state.writing) {
      c++;
      break;
    }
  }

  state.bufferProcessing = false;
  if (c < state.buffer.length)
    state.buffer = state.buffer.slice(c);
  else
    state.buffer.length = 0;
}

Writable.prototype._write = function(chunk, encoding, cb) {
  cb(new Error('not implemented'));
};

Writable.prototype.end = function(chunk, encoding, cb) {
  var state = this._writableState;

  if (typeof chunk === 'function') {
    cb = chunk;
    chunk = null;
    encoding = null;
  } else if (typeof encoding === 'function') {
    cb = encoding;
    encoding = null;
  }

  if (typeof chunk !== 'undefined' && chunk !== null)
    this.write(chunk, encoding);

  // ignore unnecessary end() calls.
  if (!state.ending && !state.finished)
    endWritable(this, state, cb);
};


function needFinish(stream, state) {
  return (state.ending &&
          state.length === 0 &&
          !state.finished &&
          !state.writing);
}

function finishMaybe(stream, state) {
  var need = needFinish(stream, state);
  if (need) {
    state.finished = true;
    stream.emit('finish');
  }
  return need;
}

function endWritable(stream, state, cb) {
  state.ending = true;
  finishMaybe(stream, state);
  if (cb) {
    if (state.finished)
      setImmediate(cb);
    else
      stream.once('finish', cb);
  }
  state.ended = true;
}

},{"./index.js":69,"buffer":11,"inherits":18,"process/browser.js":70}],75:[function(_dereq_,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

var punycode = _dereq_('punycode');

exports.parse = urlParse;
exports.resolve = urlResolve;
exports.resolveObject = urlResolveObject;
exports.format = urlFormat;

exports.Url = Url;

function Url() {
  this.protocol = null;
  this.slashes = null;
  this.auth = null;
  this.host = null;
  this.port = null;
  this.hostname = null;
  this.hash = null;
  this.search = null;
  this.query = null;
  this.pathname = null;
  this.path = null;
  this.href = null;
}

// Reference: RFC 3986, RFC 1808, RFC 2396

// define these here so at least they only have to be
// compiled once on the first module load.
var protocolPattern = /^([a-z0-9.+-]+:)/i,
    portPattern = /:[0-9]*$/,

    // RFC 2396: characters reserved for delimiting URLs.
    // We actually just auto-escape these.
    delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'],

    // RFC 2396: characters not allowed for various reasons.
    unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims),

    // Allowed by RFCs, but cause of XSS attacks.  Always escape these.
    autoEscape = ['\''].concat(unwise),
    // Characters that are never ever allowed in a hostname.
    // Note that any invalid chars are also handled, but these
    // are the ones that are *expected* to be seen, so we fast-path
    // them.
    nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),
    hostEndingChars = ['/', '?', '#'],
    hostnameMaxLen = 255,
    hostnamePartPattern = /^[a-z0-9A-Z_-]{0,63}$/,
    hostnamePartStart = /^([a-z0-9A-Z_-]{0,63})(.*)$/,
    // protocols that can allow "unsafe" and "unwise" chars.
    unsafeProtocol = {
      'javascript': true,
      'javascript:': true
    },
    // protocols that never have a hostname.
    hostlessProtocol = {
      'javascript': true,
      'javascript:': true
    },
    // protocols that always contain a // bit.
    slashedProtocol = {
      'http': true,
      'https': true,
      'ftp': true,
      'gopher': true,
      'file': true,
      'http:': true,
      'https:': true,
      'ftp:': true,
      'gopher:': true,
      'file:': true
    },
    querystring = _dereq_('querystring');

function urlParse(url, parseQueryString, slashesDenoteHost) {
  if (url && isObject(url) && url instanceof Url) return url;

  var u = new Url;
  u.parse(url, parseQueryString, slashesDenoteHost);
  return u;
}

Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
  if (!isString(url)) {
    throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
  }

  var rest = url;

  // trim before proceeding.
  // This is to support parse stuff like "  http://foo.com  \n"
  rest = rest.trim();

  var proto = protocolPattern.exec(rest);
  if (proto) {
    proto = proto[0];
    var lowerProto = proto.toLowerCase();
    this.protocol = lowerProto;
    rest = rest.substr(proto.length);
  }

  // figure out if it's got a host
  // user@server is *always* interpreted as a hostname, and url
  // resolution will treat //foo/bar as host=foo,path=bar because that's
  // how the browser resolves relative URLs.
  if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) {
    var slashes = rest.substr(0, 2) === '//';
    if (slashes && !(proto && hostlessProtocol[proto])) {
      rest = rest.substr(2);
      this.slashes = true;
    }
  }

  if (!hostlessProtocol[proto] &&
      (slashes || (proto && !slashedProtocol[proto]))) {

    // there's a hostname.
    // the first instance of /, ?, ;, or # ends the host.
    //
    // If there is an @ in the hostname, then non-host chars *are* allowed
    // to the left of the last @ sign, unless some host-ending character
    // comes *before* the @-sign.
    // URLs are obnoxious.
    //
    // ex:
    // http://a@b@c/ => user:a@b host:c
    // http://a@b?@c => user:a host:c path:/?@c

    // v0.12 TODO(isaacs): This is not quite how Chrome does things.
    // Review our test case against browsers more comprehensively.

    // find the first instance of any hostEndingChars
    var hostEnd = -1;
    for (var i = 0; i < hostEndingChars.length; i++) {
      var hec = rest.indexOf(hostEndingChars[i]);
      if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
        hostEnd = hec;
    }

    // at this point, either we have an explicit point where the
    // auth portion cannot go past, or the last @ char is the decider.
    var auth, atSign;
    if (hostEnd === -1) {
      // atSign can be anywhere.
      atSign = rest.lastIndexOf('@');
    } else {
      // atSign must be in auth portion.
      // http://a@b/c@d => host:b auth:a path:/c@d
      atSign = rest.lastIndexOf('@', hostEnd);
    }

    // Now we have a portion which is definitely the auth.
    // Pull that off.
    if (atSign !== -1) {
      auth = rest.slice(0, atSign);
      rest = rest.slice(atSign + 1);
      this.auth = decodeURIComponent(auth);
    }

    // the host is the remaining to the left of the first non-host char
    hostEnd = -1;
    for (var i = 0; i < nonHostChars.length; i++) {
      var hec = rest.indexOf(nonHostChars[i]);
      if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
        hostEnd = hec;
    }
    // if we still have not hit it, then the entire thing is a host.
    if (hostEnd === -1)
      hostEnd = rest.length;

    this.host = rest.slice(0, hostEnd);
    rest = rest.slice(hostEnd);

    // pull out port.
    this.parseHost();

    // we've indicated that there is a hostname,
    // so even if it's empty, it has to be present.
    this.hostname = this.hostname || '';

    // if hostname begins with [ and ends with ]
    // assume that it's an IPv6 address.
    var ipv6Hostname = this.hostname[0] === '[' &&
        this.hostname[this.hostname.length - 1] === ']';

    // validate a little.
    if (!ipv6Hostname) {
      var hostparts = this.hostname.split(/\./);
      for (var i = 0, l = hostparts.length; i < l; i++) {
        var part = hostparts[i];
        if (!part) continue;
        if (!part.match(hostnamePartPattern)) {
          var newpart = '';
          for (var j = 0, k = part.length; j < k; j++) {
            if (part.charCodeAt(j) > 127) {
              // we replace non-ASCII char with a temporary placeholder
              // we need this to make sure size of hostname is not
              // broken by replacing non-ASCII by nothing
              newpart += 'x';
            } else {
              newpart += part[j];
            }
          }
          // we test again with ASCII char only
          if (!newpart.match(hostnamePartPattern)) {
            var validParts = hostparts.slice(0, i);
            var notHost = hostparts.slice(i + 1);
            var bit = part.match(hostnamePartStart);
            if (bit) {
              validParts.push(bit[1]);
              notHost.unshift(bit[2]);
            }
            if (notHost.length) {
              rest = '/' + notHost.join('.') + rest;
            }
            this.hostname = validParts.join('.');
            break;
          }
        }
      }
    }

    if (this.hostname.length > hostnameMaxLen) {
      this.hostname = '';
    } else {
      // hostnames are always lower case.
      this.hostname = this.hostname.toLowerCase();
    }

    if (!ipv6Hostname) {
      // IDNA Support: Returns a puny coded representation of "domain".
      // It only converts the part of the domain name that
      // has non ASCII characters. I.e. it dosent matter if
      // you call it with a domain that already is in ASCII.
      var domainArray = this.hostname.split('.');
      var newOut = [];
      for (var i = 0; i < domainArray.length; ++i) {
        var s = domainArray[i];
        newOut.push(s.match(/[^A-Za-z0-9_-]/) ?
            'xn--' + punycode.encode(s) : s);
      }
      this.hostname = newOut.join('.');
    }

    var p = this.port ? ':' + this.port : '';
    var h = this.hostname || '';
    this.host = h + p;
    this.href += this.host;

    // strip [ and ] from the hostname
    // the host field still retains them, though
    if (ipv6Hostname) {
      this.hostname = this.hostname.substr(1, this.hostname.length - 2);
      if (rest[0] !== '/') {
        rest = '/' + rest;
      }
    }
  }

  // now rest is set to the post-host stuff.
  // chop off any delim chars.
  if (!unsafeProtocol[lowerProto]) {

    // First, make 100% sure that any "autoEscape" chars get
    // escaped, even if encodeURIComponent doesn't think they
    // need to be.
    for (var i = 0, l = autoEscape.length; i < l; i++) {
      var ae = autoEscape[i];
      var esc = encodeURIComponent(ae);
      if (esc === ae) {
        esc = escape(ae);
      }
      rest = rest.split(ae).join(esc);
    }
  }


  // chop off from the tail first.
  var hash = rest.indexOf('#');
  if (hash !== -1) {
    // got a fragment string.
    this.hash = rest.substr(hash);
    rest = rest.slice(0, hash);
  }
  var qm = rest.indexOf('?');
  if (qm !== -1) {
    this.search = rest.substr(qm);
    this.query = rest.substr(qm + 1);
    if (parseQueryString) {
      this.query = querystring.parse(this.query);
    }
    rest = rest.slice(0, qm);
  } else if (parseQueryString) {
    // no query string, but parseQueryString still requested
    this.search = '';
    this.query = {};
  }
  if (rest) this.pathname = rest;
  if (slashedProtocol[lowerProto] &&
      this.hostname && !this.pathname) {
    this.pathname = '/';
  }

  //to support http.request
  if (this.pathname || this.search) {
    var p = this.pathname || '';
    var s = this.search || '';
    this.path = p + s;
  }

  // finally, reconstruct the href based on what has been validated.
  this.href = this.format();
  return this;
};

// format a parsed object into a url string
function urlFormat(obj) {
  // ensure it's an object, and not a string url.
  // If it's an obj, this is a no-op.
  // this way, you can call url_format() on strings
  // to clean up potentially wonky urls.
  if (isString(obj)) obj = urlParse(obj);
  if (!(obj instanceof Url)) return Url.prototype.format.call(obj);
  return obj.format();
}

Url.prototype.format = function() {
  var auth = this.auth || '';
  if (auth) {
    auth = encodeURIComponent(auth);
    auth = auth.replace(/%3A/i, ':');
    auth += '@';
  }

  var protocol = this.protocol || '',
      pathname = this.pathname || '',
      hash = this.hash || '',
      host = false,
      query = '';

  if (this.host) {
    host = auth + this.host;
  } else if (this.hostname) {
    host = auth + (this.hostname.indexOf(':') === -1 ?
        this.hostname :
        '[' + this.hostname + ']');
    if (this.port) {
      host += ':' + this.port;
    }
  }

  if (this.query &&
      isObject(this.query) &&
      Object.keys(this.query).length) {
    query = querystring.stringify(this.query);
  }

  var search = this.search || (query && ('?' + query)) || '';

  if (protocol && protocol.substr(-1) !== ':') protocol += ':';

  // only the slashedProtocols get the //.  Not mailto:, xmpp:, etc.
  // unless they had them to begin with.
  if (this.slashes ||
      (!protocol || slashedProtocol[protocol]) && host !== false) {
    host = '//' + (host || '');
    if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;
  } else if (!host) {
    host = '';
  }

  if (hash && hash.charAt(0) !== '#') hash = '#' + hash;
  if (search && search.charAt(0) !== '?') search = '?' + search;

  pathname = pathname.replace(/[?#]/g, function(match) {
    return encodeURIComponent(match);
  });
  search = search.replace('#', '%23');

  return protocol + host + pathname + search + hash;
};

function urlResolve(source, relative) {
  return urlParse(source, false, true).resolve(relative);
}

Url.prototype.resolve = function(relative) {
  return this.resolveObject(urlParse(relative, false, true)).format();
};

function urlResolveObject(source, relative) {
  if (!source) return relative;
  return urlParse(source, false, true).resolveObject(relative);
}

Url.prototype.resolveObject = function(relative) {
  if (isString(relative)) {
    var rel = new Url();
    rel.parse(relative, false, true);
    relative = rel;
  }

  var result = new Url();
  Object.keys(this).forEach(function(k) {
    result[k] = this[k];
  }, this);

  // hash is always overridden, no matter what.
  // even href="" will remove it.
  result.hash = relative.hash;

  // if the relative url is empty, then there's nothing left to do here.
  if (relative.href === '') {
    result.href = result.format();
    return result;
  }

  // hrefs like //foo/bar always cut to the protocol.
  if (relative.slashes && !relative.protocol) {
    // take everything except the protocol from relative
    Object.keys(relative).forEach(function(k) {
      if (k !== 'protocol')
        result[k] = relative[k];
    });

    //urlParse appends trailing / to urls like http://www.example.com
    if (slashedProtocol[result.protocol] &&
        result.hostname && !result.pathname) {
      result.path = result.pathname = '/';
    }

    result.href = result.format();
    return result;
  }

  if (relative.protocol && relative.protocol !== result.protocol) {
    // if it's a known url protocol, then changing
    // the protocol does weird things
    // first, if it's not file:, then we MUST have a host,
    // and if there was a path
    // to begin with, then we MUST have a path.
    // if it is file:, then the host is dropped,
    // because that's known to be hostless.
    // anything else is assumed to be absolute.
    if (!slashedProtocol[relative.protocol]) {
      Object.keys(relative).forEach(function(k) {
        result[k] = relative[k];
      });
      result.href = result.format();
      return result;
    }

    result.protocol = relative.protocol;
    if (!relative.host && !hostlessProtocol[relative.protocol]) {
      var relPath = (relative.pathname || '').split('/');
      while (relPath.length && !(relative.host = relPath.shift()));
      if (!relative.host) relative.host = '';
      if (!relative.hostname) relative.hostname = '';
      if (relPath[0] !== '') relPath.unshift('');
      if (relPath.length < 2) relPath.unshift('');
      result.pathname = relPath.join('/');
    } else {
      result.pathname = relative.pathname;
    }
    result.search = relative.search;
    result.query = relative.query;
    result.host = relative.host || '';
    result.auth = relative.auth;
    result.hostname = relative.hostname || relative.host;
    result.port = relative.port;
    // to support http.request
    if (result.pathname || result.search) {
      var p = result.pathname || '';
      var s = result.search || '';
      result.path = p + s;
    }
    result.slashes = result.slashes || relative.slashes;
    result.href = result.format();
    return result;
  }

  var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),
      isRelAbs = (
          relative.host ||
          relative.pathname && relative.pathname.charAt(0) === '/'
      ),
      mustEndAbs = (isRelAbs || isSourceAbs ||
                    (result.host && relative.pathname)),
      removeAllDots = mustEndAbs,
      srcPath = result.pathname && result.pathname.split('/') || [],
      relPath = relative.pathname && relative.pathname.split('/') || [],
      psychotic = result.protocol && !slashedProtocol[result.protocol];

  // if the url is a non-slashed url, then relative
  // links like ../.. should be able
  // to crawl up to the hostname, as well.  This is strange.
  // result.protocol has already been set by now.
  // Later on, put the first path part into the host field.
  if (psychotic) {
    result.hostname = '';
    result.port = null;
    if (result.host) {
      if (srcPath[0] === '') srcPath[0] = result.host;
      else srcPath.unshift(result.host);
    }
    result.host = '';
    if (relative.protocol) {
      relative.hostname = null;
      relative.port = null;
      if (relative.host) {
        if (relPath[0] === '') relPath[0] = relative.host;
        else relPath.unshift(relative.host);
      }
      relative.host = null;
    }
    mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');
  }

  if (isRelAbs) {
    // it's absolute.
    result.host = (relative.host || relative.host === '') ?
                  relative.host : result.host;
    result.hostname = (relative.hostname || relative.hostname === '') ?
                      relative.hostname : result.hostname;
    result.search = relative.search;
    result.query = relative.query;
    srcPath = relPath;
    // fall through to the dot-handling below.
  } else if (relPath.length) {
    // it's relative
    // throw away the existing file, and take the new path instead.
    if (!srcPath) srcPath = [];
    srcPath.pop();
    srcPath = srcPath.concat(relPath);
    result.search = relative.search;
    result.query = relative.query;
  } else if (!isNullOrUndefined(relative.search)) {
    // just pull out the search.
    // like href='?foo'.
    // Put this after the other two cases because it simplifies the booleans
    if (psychotic) {
      result.hostname = result.host = srcPath.shift();
      //occationaly the auth can get stuck only in host
      //this especialy happens in cases like
      //url.resolveObject('mailto:local1@domain1', 'local2@domain2')
      var authInHost = result.host && result.host.indexOf('@') > 0 ?
                       result.host.split('@') : false;
      if (authInHost) {
        result.auth = authInHost.shift();
        result.host = result.hostname = authInHost.shift();
      }
    }
    result.search = relative.search;
    result.query = relative.query;
    //to support http.request
    if (!isNull(result.pathname) || !isNull(result.search)) {
      result.path = (result.pathname ? result.pathname : '') +
                    (result.search ? result.search : '');
    }
    result.href = result.format();
    return result;
  }

  if (!srcPath.length) {
    // no path at all.  easy.
    // we've already handled the other stuff above.
    result.pathname = null;
    //to support http.request
    if (result.search) {
      result.path = '/' + result.search;
    } else {
      result.path = null;
    }
    result.href = result.format();
    return result;
  }

  // if a url ENDs in . or .., then it must get a trailing slash.
  // however, if it ends in anything else non-slashy,
  // then it must NOT get a trailing slash.
  var last = srcPath.slice(-1)[0];
  var hasTrailingSlash = (
      (result.host || relative.host) && (last === '.' || last === '..') ||
      last === '');

  // strip single dots, resolve double dots to parent dir
  // if the path tries to go above the root, `up` ends up > 0
  var up = 0;
  for (var i = srcPath.length; i >= 0; i--) {
    last = srcPath[i];
    if (last == '.') {
      srcPath.splice(i, 1);
    } else if (last === '..') {
      srcPath.splice(i, 1);
      up++;
    } else if (up) {
      srcPath.splice(i, 1);
      up--;
    }
  }

  // if the path is allowed to go above the root, restore leading ..s
  if (!mustEndAbs && !removeAllDots) {
    for (; up--; up) {
      srcPath.unshift('..');
    }
  }

  if (mustEndAbs && srcPath[0] !== '' &&
      (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
    srcPath.unshift('');
  }

  if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {
    srcPath.push('');
  }

  var isAbsolute = srcPath[0] === '' ||
      (srcPath[0] && srcPath[0].charAt(0) === '/');

  // put the host back
  if (psychotic) {
    result.hostname = result.host = isAbsolute ? '' :
                                    srcPath.length ? srcPath.shift() : '';
    //occationaly the auth can get stuck only in host
    //this especialy happens in cases like
    //url.resolveObject('mailto:local1@domain1', 'local2@domain2')
    var authInHost = result.host && result.host.indexOf('@') > 0 ?
                     result.host.split('@') : false;
    if (authInHost) {
      result.auth = authInHost.shift();
      result.host = result.hostname = authInHost.shift();
    }
  }

  mustEndAbs = mustEndAbs || (result.host && srcPath.length);

  if (mustEndAbs && !isAbsolute) {
    srcPath.unshift('');
  }

  if (!srcPath.length) {
    result.pathname = null;
    result.path = null;
  } else {
    result.pathname = srcPath.join('/');
  }

  //to support request.http
  if (!isNull(result.pathname) || !isNull(result.search)) {
    result.path = (result.pathname ? result.pathname : '') +
                  (result.search ? result.search : '');
  }
  result.auth = relative.auth || result.auth;
  result.slashes = result.slashes || relative.slashes;
  result.href = result.format();
  return result;
};

Url.prototype.parseHost = function() {
  var host = this.host;
  var port = portPattern.exec(host);
  if (port) {
    port = port[0];
    if (port !== ':') {
      this.port = port.substr(1);
    }
    host = host.substr(0, host.length - port.length);
  }
  if (host) this.hostname = host;
};

function isString(arg) {
  return typeof arg === "string";
}

function isObject(arg) {
  return typeof arg === 'object' && arg !== null;
}

function isNull(arg) {
  return arg === null;
}
function isNullOrUndefined(arg) {
  return  arg == null;
}

},{"punycode":9,"querystring":33}],76:[function(_dereq_,module,exports){
module.exports=_dereq_(18)
},{}],77:[function(_dereq_,module,exports){
module.exports = function isBuffer(arg) {
  return arg && typeof arg === 'object'
    && typeof arg.copy === 'function'
    && typeof arg.fill === 'function'
    && typeof arg.readUInt8 === 'function';
}
},{}],78:[function(_dereq_,module,exports){
(function (process,global){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

var formatRegExp = /%[sdj%]/g;
exports.format = function(f) {
  if (!isString(f)) {
    var objects = [];
    for (var i = 0; i < arguments.length; i++) {
      objects.push(inspect(arguments[i]));
    }
    return objects.join(' ');
  }

  var i = 1;
  var args = arguments;
  var len = args.length;
  var str = String(f).replace(formatRegExp, function(x) {
    if (x === '%%') return '%';
    if (i >= len) return x;
    switch (x) {
      case '%s': return String(args[i++]);
      case '%d': return Number(args[i++]);
      case '%j':
        try {
          return JSON.stringify(args[i++]);
        } catch (_) {
          return '[Circular]';
        }
      default:
        return x;
    }
  });
  for (var x = args[i]; i < len; x = args[++i]) {
    if (isNull(x) || !isObject(x)) {
      str += ' ' + x;
    } else {
      str += ' ' + inspect(x);
    }
  }
  return str;
};


// Mark that a method should not be used.
// Returns a modified function which warns once by default.
// If --no-deprecation is set, then it is a no-op.
exports.deprecate = function(fn, msg) {
  // Allow for deprecating things in the process of starting up.
  if (isUndefined(global.process)) {
    return function() {
      return exports.deprecate(fn, msg).apply(this, arguments);
    };
  }

  if (process.noDeprecation === true) {
    return fn;
  }

  var warned = false;
  function deprecated() {
    if (!warned) {
      if (process.throwDeprecation) {
        throw new Error(msg);
      } else if (process.traceDeprecation) {
        console.trace(msg);
      } else {
        console.error(msg);
      }
      warned = true;
    }
    return fn.apply(this, arguments);
  }

  return deprecated;
};


var debugs = {};
var debugEnviron;
exports.debuglog = function(set) {
  if (isUndefined(debugEnviron))
    debugEnviron = process.env.NODE_DEBUG || '';
  set = set.toUpperCase();
  if (!debugs[set]) {
    if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
      var pid = process.pid;
      debugs[set] = function() {
        var msg = exports.format.apply(exports, arguments);
        console.error('%s %d: %s', set, pid, msg);
      };
    } else {
      debugs[set] = function() {};
    }
  }
  return debugs[set];
};


/**
 * Echos the value of a value. Trys to print the value out
 * in the best way possible given the different types.
 *
 * @param {Object} obj The object to print out.
 * @param {Object} opts Optional options object that alters the output.
 */
/* legacy: obj, showHidden, depth, colors*/
function inspect(obj, opts) {
  // default options
  var ctx = {
    seen: [],
    stylize: stylizeNoColor
  };
  // legacy...
  if (arguments.length >= 3) ctx.depth = arguments[2];
  if (arguments.length >= 4) ctx.colors = arguments[3];
  if (isBoolean(opts)) {
    // legacy...
    ctx.showHidden = opts;
  } else if (opts) {
    // got an "options" object
    exports._extend(ctx, opts);
  }
  // set default options
  if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
  if (isUndefined(ctx.depth)) ctx.depth = 2;
  if (isUndefined(ctx.colors)) ctx.colors = false;
  if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
  if (ctx.colors) ctx.stylize = stylizeWithColor;
  return formatValue(ctx, obj, ctx.depth);
}
exports.inspect = inspect;


// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
inspect.colors = {
  'bold' : [1, 22],
  'italic' : [3, 23],
  'underline' : [4, 24],
  'inverse' : [7, 27],
  'white' : [37, 39],
  'grey' : [90, 39],
  'black' : [30, 39],
  'blue' : [34, 39],
  'cyan' : [36, 39],
  'green' : [32, 39],
  'magenta' : [35, 39],
  'red' : [31, 39],
  'yellow' : [33, 39]
};

// Don't use 'blue' not visible on cmd.exe
inspect.styles = {
  'special': 'cyan',
  'number': 'yellow',
  'boolean': 'yellow',
  'undefined': 'grey',
  'null': 'bold',
  'string': 'green',
  'date': 'magenta',
  // "name": intentionally not styling
  'regexp': 'red'
};


function stylizeWithColor(str, styleType) {
  var style = inspect.styles[styleType];

  if (style) {
    return '\u001b[' + inspect.colors[style][0] + 'm' + str +
           '\u001b[' + inspect.colors[style][1] + 'm';
  } else {
    return str;
  }
}


function stylizeNoColor(str, styleType) {
  return str;
}


function arrayToHash(array) {
  var hash = {};

  array.forEach(function(val, idx) {
    hash[val] = true;
  });

  return hash;
}


function formatValue(ctx, value, recurseTimes) {
  // Provide a hook for user-specified inspect functions.
  // Check that value is an object with an inspect function on it
  if (ctx.customInspect &&
      value &&
      isFunction(value.inspect) &&
      // Filter out the util module, it's inspect function is special
      value.inspect !== exports.inspect &&
      // Also filter out any prototype objects using the circular check.
      !(value.constructor && value.constructor.prototype === value)) {
    var ret = value.inspect(recurseTimes, ctx);
    if (!isString(ret)) {
      ret = formatValue(ctx, ret, recurseTimes);
    }
    return ret;
  }

  // Primitive types cannot have properties
  var primitive = formatPrimitive(ctx, value);
  if (primitive) {
    return primitive;
  }

  // Look up the keys of the object.
  var keys = Object.keys(value);
  var visibleKeys = arrayToHash(keys);

  if (ctx.showHidden) {
    keys = Object.getOwnPropertyNames(value);
  }

  // IE doesn't make error fields non-enumerable
  // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
  if (isError(value)
      && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
    return formatError(value);
  }

  // Some type of object without properties can be shortcutted.
  if (keys.length === 0) {
    if (isFunction(value)) {
      var name = value.name ? ': ' + value.name : '';
      return ctx.stylize('[Function' + name + ']', 'special');
    }
    if (isRegExp(value)) {
      return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
    }
    if (isDate(value)) {
      return ctx.stylize(Date.prototype.toString.call(value), 'date');
    }
    if (isError(value)) {
      return formatError(value);
    }
  }

  var base = '', array = false, braces = ['{', '}'];

  // Make Array say that they are Array
  if (isArray(value)) {
    array = true;
    braces = ['[', ']'];
  }

  // Make functions say that they are functions
  if (isFunction(value)) {
    var n = value.name ? ': ' + value.name : '';
    base = ' [Function' + n + ']';
  }

  // Make RegExps say that they are RegExps
  if (isRegExp(value)) {
    base = ' ' + RegExp.prototype.toString.call(value);
  }

  // Make dates with properties first say the date
  if (isDate(value)) {
    base = ' ' + Date.prototype.toUTCString.call(value);
  }

  // Make error with message first say the error
  if (isError(value)) {
    base = ' ' + formatError(value);
  }

  if (keys.length === 0 && (!array || value.length == 0)) {
    return braces[0] + base + braces[1];
  }

  if (recurseTimes < 0) {
    if (isRegExp(value)) {
      return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
    } else {
      return ctx.stylize('[Object]', 'special');
    }
  }

  ctx.seen.push(value);

  var output;
  if (array) {
    output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
  } else {
    output = keys.map(function(key) {
      return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
    });
  }

  ctx.seen.pop();

  return reduceToSingleString(output, base, braces);
}


function formatPrimitive(ctx, value) {
  if (isUndefined(value))
    return ctx.stylize('undefined', 'undefined');
  if (isString(value)) {
    var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
                                             .replace(/'/g, "\\'")
                                             .replace(/\\"/g, '"') + '\'';
    return ctx.stylize(simple, 'string');
  }
  if (isNumber(value))
    return ctx.stylize('' + value, 'number');
  if (isBoolean(value))
    return ctx.stylize('' + value, 'boolean');
  // For some reason typeof null is "object", so special case here.
  if (isNull(value))
    return ctx.stylize('null', 'null');
}


function formatError(value) {
  return '[' + Error.prototype.toString.call(value) + ']';
}


function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
  var output = [];
  for (var i = 0, l = value.length; i < l; ++i) {
    if (hasOwnProperty(value, String(i))) {
      output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
          String(i), true));
    } else {
      output.push('');
    }
  }
  keys.forEach(function(key) {
    if (!key.match(/^\d+$/)) {
      output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
          key, true));
    }
  });
  return output;
}


function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
  var name, str, desc;
  desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
  if (desc.get) {
    if (desc.set) {
      str = ctx.stylize('[Getter/Setter]', 'special');
    } else {
      str = ctx.stylize('[Getter]', 'special');
    }
  } else {
    if (desc.set) {
      str = ctx.stylize('[Setter]', 'special');
    }
  }
  if (!hasOwnProperty(visibleKeys, key)) {
    name = '[' + key + ']';
  }
  if (!str) {
    if (ctx.seen.indexOf(desc.value) < 0) {
      if (isNull(recurseTimes)) {
        str = formatValue(ctx, desc.value, null);
      } else {
        str = formatValue(ctx, desc.value, recurseTimes - 1);
      }
      if (str.indexOf('\n') > -1) {
        if (array) {
          str = str.split('\n').map(function(line) {
            return '  ' + line;
          }).join('\n').substr(2);
        } else {
          str = '\n' + str.split('\n').map(function(line) {
            return '   ' + line;
          }).join('\n');
        }
      }
    } else {
      str = ctx.stylize('[Circular]', 'special');
    }
  }
  if (isUndefined(name)) {
    if (array && key.match(/^\d+$/)) {
      return str;
    }
    name = JSON.stringify('' + key);
    if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
      name = name.substr(1, name.length - 2);
      name = ctx.stylize(name, 'name');
    } else {
      name = name.replace(/'/g, "\\'")
                 .replace(/\\"/g, '"')
                 .replace(/(^"|"$)/g, "'");
      name = ctx.stylize(name, 'string');
    }
  }

  return name + ': ' + str;
}


function reduceToSingleString(output, base, braces) {
  var numLinesEst = 0;
  var length = output.reduce(function(prev, cur) {
    numLinesEst++;
    if (cur.indexOf('\n') >= 0) numLinesEst++;
    return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
  }, 0);

  if (length > 60) {
    return braces[0] +
           (base === '' ? '' : base + '\n ') +
           ' ' +
           output.join(',\n  ') +
           ' ' +
           braces[1];
  }

  return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
}


// NOTE: These type checking functions intentionally don't use `instanceof`
// because it is fragile and can be easily faked with `Object.create()`.
function isArray(ar) {
  return Array.isArray(ar);
}
exports.isArray = isArray;

function isBoolean(arg) {
  return typeof arg === 'boolean';
}
exports.isBoolean = isBoolean;

function isNull(arg) {
  return arg === null;
}
exports.isNull = isNull;

function isNullOrUndefined(arg) {
  return arg == null;
}
exports.isNullOrUndefined = isNullOrUndefined;

function isNumber(arg) {
  return typeof arg === 'number';
}
exports.isNumber = isNumber;

function isString(arg) {
  return typeof arg === 'string';
}
exports.isString = isString;

function isSymbol(arg) {
  return typeof arg === 'symbol';
}
exports.isSymbol = isSymbol;

function isUndefined(arg) {
  return arg === void 0;
}
exports.isUndefined = isUndefined;

function isRegExp(re) {
  return isObject(re) && objectToString(re) === '[object RegExp]';
}
exports.isRegExp = isRegExp;

function isObject(arg) {
  return typeof arg === 'object' && arg !== null;
}
exports.isObject = isObject;

function isDate(d) {
  return isObject(d) && objectToString(d) === '[object Date]';
}
exports.isDate = isDate;

function isError(e) {
  return isObject(e) &&
      (objectToString(e) === '[object Error]' || e instanceof Error);
}
exports.isError = isError;

function isFunction(arg) {
  return typeof arg === 'function';
}
exports.isFunction = isFunction;

function isPrimitive(arg) {
  return arg === null ||
         typeof arg === 'boolean' ||
         typeof arg === 'number' ||
         typeof arg === 'string' ||
         typeof arg === 'symbol' ||  // ES6 symbol
         typeof arg === 'undefined';
}
exports.isPrimitive = isPrimitive;

exports.isBuffer = _dereq_('./support/isBuffer');

function objectToString(o) {
  return Object.prototype.toString.call(o);
}


function pad(n) {
  return n < 10 ? '0' + n.toString(10) : n.toString(10);
}


var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
              'Oct', 'Nov', 'Dec'];

// 26 Feb 16:19:34
function timestamp() {
  var d = new Date();
  var time = [pad(d.getHours()),
              pad(d.getMinutes()),
              pad(d.getSeconds())].join(':');
  return [d.getDate(), months[d.getMonth()], time].join(' ');
}


// log is just a thin wrapper to console.log that prepends a timestamp
exports.log = function() {
  console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));
};


/**
 * Inherit the prototype methods from one constructor into another.
 *
 * The Function.prototype.inherits from lang.js rewritten as a standalone
 * function (not on Function.prototype). NOTE: If this file is to be loaded
 * during bootstrapping this function needs to be rewritten using some native
 * functions as prototype setup using normal JavaScript does not work as
 * expected during bootstrapping (see mirror.js in r114903).
 *
 * @param {function} ctor Constructor function which needs to inherit the
 *     prototype.
 * @param {function} superCtor Constructor function to inherit prototype from.
 */
exports.inherits = _dereq_('inherits');

exports._extend = function(origin, add) {
  // Don't do anything if add isn't an object
  if (!add || !isObject(add)) return origin;

  var keys = Object.keys(add);
  var i = keys.length;
  while (i--) {
    origin[keys[i]] = add[keys[i]];
  }
  return origin;
};

function hasOwnProperty(obj, prop) {
  return Object.prototype.hasOwnProperty.call(obj, prop);
}

}).call(this,_dereq_("g5I+bs"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./support/isBuffer":77,"g5I+bs":30,"inherits":76}],79:[function(_dereq_,module,exports){
function DOMParser(options){
	this.options = options ||{locator:{}};
	
}
DOMParser.prototype.parseFromString = function(source,mimeType){
	var options = this.options;
	var sax =  new XMLReader();
	var domBuilder = options.domBuilder || new DOMHandler();//contentHandler and LexicalHandler
	var errorHandler = options.errorHandler;
	var locator = options.locator;
	var defaultNSMap = options.xmlns||{};
	var entityMap = {'lt':'<','gt':'>','amp':'&','quot':'"','apos':"'"}
	if(locator){
		domBuilder.setDocumentLocator(locator)
	}
	
	sax.errorHandler = buildErrorHandler(errorHandler,domBuilder,locator);
	sax.domBuilder = options.domBuilder || domBuilder;
	if(/\/x?html?$/.test(mimeType)){
		entityMap.nbsp = '\xa0';
		entityMap.copy = '\xa9';
		defaultNSMap['']= 'http://www.w3.org/1999/xhtml';
	}
	defaultNSMap.xml = defaultNSMap.xml || 'http://www.w3.org/XML/1998/namespace';
	if(source){
		sax.parse(source,defaultNSMap,entityMap);
	}else{
		sax.errorHandler.error("invalid doc source");
	}
	return domBuilder.doc;
}
function buildErrorHandler(errorImpl,domBuilder,locator){
	if(!errorImpl){
		if(domBuilder instanceof DOMHandler){
			return domBuilder;
		}
		errorImpl = domBuilder ;
	}
	var errorHandler = {}
	var isCallback = errorImpl instanceof Function;
	locator = locator||{}
	function build(key){
		var fn = errorImpl[key];
		if(!fn && isCallback){
			fn = errorImpl.length == 2?function(msg){errorImpl(key,msg)}:errorImpl;
		}
		errorHandler[key] = fn && function(msg){
			fn('[xmldom '+key+']\t'+msg+_locator(locator));
		}||function(){};
	}
	build('warning');
	build('error');
	build('fatalError');
	return errorHandler;
}

//console.log('#\n\n\n\n\n\n\n####')
/**
 * +ContentHandler+ErrorHandler
 * +LexicalHandler+EntityResolver2
 * -DeclHandler-DTDHandler 
 * 
 * DefaultHandler:EntityResolver, DTDHandler, ContentHandler, ErrorHandler
 * DefaultHandler2:DefaultHandler,LexicalHandler, DeclHandler, EntityResolver2
 * @link http://www.saxproject.org/apidoc/org/xml/sax/helpers/DefaultHandler.html
 */
function DOMHandler() {
    this.cdata = false;
}
function position(locator,node){
	node.lineNumber = locator.lineNumber;
	node.columnNumber = locator.columnNumber;
}
/**
 * @see org.xml.sax.ContentHandler#startDocument
 * @link http://www.saxproject.org/apidoc/org/xml/sax/ContentHandler.html
 */ 
DOMHandler.prototype = {
	startDocument : function() {
    	this.doc = new DOMImplementation().createDocument(null, null, null);
    	if (this.locator) {
        	this.doc.documentURI = this.locator.systemId;
    	}
	},
	startElement:function(namespaceURI, localName, qName, attrs) {
		var doc = this.doc;
	    var el = doc.createElementNS(namespaceURI, qName||localName);
	    var len = attrs.length;
	    appendElement(this, el);
	    this.currentElement = el;
	    
		this.locator && position(this.locator,el)
	    for (var i = 0 ; i < len; i++) {
	        var namespaceURI = attrs.getURI(i);
	        var value = attrs.getValue(i);
	        var qName = attrs.getQName(i);
			var attr = doc.createAttributeNS(namespaceURI, qName);
			this.locator &&position(attrs.getLocator(i),attr);
			attr.value = attr.nodeValue = value;
			el.setAttributeNode(attr)
	    }
	},
	endElement:function(namespaceURI, localName, qName) {
		var current = this.currentElement
		var tagName = current.tagName;
		this.currentElement = current.parentNode;
	},
	startPrefixMapping:function(prefix, uri) {
	},
	endPrefixMapping:function(prefix) {
	},
	processingInstruction:function(target, data) {
	    var ins = this.doc.createProcessingInstruction(target, data);
	    this.locator && position(this.locator,ins)
	    appendElement(this, ins);
	},
	ignorableWhitespace:function(ch, start, length) {
	},
	characters:function(chars, start, length) {
		chars = _toString.apply(this,arguments)
		//console.log(chars)
		if(chars){
			if (this.cdata) {
				var charNode = this.doc.createCDATASection(chars);
			} else {
				var charNode = this.doc.createTextNode(chars);
			}
			if(this.currentElement){
				this.currentElement.appendChild(charNode);
			}else if(/^\s*$/.test(chars)){
				this.doc.appendChild(charNode);
				//process xml
			}
			this.locator && position(this.locator,charNode)
		}
	},
	skippedEntity:function(name) {
	},
	endDocument:function() {
		this.doc.normalize();
	},
	setDocumentLocator:function (locator) {
	    if(this.locator = locator){// && !('lineNumber' in locator)){
	    	locator.lineNumber = 0;
	    }
	},
	//LexicalHandler
	comment:function(chars, start, length) {
		chars = _toString.apply(this,arguments)
	    var comm = this.doc.createComment(chars);
	    this.locator && position(this.locator,comm)
	    appendElement(this, comm);
	},
	
	startCDATA:function() {
	    //used in characters() methods
	    this.cdata = true;
	},
	endCDATA:function() {
	    this.cdata = false;
	},
	
	startDTD:function(name, publicId, systemId) {
		var impl = this.doc.implementation;
	    if (impl && impl.createDocumentType) {
	        var dt = impl.createDocumentType(name, publicId, systemId);
	        this.locator && position(this.locator,dt)
	        appendElement(this, dt);
	    }
	},
	/**
	 * @see org.xml.sax.ErrorHandler
	 * @link http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html
	 */
	warning:function(error) {
		console.warn('[xmldom warning]\t'+error,_locator(this.locator));
	},
	error:function(error) {
		console.error('[xmldom error]\t'+error,_locator(this.locator));
	},
	fatalError:function(error) {
		console.error('[xmldom fatalError]\t'+error,_locator(this.locator));
	    throw error;
	}
}
function _locator(l){
	if(l){
		return '\n@'+(l.systemId ||'')+'#[line:'+l.lineNumber+',col:'+l.columnNumber+']'
	}
}
function _toString(chars,start,length){
	if(typeof chars == 'string'){
		return chars.substr(start,length)
	}else{//java sax connect width xmldom on rhino(what about: "? && !(chars instanceof String)")
		if(chars.length >= start+length || start){
			return new java.lang.String(chars,start,length)+'';
		}
		return chars;
	}
}

/*
 * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/LexicalHandler.html
 * used method of org.xml.sax.ext.LexicalHandler:
 *  #comment(chars, start, length)
 *  #startCDATA()
 *  #endCDATA()
 *  #startDTD(name, publicId, systemId)
 *
 *
 * IGNORED method of org.xml.sax.ext.LexicalHandler:
 *  #endDTD()
 *  #startEntity(name)
 *  #endEntity(name)
 *
 *
 * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/DeclHandler.html
 * IGNORED method of org.xml.sax.ext.DeclHandler
 * 	#attributeDecl(eName, aName, type, mode, value)
 *  #elementDecl(name, model)
 *  #externalEntityDecl(name, publicId, systemId)
 *  #internalEntityDecl(name, value)
 * @link http://www.saxproject.org/apidoc/org/xml/sax/ext/EntityResolver2.html
 * IGNORED method of org.xml.sax.EntityResolver2
 *  #resolveEntity(String name,String publicId,String baseURI,String systemId)
 *  #resolveEntity(publicId, systemId)
 *  #getExternalSubset(name, baseURI)
 * @link http://www.saxproject.org/apidoc/org/xml/sax/DTDHandler.html
 * IGNORED method of org.xml.sax.DTDHandler
 *  #notationDecl(name, publicId, systemId) {};
 *  #unparsedEntityDecl(name, publicId, systemId, notationName) {};
 */
"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(key){
	DOMHandler.prototype[key] = function(){return null}
})

/* Private static helpers treated below as private instance methods, so don't need to add these to the public API; we might use a Relator to also get rid of non-standard public properties */
function appendElement (hander,node) {
    if (!hander.currentElement) {
        hander.doc.appendChild(node);
    } else {
        hander.currentElement.appendChild(node);
    }
}//appendChild and setAttributeNS are preformance key

//if(typeof require == 'function'){
	var XMLReader = _dereq_('./sax').XMLReader;
	var DOMImplementation = exports.DOMImplementation = _dereq_('./dom').DOMImplementation;
	exports.XMLSerializer = _dereq_('./dom').XMLSerializer ;
	exports.DOMParser = DOMParser;
//}

},{"./dom":80,"./sax":81}],80:[function(_dereq_,module,exports){
/*
 * DOM Level 2
 * Object DOMException
 * @see http://www.w3.org/TR/REC-DOM-Level-1/ecma-script-language-binding.html
 * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ecma-script-binding.html
 */

function copy(src,dest){
	for(var p in src){
		dest[p] = src[p];
	}
}
/**
^\w+\.prototype\.([_\w]+)\s*=\s*((?:.*\{\s*?[\r\n][\s\S]*?^})|\S.*?(?=[;\r\n]));?
^\w+\.prototype\.([_\w]+)\s*=\s*(\S.*?(?=[;\r\n]));?
 */
function _extends(Class,Super){
	var pt = Class.prototype;
	if(Object.create){
		var ppt = Object.create(Super.prototype)
		pt.__proto__ = ppt;
	}
	if(!(pt instanceof Super)){
		function t(){};
		t.prototype = Super.prototype;
		t = new t();
		copy(pt,t);
		Class.prototype = pt = t;
	}
	if(pt.constructor != Class){
		if(typeof Class != 'function'){
			console.error("unknow Class:"+Class)
		}
		pt.constructor = Class
	}
}
var htmlns = 'http://www.w3.org/1999/xhtml' ;
// Node Types
var NodeType = {}
var ELEMENT_NODE                = NodeType.ELEMENT_NODE                = 1;
var ATTRIBUTE_NODE              = NodeType.ATTRIBUTE_NODE              = 2;
var TEXT_NODE                   = NodeType.TEXT_NODE                   = 3;
var CDATA_SECTION_NODE          = NodeType.CDATA_SECTION_NODE          = 4;
var ENTITY_REFERENCE_NODE       = NodeType.ENTITY_REFERENCE_NODE       = 5;
var ENTITY_NODE                 = NodeType.ENTITY_NODE                 = 6;
var PROCESSING_INSTRUCTION_NODE = NodeType.PROCESSING_INSTRUCTION_NODE = 7;
var COMMENT_NODE                = NodeType.COMMENT_NODE                = 8;
var DOCUMENT_NODE               = NodeType.DOCUMENT_NODE               = 9;
var DOCUMENT_TYPE_NODE          = NodeType.DOCUMENT_TYPE_NODE          = 10;
var DOCUMENT_FRAGMENT_NODE      = NodeType.DOCUMENT_FRAGMENT_NODE      = 11;
var NOTATION_NODE               = NodeType.NOTATION_NODE               = 12;

// ExceptionCode
var ExceptionCode = {}
var ExceptionMessage = {};
var INDEX_SIZE_ERR              = ExceptionCode.INDEX_SIZE_ERR              = ((ExceptionMessage[1]="Index size error"),1);
var DOMSTRING_SIZE_ERR          = ExceptionCode.DOMSTRING_SIZE_ERR          = ((ExceptionMessage[2]="DOMString size error"),2);
var HIERARCHY_REQUEST_ERR       = ExceptionCode.HIERARCHY_REQUEST_ERR       = ((ExceptionMessage[3]="Hierarchy request error"),3);
var WRONG_DOCUMENT_ERR          = ExceptionCode.WRONG_DOCUMENT_ERR          = ((ExceptionMessage[4]="Wrong document"),4);
var INVALID_CHARACTER_ERR       = ExceptionCode.INVALID_CHARACTER_ERR       = ((ExceptionMessage[5]="Invalid character"),5);
var NO_DATA_ALLOWED_ERR         = ExceptionCode.NO_DATA_ALLOWED_ERR         = ((ExceptionMessage[6]="No data allowed"),6);
var NO_MODIFICATION_ALLOWED_ERR = ExceptionCode.NO_MODIFICATION_ALLOWED_ERR = ((ExceptionMessage[7]="No modification allowed"),7);
var NOT_FOUND_ERR               = ExceptionCode.NOT_FOUND_ERR               = ((ExceptionMessage[8]="Not found"),8);
var NOT_SUPPORTED_ERR           = ExceptionCode.NOT_SUPPORTED_ERR           = ((ExceptionMessage[9]="Not supported"),9);
var INUSE_ATTRIBUTE_ERR         = ExceptionCode.INUSE_ATTRIBUTE_ERR         = ((ExceptionMessage[10]="Attribute in use"),10);
//level2
var INVALID_STATE_ERR        	= ExceptionCode.INVALID_STATE_ERR        	= ((ExceptionMessage[11]="Invalid state"),11);
var SYNTAX_ERR               	= ExceptionCode.SYNTAX_ERR               	= ((ExceptionMessage[12]="Syntax error"),12);
var INVALID_MODIFICATION_ERR 	= ExceptionCode.INVALID_MODIFICATION_ERR 	= ((ExceptionMessage[13]="Invalid modification"),13);
var NAMESPACE_ERR            	= ExceptionCode.NAMESPACE_ERR           	= ((ExceptionMessage[14]="Invalid namespace"),14);
var INVALID_ACCESS_ERR       	= ExceptionCode.INVALID_ACCESS_ERR      	= ((ExceptionMessage[15]="Invalid access"),15);


function DOMException(code, message) {
	if(message instanceof Error){
		var error = message;
	}else{
		error = this;
		Error.call(this, ExceptionMessage[code]);
		this.message = ExceptionMessage[code];
		if(Error.captureStackTrace) Error.captureStackTrace(this, DOMException);
	}
	error.code = code;
	if(message) this.message = this.message + ": " + message;
	return error;
};
DOMException.prototype = Error.prototype;
copy(ExceptionCode,DOMException)
/**
 * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-536297177
 * The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. NodeList objects in the DOM are live.
 * The items in the NodeList are accessible via an integral index, starting from 0.
 */
function NodeList() {
};
NodeList.prototype = {
	/**
	 * The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.
	 * @standard level1
	 */
	length:0, 
	/**
	 * Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.
	 * @standard level1
	 * @param index  unsigned long 
	 *   Index into the collection.
	 * @return Node
	 * 	The node at the indexth position in the NodeList, or null if that is not a valid index. 
	 */
	item: function(index) {
		return this[index] || null;
	},
	toString:function(isHTML,nodeFilter){
		for(var buf = [], i = 0;i<this.length;i++){
			serializeToString(this[i],buf,isHTML,nodeFilter);
		}
		return buf.join('');
	}
};
function LiveNodeList(node,refresh){
	this._node = node;
	this._refresh = refresh
	_updateLiveList(this);
}
function _updateLiveList(list){
	var inc = list._node._inc || list._node.ownerDocument._inc;
	if(list._inc != inc){
		var ls = list._refresh(list._node);
		//console.log(ls.length)
		__set__(list,'length',ls.length);
		copy(ls,list);
		list._inc = inc;
	}
}
LiveNodeList.prototype.item = function(i){
	_updateLiveList(this);
	return this[i];
}

_extends(LiveNodeList,NodeList);
/**
 * 
 * Objects implementing the NamedNodeMap interface are used to represent collections of nodes that can be accessed by name. Note that NamedNodeMap does not inherit from NodeList; NamedNodeMaps are not maintained in any particular order. Objects contained in an object implementing NamedNodeMap may also be accessed by an ordinal index, but this is simply to allow convenient enumeration of the contents of a NamedNodeMap, and does not imply that the DOM specifies an order to these Nodes.
 * NamedNodeMap objects in the DOM are live.
 * used for attributes or DocumentType entities 
 */
function NamedNodeMap() {
};

function _findNodeIndex(list,node){
	var i = list.length;
	while(i--){
		if(list[i] === node){return i}
	}
}

function _addNamedNode(el,list,newAttr,oldAttr){
	if(oldAttr){
		list[_findNodeIndex(list,oldAttr)] = newAttr;
	}else{
		list[list.length++] = newAttr;
	}
	if(el){
		newAttr.ownerElement = el;
		var doc = el.ownerDocument;
		if(doc){
			oldAttr && _onRemoveAttribute(doc,el,oldAttr);
			_onAddAttribute(doc,el,newAttr);
		}
	}
}
function _removeNamedNode(el,list,attr){
	//console.log('remove attr:'+attr)
	var i = _findNodeIndex(list,attr);
	if(i>=0){
		var lastIndex = list.length-1
		while(i<lastIndex){
			list[i] = list[++i]
		}
		list.length = lastIndex;
		if(el){
			var doc = el.ownerDocument;
			if(doc){
				_onRemoveAttribute(doc,el,attr);
				attr.ownerElement = null;
			}
		}
	}else{
		throw DOMException(NOT_FOUND_ERR,new Error(el.tagName+'@'+attr))
	}
}
NamedNodeMap.prototype = {
	length:0,
	item:NodeList.prototype.item,
	getNamedItem: function(key) {
//		if(key.indexOf(':')>0 || key == 'xmlns'){
//			return null;
//		}
		//console.log()
		var i = this.length;
		while(i--){
			var attr = this[i];
			//console.log(attr.nodeName,key)
			if(attr.nodeName == key){
				return attr;
			}
		}
	},
	setNamedItem: function(attr) {
		var el = attr.ownerElement;
		if(el && el!=this._ownerElement){
			throw new DOMException(INUSE_ATTRIBUTE_ERR);
		}
		var oldAttr = this.getNamedItem(attr.nodeName);
		_addNamedNode(this._ownerElement,this,attr,oldAttr);
		return oldAttr;
	},
	/* returns Node */
	setNamedItemNS: function(attr) {// raises: WRONG_DOCUMENT_ERR,NO_MODIFICATION_ALLOWED_ERR,INUSE_ATTRIBUTE_ERR
		var el = attr.ownerElement, oldAttr;
		if(el && el!=this._ownerElement){
			throw new DOMException(INUSE_ATTRIBUTE_ERR);
		}
		oldAttr = this.getNamedItemNS(attr.namespaceURI,attr.localName);
		_addNamedNode(this._ownerElement,this,attr,oldAttr);
		return oldAttr;
	},

	/* returns Node */
	removeNamedItem: function(key) {
		var attr = this.getNamedItem(key);
		_removeNamedNode(this._ownerElement,this,attr);
		return attr;
		
		
	},// raises: NOT_FOUND_ERR,NO_MODIFICATION_ALLOWED_ERR
	
	//for level2
	removeNamedItemNS:function(namespaceURI,localName){
		var attr = this.getNamedItemNS(namespaceURI,localName);
		_removeNamedNode(this._ownerElement,this,attr);
		return attr;
	},
	getNamedItemNS: function(namespaceURI, localName) {
		var i = this.length;
		while(i--){
			var node = this[i];
			if(node.localName == localName && node.namespaceURI == namespaceURI){
				return node;
			}
		}
		return null;
	}
};
/**
 * @see http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-102161490
 */
function DOMImplementation(/* Object */ features) {
	this._features = {};
	if (features) {
		for (var feature in features) {
			 this._features = features[feature];
		}
	}
};

DOMImplementation.prototype = {
	hasFeature: function(/* string */ feature, /* string */ version) {
		var versions = this._features[feature.toLowerCase()];
		if (versions && (!version || version in versions)) {
			return true;
		} else {
			return false;
		}
	},
	// Introduced in DOM Level 2:
	createDocument:function(namespaceURI,  qualifiedName, doctype){// raises:INVALID_CHARACTER_ERR,NAMESPACE_ERR,WRONG_DOCUMENT_ERR
		var doc = new Document();
		doc.implementation = this;
		doc.childNodes = new NodeList();
		doc.doctype = doctype;
		if(doctype){
			doc.appendChild(doctype);
		}
		if(qualifiedName){
			var root = doc.createElementNS(namespaceURI,qualifiedName);
			doc.appendChild(root);
		}
		return doc;
	},
	// Introduced in DOM Level 2:
	createDocumentType:function(qualifiedName, publicId, systemId){// raises:INVALID_CHARACTER_ERR,NAMESPACE_ERR
		var node = new DocumentType();
		node.name = qualifiedName;
		node.nodeName = qualifiedName;
		node.publicId = publicId;
		node.systemId = systemId;
		// Introduced in DOM Level 2:
		//readonly attribute DOMString        internalSubset;
		
		//TODO:..
		//  readonly attribute NamedNodeMap     entities;
		//  readonly attribute NamedNodeMap     notations;
		return node;
	}
};


/**
 * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247
 */

function Node() {
};

Node.prototype = {
	firstChild : null,
	lastChild : null,
	previousSibling : null,
	nextSibling : null,
	attributes : null,
	parentNode : null,
	childNodes : null,
	ownerDocument : null,
	nodeValue : null,
	namespaceURI : null,
	prefix : null,
	localName : null,
	// Modified in DOM Level 2:
	insertBefore:function(newChild, refChild){//raises 
		return _insertBefore(this,newChild,refChild);
	},
	replaceChild:function(newChild, oldChild){//raises 
		this.insertBefore(newChild,oldChild);
		if(oldChild){
			this.removeChild(oldChild);
		}
	},
	removeChild:function(oldChild){
		return _removeChild(this,oldChild);
	},
	appendChild:function(newChild){
		return this.insertBefore(newChild,null);
	},
	hasChildNodes:function(){
		return this.firstChild != null;
	},
	cloneNode:function(deep){
		return cloneNode(this.ownerDocument||this,this,deep);
	},
	// Modified in DOM Level 2:
	normalize:function(){
		var child = this.firstChild;
		while(child){
			var next = child.nextSibling;
			if(next && next.nodeType == TEXT_NODE && child.nodeType == TEXT_NODE){
				this.removeChild(next);
				child.appendData(next.data);
			}else{
				child.normalize();
				child = next;
			}
		}
	},
  	// Introduced in DOM Level 2:
	isSupported:function(feature, version){
		return this.ownerDocument.implementation.hasFeature(feature,version);
	},
    // Introduced in DOM Level 2:
    hasAttributes:function(){
    	return this.attributes.length>0;
    },
    lookupPrefix:function(namespaceURI){
    	var el = this;
    	while(el){
    		var map = el._nsMap;
    		//console.dir(map)
    		if(map){
    			for(var n in map){
    				if(map[n] == namespaceURI){
    					return n;
    				}
    			}
    		}
    		el = el.nodeType == ATTRIBUTE_NODE?el.ownerDocument : el.parentNode;
    	}
    	return null;
    },
    // Introduced in DOM Level 3:
    lookupNamespaceURI:function(prefix){
    	var el = this;
    	while(el){
    		var map = el._nsMap;
    		//console.dir(map)
    		if(map){
    			if(prefix in map){
    				return map[prefix] ;
    			}
    		}
    		el = el.nodeType == ATTRIBUTE_NODE?el.ownerDocument : el.parentNode;
    	}
    	return null;
    },
    // Introduced in DOM Level 3:
    isDefaultNamespace:function(namespaceURI){
    	var prefix = this.lookupPrefix(namespaceURI);
    	return prefix == null;
    }
};


function _xmlEncoder(c){
	return c == '<' && '&lt;' ||
         c == '>' && '&gt;' ||
         c == '&' && '&amp;' ||
         c == '"' && '&quot;' ||
         '&#'+c.charCodeAt()+';'
}


copy(NodeType,Node);
copy(NodeType,Node.prototype);

/**
 * @param callback return true for continue,false for break
 * @return boolean true: break visit;
 */
function _visitNode(node,callback){
	if(callback(node)){
		return true;
	}
	if(node = node.firstChild){
		do{
			if(_visitNode(node,callback)){return true}
        }while(node=node.nextSibling)
    }
}



function Document(){
}
function _onAddAttribute(doc,el,newAttr){
	doc && doc._inc++;
	var ns = newAttr.namespaceURI ;
	if(ns == 'http://www.w3.org/2000/xmlns/'){
		//update namespace
		el._nsMap[newAttr.prefix?newAttr.localName:''] = newAttr.value
	}
}
function _onRemoveAttribute(doc,el,newAttr,remove){
	doc && doc._inc++;
	var ns = newAttr.namespaceURI ;
	if(ns == 'http://www.w3.org/2000/xmlns/'){
		//update namespace
		delete el._nsMap[newAttr.prefix?newAttr.localName:'']
	}
}
function _onUpdateChild(doc,el,newChild){
	if(doc && doc._inc){
		doc._inc++;
		//update childNodes
		var cs = el.childNodes;
		if(newChild){
			cs[cs.length++] = newChild;
		}else{
			//console.log(1)
			var child = el.firstChild;
			var i = 0;
			while(child){
				cs[i++] = child;
				child =child.nextSibling;
			}
			cs.length = i;
		}
	}
}

/**
 * attributes;
 * children;
 * 
 * writeable properties:
 * nodeValue,Attr:value,CharacterData:data
 * prefix
 */
function _removeChild(parentNode,child){
	var previous = child.previousSibling;
	var next = child.nextSibling;
	if(previous){
		previous.nextSibling = next;
	}else{
		parentNode.firstChild = next
	}
	if(next){
		next.previousSibling = previous;
	}else{
		parentNode.lastChild = previous;
	}
	_onUpdateChild(parentNode.ownerDocument,parentNode);
	return child;
}
/**
 * preformance key(refChild == null)
 */
function _insertBefore(parentNode,newChild,nextChild){
	var cp = newChild.parentNode;
	if(cp){
		cp.removeChild(newChild);//remove and update
	}
	if(newChild.nodeType === DOCUMENT_FRAGMENT_NODE){
		var newFirst = newChild.firstChild;
		if (newFirst == null) {
			return newChild;
		}
		var newLast = newChild.lastChild;
	}else{
		newFirst = newLast = newChild;
	}
	var pre = nextChild ? nextChild.previousSibling : parentNode.lastChild;

	newFirst.previousSibling = pre;
	newLast.nextSibling = nextChild;
	
	
	if(pre){
		pre.nextSibling = newFirst;
	}else{
		parentNode.firstChild = newFirst;
	}
	if(nextChild == null){
		parentNode.lastChild = newLast;
	}else{
		nextChild.previousSibling = newLast;
	}
	do{
		newFirst.parentNode = parentNode;
	}while(newFirst !== newLast && (newFirst= newFirst.nextSibling))
	_onUpdateChild(parentNode.ownerDocument||parentNode,parentNode);
	//console.log(parentNode.lastChild.nextSibling == null)
	if (newChild.nodeType == DOCUMENT_FRAGMENT_NODE) {
		newChild.firstChild = newChild.lastChild = null;
	}
	return newChild;
}
function _appendSingleChild(parentNode,newChild){
	var cp = newChild.parentNode;
	if(cp){
		var pre = parentNode.lastChild;
		cp.removeChild(newChild);//remove and update
		var pre = parentNode.lastChild;
	}
	var pre = parentNode.lastChild;
	newChild.parentNode = parentNode;
	newChild.previousSibling = pre;
	newChild.nextSibling = null;
	if(pre){
		pre.nextSibling = newChild;
	}else{
		parentNode.firstChild = newChild;
	}
	parentNode.lastChild = newChild;
	_onUpdateChild(parentNode.ownerDocument,parentNode,newChild);
	return newChild;
	//console.log("__aa",parentNode.lastChild.nextSibling == null)
}
Document.prototype = {
	//implementation : null,
	nodeName :  '#document',
	nodeType :  DOCUMENT_NODE,
	doctype :  null,
	documentElement :  null,
	_inc : 1,
	
	insertBefore :  function(newChild, refChild){//raises 
		if(newChild.nodeType == DOCUMENT_FRAGMENT_NODE){
			var child = newChild.firstChild;
			while(child){
				var next = child.nextSibling;
				this.insertBefore(child,refChild);
				child = next;
			}
			return newChild;
		}
		if(this.documentElement == null && newChild.nodeType == ELEMENT_NODE){
			this.documentElement = newChild;
		}
		
		return _insertBefore(this,newChild,refChild),(newChild.ownerDocument = this),newChild;
	},
	removeChild :  function(oldChild){
		if(this.documentElement == oldChild){
			this.documentElement = null;
		}
		return _removeChild(this,oldChild);
	},
	// Introduced in DOM Level 2:
	importNode : function(importedNode,deep){
		return importNode(this,importedNode,deep);
	},
	// Introduced in DOM Level 2:
	getElementById :	function(id){
		var rtv = null;
		_visitNode(this.documentElement,function(node){
			if(node.nodeType == ELEMENT_NODE){
				if(node.getAttribute('id') == id){
					rtv = node;
					return true;
				}
			}
		})
		return rtv;
	},
	
	//document factory method:
	createElement :	function(tagName){
		var node = new Element();
		node.ownerDocument = this;
		node.nodeName = tagName;
		node.tagName = tagName;
		node.childNodes = new NodeList();
		var attrs	= node.attributes = new NamedNodeMap();
		attrs._ownerElement = node;
		return node;
	},
	createDocumentFragment :	function(){
		var node = new DocumentFragment();
		node.ownerDocument = this;
		node.childNodes = new NodeList();
		return node;
	},
	createTextNode :	function(data){
		var node = new Text();
		node.ownerDocument = this;
		node.appendData(data)
		return node;
	},
	createComment :	function(data){
		var node = new Comment();
		node.ownerDocument = this;
		node.appendData(data)
		return node;
	},
	createCDATASection :	function(data){
		var node = new CDATASection();
		node.ownerDocument = this;
		node.appendData(data)
		return node;
	},
	createProcessingInstruction :	function(target,data){
		var node = new ProcessingInstruction();
		node.ownerDocument = this;
		node.tagName = node.target = target;
		node.nodeValue= node.data = data;
		return node;
	},
	createAttribute :	function(name){
		var node = new Attr();
		node.ownerDocument	= this;
		node.name = name;
		node.nodeName	= name;
		node.localName = name;
		node.specified = true;
		return node;
	},
	createEntityReference :	function(name){
		var node = new EntityReference();
		node.ownerDocument	= this;
		node.nodeName	= name;
		return node;
	},
	// Introduced in DOM Level 2:
	createElementNS :	function(namespaceURI,qualifiedName){
		var node = new Element();
		var pl = qualifiedName.split(':');
		var attrs	= node.attributes = new NamedNodeMap();
		node.childNodes = new NodeList();
		node.ownerDocument = this;
		node.nodeName = qualifiedName;
		node.tagName = qualifiedName;
		node.namespaceURI = namespaceURI;
		if(pl.length == 2){
			node.prefix = pl[0];
			node.localName = pl[1];
		}else{
			//el.prefix = null;
			node.localName = qualifiedName;
		}
		attrs._ownerElement = node;
		return node;
	},
	// Introduced in DOM Level 2:
	createAttributeNS :	function(namespaceURI,qualifiedName){
		var node = new Attr();
		var pl = qualifiedName.split(':');
		node.ownerDocument = this;
		node.nodeName = qualifiedName;
		node.name = qualifiedName;
		node.namespaceURI = namespaceURI;
		node.specified = true;
		if(pl.length == 2){
			node.prefix = pl[0];
			node.localName = pl[1];
		}else{
			//el.prefix = null;
			node.localName = qualifiedName;
		}
		return node;
	}
};
_extends(Document,Node);


function Element() {
	this._nsMap = {};
};
Element.prototype = {
	nodeType : ELEMENT_NODE,
	hasAttribute : function(name){
		return this.getAttributeNode(name)!=null;
	},
	getAttribute : function(name){
		var attr = this.getAttributeNode(name);
		return attr && attr.value || '';
	},
	getAttributeNode : function(name){
		return this.attributes.getNamedItem(name);
	},
	setAttribute : function(name, value){
		var attr = this.ownerDocument.createAttribute(name);
		attr.value = attr.nodeValue = "" + value;
		this.setAttributeNode(attr)
	},
	removeAttribute : function(name){
		var attr = this.getAttributeNode(name)
		attr && this.removeAttributeNode(attr);
	},
	
	//four real opeartion method
	appendChild:function(newChild){
		if(newChild.nodeType === DOCUMENT_FRAGMENT_NODE){
			return this.insertBefore(newChild,null);
		}else{
			return _appendSingleChild(this,newChild);
		}
	},
	setAttributeNode : function(newAttr){
		return this.attributes.setNamedItem(newAttr);
	},
	setAttributeNodeNS : function(newAttr){
		return this.attributes.setNamedItemNS(newAttr);
	},
	removeAttributeNode : function(oldAttr){
		//console.log(this == oldAttr.ownerElement)
		return this.attributes.removeNamedItem(oldAttr.nodeName);
	},
	//get real attribute name,and remove it by removeAttributeNode
	removeAttributeNS : function(namespaceURI, localName){
		var old = this.getAttributeNodeNS(namespaceURI, localName);
		old && this.removeAttributeNode(old);
	},
	
	hasAttributeNS : function(namespaceURI, localName){
		return this.getAttributeNodeNS(namespaceURI, localName)!=null;
	},
	getAttributeNS : function(namespaceURI, localName){
		var attr = this.getAttributeNodeNS(namespaceURI, localName);
		return attr && attr.value || '';
	},
	setAttributeNS : function(namespaceURI, qualifiedName, value){
		var attr = this.ownerDocument.createAttributeNS(namespaceURI, qualifiedName);
		attr.value = attr.nodeValue = "" + value;
		this.setAttributeNode(attr)
	},
	getAttributeNodeNS : function(namespaceURI, localName){
		return this.attributes.getNamedItemNS(namespaceURI, localName);
	},
	
	getElementsByTagName : function(tagName){
		return new LiveNodeList(this,function(base){
			var ls = [];
			_visitNode(base,function(node){
				if(node !== base && node.nodeType == ELEMENT_NODE && (tagName === '*' || node.tagName == tagName)){
					ls.push(node);
				}
			});
			return ls;
		});
	},
	getElementsByTagNameNS : function(namespaceURI, localName){
		return new LiveNodeList(this,function(base){
			var ls = [];
			_visitNode(base,function(node){
				if(node !== base && node.nodeType === ELEMENT_NODE && (namespaceURI === '*' || node.namespaceURI === namespaceURI) && (localName === '*' || node.localName == localName)){
					ls.push(node);
				}
			});
			return ls;
			
		});
	}
};
Document.prototype.getElementsByTagName = Element.prototype.getElementsByTagName;
Document.prototype.getElementsByTagNameNS = Element.prototype.getElementsByTagNameNS;


_extends(Element,Node);
function Attr() {
};
Attr.prototype.nodeType = ATTRIBUTE_NODE;
_extends(Attr,Node);


function CharacterData() {
};
CharacterData.prototype = {
	data : '',
	substringData : function(offset, count) {
		return this.data.substring(offset, offset+count);
	},
	appendData: function(text) {
		text = this.data+text;
		this.nodeValue = this.data = text;
		this.length = text.length;
	},
	insertData: function(offset,text) {
		this.replaceData(offset,0,text);
	
	},
	appendChild:function(newChild){
		throw new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR])
	},
	deleteData: function(offset, count) {
		this.replaceData(offset,count,"");
	},
	replaceData: function(offset, count, text) {
		var start = this.data.substring(0,offset);
		var end = this.data.substring(offset+count);
		text = start + text + end;
		this.nodeValue = this.data = text;
		this.length = text.length;
	}
}
_extends(CharacterData,Node);
function Text() {
};
Text.prototype = {
	nodeName : "#text",
	nodeType : TEXT_NODE,
	splitText : function(offset) {
		var text = this.data;
		var newText = text.substring(offset);
		text = text.substring(0, offset);
		this.data = this.nodeValue = text;
		this.length = text.length;
		var newNode = this.ownerDocument.createTextNode(newText);
		if(this.parentNode){
			this.parentNode.insertBefore(newNode, this.nextSibling);
		}
		return newNode;
	}
}
_extends(Text,CharacterData);
function Comment() {
};
Comment.prototype = {
	nodeName : "#comment",
	nodeType : COMMENT_NODE
}
_extends(Comment,CharacterData);

function CDATASection() {
};
CDATASection.prototype = {
	nodeName : "#cdata-section",
	nodeType : CDATA_SECTION_NODE
}
_extends(CDATASection,CharacterData);


function DocumentType() {
};
DocumentType.prototype.nodeType = DOCUMENT_TYPE_NODE;
_extends(DocumentType,Node);

function Notation() {
};
Notation.prototype.nodeType = NOTATION_NODE;
_extends(Notation,Node);

function Entity() {
};
Entity.prototype.nodeType = ENTITY_NODE;
_extends(Entity,Node);

function EntityReference() {
};
EntityReference.prototype.nodeType = ENTITY_REFERENCE_NODE;
_extends(EntityReference,Node);

function DocumentFragment() {
};
DocumentFragment.prototype.nodeName =	"#document-fragment";
DocumentFragment.prototype.nodeType =	DOCUMENT_FRAGMENT_NODE;
_extends(DocumentFragment,Node);


function ProcessingInstruction() {
}
ProcessingInstruction.prototype.nodeType = PROCESSING_INSTRUCTION_NODE;
_extends(ProcessingInstruction,Node);
function XMLSerializer(){}
XMLSerializer.prototype.serializeToString = function(node,isHtml,nodeFilter){
	return nodeSerializeToString.call(node,isHtml,nodeFilter);
}
Node.prototype.toString = nodeSerializeToString;
function nodeSerializeToString(isHtml,nodeFilter){
	var buf = [];
	var refNode = this.nodeType == 9?this.documentElement:this;
	var prefix = refNode.prefix;
	var uri = refNode.namespaceURI;
	
	if(uri && prefix == null){
		//console.log(prefix)
		var prefix = refNode.lookupPrefix(uri);
		if(prefix == null){
			//isHTML = true;
			var visibleNamespaces=[
			{namespace:uri,prefix:null}
			//{namespace:uri,prefix:''}
			]
		}
	}
	serializeToString(this,buf,isHtml,nodeFilter,visibleNamespaces);
	//console.log('###',this.nodeType,uri,prefix,buf.join(''))
	return buf.join('');
}
function needNamespaceDefine(node,isHTML, visibleNamespaces) {
	var prefix = node.prefix||'';
	var uri = node.namespaceURI;
	if (!prefix && !uri){
		return false;
	}
	if (prefix === "xml" && uri === "http://www.w3.org/XML/1998/namespace" 
		|| uri == 'http://www.w3.org/2000/xmlns/'){
		return false;
	}
	
	var i = visibleNamespaces.length 
	//console.log('@@@@',node.tagName,prefix,uri,visibleNamespaces)
	while (i--) {
		var ns = visibleNamespaces[i];
		// get namespace prefix
		//console.log(node.nodeType,node.tagName,ns.prefix,prefix)
		if (ns.prefix == prefix){
			return ns.namespace != uri;
		}
	}
	//console.log(isHTML,uri,prefix=='')
	//if(isHTML && prefix ==null && uri == 'http://www.w3.org/1999/xhtml'){
	//	return false;
	//}
	//node.flag = '11111'
	//console.error(3,true,node.flag,node.prefix,node.namespaceURI)
	return true;
}
function serializeToString(node,buf,isHTML,nodeFilter,visibleNamespaces){
	if(nodeFilter){
		node = nodeFilter(node);
		if(node){
			if(typeof node == 'string'){
				buf.push(node);
				return;
			}
		}else{
			return;
		}
		//buf.sort.apply(attrs, attributeSorter);
	}
	switch(node.nodeType){
	case ELEMENT_NODE:
		if (!visibleNamespaces) visibleNamespaces = [];
		var startVisibleNamespaces = visibleNamespaces.length;
		var attrs = node.attributes;
		var len = attrs.length;
		var child = node.firstChild;
		var nodeName = node.tagName;
		
		isHTML =  (htmlns === node.namespaceURI) ||isHTML 
		buf.push('<',nodeName);
		
		
		
		for(var i=0;i<len;i++){
			// add namespaces for attributes
			var attr = attrs.item(i);
			if (attr.prefix == 'xmlns') {
				visibleNamespaces.push({ prefix: attr.localName, namespace: attr.value });
			}else if(attr.nodeName == 'xmlns'){
				visibleNamespaces.push({ prefix: '', namespace: attr.value });
			}
		}
		for(var i=0;i<len;i++){
			var attr = attrs.item(i);
			if (needNamespaceDefine(attr,isHTML, visibleNamespaces)) {
				var prefix = attr.prefix||'';
				var uri = attr.namespaceURI;
				var ns = prefix ? ' xmlns:' + prefix : " xmlns";
				buf.push(ns, '="' , uri , '"');
				visibleNamespaces.push({ prefix: prefix, namespace:uri });
			}
			serializeToString(attr,buf,isHTML,nodeFilter,visibleNamespaces);
		}
		// add namespace for current node		
		if (needNamespaceDefine(node,isHTML, visibleNamespaces)) {
			var prefix = node.prefix||'';
			var uri = node.namespaceURI;
			var ns = prefix ? ' xmlns:' + prefix : " xmlns";
			buf.push(ns, '="' , uri , '"');
			visibleNamespaces.push({ prefix: prefix, namespace:uri });
		}
		
		if(child || isHTML && !/^(?:meta|link|img|br|hr|input)$/i.test(nodeName)){
			buf.push('>');
			//if is cdata child node
			if(isHTML && /^script$/i.test(nodeName)){
				while(child){
					if(child.data){
						buf.push(child.data);
					}else{
						serializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces);
					}
					child = child.nextSibling;
				}
			}else
			{
				while(child){
					serializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces);
					child = child.nextSibling;
				}
			}
			buf.push('</',nodeName,'>');
		}else{
			buf.push('/>');
		}
		// remove added visible namespaces
		//visibleNamespaces.length = startVisibleNamespaces;
		return;
	case DOCUMENT_NODE:
	case DOCUMENT_FRAGMENT_NODE:
		var child = node.firstChild;
		while(child){
			serializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces);
			child = child.nextSibling;
		}
		return;
	case ATTRIBUTE_NODE:
		return buf.push(' ',node.name,'="',node.value.replace(/[<&"]/g,_xmlEncoder),'"');
	case TEXT_NODE:
		return buf.push(node.data.replace(/[<&]/g,_xmlEncoder));
	case CDATA_SECTION_NODE:
		return buf.push( '<![CDATA[',node.data,']]>');
	case COMMENT_NODE:
		return buf.push( "<!--",node.data,"-->");
	case DOCUMENT_TYPE_NODE:
		var pubid = node.publicId;
		var sysid = node.systemId;
		buf.push('<!DOCTYPE ',node.name);
		if(pubid){
			buf.push(' PUBLIC "',pubid);
			if (sysid && sysid!='.') {
				buf.push( '" "',sysid);
			}
			buf.push('">');
		}else if(sysid && sysid!='.'){
			buf.push(' SYSTEM "',sysid,'">');
		}else{
			var sub = node.internalSubset;
			if(sub){
				buf.push(" [",sub,"]");
			}
			buf.push(">");
		}
		return;
	case PROCESSING_INSTRUCTION_NODE:
		return buf.push( "<?",node.target," ",node.data,"?>");
	case ENTITY_REFERENCE_NODE:
		return buf.push( '&',node.nodeName,';');
	//case ENTITY_NODE:
	//case NOTATION_NODE:
	default:
		buf.push('??',node.nodeName);
	}
}
function importNode(doc,node,deep){
	var node2;
	switch (node.nodeType) {
	case ELEMENT_NODE:
		node2 = node.cloneNode(false);
		node2.ownerDocument = doc;
		//var attrs = node2.attributes;
		//var len = attrs.length;
		//for(var i=0;i<len;i++){
			//node2.setAttributeNodeNS(importNode(doc,attrs.item(i),deep));
		//}
	case DOCUMENT_FRAGMENT_NODE:
		break;
	case ATTRIBUTE_NODE:
		deep = true;
		break;
	//case ENTITY_REFERENCE_NODE:
	//case PROCESSING_INSTRUCTION_NODE:
	////case TEXT_NODE:
	//case CDATA_SECTION_NODE:
	//case COMMENT_NODE:
	//	deep = false;
	//	break;
	//case DOCUMENT_NODE:
	//case DOCUMENT_TYPE_NODE:
	//cannot be imported.
	//case ENTITY_NODE:
	//case NOTATION_NODE：
	//can not hit in level3
	//default:throw e;
	}
	if(!node2){
		node2 = node.cloneNode(false);//false
	}
	node2.ownerDocument = doc;
	node2.parentNode = null;
	if(deep){
		var child = node.firstChild;
		while(child){
			node2.appendChild(importNode(doc,child,deep));
			child = child.nextSibling;
		}
	}
	return node2;
}
//
//var _relationMap = {firstChild:1,lastChild:1,previousSibling:1,nextSibling:1,
//					attributes:1,childNodes:1,parentNode:1,documentElement:1,doctype,};
function cloneNode(doc,node,deep){
	var node2 = new node.constructor();
	for(var n in node){
		var v = node[n];
		if(typeof v != 'object' ){
			if(v != node2[n]){
				node2[n] = v;
			}
		}
	}
	if(node.childNodes){
		node2.childNodes = new NodeList();
	}
	node2.ownerDocument = doc;
	switch (node2.nodeType) {
	case ELEMENT_NODE:
		var attrs	= node.attributes;
		var attrs2	= node2.attributes = new NamedNodeMap();
		var len = attrs.length
		attrs2._ownerElement = node2;
		for(var i=0;i<len;i++){
			node2.setAttributeNode(cloneNode(doc,attrs.item(i),true));
		}
		break;;
	case ATTRIBUTE_NODE:
		deep = true;
	}
	if(deep){
		var child = node.firstChild;
		while(child){
			node2.appendChild(cloneNode(doc,child,deep));
			child = child.nextSibling;
		}
	}
	return node2;
}

function __set__(object,key,value){
	object[key] = value
}
//do dynamic
try{
	if(Object.defineProperty){
		Object.defineProperty(LiveNodeList.prototype,'length',{
			get:function(){
				_updateLiveList(this);
				return this.$$length;
			}
		});
		Object.defineProperty(Node.prototype,'textContent',{
			get:function(){
				return getTextContent(this);
			},
			set:function(data){
				switch(this.nodeType){
				case ELEMENT_NODE:
				case DOCUMENT_FRAGMENT_NODE:
					while(this.firstChild){
						this.removeChild(this.firstChild);
					}
					if(data || String(data)){
						this.appendChild(this.ownerDocument.createTextNode(data));
					}
					break;
				default:
					//TODO:
					this.data = data;
					this.value = data;
					this.nodeValue = data;
				}
			}
		})
		
		function getTextContent(node){
			switch(node.nodeType){
			case ELEMENT_NODE:
			case DOCUMENT_FRAGMENT_NODE:
				var buf = [];
				node = node.firstChild;
				while(node){
					if(node.nodeType!==7 && node.nodeType !==8){
						buf.push(getTextContent(node));
					}
					node = node.nextSibling;
				}
				return buf.join('');
			default:
				return node.nodeValue;
			}
		}
		__set__ = function(object,key,value){
			//console.log(value)
			object['$$'+key] = value
		}
	}
}catch(e){//ie8
}

//if(typeof require == 'function'){
	exports.DOMImplementation = DOMImplementation;
	exports.XMLSerializer = XMLSerializer;
//}

},{}],81:[function(_dereq_,module,exports){
//[4]   	NameStartChar	   ::=   	":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]
//[4a]   	NameChar	   ::=   	NameStartChar | "-" | "." | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040]
//[5]   	Name	   ::=   	NameStartChar (NameChar)*
var nameStartChar = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]///\u10000-\uEFFFF
var nameChar = new RegExp("[\\-\\.0-9"+nameStartChar.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]");
var tagNamePattern = new RegExp('^'+nameStartChar.source+nameChar.source+'*(?:\:'+nameStartChar.source+nameChar.source+'*)?$');
//var tagNamePattern = /^[a-zA-Z_][\w\-\.]*(?:\:[a-zA-Z_][\w\-\.]*)?$/
//var handlers = 'resolveEntity,getExternalSubset,characters,endDocument,endElement,endPrefixMapping,ignorableWhitespace,processingInstruction,setDocumentLocator,skippedEntity,startDocument,startElement,startPrefixMapping,notationDecl,unparsedEntityDecl,error,fatalError,warning,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,comment,endCDATA,endDTD,endEntity,startCDATA,startDTD,startEntity'.split(',')

//S_TAG,	S_ATTR,	S_EQ,	S_ATTR_NOQUOT_VALUE
//S_ATTR_SPACE,	S_ATTR_END,	S_TAG_SPACE, S_TAG_CLOSE
var S_TAG = 0;//tag name offerring
var S_ATTR = 1;//attr name offerring 
var S_ATTR_SPACE=2;//attr name end and space offer
var S_EQ = 3;//=space?
var S_ATTR_NOQUOT_VALUE = 4;//attr value(no quot value only)
var S_ATTR_END = 5;//attr value end and no space(quot end)
var S_TAG_SPACE = 6;//(attr value end || tag end ) && (space offer)
var S_TAG_CLOSE = 7;//closed el<el />

function XMLReader(){
	
}

XMLReader.prototype = {
	parse:function(source,defaultNSMap,entityMap){
		var domBuilder = this.domBuilder;
		domBuilder.startDocument();
		_copy(defaultNSMap ,defaultNSMap = {})
		parse(source,defaultNSMap,entityMap,
				domBuilder,this.errorHandler);
		domBuilder.endDocument();
	}
}
function parse(source,defaultNSMapCopy,entityMap,domBuilder,errorHandler){
	function fixedFromCharCode(code) {
		// String.prototype.fromCharCode does not supports
		// > 2 bytes unicode chars directly
		if (code > 0xffff) {
			code -= 0x10000;
			var surrogate1 = 0xd800 + (code >> 10)
				, surrogate2 = 0xdc00 + (code & 0x3ff);

			return String.fromCharCode(surrogate1, surrogate2);
		} else {
			return String.fromCharCode(code);
		}
	}
	function entityReplacer(a){
		var k = a.slice(1,-1);
		if(k in entityMap){
			return entityMap[k]; 
		}else if(k.charAt(0) === '#'){
			return fixedFromCharCode(parseInt(k.substr(1).replace('x','0x')))
		}else{
			errorHandler.error('entity not found:'+a);
			return a;
		}
	}
	function appendText(end){//has some bugs
		if(end>start){
			var xt = source.substring(start,end).replace(/&#?\w+;/g,entityReplacer);
			locator&&position(start);
			domBuilder.characters(xt,0,end-start);
			start = end
		}
	}
	function position(p,m){
		while(p>=lineEnd && (m = linePattern.exec(source))){
			lineStart = m.index;
			lineEnd = lineStart + m[0].length;
			locator.lineNumber++;
			//console.log('line++:',locator,startPos,endPos)
		}
		locator.columnNumber = p-lineStart+1;
	}
	var lineStart = 0;
	var lineEnd = 0;
	var linePattern = /.*(?:\r\n?|\n)|.*$/g
	var locator = domBuilder.locator;
	
	var parseStack = [{currentNSMap:defaultNSMapCopy}]
	var closeMap = {};
	var start = 0;
	while(true){
		try{
			var tagStart = source.indexOf('<',start);
			if(tagStart<0){
				if(!source.substr(start).match(/^\s*$/)){
					var doc = domBuilder.doc;
	    			var text = doc.createTextNode(source.substr(start));
	    			doc.appendChild(text);
	    			domBuilder.currentElement = text;
				}
				return;
			}
			if(tagStart>start){
				appendText(tagStart);
			}
			switch(source.charAt(tagStart+1)){
			case '/':
				var end = source.indexOf('>',tagStart+3);
				var tagName = source.substring(tagStart+2,end);
				var config = parseStack.pop();
				if(end<0){
					
	        		tagName = source.substring(tagStart+2).replace(/[\s<].*/,'');
	        		//console.error('#@@@@@@'+tagName)
	        		errorHandler.error("end tag name: "+tagName+' is not complete:'+config.tagName);
	        		end = tagStart+1+tagName.length;
	        	}else if(tagName.match(/\s</)){
	        		tagName = tagName.replace(/[\s<].*/,'');
	        		errorHandler.error("end tag name: "+tagName+' maybe not complete');
	        		end = tagStart+1+tagName.length;
				}
				//console.error(parseStack.length,parseStack)
				//console.error(config);
				var localNSMap = config.localNSMap;
				var endMatch = config.tagName == tagName;
				var endIgnoreCaseMach = endMatch || config.tagName&&config.tagName.toLowerCase() == tagName.toLowerCase()
		        if(endIgnoreCaseMach){
		        	domBuilder.endElement(config.uri,config.localName,tagName);
					if(localNSMap){
						for(var prefix in localNSMap){
							domBuilder.endPrefixMapping(prefix) ;
						}
					}
					if(!endMatch){
		            	errorHandler.fatalError("end tag name: "+tagName+' is not match the current start tagName:'+config.tagName );
					}
		        }else{
		        	parseStack.push(config)
		        }
				
				end++;
				break;
				// end elment
			case '?':// <?...?>
				locator&&position(tagStart);
				end = parseInstruction(source,tagStart,domBuilder);
				break;
			case '!':// <!doctype,<![CDATA,<!--
				locator&&position(tagStart);
				end = parseDCC(source,tagStart,domBuilder,errorHandler);
				break;
			default:
				locator&&position(tagStart);
				var el = new ElementAttributes();
				var currentNSMap = parseStack[parseStack.length-1].currentNSMap;
				//elStartEnd
				var end = parseElementStartPart(source,tagStart,el,currentNSMap,entityReplacer,errorHandler);
				var len = el.length;
				
				
				if(!el.closed && fixSelfClosed(source,end,el.tagName,closeMap)){
					el.closed = true;
					if(!entityMap.nbsp){
						errorHandler.warning('unclosed xml attribute');
					}
				}
				if(locator && len){
					var locator2 = copyLocator(locator,{});
					//try{//attribute position fixed
					for(var i = 0;i<len;i++){
						var a = el[i];
						position(a.offset);
						a.locator = copyLocator(locator,{});
					}
					//}catch(e){console.error('@@@@@'+e)}
					domBuilder.locator = locator2
					if(appendElement(el,domBuilder,currentNSMap)){
						parseStack.push(el)
					}
					domBuilder.locator = locator;
				}else{
					if(appendElement(el,domBuilder,currentNSMap)){
						parseStack.push(el)
					}
				}
				
				
				
				if(el.uri === 'http://www.w3.org/1999/xhtml' && !el.closed){
					end = parseHtmlSpecialContent(source,end,el.tagName,entityReplacer,domBuilder)
				}else{
					end++;
				}
			}
		}catch(e){
			errorHandler.error('element parse error: '+e)
			//errorHandler.error('element parse error: '+e);
			end = -1;
			//throw e;
		}
		if(end>start){
			start = end;
		}else{
			//TODO: 这里有可能sax回退，有位置错误风险
			appendText(Math.max(tagStart,start)+1);
		}
	}
}
function copyLocator(f,t){
	t.lineNumber = f.lineNumber;
	t.columnNumber = f.columnNumber;
	return t;
}

/**
 * @see #appendElement(source,elStartEnd,el,selfClosed,entityReplacer,domBuilder,parseStack);
 * @return end of the elementStartPart(end of elementEndPart for selfClosed el)
 */
function parseElementStartPart(source,start,el,currentNSMap,entityReplacer,errorHandler){
	var attrName;
	var value;
	var p = ++start;
	var s = S_TAG;//status
	while(true){
		var c = source.charAt(p);
		switch(c){
		case '=':
			if(s === S_ATTR){//attrName
				attrName = source.slice(start,p);
				s = S_EQ;
			}else if(s === S_ATTR_SPACE){
				s = S_EQ;
			}else{
				//fatalError: equal must after attrName or space after attrName
				throw new Error('attribute equal must after attrName');
			}
			break;
		case '\'':
		case '"':
			if(s === S_EQ || s === S_ATTR //|| s == S_ATTR_SPACE
				){//equal
				if(s === S_ATTR){
					errorHandler.warning('attribute value must after "="')
					attrName = source.slice(start,p)
				}
				start = p+1;
				p = source.indexOf(c,start)
				if(p>0){
					value = source.slice(start,p).replace(/&#?\w+;/g,entityReplacer);
					el.add(attrName,value,start-1);
					s = S_ATTR_END;
				}else{
					//fatalError: no end quot match
					throw new Error('attribute value no end \''+c+'\' match');
				}
			}else if(s == S_ATTR_NOQUOT_VALUE){
				value = source.slice(start,p).replace(/&#?\w+;/g,entityReplacer);
				//console.log(attrName,value,start,p)
				el.add(attrName,value,start);
				//console.dir(el)
				errorHandler.warning('attribute "'+attrName+'" missed start quot('+c+')!!');
				start = p+1;
				s = S_ATTR_END
			}else{
				//fatalError: no equal before
				throw new Error('attribute value must after "="');
			}
			break;
		case '/':
			switch(s){
			case S_TAG:
				el.setTagName(source.slice(start,p));
			case S_ATTR_END:
			case S_TAG_SPACE:
			case S_TAG_CLOSE:
				s =S_TAG_CLOSE;
				el.closed = true;
			case S_ATTR_NOQUOT_VALUE:
			case S_ATTR:
			case S_ATTR_SPACE:
				break;
			//case S_EQ:
			default:
				throw new Error("attribute invalid close char('/')")
			}
			break;
		case ''://end document
			//throw new Error('unexpected end of input')
			errorHandler.error('unexpected end of input');
			if(s == S_TAG){
				el.setTagName(source.slice(start,p));
			}
			return p;
		case '>':
			switch(s){
			case S_TAG:
				el.setTagName(source.slice(start,p));
			case S_ATTR_END:
			case S_TAG_SPACE:
			case S_TAG_CLOSE:
				break;//normal
			case S_ATTR_NOQUOT_VALUE://Compatible state
			case S_ATTR:
				value = source.slice(start,p);
				if(value.slice(-1) === '/'){
					el.closed  = true;
					value = value.slice(0,-1)
				}
			case S_ATTR_SPACE:
				if(s === S_ATTR_SPACE){
					value = attrName;
				}
				if(s == S_ATTR_NOQUOT_VALUE){
					errorHandler.warning('attribute "'+value+'" missed quot(")!!');
					el.add(attrName,value.replace(/&#?\w+;/g,entityReplacer),start)
				}else{
					if(currentNSMap[''] !== 'http://www.w3.org/1999/xhtml' || !value.match(/^(?:disabled|checked|selected)$/i)){
						errorHandler.warning('attribute "'+value+'" missed value!! "'+value+'" instead!!')
					}
					el.add(value,value,start)
				}
				break;
			case S_EQ:
				throw new Error('attribute value missed!!');
			}
//			console.log(tagName,tagNamePattern,tagNamePattern.test(tagName))
			return p;
		/*xml space '\x20' | #x9 | #xD | #xA; */
		case '\u0080':
			c = ' ';
		default:
			if(c<= ' '){//space
				switch(s){
				case S_TAG:
					el.setTagName(source.slice(start,p));//tagName
					s = S_TAG_SPACE;
					break;
				case S_ATTR:
					attrName = source.slice(start,p)
					s = S_ATTR_SPACE;
					break;
				case S_ATTR_NOQUOT_VALUE:
					var value = source.slice(start,p).replace(/&#?\w+;/g,entityReplacer);
					errorHandler.warning('attribute "'+value+'" missed quot(")!!');
					el.add(attrName,value,start)
				case S_ATTR_END:
					s = S_TAG_SPACE;
					break;
				//case S_TAG_SPACE:
				//case S_EQ:
				//case S_ATTR_SPACE:
				//	void();break;
				//case S_TAG_CLOSE:
					//ignore warning
				}
			}else{//not space
//S_TAG,	S_ATTR,	S_EQ,	S_ATTR_NOQUOT_VALUE
//S_ATTR_SPACE,	S_ATTR_END,	S_TAG_SPACE, S_TAG_CLOSE
				switch(s){
				//case S_TAG:void();break;
				//case S_ATTR:void();break;
				//case S_ATTR_NOQUOT_VALUE:void();break;
				case S_ATTR_SPACE:
					var tagName =  el.tagName;
					if(currentNSMap[''] !== 'http://www.w3.org/1999/xhtml' || !attrName.match(/^(?:disabled|checked|selected)$/i)){
						errorHandler.warning('attribute "'+attrName+'" missed value!! "'+attrName+'" instead2!!')
					}
					el.add(attrName,attrName,start);
					start = p;
					s = S_ATTR;
					break;
				case S_ATTR_END:
					errorHandler.warning('attribute space is required"'+attrName+'"!!')
				case S_TAG_SPACE:
					s = S_ATTR;
					start = p;
					break;
				case S_EQ:
					s = S_ATTR_NOQUOT_VALUE;
					start = p;
					break;
				case S_TAG_CLOSE:
					throw new Error("elements closed character '/' and '>' must be connected to");
				}
			}
		}//end outer switch
		//console.log('p++',p)
		p++;
	}
}
/**
 * @return true if has new namespace define
 */
function appendElement(el,domBuilder,currentNSMap){
	var tagName = el.tagName;
	var localNSMap = null;
	//var currentNSMap = parseStack[parseStack.length-1].currentNSMap;
	var i = el.length;
	while(i--){
		var a = el[i];
		var qName = a.qName;
		var value = a.value;
		var nsp = qName.indexOf(':');
		if(nsp>0){
			var prefix = a.prefix = qName.slice(0,nsp);
			var localName = qName.slice(nsp+1);
			var nsPrefix = prefix === 'xmlns' && localName
		}else{
			localName = qName;
			prefix = null
			nsPrefix = qName === 'xmlns' && ''
		}
		//can not set prefix,because prefix !== ''
		a.localName = localName ;
		//prefix == null for no ns prefix attribute 
		if(nsPrefix !== false){//hack!!
			if(localNSMap == null){
				localNSMap = {}
				//console.log(currentNSMap,0)
				_copy(currentNSMap,currentNSMap={})
				//console.log(currentNSMap,1)
			}
			currentNSMap[nsPrefix] = localNSMap[nsPrefix] = value;
			a.uri = 'http://www.w3.org/2000/xmlns/'
			domBuilder.startPrefixMapping(nsPrefix, value) 
		}
	}
	var i = el.length;
	while(i--){
		a = el[i];
		var prefix = a.prefix;
		if(prefix){//no prefix attribute has no namespace
			if(prefix === 'xml'){
				a.uri = 'http://www.w3.org/XML/1998/namespace';
			}if(prefix !== 'xmlns'){
				a.uri = currentNSMap[prefix || '']
				
				//{console.log('###'+a.qName,domBuilder.locator.systemId+'',currentNSMap,a.uri)}
			}
		}
	}
	var nsp = tagName.indexOf(':');
	if(nsp>0){
		prefix = el.prefix = tagName.slice(0,nsp);
		localName = el.localName = tagName.slice(nsp+1);
	}else{
		prefix = null;//important!!
		localName = el.localName = tagName;
	}
	//no prefix element has default namespace
	var ns = el.uri = currentNSMap[prefix || ''];
	domBuilder.startElement(ns,localName,tagName,el);
	//endPrefixMapping and startPrefixMapping have not any help for dom builder
	//localNSMap = null
	if(el.closed){
		domBuilder.endElement(ns,localName,tagName);
		if(localNSMap){
			for(prefix in localNSMap){
				domBuilder.endPrefixMapping(prefix) 
			}
		}
	}else{
		el.currentNSMap = currentNSMap;
		el.localNSMap = localNSMap;
		//parseStack.push(el);
		return true;
	}
}
function parseHtmlSpecialContent(source,elStartEnd,tagName,entityReplacer,domBuilder){
	if(/^(?:script|textarea)$/i.test(tagName)){
		var elEndStart =  source.indexOf('</'+tagName+'>',elStartEnd);
		var text = source.substring(elStartEnd+1,elEndStart);
		if(/[&<]/.test(text)){
			if(/^script$/i.test(tagName)){
				//if(!/\]\]>/.test(text)){
					//lexHandler.startCDATA();
					domBuilder.characters(text,0,text.length);
					//lexHandler.endCDATA();
					return elEndStart;
				//}
			}//}else{//text area
				text = text.replace(/&#?\w+;/g,entityReplacer);
				domBuilder.characters(text,0,text.length);
				return elEndStart;
			//}
			
		}
	}
	return elStartEnd+1;
}
function fixSelfClosed(source,elStartEnd,tagName,closeMap){
	//if(tagName in closeMap){
	var pos = closeMap[tagName];
	if(pos == null){
		//console.log(tagName)
		pos =  source.lastIndexOf('</'+tagName+'>')
		if(pos<elStartEnd){//忘记闭合
			pos = source.lastIndexOf('</'+tagName)
		}
		closeMap[tagName] =pos
	}
	return pos<elStartEnd;
	//} 
}
function _copy(source,target){
	for(var n in source){target[n] = source[n]}
}
function parseDCC(source,start,domBuilder,errorHandler){//sure start with '<!'
	var next= source.charAt(start+2)
	switch(next){
	case '-':
		if(source.charAt(start + 3) === '-'){
			var end = source.indexOf('-->',start+4);
			//append comment source.substring(4,end)//<!--
			if(end>start){
				domBuilder.comment(source,start+4,end-start-4);
				return end+3;
			}else{
				errorHandler.error("Unclosed comment");
				return -1;
			}
		}else{
			//error
			return -1;
		}
	default:
		if(source.substr(start+3,6) == 'CDATA['){
			var end = source.indexOf(']]>',start+9);
			domBuilder.startCDATA();
			domBuilder.characters(source,start+9,end-start-9);
			domBuilder.endCDATA() 
			return end+3;
		}
		//<!DOCTYPE
		//startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId) 
		var matchs = split(source,start);
		var len = matchs.length;
		if(len>1 && /!doctype/i.test(matchs[0][0])){
			var name = matchs[1][0];
			var pubid = len>3 && /^public$/i.test(matchs[2][0]) && matchs[3][0]
			var sysid = len>4 && matchs[4][0];
			var lastMatch = matchs[len-1]
			domBuilder.startDTD(name,pubid && pubid.replace(/^(['"])(.*?)\1$/,'$2'),
					sysid && sysid.replace(/^(['"])(.*?)\1$/,'$2'));
			domBuilder.endDTD();
			
			return lastMatch.index+lastMatch[0].length
		}
	}
	return -1;
}



function parseInstruction(source,start,domBuilder){
	var end = source.indexOf('?>',start);
	if(end){
		var match = source.substring(start,end).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);
		if(match){
			var len = match[0].length;
			domBuilder.processingInstruction(match[1], match[2]) ;
			return end+2;
		}else{//error
			return -1;
		}
	}
	return -1;
}

/**
 * @param source
 */
function ElementAttributes(source){
	
}
ElementAttributes.prototype = {
	setTagName:function(tagName){
		if(!tagNamePattern.test(tagName)){
			throw new Error('invalid tagName:'+tagName)
		}
		this.tagName = tagName
	},
	add:function(qName,value,offset){
		if(!tagNamePattern.test(qName)){
			throw new Error('invalid attribute:'+qName)
		}
		this[this.length++] = {qName:qName,value:value,offset:offset}
	},
	length:0,
	getLocalName:function(i){return this[i].localName},
	getLocator:function(i){return this[i].locator},
	getQName:function(i){return this[i].qName},
	getURI:function(i){return this[i].uri},
	getValue:function(i){return this[i].value}
//	,getIndex:function(uri, localName)){
//		if(localName){
//			
//		}else{
//			var qName = uri
//		}
//	},
//	getValue:function(){return this.getValue(this.getIndex.apply(this,arguments))},
//	getType:function(uri,localName){}
//	getType:function(i){},
}




function _set_proto_(thiz,parent){
	thiz.__proto__ = parent;
	return thiz;
}
if(!(_set_proto_({},_set_proto_.prototype) instanceof _set_proto_)){
	_set_proto_ = function(thiz,parent){
		function p(){};
		p.prototype = parent;
		p = new p();
		for(parent in thiz){
			p[parent] = thiz[parent];
		}
		return p;
	}
}

function split(source,start){
	var match;
	var buf = [];
	var reg = /'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;
	reg.lastIndex = start;
	reg.exec(source);//skip <
	while(match = reg.exec(source)){
		buf.push(match);
		if(match[1])return buf;
	}
}

exports.XMLReader = XMLReader;


},{}],82:[function(_dereq_,module,exports){
(function (process,Buffer){
/**
 * Wrapper for built-in http.js to emulate the browser XMLHttpRequest object.
 *
 * This can be used with JS designed for browsers to improve reuse of code and
 * allow the use of existing libraries.
 *
 * Usage: include("XMLHttpRequest.js") and use XMLHttpRequest per W3C specs.
 *
 * @author Dan DeFelippi <dan@driverdan.com>
 * @contributor David Ellis <d.f.ellis@ieee.org>
 * @license MIT
 */

var Url = _dereq_("url");
var spawn = _dereq_("child_process").spawn;
var fs = _dereq_("fs");

exports.XMLHttpRequest = function() {
  "use strict";

  /**
   * Private variables
   */
  var self = this;
  var http = _dereq_("http");
  var https = _dereq_("https");

  // Holds http.js objects
  var request;
  var response;

  // Request settings
  var settings = {};

  // Disable header blacklist.
  // Not part of XHR specs.
  var disableHeaderCheck = false;

  // Set some default headers
  var defaultHeaders = {
    "User-Agent": "node-XMLHttpRequest",
    "Accept": "*/*",
  };

  var headers = {};
  var headersCase = {};

  // These headers are not user setable.
  // The following are allowed but banned in the spec:
  // * user-agent
  var forbiddenRequestHeaders = [
    "accept-charset",
    "accept-encoding",
    "access-control-request-headers",
    "access-control-request-method",
    "connection",
    "content-length",
    "content-transfer-encoding",
    "cookie",
    "cookie2",
    "date",
    "expect",
    "host",
    "keep-alive",
    "origin",
    "referer",
    "te",
    "trailer",
    "transfer-encoding",
    "upgrade",
    "via"
  ];

  // These request methods are not allowed
  var forbiddenRequestMethods = [
    "TRACE",
    "TRACK",
    "CONNECT"
  ];

  // Send flag
  var sendFlag = false;
  // Error flag, used when errors occur or abort is called
  var errorFlag = false;

  // Event listeners
  var listeners = {};

  /**
   * Constants
   */

  this.UNSENT = 0;
  this.OPENED = 1;
  this.HEADERS_RECEIVED = 2;
  this.LOADING = 3;
  this.DONE = 4;

  /**
   * Public vars
   */

  // Current state
  this.readyState = this.UNSENT;

  // default ready state change handler in case one is not set or is set late
  this.onreadystatechange = null;

  // Result & response
  this.responseText = "";
  this.responseXML = "";
  this.status = null;
  this.statusText = null;
  
  // Whether cross-site Access-Control requests should be made using
  // credentials such as cookies or authorization headers
  this.withCredentials = false;

  /**
   * Private methods
   */

  /**
   * Check if the specified header is allowed.
   *
   * @param string header Header to validate
   * @return boolean False if not allowed, otherwise true
   */
  var isAllowedHttpHeader = function(header) {
    return disableHeaderCheck || (header && forbiddenRequestHeaders.indexOf(header.toLowerCase()) === -1);
  };

  /**
   * Check if the specified method is allowed.
   *
   * @param string method Request method to validate
   * @return boolean False if not allowed, otherwise true
   */
  var isAllowedHttpMethod = function(method) {
    return (method && forbiddenRequestMethods.indexOf(method) === -1);
  };

  /**
   * Public methods
   */

  /**
   * Open the connection. Currently supports local server requests.
   *
   * @param string method Connection method (eg GET, POST)
   * @param string url URL for the connection.
   * @param boolean async Asynchronous connection. Default is true.
   * @param string user Username for basic authentication (optional)
   * @param string password Password for basic authentication (optional)
   */
  this.open = function(method, url, async, user, password) {
    this.abort();
    errorFlag = false;

    // Check for valid request method
    if (!isAllowedHttpMethod(method)) {
      throw new Error("SecurityError: Request method not allowed");
    }

    settings = {
      "method": method,
      "url": url.toString(),
      "async": (typeof async !== "boolean" ? true : async),
      "user": user || null,
      "password": password || null
    };

    setState(this.OPENED);
  };

  /**
   * Disables or enables isAllowedHttpHeader() check the request. Enabled by default.
   * This does not conform to the W3C spec.
   *
   * @param boolean state Enable or disable header checking.
   */
  this.setDisableHeaderCheck = function(state) {
    disableHeaderCheck = state;
  };

  /**
   * Sets a header for the request or appends the value if one is already set.
   *
   * @param string header Header name
   * @param string value Header value
   */
  this.setRequestHeader = function(header, value) {
    if (this.readyState !== this.OPENED) {
      throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");
    }
    if (!isAllowedHttpHeader(header)) {
      console.warn("Refused to set unsafe header \"" + header + "\"");
      return;
    }
    if (sendFlag) {
      throw new Error("INVALID_STATE_ERR: send flag is true");
    }
    header = headersCase[header.toLowerCase()] || header;
    headersCase[header.toLowerCase()] = header;
    headers[header] = headers[header] ? headers[header] + ', ' + value : value;
  };

  /**
   * Gets a header from the server response.
   *
   * @param string header Name of header to get.
   * @return string Text of the header or null if it doesn't exist.
   */
  this.getResponseHeader = function(header) {
    if (typeof header === "string"
      && this.readyState > this.OPENED
      && response
      && response.headers
      && response.headers[header.toLowerCase()]
      && !errorFlag
    ) {
      return response.headers[header.toLowerCase()];
    }

    return null;
  };

  /**
   * Gets all the response headers.
   *
   * @return string A string with all response headers separated by CR+LF
   */
  this.getAllResponseHeaders = function() {
    if (this.readyState < this.HEADERS_RECEIVED || errorFlag) {
      return "";
    }
    var result = "";

    for (var i in response.headers) {
      // Cookie headers are excluded
      if (i !== "set-cookie" && i !== "set-cookie2") {
        result += i + ": " + response.headers[i] + "\r\n";
      }
    }
    return result.substr(0, result.length - 2);
  };

  /**
   * Gets a request header
   *
   * @param string name Name of header to get
   * @return string Returns the request header or empty string if not set
   */
  this.getRequestHeader = function(name) {
    if (typeof name === "string" && headersCase[name.toLowerCase()]) {
      return headers[headersCase[name.toLowerCase()]];
    }

    return "";
  };

  /**
   * Sends the request to the server.
   *
   * @param string data Optional data to send as request body.
   */
  this.send = function(data) {
    if (this.readyState !== this.OPENED) {
      throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");
    }

    if (sendFlag) {
      throw new Error("INVALID_STATE_ERR: send has already been called");
    }

    var ssl = false, local = false;
    var url = Url.parse(settings.url);
    var host;
    // Determine the server
    switch (url.protocol) {
      case "https:":
        ssl = true;
        // SSL & non-SSL both need host, no break here.
      case "http:":
        host = url.hostname;
        break;

      case "file:":
        local = true;
        break;

      case undefined:
      case null:
      case "":
        host = "localhost";
        break;

      default:
        throw new Error("Protocol not supported.");
    }

    // Load files off the local filesystem (file://)
    if (local) {
      if (settings.method !== "GET") {
        throw new Error("XMLHttpRequest: Only GET method is supported");
      }

      if (settings.async) {
        fs.readFile(url.pathname, "utf8", function(error, data) {
          if (error) {
            self.handleError(error);
          } else {
            self.status = 200;
            self.responseText = data;
            setState(self.DONE);
          }
        });
      } else {
        try {
          this.responseText = fs.readFileSync(url.pathname, "utf8");
          this.status = 200;
          setState(self.DONE);
        } catch(e) {
          this.handleError(e);
        }
      }

      return;
    }

    // Default to port 80. If accessing localhost on another port be sure
    // to use http://localhost:port/path
    var port = url.port || (ssl ? 443 : 80);
    // Add query string if one is used
    var uri = url.pathname + (url.search ? url.search : "");

    // Set the defaults if they haven't been set
    for (var name in defaultHeaders) {
      if (!headersCase[name.toLowerCase()]) {
        headers[name] = defaultHeaders[name];
      }
    }

    // Set the Host header or the server may reject the request
    headers.Host = host;
    if (!((ssl && port === 443) || port === 80)) {
      headers.Host += ":" + url.port;
    }

    // Set Basic Auth if necessary
    if (settings.user) {
      if (typeof settings.password === "undefined") {
        settings.password = "";
      }
      var authBuf = new Buffer(settings.user + ":" + settings.password);
      headers.Authorization = "Basic " + authBuf.toString("base64");
    }

    // Set content length header
    if (settings.method === "GET" || settings.method === "HEAD") {
      data = null;
    } else if (data) {
      headers["Content-Length"] = Buffer.isBuffer(data) ? data.length : Buffer.byteLength(data);

      if (!headers["Content-Type"]) {
        headers["Content-Type"] = "text/plain;charset=UTF-8";
      }
    } else if (settings.method === "POST") {
      // For a post with no data set Content-Length: 0.
      // This is required by buggy servers that don't meet the specs.
      headers["Content-Length"] = 0;
    }

    var options = {
      host: host,
      port: port,
      path: uri,
      method: settings.method,
      headers: headers,
      agent: false,
      withCredentials: self.withCredentials
    };

    // Reset error flag
    errorFlag = false;

    // Handle async requests
    if (settings.async) {
      // Use the proper protocol
      var doRequest = ssl ? https.request : http.request;

      // Request is being sent, set send flag
      sendFlag = true;

      // As per spec, this is called here for historical reasons.
      self.dispatchEvent("readystatechange");

      // Handler for the response
      var responseHandler = function responseHandler(resp) {
        // Set response var to the response we got back
        // This is so it remains accessable outside this scope
        response = resp;
        // Check for redirect
        // @TODO Prevent looped redirects
        if (response.statusCode === 301 || response.statusCode === 302 || response.statusCode === 303 || response.statusCode === 307) {
          // Change URL to the redirect location
          settings.url = response.headers.location;
          var url = Url.parse(settings.url);
          // Set host var in case it's used later
          host = url.hostname;
          // Options for the new request
          var newOptions = {
            hostname: url.hostname,
            port: url.port,
            path: url.path,
            method: response.statusCode === 303 ? "GET" : settings.method,
            headers: headers,
            withCredentials: self.withCredentials
          };

          // Issue the new request
          request = doRequest(newOptions, responseHandler).on("error", errorHandler);
          request.end();
          // @TODO Check if an XHR event needs to be fired here
          return;
        }

        response.setEncoding("utf8");

        setState(self.HEADERS_RECEIVED);
        self.status = response.statusCode;

        response.on("data", function(chunk) {
          // Make sure there's some data
          if (chunk) {
            self.responseText += chunk;
          }
          // Don't emit state changes if the connection has been aborted.
          if (sendFlag) {
            setState(self.LOADING);
          }
        });

        response.on("end", function() {
          if (sendFlag) {
            // Discard the end event if the connection has been aborted
            setState(self.DONE);
            sendFlag = false;
          }
        });

        response.on("error", function(error) {
          self.handleError(error);
        });
      };

      // Error handler for the request
      var errorHandler = function errorHandler(error) {
        self.handleError(error);
      };

      // Create the request
      request = doRequest(options, responseHandler).on("error", errorHandler);

      // Node 0.4 and later won't accept empty data. Make sure it's needed.
      if (data) {
        request.write(data);
      }

      request.end();

      self.dispatchEvent("loadstart");
    } else { // Synchronous
      // Create a temporary file for communication with the other Node process
      var contentFile = ".node-xmlhttprequest-content-" + process.pid;
      var syncFile = ".node-xmlhttprequest-sync-" + process.pid;
      fs.writeFileSync(syncFile, "", "utf8");
      // The async request the other Node process executes
      var execString = "var http = require('http'), https = require('https'), fs = require('fs');"
        + "var doRequest = http" + (ssl ? "s" : "") + ".request;"
        + "var options = " + JSON.stringify(options) + ";"
        + "var responseText = '';"
        + "var req = doRequest(options, function(response) {"
        + "response.setEncoding('utf8');"
        + "response.on('data', function(chunk) {"
        + "  responseText += chunk;"
        + "});"
        + "response.on('end', function() {"
        + "fs.writeFileSync('" + contentFile + "', JSON.stringify({err: null, data: {statusCode: response.statusCode, headers: response.headers, text: responseText}}), 'utf8');"
        + "fs.unlinkSync('" + syncFile + "');"
        + "});"
        + "response.on('error', function(error) {"
        + "fs.writeFileSync('" + contentFile + "', JSON.stringify({err: error}), 'utf8');"
        + "fs.unlinkSync('" + syncFile + "');"
        + "});"
        + "}).on('error', function(error) {"
        + "fs.writeFileSync('" + contentFile + "', JSON.stringify({err: error}), 'utf8');"
        + "fs.unlinkSync('" + syncFile + "');"
        + "});"
        + (data ? "req.write('" + JSON.stringify(data).slice(1,-1).replace(/'/g, "\\'") + "');":"")
        + "req.end();";
      // Start the other Node Process, executing this string
      var syncProc = spawn(process.argv[0], ["-e", execString]);
      while(fs.existsSync(syncFile)) {
        // Wait while the sync file is empty
      }
      var resp = JSON.parse(fs.readFileSync(contentFile, 'utf8'));
      // Kill the child process once the file has data
      syncProc.stdin.end();
      // Remove the temporary file
      fs.unlinkSync(contentFile);

      if (resp.err) {
        self.handleError(resp.err);
      } else {
        response = resp.data;
        self.status = resp.data.statusCode;
        self.responseText = resp.data.text;
        setState(self.DONE);
      }
    }
  };

  /**
   * Called when an error is encountered to deal with it.
   */
  this.handleError = function(error) {
    this.status = 0;
    this.statusText = error;
    this.responseText = error.stack;
    errorFlag = true;
    setState(this.DONE);
    this.dispatchEvent('error');
  };

  /**
   * Aborts a request.
   */
  this.abort = function() {
    if (request) {
      request.abort();
      request = null;
    }

    headers = defaultHeaders;
    this.status = 0;
    this.responseText = "";
    this.responseXML = "";

    errorFlag = true;

    if (this.readyState !== this.UNSENT
        && (this.readyState !== this.OPENED || sendFlag)
        && this.readyState !== this.DONE) {
      sendFlag = false;
      setState(this.DONE);
    }
    this.readyState = this.UNSENT;
    this.dispatchEvent('abort');
  };

  /**
   * Adds an event listener. Preferred method of binding to events.
   */
  this.addEventListener = function(event, callback) {
    if (!(event in listeners)) {
      listeners[event] = [];
    }
    // Currently allows duplicate callbacks. Should it?
    listeners[event].push(callback);
  };

  /**
   * Remove an event callback that has already been bound.
   * Only works on the matching funciton, cannot be a copy.
   */
  this.removeEventListener = function(event, callback) {
    if (event in listeners) {
      // Filter will return a new array with the callback removed
      listeners[event] = listeners[event].filter(function(ev) {
        return ev !== callback;
      });
    }
  };

  /**
   * Dispatch any events, including both "on" methods and events attached using addEventListener.
   */
  this.dispatchEvent = function(event) {
    if (typeof self["on" + event] === "function") {
      self["on" + event]();
    }
    if (event in listeners) {
      for (var i = 0, len = listeners[event].length; i < len; i++) {
        listeners[event][i].call(self);
      }
    }
  };

  /**
   * Changes readyState and calls onreadystatechange.
   *
   * @param int state New state
   */
  var setState = function(state) {
    if (state == self.LOADING || self.readyState !== state) {
      self.readyState = state;

      if (settings.async || self.readyState < self.OPENED || self.readyState === self.DONE) {
        self.dispatchEvent("readystatechange");
      }

      if (self.readyState === self.DONE && !errorFlag) {
        self.dispatchEvent("load");
        // @TODO figure out InspectorInstrumentation::didLoadXHR(cookie)
        self.dispatchEvent("loadend");
      }
    }
  };
};

}).call(this,_dereq_("g5I+bs"),_dereq_("buffer").Buffer)
},{"buffer":11,"child_process":5,"fs":5,"g5I+bs":30,"http":6,"https":16,"url":75}],83:[function(_dereq_,module,exports){
module.exports = {"http://datashapes.org/js/dash.js":"// Functions implementing the validators of SHACL-JS\n// Also include validators for the constraint components of the DASH namespace\n\n// Also included: implementations of the standard DASH functions\n\n// There is no validator for sh:property as this is expected to be\n// natively implemented by the surrounding engine.\n\nvar XSDIntegerTypes = new NodeSet();\nXSDIntegerTypes.add(T(\"xsd:integer\"));\n\nvar XSDDecimalTypes = new NodeSet();\nXSDDecimalTypes.addAll(XSDIntegerTypes.toArray());\nXSDDecimalTypes.add(T(\"xsd:decimal\"));\nXSDDecimalTypes.add(T(\"xsd:float\"));\n\nfunction validateAnd($value, $and) {\n\tvar shapes = new RDFQueryUtil($shapes).rdfListToArray($and);\n\tfor(var i = 0; i < shapes.length; i++) {\n\t\tif(!SHACL.nodeConformsToShape($value, shapes[i])) {\n\t\t\treturn false;\n\t\t}\n\t}\n\treturn true;\n}\n\nfunction validateClass($value, $class) {\n\treturn new RDFQueryUtil($data).isInstanceOf($value, $class);\n}\n\nfunction validateClosed($value, $closed, $ignoredProperties, $currentShape) {\n\tif(!T(\"true\").equals($closed)) {\n\t\treturn;\n\t}\n\tvar allowed = $shapes.query().\n\t\tmatch($currentShape, \"sh:property\", \"?propertyShape\").\n\t\tmatch(\"?propertyShape\", \"sh:path\", \"?path\").\n\t\tfilter(function(solution) { return solution.path.isURI() } ).\n\t\tgetNodeSet(\"?path\");\n\tif($ignoredProperties) {\n\t\tallowed.addAll(new RDFQueryUtil($shapes).rdfListToArray($ignoredProperties));\n\t}\n\tvar results = [];\n\t$data.query().\n\t\tmatch($value, \"?predicate\", \"?object\").\n\t\tfilter(function(sol) { return !allowed.contains(sol.predicate)}).\n\t\tforEach(function(sol) { \n\t\t\tresults.push({ \n\t\t\t\tpath : sol.predicate,\n\t\t\t\tvalue : sol.object\n\t\t\t});\n\t\t});\n\treturn results;\n}\n\nfunction validateClosedByTypesNode($this, $closedByTypes) {\n\tif(!T(\"true\").equals($closedByTypes)) {\n\t\treturn;\n\t}\n\tvar results = [];\n\tvar allowedProperties = new NodeSet();\n\t$data.query().\n\t\tmatch($this, \"rdf:type\", \"?directType\").\n\t\tpath(\"?directType\", { zeroOrMore : T(\"rdfs:subClassOf\") }, \"?type\").\n\t\tforEachNode(\"?type\", function(type) {\n\t\t\t$shapes.query().\n\t\t\t\tmatch(type, \"sh:property\", \"?pshape\").\n\t\t\t\tmatch(\"?pshape\", \"sh:path\", \"?path\").\n\t\t\t\tfilter(function(sol) { return sol.path.isURI() }).\n\t\t\t\taddAllNodes(\"?path\", allowedProperties);\n\t\t});\n\t$data.query().\n\t\tmatch($this, \"?predicate\", \"?object\").\n\t\tfilter(function(sol) { return !T(\"rdf:type\").equals(sol.predicate) }).\n\t\tfilter(function(sol) { return !allowedProperties.contains(sol.predicate) }).\n\t\tforEach(function(sol) {\n\t\t\tresults.push({\n\t\t\t\tpath: sol.predicate,\n\t\t\t\tvalue: sol.object\n\t\t\t});\n\t\t})\n\treturn results;\n}\n\nfunction validateCoExistsWith($this, $path, $coExistsWith) {\n\tvar path = toRDFQueryPath($path);\n\tvar has1 = $data.query().path($this, path, null).getCount() > 0;\n\tvar has2 = $data.query().match($this, $coExistsWith, null).getCount() > 0;\n\treturn has1 == has2;\n}\n\nfunction validateDatatype($value, $datatype) {\n\tif($value.isLiteral()) {\n\t\treturn $datatype.equals($value.datatype) && isValidForDatatype($value.lex, $datatype);\n\t}\n\telse {\n\t\treturn false;\n\t}\n}\n\nfunction validateDisjoint($this, $value, $disjoint) {\n\treturn !$data.query().match($this, $disjoint, $value).hasSolution();\n}\n\nfunction validateEqualsProperty($this, $path, $equals) {\n\tvar results = [];\n\tvar path = toRDFQueryPath($path);\n\t$data.query().path($this, path, \"?value\").forEach(\n\t\tfunction(solution) {\n\t\t\tif(!$data.query().match($this, $equals, solution.value).hasSolution()) {\n\t\t\t\tresults.push({\n\t\t\t\t\tvalue: solution.value\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t$data.query().match($this, $equals, \"?value\").forEach(\n\t\tfunction(solution) {\n\t\t\tif(!$data.query().path($this, path, solution.value).hasSolution()) {\n\t\t\t\tresults.push({\n\t\t\t\t\tvalue: solution.value\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\treturn results;\n}\n\nvar validateEqualsNode = function ($this, $equals) {\n    var results = [];\n    var solutions = 0;\n    $data.query().path($this, $equals, \"?value\").forEach(\n        function (solution) {\n            solutions++;\n            if (SHACL.compareNodes($this, solution['value']) !== 0) {\n                results.push({\n                    value: solution.value\n                });\n            }\n        });\n    if (results.length === 0 && solutions === 0) {\n        results.push({\n            value: $this\n        });\n    }\n    return results;\n};\n\nfunction validateHasValueNode($this, $hasValue) {\n\treturn $this.equals($hasValue);\n}\n\nfunction validateHasValueProperty($this, $path, $hasValue) {\n\tvar count = $data.query().path($this, toRDFQueryPath($path), $hasValue).getCount();\n\treturn count > 0;\n}\n\nfunction validateHasValueWithClass($this, $path, $hasValueWithClass) {\n\treturn $data.query().\n\t\t\tpath($this, toRDFQueryPath($path), \"?value\").\n\t\t\tfilter(function(sol) { return new RDFQueryUtil($data).isInstanceOf(sol.value, $hasValueWithClass) }).\n\t\t\thasSolution();\n}\n\nfunction validateIn($value, $in) {\n\tvar set = new NodeSet();\n\tset.addAll(new RDFQueryUtil($shapes).rdfListToArray($in));\n\treturn set.contains($value);\n}\n\nfunction validateLanguageIn($value, $languageIn) {\n\tif(!$value.isLiteral()) {\n\t\treturn false;\n\t}\n\tvar lang = $value.language;\n\tif(!lang || lang === \"\") {\n\t\treturn false;\n\t}\n\tvar ls = new RDFQueryUtil($shapes).rdfListToArray($languageIn);\n\tfor(var i = 0; i < ls.length; i++) {\n\t\tif(lang.startsWith(ls[i].lex)) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}\n\nfunction validateLessThanProperty($this, $path, $lessThan) {\n\tvar results = [];\n\t$data.query().\n\t\tpath($this, toRDFQueryPath($path), \"?value\").\n\t\tmatch($this, $lessThan, \"?otherValue\").\n\t\tforEach(function(sol) {\n\t\t\t\t\tvar c = SHACL.compareNodes(sol.value, sol.otherValue);\n\t\t\t\t\tif(c == null || c >= 0) {\n\t\t\t\t\t\tresults.push({\n\t\t\t\t\t\t\tvalue: sol.value\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\treturn results;\n}\n\nfunction validateLessThanOrEqualsProperty($this, $path, $lessThanOrEquals) {\n\tvar results = [];\n\t$data.query().\n\t\tpath($this, toRDFQueryPath($path), \"?value\").\n\t\tmatch($this, $lessThanOrEquals, \"?otherValue\").\n\t\tforEach(function(sol) {\n\t\t\t\t\tvar c = SHACL.compareNodes(sol.value, sol.otherValue);\n\t\t\t\t\tif(c == null || c > 0) {\n\t\t\t\t\t\tresults.push({\n\t\t\t\t\t\t\tvalue: sol.value\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\treturn results;\n}\n\nfunction validateMaxCountProperty($this, $path, $maxCount) {\n\tvar count = $data.query().path($this, toRDFQueryPath($path), \"?any\").getCount();\n\treturn count <= Number($maxCount.value);\n}\n\nfunction validateMaxExclusive($value, $maxExclusive) {\n\treturn $value.isLiteral() && Number($value.lex) < Number($maxExclusive.lex);\n}\n\nfunction validateMaxInclusive($value, $maxInclusive) {\n\treturn $value.isLiteral() && Number($value.lex) <= Number($maxInclusive.lex);\n}\n\nfunction validateMaxLength($value, $maxLength) {\n\tif($value.isBlankNode()) {\n\t\treturn false;\n\t}\n\treturn $value.value.length <= Number($maxLength.lex);\n}\n\nfunction validateMinCountProperty($this, $path, $minCount) {\n\tvar count = $data.query().path($this, toRDFQueryPath($path), \"?any\").getCount();\n\treturn count >= Number($minCount.value);\n}\n\nfunction validateMinExclusive($value, $minExclusive) {\n\treturn $value.isLiteral() && Number($value.lex) > Number($minExclusive.lex);\n}\n\nfunction validateMinInclusive($value, $minInclusive) {\n\treturn $value.isLiteral() && Number($value.lex) >= Number($minInclusive.lex);\n}\n\nfunction validateMinLength($value, $minLength) {\n\tif($value.isBlankNode()) {\n\t\treturn false;\n\t}\n\treturn $value.value.length >= Number($minLength.lex);\n}\n\nfunction validateNodeKind($value, $nodeKind) {\n\tif($value.isBlankNode()) {\n\t\treturn T(\"sh:BlankNode\").equals($nodeKind) || \n\t\t\tT(\"sh:BlankNodeOrIRI\").equals($nodeKind) ||\n\t\t\tT(\"sh:BlankNodeOrLiteral\").equals($nodeKind);\n\t}\n\telse if($value.isURI()) {\n\t\treturn T(\"sh:IRI\").equals($nodeKind) || \n\t\t\tT(\"sh:BlankNodeOrIRI\").equals($nodeKind) ||\n\t\t\tT(\"sh:IRIOrLiteral\").equals($nodeKind);\n\t}\n\telse if($value.isLiteral()) {\n\t\treturn T(\"sh:Literal\").equals($nodeKind) || \n\t\t\tT(\"sh:BlankNodeOrLiteral\").equals($nodeKind) ||\n\t\t\tT(\"sh:IRIOrLiteral\").equals($nodeKind);\n\t}\n}\n\nfunction validateNode($value, $node) {\n\treturn SHACL.nodeConformsToShape($value, $node);\n}\n\nfunction validateNonRecursiveProperty($this, $path, $nonRecursive) {\n\tif(T(\"true\").equals($nonRecursive)) {\n\t\tif($data.query().path($this, toRDFQueryPath($path), $this).hasSolution()) {\n\t\t\treturn {\n\t\t\t\tpath: $path,\n\t\t\t\tvalue: $this\n\t\t\t}\n\t\t}\n\t}\n}\n\nfunction validateNot($value, $not) {\n\treturn !SHACL.nodeConformsToShape($value, $not);\n}\n\nfunction validateOr($value, $or) {\n\tvar shapes = new RDFQueryUtil($shapes).rdfListToArray($or);\n\tfor(var i = 0; i < shapes.length; i++) {\n\t\tif(SHACL.nodeConformsToShape($value, shapes[i])) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}\n\nfunction validatePattern($value, $pattern, $flags) {\n\tif($value.isBlankNode()) {\n\t\treturn false;\n\t}\n\tvar re = $flags ? new RegExp($pattern.lex, $flags.lex) : new RegExp($pattern.lex);\n\treturn re.test($value.value);\n}\n\nfunction validatePrimaryKeyProperty($this, $path, $uriStart) {\n\tif(!$this.isURI()) {\n\t\treturn \"Must be an IRI\";\n\t}\n\tif($data.query().path($this, toRDFQueryPath($path), null).getCount() != 1) {\n\t\treturn \"Must have exactly one value\";\n\t}\n\tvar value = $data.query().path($this, toRDFQueryPath($path), \"?value\").getNode(\"?value\");\n\tvar uri = $uriStart.lex + encodeURIComponent(value.value);\n\tif(!$this.uri.equals(uri)) {\n\t\treturn \"Does not have URI \" + uri;\n\t}\n}\n\nfunction validateQualifiedMaxCountProperty($this, $path, $qualifiedValueShape, $qualifiedValueShapesDisjoint, $qualifiedMaxCount, $currentShape) {\n\tvar c = validateQualifiedHelper($this, $path, $qualifiedValueShape, $qualifiedValueShapesDisjoint, $currentShape);\n\treturn c <= Number($qualifiedMaxCount.lex);\n}\n\nfunction validateQualifiedMinCountProperty($this, $path, $qualifiedValueShape, $qualifiedValueShapesDisjoint, $qualifiedMinCount, $currentShape) {\n\tvar c = validateQualifiedHelper($this, $path, $qualifiedValueShape, $qualifiedValueShapesDisjoint, $currentShape);\n\treturn c >= Number($qualifiedMinCount.lex);\n}\n\nfunction validateQualifiedHelper($this, $path, $qualifiedValueShape, $qualifiedValueShapesDisjoint, $currentShape) {\n\tvar siblingShapes = new NodeSet();\n\tif(T(\"true\").equals($qualifiedValueShapesDisjoint)) {\n\t\t$shapes.query().\n\t\t\tmatch(\"?parentShape\", \"sh:property\", $currentShape).\n\t\t\tmatch(\"?parentShape\", \"sh:property\", \"?sibling\").\n\t\t\tmatch(\"?sibling\", \"sh:qualifiedValueShape\", \"?siblingShape\").\n\t\t\tfilter(exprNotEquals(\"?siblingShape\", $qualifiedValueShape)) .\n\t\t\taddAllNodes(\"?siblingShape\", siblingShapes);\n\t}\n\treturn $data.query().\n\t\tpath($this, toRDFQueryPath($path), \"?value\").\n\t\tfilter(function(sol) { \n\t\t\treturn SHACL.nodeConformsToShape(sol.value, $qualifiedValueShape) &&\n\t\t\t\t!validateQualifiedConformsToASibling(sol.value, siblingShapes.toArray()); \n\t\t}).\n\t\tgetCount();\n}\n\nfunction validateQualifiedConformsToASibling(value, siblingShapes) {\n\tfor(var i = 0; i < siblingShapes.length; i++) {\n\t\tif(SHACL.nodeConformsToShape(value, siblingShapes[i])) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}\n\nfunction validateRootClass($value, $rootClass) {\n\treturn $data.query().path($value, { zeroOrMore: T(\"rdfs:subClassOf\") }, $rootClass).hasSolution();\n}\n\nfunction validateStem($value, $stem) {\n\treturn $value.isURI() && $value.uri.startsWith($stem.lex);\n}\n\nfunction validateSubSetOf($this, $subSetOf, $value) {\n\treturn $data.query().match($this, $subSetOf, $value).hasSolution();\n}\n\nfunction validateUniqueLangProperty($this, $uniqueLang, $path) {\n\tif(!T(\"true\").equals($uniqueLang)) {\n\t\treturn;\n\t}\n\tvar map = {};\n\t$data.query().path($this, toRDFQueryPath($path), \"?value\").forEach(function(sol) {\n\t\tvar lang = sol.value.language;\n\t\tif(lang && lang != \"\") {\n\t\t\tvar old = map[lang];\n\t\t\tif(!old) {\n\t\t\t\tmap[lang] = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmap[lang] = old + 1;\n\t\t\t}\n\t\t}\n\t})\n\tvar results = [];\n\tfor(var lang in map) {\n\t\tif(map.hasOwnProperty(lang)) {\n\t\t\tvar count = map[lang];\n\t\t\tif(count > 1) {\n\t\t\t\tresults.push(\"Language \\\"\" + lang + \"\\\" has been used by \" + count + \" values\");\n\t\t\t}\n\t\t}\n\t}\n\treturn results;\n}\n\nfunction validateUniqueValueForClass($this, $uniqueValueForClass, $path) {\n\tvar results = [];\n\t$data.query().\n\t\tpath($this, toRDFQueryPath($path), \"?value\").\n\t\tpath(\"?other\", toRDFQueryPath($path), \"?value\").\n\t\tfilter(function(sol) {\n\t\t\t\treturn !$this.equals(sol.other);\n\t\t\t}).\n\t\tfilter(function(sol) {\n\t\t\t\treturn new RDFQueryUtil($data).isInstanceOf(sol.other, $uniqueValueForClass)\n\t\t\t}).\n\t\tforEach(function(sol) {\n\t\t\tresults.push({\n\t\t\t\tother: sol.other,\n\t\t\t\tvalue: sol.value\n\t\t\t})\n\t\t});\n\treturn results;\n}\n\nfunction validateXone($value, $xone) {\n\tvar shapes = new RDFQueryUtil($shapes).rdfListToArray($xone);\n\tvar count = 0;\n\tfor(var i = 0; i < shapes.length; i++) {\n\t\tif(SHACL.nodeConformsToShape($value, shapes[i])) {\n\t\t\tcount++;\n\t\t}\n\t}\n\treturn count == 1;\n}\n\n\n// DASH functions -------------------------------------------------------------\n\n// dash:toString\nfunction dash_toString($arg) {\n\tif($arg.isLiteral()) {\n\t\treturn NodeFactory.literal($arg.lex, T(\"xsd:string\"));\n\t}\n\telse if($arg.isURI()) {\n\t\treturn NodeFactory.literal($arg.uri, T(\"xsd:string\"));\n\t}\n\telse {\n\t\treturn null;\n\t}\n}\n\n\n// DASH targets ---------------------------------------------------------------\n\n// dash:AllObjectsTarget\nfunction dash_allObjects() {\n\treturn $data.query().match(null, null, \"?object\").getNodeSet(\"?object\").toArray();\n}\n\n// dash:AllSubjectsTarget\nfunction dash_allSubjects() {\n\treturn $data.query().match(\"?subject\", null, null).getNodeSet(\"?subject\").toArray();\n}\n\n\n// Utilities ------------------------------------------------------------------\n\nfunction toRDFQueryPath(shPath) {\n    if (shPath.termType === \"Collection\") {\n        var paths = new RDFQueryUtil($shapes).rdfListToArray(shPath);\n        var result = [];\n        for (var i = 0; i < paths.length; i++) {\n            result.push(toRDFQueryPath(paths[i]));\n        }\n        return result;\n    }\n\tif(shPath.isURI()) {\n\t\treturn shPath;\n\t}\n\telse if(shPath.isBlankNode()) {\n\t\tvar util = new RDFQueryUtil($shapes);\n\t\tif($shapes.query().getObject(shPath, \"rdf:first\")) {\n\t\t\tvar paths = util.rdfListToArray(shPath);\n\t\t\tvar result = [];\n\t\t\tfor(var i = 0; i < paths.length; i++) {\n\t\t\t\tresult.push(toRDFQueryPath(paths[i]));\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\tvar alternativePath = $shapes.query().getObject(shPath, \"sh:alternativePath\");\n\t\tif(alternativePath) {\n\t\t\tvar paths = util.rdfListToArray(alternativePath);\n\t\t\tvar result = [];\n\t\t\tfor(var i = 0; i < paths.length; i++) {\n\t\t\t\tresult.push(toRDFQueryPath(paths[i]));\n\t\t\t}\n\t\t\treturn { or : result };\n\t\t}\n\t\tvar zeroOrMorePath = $shapes.query().getObject(shPath, \"sh:zeroOrMorePath\");\n\t\tif(zeroOrMorePath) {\n\t\t\treturn { zeroOrMore : toRDFQueryPath(zeroOrMorePath) };\n\t\t}\n\t\tvar oneOrMorePath = $shapes.query().getObject(shPath, \"sh:oneOrMorePath\");\n\t\tif(oneOrMorePath) {\n\t\t\treturn { oneOrMore : toRDFQueryPath(oneOrMorePath) };\n\t\t}\n\t\tvar zeroOrOnePath = $shapes.query().getObject(shPath, \"sh:zeroOrOnePath\");\n\t\tif(zeroOrOnePath) {\n\t\t\treturn { zeroOrOne : toRDFQueryPath(zeroOrOnePath) };\n\t\t}\n\t\tvar inversePath = $shapes.query().getObject(shPath, \"sh:inversePath\");\n\t\tif(inversePath) {\n\t\t\treturn { inverse : toRDFQueryPath(inversePath) };\n\t\t}\n\t}\n\tthrow \"Unsupported SHACL path \" + shPath;\n\t// TODO: implement conforming to AbstractQuery.path syntax\n\treturn shPath;\n}\n\n\n// Private helper functions\n\n//TODO: Support more datatypes\nfunction isValidForDatatype(lex, datatype) {\n\tif(XSDIntegerTypes.contains(datatype)) {\n\t\tvar r = parseInt(lex);\n\t\treturn !isNaN(r);\n\t}\n\telse if(XSDDecimalTypes.contains(datatype)) {\n\t\tvar r = parseFloat(lex);\n\t\treturn !isNaN(r);\n\t}\n\telse if (datatype.value === \"http://www.w3.org/2001/XMLSchema#boolean\") {\n        return lex === \"true\" || lex === \"false\";\n    }\n\telse {\n\t\treturn true;\n\t}\n}\n\nfunction RDFQueryUtil($source) {\n\tthis.source = $source;\n}\n\nRDFQueryUtil.prototype.getInstancesOf = function($class) {\n\tvar set = new NodeSet();\n\tvar classes = this.getSubClassesOf($class);\n\tclasses.add($class);\n\tvar car = classes.toArray();\n\tfor(var i = 0; i < car.length; i++) {\n\t\tset.addAll(RDFQuery(this.source).match(\"?instance\", \"rdf:type\", car[i]).getNodeArray(\"?instance\"));\n\t}\n\treturn set;\n}\n\nRDFQueryUtil.prototype.getObject = function($subject, $predicate) {\n\tif(!$subject) {\n\t\tthrow \"Missing subject\";\n\t}\n\tif(!$predicate) {\n\t\tthrow \"Missing predicate\";\n\t}\n\treturn RDFQuery(this.source).match($subject, $predicate, \"?object\").getNode(\"?object\");\n}\n\nRDFQueryUtil.prototype.getSubClassesOf = function($class) {\n\tvar set = new NodeSet();\n\tthis.walkSubjects(set, $class, T(\"rdfs:subClassOf\"));\n\treturn set;\n}\n\nRDFQueryUtil.prototype.isInstanceOf = function($instance, $class) {\n\tvar classes = this.getSubClassesOf($class);\n\tvar types = $data.query().match($instance, \"rdf:type\", \"?type\");\n\tfor(var n = types.nextSolution(); n; n = types.nextSolution()) {\n\t\tif(n.type.equals($class) || classes.contains(n.type)) {\n\t\t\ttypes.close();\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}\n\nRDFQueryUtil.prototype.rdfListToArray = function($rdfList) {\n    if ($rdfList.elements != null) {\n        return $rdfList.elements;\n    } else {\n        var array = [];\n        while (!T(\"rdf:nil\").equals($rdfList)) {\n            array.push(this.getObject($rdfList, T(\"rdf:first\")));\n            $rdfList = this.getObject($rdfList, T(\"rdf:rest\"));\n        }\n        return array;\n    }\n}\n\nRDFQueryUtil.prototype.walkObjects = function($results, $subject, $predicate) {\n\tvar it = this.source.find($subject, $predicate, null);\n\tfor(var n = it.next(); n; n = it.next()) {\n\t\tif(!$results.contains(n.object)) {\n\t\t\t$results.add(n.object);\n\t\t\tthis.walkObjects($results, n.object, $predicate);\n\t\t}\n\t}\n}\n\nRDFQueryUtil.prototype.walkSubjects = function($results, $object, $predicate) {\n\tvar it = this.source.find(null, $predicate, $object);\n\tfor(var n = it.next(); n; n = it.next()) {\n\t\tif(!$results.contains(n.subject)) {\n\t\t\t$results.add(n.subject);\n\t\t\tthis.walkSubjects($results, n.subject, $predicate);\n\t\t}\n\t}\n}\n","http://datashapes.org/js/rdfquery.js":"// rdfquery.js\n// A simple RDF query library for JavaScript\n//\n// Contact: Holger Knublauch, TopQuadrant, Inc. (holger@topquadrant.com)\n//\n// The basic idea is that the function RDFQuery produces an initial\n// Query object, which starts with a single \"empty\" solution.\n// Each query object has a function nextSolution() producing an iteration\n// of variable bindings (\"volcano style\").\n// Each query object can be refined with subsequent calls to other\n// functions, producing new queries.\n// Invoking nextSolution on a query will pull solutions from its\n// predecessors in a chain of query objects.\n// The solution objects are plain JavaScript objects providing a\n// mapping from variable names to RDF Term objects.\n// Unless a query has been walked to exhaustion, .close() must be called.\n//\n// Finally, terminal functions such as .getNode() and .getArray() can be used\n// to produce individual values.  All terminal functions close the query.\n//\n// RDF Term/Node objects are expected to follow the contracts from the\n// RDF Representation Task Force's interface specification:\n// https://github.com/rdfjs/representation-task-force/blob/master/interface-spec.md\n//\n// In order to bootstrap all this, graph objects need to implement a\n// function .find(s, p, o) where each parameter is either an RDF term or null\n// producing an iterator object with a .next() function that produces RDF triples\n// (with attributes subject, predicate, object) or null when done.\n//\n// (Note I am not particularly a JavaScript guru so the modularization of this\n// script may be improved to hide private members from public API etc).\n\n/*\nExample:\n\n\tvar result = $data.query().\n\t\tmatch(\"owl:Class\", \"rdfs:label\", \"?label\").\n\t\tmatch(\"?otherClass\", \"rdfs:label\", \"?label\").\n\t\tfilter(function(sol) { return !T(\"owl:Class\").equals(sol.otherClass) }).\n\t\tgetNode(\"?otherClass\");\n\nEquivalent SPARQL:\n\t\tSELECT ?otherClass\n\t\tWHERE {\n\t\t\towl:Class rdfs:label ?label .\n\t\t\t?otherClass rdfs:label ?label .\n\t\t\tFILTER (owl:Class != ?otherClass) .\n\t\t} LIMIT 1\n*/\n\nif(!this[\"TermFactory\"]) {\n    // In some environments such as Nashorn this may already have a value\n    // In TopBraid this is redirecting to native Jena calls\n    TermFactory = {\n\n        REGEX_URI: /^([a-z][a-z0-9+.-]*):(?:\\/\\/((?:(?=((?:[a-z0-9-._~!$&'()*+,;=:]|%[0-9A-F]{2})*))(\\3)@)?(?=(\\[[0-9A-F:.]{2,}\\]|(?:[a-z0-9-._~!$&'()*+,;=]|%[0-9A-F]{2})*))\\5(?::(?=(\\d*))\\6)?)(\\/(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/]|%[0-9A-F]{2})*))\\8)?|(\\/?(?!\\/)(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/]|%[0-9A-F]{2})*))\\10)?)(?:\\?(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/?]|%[0-9A-F]{2})*))\\11)?(?:#(?=((?:[a-z0-9-._~!$&'()*+,;=:@\\/?]|%[0-9A-F]{2})*))\\12)?$/i,\n\n        impl : null,   // This needs to be connected to an API such as $rdf\n\n        // Globally registered prefixes for TTL short cuts\n        namespaces : {},\n\n        /**\n         * Registers a new namespace prefix for global TTL short cuts (qnames).\n         * @param prefix  the prefix to add\n         * @param namespace  the namespace to add for the prefix\n         */\n        registerNamespace : function(prefix, namespace) {\n            if(this.namespaces.prefix) {\n                throw \"Prefix \" + prefix + \" already registered\"\n            }\n            this.namespaces[prefix] = namespace;\n        },\n\n        /**\n         * Produces an RDF term from a TTL string representation.\n         * Also uses the registered prefixes.\n         * @param str  a string, e.g. \"owl:Thing\" or \"true\" or '\"Hello\"@en'.\n         * @return an RDF term\n         */\n        term : function(str) {\n            // TODO: this implementation currently only supports booleans and qnames - better overload to rdflib.js\n            if (\"true\" === str || \"false\" === str) {\n                return this.literal(str, (this.term(\"xsd:boolean\")));\n            }\n\n            if (str.match(/^\\d+$/)) {\n                return this.literal(str, (this.term(\"xsd:integer\")));\n            }\n\n            if (str.match(/^\\d+\\.\\d+$/)) {\n                return this.literal(str, (this.term(\"xsd:float\")));\n            }\n\n            var col = str.indexOf(\":\");\n            if (col > 0) {\n                var ns = this.namespaces[str.substring(0, col)];\n                if (ns != null) {\n                    return this.namedNode(ns + str.substring(col + 1));\n                } else {\n                    if (str.match(REGEX_URI)) {\n                        return this.namedNode(str)\n                    }\n                }\n            }\n            return this.literal(str);\n        },\n\n        /**\n         * Produces a new blank node.\n         * @param id  an optional ID for the node\n         */\n        blankNode : function(id) {\n            return this.impl.blankNode(id);\n        },\n\n        /**\n         * Produces a new literal.  For example .literal(\"42\", T(\"xsd:integer\")).\n         * @param lex  the lexical form, e.g. \"42\"\n         * @param langOrDatatype  either a language string or a URI node with the datatype\n         */\n        literal : function(lex, langOrDatatype) {\n            return this.impl.literal(lex, langOrDatatype)\n        },\n\n        // This function is basically left for Task Force compatibility, but the preferred function is uri()\n        namedNode : function(uri) {\n            return this.impl.namedNode(uri)\n        },\n\n        /**\n         * Produces a new URI node.\n         * @param uri  the URI of the node\n         */\n        uri : function(uri) {\n            return namedNode(uri);\n        }\n    }\n}\n\n// Install NodeFactory as an alias - unsure which name is best long term:\n// The official name in RDF is \"term\", while \"node\" is more commonly understood.\n// Oficially, a \"node\" must be in a graph though, while \"terms\" are independent.\nvar NodeFactory = TermFactory;\n\n\nNodeFactory.registerNamespace(\"dc\", \"http://purl.org/dc/elements/1.1/\")\nNodeFactory.registerNamespace(\"dcterms\", \"http://purl.org/dc/terms/\")\nNodeFactory.registerNamespace(\"rdf\", \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\")\nNodeFactory.registerNamespace(\"rdfs\", \"http://www.w3.org/2000/01/rdf-schema#\")\nNodeFactory.registerNamespace(\"schema\", \"http://schema.org/\")\nNodeFactory.registerNamespace(\"sh\", \"http://www.w3.org/ns/shacl#\")\nNodeFactory.registerNamespace(\"skos\", \"http://www.w3.org/2004/02/skos/core#\")\nNodeFactory.registerNamespace(\"owl\", \"http://www.w3.org/2002/07/owl#\")\nNodeFactory.registerNamespace(\"xsd\", \"http://www.w3.org/2001/XMLSchema#\")\n\n// Candidates:\n// NodeFactory.registerNamespace(\"prov\", \"http://www.w3.org/ns/prov#\");\n\n/**\n * A shortcut for NodeFactory.term(str) - turns a TTL string representation of an RDF\n * term into a proper RDF term.\n * This will also use the globally registered namespace prefixes.\n * @param str  the string representation, e.g. \"owl:Thing\"\n * @returns\n */\nfunction T(str) {\n    return NodeFactory.term(str)\n}\n\n\n/**\n * Creates a query object for a given graph and optional initial solution.\n * The resulting object can be further refined using the functions on\n * AbstractQuery such as <code>match()</code> and <code>filter()</code>.\n * Functions such as <code>nextSolution()</code> can be used to get the actual results.\n * @param graph  the graph to query\n * @param initialSolution  the initial solutions or null for none\n * @returns a query object\n */\nfunction RDFQuery(graph, initialSolution) {\n    return new StartQuery(graph, initialSolution ? initialSolution : []);\n}\n\n\n// class AbstractQuery\n\nfunction AbstractQuery() {\n}\n\n// ----------------------------------------------------------------------------\n// Query constructor functions, can be chained together\n// ----------------------------------------------------------------------------\n\n/**\n * Creates a new query that adds a binding for a given variable into\n * each solution produced by the input query.\n * @param varName  the name of the variable to bind, starting with \"?\"\n * @param bindFunction  a function that takes a solution object\n *                      and returns a node or null based on it.\n */\nAbstractQuery.prototype.bind = function(varName, bindFunction) {\n    return new BindQuery(this, varName, bindFunction);\n}\n\n/**\n * Creates a new query that filters the solutions produced by this.\n * @param filterFunction  a function that takes a solution object\n *                        and returns true iff that solution is valid\n */\nAbstractQuery.prototype.filter = function(filterFunction) {\n    return new FilterQuery(this, filterFunction);\n}\n\n/**\n * Creates a new query that only allows the first n solutions through.\n * @param limit  the maximum number of results to allow\n */\nAbstractQuery.prototype.limit = function(limit) {\n    return new LimitQuery(this, limit);\n}\n\n/**\n * Creates a new query doing a triple match.\n * In each subject, predicate, object position, the values can either be\n * an RDF term object or null (wildcard) or a string.\n * If it is a string it may either be a variable (starting with \"?\")\n * or the TTL representation of an RDF term using the T() function.\n * @param s  the match subject\n * @param p  the match predicate\n * @param o  the match object\n */\nAbstractQuery.prototype.match = function(s, p, o) {\n    return new MatchQuery(this, s, p, o);\n}\n\n/**\n * Creates a new query that sorts all input solutions by the bindings\n * for a given variable.\n * @param varName  the name of the variable to sort by, starting with \"?\"\n */\nAbstractQuery.prototype.orderBy = function(varName) {\n    return new OrderByQuery(this, varName);\n}\n\n/**\n * Creates a new query doing a match where the predicate may be a RDF Path object.\n * Note: This is currently not using lazy evaluation and will always walk all matches.\n * Path syntax:\n * - PredicatePaths: NamedNode\n * - SequencePaths: [path1, path2]\n * - AlternativePaths: { or : [ path1, path2 ] }\n * - InversePaths: { inverse : path }   LIMITATION: Only supports NamedNodes for path here\n * - ZeroOrMorePaths: { zeroOrMore : path }\n * - OneOrMorePaths: { oneOrMore : path }\n * - ZeroOrOnePaths: { zeroOrOne : path }\n * @param s  the match subject or a variable name (string) - must have a value\n *           at execution time!\n * @param path  the match path object (e.g. a NamedNode for a simple predicate hop)\n * @param o  the match object or a variable name (string)\n */\nAbstractQuery.prototype.path = function(s, path, o) {\n    if(path && path.value && path.isURI()) {\n        return new MatchQuery(this, s, path, o);\n    }\n    else {\n        return new PathQuery(this, s, path, o);\n    }\n}\n\n// TODO: add other SPARQL-like query types\n//       - .distinct()\n//       - .union(otherQuery)\n\n\n// ----------------------------------------------------------------------------\n// Terminal functions - convenience functions to get values.\n// All these functions close the solution iterators.\n// ----------------------------------------------------------------------------\n\n/**\n * Adds all nodes produced by a given solution variable into a set.\n * The set must have an add(node) function.\n * @param varName  the name of the variable, starting with \"?\"\n * @param set  the set to add to\n */\nAbstractQuery.prototype.addAllNodes = function(varName, set) {\n    var attrName = var2Attr(varName);\n    for(var sol = this.nextSolution(); sol; sol = this.nextSolution()) {\n        var node = sol[attrName];\n        if(node) {\n            set.add(node);\n        }\n    }\n}\n\n/**\n * Produces an array of triple objects where each triple object has properties\n * subject, predicate and object derived from the provided template values.\n * Each of these templates can be either a variable name (starting with '?'),\n * an RDF term string (such as \"rdfs:label\") or a JavaScript node object.\n * @param subject  the subject node\n * @param predicate  the predicate node\n * @param object  the object node\n */\nAbstractQuery.prototype.construct = function(subject, predicate, object) {\n    var results = [];\n    for(var sol = this.nextSolution(); sol; sol = this.nextSolution()) {\n        var s = null;\n        if(typeof subject === 'string') {\n            if(subject.indexOf('?') == 0) {\n                s = sol[var2Attr(subject)];\n            }\n            else {\n                s = T(subject);\n            }\n        }\n        else {\n            s = subject;\n        }\n        var p = null;\n        if(typeof predicate === 'string') {\n            if(predicate.indexOf('?') == 0) {\n                p = sol[var2Attr(predicate)];\n            }\n            else {\n                p = T(predicate);\n            }\n        }\n        else {\n            p = predicate;\n        }\n\n        var o = null;\n        if(typeof object === 'string') {\n            if(object.indexOf('?') == 0) {\n                o = sol[var2Attr(object)];\n            }\n            else {\n                o = T(object);\n            }\n        }\n        else {\n            o = object;\n        }\n\n        if(s && p && o) {\n            results.push({ subject: s, predicate: p, object: o});\n        }\n    }\n    return results;\n}\n\n/**\n * Executes a given function for each solution.\n * @param callback  a function that takes a solution as argument\n */\nAbstractQuery.prototype.forEach = function(callback) {\n    for(var n = this.nextSolution(); n; n = this.nextSolution()) {\n        callback(n);\n    }\n}\n\n/**\n * Executes a given function for each node in a solution set.\n * @param varName  the name of a variable, starting with \"?\"\n * @param callback  a function that takes a node as argument\n */\nAbstractQuery.prototype.forEachNode = function(varName, callback) {\n    var attrName = var2Attr(varName);\n    for(var sol = this.nextSolution(); sol; sol = this.nextSolution()) {\n        var node = sol[attrName];\n        if(node) {\n            callback(node);\n        }\n    }\n}\n\n/**\n * Turns all result solutions into an array.\n * @return an array consisting of solution objects\n */\nAbstractQuery.prototype.getArray = function() {\n    var results = [];\n    for(var n = this.nextSolution(); n != null; n = this.nextSolution()) {\n        results.push(n);\n    }\n    return results;\n}\n\n/**\n * Gets the number of (remaining) solutions.\n * @return the count\n */\nAbstractQuery.prototype.getCount = function() {\n    return this.getArray().length; // Quick and dirty implementation\n}\n\n/**\n * Gets the next solution and, if that exists, returns the binding for a\n * given variable from that solution.\n * @param varName  the name of the binding to get, starting with \"?\"\n * @return the value of the variable or null or undefined if it doesn't exist\n */\nAbstractQuery.prototype.getNode = function(varName) {\n    var s = this.nextSolution();\n    if(s) {\n        this.close();\n        return s[var2Attr(varName)];\n    }\n    else {\n        return null;\n    }\n}\n\n/**\n * Turns all results into an array of bindings for a given variable.\n * @return an array consisting of RDF node objects\n */\nAbstractQuery.prototype.getNodeArray = function(varName) {\n    var results = [];\n    var attr = var2Attr(varName);\n    for(var n = this.nextSolution(); n != null; n = this.nextSolution()) {\n        results.push(n[attr]);\n    }\n    return results;\n}\n\n/**\n * Turns all result bindings for a given variable into a set.\n * The set has functions .contains and .toArray.\n * @param varName  the name of the variable, starting with \"?\"\n * @return a set consisting of RDF node objects\n */\nAbstractQuery.prototype.getNodeSet = function(varName) {\n    var results = new NodeSet();\n    var attr = var2Attr(varName);\n    for(var n = this.nextSolution(); n != null; n = this.nextSolution()) {\n        results.add(n[attr]);\n    }\n    return results;\n}\n\n/**\n * Queries the underlying graph for the object of a subject/predicate combination,\n * where either subject or predicate can be a variable which is substituted with\n * a value from the next input solution.\n * Note that even if there are multiple solutions it will just return the \"first\"\n * one and since the order of triples in RDF is undefined this may lead to random results.\n * Unbound values produce errors.\n * @param subject  an RDF term or a variable (starting with \"?\") or a TTL representation\n * @param predicate  an RDF term or a variable (starting with \"?\") or a TTL representation\n * @return the object of the \"first\" triple matching the subject/predicate combination\n */\nAbstractQuery.prototype.getObject = function(subject, predicate) {\n    var sol = this.nextSolution();\n    if(sol) {\n        this.close();\n        var s;\n        if(typeof subject === 'string') {\n            if(subject.indexOf('?') == 0) {\n                s = sol[var2Attr(subject)];\n            }\n            else {\n                s = T(subject);\n            }\n        }\n        else {\n            s = subject;\n        }\n        if(!s) {\n            throw \"getObject() called with null subject\";\n        }\n        var p;\n        if(typeof predicate === 'string') {\n            if(predicate.indexOf('?') == 0) {\n                p = sol[var2Attr(predicate)];\n            }\n            else {\n                p = T(predicate);\n            }\n        }\n        else {\n            p = predicate;\n        }\n        if(!p) {\n            throw \"getObject() called with null predicate\";\n        }\n\n        var it = this.source.find(s, p, null);\n        var triple = it.next();\n        if(triple) {\n            it.close();\n            return triple.object;\n        }\n    }\n    return null;\n}\n\n/**\n * Tests if there is any solution and closes the query.\n * @return true if there is another solution\n */\nAbstractQuery.prototype.hasSolution = function() {\n    if(this.nextSolution()) {\n        this.close();\n        return true;\n    }\n    else {\n        return false;\n    }\n}\n\n\n// ----------------------------------------------------------------------------\n// Expression functions - may be used in filter and bind queries\n// ----------------------------------------------------------------------------\n\n/**\n * Creates a function that takes a solution and compares a given node with\n * the binding of a given variable from that solution.\n * @param varName  the name of the variable (starting with \"?\")\n * @param node  the node to compare with\n * @returns true if the solution's variable equals the node\n */\nfunction exprEquals(varName, node) {\n    return function(sol) {\n        return node.equals(sol[var2Attr(varName)]);\n    }\n}\n\n/**\n * Creates a function that takes a solution and compares a given node with\n * the binding of a given variable from that solution.\n * @param varName  the name of the variable (starting with \"?\")\n * @param node  the node to compare with\n * @returns true if the solution's variable does not equal the node\n */\nfunction exprNotEquals(varName, node) {\n    return function(sol) {\n        return !node.equals(sol[var2Attr(varName)]);\n    }\n}\n\n\n// ----------------------------------------------------------------------------\n// END OF PUBLIC API ----------------------------------------------------------\n// ----------------------------------------------------------------------------\n\n\n// class BindQuery\n// Takes all input solutions but adds a value for a given variable so that\n// the value is computed by a given function based on the current solution.\n// It is illegal to use a variable that already has a value from the input.\n\nfunction BindQuery(input, varName, bindFunction) {\n    this.attr = var2Attr(varName);\n    this.source = input.source;\n    this.input = input;\n    this.bindFunction = bindFunction;\n}\n\nBindQuery.prototype = Object.create(AbstractQuery.prototype);\n\nBindQuery.prototype.close = function() {\n    this.input.close();\n}\n\n// Pulls the next result from the input Query and passes it into\n// the given bind function to add a new node\nBindQuery.prototype.nextSolution = function() {\n    var result = this.input.nextSolution();\n    if(result == null) {\n        return null;\n    }\n    else {\n        var newNode = this.bindFunction(result);\n        if(newNode) {\n            result[this.attr] = newNode;\n        }\n        return result;\n    }\n}\n\n\n// class FilterQuery\n// Filters the incoming solutions, only letting through those where\n// filterFunction(solution) returns true\n\nfunction FilterQuery(input, filterFunction) {\n    this.source = input.source;\n    this.input = input;\n    this.filterFunction = filterFunction;\n}\n\nFilterQuery.prototype = Object.create(AbstractQuery.prototype);\n\nFilterQuery.prototype.close = function() {\n    this.input.close();\n}\n\n// Pulls the next result from the input Query and passes it into\n// the given filter function\nFilterQuery.prototype.nextSolution = function() {\n    for(;;) {\n        var result = this.input.nextSolution();\n        if(result == null) {\n            return null;\n        }\n        else if(this.filterFunction(result) === true) {\n            return result;\n        }\n    }\n}\n\n\n// class LimitQuery\n// Only allows the first n values of the input query through\n\nfunction LimitQuery(input, limit) {\n    this.source = input.source;\n    this.input = input;\n    this.limit = limit;\n}\n\nLimitQuery.prototype = Object.create(AbstractQuery.prototype);\n\nLimitQuery.prototype.close = function() {\n    this.input.close();\n}\n\n// Pulls the next result from the input Query unless the number\n// of previous calls has exceeded the given limit\nLimitQuery.prototype.nextSolution = function() {\n    if(this.limit > 0) {\n        this.limit--;\n        return this.input.nextSolution();\n    }\n    else {\n        this.input.close();\n        return null;\n    }\n}\n\n\n// class MatchQuery\n// Joins the solutions from the input Query with triple matches against\n// the current input graph.\n\nfunction MatchQuery(input, s, p, o) {\n    this.source = input.source;\n    this.input = input;\n    if(typeof s === 'string') {\n        if(s.indexOf('?') == 0) {\n            this.sv = var2Attr(s);\n        }\n        else {\n            this.s = T(s);\n        }\n    }\n    else {\n        this.s = s;\n    }\n    if(typeof p === 'string') {\n        if(p.indexOf('?') == 0) {\n            this.pv = var2Attr(p);\n        }\n        else {\n            this.p = T(p);\n        }\n    }\n    else {\n        this.p = p;\n    }\n    if(typeof o === 'string') {\n        if(o.indexOf('?') == 0) {\n            this.ov = var2Attr(o);\n        }\n        else {\n            this.o = T(o);\n        }\n    }\n    else {\n        this.o = o;\n    }\n}\n\nMatchQuery.prototype = Object.create(AbstractQuery.prototype);\n\nMatchQuery.prototype.close = function() {\n    this.input.close();\n    if(this.ownIterator) {\n        this.ownIterator.close();\n    }\n}\n\n// This pulls the first solution from the input Query and uses it to\n// create an \"ownIterator\" which applies the input solution to those\n// specified by s, p, o.\n// Once this \"ownIterator\" has been exhausted, it moves to the next\n// solution from the input Query, and so on.\n// At each step, it produces the union of the input solutions plus the\n// own solutions.\nMatchQuery.prototype.nextSolution = function() {\n\n    var oit = this.ownIterator;\n    if(oit) {\n        var n = oit.next();\n        if(n != null) {\n            var result = createSolution(this.inputSolution);\n            if(this.sv) {\n                result[this.sv] = n.subject;\n            }\n            if(this.pv) {\n                result[this.pv] = n.predicate;\n            }\n            if(this.ov) {\n                result[this.ov] = n.object;\n            }\n            return result;\n        }\n        else {\n            delete this.ownIterator; // Mark as exhausted\n        }\n    }\n\n    // Pull from input\n    this.inputSolution = this.input.nextSolution();\n    if(this.inputSolution) {\n        var sm = this.sv ? this.inputSolution[this.sv] : this.s;\n        var pm = this.pv ? this.inputSolution[this.pv] : this.p;\n        var om = this.ov ? this.inputSolution[this.ov] : this.o;\n        this.ownIterator = this.source.find(sm, pm, om);\n        return this.nextSolution();\n    }\n    else {\n        return null;\n    }\n}\n\n\n// class OrderByQuery\n// Sorts all solutions from the input stream by a given variable\n\nfunction OrderByQuery(input, varName) {\n    this.input = input;\n    this.source = input.source;\n    this.attrName = var2Attr(varName);\n}\n\nOrderByQuery.prototype = Object.create(AbstractQuery.prototype);\n\nOrderByQuery.prototype.close = function() {\n    this.input.close();\n}\n\nOrderByQuery.prototype.nextSolution = function() {\n    if(!this.solutions) {\n        this.solutions = this.input.getArray();\n        var attrName = this.attrName;\n        this.solutions.sort(function(s1, s2) {\n            return compareTerms(s1[attrName], s2[attrName]);\n        });\n        this.index = 0;\n    }\n    if(this.index < this.solutions.length) {\n        return this.solutions[this.index++];\n    }\n    else {\n        return null;\n    }\n}\n\n\n// class PathQuery\n// Expects subject and path to be bound and produces all bindings\n// for the object variable or matches that by evaluating the given path\n\nfunction PathQuery(input, subject, path, object) {\n    this.input = input;\n    this.source = input.source;\n    if(typeof subject === 'string' && subject.indexOf(\"?\") == 0) {\n        this.subjectAttr = var2Attr(subject);\n    }\n    else {\n        this.subject = subject;\n    }\n    if(path == null) {\n        throw \"Path cannot be unbound\";\n    }\n    if(typeof path === 'string') {\n        this.path_ = T(path);\n    }\n    else {\n        this.path_ = path;\n    }\n    if(typeof object === 'string' && object.indexOf(\"?\") == 0) {\n        this.objectAttr = var2Attr(object);\n    }\n    else {\n        this.object = object;\n    }\n}\n\nPathQuery.prototype = Object.create(AbstractQuery.prototype);\n\nPathQuery.prototype.close = function() {\n    this.input.close();\n}\n\nPathQuery.prototype.nextSolution = function() {\n\n    var r = this.pathResults;\n    if(r) {\n        var n = r[this.pathIndex++];\n        var result = createSolution(this.inputSolution);\n        if(this.objectAttr) {\n            result[this.objectAttr] = n;\n        }\n        if(this.pathIndex == r.length) {\n            delete this.pathResults; // Mark as exhausted\n        }\n        return result;\n    }\n\n    // Pull from input\n    this.inputSolution = this.input.nextSolution();\n    if(this.inputSolution) {\n        var sm = this.subjectAttr ? this.inputSolution[this.subjectAttr] : this.subject;\n        if(sm == null) {\n            throw \"Path cannot have unbound subject\";\n        }\n        var om = this.objectAttr ? this.inputSolution[this.objectAttr] : this.object;\n        var pathResultsSet = new NodeSet();\n        addPathValues(this.source, sm, this.path_, pathResultsSet);\n        this.pathResults = pathResultsSet.toArray();\n        if(this.pathResults.length == 0) {\n            delete this.pathResults;\n        }\n        else if(om) {\n            delete this.pathResults;\n            if(pathResultsSet.contains(om)) {\n                return this.inputSolution;\n            }\n        }\n        else {\n            this.pathIndex = 0;\n        }\n        return this.nextSolution();\n    }\n    else {\n        return null;\n    }\n}\n\n\n// class StartQuery\n// This simply produces a single result: the initial solution\n\nfunction StartQuery(source, initialSolution) {\n    this.source = source;\n    if (initialSolution && initialSolution.length > 0) {\n        this.solution = initialSolution;\n    } else {\n        this.solution = [{}];\n    }\n}\n\nStartQuery.prototype = Object.create(AbstractQuery.prototype);\n\nStartQuery.prototype.close = function() {\n}\n\nStartQuery.prototype.nextSolution = function() {\n    if (this.solution) {\n        if (this.solution.length > 0) {\n            return this.solution.shift();\n        } else {\n            delete this.solution;\n        }\n    }\n}\n\n\n// Helper functions\n\nfunction createSolution(base) {\n    var result = {};\n    for(var attr in base) {\n        if(base.hasOwnProperty(attr)) {\n            result[attr] = base[attr];\n        }\n    }\n    return result;\n}\n\n\nfunction compareTerms(t1, t2) {\n    if(!t1) {\n        return !t2 ? 0 : 1;\n    }\n    else if(!t2) {\n        return -1;\n    }\n    var bt = t1.termType.localeCompare(t2.termType);\n    if(bt != 0) {\n        return bt;\n    }\n    else {\n        // TODO: Does not handle numeric or date comparison\n        var bv = t1.value.localeCompare(t2.value);\n        if(bv != 0) {\n            return bv;\n        }\n        else {\n            if(t1.isLiteral()) {\n                var bd = t1.datatype.uri.localeCompare(t2.datatype.uri);\n                if(bd != 0) {\n                    return bd;\n                }\n                else if(T(\"rdf:langString\").equals(t1.datatype)) {\n                    return t1.language.localeCompare(t2.language);\n                }\n                else {\n                    return 0;\n                }\n            }\n            else {\n                return 0;\n            }\n        }\n    }\n}\n\nfunction getLocalName(uri) {\n    // TODO: This is not the 100% correct local name algorithm\n    var index = uri.lastIndexOf(\"#\");\n    if(index < 0) {\n        index = uri.lastIndexOf(\"/\");\n    }\n    if(index < 0) {\n        throw \"Cannot get local name of \" + uri;\n    }\n    return uri.substring(index + 1);\n}\n\n\n// class NodeSet\n// (a super-primitive implementation for now!)\n\nfunction NodeSet() {\n    this.values = [];\n}\n\nNodeSet.prototype.add = function(node) {\n    if(!this.contains(node)) {\n        this.values.push(node);\n    }\n}\n\nNodeSet.prototype.addAll = function(nodes) {\n    for(var i = 0; i < nodes.length; i++) {\n        this.add(nodes[i]);\n    }\n}\n\nNodeSet.prototype.contains = function(node) {\n    for(var i = 0; i < this.values.length; i++) {\n        if(this.values[i].equals(node)) {\n            return true;\n        }\n    }\n    return false;\n}\n\nNodeSet.prototype.forEach = function(callback) {\n    for(var i = 0; i < this.values.length; i++) {\n        callback(this.values[i]);\n    }\n}\n\nNodeSet.prototype.size = function() {\n    return this.values.length;\n}\n\nNodeSet.prototype.toArray = function() {\n    return this.values;\n}\n\nNodeSet.prototype.toString = function() {\n    var str = \"NodeSet(\" + this.size() + \"): [\";\n    var arr = this.toArray();\n    for(var i = 0; i < arr.length; i++) {\n        if(i > 0) {\n            str += \", \";\n        }\n        str += arr[i];\n    }\n    return str + \"]\";\n}\n\n\nfunction var2Attr(varName) {\n    if(!varName.indexOf(\"?\") == 0) {\n        throw \"Variable name must start with ?\";\n    }\n    if(varName.length == 1) {\n        throw \"Variable name too short\";\n    }\n    return varName.substring(1);\n}\n\n\n\n// Simple Path syntax implementation:\n// Adds all matches for a given subject and path combination into a given NodeSet.\n// This should really be doing lazy evaluation and only up to the point\n// where the match object is found.\nfunction addPathValues(graph, subject, path, set) {\n    if(path.uri) {\n        set.addAll(RDFQuery(graph).match(subject, path, \"?object\").getNodeArray(\"?object\"));\n    }\n    else if(Array.isArray(path)) {\n        var s = new NodeSet();\n        s.add(subject);\n        for(var i = 0; i < path.length; i++) {\n            var a = s.toArray();\n            s = new NodeSet();\n            for(var j = 0; j < a.length; j++) {\n                addPathValues(graph, a[j], path[i], s);\n            }\n        }\n        set.addAll(s.toArray());\n    }\n    else if(path.or) {\n        for(var i = 0; i < path.or.length; i++) {\n            addPathValues(graph, subject, path.or[i], set);\n        }\n    }\n    else if(path.inverse) {\n        if(path.inverse.isURI()) {\n            set.addAll(RDFQuery(graph).match(\"?subject\", path.inverse, subject).getNodeArray(\"?subject\"));\n        }\n        else {\n            throw \"Unsupported: Inverse paths only work for named nodes\";\n        }\n    }\n    else if(path.zeroOrOne) {\n        addPathValues(graph, subject, path.zeroOrOne, set);\n        set.add(subject);\n    }\n    else if(path.zeroOrMore) {\n        walkPath(graph, subject, path.zeroOrMore, set, new NodeSet());\n        set.add(subject);\n    }\n    else if(path.oneOrMore) {\n        walkPath(graph, subject, path.oneOrMore, set, new NodeSet());\n    }\n    else {\n        throw \"Unsupported path object: \" + path;\n    }\n}\n\nfunction walkPath(graph, subject, path, set, visited) {\n    visited.add(subject);\n    var s = new NodeSet();\n    addPathValues(graph, subject, path, s);\n    var a = s.toArray();\n    set.addAll(a);\n    for(var i = 0; i < a.length; i++) {\n        if(!visited.contains(a[i])) {\n            walkPath(graph, a[i], path, set, visited);\n        }\n    }\n}"}
},{}],84:[function(_dereq_,module,exports){
var $rdf = _dereq_("rdflib");
var RDFQuery = _dereq_("./rdfquery");
var T = RDFQuery.T;

var errorHandler = function(e){
    _dereq_("debug")("rdflib-graph::error")(e);
    throw(e);
};

// Monkey Patching rdflib, Literals, BlankNodes and NamedNodes
var exLiteral = $rdf.literal("a", "de");
Object.defineProperty(Object.getPrototypeOf(exLiteral), "lex", { get: function () { return this.value } });
Object.getPrototypeOf(exLiteral).isBlankNode = function () { return false };
Object.getPrototypeOf(exLiteral).isLiteral = function () { return true };
Object.getPrototypeOf(exLiteral).isURI = function () { return false };

var exBlankNode = $rdf.blankNode();
Object.getPrototypeOf(exBlankNode).isBlankNode = function () { return true };
Object.getPrototypeOf(exBlankNode).isLiteral = function () { return false };
Object.getPrototypeOf(exBlankNode).isURI = function () { return false };

var exNamedNode = $rdf.namedNode("urn:x-dummy");
Object.getPrototypeOf(exNamedNode).isBlankNode = function () { return false };
Object.getPrototypeOf(exNamedNode).isLiteral = function () { return false };
Object.getPrototypeOf(exNamedNode).isURI = function () { return true };


/**
 * Creates a ne RDFLibGraph wrapping a provided $rdf.graph or creating
 * a new one if no graph is provided
 * @param store rdflib graph object
 * @constructor
 */
var RDFLibGraph = function (store) {
    if (store != null) {
        this.store = store;
    } else {
        this.store = $rdf.graph();
    }
};

RDFLibGraph.prototype.find = function (s, p, o) {
    return new RDFLibGraphIterator(this.store, s, p, o);
};

RDFLibGraph.prototype.query = function () {
    return RDFQuery(this);
};

RDFLibGraph.prototype.loadMemoryGraph = function(graphURI, rdfModel, andThen) {
    postProcessGraph(this.store, graphURI, rdfModel)
    andThen();
};

RDFLibGraph.prototype.loadGraph = function(str, graphURI, mimeType, andThen, handleError) {
    var newStore = $rdf.graph();
    handleError = handleError || errorHandler;
    var that = this;
    if (mimeType === "application/ld+json") {
        var error = false;
        $rdf.parse(str, newStore, graphURI, mimeType, function (err, kb) {
            if (err) {
                error = true;
                handleError(err)
            }
            else if (!error) {
                postProcessGraph(that.store, graphURI, newStore);
                andThen();
            }
        });
    }
    else {
        try {
            $rdf.parse(str, newStore, graphURI, mimeType);
            postProcessGraph(this.store, graphURI, newStore);
            andThen();
        }
        catch (ex) {
            handleError(ex);
        }
    }
};

RDFLibGraph.prototype.clear = function() {
    this.store = $rdf.graph();
};



var RDFLibGraphIterator = function (store, s, p, o) {
    this.index = 0;
    this.ss = store.statementsMatching(s, p, o);
};

RDFLibGraphIterator.prototype.close = function () {
    // Do nothing
};

RDFLibGraphIterator.prototype.next = function () {
    if (this.index >= this.ss.length) {
        return null;
    }
    else {
        return this.ss[this.index++];
    }
};

function ensureBlankId(component) {
    if (component.termType === "BlankNode") {
        if (typeof(component.value) !== "string") {
            component.value = "_:" + component.id;
        }
        return component;
    }

    return component
}

function postProcessGraph(store, graphURI, newStore) {

    var ss = newStore.statementsMatching(undefined, undefined, undefined);
    for (var i = 0; i < ss.length; i++) {
        var object = ss[i].object;
        ensureBlankId(ss[i].subject);
        ensureBlankId(ss[i].predicate);
        ensureBlankId(ss[i].object);
        if (T("xsd:boolean").equals(object.datatype)) {
            if ("0" === object.value || "false" === object.value) {
                store.add(ss[i].subject, ss[i].predicate, T("false"), graphURI);
            }
            else if ("1" === object.value || "true" === object.value) {
                store.add(ss[i].subject, ss[i].predicate, T("true"), graphURI);
            } else {
                store.add(ss[i].subject, ss[i].predicate, object, graphURI);
            }
        }
        else if (object.termType === 'collection') {
            var items = object.elements;
            store.add(ss[i].subject, ss[i].predicate, createRDFListNode(store, items, 0));
        }
        else {
            store.add(ss[i].subject, ss[i].predicate, ss[i].object, graphURI);
        }
    }

    for (var prefix in newStore.namespaces) {
        var ns = newStore.namespaces[prefix];
        store.namespaces[prefix] = ns;
    }
}

module.exports.RDFLibGraph = RDFLibGraph;
module.exports.RDFLibGraphIterator = RDFLibGraphIterator;
},{"./rdfquery":85,"debug":12,"rdflib":43}],85:[function(_dereq_,module,exports){
/// ADDED...
var TermFactory = _dereq_("./rdfquery/term-factory");
this["TermFactory"] = TermFactory;
///

// rdfquery.js
// A simple RDF query library for JavaScript
//
// Contact: Holger Knublauch, TopQuadrant, Inc. (holger@topquadrant.com)
//
// The basic idea is that the function RDFQuery produces an initial
// Query object, which starts with a single "empty" solution.
// Each query object has a function nextSolution() producing an iteration
// of variable bindings ("volcano style").
// Each query object can be refined with subsequent calls to other
// functions, producing new queries.
// Invoking nextSolution on a query will pull solutions from its
// predecessors in a chain of query objects.
// The solution objects are plain JavaScript objects providing a
// mapping from variable names to RDF Term objects.
// Unless a query has been walked to exhaustion, .close() must be called.
//
// Finally, terminal functions such as .getNode() and .getArray() can be used
// to produce individual values.  All terminal functions close the query.
//
// RDF Term/Node objects are expected to follow the contracts from the
// RDF Representation Task Force's interface specification:
// https://github.com/rdfjs/representation-task-force/blob/master/interface-spec.md
//
// In order to bootstrap all this, graph objects need to implement a
// function .find(s, p, o) where each parameter is either an RDF term or null
// producing an iterator object with a .next() function that produces RDF triples
// (with attributes subject, predicate, object) or null when done.
//
// (Note I am not particularly a JavaScript guru so the modularization of this
// script may be improved to hide private members from public API etc).

/*
Example:

	var result = $data.query().
		match("owl:Class", "rdfs:label", "?label").
		match("?otherClass", "rdfs:label", "?label").
		filter(function(sol) { return !T("owl:Class").equals(sol.otherClass) }).
		getNode("?otherClass");

Equivalent SPARQL:
		SELECT ?otherClass
		WHERE {
			owl:Class rdfs:label ?label .
			?otherClass rdfs:label ?label .
			FILTER (owl:Class != ?otherClass) .
		} LIMIT 1
*/

if(!this["TermFactory"]) {
    // In some environments such as Nashorn this may already have a value
    // In TopBraid this is redirecting to native Jena calls
    TermFactory = {

        REGEX_URI: /^([a-z][a-z0-9+.-]*):(?:\/\/((?:(?=((?:[a-z0-9-._~!</content>'()*+,;=:]|%[0-9A-F]{2})*))(\3)@)?(?=(\[[0-9A-F:.]{2,}\]|(?:[a-z0-9-._~!</content>'()*+,;=]|%[0-9A-F]{2})*))\5(?::(?=(\d*))\6)?)(\/(?=((?:[a-z0-9-._~!</content>'()*+,;=:@\/]|%[0-9A-F]{2})*))\8)?|(\/?(?!\/)(?=((?:[a-z0-9-._~!</content>'()*+,;=:@\/]|%[0-9A-F]{2})*))\10)?)(?:\?(?=((?:[a-z0-9-._~!</content>'()*+,;=:@\/?]|%[0-9A-F]{2})*))\11)?(?:#(?=((?:[a-z0-9-._~!</content>'()*+,;=:@\/?]|%[0-9A-F]{2})*))\12)?$/i,

        impl : null,   // This needs to be connected to an API such as $rdf

        // Globally registered prefixes for TTL short cuts
        namespaces : {},

        /**
         * Registers a new namespace prefix for global TTL short cuts (qnames).
         * @param prefix  the prefix to add
         * @param namespace  the namespace to add for the prefix
         */
        registerNamespace : function(prefix, namespace) {
            if(this.namespaces.prefix) {
                throw "Prefix " + prefix + " already registered"
            }
            this.namespaces[prefix] = namespace;
        },

        /**
         * Produces an RDF term from a TTL string representation.
         * Also uses the registered prefixes.
         * @param str  a string, e.g. "owl:Thing" or "true" or '"Hello"@en'.
         * @return an RDF term
         */
        term : function(str) {
            // TODO: this implementation currently only supports booleans and qnames - better overload to rdflib.js
            if ("true" === str || "false" === str) {
                return this.literal(str, (this.term("xsd:boolean")));
            }

            if (str.match(/^\d+$/)) {
                return this.literal(str, (this.term("xsd:integer")));
            }

            if (str.match(/^\d+\.\d+$/)) {
                return this.literal(str, (this.term("xsd:float")));
            }

            var col = str.indexOf(":");
            if (col > 0) {
                var ns = this.namespaces[str.substring(0, col)];
                if (ns != null) {
                    return this.namedNode(ns + str.substring(col + 1));
                } else {
                    if (str.match(REGEX_URI)) {
                        return this.namedNode(str)
                    }
                }
            }
            return this.literal(str);
        },

        /**
         * Produces a new blank node.
         * @param id  an optional ID for the node
         */
        blankNode : function(id) {
            return this.impl.blankNode(id);
        },

        /**
         * Produces a new literal.  For example .literal("42", T("xsd:integer")).
         * @param lex  the lexical form, e.g. "42"
         * @param langOrDatatype  either a language string or a URI node with the datatype
         */
        literal : function(lex, langOrDatatype) {
            return this.impl.literal(lex, langOrDatatype)
        },

        // This function is basically left for Task Force compatibility, but the preferred function is uri()
        namedNode : function(uri) {
            return this.impl.namedNode(uri)
        },

        /**
         * Produces a new URI node.
         * @param uri  the URI of the node
         */
        uri : function(uri) {
            return namedNode(uri);
        }
    }
}

// Install NodeFactory as an alias - unsure which name is best long term:
// The official name in RDF is "term", while "node" is more commonly understood.
// Oficially, a "node" must be in a graph though, while "terms" are independent.
var NodeFactory = TermFactory;


NodeFactory.registerNamespace("dc", "http://purl.org/dc/elements/1.1/")
NodeFactory.registerNamespace("dcterms", "http://purl.org/dc/terms/")
NodeFactory.registerNamespace("rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#")
NodeFactory.registerNamespace("rdfs", "http://www.w3.org/2000/01/rdf-schema#")
NodeFactory.registerNamespace("schema", "http://schema.org/")
NodeFactory.registerNamespace("sh", "http://www.w3.org/ns/shacl#")
NodeFactory.registerNamespace("skos", "http://www.w3.org/2004/02/skos/core#")
NodeFactory.registerNamespace("owl", "http://www.w3.org/2002/07/owl#")
NodeFactory.registerNamespace("xsd", "http://www.w3.org/2001/XMLSchema#")

// Candidates:
// NodeFactory.registerNamespace("prov", "http://www.w3.org/ns/prov#");

/**
 * A shortcut for NodeFactory.term(str) - turns a TTL string representation of an RDF
 * term into a proper RDF term.
 * This will also use the globally registered namespace prefixes.
 * @param str  the string representation, e.g. "owl:Thing"
 * @returns
 */
function T(str) {
    return NodeFactory.term(str)
}


/**
 * Creates a query object for a given graph and optional initial solution.
 * The resulting object can be further refined using the functions on
 * AbstractQuery such as <code>match()</code> and <code>filter()</code>.
 * Functions such as <code>nextSolution()</code> can be used to get the actual results.
 * @param graph  the graph to query
 * @param initialSolution  the initial solutions or null for none
 * @returns a query object
 */
function RDFQuery(graph, initialSolution) {
    return new StartQuery(graph, initialSolution ? initialSolution : []);
}


// class AbstractQuery

function AbstractQuery() {
}

// ----------------------------------------------------------------------------
// Query constructor functions, can be chained together
// ----------------------------------------------------------------------------

/**
 * Creates a new query that adds a binding for a given variable into
 * each solution produced by the input query.
 * @param varName  the name of the variable to bind, starting with "?"
 * @param bindFunction  a function that takes a solution object
 *                      and returns a node or null based on it.
 */
AbstractQuery.prototype.bind = function(varName, bindFunction) {
    return new BindQuery(this, varName, bindFunction);
}

/**
 * Creates a new query that filters the solutions produced by this.
 * @param filterFunction  a function that takes a solution object
 *                        and returns true iff that solution is valid
 */
AbstractQuery.prototype.filter = function(filterFunction) {
    return new FilterQuery(this, filterFunction);
}

/**
 * Creates a new query that only allows the first n solutions through.
 * @param limit  the maximum number of results to allow
 */
AbstractQuery.prototype.limit = function(limit) {
    return new LimitQuery(this, limit);
}

/**
 * Creates a new query doing a triple match.
 * In each subject, predicate, object position, the values can either be
 * an RDF term object or null (wildcard) or a string.
 * If it is a string it may either be a variable (starting with "?")
 * or the TTL representation of an RDF term using the T() function.
 * @param s  the match subject
 * @param p  the match predicate
 * @param o  the match object
 */
AbstractQuery.prototype.match = function(s, p, o) {
    return new MatchQuery(this, s, p, o);
}

/**
 * Creates a new query that sorts all input solutions by the bindings
 * for a given variable.
 * @param varName  the name of the variable to sort by, starting with "?"
 */
AbstractQuery.prototype.orderBy = function(varName) {
    return new OrderByQuery(this, varName);
}

/**
 * Creates a new query doing a match where the predicate may be a RDF Path object.
 * Note: This is currently not using lazy evaluation and will always walk all matches.
 * Path syntax:
 * - PredicatePaths: NamedNode
 * - SequencePaths: [path1, path2]
 * - AlternativePaths: { or : [ path1, path2 ] }
 * - InversePaths: { inverse : path }   LIMITATION: Only supports NamedNodes for path here
 * - ZeroOrMorePaths: { zeroOrMore : path }
 * - OneOrMorePaths: { oneOrMore : path }
 * - ZeroOrOnePaths: { zeroOrOne : path }
 * @param s  the match subject or a variable name (string) - must have a value
 *           at execution time!
 * @param path  the match path object (e.g. a NamedNode for a simple predicate hop)
 * @param o  the match object or a variable name (string)
 */
AbstractQuery.prototype.path = function(s, path, o) {
    if(path && path.value && path.isURI()) {
        return new MatchQuery(this, s, path, o);
    }
    else {
        return new PathQuery(this, s, path, o);
    }
}

// TODO: add other SPARQL-like query types
//       - .distinct()
//       - .union(otherQuery)


// ----------------------------------------------------------------------------
// Terminal functions - convenience functions to get values.
// All these functions close the solution iterators.
// ----------------------------------------------------------------------------

/**
 * Adds all nodes produced by a given solution variable into a set.
 * The set must have an add(node) function.
 * @param varName  the name of the variable, starting with "?"
 * @param set  the set to add to
 */
AbstractQuery.prototype.addAllNodes = function(varName, set) {
    var attrName = var2Attr(varName);
    for(var sol = this.nextSolution(); sol; sol = this.nextSolution()) {
        var node = sol[attrName];
        if(node) {
            set.add(node);
        }
    }
}

/**
 * Produces an array of triple objects where each triple object has properties
 * subject, predicate and object derived from the provided template values.
 * Each of these templates can be either a variable name (starting with '?'),
 * an RDF term string (such as "rdfs:label") or a JavaScript node object.
 * @param subject  the subject node
 * @param predicate  the predicate node
 * @param object  the object node
 */
AbstractQuery.prototype.construct = function(subject, predicate, object) {
    var results = [];
    for(var sol = this.nextSolution(); sol; sol = this.nextSolution()) {
        var s = null;
        if(typeof subject === 'string') {
            if(subject.indexOf('?') == 0) {
                s = sol[var2Attr(subject)];
            }
            else {
                s = T(subject);
            }
        }
        else {
            s = subject;
        }
        var p = null;
        if(typeof predicate === 'string') {
            if(predicate.indexOf('?') == 0) {
                p = sol[var2Attr(predicate)];
            }
            else {
                p = T(predicate);
            }
        }
        else {
            p = predicate;
        }

        var o = null;
        if(typeof object === 'string') {
            if(object.indexOf('?') == 0) {
                o = sol[var2Attr(object)];
            }
            else {
                o = T(object);
            }
        }
        else {
            o = object;
        }

        if(s && p && o) {
            results.push({ subject: s, predicate: p, object: o});
        }
    }
    return results;
}

/**
 * Executes a given function for each solution.
 * @param callback  a function that takes a solution as argument
 */
AbstractQuery.prototype.forEach = function(callback) {
    for(var n = this.nextSolution(); n; n = this.nextSolution()) {
        callback(n);
    }
}

/**
 * Executes a given function for each node in a solution set.
 * @param varName  the name of a variable, starting with "?"
 * @param callback  a function that takes a node as argument
 */
AbstractQuery.prototype.forEachNode = function(varName, callback) {
    var attrName = var2Attr(varName);
    for(var sol = this.nextSolution(); sol; sol = this.nextSolution()) {
        var node = sol[attrName];
        if(node) {
            callback(node);
        }
    }
}

/**
 * Turns all result solutions into an array.
 * @return an array consisting of solution objects
 */
AbstractQuery.prototype.getArray = function() {
    var results = [];
    for(var n = this.nextSolution(); n != null; n = this.nextSolution()) {
        results.push(n);
    }
    return results;
}

/**
 * Gets the number of (remaining) solutions.
 * @return the count
 */
AbstractQuery.prototype.getCount = function() {
    return this.getArray().length; // Quick and dirty implementation
}

/**
 * Gets the next solution and, if that exists, returns the binding for a
 * given variable from that solution.
 * @param varName  the name of the binding to get, starting with "?"
 * @return the value of the variable or null or undefined if it doesn't exist
 */
AbstractQuery.prototype.getNode = function(varName) {
    var s = this.nextSolution();
    if(s) {
        this.close();
        return s[var2Attr(varName)];
    }
    else {
        return null;
    }
}

/**
 * Turns all results into an array of bindings for a given variable.
 * @return an array consisting of RDF node objects
 */
AbstractQuery.prototype.getNodeArray = function(varName) {
    var results = [];
    var attr = var2Attr(varName);
    for(var n = this.nextSolution(); n != null; n = this.nextSolution()) {
        results.push(n[attr]);
    }
    return results;
}

/**
 * Turns all result bindings for a given variable into a set.
 * The set has functions .contains and .toArray.
 * @param varName  the name of the variable, starting with "?"
 * @return a set consisting of RDF node objects
 */
AbstractQuery.prototype.getNodeSet = function(varName) {
    var results = new NodeSet();
    var attr = var2Attr(varName);
    for(var n = this.nextSolution(); n != null; n = this.nextSolution()) {
        results.add(n[attr]);
    }
    return results;
}

/**
 * Queries the underlying graph for the object of a subject/predicate combination,
 * where either subject or predicate can be a variable which is substituted with
 * a value from the next input solution.
 * Note that even if there are multiple solutions it will just return the "first"
 * one and since the order of triples in RDF is undefined this may lead to random results.
 * Unbound values produce errors.
 * @param subject  an RDF term or a variable (starting with "?") or a TTL representation
 * @param predicate  an RDF term or a variable (starting with "?") or a TTL representation
 * @return the object of the "first" triple matching the subject/predicate combination
 */
AbstractQuery.prototype.getObject = function(subject, predicate) {
    var sol = this.nextSolution();
    if(sol) {
        this.close();
        var s;
        if(typeof subject === 'string') {
            if(subject.indexOf('?') == 0) {
                s = sol[var2Attr(subject)];
            }
            else {
                s = T(subject);
            }
        }
        else {
            s = subject;
        }
        if(!s) {
            throw "getObject() called with null subject";
        }
        var p;
        if(typeof predicate === 'string') {
            if(predicate.indexOf('?') == 0) {
                p = sol[var2Attr(predicate)];
            }
            else {
                p = T(predicate);
            }
        }
        else {
            p = predicate;
        }
        if(!p) {
            throw "getObject() called with null predicate";
        }

        var it = this.source.find(s, p, null);
        var triple = it.next();
        if(triple) {
            it.close();
            return triple.object;
        }
    }
    return null;
}

/**
 * Tests if there is any solution and closes the query.
 * @return true if there is another solution
 */
AbstractQuery.prototype.hasSolution = function() {
    if(this.nextSolution()) {
        this.close();
        return true;
    }
    else {
        return false;
    }
}


// ----------------------------------------------------------------------------
// Expression functions - may be used in filter and bind queries
// ----------------------------------------------------------------------------

/**
 * Creates a function that takes a solution and compares a given node with
 * the binding of a given variable from that solution.
 * @param varName  the name of the variable (starting with "?")
 * @param node  the node to compare with
 * @returns true if the solution's variable equals the node
 */
function exprEquals(varName, node) {
    return function(sol) {
        return node.equals(sol[var2Attr(varName)]);
    }
}

/**
 * Creates a function that takes a solution and compares a given node with
 * the binding of a given variable from that solution.
 * @param varName  the name of the variable (starting with "?")
 * @param node  the node to compare with
 * @returns true if the solution's variable does not equal the node
 */
function exprNotEquals(varName, node) {
    return function(sol) {
        return !node.equals(sol[var2Attr(varName)]);
    }
}


// ----------------------------------------------------------------------------
// END OF PUBLIC API ----------------------------------------------------------
// ----------------------------------------------------------------------------


// class BindQuery
// Takes all input solutions but adds a value for a given variable so that
// the value is computed by a given function based on the current solution.
// It is illegal to use a variable that already has a value from the input.

function BindQuery(input, varName, bindFunction) {
    this.attr = var2Attr(varName);
    this.source = input.source;
    this.input = input;
    this.bindFunction = bindFunction;
}

BindQuery.prototype = Object.create(AbstractQuery.prototype);

BindQuery.prototype.close = function() {
    this.input.close();
}

// Pulls the next result from the input Query and passes it into
// the given bind function to add a new node
BindQuery.prototype.nextSolution = function() {
    var result = this.input.nextSolution();
    if(result == null) {
        return null;
    }
    else {
        var newNode = this.bindFunction(result);
        if(newNode) {
            result[this.attr] = newNode;
        }
        return result;
    }
}


// class FilterQuery
// Filters the incoming solutions, only letting through those where
// filterFunction(solution) returns true

function FilterQuery(input, filterFunction) {
    this.source = input.source;
    this.input = input;
    this.filterFunction = filterFunction;
}

FilterQuery.prototype = Object.create(AbstractQuery.prototype);

FilterQuery.prototype.close = function() {
    this.input.close();
}

// Pulls the next result from the input Query and passes it into
// the given filter function
FilterQuery.prototype.nextSolution = function() {
    for(;;) {
        var result = this.input.nextSolution();
        if(result == null) {
            return null;
        }
        else if(this.filterFunction(result) === true) {
            return result;
        }
    }
}


// class LimitQuery
// Only allows the first n values of the input query through

function LimitQuery(input, limit) {
    this.source = input.source;
    this.input = input;
    this.limit = limit;
}

LimitQuery.prototype = Object.create(AbstractQuery.prototype);

LimitQuery.prototype.close = function() {
    this.input.close();
}

// Pulls the next result from the input Query unless the number
// of previous calls has exceeded the given limit
LimitQuery.prototype.nextSolution = function() {
    if(this.limit > 0) {
        this.limit--;
        return this.input.nextSolution();
    }
    else {
        this.input.close();
        return null;
    }
}


// class MatchQuery
// Joins the solutions from the input Query with triple matches against
// the current input graph.

function MatchQuery(input, s, p, o) {
    this.source = input.source;
    this.input = input;
    if(typeof s === 'string') {
        if(s.indexOf('?') == 0) {
            this.sv = var2Attr(s);
        }
        else {
            this.s = T(s);
        }
    }
    else {
        this.s = s;
    }
    if(typeof p === 'string') {
        if(p.indexOf('?') == 0) {
            this.pv = var2Attr(p);
        }
        else {
            this.p = T(p);
        }
    }
    else {
        this.p = p;
    }
    if(typeof o === 'string') {
        if(o.indexOf('?') == 0) {
            this.ov = var2Attr(o);
        }
        else {
            this.o = T(o);
        }
    }
    else {
        this.o = o;
    }
}

MatchQuery.prototype = Object.create(AbstractQuery.prototype);

MatchQuery.prototype.close = function() {
    this.input.close();
    if(this.ownIterator) {
        this.ownIterator.close();
    }
}

// This pulls the first solution from the input Query and uses it to
// create an "ownIterator" which applies the input solution to those
// specified by s, p, o.
// Once this "ownIterator" has been exhausted, it moves to the next
// solution from the input Query, and so on.
// At each step, it produces the union of the input solutions plus the
// own solutions.
MatchQuery.prototype.nextSolution = function() {

    var oit = this.ownIterator;
    if(oit) {
        var n = oit.next();
        if(n != null) {
            var result = createSolution(this.inputSolution);
            if(this.sv) {
                result[this.sv] = n.subject;
            }
            if(this.pv) {
                result[this.pv] = n.predicate;
            }
            if(this.ov) {
                result[this.ov] = n.object;
            }
            return result;
        }
        else {
            delete this.ownIterator; // Mark as exhausted
        }
    }

    // Pull from input
    this.inputSolution = this.input.nextSolution();
    if(this.inputSolution) {
        var sm = this.sv ? this.inputSolution[this.sv] : this.s;
        var pm = this.pv ? this.inputSolution[this.pv] : this.p;
        var om = this.ov ? this.inputSolution[this.ov] : this.o;
        this.ownIterator = this.source.find(sm, pm, om);
        return this.nextSolution();
    }
    else {
        return null;
    }
}


// class OrderByQuery
// Sorts all solutions from the input stream by a given variable

function OrderByQuery(input, varName) {
    this.input = input;
    this.source = input.source;
    this.attrName = var2Attr(varName);
}

OrderByQuery.prototype = Object.create(AbstractQuery.prototype);

OrderByQuery.prototype.close = function() {
    this.input.close();
}

OrderByQuery.prototype.nextSolution = function() {
    if(!this.solutions) {
        this.solutions = this.input.getArray();
        var attrName = this.attrName;
        this.solutions.sort(function(s1, s2) {
            return compareTerms(s1[attrName], s2[attrName]);
        });
        this.index = 0;
    }
    if(this.index < this.solutions.length) {
        return this.solutions[this.index++];
    }
    else {
        return null;
    }
}


// class PathQuery
// Expects subject and path to be bound and produces all bindings
// for the object variable or matches that by evaluating the given path

function PathQuery(input, subject, path, object) {
    this.input = input;
    this.source = input.source;
    if(typeof subject === 'string' && subject.indexOf("?") == 0) {
        this.subjectAttr = var2Attr(subject);
    }
    else {
        this.subject = subject;
    }
    if(path == null) {
        throw "Path cannot be unbound";
    }
    if(typeof path === 'string') {
        this.path_ = T(path);
    }
    else {
        this.path_ = path;
    }
    if(typeof object === 'string' && object.indexOf("?") == 0) {
        this.objectAttr = var2Attr(object);
    }
    else {
        this.object = object;
    }
}

PathQuery.prototype = Object.create(AbstractQuery.prototype);

PathQuery.prototype.close = function() {
    this.input.close();
}

PathQuery.prototype.nextSolution = function() {

    var r = this.pathResults;
    if(r) {
        var n = r[this.pathIndex++];
        var result = createSolution(this.inputSolution);
        if(this.objectAttr) {
            result[this.objectAttr] = n;
        }
        if(this.pathIndex == r.length) {
            delete this.pathResults; // Mark as exhausted
        }
        return result;
    }

    // Pull from input
    this.inputSolution = this.input.nextSolution();
    if(this.inputSolution) {
        var sm = this.subjectAttr ? this.inputSolution[this.subjectAttr] : this.subject;
        if(sm == null) {
            throw "Path cannot have unbound subject";
        }
        var om = this.objectAttr ? this.inputSolution[this.objectAttr] : this.object;
        var pathResultsSet = new NodeSet();
        addPathValues(this.source, sm, this.path_, pathResultsSet);
        this.pathResults = pathResultsSet.toArray();
        if(this.pathResults.length == 0) {
            delete this.pathResults;
        }
        else if(om) {
            delete this.pathResults;
            if(pathResultsSet.contains(om)) {
                return this.inputSolution;
            }
        }
        else {
            this.pathIndex = 0;
        }
        return this.nextSolution();
    }
    else {
        return null;
    }
}


// class StartQuery
// This simply produces a single result: the initial solution

function StartQuery(source, initialSolution) {
    this.source = source;
    if (initialSolution && initialSolution.length > 0) {
        this.solution = initialSolution;
    } else {
        this.solution = [{}];
    }
}

StartQuery.prototype = Object.create(AbstractQuery.prototype);

StartQuery.prototype.close = function() {
}

StartQuery.prototype.nextSolution = function() {
    if (this.solution) {
        if (this.solution.length > 0) {
            return this.solution.shift();
        } else {
            delete this.solution;
        }
    }
}


// Helper functions

function createSolution(base) {
    var result = {};
    for(var attr in base) {
        if(base.hasOwnProperty(attr)) {
            result[attr] = base[attr];
        }
    }
    return result;
}


function compareTerms(t1, t2) {
    if(!t1) {
        return !t2 ? 0 : 1;
    }
    else if(!t2) {
        return -1;
    }
    var bt = t1.termType.localeCompare(t2.termType);
    if(bt != 0) {
        return bt;
    }
    else {
        // TODO: Does not handle numeric or date comparison
        var bv = t1.value.localeCompare(t2.value);
        if(bv != 0) {
            return bv;
        }
        else {
            if(t1.isLiteral()) {
                var bd = t1.datatype.uri.localeCompare(t2.datatype.uri);
                if(bd != 0) {
                    return bd;
                }
                else if(T("rdf:langString").equals(t1.datatype)) {
                    return t1.language.localeCompare(t2.language);
                }
                else {
                    return 0;
                }
            }
            else {
                return 0;
            }
        }
    }
}

function getLocalName(uri) {
    // TODO: This is not the 100% correct local name algorithm
    var index = uri.lastIndexOf("#");
    if(index < 0) {
        index = uri.lastIndexOf("/");
    }
    if(index < 0) {
        throw "Cannot get local name of " + uri;
    }
    return uri.substring(index + 1);
}


// class NodeSet
// (a super-primitive implementation for now!)

function NodeSet() {
    this.values = [];
}

NodeSet.prototype.add = function(node) {
    if(!this.contains(node)) {
        this.values.push(node);
    }
}

NodeSet.prototype.addAll = function(nodes) {
    for(var i = 0; i < nodes.length; i++) {
        this.add(nodes[i]);
    }
}

NodeSet.prototype.contains = function(node) {
    for(var i = 0; i < this.values.length; i++) {
        if(this.values[i].equals(node)) {
            return true;
        }
    }
    return false;
}

NodeSet.prototype.forEach = function(callback) {
    for(var i = 0; i < this.values.length; i++) {
        callback(this.values[i]);
    }
}

NodeSet.prototype.size = function() {
    return this.values.length;
}

NodeSet.prototype.toArray = function() {
    return this.values;
}

NodeSet.prototype.toString = function() {
    var str = "NodeSet(" + this.size() + "): [";
    var arr = this.toArray();
    for(var i = 0; i < arr.length; i++) {
        if(i > 0) {
            str += ", ";
        }
        str += arr[i];
    }
    return str + "]";
}


function var2Attr(varName) {
    if(!varName.indexOf("?") == 0) {
        throw "Variable name must start with ?";
    }
    if(varName.length == 1) {
        throw "Variable name too short";
    }
    return varName.substring(1);
}



// Simple Path syntax implementation:
// Adds all matches for a given subject and path combination into a given NodeSet.
// This should really be doing lazy evaluation and only up to the point
// where the match object is found.
function addPathValues(graph, subject, path, set) {
    if(path.uri) {
        set.addAll(RDFQuery(graph).match(subject, path, "?object").getNodeArray("?object"));
    }
    else if(Array.isArray(path)) {
        var s = new NodeSet();
        s.add(subject);
        for(var i = 0; i < path.length; i++) {
            var a = s.toArray();
            s = new NodeSet();
            for(var j = 0; j < a.length; j++) {
                addPathValues(graph, a[j], path[i], s);
            }
        }
        set.addAll(s.toArray());
    }
    else if(path.or) {
        for(var i = 0; i < path.or.length; i++) {
            addPathValues(graph, subject, path.or[i], set);
        }
    }
    else if(path.inverse) {
        if(path.inverse.isURI()) {
            set.addAll(RDFQuery(graph).match("?subject", path.inverse, subject).getNodeArray("?subject"));
        }
        else {
            throw "Unsupported: Inverse paths only work for named nodes";
        }
    }
    else if(path.zeroOrOne) {
        addPathValues(graph, subject, path.zeroOrOne, set);
        set.add(subject);
    }
    else if(path.zeroOrMore) {
        walkPath(graph, subject, path.zeroOrMore, set, new NodeSet());
        set.add(subject);
    }
    else if(path.oneOrMore) {
        walkPath(graph, subject, path.oneOrMore, set, new NodeSet());
    }
    else {
        throw "Unsupported path object: " + path;
    }
}

function walkPath(graph, subject, path, set, visited) {
    visited.add(subject);
    var s = new NodeSet();
    addPathValues(graph, subject, path, s);
    var a = s.toArray();
    set.addAll(a);
    for(var i = 0; i < a.length; i++) {
        if(!visited.contains(a[i])) {
            walkPath(graph, a[i], path, set, visited);
        }
    }
}

/// ADDED...
RDFQuery.T = T;
RDFQuery.getLocalName = getLocalName;
RDFQuery.compareTerms = compareTerms;
RDFQuery.exprEquals = exprEquals;
RDFQuery.exprNotEquals = exprNotEquals;
RDFQuery.NodeSet = NodeSet;

module.exports = RDFQuery;
///
},{"./rdfquery/term-factory":86}],86:[function(_dereq_,module,exports){
// In some environments such as Nashorn this may already have a value
// In TopBraid this is redirecting to native Jena calls
var TermFactory = {

    REGEX_URI: /^([a-z][a-z0-9+.-]*):(?:\/\/((?:(?=((?:[a-z0-9-._~!$&'()*+,;=:]|%[0-9A-F]{2})*))(\3)@)?(?=(\[[0-9A-F:.]{2,}\]|(?:[a-z0-9-._~!$&'()*+,;=]|%[0-9A-F]{2})*))\5(?::(?=(\d*))\6)?)(\/(?=((?:[a-z0-9-._~!$&'()*+,;=:@\/]|%[0-9A-F]{2})*))\8)?|(\/?(?!\/)(?=((?:[a-z0-9-._~!$&'()*+,;=:@\/]|%[0-9A-F]{2})*))\10)?)(?:\?(?=((?:[a-z0-9-._~!$&'()*+,;=:@\/?]|%[0-9A-F]{2})*))\11)?(?:#(?=((?:[a-z0-9-._~!$&'()*+,;=:@\/?]|%[0-9A-F]{2})*))\12)?$/i,

    impl: _dereq_("rdflib"),   // This needs to be connected to an API such as $rdf

    // Globally registered prefixes for TTL short cuts
    namespaces: {},

    /**
     * Registers a new namespace prefix for global TTL short cuts (qnames).
     * @param prefix  the prefix to add
     * @param namespace  the namespace to add for the prefix
     */
    registerNamespace: function (prefix, namespace) {
        if (this.namespaces.prefix) {
            throw "Prefix " + prefix + " already registered"
        }
        this.namespaces[prefix] = namespace;
    },

    /**
     * Produces an RDF* term from a TTL string representation.
     * Also uses the registered prefixes.
     * @param str  a string, e.g. "owl:Thing" or "true" or '"Hello"@en'.
     * @return an RDF term
     */
    term: function (str) {
        // TODO: this implementation currently only supports booleans and qnames - better overload to rdflib.js
        if ("true" === str || "false" === str) {
            return this.literal(str, (this.term("xsd:boolean")));
        }

        if (str.match(/^\d+$/)) {
            return this.literal(str, (this.term("xsd:integer")));
        }

        if (str.match(/^\d+\.\d+$/)) {
            return this.literal(str, (this.term("xsd:float")));
        }

        var col = str.indexOf(":");
        if (col > 0) {
            var ns = this.namespaces[str.substring(0, col)];
            if (ns != null) {
                return this.namedNode(ns + str.substring(col + 1));
            } else {
                if (str.match(REGEX_URI)) {
                    return this.namedNode(str)
                }
            }
        }
        return this.literal(str);
    },

    /**
     * Produces a new blank node.
     * @param id  an optional ID for the node
     */
    blankNode: function (id) {
        return this.impl.blankNode(id);
    },

    /**
     * Produces a new literal.  For example .literal("42", T("xsd:integer")).
     * @param lex  the lexical form, e.g. "42"
     * @param langOrDatatype  either a language string or a URI node with the datatype
     */
    literal: function (lex, langOrDatatype) {
        return this.impl.literal(lex, langOrDatatype)
    },

    // This function is basically left for Task Force compatibility, but the preferred function is uri()
    namedNode: function (uri) {
        return this.impl.namedNode(uri)
    },

    /**
     * Produces a new URI node.
     * @param uri  the URI of the node
     */
    uri: function (uri) {
        return TermFactory.namedNode(uri);
    }
};

module.exports = TermFactory;
},{"rdflib":43}],87:[function(_dereq_,module,exports){
// A simple SHACL validator in JavaScript based on SHACL-JS.

// Design:
//
// First, derive a ShapesGraph object from the definitions in $shapes.
// This manages a map of parameters to ConstraintComponents.
// Each ConstraintComponent manages its list of parameters and a link to the validators.
//
// The ShapesGraph also manages a list of Shapes, each which has a list of Constraints.
// A Constraint is a specific combination of parameters for a constraint component,
// and has functions to access the target nodes.
//
// Each ShapesGraph can be reused between validation calls, and thus often only needs
// to be created once per application.
//
// The validation process is started by creating a ValidationEngine that relies on
// a given ShapesGraph and operates on the current $data().
// It basically walks through all Shapes that have target nodes and runs the validators
// for each Constraint of the shape, producing results along the way.

var TermFactory = _dereq_("./rdfquery/term-factory");
var RDFQuery = _dereq_("./rdfquery");
var NodeSet = RDFQuery.NodeSet;
var T = RDFQuery.T;
var ValidationFunction = _dereq_("./validation-function");

TermFactory.registerNamespace("dash", "http://datashapes.org/dash#");

function RDFQueryUtil($source) {
    this.source = $source;
}

RDFQueryUtil.prototype.getInstancesOf = function ($class) {
    var set = new NodeSet();
    var classes = this.getSubClassesOf($class);
    classes.add($class);
    var car = classes.toArray();
    for (var i = 0; i < car.length; i++) {
        set.addAll(RDFQuery(this.source).match("?instance", "rdf:type", car[i]).getNodeArray("?instance"));
    }
    return set;
};

RDFQueryUtil.prototype.getObject = function ($subject, $predicate) {
    if (!$subject) {
        throw "Missing subject";
    }
    if (!$predicate) {
        throw "Missing predicate";
    }
    return RDFQuery(this.source).match($subject, $predicate, "?object").getNode("?object");
};

RDFQueryUtil.prototype.getSubClassesOf = function ($class) {
    var set = new NodeSet();
    this.walkSubjects(set, $class, T("rdfs:subClassOf"));
    return set;
};

RDFQueryUtil.prototype.isInstanceOf = function ($instance, $class) {
    var classes = this.getSubClassesOf($class);
    var types = $data.query().match($instance, "rdf:type", "?type");
    for (var n = types.nextSolution(); n; n = types.nextSolution()) {
        if (n.type.equals($class) || classes.contains(n.type)) {
            types.close();
            return true;
        }
    }
    return false;
};

RDFQueryUtil.prototype.rdfListToArray = function ($rdfList) {
    if ($rdfList.elements) {
        return $rdfList.elements;
    } else {
        var array = [];
        while (!T("rdf:nil").equals($rdfList)) {
            array.push(this.getObject($rdfList, T("rdf:first")));
            $rdfList = this.getObject($rdfList, T("rdf:rest"));
        }
        return array;
    }
};

RDFQueryUtil.prototype.walkObjects = function ($results, $subject, $predicate) {
    var it = this.source.find($subject, $predicate, null);
    for (var n = it.next(); n; n = it.next()) {
        if (!$results.contains(n.object)) {
            $results.add(n.object);
            this.walkObjects($results, n.object, $predicate);
        }
    }
};

RDFQueryUtil.prototype.walkSubjects = function ($results, $object, $predicate) {
    var it = this.source.find(null, $predicate, $object);
    for (var n = it.next(); n; n = it.next()) {
        if (!$results.contains(n.subject)) {
            $results.add(n.subject);
            this.walkSubjects($results, n.subject, $predicate);
        }
    }
};

var toRDFQueryPath = function ($shapes, shPath) {
    if (shPath.termType === "Collection") {
        var paths = new RDFQueryUtil($shapes).rdfListToArray(shPath);
        var result = [];
        for (var i = 0; i < paths.length; i++) {
            result.push(toRDFQueryPath($shapes, paths[i]));
        }
        return result;
    }
    if (shPath.isURI()) {
        return shPath;
    }
    else if (shPath.isBlankNode()) {
        var util = new RDFQueryUtil($shapes);
        if (util.getObject(shPath, "rdf:first")) {
            var paths = util.rdfListToArray(shPath);
            var result = [];
            for (var i = 0; i < paths.length; i++) {
                result.push(toRDFQueryPath($shapes, paths[i]));
            }
            return result;
        }
        var alternativePath = new RDFQuery($shapes).getObject(shPath, "sh:alternativePath");
        if (alternativePath) {
            var paths = util.rdfListToArray(alternativePath);
            var result = [];
            for (var i = 0; i < paths.length; i++) {
                result.push(toRDFQueryPath($shapes, paths[i]));
            }
            return {or: result};
        }
        var zeroOrMorePath = util.getObject(shPath, "sh:zeroOrMorePath");
        if (zeroOrMorePath) {
            return {zeroOrMore: toRDFQueryPath($shapes, zeroOrMorePath)};
        }
        var oneOrMorePath = util.getObject(shPath, "sh:oneOrMorePath");
        if (oneOrMorePath) {
            return {oneOrMore: toRDFQueryPath($shapes, oneOrMorePath)};
        }
        var zeroOrOnePath = util.getObject(shPath, "sh:zeroOrOnePath");
        if (zeroOrOnePath) {
            return {zeroOrOne: toRDFQueryPath($shapes, zeroOrOnePath)};
        }
        var inversePath = util.getObject(shPath, "sh:inversePath");
        if (inversePath) {
            return {inverse: toRDFQueryPath($shapes, inversePath)};
        }
    }
    throw "Unsupported SHACL path " + shPath;
    // TODO: implement conforming to AbstractQuery.path syntax
    return shPath;
};


// class Constraint

var Constraint = function(shape, component, paramValue, rdfShapesGraph) {
    this.shape = shape;
    this.component = component;
    this.paramValue = paramValue;
    var parameterValues = {};
    var params = component.getParameters();
    for (var i = 0; i < params.length; i++) {
        var param = params[i];
        var value = paramValue ? paramValue : rdfShapesGraph.query().match(shape.shapeNode, param, "?value").getNode("?value");
        if (value) {
            var localName = RDFQuery.getLocalName(param.uri);
            parameterValues[localName] = value;
        }
    }
    this.parameterValues = parameterValues;
};

Constraint.prototype.getParameterValue = function (paramName) {
    return this.parameterValues[paramName];
};

// class ConstraintComponent

var ConstraintComponent = function(node, context) {
    this.context = context;
    this.node = node;
    var parameters = [];
    var parameterNodes = [];
    var requiredParameters = [];
    var optionals = {};
    var that = this;
    this.context.$shapes.query().
        match(node, "sh:parameter", "?parameter").
        match("?parameter", "sh:path", "?path").forEach(function (sol) {
            parameters.push(sol.path);
            parameterNodes.push(sol.parameter);
            if (that.context.$shapes.query().match(sol.parameter, "sh:optional", "true").hasSolution()) {
                optionals[sol.path.uri] = true;
            }
            else {
                requiredParameters.push(sol.path);
            }
        });
    this.optionals = optionals;
    this.parameters = parameters;
    this.parameterNodes = parameterNodes;
    this.requiredParameters = requiredParameters;
    this.nodeValidationFunction = this.findValidationFunction(T("sh:nodeValidator"));
    if (!this.nodeValidationFunction) {
        this.nodeValidationFunction = this.findValidationFunction(T("sh:validator"));
        this.nodeValidationFunctionGeneric = true;
    }
    this.propertyValidationFunction = this.findValidationFunction(T("sh:propertyValidator"));
    if (!this.propertyValidationFunction) {
        this.propertyValidationFunction = this.findValidationFunction(T("sh:validator"));
        this.propertyValidationFunctionGeneric = true;
    }
};

ConstraintComponent.prototype.findValidationFunction = function (predicate) {
    var functionName = this.context.$shapes.query().
        match(this.node, predicate, "?validator").
        match("?validator", "rdf:type", "sh:JSValidator").
        match("?validator", "sh:jsFunctionName", "?functionName").
        getNode("?functionName");
    var libraryNode = this.context.$shapes.query().
      match(this.node, predicate, "?validator").
      match("?validator", "rdf:type", "sh:JSValidator").
      match("?validator", "sh:jsLibrary", "?library").
      getNode("?library");

    var libraries = [];
    while (libraryNode != null) {
        var libraryUrl = this.context.$shapes.query().match(libraryNode, "sh:jsLibraryURL", "?libraryUrl").getNode("?libraryUrl");
        if (libraryUrl == null) {
            break;
        } else {
            libraries.unshift(libraryUrl.toString());
        }
        libraryNode = this.context.$shapes.query().match(libraryNode, "sh:jsLibrary", "?library").getNode("?library");
    }

    if (functionName) {
        var script = "var makeFindInScript = function($data, $shapes, SHACL, TermFactory) {\n"
        + " this.$data = $data; this.$shapes = $shapes; this.SHACL = SHACL; this.TermFactory = TermFactory;\n";
        for (var i=0; i<libraries.length; i++)
            script = script + this.context.functionsRegistry[libraries[i]];
        script = script + "\n";
        script = script + "  return function(name) { return eval(name) }\n}";
        eval(script);
        var findInScript = makeFindInScript(this.context.$data, this.context.$shapes, this.context, TermFactory);
        return new ValidationFunction(functionName.lex, this.parameters, findInScript);
    }
    else {
        return null;
    }
};

ConstraintComponent.prototype.getParameters = function () {
    return this.parameters;
};

ConstraintComponent.prototype.isComplete = function (shapeNode) {
    for (var i = 0; i < this.parameters.length; i++) {
        var parameter = this.parameters[i];
        if (!this.isOptional(parameter.uri)) {
            if (!this.context.$shapes.query().match(shapeNode, parameter, null).hasSolution()) {
                return false;
            }
        }
    }
    return true;
};

ConstraintComponent.prototype.isOptional = function (parameterURI) {
    return this.optionals[parameterURI];
};


// class Shape

var Shape = function(context, shapeNode) {

    this.context = context;
    this.severity = context.$shapes.query().match(shapeNode, "sh:severity", "?severity").getNode("?severity");
    if (!this.severity) {
        this.severity = T("sh:Violation");
    }

    this.deactivated = context.$shapes.query().match(shapeNode, "sh:deactivated", "true").hasSolution();
    this.path = context.$shapes.query().match(shapeNode, "sh:path", "?path").getNode("?path");
    this.shapeNode = shapeNode;
    this.constraints = [];

    var handled = new NodeSet();
    var self = this;
    var that = this;
    context.$shapes.query().match(shapeNode, "?predicate", "?object").forEach(function (sol) {
        var component = that.context.shapesGraph.getComponentWithParameter(sol.predicate);
        if (component && !handled.contains(component.node)) {
            var params = component.getParameters();
            if (params.length === 1) {
                self.constraints.push(new Constraint(self, component, sol.object, context.$shapes));
            }
            else if (component.isComplete(shapeNode)) {
                self.constraints.push(new Constraint(self, component, undefined, context.$shapes));
                handled.add(component.node);
            }
        }
    });
};

Shape.prototype.getConstraints = function () {
    return this.constraints;
};

Shape.prototype.getTargetNodes = function (rdfDataGraph) {
    var results = new NodeSet();

    if (new RDFQueryUtil(this.context.$shapes).isInstanceOf(this.shapeNode, T("rdfs:Class"))) {
        results.addAll(new RDFQueryUtil(rdfDataGraph).getInstancesOf(this.shapeNode).toArray());
    }

    this.context.$shapes.query().
        match(this.shapeNode, "sh:targetClass", "?targetClass").forEachNode("?targetClass", function (targetClass) {
            results.addAll(new RDFQueryUtil(rdfDataGraph).getInstancesOf(targetClass).toArray());
        });

    results.addAll(this.context.$shapes.query().
        match(this.shapeNode, "sh:targetNode", "?targetNode").getNodeArray("?targetNode"));

    this.context.$shapes.query().
        match(this.shapeNode, "sh:targetSubjectsOf", "?subjectsOf").
        forEachNode("?subjectsOf", function (predicate) {
            results.addAll(rdfDataGraph.query().match("?subject", predicate, null).getNodeArray("?subject"));
        });

    this.context.$shapes.query().
        match(this.shapeNode, "sh:targetObjectsOf", "?objectsOf").
        forEachNode("?objectsOf", function (predicate) {
            results.addAll(rdfDataGraph.query().match(null, predicate, "?object").getNodeArray("?object"));
        });

    return results.toArray();
};


Shape.prototype.getValueNodes = function (focusNode, rdfDataGraph) {
    if (this.path) {
        return rdfDataGraph.query().path(focusNode, toRDFQueryPath(this.context.$shapes, this.path), "?object").getNodeArray("?object");
    }
    else {
        return [focusNode];
    }
};

Shape.prototype.isPropertyShape = function () {
    return this.path != null;
};


// class ShapesGraph

var ShapesGraph = function (context) {

    this.context = context;

    // Collect all defined constraint components
    var components = [];
    new RDFQueryUtil(this.context.$shapes).getInstancesOf(T("sh:ConstraintComponent")).forEach(function (node) {
        if (!T("dash:ParameterConstraintComponent").equals(node)) {
            components.push(new ConstraintComponent(node, context));
        }
    });
    this.components = components;

    // Build map from parameters to constraint components
    this.parametersMap = {};
    for (var i = 0; i < this.components.length; i++) {
        var component = this.components[i];
        var parameters = component.getParameters();
        for (var j = 0; j < parameters.length; j++) {
            this.parametersMap[parameters[j].value] = component;
        }
    }

    // Collection of shapes is populated on demand - here we remember the instances
    this.shapes = {}; // Keys are the URIs/bnode ids of the shape nodes
};


ShapesGraph.prototype.getComponentWithParameter = function (parameter) {
    return this.parametersMap[parameter.value];
};

ShapesGraph.prototype.getShape = function (shapeNode) {
    var shape = this.shapes[shapeNode.value];
    if (!shape) {
        shape = new Shape(this.context, shapeNode);
        this.shapes[shapeNode.value] = shape;
    }
    return shape;
};

ShapesGraph.prototype.getShapeNodesWithConstraints = function () {
    if (!this.shapeNodesWithConstraints) {
        var set = new NodeSet();
        for (var i = 0; i < this.components.length; i++) {
            var params = this.components[i].requiredParameters;
            for (var j = 0; j < params.length; j++) {
                this.context.$shapes.query().match("?shape", params[j], null).addAllNodes("?shape", set);
            }
        }
        this.shapeNodesWithConstraints = set.toArray();
    }
    return this.shapeNodesWithConstraints;
};

ShapesGraph.prototype.getShapesWithTarget = function () {

    if (!this.targetShapes) {
        this.targetShapes = [];
        var cs = this.getShapeNodesWithConstraints();
        for (var i = 0; i < cs.length; i++) {
            var shapeNode = cs[i];
            if (new RDFQueryUtil(this.context.$shapes).isInstanceOf(shapeNode, T("rdfs:Class")) ||
                this.context.$shapes.query().match(shapeNode, "sh:targetClass", null).hasSolution() ||
                this.context.$shapes.query().match(shapeNode, "sh:targetNode", null).hasSolution() ||
                this.context.$shapes.query().match(shapeNode, "sh:targetSubjectsOf", null).hasSolution() ||
                this.context.$shapes.query().match(shapeNode, "sh:targetObjectsOf", null).hasSolution() ||
                this.context.$shapes.query().match(shapeNode, "sh:target", null).hasSolution()) {
                this.targetShapes.push(this.getShape(shapeNode));
            }
        }
    }

    return this.targetShapes;
};

var fetchLibraries = function(libraries, context, acc, k) {
    if (libraries.length === 0) {
        k(null, acc);
    } else {
        var nextLibrary = libraries.shift();
        if (context.functionsRegistry[nextLibrary] != null) {
            fetchLibraries(libraries, context, acc, k);
        } else {
            var response = "";
            try {
                _dereq_('http').get(nextLibrary, function (res) {
                    res.on('data', function (b) {
                        response = response + b.toString();
                    });

                    res.on('error', function (e) {
                        k(e, null);
                    });

                    res.on('end', function () {
                        acc[nextLibrary] = response;
                        fetchLibraries(libraries, context, acc, k);
                    });
                });
            } catch (e) {
                k(e, null);
            }
        }
    }
};

ShapesGraph.prototype.loadJSLibraries = function(k) {
    var that = this;
    var libraries= this.context.$shapes.query().
      match("?library", "sh:jsLibraryURL", "?library").getNodeArray("?library");
    for (var i=0 ;i<libraries.length; i++) {
        libraries[i] = libraries[i].toString();
    }
    fetchLibraries(libraries, this.context, that.context.functionsRegistry, function(err) {
        if (err) {
            k(err);
        } else {
            k();
        }
    })
};


module.exports = ShapesGraph;
},{"./rdfquery":85,"./rdfquery/term-factory":86,"./validation-function":89,"http":6}],88:[function(_dereq_,module,exports){
var RDFQuery = _dereq_("./rdfquery");
var T = RDFQuery.T;
var TermFactory = _dereq_("./rdfquery/term-factory");

var nodeLabel = function (node, store) {
    if (node.termType === "Collection") {
        var acc = [];
        for (var i = 0; i < node.elements.length; i++) {
            acc.push(nodeLabel(node.elements[i], store));
        }
        return acc.join(", ");
    }
    if (node.isURI()) {
        for (prefix in store.namespaces) {
            var ns = store.namespaces[prefix];
            if (node.value.indexOf(ns) === 0) {
                return prefix + ":" + node.value.substring(ns.length);
            }
        }
        return "<" + node.value + ">";
    }
    else if (node.isBlankNode()) {
        return "Blank node " + node.toString();
    }
    else {
        return "" + node;
    }
};

// class ValidationEngine

var ValidationEngine = function (context, conformanceOnly) {
    this.context = context;
    this.conformanceOnly = conformanceOnly;
    this.results = [];
    this.recordErrorsLevel = 0;
};

ValidationEngine.prototype.addResultProperty = function (result, predicate, object) {
    this.results.push([result, predicate, object]);
};

/**
 * Creates a new BlankNode holding the SHACL validation result, adding the default
 * properties for the constraint, focused node and value node
 */
ValidationEngine.prototype.createResult = function (constraint, focusNode, valueNode) {
    var result = TermFactory.blankNode();
    var severity = constraint.shape.severity;
    var sourceConstraintComponent = constraint.component.node;
    var sourceShape = constraint.shape.shapeNode;
    this.addResultProperty(result, T("rdf:type"), T("sh:ValidationResult"));
    this.addResultProperty(result, T("sh:resultSeverity"), severity);
    this.addResultProperty(result, T("sh:sourceConstraintComponent"), sourceConstraintComponent);
    this.addResultProperty(result, T("sh:sourceShape"), sourceShape);
    this.addResultProperty(result, T("sh:focusNode"), focusNode);
    if (valueNode) {
        this.addResultProperty(result, T("sh:value"), valueNode);
    }
    return result;
};

/**
 * Creates all the validation result nodes and messages for the result of applying the validation logic
 * of a constraints against a node.
 * Result passed as the first argument can be false, a resultMessage or a validation result object.
 * If none of these values is passed no error result or error message will be created.
 */
ValidationEngine.prototype.createResultFromObject = function (obj, constraint, focusNode, valueNode) {
    if (obj === false) {
        if (this.recordErrorsLevel > 0) {
            if (this.conformanceOnly) {
                return false;
            } else {
                return true;
            }
        }

        if (this.conformanceOnly) {
            return false;
        }
        var result = this.createResult(constraint, focusNode, valueNode);
        if (constraint.shape.isPropertyShape()) {
            this.addResultProperty(result, T("sh:resultPath"), constraint.shape.path); // TODO: Make deep copy
        }
        this.createResultMessages(result, constraint);
        return true;
    }
    else if (typeof obj === 'string') {
        if (this.recordErrorsLevel > 0) {
            if (this.conformanceOnly) {
                return false;
            } else {
                return true;
            }
        }
        if (this.conformanceOnly) {
            return false;
        }
        result = this.createResult(constraint, focusNode, valueNode);
        if (constraint.shape.isPropertyShape()) {
            this.addResultProperty(result, T("sh:resultPath"), constraint.shape.path); // TODO: Make deep copy
        }
        this.addResultProperty(result, T("sh:resultMessage"), TermFactory.literal(obj, T("xsd:string")));
        this.createResultMessages(result, constraint);
        return true;
    }
    else if (typeof obj === 'object') {
        if (this.recordErrorsLevel > 0) {
            if (this.conformanceOnly) {
                return false;
            } else {
                return true;
            }
        }
        if (this.conformanceOnly) {
            return false;
        }
        result = this.createResult(constraint, focusNode);
        if (obj.path) {
            this.addResultProperty(result, T("sh:resultPath"), obj.path); // TODO: Make deep copy
        }
        else if (constraint.shape.isPropertyShape()) {
            this.addResultProperty(result, T("sh:resultPath"), constraint.shape.path); // TODO: Make deep copy
        }
        if (obj.value) {
            this.addResultProperty(result, T("sh:value"), obj.value);
        }
        else if (valueNode) {
            this.addResultProperty(result, T("sh:value"), valueNode);
        }
        if (obj.message) {
            this.addResultProperty(result, T("sh:resultMessage"), TermFactory.literal(obj.message, T("xsd:string")));
        }
        else {
            this.createResultMessages(result, constraint);
        }
        return true;
    }
    return false;
};

/**
 * Creates a result message from the result and the message pattern in the constraint
 */
ValidationEngine.prototype.createResultMessages = function (result, constraint) {
    var ms = this.context.$shapes.query()
        .match(constraint.shape.shapeNode, "sh:message", "?message")
        .getNodeArray("?message");
    if (ms.length === 0) {
        var generic = constraint.shape.isPropertyShape() ?
            constraint.component.propertyValidationFunctionGeneric :
            constraint.component.nodeValidationFunctionGeneric;
        var predicate = generic ? T("sh:validator") : (constraint.shape.isPropertyShape() ? T("sh:propertyValidator") : T("sh:nodeValidator"));
        ms = this.context.$shapes.query()
            .match(constraint.component.node, predicate, "?validator")
            .match("?validator", "sh:message", "?message")
            .getNodeArray("?message");
    }
    if (ms.length === 0) {
        ms = this.context.$shapes.query()
            .match(constraint.component.node, "sh:message", "?message")
            .getNodeArray("?message");
    }
    for (var i = 0; i < ms.length; i++) {
        var m = ms[i];
        var str = this.withSubstitutions(m, constraint);
        this.addResultProperty(result, T("sh:resultMessage"), str);
    }
};

/**
 * Validates the data graph against the shapes graph
 */
ValidationEngine.prototype.validateAll = function (rdfDataGraph) {
    this.results = [];
    var foundError = false;
    var shapes = this.context.shapesGraph.getShapesWithTarget();
    for (var i = 0; i < shapes.length; i++) {
        var shape = shapes[i];
        var focusNodes = shape.getTargetNodes(rdfDataGraph);
        for (var j = 0; j < focusNodes.length; j++) {
            if (this.validateNodeAgainstShape(focusNodes[j], shape, rdfDataGraph)) {
                foundError = true;
            }
        }
    }
    return foundError;
};

/**
 * Returns true if any violation has been found
 */
ValidationEngine.prototype.validateNodeAgainstShape = function (focusNode, shape, rdfDataGraph) {
    if (shape.deactivated) {
        return false;
    }
    var constraints = shape.getConstraints();
    var valueNodes = shape.getValueNodes(focusNode, rdfDataGraph);
    var errorFound = false;
    for (var i = 0; i < constraints.length; i++) {
        if (this.validateNodeAgainstConstraint(focusNode, valueNodes, constraints[i], rdfDataGraph)) {
            errorFound = true;
        }
    }
    return errorFound;
};

ValidationEngine.prototype.validateNodeAgainstConstraint = function (focusNode, valueNodes, constraint, rdfDataGraph) {
    if (T("sh:PropertyConstraintComponent").equals(constraint.component.node)) {
        var errorFound = false;
        for (var i = 0; i < valueNodes.length; i++) {
            if (this.validateNodeAgainstShape(valueNodes[i], this.context.shapesGraph.getShape(constraint.paramValue), rdfDataGraph)) {
                errorFound = true;
            }
        }
        return errorFound;
    }
    else {
        var validationFunction = constraint.shape.isPropertyShape() ?
            constraint.component.propertyValidationFunction :
            constraint.component.nodeValidationFunction;
        if (validationFunction) {
            var generic = constraint.shape.isPropertyShape() ?
                constraint.component.propertyValidationFunctionGeneric :
                constraint.component.nodeValidationFunctionGeneric;
            if (generic) {
                // Generic sh:validator is called for each value node separately
                var errorFound = false;
                for (i = 0; i < valueNodes.length; i++) {
                    var valueNode = valueNodes[i];
                    //if (validationFunction.funcName === "validateAnd" || validationFunction.funcName === "validateOr" || validationFunction.funcName === "validateNot") {
                    this.recordErrorsLevel++;
                    //}
                    var obj = validationFunction.execute(focusNode, valueNode, constraint);
                    //if (validationFunction.funcName === "validateAnd" || validationFunction.funcName === "validateOr" || validationFunction.funcName === "validateNot") {
                    this.recordErrorsLevel--;
                    //}
                    if (Array.isArray(obj)) {
                        for (a = 0; a < obj.length; a++) {
                            if (this.createResultFromObject(obj[a], constraint, focusNode, valueNode)) {
                                errorFound = true;
                            }
                        }
                    }
                    else {
                        if (this.createResultFromObject(obj, constraint, focusNode, valueNode)) {
                            errorFound = true;
                        }
                    }
                }
                return errorFound;
            }
            else {
                //if (validationFunction.funcName === "validateAnd" || validationFunction.funcName === "validateOr" || validationFunction.funcName === "validateNot") {
                this.recordErrorsLevel++;
                //}
                obj = validationFunction.execute(focusNode, null, constraint);
                //if (validationFunction.funcName === "validateAnd" || validationFunction.funcName === "validateOr" || validationFunction.funcName === "validateNot") {
                this.recordErrorsLevel--;
                //}
                if (Array.isArray(obj)) {
                    var errorFound = false;
                    for (var a = 0; a < obj.length; a++) {
                        if (this.createResultFromObject(obj[a], constraint, focusNode)) {
                            errorFound = true;
                        }
                    }
                    return errorFound;
                }
                else {
                    if (this.createResultFromObject(obj, constraint, focusNode)) {
                        return true;
                    }
                }
            }
        }
        else {
            throw "Cannot find validator for constraint component " + constraint.component.node.value;
        }
    }
    return false;
};

ValidationEngine.prototype.withSubstitutions = function (msg, constraint) {
    var str = msg.lex;
    var values = constraint.parameterValues;
    for (var key in values) {
        var label = nodeLabel(values[key], this.context.$shapes);
        str = str.replace("{$" + key + "}", label);
        str = str.replace("{?" + key + "}", label);
    }
    return TermFactory.literal(str, msg.language | msg.datatype);
};

module.exports = ValidationEngine;
},{"./rdfquery":85,"./rdfquery/term-factory":86}],89:[function(_dereq_,module,exports){
(function (global){
// class ValidationFunction
var RDFQuery = _dereq_("./rdfquery");
var debug = _dereq_("debug")("validation-function");

var globalObject = typeof window !== 'undefined' ? window : global;

var ValidationFunction = function (functionName, parameters, findInScript) {

    this.funcName = functionName;
    this.func = findInScript(functionName);
    if (!this.func) {
        throw "Cannot find validator function " + functionName;
    }
    // Get list of argument of the function, see
    // https://davidwalsh.name/javascript-arguments
    var args = this.func.toString().match(/function\s.*?\(([^)]*)\)/)[1];
    var funcArgsRaw = args.split(',').map(function (arg) {
        return arg.replace(/\/\*.*\*\//, '').trim();
    }).filter(function (arg) {
        return arg;
    });
    this.funcArgs = [];
    this.parameters = [];
    for (var i = 0; i < funcArgsRaw.length; i++) {
        var arg = funcArgsRaw[i];
        if (arg.indexOf("$") === 0) {
            arg = arg.substring(1);
        }
        this.funcArgs.push(arg);
        for (var j = 0; j < parameters.length; j++) {
            var parameter = parameters[j];
            var localName = RDFQuery.getLocalName(parameter.value);
            if (arg === localName) {
                this.parameters[i] = parameter;
                break;
            }
        }
    }
};

ValidationFunction.prototype.doExecute = function (args) {
    return this.func.apply(globalObject, args);
};

ValidationFunction.prototype.execute = function (focusNode, valueNode, constraint) {
    debug("Validating " + this.funcName);
    var args = [];
    for (var i = 0; i < this.funcArgs.length; i++) {
        var arg = this.funcArgs[i];
        var param = this.parameters[i];
        if (param) {
            var value = constraint.getParameterValue(arg);
            args.push(value);
        }
        else if (arg === "focusNode") {
            args.push(focusNode);
        }
        else if (arg === "value") {
            args.push(valueNode);
        }
        else if (arg === "currentShape") {
            args.push(constraint.shape.shapeNode);
        }
        else if (arg === "path") {
            args.push(constraint.shape.path);
        }
        else if (arg === "shapesGraph") {
            args.push("DummyShapesGraph");
        }
        else if (arg === "this") {
            args.push(focusNode);
        }
        else {
            throw "Unexpected validator function argument " + arg + " for function " + this.funcName;
        }
    }
    return this.doExecute(args);
};

module.exports = ValidationFunction;
}).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./rdfquery":85,"debug":12}],90:[function(_dereq_,module,exports){


var extractValue = function(node, property) {
    var obj = node[property];
    if (obj) {
        return obj[0]["@value"];
    }
};

var extractId = function(node, property) {
    var obj = node[property];
    if (obj) {
        return obj[0]["@id"];
    }
};

var ValidationResult = function(resultNode, g) {
    this.graph = g;
    this.resultNode = resultNode;
};

ValidationResult.prototype.message = function() {
    return extractValue(this.resultNode, "http://www.w3.org/ns/shacl#resultMessage");
};

ValidationResult.prototype.path = function() {
    return extractId(this.resultNode, "http://www.w3.org/ns/shacl#resultPath");
};

ValidationResult.prototype.sourceConstraintComponent = function() {
    return extractId(this.resultNode, "http://www.w3.org/ns/shacl#sourceConstraintComponent");
};

ValidationResult.prototype.focusNode = function() {
    return extractId(this.resultNode, "http://www.w3.org/ns/shacl#focusNode");
};

ValidationResult.prototype.severity = function() {
    var severity = extractId(this.resultNode, "http://www.w3.org/ns/shacl#resultSeverity");
    if (severity != null) {
        return severity.split("#")[1];
    }
};

ValidationResult.prototype.sourceConstraintComponent = function() {
    return extractId(this.resultNode, "http://www.w3.org/ns/shacl#sourceConstraintComponent");
};

ValidationResult.prototype.sourceShape = function() {
    return extractId(this.resultNode, "http://www.w3.org/ns/shacl#sourceShape");
};

var ValidationReport = function(g) {
    this.graph = g;
    this.validationNode = null;
    for(var i=0; i<g.length; i++) {
        var conforms = g[i]["http://www.w3.org/ns/shacl#conforms"];
        if (conforms != null && conforms[0] != null) {
            this.validationNode = g[i];
            break;
        }
    }
    if (this.validationNode == null) {
        throw new Exception("Cannot find validation report node");
    }
};

ValidationReport.prototype.conforms = function() {
    var conforms = this.validationNode["http://www.w3.org/ns/shacl#conforms"][0];
    if (conforms != null) {
        return conforms["@value"] === "true";
    }
};

ValidationReport.prototype.results = function() {
    var results = this.validationNode["http://www.w3.org/ns/shacl#result"] || [];
    var that = this;
    return results.map(function(result) {
        return new ValidationResult(that.findNode(result["@id"]), this.graph);
    });
};

ValidationReport.prototype.findNode = function(id) {
    for (var i=0; i<this.graph.length; i++) {
        if (this.graph[i]["@id"] === id) {
            return this.graph[i];
        }
    }
};


module.exports = ValidationReport;
},{}],91:[function(_dereq_,module,exports){
module.exports = {"dash":"# baseURI: http://datashapes.org/dash\n# imports: http://www.w3.org/ns/shacl#\n# prefix: dash\n\n@prefix dash: <http://datashapes.org/dash#> .\n@prefix owl: <http://www.w3.org/2002/07/owl#> .\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n@prefix sh: <http://www.w3.org/ns/shacl#> .\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n\n<http://datashapes.org/dash>\n  rdf:type owl:Ontology ;\n  rdfs:comment \"\"\"DASH defines SPARQL-based validators for many SHACL Core constraint components. These are (among others) utilized by TopBraid and its API. Note that constraint components that require validation of nested shapes (such as sh:node) are not implementable without a function such as tosh:hasShape.\n\nDASH is also a SHACL library for frequently needed features and design patterns. All features in this library are 100% standards compliant and will work on any engine that fully supports SHACL.\"\"\" ;\n  rdfs:label \"DASH Data Shapes Library\" ;\n  owl:imports sh: ;\n  sh:declare [\n      sh:namespace \"http://datashapes.org/dash#\"^^xsd:anyURI ;\n      sh:prefix \"dash\" ;\n    ] ;\n  sh:declare [\n      sh:namespace \"http://purl.org/dc/terms/\"^^xsd:anyURI ;\n      sh:prefix \"dcterms\" ;\n    ] ;\n  sh:declare [\n      sh:namespace \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"^^xsd:anyURI ;\n      sh:prefix \"rdf\" ;\n    ] ;\n  sh:declare [\n      sh:namespace \"http://www.w3.org/2000/01/rdf-schema#\"^^xsd:anyURI ;\n      sh:prefix \"rdfs\" ;\n    ] ;\n  sh:declare [\n      sh:namespace \"http://www.w3.org/2001/XMLSchema#\"^^xsd:anyURI ;\n      sh:prefix \"xsd\" ;\n    ] ;\n  sh:declare [\n      sh:namespace \"http://www.w3.org/2002/07/owl#\"^^xsd:anyURI ;\n      sh:prefix \"owl\" ;\n    ] ;\n  sh:declare [\n      sh:namespace \"http://www.w3.org/2004/02/skos/core#\"^^xsd:anyURI ;\n      sh:prefix \"skos\" ;\n    ] ;\n.\ndash:AllObjects\n  rdf:type dash:AllObjectsTarget ;\n  rdfs:comment \"A reusable instance of dash:AllObjectsTarget.\" ;\n  rdfs:label \"All objects\" ;\n.\ndash:AllObjectsTarget\n  rdf:type sh:JSTargetType ;\n  rdf:type sh:SPARQLTargetType ;\n  rdfs:comment \"A target containing all objects in the data graph as focus nodes.\" ;\n  rdfs:label \"All objects target\" ;\n  rdfs:subClassOf sh:Target ;\n  sh:jsFunctionName \"dash_allObjects\" ;\n  sh:jsLibrary dash:DASHJSLibrary ;\n  sh:labelTemplate \"All objects\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n  sh:select \"\"\"SELECT DISTINCT ?this\nWHERE {\n    ?anyS ?anyP ?this .\n}\"\"\" ;\n.\ndash:AllSubjects\n  rdf:type dash:AllSubjectsTarget ;\n  rdfs:comment \"A reusable instance of dash:AllSubjectsTarget.\" ;\n  rdfs:label \"All subjects\" ;\n.\ndash:AllSubjectsTarget\n  rdf:type sh:JSTargetType ;\n  rdf:type sh:SPARQLTargetType ;\n  rdfs:comment \"A target containing all subjects in the data graph as focus nodes.\" ;\n  rdfs:label \"All subjects target\" ;\n  rdfs:subClassOf sh:Target ;\n  sh:jsFunctionName \"dash_allSubjects\" ;\n  sh:jsLibrary dash:DASHJSLibrary ;\n  sh:labelTemplate \"All subjects\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n  sh:select \"\"\"SELECT DISTINCT ?this\nWHERE {\n    ?this ?anyP ?anyO .\n}\"\"\" ;\n.\ndash:ClosedByTypesConstraintComponent\n  rdf:type sh:ConstraintComponent ;\n  rdfs:comment \"A constraint component that can be used to declare that focus nodes are \\\"closed\\\" based on their rdf:types, meaning that focus nodes may only have values for the properties that are explicitly enumerated via sh:property/sh:path in property constraints at their rdf:types and the superclasses of those. This assumes that the type classes are also shapes.\" ;\n  rdfs:label \"Closed by types constraint component\" ;\n  sh:nodeValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateClosedByTypesNode\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n      sh:message \"Property is not among those permitted for any of the types\" ;\n    ] ;\n  sh:nodeValidator [\n      rdf:type sh:SPARQLSelectValidator ;\n      sh:message \"Property {?path} is not among those permitted for any of the types\" ;\n      sh:prefixes <http://datashapes.org/dash> ;\n      sh:select \"\"\"SELECT $this (?predicate AS ?path) ?value\nWHERE {\n\tFILTER ($closedByTypes) .\n    $this ?predicate ?value .\n\tFILTER (?predicate != rdf:type) .\n\tFILTER NOT EXISTS {\n\t\t$this rdf:type ?type .\n\t\t?type rdfs:subClassOf* ?class .\n\t\tGRAPH $shapesGraph {\n\t\t\t?class sh:property/sh:path ?predicate .\n\t\t}\n\t}\n}\"\"\" ;\n    ] ;\n  sh:parameter dash:ClosedByTypesConstraintComponent-closedByTypes ;\n  sh:targetClass sh:NodeShape ;\n.\ndash:ClosedByTypesConstraintComponent-closedByTypes\n  rdf:type sh:Parameter ;\n  sh:path dash:closedByTypes ;\n  sh:datatype xsd:boolean ;\n  sh:description \"True to indicate that the focus nodes are closed by their types. A constraint violation is reported for each property value of the focus node where the property is not among those that are explicitly declared via sh:property/sh:path in any of the rdf:types of the focus node (and their superclasses). The property rdf:type is always permitted.\" ;\n.\ndash:CoExistsWithConstraintComponent\n  rdf:type sh:ConstraintComponent ;\n  dash:localConstraint \"true\"^^xsd:boolean ;\n  rdfs:comment \"A constraint component that can be used to express a constraint on property shapes so that if the property path has any value then the given property must also have a value, and vice versa.\" ;\n  rdfs:label \"Co-exists-with constraint component\" ;\n  sh:message \"Values must co-exist with values of {$coExistsWith}\" ;\n  sh:parameter dash:CoExistsWithConstraintComponent-coExistsWith ;\n  sh:propertyValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateCoExistsWith\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n  sh:propertyValidator [\n      rdf:type sh:SPARQLSelectValidator ;\n      sh:prefixes <http://datashapes.org/dash> ;\n      sh:select \"\"\"SELECT $this\nWHERE {\n\t{\n    \tFILTER (EXISTS { $this $PATH ?any } && NOT EXISTS { $this $coExistsWith ?any })\n\t}\n\tUNION\n\t{\n    \tFILTER (NOT EXISTS { $this $PATH ?any } && EXISTS { $this $coExistsWith ?any })\n\t}\n}\"\"\" ;\n    ] ;\n  sh:targetClass sh:PropertyShape ;\n.\ndash:CoExistsWithConstraintComponent-coExistsWith\n  rdf:type sh:Parameter ;\n  sh:path dash:coExistsWith ;\n  sh:class rdf:Property ;\n  sh:nodeKind sh:IRI ;\n.\ndash:DASHJSLibrary\n  rdf:type sh:JSLibrary ;\n  rdfs:label \"DASH JavaScript library\" ;\n  sh:jsLibrary dash:RDFQueryJSLibrary ;\n  sh:jsLibraryURL \"http://datashapes.org/js/dash.js\"^^xsd:anyURI ;\n.\ndash:DateOrDateTime\n  rdf:type rdf:List ;\n  rdf:first xsd:date ;\n  rdf:rest (\n      xsd:dateTime\n    ) ;\n  rdfs:comment \"An rdf:List that can be used in property constraints as value for sh:or to indicate that all values of a property must be either xsd:date or xsd:dateTime.\" ;\n  rdfs:label \"Date or date time\" ;\n.\ndash:DefaultValueTypeRule\n  rdf:type sh:SPARQLConstructExecutable ;\n  rdfs:comment \"\"\"\n\t\tA resource encapsulating a query that can be used to construct rdf:type triples for certain untyped nodes\n\t\tthat are an object in a triple where the predicate has a sh:defaultValueType.\n\t\tThis can be used as a pre-processor for shape graphs before they are validated.\n\t\t\"\"\"^^rdf:HTML ;\n  rdfs:label \"default value type inference rule\" ;\n  sh:construct \"\"\"\n\t\tCONSTRUCT {\n\t\t\t?node a ?defaultValueType .\n\t\t}\n\t\tWHERE {\n\t\t\t?predicate sh:defaultValueType ?defaultValueType .\n\t\t\t?anySubject ?predicate ?node .\n\t\t\tFILTER (NOT EXISTS { ?node a ?anyType }) .\n\t\t}\n\t\t\"\"\" ;\n.\ndash:FailureResult\n  rdf:type rdfs:Class ;\n  rdfs:comment \"A result representing a validation failure such as an unsupported recursion.\" ;\n  rdfs:label \"Failure result\" ;\n  rdfs:subClassOf sh:AbstractResult ;\n.\ndash:FailureTestCaseResult\n  rdf:type rdfs:Class ;\n  rdfs:comment \"Represents a failure of a test case.\" ;\n  rdfs:label \"Failure test case result\" ;\n  rdfs:subClassOf dash:TestCaseResult ;\n.\ndash:FunctionTestCase\n  rdf:type rdfs:Class ;\n  rdfs:comment \"A test case that verifies that a given SPARQL expression produces a given, expected result.\" ;\n  rdfs:label \"Function test case\" ;\n  rdfs:subClassOf dash:TestCase ;\n  sh:property [\n      sh:path dash:expectedResult ;\n      sh:description \"The expected result of a function call.\" ;\n      sh:maxCount 1 ;\n      sh:name \"expected result\" ;\n    ] ;\n  sh:property [\n      sh:path dash:expression ;\n      sh:description \"A valid SPARQL expression calling the function to test.\" ;\n      sh:maxCount 1 ;\n      sh:minCount 1 ;\n      sh:name \"expression\" ;\n    ] ;\n.\ndash:GraphUpdate\n  rdf:type rdfs:Class ;\n  rdfs:label \"Graph update\" ;\n  rdfs:subClassOf dash:Suggestion ;\n.\ndash:GraphValidationTestCase\n  rdf:type rdfs:Class ;\n  rdfs:comment \"A test case that performs SHACL constraint validation on the whole graph and compares the results with the expected validation results stored with the test case. By default this excludes meta-validation (i.e. the validation of the shape definitions themselves). If that's desired, set dash:validateShapes to true.\" ;\n  rdfs:label \"Graph validation test case\" ;\n  rdfs:subClassOf dash:ValidationTestCase ;\n.\ndash:HasValueWithClassConstraintComponent\n  rdf:type sh:ConstraintComponent ;\n  rdfs:comment \"A constraint component that can be used to express a constraint on property shapes so that one of the values of the property path must be an instance of a given class.\" ;\n  rdfs:label \"Has value with class constraint component\" ;\n  sh:message \"At least one of the values must have class {$hasValueWithClass}\" ;\n  sh:parameter dash:HasValueWithClassConstraintComponent-hasValueWithClass ;\n  sh:propertyValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateHasValueWithClass\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n  sh:propertyValidator [\n      rdf:type sh:SPARQLSelectValidator ;\n      sh:prefixes <http://datashapes.org/dash> ;\n      sh:select \"\"\"SELECT $this\nWHERE {\n\tFILTER NOT EXISTS {\n    \t$this $PATH ?value .\n\t\t?value a ?type .\n\t\t?type rdfs:subClassOf* ?hasValueWithClass .\n\t}\n}\"\"\" ;\n    ] ;\n  sh:targetClass sh:PropertyShape ;\n.\ndash:HasValueWithClassConstraintComponent-hasValueWithClass\n  rdf:type sh:Parameter ;\n  sh:path dash:hasValueWithClass ;\n  sh:class rdfs:Class ;\n  sh:nodeKind sh:IRI ;\n.\ndash:InferencingTestCase\n  rdf:type rdfs:Class ;\n  rdf:type sh:NodeShape ;\n  rdfs:comment \"A test case to verify whether an inferencing engine is producing identical results to those stored as expected results.\" ;\n  rdfs:label \"Inferencing test case\" ;\n  rdfs:subClassOf dash:TestCase ;\n  sh:property [\n      sh:path dash:expectedResult ;\n      sh:description \"The expected inferred triples, represented by instances of rdfs:Statement.\" ;\n      sh:name \"expected result\" ;\n    ] ;\n.\ndash:JSTestCase\n  rdf:type rdfs:Class ;\n  rdfs:comment \"A test case that calls a given JavaScript function like a sh:JSFunction and compares its result with the dash:expectedResult.\" ;\n  rdfs:label \"JavaScript test case\" ;\n  rdfs:subClassOf dash:TestCase ;\n  rdfs:subClassOf sh:JSFunction ;\n  sh:property [\n      sh:path dash:expectedResult ;\n      sh:description \"The expected result of the JavaScript function call, as an RDF node.\" ;\n      sh:maxCount 1 ;\n      sh:name \"expected result\" ;\n    ] ;\n.\ndash:ListNodeShape\n  rdf:type sh:NodeShape ;\n  rdfs:comment \"Defines constraints on what it means for a node to be a node within a well-formed RDF list. Note that this does not check whether the rdf:rest items are also well-formed lists as this would lead to unsupported recursion.\" ;\n  rdfs:label \"List node shape\" ;\n  sh:or (\n      [\n        sh:hasValue () ;\n        sh:property [\n            sh:path rdf:first ;\n            sh:maxCount 0 ;\n          ] ;\n        sh:property [\n            sh:path rdf:rest ;\n            sh:maxCount 0 ;\n          ] ;\n      ]\n      [\n        sh:not [\n            sh:hasValue () ;\n          ] ;\n        sh:property [\n            sh:path rdf:first ;\n            sh:maxCount 1 ;\n            sh:minCount 1 ;\n          ] ;\n        sh:property [\n            sh:path rdf:rest ;\n            sh:maxCount 1 ;\n            sh:minCount 1 ;\n          ] ;\n      ]\n    ) ;\n.\ndash:ListShape\n  rdf:type sh:NodeShape ;\n  rdfs:comment \"\"\"Defines constraints on what it means for a node to be a well-formed RDF list.\n\nThe focus node must either be rdf:nil or not recursive. Furthermore, this shape uses dash:ListNodeShape as a \\\"helper\\\" to walk through all members of the whole list (including itself).\"\"\" ;\n  rdfs:label \"List shape\" ;\n  sh:or (\n      [\n        sh:hasValue () ;\n      ]\n      [\n        sh:not [\n            sh:hasValue () ;\n          ] ;\n        sh:property [\n            sh:path [\n                sh:oneOrMorePath rdf:rest ;\n              ] ;\n            dash:nonRecursive \"true\"^^xsd:boolean ;\n          ] ;\n      ]\n    ) ;\n  sh:property [\n      sh:path [\n          sh:zeroOrMorePath rdf:rest ;\n        ] ;\n      rdfs:comment \"Each list member (including this node) must be have the shape dash:ListNodeShape.\" ;\n      sh:node dash:ListNodeShape ;\n    ] ;\n.\ndash:NonRecursiveConstraintComponent\n  rdf:type sh:ConstraintComponent ;\n  rdfs:comment \"\"\"Used to state that a property or path must not point back to itself.\n\nFor example, \\\"a person cannot have itself as parent\\\" can be expressed by setting dash:nonRecursive=true for a given sh:path.\n\nTo express that a person cannot have itself among any of its (recursive) parents, use a sh:path with the + operator such as ex:parent+.\"\"\" ;\n  rdfs:label \"Non-recursive constraint component\" ;\n  sh:message \"Points back at itself (recursively)\" ;\n  sh:parameter dash:NonRecursiveConstraintComponent-nonRecursive ;\n  sh:propertyValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateNonRecursiveProperty\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n  sh:propertyValidator [\n      rdf:type sh:SPARQLSelectValidator ;\n      sh:prefixes <http://datashapes.org/dash> ;\n      sh:select \"\"\"SELECT DISTINCT $this ($this AS ?value)\nWHERE {\n\t{\n\t\tFILTER (?nonRecursive)\n\t}\n    $this $PATH $this .\n}\"\"\" ;\n    ] ;\n  sh:targetClass sh:PropertyShape ;\n.\ndash:NonRecursiveConstraintComponent-nonRecursive\n  rdf:type sh:Parameter ;\n  sh:path dash:nonRecursive ;\n  sh:datatype xsd:boolean ;\n  sh:maxCount 1 ;\n  sh:name \"non-recursive\" ;\n.\ndash:None\n  rdf:type sh:NodeShape ;\n  rdfs:comment \"A Shape that is no node can conform to.\" ;\n  rdfs:label \"None\" ;\n  sh:in () ;\n.\ndash:ParameterConstraintComponent\n  rdf:type sh:ConstraintComponent ;\n  rdfs:comment \"A constraint component that can be used to verify that all value nodes conform to the given Parameter.\"@en ;\n  rdfs:label \"Parameter constraint component\"@en ;\n  sh:parameter dash:ParameterConstraintComponent-parameter ;\n.\ndash:ParameterConstraintComponent-parameter\n  rdf:type sh:Parameter ;\n  sh:path sh:parameter ;\n.\ndash:PrimaryKeyConstraintComponent\n  rdf:type sh:ConstraintComponent ;\n  dash:localConstraint \"true\"^^xsd:boolean ;\n  rdfs:comment \"Enforces a constraint that the given property (sh:path) serves as primary key for all resources in the target of the shape. If a property has been declared to be the primary key then each resource must have exactly one value for that property. Furthermore, the URIs of those resources must start with a given string (dash:uriStart), followed by the URL-encoded primary key value. For example if dash:uriStart is \\\"http://example.org/country-\\\" and the primary key for an instance is \\\"de\\\" then the URI must be \\\"http://example.org/country-de\\\". Finally, as a result of the URI policy, there can not be any other resource with the same value under the same primary key policy.\" ;\n  rdfs:label \"Primary key constraint component\" ;\n  sh:labelTemplate \"The property {?predicate} is the primary key and URIs start with {?uriStart}\" ;\n  sh:message \"Violation of primary key constraint\" ;\n  sh:parameter dash:PrimaryKeyConstraintComponent-uriStart ;\n  sh:propertyValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validatePrimaryKeyProperty\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n  sh:propertyValidator [\n      rdf:type sh:SPARQLSelectValidator ;\n      sh:prefixes <http://datashapes.org/dash> ;\n      sh:select \"\"\"SELECT DISTINCT $this\nWHERE {\n        FILTER (\n\t\t\t# Must have a value for the primary key\n\t\t\tNOT EXISTS { ?this $PATH ?any }\n\t\t\t||\n\t\t\t# Must have no more than one value for the primary key\n\t\t\tEXISTS {\n\t\t\t\t?this $PATH ?value1 .\n\t\t\t\t?this $PATH ?value2 .\n\t\t\t\tFILTER (?value1 != ?value2) .\n\t\t\t}\n\t\t\t||\n\t\t\t# The value of the primary key must align with the derived URI\n\t\t\tEXISTS {\n\t\t\t\t{\n        \t\t\t?this $PATH ?value .\n\t\t\t\t\tFILTER NOT EXISTS { ?this $PATH ?value2 . FILTER (?value != ?value2) }\n\t\t\t\t}\n        \t\tBIND (CONCAT($uriStart, ENCODE_FOR_URI(str(?value))) AS ?uri) .\n        \t\tFILTER (str(?this) != ?uri) .\n    \t\t}\n\t\t)\n}\"\"\" ;\n    ] ;\n  sh:targetClass sh:PropertyShape ;\n.\ndash:PrimaryKeyConstraintComponent-uriStart\n  rdf:type sh:Parameter ;\n  sh:path dash:uriStart ;\n  sh:datatype xsd:string ;\n  sh:description \"The start of the URIs of well-formed resources.\" ;\n  sh:name \"URI start\" ;\n.\ndash:QueryTestCase\n  rdf:type rdfs:Class ;\n  rdf:type sh:NodeShape ;\n  rdfs:comment \"A test case running a given SPARQL SELECT query and comparing its results with those stored as JSON Result Set in the expected result property.\" ;\n  rdfs:label \"Query test case\" ;\n  rdfs:subClassOf dash:TestCase ;\n  rdfs:subClassOf sh:SPARQLSelectExecutable ;\n  sh:property [\n      sh:path dash:expectedResult ;\n      sh:datatype xsd:string ;\n      sh:description \"The expected result set, as a JSON string.\" ;\n      sh:maxCount 1 ;\n      sh:minCount 1 ;\n      sh:name \"expected result\" ;\n    ] ;\n  sh:property [\n      sh:path sh:select ;\n      sh:datatype xsd:string ;\n      sh:description \"The SPARQL SELECT query to execute.\" ;\n      sh:maxCount 1 ;\n      sh:minCount 1 ;\n      sh:name \"SPARQL query\" ;\n    ] ;\n.\ndash:RDFQueryJSLibrary\n  rdf:type sh:JSLibrary ;\n  rdfs:label \"rdfQuery JavaScript Library\" ;\n  sh:jsLibraryURL \"http://datashapes.org/js/rdfquery.js\"^^xsd:anyURI ;\n.\ndash:RootClassConstraintComponent\n  rdf:type sh:ConstraintComponent ;\n  rdfs:comment \"A constraint component defining the parameter dash:rootClass, which restricts the values to be either the root class itself or one of its subclasses. This is typically used in conjunction with properties that have rdfs:Class as their type.\" ;\n  rdfs:label \"Root class constraint component\" ;\n  sh:labelTemplate \"Root class {$rootClass}\" ;\n  sh:message \"Value must be subclass of {$rootClass}\" ;\n  sh:parameter dash:RootClassConstraintComponent-rootClass ;\n  sh:targetClass sh:PropertyShape ;\n  sh:validator dash:hasRootClass ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateRootClass\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\ndash:RootClassConstraintComponent-rootClass\n  rdf:type sh:Parameter ;\n  sh:path dash:rootClass ;\n  sh:class rdfs:Class ;\n  sh:description \"The root class.\" ;\n  sh:name \"root class\" ;\n  sh:nodeKind sh:IRI ;\n.\ndash:SPARQLUpdateSuggestionGenerator\n  rdf:type rdfs:Class ;\n  rdfs:comment \"\"\"A SuggestionGenerator based on a SPARQL UPDATE query (sh:update), producing an instance of dash:GraphUpdate. The INSERTs become dash:addedTriple and the DELETEs become dash:deletedTriple. The WHERE clause operates on the data graph with the pre-bound variables $subject, $predicate and $object, as well as the other pre-bound variables for the parameters of the constraint.\n\nIn many cases, there may be multiple possible suggestions to fix a problem. For example, with sh:maxLength there are many ways to slice a string. In those cases, the system will first iterate through the result variables from a SELECT query (sh:select) and apply these results as pre-bound variables into the UPDATE query.\"\"\" ;\n  rdfs:label \"SPARQL UPDATE suggestion generator\" ;\n  rdfs:subClassOf dash:SuggestionGenerator ;\n  rdfs:subClassOf sh:SPARQLSelectExecutable ;\n  rdfs:subClassOf sh:SPARQLUpdateExecutable ;\n.\ndash:StemConstraintComponent\n  rdf:type sh:ConstraintComponent ;\n  dash:staticConstraint \"true\"^^xsd:boolean ;\n  rdfs:comment \"A constraint component that can be used to verify that every value node is an IRI and the IRI starts with a given string value.\"@en ;\n  rdfs:label \"Stem constraint component\"@en ;\n  sh:message \"Value does not have stem {$stem}\" ;\n  sh:parameter dash:StemConstraintComponent-stem ;\n  sh:targetClass sh:Shape ;\n  sh:validator dash:hasStem ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateStem\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\ndash:StemConstraintComponent-stem\n  rdf:type sh:Parameter ;\n  sh:path dash:stem ;\n  sh:datatype xsd:string ;\n.\ndash:StringOrLangString\n  rdf:type rdf:List ;\n  rdf:first xsd:string ;\n  rdf:rest (\n      rdf:langString\n    ) ;\n  rdfs:comment \"An rdf:List that can be used in property constraints as value for sh:or to indicate that all values of a property must be either xsd:string or rdf:langString.\" ;\n  rdfs:label \"String or langString\" ;\n.\ndash:SubSetOfConstraintComponent\n  rdf:type sh:ConstraintComponent ;\n  dash:localConstraint \"true\"^^xsd:boolean ;\n  rdfs:comment \"A constraint component that can be used to state that the set of value nodes must be a subset of the value of a given property.\" ;\n  rdfs:label \"Sub set of constraint component\" ;\n  sh:message \"Must be one of the values of {$subSetOf}\" ;\n  sh:parameter dash:SubSetOfConstraintComponent-subSetOf ;\n  sh:propertyValidator [\n      rdf:type sh:SPARQLAskValidator ;\n      sh:ask \"\"\"ASK {\n    $this $subSetOf $value .\n}\"\"\" ;\n      sh:prefixes <http://datashapes.org/dash> ;\n    ] ;\n  sh:targetClass sh:PropertyShape ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateSubSetOf\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\ndash:SubSetOfConstraintComponent-subSetOf\n  rdf:type sh:Parameter ;\n  sh:path dash:subSetOf ;\n  sh:class rdf:Property ;\n  sh:description \"A property (of the focus node) that must (at least) have all values from the set of value nodes.\" ;\n.\ndash:SuccessResult\n  rdf:type rdfs:Class ;\n  rdfs:comment \"A result representing a successfully validated constraint.\" ;\n  rdfs:label \"Success result\" ;\n  rdfs:subClassOf sh:AbstractResult ;\n.\ndash:SuccessTestCaseResult\n  rdf:type rdfs:Class ;\n  rdfs:comment \"Represents a successful run of a test case.\" ;\n  rdfs:label \"Success test case result\" ;\n  rdfs:subClassOf dash:TestCaseResult ;\n.\ndash:Suggestion\n  rdf:type rdfs:Class ;\n  rdfs:comment \"Base class of suggestions that modify a graph to \\\"fix\\\" the source of a validation result.\" ;\n  rdfs:label \"Suggestion\" ;\n  rdfs:subClassOf rdfs:Resource ;\n.\ndash:SuggestionGenerator\n  rdf:type rdfs:Class ;\n  rdfs:comment \"Base class of objects that can generate suggestions (added or deleted triples) for a validation result of a given constraint component.\" ;\n  rdfs:label \"Suggestion generator\" ;\n  rdfs:subClassOf rdfs:Resource ;\n.\ndash:TestCase\n  rdf:type rdfs:Class ;\n  dash:abstract \"true\"^^xsd:boolean ;\n  rdfs:comment \"A test case to verify that a (SHACL-based) feature works as expected.\" ;\n  rdfs:label \"Test case\" ;\n  rdfs:subClassOf rdfs:Resource ;\n.\ndash:TestCaseResult\n  rdf:type rdfs:Class ;\n  rdfs:comment \"Base class for results produced by running test cases.\" ;\n  rdfs:label \"Test case result\" ;\n  rdfs:subClassOf sh:AbstractResult ;\n  sh:property [\n      sh:path dash:testCase ;\n      sh:class dash:TestCase ;\n      sh:description \"The dash:TestCase that was executed.\" ;\n      sh:maxCount 1 ;\n      sh:minCount 1 ;\n      sh:name \"test case\" ;\n    ] ;\n  sh:property [\n      sh:path dash:testGraph ;\n      sh:class rdfs:Resource ;\n      sh:description \"The graph containing the test case.\" ;\n      sh:maxCount 1 ;\n      sh:minCount 1 ;\n      sh:name \"test graph\" ;\n      sh:nodeKind sh:IRI ;\n    ] ;\n.\ndash:TestEnvironment\n  rdf:type rdfs:Class ;\n  dash:abstract \"true\"^^xsd:boolean ;\n  rdfs:comment \"Abstract base class for test environments, holding information on how to set up a test case.\" ;\n  rdfs:label \"Test environment\" ;\n  rdfs:subClassOf rdfs:Resource ;\n.\ndash:ValidationTestCase\n  rdf:type rdfs:Class ;\n  rdf:type sh:NodeShape ;\n  dash:abstract \"true\"^^xsd:boolean ;\n  rdfs:comment \"Abstract superclass for test cases concerning SHACL constraint validation. Future versions may add new kinds of validatin test cases, e.g. to validate a single resource only.\" ;\n  rdfs:label \"Validation test case\" ;\n  rdfs:subClassOf dash:TestCase ;\n  sh:property [\n      sh:path dash:expectedResult ;\n      sh:class sh:ValidationReport ;\n      sh:description \"The expected validation report.\" ;\n      sh:name \"expected result\" ;\n    ] ;\n.\ndash:abstract\n  rdf:type rdf:Property ;\n  rdfs:comment \"Indicates that a class is \\\"abstract\\\" and cannot be used in asserted rdf:type triples. Only non-abstract subclasses of abstract classes should be instantiated directly.\" ;\n  rdfs:domain rdfs:Class ;\n  rdfs:label \"abstract\" ;\n  rdfs:range xsd:boolean ;\n.\ndash:addedTriple\n  rdf:type rdf:Property ;\n  rdfs:comment \"May link a dash:GraphUpdate with one or more triples (represented as instances of rdf:Statement) that should be added to fix the source of the result.\" ;\n  rdfs:domain dash:GraphUpdate ;\n  rdfs:label \"added triple\" ;\n  rdfs:range rdf:Statement ;\n.\ndash:cachable\n  rdf:type rdf:Property ;\n  rdfs:comment \"If set to true then the results of the SHACL function can be cached in between invocations with the same arguments. In other words, they are stateless and do not depend on triples in any graph, or the current time stamp etc.\" ;\n  rdfs:domain sh:Function ;\n  rdfs:label \"cachable\" ;\n  rdfs:range xsd:boolean ;\n.\ndash:closedByTypes\n  rdf:type rdf:Property ;\n  rdfs:label \"closed by types\" ;\n.\ndash:coExistsWith\n  rdf:type rdf:Property ;\n  rdfs:comment \"Specifies a property that must have a value whenever the property path has a value, and must have no value whenever the property path has no value.\" ;\n  rdfs:label \"co-exists with\" ;\n  rdfs:range rdf:Property ;\n.\ndash:composite\n  rdf:type rdf:Property ;\n  rdfs:comment \"Can be used to indicate that a property/path represented by a property constraint represents a composite relationship. In a composite relationship, the life cycle of a \\\"child\\\" object (value of the property/path) depends on the \\\"parent\\\" object (focus node). If the parent gets deleted, then the child objects should be deleted, too. Tools may use dash:composite (if set to true) to implement cascading delete operations.\" ;\n  rdfs:domain sh:PropertyShape ;\n  rdfs:label \"composite\" ;\n  rdfs:range xsd:boolean ;\n.\ndash:defaultValueType\n  rdf:type rdf:Property ;\n  rdfs:comment \"\"\"\n\t\tLinks a property with a default value type.\n\t\tThe default value type is assumed to be the <code>rdf:type</code> of values of the property\n\t\tthat declare no type on their own.\n\t\tAn example use of <code>sh:defaultValueType</code> is <code>sh:property</code>,\n\t\tthe values of which are assumed to be instances of <code>sh:PropertyShape</code>\n\t\teven if they are untyped (blank) nodes.\n\t\t\"\"\"^^rdf:HTML ;\n  rdfs:label \"default value type\" ;\n  rdfs:range rdfs:Class ;\n  owl:versionInfo \"Note this property may get removed in future versions. It is a left-over from a previous design in SHACL.\" ;\n.\ndash:deletedTriple\n  rdf:type rdf:Property ;\n  rdfs:comment \"May link a dash:GraphUpdate result with one or more triples (represented as instances of rdf:Statement) that should be deleted to fix the source of the result.\" ;\n  rdfs:domain dash:GraphUpdate ;\n  rdfs:label \"deleted triple\" ;\n  rdfs:range rdf:Statement ;\n.\ndash:expectedResult\n  rdf:type rdf:Property ;\n  rdfs:comment \"The expected result(s) of a test case. The value range of this property is different for each kind of test cases.\" ;\n  rdfs:domain dash:TestCase ;\n  rdfs:label \"expected result\" ;\n.\ndash:fixed\n  rdf:type rdf:Property ;\n  rdfs:comment \"Can be used to mark that certain validation results have already been fixed.\" ;\n  rdfs:domain sh:ValidationResult ;\n  rdfs:label \"fixed\" ;\n  rdfs:range xsd:boolean ;\n.\ndash:hasClass\n  rdf:type sh:SPARQLAskValidator ;\n  rdfs:label \"has class\" ;\n  sh:ask \"\"\"\n\t\tASK {\n\t\t\t$value rdf:type/rdfs:subClassOf* $class .\n\t\t}\n\t\t\"\"\" ;\n  sh:message \"Value does not have class {$class}\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n.\ndash:hasMaxExclusive\n  rdf:type sh:SPARQLAskValidator ;\n  rdfs:comment \"Checks whether a given node (?value) has value less than (<) the provided ?maxExclusive. Returns false if this cannot be determined, e.g. because values do not have comparable types.\" ;\n  rdfs:label \"has max exclusive\" ;\n  sh:ask \"ASK { FILTER ($value < $maxExclusive) }\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n.\ndash:hasMaxInclusive\n  rdf:type sh:SPARQLAskValidator ;\n  rdfs:comment \"Checks whether a given node (?value) has value less than or equal to (<=) the provided ?maxInclusive. Returns false if this cannot be determined, e.g. because values do not have comparable types.\" ;\n  rdfs:label \"has max inclusive\" ;\n  sh:ask \"ASK { FILTER ($value <= $maxInclusive) }\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n.\ndash:hasMaxLength\n  rdf:type sh:SPARQLAskValidator ;\n  rdfs:comment \"Checks whether a given string (?value) has a length within a given maximum string length.\" ;\n  rdfs:label \"has max length\" ;\n  sh:ask \"\"\"\n\t\tASK {\n\t\t\tFILTER (STRLEN(str($value)) <= $maxLength) .\n\t\t}\n\t\t\"\"\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n.\ndash:hasMinExclusive\n  rdf:type sh:SPARQLAskValidator ;\n  rdfs:comment \"Checks whether a given node (?value) has value greater than (>) the provided ?minExclusive. Returns false if this cannot be determined, e.g. because values do not have comparable types.\" ;\n  rdfs:label \"has min exclusive\" ;\n  sh:ask \"ASK { FILTER ($value > $minExclusive) }\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n.\ndash:hasMinInclusive\n  rdf:type sh:SPARQLAskValidator ;\n  rdfs:comment \"Checks whether a given node (?value) has value greater than or equal to (>=) the provided ?minInclusive. Returns false if this cannot be determined, e.g. because values do not have comparable types.\" ;\n  rdfs:label \"has min inclusive\" ;\n  sh:ask \"ASK { FILTER ($value >= $minInclusive) }\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n.\ndash:hasMinLength\n  rdf:type sh:SPARQLAskValidator ;\n  rdfs:comment \"Checks whether a given string (?value) has a length within a given minimum string length.\" ;\n  rdfs:label \"has min length\" ;\n  sh:ask \"\"\"\n\t\tASK {\n\t\t\tFILTER (STRLEN(str($value)) >= $minLength) .\n\t\t}\n\t\t\"\"\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n.\ndash:hasNodeKind\n  rdf:type sh:SPARQLAskValidator ;\n  rdfs:comment \"Checks whether a given node (?value) has a given sh:NodeKind (?nodeKind). For example, sh:hasNodeKind(42, sh:Literal) = true.\" ;\n  rdfs:label \"has node kind\" ;\n  sh:ask \"\"\"\n\t\tASK {\n\t\t\tFILTER ((isIRI($value) && $nodeKind IN ( sh:IRI, sh:BlankNodeOrIRI, sh:IRIOrLiteral ) ) ||\n\t\t\t\t(isLiteral($value) && $nodeKind IN ( sh:Literal, sh:BlankNodeOrLiteral, sh:IRIOrLiteral ) ) ||\n\t\t\t\t(isBlank($value)   && $nodeKind IN ( sh:BlankNode, sh:BlankNodeOrIRI, sh:BlankNodeOrLiteral ) )) .\n\t\t}\n\t\t\"\"\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n.\ndash:hasPattern\n  rdf:type sh:SPARQLAskValidator ;\n  rdfs:comment \"Checks whether the string representation of a given node (?value) matches a given regular expression (?pattern). Returns false if the value is a blank node.\" ;\n  rdfs:label \"has pattern\" ;\n  sh:ask \"ASK { FILTER (!isBlank($value) && IF(bound($flags), regex(str($value), $pattern, $flags), regex(str($value), $pattern))) }\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n.\ndash:hasRootClass\n  rdf:type sh:SPARQLAskValidator ;\n  rdfs:label \"has root class\" ;\n  sh:ask \"\"\"ASK {\n    $value rdfs:subClassOf* $rootClass .\n}\"\"\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n.\ndash:hasStem\n  rdf:type sh:SPARQLAskValidator ;\n  rdfs:comment \"Checks whether a given node is an IRI starting with a given stem.\" ;\n  rdfs:label \"has stem\" ;\n  sh:ask \"ASK { FILTER (isIRI($value) && STRSTARTS(str($value), $stem)) }\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n.\ndash:hasValueWithClass\n  rdf:type rdf:Property ;\n  rdfs:comment \"Specifies a constraint that at least one of the value nodes must be an instance of a given class.\" ;\n  rdfs:label \"has value with class\" ;\n  rdfs:range rdfs:Class ;\n.\ndash:height\n  rdf:type rdf:Property ;\n  rdfs:comment \"The height.\" ;\n  rdfs:label \"height\" ;\n  rdfs:range xsd:integer ;\n.\ndash:isDeactivated\n  rdf:type sh:SPARQLFunction ;\n  rdfs:comment \"Checks whether a given shape or constraint has been marked as \\\"deactivated\\\" using sh:deactivated.\" ;\n  rdfs:label \"is deactivated\" ;\n  sh:ask \"\"\"ASK {\n    ?constraintOrShape sh:deactivated true .\n}\"\"\" ;\n  sh:parameter [\n      sh:path dash:constraintOrShape ;\n      sh:description \"The sh:Constraint or sh:Shape to test.\" ;\n      sh:name \"constraint or shape\" ;\n    ] ;\n  sh:prefixes <http://datashapes.org/dash> ;\n  sh:returnType xsd:boolean ;\n.\ndash:isIn\n  rdf:type sh:SPARQLAskValidator ;\n  rdfs:label \"is in\" ;\n  sh:ask \"\"\"\n\t\tASK {\n\t\t\tGRAPH $shapesGraph {\n\t\t\t\t$in (rdf:rest*)/rdf:first $value .\n\t\t\t}\n\t\t}\n\t\t\"\"\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n.\ndash:isLanguageIn\n  rdf:type sh:SPARQLAskValidator ;\n  rdfs:label \"is language in\" ;\n  sh:ask \"\"\"\n\t\tASK {\n\t\t\tBIND (lang($value) AS ?valueLang) .\n\t\t\tFILTER EXISTS {\n\t\t\t\tGRAPH $shapesGraph {\n\t\t\t\t\t$languageIn (rdf:rest*)/rdf:first ?lang .\n\t\t\t\t    FILTER (langMatches(?valueLang, ?lang))\n\t\t\t\t} }\n\t\t}\n\t\t\"\"\" ;\n  sh:prefixes <http://datashapes.org/dash> ;\n.\ndash:isNodeKindBlankNode\n  rdf:type sh:SPARQLFunction ;\n  dash:cachable \"true\"^^xsd:boolean ;\n  rdfs:comment \"Checks if a given sh:NodeKind is one that includes BlankNodes.\" ;\n  rdfs:label \"is NodeKind BlankNode\" ;\n  sh:ask \"\"\"ASK {\n\tFILTER ($nodeKind IN ( sh:BlankNode, sh:BlankNodeOrIRI, sh:BlankNodeOrLiteral ))\n}\"\"\" ;\n  sh:parameter [\n      sh:path dash:nodeKind ;\n      sh:class sh:NodeKind ;\n      sh:description \"The sh:NodeKind to check.\" ;\n      sh:name \"node kind\" ;\n      sh:nodeKind sh:IRI ;\n    ] ;\n  sh:prefixes <http://datashapes.org/dash> ;\n  sh:returnType xsd:boolean ;\n.\ndash:isNodeKindIRI\n  rdf:type sh:SPARQLFunction ;\n  dash:cachable \"true\"^^xsd:boolean ;\n  rdfs:comment \"Checks if a given sh:NodeKind is one that includes IRIs.\" ;\n  rdfs:label \"is NodeKind IRI\" ;\n  sh:ask \"\"\"ASK {\n\tFILTER ($nodeKind IN ( sh:IRI, sh:BlankNodeOrIRI, sh:IRIOrLiteral ))\n}\"\"\" ;\n  sh:parameter [\n      sh:path dash:nodeKind ;\n      sh:class sh:NodeKind ;\n      sh:description \"The sh:NodeKind to check.\" ;\n      sh:name \"node kind\" ;\n      sh:nodeKind sh:IRI ;\n    ] ;\n  sh:prefixes <http://datashapes.org/dash> ;\n  sh:returnType xsd:boolean ;\n.\ndash:isNodeKindLiteral\n  rdf:type sh:SPARQLFunction ;\n  dash:cachable \"true\"^^xsd:boolean ;\n  rdfs:comment \"Checks if a given sh:NodeKind is one that includes Literals.\" ;\n  rdfs:label \"is NodeKind Literal\" ;\n  sh:ask \"\"\"ASK {\n\tFILTER ($nodeKind IN ( sh:Literal, sh:BlankNodeOrLiteral, sh:IRIOrLiteral ))\n}\"\"\" ;\n  sh:parameter [\n      sh:path dash:nodeKind ;\n      sh:class sh:NodeKind ;\n      sh:description \"The sh:NodeKind to check.\" ;\n      sh:name \"node kind\" ;\n      sh:nodeKind sh:IRI ;\n    ] ;\n  sh:prefixes <http://datashapes.org/dash> ;\n  sh:returnType xsd:boolean ;\n.\ndash:localConstraint\n  rdf:type rdf:Property ;\n  rdfs:comment \"\"\"Can be set to true for those constraint components where the validation does not require to visit any other triples than the shape definitions and the direct property values of the focus node mentioned in the property constraints. Examples of this include sh:minCount and sh:hasValue.\n\nConstraint components that are marked as such can be optimized by engines, e.g. they can be evaluated client-side at form submission time, without having to make a round-trip to a server, assuming the client has downloaded a complete snapshot of the resource.\n\nAny component marked with dash:staticConstraint is also a dash:localConstraint.\"\"\" ;\n  rdfs:domain sh:ConstraintComponent ;\n  rdfs:label \"local constraint\" ;\n  rdfs:range xsd:boolean ;\n.\ndash:propertySuggestionGenerator\n  rdf:type rdf:Property ;\n  rdfs:comment \"Links the constraint component with instances of dash:SuggestionGenerator that may be used to produce suggestions for a given validation result that was produced by a property constraint.\" ;\n  rdfs:domain sh:ConstraintComponent ;\n  rdfs:label \"property suggestion generator\" ;\n  rdfs:range dash:SuggestionGenerator ;\n.\ndash:rootClass\n  rdf:type rdf:Property ;\n  rdfs:label \"root class\" ;\n.\ndash:staticConstraint\n  rdf:type rdf:Property ;\n  rdfs:comment \"\"\"Can be set to true for those constraint components where the validation does not require to visit any other triples than the parameters. Examples of this include sh:datatype or sh:nodeKind, where no further triples need to be queried to determine the result.\n\nConstraint components that are marked as such can be optimized by engines, e.g. they can be evaluated client-side at form submission time, without having to make a round-trip to a server.\"\"\" ;\n  rdfs:domain sh:ConstraintComponent ;\n  rdfs:label \"static constraint\" ;\n  rdfs:range xsd:boolean ;\n.\ndash:stem\n  rdf:type rdf:Property ;\n  rdfs:comment \"Specifies a string value that the IRI of the value nodes must start with.\"@en ;\n  rdfs:label \"stem\"@en ;\n  rdfs:range xsd:string ;\n.\ndash:subSetOf\n  rdf:type rdf:Property ;\n  rdfs:label \"sub set of\" ;\n.\ndash:suggestion\n  rdf:type rdf:Property ;\n  rdfs:comment \"Can be used to link a validation result with one or more suggestions on how to fix the underlying issue.\" ;\n  rdfs:domain sh:ValidationResult ;\n  rdfs:label \"suggestion\" ;\n  rdfs:range dash:Suggestion ;\n.\ndash:suggestionGenerator\n  rdf:type rdf:Property ;\n  rdfs:comment \"Links a sh:SPARQLConstraint with instances of dash:SuggestionGenerator that may be used to produce suggestions for a given validation result that was produced by the constraint.\" ;\n  rdfs:domain sh:SPARQLConstraint ;\n  rdfs:label \"suggestion generator\" ;\n  rdfs:range dash:SuggestionGenerator ;\n.\ndash:suggestionGroup\n  rdf:type rdf:Property ;\n  rdfs:comment \"Can be used to link a suggestion with the group identifier to which it belongs. By default this is a link to the dash:SuggestionGenerator, but in principle this could be any value.\" ;\n  rdfs:domain dash:Suggestion ;\n  rdfs:label \"suggestion\" ;\n.\ndash:testEnvironment\n  rdf:type rdf:Property ;\n  rdfs:comment \"Can be used by TestCases to point at a resource with information on how to set up the execution environment prior to execution.\" ;\n  rdfs:domain dash:TestCase ;\n  rdfs:label \"test environment\" ;\n  rdfs:range dash:TestEnvironment ;\n.\ndash:testModifiesEnvironment\n  rdf:type rdf:Property ;\n  rdfs:comment \"Indicates whether this test modifies the specified dash:testEnvironment. If set to true then a test runner can make sure to wipe out the previous environment, while leaving it false (or undefined) means that the test runner can reuse the environment from the previous test case. As setting up and tearing down tests is sometimes slow, this flag can significantly accelerate test execution.\" ;\n  rdfs:domain dash:TestCase ;\n  rdfs:label \"test modifies environment\" ;\n  rdfs:range xsd:boolean ;\n.\ndash:toString\n  rdf:type sh:JSFunction ;\n  rdf:type sh:SPARQLFunction ;\n  dash:cachable \"true\"^^xsd:boolean ;\n  rdfs:comment \"Returns a literal with datatype xsd:string that has the input value as its string. If the input value is an (URI) resource then its URI will be used.\" ;\n  rdfs:label \"to string\" ;\n  sh:jsFunctionName \"dash_toString\" ;\n  sh:jsLibrary dash:DASHJSLibrary ;\n  sh:labelTemplate \"Convert {$arg} to xsd:string\" ;\n  sh:parameter [\n      sh:path dash:arg ;\n      sh:description \"The input value.\" ;\n      sh:name \"arg\" ;\n      sh:nodeKind sh:IRIOrLiteral ;\n    ] ;\n  sh:prefixes <http://datashapes.org/dash> ;\n  sh:returnType xsd:string ;\n  sh:select \"\"\"SELECT (xsd:string($arg) AS ?result)\nWHERE {\n}\"\"\" ;\n.\ndash:validateShapes\n  rdf:type rdf:Property ;\n  rdfs:comment \"True to also validate the shapes itself (i.e. parameter declarations).\" ;\n  rdfs:domain dash:GraphValidationTestCase ;\n  rdfs:label \"validate shapes\" ;\n  rdfs:range xsd:boolean ;\n.\ndash:valueCount\n  rdf:type sh:SPARQLFunction ;\n  rdfs:comment \"Computes the number of objects for a given subject/predicate combination.\" ;\n  rdfs:label \"value count\" ;\n  sh:parameter [\n      sh:path dash:predicate ;\n      sh:class rdfs:Resource ;\n      sh:description \"The predicate to get the number of objects of.\" ;\n      sh:name \"predicate\" ;\n      sh:order 1 ;\n    ] ;\n  sh:parameter [\n      sh:path dash:subject ;\n      sh:class rdfs:Resource ;\n      sh:description \"The subject to get the number of objects of.\" ;\n      sh:name \"subject\" ;\n      sh:order 0 ;\n    ] ;\n  sh:prefixes <http://datashapes.org/dash> ;\n  sh:returnType xsd:integer ;\n  sh:select \"\"\"\n\t\tSELECT (COUNT(?object) AS ?result)\n\t\tWHERE {\n    \t\t$subject $predicate ?object .\n\t\t}\n\"\"\" ;\n.\ndash:width\n  rdf:type rdf:Property ;\n  rdfs:comment \"The width.\" ;\n  rdfs:label \"width\" ;\n  rdfs:range xsd:integer ;\n.\ndash:x\n  rdf:type rdf:Property ;\n  rdfs:comment \"The x position.\" ;\n  rdfs:label \"x\" ;\n  rdfs:range xsd:integer ;\n.\ndash:y\n  rdf:type rdf:Property ;\n  rdfs:comment \"The y position.\" ;\n  rdfs:label \"y\" ;\n  rdfs:range xsd:integer ;\n.\nowl:Class\n  rdf:type rdfs:Class ;\n  rdfs:subClassOf rdfs:Class ;\n.\nsh:AndConstraintComponent\n  sh:targetClass sh:Shape ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateAnd\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:ClassConstraintComponent\n  sh:targetClass sh:Shape ;\n  sh:validator dash:hasClass ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateClass\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:ClosedConstraintComponent\n  dash:localConstraint \"true\"^^xsd:boolean ;\n  sh:nodeValidator [\n      rdf:type sh:SPARQLSelectValidator ;\n      sh:message \"Predicate {?path} is not allowed (closed shape)\" ;\n      sh:prefixes <http://datashapes.org/dash> ;\n      sh:select \"\"\"\n\t\tSELECT $this (?predicate AS ?path) ?value\n\t\tWHERE {\n\t\t\t{\n\t\t\t\tFILTER ($closed) .\n\t\t\t}\n\t\t\t$this ?predicate ?value .\n\t\t\tFILTER (NOT EXISTS {\n\t\t\t\tGRAPH $shapesGraph {\n\t\t\t\t\t$currentShape sh:property/sh:path ?predicate .\n\t\t\t\t}\n\t\t\t} && (!bound($ignoredProperties) || NOT EXISTS {\n\t\t\t\tGRAPH $shapesGraph {\n\t\t\t\t\t$ignoredProperties rdf:rest*/rdf:first ?predicate .\n\t\t\t\t}\n\t\t\t}))\n\t\t}\n\"\"\" ;\n    ] ;\n  sh:targetClass sh:NodeShape ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateClosed\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n      sh:message \"Predicate is not allowed (closed shape)\" ;\n    ] ;\n.\nsh:DatatypeConstraintComponent\n  dash:staticConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Value does not have datatype {$datatype}\" ;\n  sh:targetClass sh:PropertyShape ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateDatatype\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:DerivedValuesConstraintComponent\n  sh:targetClass sh:PropertyShape ;\n.\nsh:DisjointConstraintComponent\n  dash:localConstraint \"true\"^^xsd:boolean ;\n  sh:targetClass sh:Shape ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateDisjoint\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n      sh:message \"Value node must not also be one of the values of {$disjoint}\" ;\n    ] ;\n  sh:validator [\n      rdf:type sh:SPARQLAskValidator ;\n      sh:ask \"\"\"\n\t\tASK {\n\t\t\tFILTER NOT EXISTS {\n\t\t\t\t$this $disjoint $value .\n\t\t\t}\n\t\t}\n\t\t\"\"\" ;\n      sh:message \"Property must not share any values with {$disjoint}\" ;\n      sh:prefixes <http://datashapes.org/dash> ;\n    ] ;\n.\nsh:EqualsConstraintComponent\n  dash:localConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Must have same values as {$equals}\" ;\n  sh:nodeValidator [\n      rdf:type sh:SPARQLSelectValidator ;\n      sh:prefixes <http://datashapes.org/dash> ;\n      sh:select \"\"\"\n\t\tSELECT DISTINCT $this ?value\n\t\tWHERE {\n\t\t\t{\n\t\t\t\tFILTER NOT EXISTS { $this $equals $this }\n\t\t\t\tBIND ($this AS ?value) .\n\t\t\t}\n\t\t\tUNION\n\t\t\t{\n\t\t\t\t$this $equals ?value .\n\t\t\t\tFILTER (?value != $this) .\n\t\t\t}\n\t\t}\n\t\t\"\"\" ;\n    ] ;\n  sh:nodeValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateEqualsNode\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n  sh:propertyValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateEqualsProperty\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n  sh:propertyValidator [\n      rdf:type sh:SPARQLSelectValidator ;\n      sh:prefixes <http://datashapes.org/dash> ;\n      sh:select \"\"\"\n\t\tSELECT DISTINCT $this ?value\n\t\tWHERE {\n\t\t\t{\n\t\t\t\t$this $PATH ?value .\n\t\t\t\tMINUS {\n\t\t\t\t\t$this $equals ?value .\n\t\t\t\t}\n\t\t\t}\n\t\t\tUNION\n\t\t\t{\n\t\t\t\t$this $equals ?value .\n\t\t\t\tMINUS {\n\t\t\t\t\t$this $PATH ?value .\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\"\"\" ;\n    ] ;\n  sh:targetClass sh:Shape ;\n.\nsh:Function\n  sh:property [\n      sh:path dash:cachable ;\n      sh:datatype xsd:boolean ;\n      sh:description \"True to indicate that this function will always return the same values for the same combination of arguments, regardless of the query graphs. Engines can use this information to cache and reuse previous function calls.\" ;\n      sh:maxCount 1 ;\n      sh:name \"cachable\" ;\n    ] ;\n.\nsh:HasValueConstraintComponent\n  dash:localConstraint \"true\"^^xsd:boolean ;\n  sh:nodeValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateHasValueNode\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n      sh:message \"Value must be {$hasValue}\" ;\n    ] ;\n  sh:nodeValidator [\n      rdf:type sh:SPARQLAskValidator ;\n      sh:ask \"\"\"ASK {\n    FILTER ($value = $hasValue)\n}\"\"\" ;\n      sh:message \"Value must be {$hasValue}\" ;\n      sh:prefixes <http://datashapes.org/dash> ;\n    ] ;\n  sh:propertyValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateHasValueProperty\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n      sh:message \"Missing expected value {$hasValue}\" ;\n    ] ;\n  sh:propertyValidator [\n      rdf:type sh:SPARQLSelectValidator ;\n      sh:message \"Missing expected value {$hasValue}\" ;\n      sh:prefixes <http://datashapes.org/dash> ;\n      sh:select \"\"\"\n\t\tSELECT $this\n\t\tWHERE {\n\t\t\tFILTER NOT EXISTS { $this $PATH $hasValue }\n\t\t}\n\t\t\"\"\" ;\n    ] ;\n  sh:targetClass sh:Shape ;\n.\nsh:InConstraintComponent\n  dash:localConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Value is not in {$in}\" ;\n  sh:targetClass sh:Shape ;\n  sh:validator dash:isIn ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateIn\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:LanguageInConstraintComponent\n  dash:localConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Language does not match any of {$languageIn}\" ;\n  sh:targetClass sh:Shape ;\n  sh:validator dash:isLanguageIn ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateLanguageIn\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:LessThanConstraintComponent\n  dash:localConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Value is not < value of {$lessThan}\" ;\n  sh:propertyValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateLessThanProperty\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n  sh:propertyValidator [\n      rdf:type sh:SPARQLSelectValidator ;\n      sh:prefixes <http://datashapes.org/dash> ;\n      sh:select \"\"\"\n\t\tSELECT $this ?value\n\t\tWHERE {\n\t\t\t$this $PATH ?value .\n\t\t\t$this $lessThan ?otherValue .\n\t\t\tBIND (?value < ?otherValue AS ?result) .\n\t\t\tFILTER (!bound(?result) || !(?result)) .\n\t\t}\n\t\t\"\"\" ;\n    ] ;\n  sh:targetClass sh:PropertyShape ;\n.\nsh:LessThanOrEqualsConstraintComponent\n  dash:localConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Value is not <= value of {$lessThanOrEquals}\" ;\n  sh:propertyValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateLessThanOrEqualsProperty\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n  sh:propertyValidator [\n      rdf:type sh:SPARQLSelectValidator ;\n      sh:prefixes <http://datashapes.org/dash> ;\n      sh:select \"\"\"\n\t\tSELECT DISTINCT $this ?value\n\t\tWHERE {\n\t\t\t$this $PATH ?value .\n\t\t\t$this $lessThanOrEquals ?otherValue .\n\t\t\tBIND (?value <= ?otherValue AS ?result) .\n\t\t\tFILTER (!bound(?result) || !(?result)) .\n\t\t}\n\"\"\" ;\n    ] ;\n  sh:targetClass sh:PropertyShape ;\n.\nsh:MaxCountConstraintComponent\n  dash:localConstraint \"true\"^^xsd:boolean ;\n  sh:message \"More than {$maxCount} values\" ;\n  sh:propertyValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateMaxCountProperty\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n  sh:propertyValidator [\n      rdf:type sh:SPARQLSelectValidator ;\n      sh:prefixes <http://datashapes.org/dash> ;\n      sh:select \"\"\"\n\t\tSELECT $this\n\t\tWHERE {\n\t\t\t$this $PATH ?value .\n\t\t}\n\t\tGROUP BY $this\n\t\tHAVING (COUNT(DISTINCT ?value) > $maxCount)\n\t\t\"\"\" ;\n    ] ;\n  sh:targetClass sh:PropertyShape ;\n.\nsh:MaxExclusiveConstraintComponent\n  dash:staticConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Value is not < {$maxExclusive}\" ;\n  sh:targetClass sh:Shape ;\n  sh:validator dash:hasMaxExclusive ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateMaxExclusive\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:MaxInclusiveConstraintComponent\n  dash:staticConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Value is not <= {$maxInclusive}\" ;\n  sh:targetClass sh:Shape ;\n  sh:validator dash:hasMaxInclusive ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateMaxInclusive\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:MaxLengthConstraintComponent\n  dash:staticConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Value has more than {$maxLength} characters\" ;\n  sh:targetClass sh:Shape ;\n  sh:validator dash:hasMaxLength ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateMaxLength\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:MinCountConstraintComponent\n  dash:localConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Less than {$minCount} values\" ;\n  sh:propertyValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateMinCountProperty\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n  sh:propertyValidator [\n      rdf:type sh:SPARQLSelectValidator ;\n      sh:prefixes <http://datashapes.org/dash> ;\n      sh:select \"\"\"\n\t\tSELECT $this\n\t\tWHERE {\n\t\t\tOPTIONAL {\n\t\t\t\t$this $PATH ?value .\n\t\t\t}\n\t\t}\n\t\tGROUP BY $this\n\t\tHAVING (COUNT(DISTINCT ?value) < $minCount)\n\t\t\"\"\" ;\n    ] ;\n  sh:targetClass sh:PropertyShape ;\n.\nsh:MinExclusiveConstraintComponent\n  dash:staticConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Value is not > {$minExclusive}\" ;\n  sh:targetClass sh:Shape ;\n  sh:validator dash:hasMinExclusive ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateMinExclusive\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:MinInclusiveConstraintComponent\n  dash:staticConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Value is not >= {$minInclusive}\" ;\n  sh:targetClass sh:Shape ;\n  sh:validator dash:hasMinInclusive ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateMinInclusive\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:MinLengthConstraintComponent\n  dash:staticConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Value has less than {$minLength} characters\" ;\n  sh:targetClass sh:Shape ;\n  sh:validator dash:hasMinLength ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateMinLength\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:NodeConstraintComponent\n  sh:message \"Value does not have shape {$node}\" ;\n  sh:targetClass sh:Shape ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateNode\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:NodeKindConstraintComponent\n  dash:staticConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Value does not have node kind {$nodeKind}\" ;\n  sh:targetClass sh:Shape ;\n  sh:validator dash:hasNodeKind ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateNodeKind\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:NotConstraintComponent\n  sh:message \"Value does have shape {$not}\" ;\n  sh:targetClass sh:Shape ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateNot\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:OrConstraintComponent\n  sh:targetClass sh:Shape ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateOr\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:PatternConstraintComponent\n  dash:staticConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Value does not match pattern \\\"{$pattern}\\\"\" ;\n  sh:targetClass sh:Shape ;\n  sh:validator dash:hasPattern ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validatePattern\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:QualifiedMaxCountConstraintComponent\n  sh:message \"More than {$qualifiedMaxCount} values have shape {$qualifiedValueShape}\" ;\n  sh:propertyValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateQualifiedMaxCountProperty\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n  sh:targetClass sh:PropertyShape ;\n.\nsh:QualifiedMinCountConstraintComponent\n  sh:message \"Less than {$qualifiedMinCount} values have shape {$qualifiedValueShape}\" ;\n  sh:propertyValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateQualifiedMinCountProperty\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n  sh:targetClass sh:PropertyShape ;\n.\nsh:UniqueLangConstraintComponent\n  dash:localConstraint \"true\"^^xsd:boolean ;\n  sh:message \"Language \\\"{?lang}\\\" used more than once\" ;\n  sh:propertyValidator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateUniqueLangProperty\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n  sh:propertyValidator [\n      rdf:type sh:SPARQLSelectValidator ;\n      sh:prefixes <http://datashapes.org/dash> ;\n      sh:select \"\"\"\n\t\tSELECT DISTINCT $this ?lang\n\t\tWHERE {\n\t\t\t{\n\t\t\t\tFILTER sameTerm($uniqueLang, true) .\n\t\t\t}\n\t\t\t$this $PATH ?value .\n\t\t\tBIND (lang(?value) AS ?lang) .\n\t\t\tFILTER (bound(?lang) && ?lang != \\\"\\\") .\n\t\t\tFILTER EXISTS {\n\t\t\t\t$this $PATH ?otherValue .\n\t\t\t\tFILTER (?otherValue != ?value && ?lang = lang(?otherValue)) .\n\t\t\t}\n\t\t}\n\t\t\"\"\" ;\n    ] ;\n  sh:targetClass sh:PropertyShape ;\n.\nsh:XoneConstraintComponent\n  sh:targetClass sh:Shape ;\n  sh:validator [\n      rdf:type sh:JSValidator ;\n      sh:jsFunctionName \"validateXone\" ;\n      sh:jsLibrary dash:DASHJSLibrary ;\n    ] ;\n.\nsh:node\n  dash:defaultValueType sh:NodeShape ;\n.\nsh:not\n  dash:defaultValueType sh:Shape ;\n.\nsh:order\n  rdfs:range xsd:decimal ;\n.\nsh:parameter\n  dash:defaultValueType sh:Parameter ;\n.\nsh:property\n  dash:defaultValueType sh:PropertyShape ;\n.\nsh:qualifiedValueShape\n  dash:defaultValueType sh:Shape ;\n.\nsh:sparql\n  dash:defaultValueType sh:SPARQLConstraint ;\n.\n","shacl":"##  W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE\n## https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n## --------\n\n# W3C Shapes Constraint Language (SHACL) Vocabulary\n# Version from 2017-07-20\n\n@prefix owl:  <http://www.w3.org/2002/07/owl#> .\n@prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .\n\n@prefix sh:   <http://www.w3.org/ns/shacl#> .\n\nsh:\n\ta owl:Ontology ;\n\trdfs:label \"W3C Shapes Constraint Language (SHACL) Vocabulary\"@en ;\n\trdfs:comment \"This vocabulary defines terms used in SHACL, the W3C Shapes Constraint Language.\"@en ;\n\tsh:declare [\n\t\tsh:prefix \"sh\" ;\n\t\tsh:namespace \"http://www.w3.org/ns/shacl#\" ;\n\t] ;\n\tsh:suggestedShapesGraph <http://www.w3.org/ns/shacl-shacl#> .\n\n\n# Shapes vocabulary -----------------------------------------------------------\n\nsh:Shape\n\ta rdfs:Class ;\n\trdfs:label \"Shape\"@en ;\n\trdfs:comment \"A shape is a collection of constraints that may be targeted for certain nodes.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:NodeShape\n\ta rdfs:Class ;\n\trdfs:label \"Node shape\"@en ;\n\trdfs:comment \"A node shape is a shape that specifies constraint that need to be met with respect to focus nodes.\"@en ;\n\trdfs:subClassOf sh:Shape ;\n\trdfs:isDefinedBy sh: .\n\nsh:PropertyShape\n\ta rdfs:Class ;\n\trdfs:label \"Property shape\"@en ;\n\trdfs:comment \"A property shape is a shape that specifies constraints on the values of a focus node for a given property or path.\"@en ;\n\trdfs:subClassOf sh:Shape ;\n\trdfs:isDefinedBy sh: .\n\nsh:deactivated\n\ta rdf:Property ;\n\trdfs:label \"deactivated\"@en ;\n\trdfs:comment \"If set to true then all nodes conform to this.\"@en ;\n\t# rdfs:domain sh:Shape or sh:SPARQLConstraint\n\trdfs:range xsd:boolean ;\n\trdfs:isDefinedBy sh: .\n\nsh:targetClass \n\ta rdf:Property ;\n\trdfs:label \"target class\"@en ;\n\trdfs:comment \"Links a shape to a class, indicating that all instances of the class must conform to the shape.\"@en ;\n\trdfs:domain sh:Shape ;\n\trdfs:range rdfs:Class ;\n\trdfs:isDefinedBy sh: .\n\nsh:targetNode \n\ta rdf:Property ;\n\trdfs:label \"target node\"@en ;\n\trdfs:comment \"Links a shape to individual nodes, indicating that these nodes must conform to the shape.\"@en ;\n\trdfs:domain sh:Shape ;\n\trdfs:isDefinedBy sh: .\n\nsh:targetObjectsOf\n\ta rdf:Property ;\n\trdfs:label \"target objects of\"@en ;\n\trdfs:comment \"Links a shape to a property, indicating that all all objects of triples that have the given property as their predicate must conform to the shape.\"@en ;\n\trdfs:domain sh:Shape ;\n\trdfs:range rdf:Property ;\n\trdfs:isDefinedBy sh: .\n\nsh:targetSubjectsOf\n\ta rdf:Property ;\n\trdfs:label \"target subjects of\"@en ;\n\trdfs:comment \"Links a shape to a property, indicating that all subjects of triples that have the given property as their predicate must conform to the shape.\"@en ;\n\trdfs:domain sh:Shape ;\n\trdfs:range rdf:Property ;\n\trdfs:isDefinedBy sh: .\n\nsh:message\n\ta rdf:Property ;\n\t# domain: sh:Shape or sh:SPARQLConstraint or sh:SPARQLSelectValidator or sh:SPARQLAskValidator\n\t# range: xsd:string or rdf:langString\n\trdfs:label \"message\"@en ;\n\trdfs:comment \"A human-readable message (possibly with placeholders for variables) explaining the cause of the result.\"@en ;\n\trdfs:isDefinedBy sh: .\n\nsh:severity\n\ta rdf:Property ;\n\trdfs:label \"severity\"@en ;\n\trdfs:comment \"Defines the severity that validation results produced by a shape must have. Defaults to sh:Violation.\"@en ;\n\trdfs:domain sh:Shape ;\n\trdfs:range sh:Severity ;\n\trdfs:isDefinedBy sh: .\n\n\n# Node kind vocabulary --------------------------------------------------------\n\nsh:NodeKind\n\ta rdfs:Class ;\n\trdfs:label \"Node kind\"@en ;\n\trdfs:comment \"The class of all node kinds, including sh:BlankNode, sh:IRI, sh:Literal or the combinations of these: sh:BlankNodeOrIRI, sh:BlankNodeOrLiteral, sh:IRIOrLiteral.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:BlankNode\n\ta sh:NodeKind ;\n\trdfs:label \"Blank node\"@en ;\n\trdfs:comment \"The node kind of all blank nodes.\"@en ;\n\trdfs:isDefinedBy sh: .\n\nsh:BlankNodeOrIRI\n\ta sh:NodeKind ;\n\trdfs:label \"Blank node or IRI\"@en ;\n\trdfs:comment \"The node kind of all blank nodes or IRIs.\"@en ;\n\trdfs:isDefinedBy sh: .\n\nsh:BlankNodeOrLiteral\n\ta sh:NodeKind ;\n\trdfs:label \"Blank node or literal\"@en ;\n\trdfs:comment \"The node kind of all blank nodes or literals.\"@en ;\n\trdfs:isDefinedBy sh: .\n\nsh:IRI\n\ta sh:NodeKind ;\n\trdfs:label \"IRI\"@en ;\n\trdfs:comment \"The node kind of all IRIs.\"@en ;\n\trdfs:isDefinedBy sh: .\n\nsh:IRIOrLiteral\n\ta sh:NodeKind ;\n\trdfs:label \"IRI or literal\"@en ;\n\trdfs:comment \"The node kind of all IRIs or literals.\"@en ;\n\trdfs:isDefinedBy sh: .\n\nsh:Literal\n\ta sh:NodeKind ;\n\trdfs:label \"Literal\"@en ;\n\trdfs:comment \"The node kind of all literals.\"@en ;\n\trdfs:isDefinedBy sh: .\n\n\n# Results vocabulary ----------------------------------------------------------\n\nsh:ValidationReport\n\ta rdfs:Class ;\n\trdfs:label \"Validation report\"@en ;\n\trdfs:comment \"The class of SHACL validation reports.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:conforms\n\ta rdf:Property ;\n\trdfs:label \"conforms\"@en ;\n\trdfs:comment \"True if the validation did not produce any validation results, and false otherwise.\"@en ;\n\trdfs:domain sh:ValidationReport ;\n\trdfs:range xsd:boolean ;\n\trdfs:isDefinedBy sh: .\n\nsh:result\n\ta rdf:Property ;\n\trdfs:label \"result\"@en ;\n\trdfs:comment \"The validation results contained in a validation report.\"@en ;\n\trdfs:domain sh:ValidationReport ;\n\trdfs:range sh:ValidationResult ;\n\trdfs:isDefinedBy sh: .\n\nsh:shapesGraphWellFormed\n\ta rdf:Property ;\n\trdfs:label \"shapes graph well-formed\"@en ;\n\trdfs:comment \"If true then the validation engine was certain that the shapes graph has passed all SHACL syntax requirements during the validation process.\"@en ;\n\trdfs:domain sh:ValidationReport ;\n\trdfs:range xsd:boolean ;\n\trdfs:isDefinedBy sh: .\n\nsh:AbstractResult\n\ta rdfs:Class ;\n\trdfs:label \"Abstract result\"@en ;\n\trdfs:comment \"The base class of validation results, typically not instantiated directly.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:ValidationResult\n\ta rdfs:Class ;\n\trdfs:label \"Validation result\"@en ;\n\trdfs:comment \"The class of validation results.\"@en ;\n\trdfs:subClassOf sh:AbstractResult ;\n\trdfs:isDefinedBy sh: .\n\nsh:Severity\n\ta rdfs:Class ;\n\trdfs:label \"Severity\"@en ;\n\trdfs:comment \"The class of validation result severity levels, including violation and warning levels.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:Info\n\ta sh:Severity ;\n\trdfs:label \"Info\"@en ;\n\trdfs:comment \"The severity for an informational validation result.\"@en ;\n\trdfs:isDefinedBy sh: .\n\nsh:Violation\n\ta sh:Severity ;\n\trdfs:label \"Violation\"@en ;\n\trdfs:comment \"The severity for a violation validation result.\"@en ;\n\trdfs:isDefinedBy sh: .\n\nsh:Warning\n\ta sh:Severity ;\n\trdfs:label \"Warning\"@en ;\n\trdfs:comment \"The severity for a warning validation result.\"@en ;\n\trdfs:isDefinedBy sh: .\n\nsh:detail\n\ta rdf:Property ;\n\trdfs:label \"detail\"@en ;\n\trdfs:comment \"Links a result with other results that provide more details, for example to describe violations against nested shapes.\"@en ;\n\trdfs:domain sh:AbstractResult ;\n\trdfs:range sh:AbstractResult ;\n\trdfs:isDefinedBy sh: .\n\nsh:focusNode\n\ta rdf:Property ;\n\trdfs:label \"focus node\"@en ;\n\trdfs:comment \"The focus node that was validated when the result was produced.\"@en ;\n\trdfs:domain sh:AbstractResult ;\n\trdfs:isDefinedBy sh: .\n\nsh:resultMessage\n\ta rdf:Property ;\n\trdfs:label \"result message\"@en ;\n\trdfs:comment \"Human-readable messages explaining the cause of the result.\"@en ;\n\trdfs:domain sh:AbstractResult ;\n\t# range: xsd:string or rdf:langString\n\trdfs:isDefinedBy sh: .\n\nsh:resultPath\n\ta rdf:Property ;\n\trdfs:label \"result path\"@en ;\n\trdfs:comment \"The path of a validation result, based on the path of the validated property shape.\"@en ;\n\trdfs:domain sh:AbstractResult ;\n\trdfs:range rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:resultSeverity\n\ta rdf:Property ;\n\trdfs:label \"result severity\"@en ;\n\trdfs:comment \"The severity of the result, e.g. warning.\"@en ;\n\trdfs:domain sh:AbstractResult ;\n\trdfs:range sh:Severity ;\n\trdfs:isDefinedBy sh: .\n\nsh:sourceConstraint\n\ta rdf:Property ;\n\trdfs:label \"source constraint\"@en ;\n\trdfs:comment \"The constraint that was validated when the result was produced.\"@en ;\n\trdfs:domain sh:AbstractResult ;\n\trdfs:isDefinedBy sh: .\n\nsh:sourceShape\n\ta rdf:Property ;\n\trdfs:label \"source shape\"@en ;\n\trdfs:comment \"The shape that is was validated when the result was produced.\"@en ;\n\trdfs:domain sh:AbstractResult ;\n\trdfs:range sh:Shape ;\n\trdfs:isDefinedBy sh: .\n\nsh:sourceConstraintComponent\n\ta rdf:Property ;\n\trdfs:label \"source constraint component\"@en ;\n\trdfs:comment \"The constraint component that is the source of the result.\"@en ;\n\trdfs:domain sh:AbstractResult ;\n\trdfs:range sh:ConstraintComponent ;\n\trdfs:isDefinedBy sh: .\n\nsh:value\n\ta rdf:Property ;\n\trdfs:label \"value\"@en ;\n\trdfs:comment \"An RDF node that has caused the result.\"@en ;\n\trdfs:domain sh:AbstractResult ;\n\trdfs:isDefinedBy sh: .\n\n\t\n# Graph properties ------------------------------------------------------------\n\nsh:shapesGraph\n\ta rdf:Property ;\n\trdfs:label \"shapes graph\"@en ;\n\trdfs:comment \"Shapes graphs that should be used when validating this data graph.\"@en ;\n\trdfs:domain owl:Ontology ;\n\trdfs:range owl:Ontology ;\n\trdfs:isDefinedBy sh: .\n\nsh:suggestedShapesGraph\n\ta rdf:Property ;\n\trdfs:label \"suggested shapes graph\"@en ;\n\trdfs:comment \"Suggested shapes graphs for this ontology. The values of this property may be used in the absence of specific sh:shapesGraph statements.\"@en ;\n\trdfs:domain owl:Ontology ;\n\trdfs:range owl:Ontology ;\n\trdfs:isDefinedBy sh: .\n\nsh:entailment\n\ta rdf:Property ;\n\trdfs:label \"entailment\"@en ;\n\trdfs:comment \"An entailment regime that indicates what kind of inferencing is required by a shapes graph.\"@en ;\n\trdfs:domain owl:Ontology ;\n\trdfs:range rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\n\n# Path vocabulary -------------------------------------------------------------\n\nsh:path\n\ta rdf:Property ;\n\trdfs:label \"path\"@en ;\n\trdfs:comment \"Specifies the property path of a property shape.\"@en ;\n\trdfs:domain sh:PropertyShape ;\n\trdfs:range rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:inversePath\n\ta rdf:Property ;\n\trdfs:label \"inverse path\"@en ;\n\trdfs:comment \"The (single) value of this property represents an inverse path (object to subject).\"@en ;\n\trdfs:range rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:alternativePath\n\ta rdf:Property ;\n\trdfs:label \"alternative path\"@en ;\n\trdfs:comment \"The (single) value of this property must be a list of path elements, representing the elements of alternative paths.\"@en ;\n\trdfs:range rdf:List ;\n\trdfs:isDefinedBy sh: .\n\nsh:zeroOrMorePath\n\ta rdf:Property ;\n\trdfs:label \"zero or more path\"@en ;\n\trdfs:comment \"The (single) value of this property represents a path that is matched zero or more times.\"@en ;\n\trdfs:range rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:oneOrMorePath\n\ta rdf:Property ;\n\trdfs:label \"one or more path\"@en ;\n\trdfs:comment \"The (single) value of this property represents a path that is matched one or more times.\"@en ;\n\trdfs:range rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:zeroOrOnePath\n\ta rdf:Property ;\n\trdfs:label \"zero or one path\"@en ;\n\trdfs:comment \"The (single) value of this property represents a path that is matched zero or one times.\"@en ;\n\trdfs:range rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\n\n# Parameters metamodel --------------------------------------------------------\n\nsh:Parameterizable\n\ta rdfs:Class ;\n\trdfs:label \"Parameterizable\"@en ;\n\trdfs:comment \"Superclass of components that can take parameters, especially functions and constraint components.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:parameter\n\ta rdf:Property ;\n\trdfs:label \"parameter\"@en ;\n\trdfs:comment \"The parameters of a function or constraint component.\"@en ;\n\trdfs:domain sh:Parameterizable ;\n\trdfs:range sh:Parameter ;\n\trdfs:isDefinedBy sh: .\n\nsh:labelTemplate\n\ta rdf:Property ;\n\trdfs:label \"label template\"@en ;\n\trdfs:comment \"Outlines how human-readable labels of instances of the associated Parameterizable shall be produced. The values can contain {?paramName} as placeholders for the actual values of the given parameter.\"@en ;\n\trdfs:domain sh:Parameterizable ;\n\t# range: xsd:string or rdf:langString\n\trdfs:isDefinedBy sh: .\n\nsh:Parameter\n\ta rdfs:Class ;\n\trdfs:label \"Parameter\"@en ;\n\trdfs:comment \"The class of parameter declarations, consisting of a path predicate and (possibly) information about allowed value type, cardinality and other characteristics.\"@en ;\n\trdfs:subClassOf sh:PropertyShape ;\n\trdfs:isDefinedBy sh: .\n\nsh:optional\n\ta rdf:Property ;\n\trdfs:label \"optional\"@en ;\n\trdfs:comment \"Indicates whether a parameter is optional.\"@en ;\n\trdfs:domain sh:Parameter ;\n\trdfs:range xsd:boolean ;\n\trdfs:isDefinedBy sh: .\n\n\n# Constraint components metamodel ---------------------------------------------\n\nsh:ConstraintComponent\n\ta rdfs:Class ;\n\trdfs:label \"Constraint component\"@en ;\n\trdfs:comment \"The class of constraint components.\"@en ;\n\trdfs:subClassOf sh:Parameterizable ;\n\trdfs:isDefinedBy sh: .\n\nsh:validator\n\ta rdf:Property ;\n\trdfs:label \"validator\"@en ;\n\trdfs:comment \"The validator(s) used to evaluate constraints of either node or property shapes.\"@en ;\n\trdfs:domain sh:ConstraintComponent ;\n\trdfs:range sh:Validator ;\n\trdfs:isDefinedBy sh: .\n\nsh:nodeValidator\n\ta rdf:Property ;\n\trdfs:label \"shape validator\"@en ;\n\trdfs:comment \"The validator(s) used to evaluate a constraint in the context of a node shape.\"@en ;\n\trdfs:domain sh:ConstraintComponent ;\n\trdfs:range sh:Validator ;\n\trdfs:isDefinedBy sh: .\n\nsh:propertyValidator\n\ta rdf:Property ;\n\trdfs:label \"property validator\"@en ;\n\trdfs:comment \"The validator(s) used to evaluate a constraint in the context of a property shape.\"@en ;\n\trdfs:domain sh:ConstraintComponent ;\n\trdfs:range sh:Validator ;\n\trdfs:isDefinedBy sh: .\n\nsh:Validator\n\ta rdfs:Class ;\n\trdfs:label \"Validator\"@en ;\n\trdfs:comment \"The class of validators, which provide instructions on how to process a constraint definition. This class serves as base class for the SPARQL-based validators and other possible implementations.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:SPARQLAskValidator\n\ta rdfs:Class ;\n\trdfs:label \"SPARQL ASK validator\"@en ;\n\trdfs:comment \"The class of validators based on SPARQL ASK queries. The queries are evaluated for each value node and are supposed to return true if the given node conforms.\"@en ;\n\trdfs:subClassOf sh:Validator ;\n\trdfs:subClassOf sh:SPARQLAskExecutable ;\n\trdfs:isDefinedBy sh: .\n\nsh:SPARQLSelectValidator\n\ta rdfs:Class ;\n\trdfs:label \"SPARQL SELECT validator\"@en ;\n\trdfs:comment \"The class of validators based on SPARQL SELECT queries. The queries are evaluated for each focus node and are supposed to produce bindings for all focus nodes that do not conform.\"@en ;\n\trdfs:subClassOf sh:Validator ;\n\trdfs:subClassOf sh:SPARQLSelectExecutable ;\n\trdfs:isDefinedBy sh: .\n\n\n# Library of Core Constraint Components and their properties ------------------\n\nsh:AndConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"And constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to test whether a value node conforms to all members of a provided list of shapes.\"@en ;\n\tsh:parameter sh:AndConstraintComponent-and ;\n\trdfs:isDefinedBy sh: .\n\nsh:AndConstraintComponent-and\n\ta sh:Parameter ;\n\tsh:path sh:and ;\n\trdfs:isDefinedBy sh: .\n\nsh:and\n\ta rdf:Property ;\n\trdfs:label \"and\"@en ;\n\trdfs:comment \"RDF list of shapes to validate the value nodes against.\"@en ;\n\trdfs:range rdf:List ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:ClassConstraintComponent \n\ta sh:ConstraintComponent ;\n\trdfs:label \"Class constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to verify that each value node is an instance of a given type.\"@en ;\n\tsh:parameter sh:ClassConstraintComponent-class ;\n\trdfs:isDefinedBy sh: .\n\nsh:ClassConstraintComponent-class\n\ta sh:Parameter ;\n\tsh:path sh:class ;\n\tsh:nodeKind sh:IRI ;\n\trdfs:isDefinedBy sh: .\n\nsh:class\n\ta rdf:Property ;\n\trdfs:label \"class\"@en ;\n\trdfs:comment \"The type that all value nodes must have.\"@en ;\n\trdfs:range rdfs:Class ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:ClosedConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Closed constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to indicate that focus nodes must only have values for those properties that have been explicitly enumerated via sh:property/sh:path.\"@en ;\n\tsh:parameter sh:ClosedConstraintComponent-closed ;\n\tsh:parameter sh:ClosedConstraintComponent-ignoredProperties ;\n\trdfs:isDefinedBy sh: .\n\nsh:ClosedConstraintComponent-closed\n\ta sh:Parameter ; \n\tsh:path sh:closed ;\n\tsh:datatype xsd:boolean ;\n\trdfs:isDefinedBy sh: .\n\nsh:ClosedConstraintComponent-ignoredProperties\n\ta sh:Parameter ;\n\tsh:path sh:ignoredProperties ;\n\tsh:optional true ;\n\trdfs:isDefinedBy sh: .\n\nsh:closed\n\ta rdf:Property ;\n\trdfs:label \"closed\"@en ;\n\trdfs:comment \"If set to true then the shape is closed.\"@en ;\n\trdfs:range xsd:boolean ;\n\trdfs:isDefinedBy sh: .\n\nsh:ignoredProperties\n\ta rdf:Property ;\n\trdfs:label \"ignored properties\"@en ;\n\trdfs:comment \"An optional RDF list of properties that are also permitted in addition to those explicitly enumerated via sh:property/sh:path.\"@en ;\n\trdfs:range rdf:List ;    # members: rdf:Property\n\trdfs:isDefinedBy sh: .\n\n\nsh:DatatypeConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Datatype constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to restrict the datatype of all value nodes.\"@en ;\n\tsh:parameter sh:DatatypeConstraintComponent-datatype ;\n\trdfs:isDefinedBy sh: .\n\nsh:DatatypeConstraintComponent-datatype\n\ta sh:Parameter ;\n\tsh:path sh:datatype ;\n\tsh:nodeKind sh:IRI ;\n\tsh:maxCount 1 ;\n\trdfs:isDefinedBy sh: .\n\nsh:datatype\n\ta rdf:Property ;\n\trdfs:label \"datatype\"@en ;\n\trdfs:comment \"Specifies an RDF datatype that all value nodes must have.\"@en ;\n\trdfs:range rdfs:Datatype ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:DisjointConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Disjoint constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to verify that the set of value nodes is disjoint with the the set of nodes that have the focus node as subject and the value of a given property as predicate.\"@en ;\n\tsh:parameter sh:DisjointConstraintComponent-disjoint ;\n\trdfs:isDefinedBy sh: .\n\nsh:DisjointConstraintComponent-disjoint\n\ta sh:Parameter ;\n\tsh:path sh:disjoint ;\n\tsh:nodeKind sh:IRI ;\n\trdfs:isDefinedBy sh: .\n\nsh:disjoint\n\ta rdf:Property ;\n\trdfs:label \"disjoint\"@en ;\n\trdfs:comment \"Specifies a property where the set of values must be disjoint with the value nodes.\"@en ;\n\trdfs:range rdf:Property ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:EqualsConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Equals constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to verify that the set of value nodes is equal to the set of nodes that have the focus node as subject and the value of a given property as predicate.\"@en ;\n\tsh:parameter sh:EqualsConstraintComponent-equals ;\n\trdfs:isDefinedBy sh: .\n\nsh:EqualsConstraintComponent-equals\n\ta sh:Parameter ;\n\tsh:path sh:equals ;\n\tsh:nodeKind sh:IRI ;\n\trdfs:isDefinedBy sh: .\n\nsh:equals\n\ta rdf:Property ;\n\trdfs:label \"equals\"@en ;\n\trdfs:comment \"Specifies a property that must have the same values as the value nodes.\"@en ;\n\trdfs:range rdf:Property ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:HasValueConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Has-value constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to verify that one of the value nodes is a given RDF node.\"@en ;\n\tsh:parameter sh:HasValueConstraintComponent-hasValue ;\n\trdfs:isDefinedBy sh: .\n\nsh:HasValueConstraintComponent-hasValue\n\ta sh:Parameter ;\n\tsh:path sh:hasValue ;\n\trdfs:isDefinedBy sh: .\n\nsh:hasValue\n\ta rdf:Property ;\n\trdfs:label \"has value\"@en ;\n\trdfs:comment \"Specifies a value that must be among the value nodes.\"@en ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:InConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"In constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to exclusively enumerate the permitted value nodes.\"@en ;\n\tsh:parameter sh:InConstraintComponent-in ;\n\trdfs:isDefinedBy sh: .\n\nsh:InConstraintComponent-in\n\ta sh:Parameter ;\n\tsh:path sh:in ;\n\tsh:maxCount 1 ;\n\trdfs:isDefinedBy sh: .\n\nsh:in\n\ta rdf:Property ;\n\trdfs:label \"in\"@en ;\n\trdfs:comment \"Specifies a list of allowed values so that each value node must be among the members of the given list.\"@en ;\n\trdfs:range rdf:List ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:LanguageInConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Language-in constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to enumerate language tags that all value nodes must have.\"@en ;\n\tsh:parameter sh:LanguageInConstraintComponent-languageIn ;\n\trdfs:isDefinedBy sh: .\n\nsh:LanguageInConstraintComponent-languageIn\n\ta sh:Parameter ;\n\tsh:path sh:languageIn ;\n\tsh:maxCount 1 ;\n\trdfs:isDefinedBy sh: .\n\nsh:languageIn\n\ta rdf:Property ;\n\trdfs:label \"language in\"@en ;\n\trdfs:comment \"Specifies a list of language tags that all value nodes must have.\"@en ;\n\trdfs:range rdf:List ;   # members: xsd:string\n\trdfs:isDefinedBy sh: .\n\n\nsh:LessThanConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Less-than constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to verify that each value node is smaller than all the nodes that have the focus node as subject and the value of a given property as predicate.\"@en ;\n\tsh:parameter sh:LessThanConstraintComponent-lessThan ;\n\trdfs:isDefinedBy sh: .\n\nsh:LessThanConstraintComponent-lessThan\n\ta sh:Parameter ;\n\tsh:path sh:lessThan ;\n\tsh:nodeKind sh:IRI ;\n\trdfs:isDefinedBy sh: .\n\nsh:lessThan\n\ta rdf:Property ;\n\trdfs:label \"less than\"@en ;\n\trdfs:comment \"Specifies a property that must have smaller values than the value nodes.\"@en ;\n\trdfs:range rdf:Property ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:LessThanOrEqualsConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"less-than-or-equals constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to verify that every value node is smaller than all the nodes that have the focus node as subject and the value of a given property as predicate.\"@en ;\n\tsh:parameter sh:LessThanOrEqualsConstraintComponent-lessThanOrEquals ;\n\trdfs:isDefinedBy sh: .\n\nsh:LessThanOrEqualsConstraintComponent-lessThanOrEquals\n\ta sh:Parameter ;\n\tsh:path sh:lessThanOrEquals ;\n\tsh:nodeKind sh:IRI ;\n\trdfs:isDefinedBy sh: .\n\nsh:lessThanOrEquals\n\ta rdf:Property ;\n\trdfs:label \"less than or equals\"@en ;\n\trdfs:comment \"Specifies a property that must have smaller or equal values than the value nodes.\"@en ;\n\trdfs:range rdf:Property ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:MaxCountConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Max-count constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to restrict the maximum number of value nodes.\"@en ;\n\tsh:parameter sh:MaxCountConstraintComponent-maxCount ;\n\trdfs:isDefinedBy sh: .\n\nsh:MaxCountConstraintComponent-maxCount\n\ta sh:Parameter ;\n\tsh:path sh:maxCount ;\n\tsh:datatype xsd:integer ;\n\tsh:maxCount 1 ;\n\trdfs:isDefinedBy sh: .\n\nsh:maxCount\n\ta rdf:Property ;\n\trdfs:label \"max count\"@en ;\n\trdfs:comment \"Specifies the maximum number of values in the set of value nodes.\"@en ;\n\trdfs:range xsd:integer ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:MaxExclusiveConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Max-exclusive constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to restrict the range of value nodes with a maximum exclusive value.\"@en ;\n\tsh:parameter sh:MaxExclusiveConstraintComponent-maxExclusive ;\n\trdfs:isDefinedBy sh: .\n\nsh:MaxExclusiveConstraintComponent-maxExclusive\n\ta sh:Parameter ;\n\tsh:path sh:maxExclusive ;\n\tsh:maxCount 1 ;\n\tsh:nodeKind sh:Literal ;\n\trdfs:isDefinedBy sh: .\n\nsh:maxExclusive\n\ta rdf:Property ;\n\trdfs:label \"max exclusive\"@en ;\n\trdfs:comment \"Specifies the maximum exclusive value of each value node.\"@en ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:MaxInclusiveConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Max-inclusive constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to restrict the range of value nodes with a maximum inclusive value.\"@en ;\n\tsh:parameter sh:MaxInclusiveConstraintComponent-maxInclusive ;\n\trdfs:isDefinedBy sh: .\n\nsh:MaxInclusiveConstraintComponent-maxInclusive\n\ta sh:Parameter ;\n\tsh:path sh:maxInclusive ;\n\tsh:maxCount 1 ;\n\tsh:nodeKind sh:Literal ;\n\trdfs:isDefinedBy sh: .\n\nsh:maxInclusive\n\ta rdf:Property ;\n\trdfs:label \"max inclusive\"@en ;\n\trdfs:comment \"Specifies the maximum inclusive value of each value node.\"@en ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:MaxLengthConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Max-length constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to restrict the maximum string length of value nodes.\"@en ;\n\tsh:parameter sh:MaxLengthConstraintComponent-maxLength ;\n\trdfs:isDefinedBy sh: .\n\nsh:MaxLengthConstraintComponent-maxLength\n\ta sh:Parameter ;\n\tsh:path sh:maxLength ;\n\tsh:datatype xsd:integer ;\n\tsh:maxCount 1 ;\n\trdfs:isDefinedBy sh: .\n\nsh:maxLength\n\ta rdf:Property ;\n\trdfs:label \"max length\"@en ;\n\trdfs:comment \"Specifies the maximum string length of each value node.\"@en ;\n\trdfs:range xsd:integer ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:MinCountConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Min-count constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to restrict the minimum number of value nodes.\"@en ;\n\tsh:parameter sh:MinCountConstraintComponent-minCount ;\n\trdfs:isDefinedBy sh: .\n\nsh:MinCountConstraintComponent-minCount\n\ta sh:Parameter ;\n\tsh:path sh:minCount ;\n\tsh:datatype xsd:integer ;\n\tsh:maxCount 1 ;\n\trdfs:isDefinedBy sh: .\n\nsh:minCount\n\ta rdf:Property ;\n\trdfs:label \"min count\"@en ;\n\trdfs:comment \"Specifies the minimum number of values in the set of value nodes.\"@en ;\n\trdfs:range xsd:integer ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:MinExclusiveConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Min-exclusive constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to restrict the range of value nodes with a minimum exclusive value.\"@en ;\n\tsh:parameter sh:MinExclusiveConstraintComponent-minExclusive ;\n\trdfs:isDefinedBy sh: .\n\nsh:MinExclusiveConstraintComponent-minExclusive\n\ta sh:Parameter ;\n\tsh:path sh:minExclusive ;\n\tsh:maxCount 1 ;\n\tsh:nodeKind sh:Literal ;\n\trdfs:isDefinedBy sh: .\n\nsh:minExclusive\n\ta rdf:Property ;\n\trdfs:label \"min exclusive\"@en ;\n\trdfs:comment \"Specifies the minimum exclusive value of each value node.\"@en ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:MinInclusiveConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Min-inclusive constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to restrict the range of value nodes with a minimum inclusive value.\"@en ;\n\tsh:parameter sh:MinInclusiveConstraintComponent-minInclusive ;\n\trdfs:isDefinedBy sh: .\n\nsh:MinInclusiveConstraintComponent-minInclusive\n\ta sh:Parameter ;\n\tsh:path sh:minInclusive ;\n\tsh:maxCount 1 ;\n\tsh:nodeKind sh:Literal ;\n\trdfs:isDefinedBy sh: .\n\nsh:minInclusive\n\ta rdf:Property ;\n\trdfs:label \"min inclusive\"@en ;\n\trdfs:comment \"Specifies the minimum inclusive value of each value node.\"@en ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:MinLengthConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Min-length constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to restrict the minimum string length of value nodes.\"@en ;\n\tsh:parameter sh:MinLengthConstraintComponent-minLength ;\n\trdfs:isDefinedBy sh: .\n\nsh:MinLengthConstraintComponent-minLength\n\ta sh:Parameter ;\n\tsh:path sh:minLength ;\n\tsh:datatype xsd:integer ;\n\tsh:maxCount 1 ;\n\trdfs:isDefinedBy sh: .\n\nsh:minLength\n\ta rdf:Property ;\n\trdfs:label \"min length\"@en ;\n\trdfs:comment \"Specifies the minimum string length of each value node.\"@en ;\n\trdfs:range xsd:integer ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:NodeConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Node constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to verify that all value nodes conform to the given node shape.\"@en ;\n\tsh:parameter sh:NodeConstraintComponent-node ;\n\trdfs:isDefinedBy sh: .\n\nsh:NodeConstraintComponent-node\n\ta sh:Parameter ;\n\tsh:path sh:node ;\n\trdfs:isDefinedBy sh: .\n\nsh:node\n\ta rdf:Property ;\n\trdfs:label \"node\"@en ;\n\trdfs:comment \"Specifies the node shape that all value nodes must conform to.\"@en ;\n\trdfs:range sh:NodeShape ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:NodeKindConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Node-kind constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to restrict the RDF node kind of each value node.\"@en ;\n\tsh:parameter sh:NodeKindConstraintComponent-nodeKind ;\n\trdfs:isDefinedBy sh: .\n\nsh:NodeKindConstraintComponent-nodeKind\n\ta sh:Parameter ;\n\tsh:path sh:nodeKind ;\n\tsh:in ( sh:BlankNode sh:IRI sh:Literal sh:BlankNodeOrIRI sh:BlankNodeOrLiteral sh:IRIOrLiteral ) ;\n\tsh:maxCount 1 ;\n\trdfs:isDefinedBy sh: .\n\nsh:nodeKind\n\ta rdf:Property ;\n\trdfs:label \"node kind\"@en ;\n\trdfs:comment \"Specifies the node kind (e.g. IRI or literal) each value node.\"@en ;\n\trdfs:range sh:NodeKind ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:NotConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Not constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to verify that value nodes do not conform to a given shape.\"@en ;\n\tsh:parameter sh:NotConstraintComponent-not ;\n\trdfs:isDefinedBy sh: .\n\nsh:NotConstraintComponent-not\n\ta sh:Parameter ;\n\tsh:path sh:not ;\n\trdfs:isDefinedBy sh: .\n\nsh:not\n\ta rdf:Property ;\n\trdfs:label \"not\"@en ;\n\trdfs:comment \"Specifies a shape that the value nodes must not conform to.\"@en ;\n\trdfs:range sh:Shape ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:OrConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Or constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to restrict the value nodes so that they conform to at least one out of several provided shapes.\"@en ;\n\tsh:parameter sh:OrConstraintComponent-or ;\n\trdfs:isDefinedBy sh: .\n\nsh:OrConstraintComponent-or\n\ta sh:Parameter ;\n\tsh:path sh:or ;\n\trdfs:isDefinedBy sh: .\n\nsh:or\n\ta rdf:Property ;\n\trdfs:label \"or\"@en ;\n\trdfs:comment \"Specifies a list of shapes so that the value nodes must conform to at least one of the shapes.\"@en ;\n\trdfs:range rdf:List ;    # members: sh:Shape ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:PatternConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Pattern constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to verify that every value node matches a given regular expression.\"@en ;\n\tsh:parameter sh:PatternConstraintComponent-pattern ;\n\tsh:parameter sh:PatternConstraintComponent-flags ;\n\trdfs:isDefinedBy sh: .\n\nsh:PatternConstraintComponent-pattern\n\ta sh:Parameter ;\n\tsh:path sh:pattern ;\n\tsh:datatype xsd:string ;\n\trdfs:isDefinedBy sh: .\n\nsh:PatternConstraintComponent-flags\n\ta sh:Parameter ;\n\tsh:path sh:flags ;\n\tsh:datatype xsd:string ;\n\tsh:optional true ;\n\trdfs:isDefinedBy sh: .\n\nsh:flags\n\ta rdf:Property ;\n\trdfs:label \"flags\"@en ;\n\trdfs:comment \"An optional flag to be used with regular expression pattern matching.\"@en ;\n\trdfs:range xsd:string ;\n\trdfs:isDefinedBy sh: .\n\nsh:pattern\n\ta rdf:Property ;\n\trdfs:label \"pattern\"@en ;\n\trdfs:comment \"Specifies a regular expression pattern that the string representations of the value nodes must match.\"@en ;\n\trdfs:range xsd:string ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:PropertyConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Property constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to verify that all value nodes conform to the given property shape.\"@en ;\n\tsh:parameter sh:PropertyConstraintComponent-property ;\n\trdfs:isDefinedBy sh: .\n\nsh:PropertyConstraintComponent-property\n\ta sh:Parameter ;\n\tsh:path sh:property ;\n\trdfs:isDefinedBy sh: .\n\nsh:property\n\ta rdf:Property ;\n\trdfs:label \"property\"@en ;\n\trdfs:comment \"Links a shape to its property shapes.\"@en ;\n\trdfs:domain sh:Shape ;\n\trdfs:range sh:PropertyShape ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:QualifiedMaxCountConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Qualified-max-count constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to verify that a specified maximum number of value nodes conforms to a given shape.\"@en ;\n\tsh:parameter sh:QualifiedMaxCountConstraintComponent-qualifiedMaxCount ;\n\tsh:parameter sh:QualifiedMaxCountConstraintComponent-qualifiedValueShape ;\n\tsh:parameter sh:QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint ;\n\trdfs:isDefinedBy sh: .\n\nsh:QualifiedMaxCountConstraintComponent-qualifiedMaxCount\n\ta sh:Parameter ;\n\tsh:path sh:qualifiedMaxCount ;\n\tsh:datatype xsd:integer ;\n\trdfs:isDefinedBy sh: .\n\nsh:QualifiedMaxCountConstraintComponent-qualifiedValueShape\n\ta sh:Parameter ;\n\tsh:path sh:qualifiedValueShape ;\n\trdfs:isDefinedBy sh: .\n\nsh:QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint\n\ta sh:Parameter ;\n\tsh:path sh:qualifiedValueShapesDisjoint ;\n\tsh:datatype xsd:boolean ;\n\tsh:optional true ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:QualifiedMinCountConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Qualified-min-count constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to verify that a specified minimum number of value nodes conforms to a given shape.\"@en ;\n\tsh:parameter sh:QualifiedMinCountConstraintComponent-qualifiedMinCount ;\n\tsh:parameter sh:QualifiedMinCountConstraintComponent-qualifiedValueShape ;\n\tsh:parameter sh:QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint ;\n\trdfs:isDefinedBy sh: .\n\nsh:QualifiedMinCountConstraintComponent-qualifiedMinCount\n\ta sh:Parameter ;\n\tsh:path sh:qualifiedMinCount ;\n\tsh:datatype xsd:integer ;\n\trdfs:isDefinedBy sh: .\n\nsh:QualifiedMinCountConstraintComponent-qualifiedValueShape\n\ta sh:Parameter ;\n\tsh:path sh:qualifiedValueShape ;\n\trdfs:isDefinedBy sh: .\n\nsh:QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint\n\ta sh:Parameter ;\n\tsh:path sh:qualifiedValueShapesDisjoint ;\n\tsh:datatype xsd:boolean ;\n\tsh:optional true ;\n\trdfs:isDefinedBy sh: .\n\nsh:qualifiedMaxCount\n\ta rdf:Property ;\n\trdfs:label \"qualified max count\"@en ;\n\trdfs:comment \"The maximum number of value nodes that can conform to the shape.\"@en ;\n\trdfs:range xsd:integer ;\n\trdfs:isDefinedBy sh: .\n\nsh:qualifiedMinCount\n\ta rdf:Property ;\n\trdfs:label \"qualified min count\"@en ;\n\trdfs:comment \"The minimum number of value nodes that must conform to the shape.\"@en ;\n\trdfs:range xsd:integer ;\n\trdfs:isDefinedBy sh: .\n\nsh:qualifiedValueShape\n\ta rdf:Property ;\n\trdfs:label \"qualified value shape\"@en ;\n\trdfs:comment \"The shape that a specified number of values must conform to.\"@en ;\n\trdfs:range sh:Shape ;\n\trdfs:isDefinedBy sh: .\n\t\nsh:qualifiedValueShapesDisjoint\n\ta rdf:Property ;\n\trdfs:label \"qualified value shapes disjoint\"@en ;\n\trdfs:comment \"Can be used to mark the qualified value shape to be disjoint with its sibling shapes.\"@en ;\n\trdfs:range xsd:boolean ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:UniqueLangConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Unique-languages constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to specify that no pair of value nodes may use the same language tag.\"@en ;\n\tsh:parameter sh:UniqueLangConstraintComponent-uniqueLang ;\n\trdfs:isDefinedBy sh: .\n\nsh:UniqueLangConstraintComponent-uniqueLang\n\ta sh:Parameter ;\n\tsh:path sh:uniqueLang ;\n\tsh:datatype xsd:boolean ;\n\tsh:maxCount 1 ;\n\trdfs:isDefinedBy sh: .\n\nsh:uniqueLang\n\ta rdf:Property ;\n\trdfs:label \"unique languages\"@en ;\n\trdfs:comment \"Specifies whether all node values must have a unique (or no) language tag.\"@en ;\n\trdfs:range xsd:boolean ;\n\trdfs:isDefinedBy sh: .\n\n\nsh:XoneConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Exactly one constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to restrict the value nodes so that they conform to exactly one out of several provided shapes.\"@en ;\n\tsh:parameter sh:XoneConstraintComponent-xone ;\n\trdfs:isDefinedBy sh: .\n\nsh:XoneConstraintComponent-xone\n\ta sh:Parameter ;\n\tsh:path sh:xone ;\n\trdfs:isDefinedBy sh: .\n\nsh:xone\n\ta rdf:Property ;\n\trdfs:label \"exactly one\"@en ;\n\trdfs:comment \"Specifies a list of shapes so that the value nodes must conform to exactly one of the shapes.\"@en ;\n\trdfs:range rdf:List ;    # members: sh:Shape ;\n\trdfs:isDefinedBy sh: .\n\n\n# General SPARQL execution support --------------------------------------------\n\nsh:SPARQLExecutable\n\ta rdfs:Class ;\n\trdfs:label \"SPARQL executable\"@en ;\n\trdfs:comment \"The class of resources that encapsulate a SPARQL query.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:SPARQLAskExecutable\n\ta rdfs:Class ;\n\trdfs:label \"SPARQL ASK executable\"@en ;\n\trdfs:comment \"The class of SPARQL executables that are based on an ASK query.\"@en ;\n\trdfs:subClassOf sh:SPARQLExecutable ;\n\trdfs:isDefinedBy sh: .\n\nsh:ask\n\ta rdf:Property ;\n\trdfs:label \"ask\"@en ;\n\trdfs:comment \"The SPARQL ASK query to execute.\"@en ;\n\trdfs:domain sh:SPARQLAskExecutable ;\n\trdfs:range xsd:string ;\n\trdfs:isDefinedBy sh: .\n\nsh:SPARQLConstructExecutable\n\ta rdfs:Class ;\n\trdfs:label \"SPARQL CONSTRUCT executable\"@en ;\n\trdfs:comment \"The class of SPARQL executables that are based on a CONSTRUCT query.\"@en ;\n\trdfs:subClassOf sh:SPARQLExecutable ;\n\trdfs:isDefinedBy sh: .\n\nsh:construct\n\ta rdf:Property ;\n\trdfs:label \"construct\"@en ;\n\trdfs:comment \"The SPARQL CONSTRUCT query to execute.\"@en ;\n\trdfs:domain sh:SPARQLConstructExecutable ;\n\trdfs:range xsd:string ;\n\trdfs:isDefinedBy sh: .\n\nsh:SPARQLSelectExecutable\n\ta rdfs:Class ;\n\trdfs:label \"SPARQL SELECT executable\"@en ;\n\trdfs:comment \"The class of SPARQL executables based on a SELECT query.\"@en ;\n\trdfs:subClassOf sh:SPARQLExecutable ;\n\trdfs:isDefinedBy sh: .\n\nsh:select\n\ta rdf:Property ;\n\trdfs:label \"select\"@en ;\n\trdfs:comment \"The SPARQL SELECT query to execute.\"@en ;\n\trdfs:range xsd:string ;\n\trdfs:domain sh:SPARQLSelectExecutable ;\n\trdfs:isDefinedBy sh: .\n\nsh:SPARQLUpdateExecutable\n\ta rdfs:Class ;\n\trdfs:label \"SPARQL UPDATE executable\"@en ;\n\trdfs:comment \"The class of SPARQL executables based on a SPARQL UPDATE.\"@en ;\n\trdfs:subClassOf sh:SPARQLExecutable ;\n\trdfs:isDefinedBy sh: .\n\nsh:update\n\ta rdf:Property ;\n\trdfs:label \"update\"@en ;\n\trdfs:comment \"The SPARQL UPDATE to execute.\"@en ;\n\trdfs:domain sh:SPARQLUpdateExecutable ;\n\trdfs:range xsd:string ;\n\trdfs:isDefinedBy sh: .\n\nsh:prefixes\n\ta rdf:Property ;\n\trdfs:label \"prefixes\"@en ;\n\trdfs:comment \"The prefixes that shall be applied before parsing the associated SPARQL query.\"@en ;\n\trdfs:domain sh:SPARQLExecutable ;\n\trdfs:range owl:Ontology ;\n\trdfs:isDefinedBy sh: .\n\nsh:PrefixDeclaration\n\ta rdfs:Class ;\n\trdfs:label \"Prefix declaration\"@en ;\n\trdfs:comment \"The class of prefix declarations, consisting of pairs of a prefix with a namespace.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:declare\n\ta rdf:Property ;\n\trdfs:label \"declare\"@en ;\n\trdfs:comment \"Links a resource with its namespace prefix declarations.\"@en ;\n\trdfs:domain owl:Ontology ;\n\trdfs:range sh:PrefixDeclaration ;\n\trdfs:isDefinedBy sh: .\n\nsh:prefix\n\ta rdf:Property ;\n\trdfs:label \"prefix\"@en ;\n\trdfs:comment \"The prefix of a prefix declaration.\"@en ;\n\trdfs:domain sh:PrefixDeclaration ;\n\trdfs:range xsd:string ;\n\trdfs:isDefinedBy sh: .\n\nsh:namespace\n\ta rdf:Property ;\n\trdfs:label \"namespace\"@en ;\n\trdfs:comment \"The namespace associated with a prefix in a prefix declaration.\"@en ;\n\trdfs:domain sh:PrefixDeclaration ;\n\trdfs:range xsd:anyURI ;\n\trdfs:isDefinedBy sh: .\n\t\n\n# SPARQL-based Constraints support --------------------------------------------\n\nsh:SPARQLConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"SPARQL constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to define constraints based on SPARQL queries.\"@en ;\n\tsh:parameter sh:SPARQLConstraintComponent-sparql ;\n\trdfs:isDefinedBy sh: .\n\nsh:SPARQLConstraintComponent-sparql\n\ta sh:Parameter ;\n\tsh:path sh:sparql ;\n\trdfs:isDefinedBy sh: .\n\nsh:sparql\n\ta rdf:Property ;\n\trdfs:label \"constraint (in SPARQL)\"@en ;\n\trdfs:comment \"Links a shape with SPARQL constraints.\"@en ;\n\trdfs:domain sh:Shape ;\n\trdfs:range sh:SPARQLConstraint ;\n\trdfs:isDefinedBy sh: .\n\nsh:SPARQLConstraint\n\ta rdfs:Class ;\n\trdfs:label \"SPARQL constraint\"@en ;\n\trdfs:comment \"The class of constraints based on SPARQL SELECT queries.\"@en ;\n\trdfs:subClassOf sh:SPARQLSelectExecutable ;\n\trdfs:isDefinedBy sh: .\n\n\n# Non-validating constraint properties ----------------------------------------\n\nsh:defaultValue\n\ta rdf:Property ;\n\trdfs:label \"default value\"@en ;\n\trdfs:comment \"A default value for a property, for example for user interface tools to pre-populate input fields.\"@en ;\n\trdfs:domain sh:PropertyShape ;\n\trdfs:isDefinedBy sh: .\n\nsh:description\n\ta rdf:Property ;\n\trdfs:label \"description\"@en ;\n\trdfs:comment \"Human-readable descriptions for the property in the context of the surrounding shape.\"@en ;\n\trdfs:domain sh:PropertyShape ;\n\t# range: xsd:string or rdf:langString\n\trdfs:isDefinedBy sh: .\n\nsh:group\n\ta rdf:Property ;\n\trdfs:label \"group\"@en ;\n\trdfs:comment \"Can be used to link to a property group to indicate that a property shape belongs to a group of related property shapes.\"@en ;\n\trdfs:domain sh:PropertyShape ;\n\trdfs:range sh:PropertyGroup ;\n\trdfs:isDefinedBy sh: .\n\nsh:name\n\ta rdf:Property ;\n\trdfs:label \"name\"@en ;\n\trdfs:comment \"Human-readable labels for the property in the context of the surrounding shape.\"@en ;\n\trdfs:domain sh:PropertyShape ;\n\t# range: xsd:string or rdf:langString\n\trdfs:isDefinedBy sh: .\n\nsh:order\n\ta rdf:Property ;\n\trdfs:label \"order\"@en ;\n\trdfs:comment \"Specifies the relative order of this compared to its siblings. For example use 0 for the first, 1 for the second.\"@en ;\n\t# range: xsd:decimal or xsd:integer ;\n\trdfs:isDefinedBy sh: .\n\nsh:PropertyGroup\n\ta rdfs:Class ;\n\trdfs:label \"Property group\"@en ;\n\trdfs:comment \"Instances of this class represent groups of property shapes that belong together.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\n\n# -----------------------------------------------------------------------------\n# SHACL ADVANCED FEATURES -----------------------------------------------------\n# -----------------------------------------------------------------------------\n\t\n\n# Advanced Target vocabulary --------------------------------------------------\n\nsh:target\n\ta rdf:Property ;\n\trdfs:label \"target\"@en ;\n\trdfs:comment \"Links a shape to a target specified by an extension language, for example instances of sh:SPARQLTarget.\"@en ;\n\trdfs:domain sh:Shape ;\n\trdfs:range sh:Target ;\n\trdfs:isDefinedBy sh: .\n\nsh:Target\n\ta rdfs:Class ;\n\trdfs:label \"Target\"@en ;\n\trdfs:comment \"The base class of targets such as those based on SPARQL queries.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:TargetType\n\ta rdfs:Class ;\n\trdfs:label \"Target type\"@en ;\n\trdfs:comment \"The (meta) class for parameterizable targets.\tInstances of this are instantiated as values of the sh:target property.\"@en ;\n\trdfs:subClassOf rdfs:Class ;\n\trdfs:subClassOf sh:Parameterizable ;\n\trdfs:isDefinedBy sh: .\n\nsh:SPARQLTarget\n\ta rdfs:Class ;\n\trdfs:label \"SPARQL target\"@en ;\n\trdfs:comment \"The class of targets that are based on SPARQL queries.\"@en ;\n\trdfs:subClassOf sh:Target ;\n\trdfs:subClassOf sh:SPARQLAskExecutable ;\n\trdfs:subClassOf sh:SPARQLSelectExecutable ;\n\trdfs:isDefinedBy sh: .\n\nsh:SPARQLTargetType\n\ta rdfs:Class ;\n\trdfs:label \"SPARQL target type\"@en ;\n\trdfs:comment \"The (meta) class for parameterizable targets that are based on SPARQL queries.\"@en ;\n\trdfs:subClassOf sh:TargetType ;\n\trdfs:subClassOf sh:SPARQLAskExecutable ;\n\trdfs:subClassOf sh:SPARQLSelectExecutable ;\n\trdfs:isDefinedBy sh: .\n\n\n# Functions Vocabulary --------------------------------------------------------\n\nsh:Function\n\ta rdfs:Class ;\n\trdfs:label \"Function\"@en ;\n\trdfs:comment \"The class of SHACL functions.\"@en ;\n\trdfs:subClassOf sh:Parameterizable ;\n\trdfs:isDefinedBy sh: .\n\nsh:returnType\n\ta rdf:Property ;\n\trdfs:label \"return type\"@en ;\n\trdfs:comment \"The expected type of values returned by the associated function.\"@en ;\n\trdfs:domain sh:Function ;\n\trdfs:range rdfs:Class ;\n\trdfs:isDefinedBy sh: .\n\nsh:SPARQLFunction\n\ta rdfs:Class ;\n\trdfs:label \"SPARQL function\"@en ;\n\trdfs:comment \"A function backed by a SPARQL query - either ASK or SELECT.\"@en ;\n\trdfs:subClassOf sh:Function ;\n\trdfs:subClassOf sh:SPARQLAskExecutable ;\n\trdfs:subClassOf sh:SPARQLSelectExecutable ;\n\trdfs:isDefinedBy sh: .\n\n\n# Result Annotations ----------------------------------------------------------\n\nsh:resultAnnotation\n\ta rdf:Property ;\n\trdfs:label \"result annotation\"@en ;\n\trdfs:comment \"Links a SPARQL validator with zero or more sh:ResultAnnotation instances, defining how to derive additional result properties based on the variables of the SELECT query.\"@en ;\n\trdfs:domain sh:SPARQLSelectValidator ;\n\trdfs:range sh:ResultAnnotation ;\n\trdfs:isDefinedBy sh: .\n\nsh:ResultAnnotation\n\ta rdfs:Class ;\n\trdfs:label \"Result annotation\"@en ;\n\trdfs:comment \"A class of result annotations, which define the rules to derive the values of a given annotation property as extra values for a validation result.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:annotationProperty\n\ta rdf:Property ;\n\trdfs:label \"annotation property\"@en ;\n\trdfs:comment \"The annotation property that shall be set.\"@en ;\n\trdfs:domain sh:ResultAnnotation ;\n\trdfs:range rdf:Property ;\n\trdfs:isDefinedBy sh: .\n\nsh:annotationValue\n\ta rdf:Property ;\n\trdfs:label \"annotation value\"@en ;\n\trdfs:comment \"The (default) values of the annotation property.\"@en ;\n\trdfs:domain sh:ResultAnnotation ;\n\trdfs:isDefinedBy sh: .\n\nsh:annotationVarName\n\ta rdf:Property ;\n\trdfs:label \"annotation variable name\"@en ;\n\trdfs:comment \"The name of the SPARQL variable from the SELECT clause that shall be used for the values.\"@en ;\n\trdfs:domain sh:ResultAnnotation ;\n\trdfs:range xsd:string ;\n\trdfs:isDefinedBy sh: .\n\n\t\n# Node Expressions ------------------------------------------------------------\n\nsh:this\n\ta rdfs:Resource ;\n\trdfs:label \"this\"@en ;\n\trdfs:comment \"A node expression that represents the current focus node.\"@en ;\n\trdfs:isDefinedBy sh: .\n\nsh:filterShape\n\ta rdf:Property ;\n\trdfs:label \"filter shape\"@en ;\n\trdfs:comment \"The shape that all input nodes of the expression need to conform to.\"@en ;\n\trdfs:range sh:Shape ;\n\trdfs:isDefinedBy sh: .\n\nsh:nodes\n\ta rdf:Property ;\n\trdfs:label \"nodes\"@en ;\n\trdfs:comment \"The node expression producing the input nodes of a filter shape expression.\"@en ;\n\trdfs:isDefinedBy sh: .\n\nsh:intersection\n\ta rdf:Property ;\n\trdfs:label \"intersection\"@en ;\n\trdfs:comment \"A list of node expressions that shall be intersected.\"@en ;\n\trdfs:isDefinedBy sh: .\n\nsh:union\n\ta rdf:Property ;\n\trdfs:label \"union\"@en ;\n\trdfs:comment \"A list of node expressions that shall be used together.\"@en ;\n\trdfs:isDefinedBy sh: .\n\n\n# Expression Constraints ------------------------------------------------------\n\nsh:ExpressionConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"Expression constraint component\"@en ;\n\trdfs:comment \"A constraint component that can be used to verify that a given node expression produces true for all value nodes.\"@en ;\n\tsh:parameter sh:ExpressionConstraintComponent-expression ;\n\trdfs:isDefinedBy sh: .\n\nsh:ExpressionConstraintComponent-expression\n\ta sh:Parameter ;\n\tsh:path sh:expression ;\n\trdfs:isDefinedBy sh: .\n\nsh:expression\n\ta rdf:Property ;\n\trdfs:label \"expression\"@en ;\n\trdfs:comment \"The node expression that must return true for the value nodes.\"@en ;\n\trdfs:isDefinedBy sh: .\n\n\n# Rules -----------------------------------------------------------------------\n\nsh:Rule\n\ta rdfs:Class ;\n\trdfs:label \"Rule\"@en ;\n\trdfs:comment \"The class of SHACL rules. Never instantiated directly.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:rule\n\ta rdf:Property ;\n\trdfs:label \"rule\"@en ;\n\trdfs:comment \"The rules linked to a shape.\"@en ;\n\trdfs:domain sh:Shape ;\n\trdfs:range sh:Rule ;\n\trdfs:isDefinedBy sh:  .\n\nsh:condition\n\ta rdf:Property ;\n\trdfs:label \"condition\"@en ;\n\trdfs:comment \"The shapes that the focus nodes need to conform to before a rule is executed on them.\"@en ;\n\trdfs:domain sh:Rule ;\n\trdfs:range sh:Shape ;\n\trdfs:isDefinedBy sh: .\n\nsh:TripleRule\n\ta rdfs:Class ;\n\trdfs:label \"A rule based on triple (subject, predicate, object) pattern.\"@en ;\n\trdfs:subClassOf sh:Rule ;\n\trdfs:isDefinedBy sh: .\n\nsh:subject\n\ta rdf:Property ;\n\trdfs:label \"subject\"@en ;\n\trdfs:comment \"An expression producing the resources that shall be inferred as subjects.\"@en ;\n\trdfs:domain sh:TripleRule ;\n\trdfs:isDefinedBy sh: .\n\nsh:predicate\n\ta rdf:Property ;\n\trdfs:label \"predicate\"@en ;\n\trdfs:comment \"An expression producing the properties that shall be inferred as predicates.\"@en ;\n\trdfs:domain sh:TripleRule ;\n\trdfs:isDefinedBy sh: .\n\nsh:object\n\ta rdf:Property ;\n\trdfs:label \"object\"@en ;\n\trdfs:comment \"An expression producing the nodes that shall be inferred as objects.\"@en ;\n\trdfs:domain sh:TripleRule ;\n\trdfs:isDefinedBy sh: .\n\nsh:SPARQLRule\n\ta rdfs:Class ;\n\trdfs:label \"SPARQL CONSTRUCT rule\"@en ;\n\trdfs:comment \"The class of SHACL rules based on SPARQL CONSTRUCT queries.\"@en ;\n\trdfs:subClassOf sh:Rule ;\n\trdfs:subClassOf sh:SPARQLConstructExecutable ;\n\trdfs:isDefinedBy sh: .\n\n\n# SHACL-JS --------------------------------------------------------------------\n\nsh:JSExecutable\n\ta rdfs:Class ;\n\trdfs:label \"JavaScript executable\"@en ;\n\trdfs:comment \"Abstract base class of resources that declare an executable JavaScript.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:JSTarget\n\ta rdfs:Class ;\n\trdfs:label \"JavaScript target\"@en ;\n\trdfs:comment \"The class of targets that are based on JavaScript functions.\"@en ;\n\trdfs:subClassOf sh:Target ;\n\trdfs:subClassOf sh:JSExecutable ;\n\trdfs:isDefinedBy sh: .\n\nsh:JSTargetType\n\ta rdfs:Class ;\n\trdfs:label \"JavaScript target type\"@en ;\n\trdfs:comment \"The (meta) class for parameterizable targets that are based on JavaScript functions.\"@en ;\n\trdfs:subClassOf sh:TargetType ;\n\trdfs:subClassOf sh:JSExecutable ;\n\trdfs:isDefinedBy sh: .\n\nsh:JSConstraint\n\ta rdfs:Class ;\n\trdfs:label \"JavaScript-based constraint\"@en ;\n\trdfs:comment \"The class of constraints backed by a JavaScript function.\"@en ;\n\trdfs:subClassOf sh:JSExecutable ;\n\trdfs:isDefinedBy sh: .\n\t\nsh:JSConstraintComponent\n\ta sh:ConstraintComponent ;\n\trdfs:label \"JavaScript constraint component\"@en ;\n\trdfs:comment \"A constraint component with the parameter sh:js linking to a sh:JSConstraint containing a sh:script.\"@en ;\n  \tsh:parameter sh:JSConstraint-js ;\n\trdfs:isDefinedBy sh: .\n \nsh:JSConstraint-js\n\ta sh:Parameter ;\n\tsh:path sh:js ;\n\trdfs:isDefinedBy sh: .\n\t\nsh:js\n\ta rdf:Property ;\n\trdfs:label \"JavaScript constraint\"@en ;\n\trdfs:comment \"Constraints expressed in JavaScript.\" ;\n  \trdfs:range sh:JSConstraint ;\n\trdfs:isDefinedBy sh: .\n\nsh:jsFunctionName\n\ta rdf:Property ;\n\trdfs:label \"JavaScript function name\"@en ;\n\trdfs:comment \"The name of the JavaScript function to execute.\"@en ;\n\trdfs:domain sh:JSExecutable ;\n\trdfs:range xsd:string ;\n\trdfs:isDefinedBy sh: .\n\nsh:jsLibrary\n\ta rdf:Property ;\n\trdfs:label \"JavaScript library\"@en ;\n  \trdfs:comment \"Declares which JavaScript libraries are needed to execute this.\"@en ;\n\trdfs:range sh:JSLibrary ;\n\trdfs:isDefinedBy sh: .\n\nsh:jsLibraryURL\n\ta rdf:Property ;\n\trdfs:label \"JavaScript library URL\"@en ;\n\trdfs:comment \"Declares the URLs of a JavaScript library. This should be the absolute URL of a JavaScript file. Implementations may redirect those to local files.\"@en ;\n\trdfs:domain sh:JSLibrary ;\n\trdfs:range xsd:anyURI ;\n\trdfs:isDefinedBy sh: .\n\t\nsh:JSFunction\n\ta rdfs:Class ;\n  \trdfs:label \"JavaScript function\"@en ;\n\trdfs:comment \"The class of SHACL functions that execute a JavaScript function when called.\"@en ;\n\trdfs:subClassOf sh:Function ;\n\trdfs:subClassOf sh:JSExecutable ;\n\trdfs:isDefinedBy sh: .\n\nsh:JSLibrary\n\ta rdfs:Class ;\n\trdfs:label \"JavaScript library\"@en ;\n\trdfs:comment \"Represents a JavaScript library, typically identified by one or more URLs of files to include.\"@en ;\n\trdfs:subClassOf rdfs:Resource ;\n\trdfs:isDefinedBy sh: .\n\nsh:JSRule\n\ta rdfs:Class ;\n\trdfs:label \"JavaScript rule\"@en ;\n\trdfs:comment \"The class of SHACL rules expressed using JavaScript.\"@en ;\n\trdfs:subClassOf sh:JSExecutable ;\n\trdfs:subClassOf sh:Rule ;\n\trdfs:isDefinedBy sh: .\n\nsh:JSValidator\n\ta rdfs:Class ;\n  \trdfs:label \"JavaScript validator\"@en ;\n\trdfs:comment \"A SHACL validator based on JavaScript. This can be used to declare SHACL constraint components that perform JavaScript-based validation when used.\"@en ;\n  \trdfs:subClassOf sh:JSExecutable ;\n  \trdfs:subClassOf sh:Validator ;\n  \trdfs:isDefinedBy sh: .\n"}
},{}]},{},[1])
(1)
});
  SHACLValidator = module.exports;
})()

}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,require("timers").setImmediate)
},{"buffer":4,"timers":38}],87:[function(require,module,exports){
'use strict';

var isArray = Array.isArray;
var keyList = Object.keys;
var hasProp = Object.prototype.hasOwnProperty;

module.exports = function equal(a, b) {
  if (a === b) return true;

  if (a && b && typeof a == 'object' && typeof b == 'object') {
    var arrA = isArray(a)
      , arrB = isArray(b)
      , i
      , length
      , key;

    if (arrA && arrB) {
      length = a.length;
      if (length != b.length) return false;
      for (i = length; i-- !== 0;)
        if (!equal(a[i], b[i])) return false;
      return true;
    }

    if (arrA != arrB) return false;

    var dateA = a instanceof Date
      , dateB = b instanceof Date;
    if (dateA != dateB) return false;
    if (dateA && dateB) return a.getTime() == b.getTime();

    var regexpA = a instanceof RegExp
      , regexpB = b instanceof RegExp;
    if (regexpA != regexpB) return false;
    if (regexpA && regexpB) return a.toString() == b.toString();

    var keys = keyList(a);
    length = keys.length;

    if (length !== keyList(b).length)
      return false;

    for (i = length; i-- !== 0;)
      if (!hasProp.call(b, keys[i])) return false;

    for (i = length; i-- !== 0;) {
      key = keys[i];
      if (!equal(a[key], b[key])) return false;
    }

    return true;
  }

  return a!==a && b!==b;
};

},{}],88:[function(require,module,exports){
'use strict';

module.exports = function (data, opts) {
    if (!opts) opts = {};
    if (typeof opts === 'function') opts = { cmp: opts };
    var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;

    var cmp = opts.cmp && (function (f) {
        return function (node) {
            return function (a, b) {
                var aobj = { key: a, value: node[a] };
                var bobj = { key: b, value: node[b] };
                return f(aobj, bobj);
            };
        };
    })(opts.cmp);

    var seen = [];
    return (function stringify (node) {
        if (node && node.toJSON && typeof node.toJSON === 'function') {
            node = node.toJSON();
        }

        if (node === undefined) return;
        if (typeof node == 'number') return isFinite(node) ? '' + node : 'null';
        if (typeof node !== 'object') return JSON.stringify(node);

        var i, out;
        if (Array.isArray(node)) {
            out = '[';
            for (i = 0; i < node.length; i++) {
                if (i) out += ',';
                out += stringify(node[i]) || 'null';
            }
            return out + ']';
        }

        if (node === null) return 'null';

        if (seen.indexOf(node) !== -1) {
            if (cycles) return JSON.stringify('__cycle__');
            throw new TypeError('Converting circular structure to JSON');
        }

        var seenIndex = seen.push(node) - 1;
        var keys = Object.keys(node).sort(cmp && cmp(node));
        out = '';
        for (i = 0; i < keys.length; i++) {
            var key = keys[i];
            var value = stringify(node[key]);

            if (!value) continue;
            if (out) out += ',';
            out += JSON.stringify(key) + ':' + value;
        }
        seen.splice(seenIndex, 1);
        return '{' + out + '}';
    })(data);
};

},{}],89:[function(require,module,exports){
'use strict';

var traverse = module.exports = function (schema, opts, cb) {
  // Legacy support for v0.3.1 and earlier.
  if (typeof opts == 'function') {
    cb = opts;
    opts = {};
  }

  cb = opts.cb || cb;
  var pre = (typeof cb == 'function') ? cb : cb.pre || function() {};
  var post = cb.post || function() {};

  _traverse(opts, pre, post, schema, '', schema);
};


traverse.keywords = {
  additionalItems: true,
  items: true,
  contains: true,
  additionalProperties: true,
  propertyNames: true,
  not: true
};

traverse.arrayKeywords = {
  items: true,
  allOf: true,
  anyOf: true,
  oneOf: true
};

traverse.propsKeywords = {
  definitions: true,
  properties: true,
  patternProperties: true,
  dependencies: true
};

traverse.skipKeywords = {
  default: true,
  enum: true,
  const: true,
  required: true,
  maximum: true,
  minimum: true,
  exclusiveMaximum: true,
  exclusiveMinimum: true,
  multipleOf: true,
  maxLength: true,
  minLength: true,
  pattern: true,
  format: true,
  maxItems: true,
  minItems: true,
  uniqueItems: true,
  maxProperties: true,
  minProperties: true
};


function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
  if (schema && typeof schema == 'object' && !Array.isArray(schema)) {
    pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
    for (var key in schema) {
      var sch = schema[key];
      if (Array.isArray(sch)) {
        if (key in traverse.arrayKeywords) {
          for (var i=0; i<sch.length; i++)
            _traverse(opts, pre, post, sch[i], jsonPtr + '/' + key + '/' + i, rootSchema, jsonPtr, key, schema, i);
        }
      } else if (key in traverse.propsKeywords) {
        if (sch && typeof sch == 'object') {
          for (var prop in sch)
            _traverse(opts, pre, post, sch[prop], jsonPtr + '/' + key + '/' + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
        }
      } else if (key in traverse.keywords || (opts.allKeys && !(key in traverse.skipKeywords))) {
        _traverse(opts, pre, post, sch, jsonPtr + '/' + key, rootSchema, jsonPtr, key, schema);
      }
    }
    post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
  }
}


function escapeJsonPtr(str) {
  return str.replace(/~/g, '~0').replace(/\//g, '~1');
}

},{}],90:[function(require,module,exports){
let amf = require('amf-client-js')

let resolvedModel;
let parse = (from, url, callback) => {
    filePath = url;
    let model = { model: null, error: null };

    amf.AMF.init()
        .then(() => {
            
            let parser = resolveParser(from);

            //let validationProfile;
            //switch (type) {
            //    case 'RAML 1.0': validationProfile = amf.ProfileNames.RAML; break;
            //    case 'RAML 0.8': validationProfile = amf.ProfileNames.RAML08; break;
            //    case 'OAS 2.0':
            //    case 'OAS 3.0':
            //        validationProfile = amf.ProfileNames.OAS;
            //        break;
            //}
            //const result = await amf.AMF.validate(doc, validationProfile);

            parser.parseFileAsync(url).then((amfModel) => {

                // this has all the types, securitySchemes, traits, resourceTypes, annotations, etc
                // let declares = amfModel.declares;
                // model.shapes = mapDeclaredShapes(declares);
                //mapShapesInReferences(amfModel, model);

                if (from === "raml") {
                   //resolvedModel = amf.AMF.resolveRaml10(amfModel);
                    var resolver = new amf.Resolver("RAML 1.0")
                    resolvedModel = resolver.resolve(amfModel, "editing")
                } else if (from === "raml08") {
                    //resolvedModel = amf.AMF.resolveRaml08(amfModel);
                    var resolver = new amf.Resolver("RAML 0.8")
                    resolvedModel = resolver.resolve(amfModel, "editing")
                } else if (from === "oasyaml" || from == "oasjson") {
                  //resolvedModel = amf.AMF.resolveOas20(amfModel);
                  var resolver = new amf.Resolver("OAS 2.0")
                  resolvedModel = resolver.resolve(amfModel, "editing")
                } else {
                  //resolvedModel = amf.AMF.resolveAmfGraph(amfModel);
                  var resolver = new amf.Resolver("AMF Graph") // TODO: check!!
                  resolvedModel = resolver.resolve(amfModel, "editing")
                }

                let declares = resolvedModel.declares;
                model.shapes = mapDeclaredShapes(declares);
                mapShapesInReferences(resolvedModel, model);
                model.model = mapModel(resolvedModel);
                
                return callback(model);
            }).catch((ex) => {
                model.error = {
                    message: typeof ex.toString === "function" ? ex.toString() : null,
                    stack: ex.hasOwnProperty("stack") ? ex.stack : null
                };
                return callback(model);
            });
        })
        .catch((ex) => {
            throw ex
        });
}

let amfParse = async (from, url) => {
    filePath = url;

    await amf.AMF.init();

    let parser = resolveParser(from);

    var amfModel = await parser.parseFileAsync(url);

    if (from === "raml") {
        //resolvedModel = amf.AMF.resolveRaml10(amfModel);
        var resolver = new amf.Resolver("RAML 1.0")
        resolvedModel = resolver.resolve(amfModel, "editing")
    } else if (from === "raml08") {
        //resolvedModel = amf.AMF.resolveRaml08(amfModel);
        var resolver = new amf.Resolver("RAML 0.8")
        resolvedModel = resolver.resolve(amfModel, "editing")
    } else if (from === "oasyaml" || from == "oasjson") {
        //resolvedModel = amf.AMF.resolveOas20(amfModel);
        var resolver = new amf.Resolver("OAS 2.0")
        resolvedModel = resolver.resolve(amfModel, "editing")
    } else {
        //resolvedModel = amf.AMF.resolveAmfGraph(amfModel);
        var resolver = new amf.Resolver("AMF Graph") // TODO: check!!
        resolvedModel = resolver.resolve(amfModel, "editing")
    }

    const generator = amf.Core.generator('AMF Graph', 'application/ld+json');
    const opts = amf.render.RenderOptions().withSourceMaps.withCompactUris;
    const model = await generator.generateString(resolvedModel, opts);
    return model;
}

let resolveParser = (from) => {
    let parser;
    if (from === "raml") {
        parser = amf.Core.parser("RAML 1.0", "application/yaml");
    } else if (from === "raml08") {
        parser = amf.Core.parser("RAML 0.8", "application/yaml");
    } else if (from === "oasjson") {
        parser = amf.Core.parser("OAS 2.0", "application/json");
    } else if (from === "oasyaml") {
        parser = amf.Core.parser("OAS 2.0", "application/yaml");
    } else {
        parser = amf.Core.parser("AMF Graph", "application/ld+json");
    }
    return parser;
}

let mapShapesInReferences = (baseUnit, model) => {
    for (let i = 0; i < baseUnit.references().length; i++) {
        let refUnit = baseUnit.references()[i];
        let declaresInRef = refUnit.declares;
        if(declaresInRef){
            let moreShapes = mapDeclaredShapes(declaresInRef);
            for (let j = 0; j < moreShapes.length; j++) {
                model.shapes.push(moreShapes[j]);
            }
        }
        mapShapesInReferences(refUnit, model); // recursively check for refs
    }
}

let mapDeclaredShapes = (declares) => {
    if(declares === null)
        return [];
    
    return declares.map(function(decl){
        if('inherits' in decl){ // is a shape
            return mapShape(decl);
        }
        return null;
    });
}

let mapModel = (amfModel) => {
    let encodes = amfModel.encodes;
    if(encodes == null)
        return null;
    
    let mappedModel = {
        raw: amfModel.raw,
        name: value(encodes.name),
        description: value(encodes.description),
        host: value(encodes.host),
        schemes: mapValuesArray(encodes.schemes),
        endpoints: mapEndpoints(encodes.endPoints),
        servers: mapServers(encodes.servers),
        accepts: mapValuesArray(encodes.accepts),
        contentType: mapValuesArray(encodes.contentType),
        version: value(encodes.version),
        termsOfService: value(encodes.termsOfService),
        provider: mapOrganization(encodes.provider),
        license: mapLicense(encodes.license),
        documentations: mapDocumentations(encodes.documentations),
        baseUriParameters: mapParameters(encodes.baseUriParameters),
        security: mapSecurities(encodes.security),
        idsMap: idsMap
    }
    return mappedModel;
}

let mapServers = (servers) => {
    if(!servers)
        return [];
    
    return servers.map(function(server){
        return value(server.url);
    });
}

let mapOrganization = (organization) => {
    if(!organization)
        return null;

    return {
        url: value(organization.url),
        name: value(organization.name),
        email: value(organization.email)
    }
}

let mapLicense = (license) => {
    if(!license)
        return null;

    return {
        url: value(license.url),
        name: value(license.name)
    }
}

let mapEndpoints = (endpoints) => {
    if(!endpoints)
        return [];
    
    return endpoints.map(function(endpoint) {
        return {
            name: value(endpoint.name),
            relativePath: endpoint.relativePath,
            path: value(endpoint.path),
            description: value(endpoint.description),
            operations: mapOperations(endpoint.operations),
            parameters: mapParameters(endpoint.parameters),
            security: mapSecuritySchemes(endpoint.security)
        };
    });
}

let mapOperations = (operations) => {
    if(!operations)
        return [];

    return operations.map(function(op){
        return {
            method: value(op.method),
            name: value(op.name),
            description: value(op.description),
            deprecated: value(op.deprecated),
            summary: value(op.summary),
            documentation: mapDocumentation(op.documentation),
            schemes: mapValuesArray(op.schemes),
            accepts: mapValuesArray(op.accepts),
            contentType: mapValuesArray(op.contentType),
            request: mapRequest(op.request),
            responses: mapResponses(op.responses),
            security: mapSecuritySchemes(op.security)
        };
    });
}

let mapDocumentations = (documentations) => {
    if(!documentations)
        return [];
    
    return documentations.map(mapDocumentation);
}

let mapDocumentation = (documentation) => {
    if(!documentation)
        return null;

    return {
        url: value(documentation.url),
        description: value(documentation.description),
        title: value(documentation.title)
    };
}

let mapRequest = (request) => {
    if(!request)
        return null;
    
    return {
        queryParameters: mapParameters(request.queryParameters),
        headers: mapParameters(request.headers),
        payloads: mapPayloads(request.payloads),
        queryString: mapShape(request.queryString)
    }
}

let mapResponses = (responses) => {
    if(!responses)
        return [];
    
    return responses.map(function(response){
        return {
            name: value(response.name),
            description: value(response.description),
            statusCode: value(response.statusCode),
            headers: mapParameters(response.headers),
            payloads: mapPayloads(response.payloads),
            examples: mapExamples(response.examples)
        }
    });
}

let mapSecurities = (securities) => {
    if(!securities)
        return [];
    
    return securities.map(mapSecurity);
}

let mapSecurity = (security) => {
    if(!security)
        return [];
    
    return security.map(function(sec){
        return {
            name: value(sec.name),
            scheme: mapSecurityScheme(sec.scheme),
            settings: mapSettings(sec.settings)
        }
    });
}

let mapSecuritySchemes = (securitySchemes) => {
    if(!securitySchemes)
        return [];
    
    return securitySchemes.map(mapSecurityScheme);
}

let mapSecurityScheme = (aScheme) => {
    if(!aScheme)
        return null;
    
    var scheme = aScheme.scheme;
    if(!scheme)
        return null;
    
    return {
        name: value(scheme.name),
        type: value(scheme.type),
        displayName: value(scheme.displayName),
        description: value(scheme.description),
        headers: mapParameters(scheme.headers),
        queryParameters: mapParameters(scheme.queryParameters),
        responses: mapResponses(scheme.responses),
        settings: mapSettings(scheme.settings, value(scheme.type)),
        queryString: mapShape(scheme.queryString)
    };
}

let mapSettings = (settings, type) => {
    if(!settings)
        return null;

    if(type === 'OAuth 1.0'){
        return {
            requestTokenUri: value(settings.requestTokenUri),
            authorizationUri: value(settings.authorizationUri),
            tokenCredentialsUri: value(settings.tokenCredentialsUri),
            signatures: mapValuesArray(settings.signatures)
        };
    }

    if(type === 'OAuth 2.0'){
        return {
            authorizationUri: value(settings.authorizationUri),
            accessTokenUri: value(settings.accessTokenUri),
            authorizationGrants: mapValuesArray(settings.authorizationGrants),
            flow: value(settings.flow),
            scopes: mapScopes(settings.scopes)
        };
    }

    if(type === 'ApiKey'){
        return {
            name: value(settings.name),
            in: value(settings.in)
        };
    }
    
    return {
        requestTokenUri: value(settings.requestTokenUri),
        authorizationUri: value(settings.authorizationUri),
        tokenCredentialsUri: value(settings.tokenCredentialsUri),
        signatures: mapValuesArray(settings.signatures),
        accessTokenUri: value(settings.accessTokenUri),
        authorizationGrants: mapValuesArray(settings.authorizationGrants),
        flow: value(settings.flow),
        scopes: mapScopes(settings.scopes),
        name: value(settings.name),
        in: value(settings.in)
    };
}

let mapScopes = (scopes) => {
    if(!scopes)
        return [];

    return scopes.map(function(scope){
        return {
            name: value(scope.name),
            description: value(scope.description)
        };
    });
}

let mapParameters = (parameters) => {
    if(!parameters)
        return [];
    
    return parameters.map(function(param){
        return {
            name: value(param.name),
            description: value(param.description),
            required: value(param.required),
            binding: value(param.binding),
            schema: mapSchema(param.schema)
        }
    });
}

let mapPayloads = (payloads) => {
    if(!payloads)
        return [];
    
    return payloads.map(function(payload){
        return {
            mediaType: value(payload.mediaType),
            schema: mapSchema(payload.schema)
        }
    });
}

let mapSchema = (schema) => {
    if(!schema)
        return null;

    let result = mapShape(schema);
    // result.mediaType = value(schema.mediaType);
    // result.raw = value(schema.raw);
    return result;
}

let idsMap = {};

let mapShape = (shape) => {
    if(!shape)
        return null;

    // let obj;
    // if(typeof(resolvedModel) != "undefined" && typeof(shape.annotations().resolvedLink) != "undefined")
    //     obj = resolvedModel.findById(shape.annotations().resolvedLink);
    
    // if(typeof(shape.annotations().resolvedLink) != "undefined" && shape.annotations().resolvedLink != shape.id)
    // {
    //     var key = (' ' + shape.annotations().resolvedLink).slice(1);
    //     idsMap[key] = (' ' + shape.id).slice(1);
    // }

    return {
        // shape
        id: shape.id,
        resolvedLink: typeof shape.annotations === "function" && typeof shape.annotations().resolvedLink === "string" ? shape.annotations().resolvedLink : null,
        resolvedLinkTarget: typeof shape.annotations === "function" && typeof shape.annotations().resolvedLinkTarget === "string" ? shape.annotations().resolvedLinkTarget : null,
        inheritanceProvenance: typeof shape.annotations === "function" && typeof shape.annotations().inheritanceProvenance === "string" ? shape.annotations().inheritanceProvenance : null,
        name: value(shape.name),
        displayName: value(shape.displayName),
        description: value(shape.description),
        default: mapShape(shape.defaultValue),
        values: mapEnumValues(shape.values),
        inherits: mapShapes(shape.inherits),
        isFile: shape instanceof amf.model.domain.FileShape,

        // any
        documentation: mapDocumentation(shape.documentation),
        xmlSerialization: mapXmlSerialization(shape.xmlSerialization),
        examples: mapExamples(shape.examples),

        // union
        anyOf: mapShapes(shape.anyOf),

        // array
        minItems: value(shape.minItems),
        maxItems: value(shape.maxItems),
        uniqueItems: value(shape.uniqueItems),
        items: mapShape(shape.items),
        linkTarget: mapLinkTarget(shape.linkTarget),
        linkLabel: value(shape.linkLabel),

        // scalar
        dataType: value(shape.dataType),
        pattern: value(shape.pattern),
        minLength: value(shape.minLength),
        maxLength: value(shape.maxLength),
        minimum: value(shape.minimum),
        maximum: value(shape.maximum),
        exclusiveMinimum: value(shape.exclusiveMinimum),
        exclusiveMaximum: value(shape.exclusiveMaximum),
        format: value(shape.format),
        multipleOf: value(shape.multipleOf),
        
        // node
        minProperties: value(shape.minProperties),
        maxProperties: value(shape.maxProperties),
        closed: value(shape.closed),
        discriminator: value(shape.discriminator),
        discriminatorValue: value(shape.discriminatorValue),
        readOnly: value(shape.readOnly),
        properties: mapProperties(shape.properties),
        dependencies: mapDependencies(shape.dependencies),
        
        // file
        fileTypes: mapValuesArray(shape.fileTypes)
    }
}

let value = (val) => {
    if(typeof val != 'undefined') {

        if (val === null)
            return null;

        if (typeof val.isNull != 'undefined'){
            return val.isNull ? null : val.value();
        }
        return null;
    }
    return null;
}

let mapValuesArray = (array) => {
    if(array == null)
        return [];
    
        return array.map(function(val) {
            return value(val);
        });
}

let mapEnumValues = (values) => {
    if(values == null)
        return [];
    
        if(typeof(values) == "function")
            return [];

        return values.map(function(val) {
            if(typeof val.value.option == "string")
                return val.value.option;

            if(typeof val.value.dataType == "string")
                return val.value.dataType;
            
            throw new Error("enum value of uknown type");
        });
}

let mapLinkTarget = (linkTarget) => {
    if (linkTarget == null)
        return null;

    return {
        name: linkTarget.id.substring(linkTarget.id.lastIndexOf('#') + 1)
    };
}

let mapProperties = (properties) => {
    if(!properties)
        return [];

    return properties.map(function(prop) {
        return {
            path: value(prop.path),
            range: mapShape(prop.range),
            minCount: value(prop.minCount),
            maxCount: value(prop.maxCount),
            inheritanceProvenance: typeof prop.annotations === "function"
                && typeof prop.annotations().inheritanceProvenance === "string"
                ? prop.annotations().inheritanceProvenance
                : null
        };
    });
}

let mapDependencies = (dependencies) => {
    if(!dependencies)
        return [];

    return dependencies.map(function(dep){
        return {
            propertySource: value(dep.propertySource),
            propertyTarget: value(dep.propertyTarget)
        }
    });
}

let mapShapes = (shapes) => {
    if(!shapes)
        return [];

    return shapes.map(mapShape);
}

let mapAnyShape = (shape) => {
    if(!shape)
        return null;

    return {
        documentation: mapDocumentation(shape.documentation),
        examples: mapExamples(shape.examples),
        xmlSerialization: mapXmlSerialization(shape.xmlSerialization)
    }
}

let mapExamples = (examples) => {
    if(!examples)
        return [];

    return examples.map(function(example){
        return {
            name: value(example.name),
            displayName: value(example.displayName),
            description: value(example.description),
            value: value(example.value),
            strict: value(example.strict),
            mediaType: value(example.mediaType)
        }
    });
}

let mapXmlSerialization = (xmlSerialization) => {
    if(!xmlSerialization)
        return null;
    
    return {
        attribute: value(xmlSerialization.attribute),
        wrapped: value(xmlSerialization.wrapped),
        name: value(xmlSerialization.name),
        namespace: value(xmlSerialization.namespace),
        prefix: value(xmlSerialization.prefix)
    }
}

exports.parse = parse;
exports.amfParse = amfParse;
},{"amf-client-js":85}],91:[function(require,module,exports){
/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
(function (global, factory) {
	typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
	typeof define === 'function' && define.amd ? define(['exports'], factory) :
	(factory((global.URI = global.URI || {})));
}(this, (function (exports) { 'use strict';

function merge() {
    for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
        sets[_key] = arguments[_key];
    }

    if (sets.length > 1) {
        sets[0] = sets[0].slice(0, -1);
        var xl = sets.length - 1;
        for (var x = 1; x < xl; ++x) {
            sets[x] = sets[x].slice(1, -1);
        }
        sets[xl] = sets[xl].slice(1);
        return sets.join('');
    } else {
        return sets[0];
    }
}
function subexp(str) {
    return "(?:" + str + ")";
}
function typeOf(o) {
    return o === undefined ? "undefined" : o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase();
}
function toUpperCase(str) {
    return str.toUpperCase();
}
function toArray(obj) {
    return obj !== undefined && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : [];
}
function assign(target, source) {
    var obj = target;
    if (source) {
        for (var key in source) {
            obj[key] = source[key];
        }
    }
    return obj;
}

function buildExps(isIRI) {
    var ALPHA$$ = "[A-Za-z]",
        CR$ = "[\\x0D]",
        DIGIT$$ = "[0-9]",
        DQUOTE$$ = "[\\x22]",
        HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"),
        //case-insensitive
    LF$$ = "[\\x0A]",
        SP$$ = "[\\x20]",
        PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)),
        //expanded
    GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]",
        SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",
        RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$),
        UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]",
        //subset, excludes bidi control characters
    IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]",
        //subset
    UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$),
        SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"),
        USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"),
        DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$),
        DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$),
        //relaxed parsing rules
    IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$),
        H16$ = subexp(HEXDIG$$ + "{1,4}"),
        LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$),
        IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$),
        //                           6( h16 ":" ) ls32
    IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$),
        //                      "::" 5( h16 ":" ) ls32
    IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$),
        //[               h16 ] "::" 4( h16 ":" ) ls32
    IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$),
        //[ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32
    IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$),
        //[ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32
    IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$),
        //[ *3( h16 ":" ) h16 ] "::"    h16 ":"   ls32
    IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$),
        //[ *4( h16 ":" ) h16 ] "::"              ls32
    IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$),
        //[ *5( h16 ":" ) h16 ] "::"              h16
    IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"),
        //[ *6( h16 ":" ) h16 ] "::"
    IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")),
        ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"),
        //RFC 6874
    IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$),
        //RFC 6874
    IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + ZONEID$),
        //RFC 6874, with relaxed parsing rules
    IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"),
        IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"),
        //RFC 6874
    REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"),
        HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")" + "|" + REG_NAME$),
        PORT$ = subexp(DIGIT$$ + "*"),
        AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"),
        PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")),
        SEGMENT$ = subexp(PCHAR$ + "*"),
        SEGMENT_NZ$ = subexp(PCHAR$ + "+"),
        SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"),
        PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"),
        PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"),
        //simplified
    PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$),
        //simplified
    PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$),
        //simplified
    PATH_EMPTY$ = "(?!" + PCHAR$ + ")",
        PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$),
        QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"),
        FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"),
        HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$),
        URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"),
        RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$),
        RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"),
        URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$),
        ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"),
        GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
        RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
        ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$",
        SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
        AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$";
    return {
        NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
        NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
        NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
        NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
        NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
        NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
        NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
        ESCAPE: new RegExp(merge("[^]", UNRESERVED$$, SUB_DELIMS$$), "g"),
        UNRESERVED: new RegExp(UNRESERVED$$, "g"),
        OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$, RESERVED$$), "g"),
        PCT_ENCODED: new RegExp(PCT_ENCODED$, "g"),
        IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"),
        IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$") //RFC 6874, with relaxed parsing rules
    };
}
var URI_PROTOCOL = buildExps(false);

var IRI_PROTOCOL = buildExps(true);

var slicedToArray = function () {
  function sliceIterator(arr, i) {
    var _arr = [];
    var _n = true;
    var _d = false;
    var _e = undefined;

    try {
      for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
        _arr.push(_s.value);

        if (i && _arr.length === i) break;
      }
    } catch (err) {
      _d = true;
      _e = err;
    } finally {
      try {
        if (!_n && _i["return"]) _i["return"]();
      } finally {
        if (_d) throw _e;
      }
    }

    return _arr;
  }

  return function (arr, i) {
    if (Array.isArray(arr)) {
      return arr;
    } else if (Symbol.iterator in Object(arr)) {
      return sliceIterator(arr, i);
    } else {
      throw new TypeError("Invalid attempt to destructure non-iterable instance");
    }
  };
}();













var toConsumableArray = function (arr) {
  if (Array.isArray(arr)) {
    for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];

    return arr2;
  } else {
    return Array.from(arr);
  }
};

/** Highest positive signed 32-bit float value */

var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1

/** Bootstring parameters */
var base = 36;
var tMin = 1;
var tMax = 26;
var skew = 38;
var damp = 700;
var initialBias = 72;
var initialN = 128; // 0x80
var delimiter = '-'; // '\x2D'

/** Regular expressions */
var regexPunycode = /^xn--/;
var regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars
var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators

/** Error messages */
var errors = {
	'overflow': 'Overflow: input needs wider integers to process',
	'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
	'invalid-input': 'Invalid input'
};

/** Convenience shortcuts */
var baseMinusTMin = base - tMin;
var floor = Math.floor;
var stringFromCharCode = String.fromCharCode;

/*--------------------------------------------------------------------------*/

/**
 * A generic error utility function.
 * @private
 * @param {String} type The error type.
 * @returns {Error} Throws a `RangeError` with the applicable error message.
 */
function error$1(type) {
	throw new RangeError(errors[type]);
}

/**
 * A generic `Array#map` utility function.
 * @private
 * @param {Array} array The array to iterate over.
 * @param {Function} callback The function that gets called for every array
 * item.
 * @returns {Array} A new array of values returned by the callback function.
 */
function map(array, fn) {
	var result = [];
	var length = array.length;
	while (length--) {
		result[length] = fn(array[length]);
	}
	return result;
}

/**
 * A simple `Array#map`-like wrapper to work with domain name strings or email
 * addresses.
 * @private
 * @param {String} domain The domain name or email address.
 * @param {Function} callback The function that gets called for every
 * character.
 * @returns {Array} A new string of characters returned by the callback
 * function.
 */
function mapDomain(string, fn) {
	var parts = string.split('@');
	var result = '';
	if (parts.length > 1) {
		// In email addresses, only the domain name should be punycoded. Leave
		// the local part (i.e. everything up to `@`) intact.
		result = parts[0] + '@';
		string = parts[1];
	}
	// Avoid `split(regex)` for IE8 compatibility. See #17.
	string = string.replace(regexSeparators, '\x2E');
	var labels = string.split('.');
	var encoded = map(labels, fn).join('.');
	return result + encoded;
}

/**
 * Creates an array containing the numeric code points of each Unicode
 * character in the string. While JavaScript uses UCS-2 internally,
 * this function will convert a pair of surrogate halves (each of which
 * UCS-2 exposes as separate characters) into a single code point,
 * matching UTF-16.
 * @see `punycode.ucs2.encode`
 * @see <https://mathiasbynens.be/notes/javascript-encoding>
 * @memberOf punycode.ucs2
 * @name decode
 * @param {String} string The Unicode input string (UCS-2).
 * @returns {Array} The new array of code points.
 */
function ucs2decode(string) {
	var output = [];
	var counter = 0;
	var length = string.length;
	while (counter < length) {
		var value = string.charCodeAt(counter++);
		if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
			// It's a high surrogate, and there is a next character.
			var extra = string.charCodeAt(counter++);
			if ((extra & 0xFC00) == 0xDC00) {
				// Low surrogate.
				output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
			} else {
				// It's an unmatched surrogate; only append this code unit, in case the
				// next code unit is the high surrogate of a surrogate pair.
				output.push(value);
				counter--;
			}
		} else {
			output.push(value);
		}
	}
	return output;
}

/**
 * Creates a string based on an array of numeric code points.
 * @see `punycode.ucs2.decode`
 * @memberOf punycode.ucs2
 * @name encode
 * @param {Array} codePoints The array of numeric code points.
 * @returns {String} The new Unicode string (UCS-2).
 */
var ucs2encode = function ucs2encode(array) {
	return String.fromCodePoint.apply(String, toConsumableArray(array));
};

/**
 * Converts a basic code point into a digit/integer.
 * @see `digitToBasic()`
 * @private
 * @param {Number} codePoint The basic numeric code point value.
 * @returns {Number} The numeric value of a basic code point (for use in
 * representing integers) in the range `0` to `base - 1`, or `base` if
 * the code point does not represent a value.
 */
var basicToDigit = function basicToDigit(codePoint) {
	if (codePoint - 0x30 < 0x0A) {
		return codePoint - 0x16;
	}
	if (codePoint - 0x41 < 0x1A) {
		return codePoint - 0x41;
	}
	if (codePoint - 0x61 < 0x1A) {
		return codePoint - 0x61;
	}
	return base;
};

/**
 * Converts a digit/integer into a basic code point.
 * @see `basicToDigit()`
 * @private
 * @param {Number} digit The numeric value of a basic code point.
 * @returns {Number} The basic code point whose value (when used for
 * representing integers) is `digit`, which needs to be in the range
 * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
 * used; else, the lowercase form is used. The behavior is undefined
 * if `flag` is non-zero and `digit` has no uppercase form.
 */
var digitToBasic = function digitToBasic(digit, flag) {
	//  0..25 map to ASCII a..z or A..Z
	// 26..35 map to ASCII 0..9
	return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
};

/**
 * Bias adaptation function as per section 3.4 of RFC 3492.
 * https://tools.ietf.org/html/rfc3492#section-3.4
 * @private
 */
var adapt = function adapt(delta, numPoints, firstTime) {
	var k = 0;
	delta = firstTime ? floor(delta / damp) : delta >> 1;
	delta += floor(delta / numPoints);
	for (; /* no initialization */delta > baseMinusTMin * tMax >> 1; k += base) {
		delta = floor(delta / baseMinusTMin);
	}
	return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
};

/**
 * Converts a Punycode string of ASCII-only symbols to a string of Unicode
 * symbols.
 * @memberOf punycode
 * @param {String} input The Punycode string of ASCII-only symbols.
 * @returns {String} The resulting string of Unicode symbols.
 */
var decode = function decode(input) {
	// Don't use UCS-2.
	var output = [];
	var inputLength = input.length;
	var i = 0;
	var n = initialN;
	var bias = initialBias;

	// Handle the basic code points: let `basic` be the number of input code
	// points before the last delimiter, or `0` if there is none, then copy
	// the first basic code points to the output.

	var basic = input.lastIndexOf(delimiter);
	if (basic < 0) {
		basic = 0;
	}

	for (var j = 0; j < basic; ++j) {
		// if it's not a basic code point
		if (input.charCodeAt(j) >= 0x80) {
			error$1('not-basic');
		}
		output.push(input.charCodeAt(j));
	}

	// Main decoding loop: start just after the last delimiter if any basic code
	// points were copied; start at the beginning otherwise.

	for (var index = basic > 0 ? basic + 1 : 0; index < inputLength;) /* no final expression */{

		// `index` is the index of the next character to be consumed.
		// Decode a generalized variable-length integer into `delta`,
		// which gets added to `i`. The overflow checking is easier
		// if we increase `i` as we go, then subtract off its starting
		// value at the end to obtain `delta`.
		var oldi = i;
		for (var w = 1, k = base;; /* no condition */k += base) {

			if (index >= inputLength) {
				error$1('invalid-input');
			}

			var digit = basicToDigit(input.charCodeAt(index++));

			if (digit >= base || digit > floor((maxInt - i) / w)) {
				error$1('overflow');
			}

			i += digit * w;
			var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;

			if (digit < t) {
				break;
			}

			var baseMinusT = base - t;
			if (w > floor(maxInt / baseMinusT)) {
				error$1('overflow');
			}

			w *= baseMinusT;
		}

		var out = output.length + 1;
		bias = adapt(i - oldi, out, oldi == 0);

		// `i` was supposed to wrap around from `out` to `0`,
		// incrementing `n` each time, so we'll fix that now:
		if (floor(i / out) > maxInt - n) {
			error$1('overflow');
		}

		n += floor(i / out);
		i %= out;

		// Insert `n` at position `i` of the output.
		output.splice(i++, 0, n);
	}

	return String.fromCodePoint.apply(String, output);
};

/**
 * Converts a string of Unicode symbols (e.g. a domain name label) to a
 * Punycode string of ASCII-only symbols.
 * @memberOf punycode
 * @param {String} input The string of Unicode symbols.
 * @returns {String} The resulting Punycode string of ASCII-only symbols.
 */
var encode = function encode(input) {
	var output = [];

	// Convert the input in UCS-2 to an array of Unicode code points.
	input = ucs2decode(input);

	// Cache the length.
	var inputLength = input.length;

	// Initialize the state.
	var n = initialN;
	var delta = 0;
	var bias = initialBias;

	// Handle the basic code points.
	var _iteratorNormalCompletion = true;
	var _didIteratorError = false;
	var _iteratorError = undefined;

	try {
		for (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
			var _currentValue2 = _step.value;

			if (_currentValue2 < 0x80) {
				output.push(stringFromCharCode(_currentValue2));
			}
		}
	} catch (err) {
		_didIteratorError = true;
		_iteratorError = err;
	} finally {
		try {
			if (!_iteratorNormalCompletion && _iterator.return) {
				_iterator.return();
			}
		} finally {
			if (_didIteratorError) {
				throw _iteratorError;
			}
		}
	}

	var basicLength = output.length;
	var handledCPCount = basicLength;

	// `handledCPCount` is the number of code points that have been handled;
	// `basicLength` is the number of basic code points.

	// Finish the basic string with a delimiter unless it's empty.
	if (basicLength) {
		output.push(delimiter);
	}

	// Main encoding loop:
	while (handledCPCount < inputLength) {

		// All non-basic code points < n have been handled already. Find the next
		// larger one:
		var m = maxInt;
		var _iteratorNormalCompletion2 = true;
		var _didIteratorError2 = false;
		var _iteratorError2 = undefined;

		try {
			for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
				var currentValue = _step2.value;

				if (currentValue >= n && currentValue < m) {
					m = currentValue;
				}
			}

			// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
			// but guard against overflow.
		} catch (err) {
			_didIteratorError2 = true;
			_iteratorError2 = err;
		} finally {
			try {
				if (!_iteratorNormalCompletion2 && _iterator2.return) {
					_iterator2.return();
				}
			} finally {
				if (_didIteratorError2) {
					throw _iteratorError2;
				}
			}
		}

		var handledCPCountPlusOne = handledCPCount + 1;
		if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
			error$1('overflow');
		}

		delta += (m - n) * handledCPCountPlusOne;
		n = m;

		var _iteratorNormalCompletion3 = true;
		var _didIteratorError3 = false;
		var _iteratorError3 = undefined;

		try {
			for (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
				var _currentValue = _step3.value;

				if (_currentValue < n && ++delta > maxInt) {
					error$1('overflow');
				}
				if (_currentValue == n) {
					// Represent delta as a generalized variable-length integer.
					var q = delta;
					for (var k = base;; /* no condition */k += base) {
						var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
						if (q < t) {
							break;
						}
						var qMinusT = q - t;
						var baseMinusT = base - t;
						output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));
						q = floor(qMinusT / baseMinusT);
					}

					output.push(stringFromCharCode(digitToBasic(q, 0)));
					bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
					delta = 0;
					++handledCPCount;
				}
			}
		} catch (err) {
			_didIteratorError3 = true;
			_iteratorError3 = err;
		} finally {
			try {
				if (!_iteratorNormalCompletion3 && _iterator3.return) {
					_iterator3.return();
				}
			} finally {
				if (_didIteratorError3) {
					throw _iteratorError3;
				}
			}
		}

		++delta;
		++n;
	}
	return output.join('');
};

/**
 * Converts a Punycode string representing a domain name or an email address
 * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
 * it doesn't matter if you call it on a string that has already been
 * converted to Unicode.
 * @memberOf punycode
 * @param {String} input The Punycoded domain name or email address to
 * convert to Unicode.
 * @returns {String} The Unicode representation of the given Punycode
 * string.
 */
var toUnicode = function toUnicode(input) {
	return mapDomain(input, function (string) {
		return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
	});
};

/**
 * Converts a Unicode string representing a domain name or an email address to
 * Punycode. Only the non-ASCII parts of the domain name will be converted,
 * i.e. it doesn't matter if you call it with a domain that's already in
 * ASCII.
 * @memberOf punycode
 * @param {String} input The domain name or email address to convert, as a
 * Unicode string.
 * @returns {String} The Punycode representation of the given domain name or
 * email address.
 */
var toASCII = function toASCII(input) {
	return mapDomain(input, function (string) {
		return regexNonASCII.test(string) ? 'xn--' + encode(string) : string;
	});
};

/*--------------------------------------------------------------------------*/

/** Define the public API */
var punycode = {
	/**
  * A string representing the current Punycode.js version number.
  * @memberOf punycode
  * @type String
  */
	'version': '2.1.0',
	/**
  * An object of methods to convert from JavaScript's internal character
  * representation (UCS-2) to Unicode code points, and back.
  * @see <https://mathiasbynens.be/notes/javascript-encoding>
  * @memberOf punycode
  * @type Object
  */
	'ucs2': {
		'decode': ucs2decode,
		'encode': ucs2encode
	},
	'decode': decode,
	'encode': encode,
	'toASCII': toASCII,
	'toUnicode': toUnicode
};

/**
 * URI.js
 *
 * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.
 * @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
 * @see http://github.com/garycourt/uri-js
 */
/**
 * Copyright 2011 Gary Court. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification, are
 * permitted provided that the following conditions are met:
 *
 *    1. Redistributions of source code must retain the above copyright notice, this list of
 *       conditions and the following disclaimer.
 *
 *    2. Redistributions in binary form must reproduce the above copyright notice, this list
 *       of conditions and the following disclaimer in the documentation and/or other materials
 *       provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * The views and conclusions contained in the software and documentation are those of the
 * authors and should not be interpreted as representing official policies, either expressed
 * or implied, of Gary Court.
 */
var SCHEMES = {};
function pctEncChar(chr) {
    var c = chr.charCodeAt(0);
    var e = void 0;
    if (c < 16) e = "%0" + c.toString(16).toUpperCase();else if (c < 128) e = "%" + c.toString(16).toUpperCase();else if (c < 2048) e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();else e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
    return e;
}
function pctDecChars(str) {
    var newStr = "";
    var i = 0;
    var il = str.length;
    while (i < il) {
        var c = parseInt(str.substr(i + 1, 2), 16);
        if (c < 128) {
            newStr += String.fromCharCode(c);
            i += 3;
        } else if (c >= 194 && c < 224) {
            if (il - i >= 6) {
                var c2 = parseInt(str.substr(i + 4, 2), 16);
                newStr += String.fromCharCode((c & 31) << 6 | c2 & 63);
            } else {
                newStr += str.substr(i, 6);
            }
            i += 6;
        } else if (c >= 224) {
            if (il - i >= 9) {
                var _c = parseInt(str.substr(i + 4, 2), 16);
                var c3 = parseInt(str.substr(i + 7, 2), 16);
                newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63);
            } else {
                newStr += str.substr(i, 9);
            }
            i += 9;
        } else {
            newStr += str.substr(i, 3);
            i += 3;
        }
    }
    return newStr;
}
function _normalizeComponentEncoding(components, protocol) {
    function decodeUnreserved(str) {
        var decStr = pctDecChars(str);
        return !decStr.match(protocol.UNRESERVED) ? str : decStr;
    }
    if (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, "");
    if (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
    if (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
    if (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
    if (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
    if (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
    return components;
}

function _stripLeadingZeros(str) {
    return str.replace(/^0*(.*)/, "$1") || "0";
}
function _normalizeIPv4(host, protocol) {
    var matches = host.match(protocol.IPV4ADDRESS) || [];

    var _matches = slicedToArray(matches, 2),
        address = _matches[1];

    if (address) {
        return address.split(".").map(_stripLeadingZeros).join(".");
    } else {
        return host;
    }
}
function _normalizeIPv6(host, protocol) {
    var matches = host.match(protocol.IPV6ADDRESS) || [];

    var _matches2 = slicedToArray(matches, 3),
        address = _matches2[1],
        zone = _matches2[2];

    if (address) {
        var _address$toLowerCase$ = address.toLowerCase().split('::').reverse(),
            _address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2),
            last = _address$toLowerCase$2[0],
            first = _address$toLowerCase$2[1];

        var firstFields = first ? first.split(":").map(_stripLeadingZeros) : [];
        var lastFields = last.split(":").map(_stripLeadingZeros);
        var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);
        var fieldCount = isLastFieldIPv4Address ? 7 : 8;
        var lastFieldsStart = lastFields.length - fieldCount;
        var fields = Array(fieldCount);
        for (var x = 0; x < fieldCount; ++x) {
            fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || '';
        }
        if (isLastFieldIPv4Address) {
            fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);
        }
        var allZeroFields = fields.reduce(function (acc, field, index) {
            if (!field || field === "0") {
                var lastLongest = acc[acc.length - 1];
                if (lastLongest && lastLongest.index + lastLongest.length === index) {
                    lastLongest.length++;
                } else {
                    acc.push({ index: index, length: 1 });
                }
            }
            return acc;
        }, []);
        var longestZeroFields = allZeroFields.sort(function (a, b) {
            return b.length - a.length;
        })[0];
        var newHost = void 0;
        if (longestZeroFields && longestZeroFields.length > 1) {
            var newFirst = fields.slice(0, longestZeroFields.index);
            var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);
            newHost = newFirst.join(":") + "::" + newLast.join(":");
        } else {
            newHost = fields.join(":");
        }
        if (zone) {
            newHost += "%" + zone;
        }
        return newHost;
    } else {
        return host;
    }
}
var URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;
var NO_MATCH_IS_UNDEFINED = "".match(/(){0}/)[1] === undefined;
function parse(uriString) {
    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

    var components = {};
    var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
    if (options.reference === "suffix") uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString;
    var matches = uriString.match(URI_PARSE);
    if (matches) {
        if (NO_MATCH_IS_UNDEFINED) {
            //store each component
            components.scheme = matches[1];
            components.userinfo = matches[3];
            components.host = matches[4];
            components.port = parseInt(matches[5], 10);
            components.path = matches[6] || "";
            components.query = matches[7];
            components.fragment = matches[8];
            //fix port number
            if (isNaN(components.port)) {
                components.port = matches[5];
            }
        } else {
            //IE FIX for improper RegExp matching
            //store each component
            components.scheme = matches[1] || undefined;
            components.userinfo = uriString.indexOf("@") !== -1 ? matches[3] : undefined;
            components.host = uriString.indexOf("//") !== -1 ? matches[4] : undefined;
            components.port = parseInt(matches[5], 10);
            components.path = matches[6] || "";
            components.query = uriString.indexOf("?") !== -1 ? matches[7] : undefined;
            components.fragment = uriString.indexOf("#") !== -1 ? matches[8] : undefined;
            //fix port number
            if (isNaN(components.port)) {
                components.port = uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : undefined;
            }
        }
        if (components.host) {
            //normalize IP hosts
            components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);
        }
        //determine reference type
        if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) {
            components.reference = "same-document";
        } else if (components.scheme === undefined) {
            components.reference = "relative";
        } else if (components.fragment === undefined) {
            components.reference = "absolute";
        } else {
            components.reference = "uri";
        }
        //check for reference errors
        if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) {
            components.error = components.error || "URI is not a " + options.reference + " reference.";
        }
        //find scheme handler
        var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
        //check if scheme can't handle IRIs
        if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
            //if host component is a domain name
            if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) {
                //convert Unicode IDN -> ASCII IDN
                try {
                    components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());
                } catch (e) {
                    components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e;
                }
            }
            //convert IRI -> URI
            _normalizeComponentEncoding(components, URI_PROTOCOL);
        } else {
            //normalize encodings
            _normalizeComponentEncoding(components, protocol);
        }
        //perform scheme specific parsing
        if (schemeHandler && schemeHandler.parse) {
            schemeHandler.parse(components, options);
        }
    } else {
        components.error = components.error || "URI can not be parsed.";
    }
    return components;
}

function _recomposeAuthority(components, options) {
    var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
    var uriTokens = [];
    if (components.userinfo !== undefined) {
        uriTokens.push(components.userinfo);
        uriTokens.push("@");
    }
    if (components.host !== undefined) {
        //normalize IP hosts, add brackets and escape zone separator for IPv6
        uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function (_, $1, $2) {
            return "[" + $1 + ($2 ? "%25" + $2 : "") + "]";
        }));
    }
    if (typeof components.port === "number") {
        uriTokens.push(":");
        uriTokens.push(components.port.toString(10));
    }
    return uriTokens.length ? uriTokens.join("") : undefined;
}

var RDS1 = /^\.\.?\//;
var RDS2 = /^\/\.(\/|$)/;
var RDS3 = /^\/\.\.(\/|$)/;
var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/;
function removeDotSegments(input) {
    var output = [];
    while (input.length) {
        if (input.match(RDS1)) {
            input = input.replace(RDS1, "");
        } else if (input.match(RDS2)) {
            input = input.replace(RDS2, "/");
        } else if (input.match(RDS3)) {
            input = input.replace(RDS3, "/");
            output.pop();
        } else if (input === "." || input === "..") {
            input = "";
        } else {
            var im = input.match(RDS5);
            if (im) {
                var s = im[0];
                input = input.slice(s.length);
                output.push(s);
            } else {
                throw new Error("Unexpected dot segment condition");
            }
        }
    }
    return output.join("");
}

function serialize(components) {
    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

    var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL;
    var uriTokens = [];
    //find scheme handler
    var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
    //perform scheme specific serialization
    if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);
    if (components.host) {
        //if host component is an IPv6 address
        if (protocol.IPV6ADDRESS.test(components.host)) {}
        //TODO: normalize IPv6 address as per RFC 5952

        //if host component is a domain name
        else if (options.domainHost || schemeHandler && schemeHandler.domainHost) {
                //convert IDN via punycode
                try {
                    components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host);
                } catch (e) {
                    components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
                }
            }
    }
    //normalize encoding
    _normalizeComponentEncoding(components, protocol);
    if (options.reference !== "suffix" && components.scheme) {
        uriTokens.push(components.scheme);
        uriTokens.push(":");
    }
    var authority = _recomposeAuthority(components, options);
    if (authority !== undefined) {
        if (options.reference !== "suffix") {
            uriTokens.push("//");
        }
        uriTokens.push(authority);
        if (components.path && components.path.charAt(0) !== "/") {
            uriTokens.push("/");
        }
    }
    if (components.path !== undefined) {
        var s = components.path;
        if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
            s = removeDotSegments(s);
        }
        if (authority === undefined) {
            s = s.replace(/^\/\//, "/%2F"); //don't allow the path to start with "//"
        }
        uriTokens.push(s);
    }
    if (components.query !== undefined) {
        uriTokens.push("?");
        uriTokens.push(components.query);
    }
    if (components.fragment !== undefined) {
        uriTokens.push("#");
        uriTokens.push(components.fragment);
    }
    return uriTokens.join(""); //merge tokens into a string
}

function resolveComponents(base, relative) {
    var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
    var skipNormalization = arguments[3];

    var target = {};
    if (!skipNormalization) {
        base = parse(serialize(base, options), options); //normalize base components
        relative = parse(serialize(relative, options), options); //normalize relative components
    }
    options = options || {};
    if (!options.tolerant && relative.scheme) {
        target.scheme = relative.scheme;
        //target.authority = relative.authority;
        target.userinfo = relative.userinfo;
        target.host = relative.host;
        target.port = relative.port;
        target.path = removeDotSegments(relative.path || "");
        target.query = relative.query;
    } else {
        if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
            //target.authority = relative.authority;
            target.userinfo = relative.userinfo;
            target.host = relative.host;
            target.port = relative.port;
            target.path = removeDotSegments(relative.path || "");
            target.query = relative.query;
        } else {
            if (!relative.path) {
                target.path = base.path;
                if (relative.query !== undefined) {
                    target.query = relative.query;
                } else {
                    target.query = base.query;
                }
            } else {
                if (relative.path.charAt(0) === "/") {
                    target.path = removeDotSegments(relative.path);
                } else {
                    if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
                        target.path = "/" + relative.path;
                    } else if (!base.path) {
                        target.path = relative.path;
                    } else {
                        target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
                    }
                    target.path = removeDotSegments(target.path);
                }
                target.query = relative.query;
            }
            //target.authority = base.authority;
            target.userinfo = base.userinfo;
            target.host = base.host;
            target.port = base.port;
        }
        target.scheme = base.scheme;
    }
    target.fragment = relative.fragment;
    return target;
}

function resolve(baseURI, relativeURI, options) {
    var schemelessOptions = assign({ scheme: 'null' }, options);
    return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
}

function normalize(uri, options) {
    if (typeof uri === "string") {
        uri = serialize(parse(uri, options), options);
    } else if (typeOf(uri) === "object") {
        uri = parse(serialize(uri, options), options);
    }
    return uri;
}

function equal(uriA, uriB, options) {
    if (typeof uriA === "string") {
        uriA = serialize(parse(uriA, options), options);
    } else if (typeOf(uriA) === "object") {
        uriA = serialize(uriA, options);
    }
    if (typeof uriB === "string") {
        uriB = serialize(parse(uriB, options), options);
    } else if (typeOf(uriB) === "object") {
        uriB = serialize(uriB, options);
    }
    return uriA === uriB;
}

function escapeComponent(str, options) {
    return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar);
}

function unescapeComponent(str, options) {
    return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars);
}

var handler = {
    scheme: "http",
    domainHost: true,
    parse: function parse(components, options) {
        //report missing host
        if (!components.host) {
            components.error = components.error || "HTTP URIs must have a host.";
        }
        return components;
    },
    serialize: function serialize(components, options) {
        //normalize the default port
        if (components.port === (String(components.scheme).toLowerCase() !== "https" ? 80 : 443) || components.port === "") {
            components.port = undefined;
        }
        //normalize the empty path
        if (!components.path) {
            components.path = "/";
        }
        //NOTE: We do not parse query strings for HTTP URIs
        //as WWW Form Url Encoded query strings are part of the HTML4+ spec,
        //and not the HTTP spec.
        return components;
    }
};

var handler$1 = {
    scheme: "https",
    domainHost: handler.domainHost,
    parse: handler.parse,
    serialize: handler.serialize
};

var O = {};
var isIRI = true;
//RFC 3986
var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]";
var HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive
var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded
//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =
//const ATEXT$$ = "[A-Za-z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~]";
//const WSP$$ = "[\\x20\\x09]";
//const OBS_QTEXT$$ = "[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]";  //(%d1-8 / %d11-12 / %d14-31 / %d127)
//const QTEXT$$ = merge("[\\x21\\x23-\\x5B\\x5D-\\x7E]", OBS_QTEXT$$);  //%d33 / %d35-91 / %d93-126 / obs-qtext
//const VCHAR$$ = "[\\x21-\\x7E]";
//const WSP$$ = "[\\x20\\x09]";
//const OBS_QP$ = subexp("\\\\" + merge("[\\x00\\x0D\\x0A]", OBS_QTEXT$$));  //%d0 / CR / LF / obs-qtext
//const FWS$ = subexp(subexp(WSP$$ + "*" + "\\x0D\\x0A") + "?" + WSP$$ + "+");
//const QUOTED_PAIR$ = subexp(subexp("\\\\" + subexp(VCHAR$$ + "|" + WSP$$)) + "|" + OBS_QP$);
//const QUOTED_STRING$ = subexp('\\"' + subexp(FWS$ + "?" + QCONTENT$) + "*" + FWS$ + "?" + '\\"');
var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";
var QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";
var VCHAR$$ = merge(QTEXT$$, "[\\\"\\\\]");
var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";
var UNRESERVED = new RegExp(UNRESERVED$$, "g");
var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g");
var NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g");
var NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
var NOT_HFVALUE = NOT_HFNAME;
function decodeUnreserved(str) {
    var decStr = pctDecChars(str);
    return !decStr.match(UNRESERVED) ? str : decStr;
}
var handler$2 = {
    scheme: "mailto",
    parse: function parse$$1(components, options) {
        var mailtoComponents = components;
        var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : [];
        mailtoComponents.path = undefined;
        if (mailtoComponents.query) {
            var unknownHeaders = false;
            var headers = {};
            var hfields = mailtoComponents.query.split("&");
            for (var x = 0, xl = hfields.length; x < xl; ++x) {
                var hfield = hfields[x].split("=");
                switch (hfield[0]) {
                    case "to":
                        var toAddrs = hfield[1].split(",");
                        for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) {
                            to.push(toAddrs[_x]);
                        }
                        break;
                    case "subject":
                        mailtoComponents.subject = unescapeComponent(hfield[1], options);
                        break;
                    case "body":
                        mailtoComponents.body = unescapeComponent(hfield[1], options);
                        break;
                    default:
                        unknownHeaders = true;
                        headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);
                        break;
                }
            }
            if (unknownHeaders) mailtoComponents.headers = headers;
        }
        mailtoComponents.query = undefined;
        for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) {
            var addr = to[_x2].split("@");
            addr[0] = unescapeComponent(addr[0]);
            if (!options.unicodeSupport) {
                //convert Unicode IDN -> ASCII IDN
                try {
                    addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());
                } catch (e) {
                    mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
                }
            } else {
                addr[1] = unescapeComponent(addr[1], options).toLowerCase();
            }
            to[_x2] = addr.join("@");
        }
        return mailtoComponents;
    },
    serialize: function serialize$$1(mailtoComponents, options) {
        var components = mailtoComponents;
        var to = toArray(mailtoComponents.to);
        if (to) {
            for (var x = 0, xl = to.length; x < xl; ++x) {
                var toAddr = String(to[x]);
                var atIdx = toAddr.lastIndexOf("@");
                var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);
                var domain = toAddr.slice(atIdx + 1);
                //convert IDN via punycode
                try {
                    domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain);
                } catch (e) {
                    components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
                }
                to[x] = localPart + "@" + domain;
            }
            components.path = to.join(",");
        }
        var headers = mailtoComponents.headers = mailtoComponents.headers || {};
        if (mailtoComponents.subject) headers["subject"] = mailtoComponents.subject;
        if (mailtoComponents.body) headers["body"] = mailtoComponents.body;
        var fields = [];
        for (var name in headers) {
            if (headers[name] !== O[name]) {
                fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar));
            }
        }
        if (fields.length) {
            components.query = fields.join("&");
        }
        return components;
    }
};

var URN_PARSE = /^([^\:]+)\:(.*)/;
//RFC 2141
var handler$3 = {
    scheme: "urn",
    parse: function parse$$1(components, options) {
        var matches = components.path && components.path.match(URN_PARSE);
        var urnComponents = components;
        if (matches) {
            var scheme = options.scheme || urnComponents.scheme || "urn";
            var nid = matches[1].toLowerCase();
            var nss = matches[2];
            var urnScheme = scheme + ":" + (options.nid || nid);
            var schemeHandler = SCHEMES[urnScheme];
            urnComponents.nid = nid;
            urnComponents.nss = nss;
            urnComponents.path = undefined;
            if (schemeHandler) {
                urnComponents = schemeHandler.parse(urnComponents, options);
            }
        } else {
            urnComponents.error = urnComponents.error || "URN can not be parsed.";
        }
        return urnComponents;
    },
    serialize: function serialize$$1(urnComponents, options) {
        var scheme = options.scheme || urnComponents.scheme || "urn";
        var nid = urnComponents.nid;
        var urnScheme = scheme + ":" + (options.nid || nid);
        var schemeHandler = SCHEMES[urnScheme];
        if (schemeHandler) {
            urnComponents = schemeHandler.serialize(urnComponents, options);
        }
        var uriComponents = urnComponents;
        var nss = urnComponents.nss;
        uriComponents.path = (nid || options.nid) + ":" + nss;
        return uriComponents;
    }
};

var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
//RFC 4122
var handler$4 = {
    scheme: "urn:uuid",
    parse: function parse(urnComponents, options) {
        var uuidComponents = urnComponents;
        uuidComponents.uuid = uuidComponents.nss;
        uuidComponents.nss = undefined;
        if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {
            uuidComponents.error = uuidComponents.error || "UUID is not valid.";
        }
        return uuidComponents;
    },
    serialize: function serialize(uuidComponents, options) {
        var urnComponents = uuidComponents;
        //normalize UUID
        urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
        return urnComponents;
    }
};

SCHEMES[handler.scheme] = handler;
SCHEMES[handler$1.scheme] = handler$1;
SCHEMES[handler$2.scheme] = handler$2;
SCHEMES[handler$3.scheme] = handler$3;
SCHEMES[handler$4.scheme] = handler$4;

exports.SCHEMES = SCHEMES;
exports.pctEncChar = pctEncChar;
exports.pctDecChars = pctDecChars;
exports.parse = parse;
exports.removeDotSegments = removeDotSegments;
exports.serialize = serialize;
exports.resolveComponents = resolveComponents;
exports.resolve = resolve;
exports.normalize = normalize;
exports.equal = equal;
exports.escapeComponent = escapeComponent;
exports.unescapeComponent = unescapeComponent;

Object.defineProperty(exports, '__esModule', { value: true });

})));


},{}]},{},[43]);
